X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cd936a4fb390aaf318f1a751546e08a531a3bda..02bcd285fac7124a41292d905609220005f51087:/src/common/treebase.cpp?ds=sidebyside diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index 54b9c28d4a..6814ed0926 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -17,10 +17,6 @@ // headers // ----------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "treebase.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -63,6 +59,7 @@ 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) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MENU) // ---------------------------------------------------------------------------- // Tree event @@ -89,5 +86,14 @@ wxTreeEvent::wxTreeEvent(const wxTreeEvent & event) m_editCancelled = event.m_editCancelled; } +#if WXWIN_COMPATIBILITY_2_2 + +int wxTreeEvent::GetCode() const +{ + return m_evtKey.GetKeyCode(); +} + +#endif // WXWIN_COMPATIBILITY_2_2 + #endif // wxUSE_TREECTRL