X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1777b9bbf4573dabecf4a3256d0d3c2c0c2a3fdf..a79fa1ed13f7aff722a9010de3f6e89f538da56f:/include/wx/treectrl.h diff --git a/include/wx/treectrl.h b/include/wx/treectrl.h index 799425a95f..631c3393ac 100644 --- a/include/wx/treectrl.h +++ b/include/wx/treectrl.h @@ -8,6 +8,27 @@ #include "wx/control.h" #include "wx/event.h" +// ---------------------------------------------------------------------------- +// constants +// ---------------------------------------------------------------------------- + +// enum for different images associated with a treectrl item +enum wxTreeItemIcon +{ + wxTreeItemIcon_Normal, // not selected, not expanded + wxTreeItemIcon_Selected, // selected, not expanded + wxTreeItemIcon_Expanded, // not selected, expanded + wxTreeItemIcon_SelectedExpanded, // selected, expanded + wxTreeItemIcon_Max +}; + +// tree ctrl default name +#ifdef __WXMSW__ + WXDLLEXPORT_DATA(extern const char*) wxTreeCtrlNameStr; +#else + #define wxTreeCtrlNameStr "wxTreeCtrl" +#endif + // ---------------------------------------------------------------------------- // include the platform-dependent wxTreeCtrl class // ---------------------------------------------------------------------------- @@ -41,7 +62,12 @@ class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent { -friend wxTreeCtrl; +#ifdef __MWERKS__ + friend class wxTreeCtrl; +#else + friend wxTreeCtrl; +#endif + public: wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);