X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1944ad76180a4ef4e65764d456928539561d34b3..dac7d53a83c862235ad8f3dfe5706e9af4c1480a:/include/wx/treebase.h diff --git a/include/wx/treebase.h b/include/wx/treebase.h index aac2cab5c6..4f1af7fb65 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -12,7 +12,7 @@ #ifndef _WX_TREEBASE_H_ #define _WX_TREEBASE_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "treebase.h" #endif @@ -239,6 +239,9 @@ public: // label (for EVT_TREE_{BEGIN|END}_LABEL_EDIT only) const wxString& GetLabel() const { return m_label; } + // edit cancel flag (for EVT_TREE_{BEGIN|END}_LABEL_EDIT only) + bool IsEditCancelled() const { return m_editCancelled; } + #if WXWIN_COMPATIBILITY_2_2 // for compatibility only, don't use int GetCode() const { return m_evtKey.GetKeyCode(); } @@ -251,6 +254,7 @@ private: m_itemOld; wxPoint m_pointDrag; wxString m_label; + bool m_editCancelled; friend class WXDLLEXPORT wxTreeCtrl; friend class WXDLLEXPORT wxGenericTreeCtrl;