tibia-rme/source/dat_debug_view.h
diath 8bf57e35a6
Fix build errors (#380)
- Updated the minimum required CMake version.
- Updated the minimum required C++ standard version to match the
  functions used in the code base.
- Added missing `public` visibility specifier for classes deriving from
  wxEvtHandler (DatDebugView and MainMenuBar) that is required to
  access the event table from the derived classes.
- Fixed a typo in the MainMenuBar code (`REPLACE_ITEM` =>
  `REPLACE_ITEMS`).
- Added missing ZLIB search to the CMake project (previously it was
  implicitly linked by older wxWidgets versions?).
- Fixed GLUT compatibility with newer CMake version.
- Added a new `FROM_DIP` macro that fixes wxSize scaling compatibility
  with wxWidgets <3.1.0.
- Fixed catching std::bad_cast exceptions by value instead of const
  ref.

Closes #329.
Closes #345.
Closes #371.
Closes #373.
Closes #375.
2022-02-02 18:55:27 -03:00

40 lines
1.3 KiB
C++

//////////////////////////////////////////////////////////////////////
// This file is part of Remere's Map Editor
//////////////////////////////////////////////////////////////////////
// Remere's Map Editor is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Remere's Map Editor is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//////////////////////////////////////////////////////////////////////
#ifndef RME_DAT_DEBUG_VIEW_H_
#define RME_DAT_DEBUG_VIEW_H_
class DatDebugViewListBox;
class DatDebugView : public wxPanel
{
public:
DatDebugView(wxWindow* parent);
~DatDebugView();
void OnTextChange(wxCommandEvent&);
void OnClickList(wxCommandEvent&);
protected:
DatDebugViewListBox* item_list;
wxTextCtrl* search_field;
DECLARE_EVENT_TABLE()
};
#endif