Applied patch [ 651287 ] adds missing wxTreeCtrl::GetEditControl
Peter Stieber git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,6 +33,7 @@ class WXDLLEXPORT wxTreeItemData;
|
||||
class WXDLLEXPORT wxTreeRenameTimer;
|
||||
class WXDLLEXPORT wxTreeFindTimer;
|
||||
class WXDLLEXPORT wxTreeTextCtrl;
|
||||
class WXDLLEXPORT wxTextCtrl;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// wxGenericTreeCtrl - the tree control
|
||||
@@ -315,6 +316,10 @@ public:
|
||||
// been before.
|
||||
void EditLabel( const wxTreeItemId& item ) { Edit( item ); }
|
||||
void Edit( const wxTreeItemId& item );
|
||||
// returns a pointer to the text edit control if the item is being
|
||||
// edited, NULL otherwise (it's assumed that no more than one item may
|
||||
// be edited simultaneously)
|
||||
wxTextCtrl* GetEditControl() const;
|
||||
|
||||
// sorting
|
||||
// this function is called to compare 2 items and should return -1, 0
|
||||
@@ -385,6 +390,7 @@ protected:
|
||||
wxGenericTreeItem *m_dropTarget;
|
||||
wxCursor m_oldCursor; // cursor is changed while dragging
|
||||
wxGenericTreeItem *m_oldSelection;
|
||||
wxTreeTextCtrl *m_textCtrl;
|
||||
|
||||
wxTimer *m_renameTimer;
|
||||
|
||||
@@ -411,6 +417,9 @@ protected:
|
||||
int image, int selectedImage,
|
||||
wxTreeItemData *data);
|
||||
|
||||
// called by wxTextTreeCtrl when it marks itself for deletion
|
||||
void ResetTextControl();
|
||||
|
||||
// find the first item starting with the given prefix after the given item
|
||||
wxTreeItemId FindItem(const wxTreeItemId& id, const wxString& prefix) const;
|
||||
|
||||
|
Reference in New Issue
Block a user