wxGenericDirCtrl
Implements methods from the following classes
wxControl
Methods
wxGenericDirCtrl
Default constructor.
CollapsePath
Collapse the given path.
CollapseTree
Collapses the entire tree.
Create
Create function for two-step construction.
ExpandPath
Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control.
GetDefaultPath
Gets the default path.
GetFilePath
Gets selected filename path only (else empty string).
GetFilePaths
Fills the array paths with the currently selected filepaths.
GetFilter
Returns the filter string.
GetFilterIndex
Returns the current filter index (zero-based).
GetPath
Gets the currently-selected directory or filename.
GetPaths
Fills the array paths with the selected directories and filenames.
GetRootId
Returns the root id for the tree control.
GetTreeCtrl
Returns a pointer to the tree control.
Init
Initializes variables.
ReCreateTree
Collapse and expand the tree, thus re-creating it from scratch.
SelectPath
Selects the given item.
SelectPaths
Selects only the specified paths, clearing any previous selection.
SetDefaultPath
Sets the default path.
SetFilter
Sets the filter string.
SetFilterIndex
Sets the current filter index (zero-based).
SetPath
Sets the current path.
ShowHidden
UnselectAll
Removes the selection from all currently selected items.
Static Methods
wxGenericDirCtrl
wxGenericDirCtrl
( )
Default constructor.
wxGenericDirCtrl
(
wxWindow
&
$parent
,
integer
$id
=
wxID_ANY
,
string
$dir
=
wxDirDialogDefaultFolderStr
,
wxPoint
$pos
=
wxDefaultPosition
,
wxSize
$size
=
wxDefaultSize
,
integer
$style
=
wxDIRCTRL_3D_INTERNAL
,
string
$filter
=
wxEmptyString
,
integer
$defaultFilter
,
string
$name
=
wxTreeCtrlNameStr
)
Main constructor.
CollapsePath
bool
CollapsePath
(
string
$path
)
Collapse the given path.
CollapseTree
CollapseTree
( )
Collapses the entire tree.
Create
bool
Create
(
wxWindow
&
$parent
,
integer
$id
=
wxID_ANY
,
string
$dir
=
wxDirDialogDefaultFolderStr
,
wxPoint
$pos
=
wxDefaultPosition
,
wxSize
$size
=
wxDefaultSize
,
integer
$style
=
wxDIRCTRL_3D_INTERNAL
,
string
$filter
=
wxEmptyString
,
integer
$defaultFilter
,
string
$name
=
wxTreeCtrlNameStr
)
Create function for two-step construction.
ExpandPath
bool
ExpandPath
(
string
$path
)
Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control.
GetDefaultPath
string
GetDefaultPath
( )
Gets the default path.
GetFilePath
string
GetFilePath
( )
Gets selected filename path only (else empty string).
GetFilePaths
GetFilePaths
(
array &
$paths
)
Fills the array paths with the currently selected filepaths.
GetFilter
string
GetFilter
( )
Returns the filter string.
GetFilterIndex
integer
GetFilterIndex
( )
Returns the current filter index (zero-based).
GetPath
string
GetPath
( )
Gets the currently-selected directory or filename.
GetPaths
GetPaths
(
array &
$paths
)
Fills the array paths with the selected directories and filenames.
GetRootId
wxTreeItemId
GetRootId
( )
Returns the root id for the tree control.
GetTreeCtrl
wxTreeCtrl
&
GetTreeCtrl
( )
Returns a pointer to the tree control.
Init
Init
( )
Initializes variables.
ReCreateTree
ReCreateTree
( )
Collapse and expand the tree, thus re-creating it from scratch.
SelectPath
SelectPath
(
string
$path
,
bool
$select
=
true
)
Selects the given item.
SelectPaths
SelectPaths
(
array
$paths
)
Selects only the specified paths, clearing any previous selection.
SetDefaultPath
SetDefaultPath
(
string
$path
)
Sets the default path.
SetFilter
SetFilter
(
string
$filter
)
Sets the filter string.
SetFilterIndex
SetFilterIndex
(
integer
$n
)
Sets the current filter index (zero-based).
SetPath
SetPath
(
string
$path
)
Sets the current path.
ShowHidden
ShowHidden
(
bool
$show
)
UnselectAll
UnselectAll
( )
Removes the selection from all currently selected items.