Applied patch [ 1174270 ] small fixes to wxGenericDirCtrl
Stas Sergeev: 1. CollapseDir() was forgetting to... hrmm, to collapse the dir... It was only removing the child elements, leaving the dir expanded. Missing code added. 2. ReCreateTree(), which, according to the comments, must collapse and re-open the tree, was not re-opening it. Fixed. 3. For those who used the bogus ReCreateTree() behaviour to collapse the tree, I added CollapseTree(). This does visually what the ReCreateTree() wrongly did before the patch. 4. Documentation is updated accordingly. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,6 +89,12 @@ Create function for two-step construction. See \helpref{wxGenericDirCtrl::wxGene
|
||||
|
||||
Initializes variables.
|
||||
|
||||
\membersection{wxGenericDirCtrl::CollapseTree}\label{wxgenericdirctrlcollapsetree}
|
||||
|
||||
\func{void}{CollapseTree}{\void}
|
||||
|
||||
Collapses the entire tree.
|
||||
|
||||
\membersection{wxGenericDirCtrl::ExpandPath}\label{wxgenericdirctrlexpandpath}
|
||||
|
||||
\func{bool}{ExpandPath}{\param{const wxString\& }{path}}
|
||||
@@ -145,6 +151,13 @@ Returns the root id for the tree control.
|
||||
|
||||
Returns a pointer to the tree control.
|
||||
|
||||
\membersection{wxGenericDirCtrl::ReCreateTree}\label{wxgenericdirctrlrecreatetree}
|
||||
|
||||
\func{void}{ReCreateTree}{\void}
|
||||
|
||||
Collapse and expand the tree, thus re-creating it from scratch.
|
||||
May be used to update the displayed directory content.
|
||||
|
||||
\membersection{wxGenericDirCtrl::SetDefaultPath}\label{wxgenericdirctrlsetdefaultpath}
|
||||
|
||||
\func{void}{SetDefaultPath}{\param{const wxString\& }{path}}
|
||||
|
Reference in New Issue
Block a user