X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8dc9904630c28707c828328e997ec46639aca757..0b5d3315b3b96091c326f718d7e1f627e731eb38:/include/wx/generic/treectrl.h?ds=sidebyside diff --git a/include/wx/generic/treectrl.h b/include/wx/generic/treectrl.h index 00c139de9b..9e8bf4ed5c 100644 --- a/include/wx/generic/treectrl.h +++ b/include/wx/generic/treectrl.h @@ -181,7 +181,13 @@ class WXDLLEXPORT wxTreeTextCtrl: public wxTextCtrl bool *accept, wxString *res, wxTreeCtrl *owner, const wxString &value = wxEmptyString, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, +#if wxUSE_VALIDATORS +# if defined(__VISAGECPP__) + int style = 0, const wxValidator* validator = wxDefaultValidator, +# else int style = 0, const wxValidator& validator = wxDefaultValidator, +# endif +#endif const wxString &name = wxTextCtrlNameStr ); void OnChar( wxKeyEvent &event ); void OnKillFocus( wxFocusEvent &event ); @@ -204,7 +210,13 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, +#if wxUSE_VALIDATORS +# if defined(__VISAGECPP__) + const wxValidator *validator = wxDefaultValidator, +# else const wxValidator &validator = wxDefaultValidator, +# endif +#endif const wxString& name = wxTreeCtrlNameStr) { Create(parent, id, pos, size, style, validator, name); @@ -216,7 +228,13 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, +#if wxUSE_VALIDATORS +# if defined(__VISAGECPP__) + const wxValidator *validator = wxDefaultValidator, +# else const wxValidator &validator = wxDefaultValidator, +# endif +#endif const wxString& name = wxTreeCtrlNameStr); // accessors @@ -461,6 +479,9 @@ protected: friend class wxTreeRenameTimer; friend class wxTreeTextCtrl; + wxFont m_normalFont; + wxFont m_boldFont; + wxGenericTreeItem *m_anchor; wxGenericTreeItem *m_current, *m_key_current, *m_currentEdit; bool m_hasFocus;