X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cb3a695e0f65d71fe0c315766e0d6dafd4c312a..427861bde09badef1a2950ad799e69fac6b4a48a:/interface/wx/treectrl.h diff --git a/interface/wx/treectrl.h b/interface/wx/treectrl.h index 9b9fb7c141..55b34394ae 100644 --- a/interface/wx/treectrl.h +++ b/interface/wx/treectrl.h @@ -307,7 +307,7 @@ public: @see EndEditLabel(), wxTreeEvent */ virtual wxTextCtrl *EditLabel(const wxTreeItemId& item, - wxClassInfo* textCtrlClass = CLASSINFO(wxTextCtrl)); + wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)); /** Ends label editing. If @a cancelEdit is @true, the edit will be @@ -437,6 +437,24 @@ public: */ virtual wxTreeItemId GetFocusedItem() const; + + /** + Clears the currently focused item + + @since 2.9.1 + */ + virtual void ClearFocusedItem(); + + /** + Sets the currently focused item. + + @param item + The item to make the current one. It must be valid. + @since 2.9.1 + */ + virtual void SetFocusedItem(const wxTreeItemId& item); + + /** Returns the normal image list. */ @@ -733,8 +751,8 @@ public: zero or positive value if the first item is less than, equal to or greater than the second one. - Please note that you @b must use wxRTTI macros DECLARE_DYNAMIC_CLASS() - and IMPLEMENT_DYNAMIC_CLASS() if you override this function because + Please note that you @b must use wxRTTI macros wxDECLARE_DYNAMIC_CLASS() + and wxIMPLEMENT_DYNAMIC_CLASS() if you override this function because otherwise the base class considers that it is not overridden and uses the default comparison, i.e. sorts the items alphabetically, which allows it optimize away the calls to the virtual function completely.