X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dee1a63ff52bfe4da396187f8438aa1a29796737..d33704ddf2884c8b1cf1178e3cee6d2e1b4004f0:/include/wx/treebase.h diff --git a/include/wx/treebase.h b/include/wx/treebase.h index bd9ae42ff0..92c7644412 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: treebase.h +// Name: wx/treebase.h // Purpose: wxTreeCtrl base classes and types // Author: Julian Smart et al // Modified by: @@ -24,6 +24,8 @@ #include "wx/event.h" #include "wx/dynarray.h" +#if WXWIN_COMPATIBILITY_2_6 + // flags for deprecated `Expand(int action)', will be removed in next versions enum { @@ -33,6 +35,8 @@ enum wxTREE_EXPAND_TOGGLE }; +#endif // WXWIN_COMPATIBILITY_2_6 + // ---------------------------------------------------------------------------- // wxTreeItemId identifies an element of the tree. In this implementation, it's // just a trivial wrapper around Win32 HTREEITEM or a pointer to some private @@ -179,9 +183,11 @@ enum wxTreeItemIcon #define wxTR_DEFAULT_STYLE (wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT) #endif +#if WXWIN_COMPATIBILITY_2_6 // deprecated, don't use #define wxTR_MAC_BUTTONS 0 #define wxTR_AQUA_BUTTONS 0 +#endif // WXWIN_COMPATIBILITY_2_6 // values for the `flags' parameter of wxTreeCtrl::HitTest() which determine @@ -216,7 +222,7 @@ static const int wxTREE_HITTEST_ONITEM = wxTREE_HITTEST_ONITEMICON | wxTREE_HITTEST_ONITEMLABEL; // tree ctrl default name -extern WXDLLEXPORT_DATA(const wxChar*) wxTreeCtrlNameStr; +extern WXDLLEXPORT_DATA(const wxChar) wxTreeCtrlNameStr[]; // ---------------------------------------------------------------------------- // wxTreeItemAttr: a structure containing the visual attributes of an item @@ -413,4 +419,3 @@ END_DECLARE_EVENT_TYPES() #endif // wxUSE_TREECTRL #endif // _WX_TREEBASE_H_ -