X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/618a5e382af2e469f9cc9d2aa81114403637a4b3..8482e4bdb9928fe9982ac214aee345b19894b39b:/src/common/treebase.cpp diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index dfa45202e5..a3fff66b2d 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -17,7 +17,7 @@ // headers // ----------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "treebase.h" #endif @@ -37,7 +37,6 @@ #include "wx/dynarray.h" #include "wx/arrimpl.cpp" #include "wx/dcclient.h" -#include "wx/msgdlg.h" // ---------------------------------------------------------------------------- @@ -62,16 +61,21 @@ DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_ACTIVATED) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP) // ---------------------------------------------------------------------------- // Tree event // ---------------------------------------------------------------------------- +IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent) + + wxTreeEvent::wxTreeEvent(wxEventType commandType, int id) : wxNotifyEvent(commandType, id) { - m_code = 0; m_itemOld = 0l; + m_editCancelled = false; } #endif // wxUSE_TREECTRL