X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27822825224f251f3a9a7602883a04fe6d1c3f50..7249080588e30b4740adc138e793ffa0ead4b5ef:/include/wx/treebase.h diff --git a/include/wx/treebase.h b/include/wx/treebase.h index fe2cb9135b..15944f0476 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -158,7 +158,11 @@ enum wxTreeItemIcon #define wxTR_FULL_ROW_HIGHLIGHT 0x2000 // highlight full horz space +#ifdef __WXGTK20__ +#define wxTR_DEFAULT_STYLE (wxTR_HAS_BUTTONS | wxTR_NO_LINES) +#else #define wxTR_DEFAULT_STYLE (wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT) +#endif // deprecated, don't use #define wxTR_MAC_BUTTONS 0 @@ -244,6 +248,9 @@ class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent { public: wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); + wxTreeEvent(const wxTreeEvent & event); + + virtual wxEvent *Clone() const { return new wxTreeEvent(*this); } // accessors // get the item on which the operation was performed or the newly @@ -294,7 +301,7 @@ private: friend class WXDLLEXPORT wxTreeCtrl; friend class WXDLLEXPORT wxGenericTreeCtrl; - DECLARE_DYNAMIC_CLASS_NO_COPY(wxTreeEvent) + DECLARE_DYNAMIC_CLASS(wxTreeEvent) }; typedef void (wxEvtHandler::*wxTreeEventFunction)(wxTreeEvent&);