a widget for exploring directories More...
#include <vtkKWDirectoryExplorer.h>


Public Types | |
| typedef vtkKWCompositeWidget | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual int | OpenDirectory (const char *path) |
| virtual int | RenameDirectory (const char *currentname, const char *newname) |
| virtual int | DeleteDirectory (const char *dirname) |
| virtual int | HasSelection () |
| virtual void | SingleClickOnNodeCallback (const char *node) |
| virtual void | RightClickCallback (int x, int y, const char *node) |
| virtual int | RenameCallback () |
| virtual void | RightClickExploreCallback (const char *) |
| virtual void | TreeKeyNavigationCallback () |
| virtual void | DirectoryOpenedCallback (const char *node) |
| virtual void | DirectorySelectedCallback () |
| virtual void | DirectoryClosedCallback (const char *node) |
| virtual void | CreateNewFolderCallback () |
| virtual void | BackToPreviousDirectoryCallback () |
| virtual void | ForwardToNextDirectoryCallback () |
| virtual void | GoUpDirectoryCallback () |
| virtual int | RemoveSelectedNodeCallback () |
| virtual void | LoadRootDirectoryCallback () |
| virtual void | ScrollToDirectory (const char *prefix) |
Static Public Member Functions | |
| static vtkKWDirectoryExplorer * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkKWDirectoryExplorer * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkKWDirectoryExplorer () | |
| ~vtkKWDirectoryExplorer () | |
| virtual void | CreateWidget () |
| virtual void | LoadRootDirectory () |
| virtual void | BackToRoot () |
| virtual void | SelectDirectoryNode (const char *node, int opennode=1) |
| virtual const char * | ReloadDirectory (const char *node, const char *path) |
| virtual void | OpenWholeTree (const char *node) |
| virtual void | ReloadDirectoryNode (const char *node) |
| virtual void | UpdateDirectoryNode (const char *node) |
| const char * | GetNthSelectedNode (int i) |
| virtual void | UpdateMostRecentDirectoryHistory (const char *node) |
| virtual void | PruneMostRecentDirectoriesInHistory () |
| virtual void | RemoveDirectoryFromHistory (const char *node) |
| virtual void | PopulateContextMenu (vtkKWMenu *menu, const char *) |
| int | IsNodeSelected (const char *node) |
| const char * | OpenDirectoryInternal (const char *dirname, int select) |
Protected Attributes | |
| vtkKWDirectoryExplorerInternals * | Internals |
| int | MaximumNumberOfDirectoriesInHistory |
|
| |
| enum | { DirectorySelectedEvent = 10000, DirectoryOpenedEvent, DirectoryClosedEvent, DirectoryCreatedEvent, DirectoryDeletedEvent } |
| char * | DirectorySelectedCommand |
| char * | DirectoryOpenedCommand |
| char * | DirectoryClosedCommand |
| char * | DirectoryCreatedCommand |
| char * | DirectoryDeletedCommand |
| char * | DirectoryRenamedCommand |
| vtkKWToolbar * | Toolbar |
| vtkKWTreeWithScrollbars * | DirectoryTree |
| vtkKWPushButton * | CreateFolderButton |
| vtkKWPushButtonWithMenu * | BackButton |
| vtkKWPushButtonWithMenu * | ForwardButton |
| vtkKWPushButton * | UpButton |
| vtkKWMenu * | ContextMenu |
| virtual void | SetSelectionMode (int) |
| virtual void | SetSelectionModeToSingle () |
| virtual void | SetSelectionModeToMultiple () |
| virtual const char * | GetSelectedDirectory () |
| virtual int | GetNumberOfSelectedDirectories () |
| virtual const char * | GetNthSelectedDirectory (int i) |
| virtual void | SelectDirectory (const char *) |
| virtual void | DeselectDirectory (const char *) |
| virtual void | ClearSelection () |
| virtual void | SetMaximumNumberOfDirectoriesInHistory (int) |
| virtual int | GetMaximumNumberOfDirectoriesInHistory () |
| virtual void | GetSelectionBackgroundColor (double *r, double *g, double *b) |
| virtual double * | GetSelectionBackgroundColor () |
| virtual void | SetSelectionBackgroundColor (double r, double g, double b) |
| virtual void | SetSelectionBackgroundColor (double rgb[3]) |
| virtual void | GetSelectionForegroundColor (double *r, double *g, double *b) |
| virtual double * | GetSelectionForegroundColor () |
| virtual void | SetSelectionForegroundColor (double r, double g, double b) |
| virtual void | SetSelectionForegroundColor (double rgb[3]) |
| virtual void | SetTreeWidth (int) |
| virtual int | GetTreeWidth () |
| virtual void | SetTreeHeight (int) |
| virtual int | GetTreeHeight () |
| virtual void | GetTreeBackgroundColor (double *r, double *g, double *b) |
| virtual double * | GetTreeBackgroundColor () |
| virtual void | SetTreeBackgroundColor (double r, double g, double b) |
| virtual void | SetTreeBackgroundColor (double rgb[3]) |
| virtual void | SetDirectorySelectedCommand (vtkObject *obj, const char *method) |
| virtual void | SetDirectoryOpenedCommand (vtkObject *obj, const char *method) |
| virtual void | SetDirectoryClosedCommand (vtkObject *obj, const char *method) |
| virtual void | SetDirectoryCreatedCommand (vtkObject *obj, const char *method) |
| virtual void | SetDirectoryDeletedCommand (vtkObject *obj, const char *method) |
| virtual void | SetDirectoryRenamedCommand (vtkObject *obj, const char *method) |
| virtual void | Focus () |
| virtual int | HasFocus () |
| virtual vtkKWToolbar * | GetToolbar () |
| virtual vtkKWPushButton * | GetCreateFolderButton () |
| virtual vtkKWPushButtonWithMenu * | GetBackButton () |
| virtual vtkKWPushButtonWithMenu * | GetForwardButton () |
| virtual vtkKWPushButton * | GetUpButton () |
| virtual void | AddBindingToInternalWidget (const char *event, vtkObject *obj, const char *method) |
| virtual void | OpenDirectoryNodeCallback (const char *node, int offsetFromCurrentIndex) |
| virtual void | UpdateEnableState () |
| virtual void | Update () |
| virtual const char * | ReloadDirectory (const char *parentnode, const char *dirname, int select) |
| virtual void | OpenSubDirectory (const char *parentnode, const char *fullname, int select=1) |
| virtual void | OpenDirectoryNode (const char *node, int select=1, int opennode=1) |
| virtual void | AddDirectoryNode (const char *parentnode, const char *node, const char *text, const char *fullname, vtkKWIcon *nodeicon) |
| virtual void | InvokeDirectorySelectedCommand (const char *path) |
| virtual void | InvokeDirectoryOpenedCommand (const char *path) |
| virtual void | InvokeDirectoryClosedCommand (const char *path) |
| virtual void | InvokeDirectoryCreatedCommand (const char *path) |
| virtual void | InvokeDirectoryDeletedCommand (const char *path) |
| virtual void | InvokeDirectoryRenamedCommand (const char *oldname, const char *newname) |
a widget for exploring directories
This class contains a hierarchy structure to explore directories of a file systems. It also includes a toolbar, which offers Back/Forward browsing of visited directories and functions to Create/Delete directories.
Definition at line 46 of file vtkKWDirectoryExplorer.h.
Reimplemented from vtkKWCompositeWidget.
Definition at line 51 of file vtkKWDirectoryExplorer.h.
| anonymous enum |
Events are passed the same parameters as the commands, if any. BTX
| DirectorySelectedEvent | |
| DirectoryOpenedEvent | |
| DirectoryClosedEvent | |
| DirectoryCreatedEvent | |
| DirectoryDeletedEvent |
Definition at line 150 of file vtkKWDirectoryExplorer.h.
| vtkKWDirectoryExplorer::vtkKWDirectoryExplorer | ( | ) | [protected] |
| vtkKWDirectoryExplorer::~vtkKWDirectoryExplorer | ( | ) | [protected] |
| static vtkKWDirectoryExplorer* vtkKWDirectoryExplorer::New | ( | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
| virtual const char* vtkKWDirectoryExplorer::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
| static int vtkKWDirectoryExplorer::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
| virtual int vtkKWDirectoryExplorer::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
| static vtkKWDirectoryExplorer* vtkKWDirectoryExplorer::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
| void vtkKWDirectoryExplorer::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
| virtual int vtkKWDirectoryExplorer::OpenDirectory | ( | const char * | path | ) | [virtual] |
Open a directory given the full path. Return 1 on success, 0 otherwise
| virtual int vtkKWDirectoryExplorer::RenameDirectory | ( | const char * | currentname, | |
| const char * | newname | |||
| ) | [virtual] |
Rename a directory name, given the current and new name of the directory. Return 1 on success, 0 otherwise
| virtual int vtkKWDirectoryExplorer::DeleteDirectory | ( | const char * | dirname | ) | [virtual] |
Remove/delete a directory. Return 1 on success, 0 otherwise
| virtual void vtkKWDirectoryExplorer::SetSelectionMode | ( | int | ) | [virtual] |
Set/Get the selection mode Valid constants can be found in vtkKWOptions::SelectionModeType.
| virtual void vtkKWDirectoryExplorer::SetSelectionModeToSingle | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetSelectionModeToMultiple | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual int vtkKWDirectoryExplorer::HasSelection | ( | ) | [virtual] |
Return if one (or more) directory is/are selected.
| virtual const char* vtkKWDirectoryExplorer::GetSelectedDirectory | ( | ) | [inline, virtual] |
Get/Set the selected director(ies).
Definition at line 78 of file vtkKWDirectoryExplorer.h.
| virtual int vtkKWDirectoryExplorer::GetNumberOfSelectedDirectories | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual const char* vtkKWDirectoryExplorer::GetNthSelectedDirectory | ( | int | i | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SelectDirectory | ( | const char * | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::DeselectDirectory | ( | const char * | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::ClearSelection | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetMaximumNumberOfDirectoriesInHistory | ( | int | ) | [virtual] |
Set/Get the maximum number of directories that will be stored in back/forward history list.
| virtual int vtkKWDirectoryExplorer::GetMaximumNumberOfDirectoriesInHistory | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::GetSelectionBackgroundColor | ( | double * | r, | |
| double * | g, | |||
| double * | b | |||
| ) | [virtual] |
Set/Get the selection background and foreground colors.
| virtual double* vtkKWDirectoryExplorer::GetSelectionBackgroundColor | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetSelectionBackgroundColor | ( | double | r, | |
| double | g, | |||
| double | b | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetSelectionBackgroundColor | ( | double | rgb[3] | ) | [inline, virtual] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 99 of file vtkKWDirectoryExplorer.h.
| virtual void vtkKWDirectoryExplorer::GetSelectionForegroundColor | ( | double * | r, | |
| double * | g, | |||
| double * | b | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual double* vtkKWDirectoryExplorer::GetSelectionForegroundColor | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetSelectionForegroundColor | ( | double | r, | |
| double | g, | |||
| double | b | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetSelectionForegroundColor | ( | double | rgb[3] | ) | [inline, virtual] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 104 of file vtkKWDirectoryExplorer.h.
| virtual void vtkKWDirectoryExplorer::SetTreeWidth | ( | int | ) | [virtual] |
Convenience method to Set/Get the width (in chars) and height (in lines) of the tree widget.
| virtual int vtkKWDirectoryExplorer::GetTreeWidth | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetTreeHeight | ( | int | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual int vtkKWDirectoryExplorer::GetTreeHeight | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::GetTreeBackgroundColor | ( | double * | r, | |
| double * | g, | |||
| double * | b | |||
| ) | [virtual] |
Convenience method to Set/Get the tree background color.
| virtual double* vtkKWDirectoryExplorer::GetTreeBackgroundColor | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetTreeBackgroundColor | ( | double | r, | |
| double | g, | |||
| double | b | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetTreeBackgroundColor | ( | double | rgb[3] | ) | [inline, virtual] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 122 of file vtkKWDirectoryExplorer.h.
| virtual void vtkKWDirectoryExplorer::SetDirectorySelectedCommand | ( | vtkObject * | obj, | |
| const char * | method | |||
| ) | [virtual] |
Specifies selection-related commands to associate with the widget. DirectorySelected is called whenever the selection is changed or cleared. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. - DirectorySelected is passed the first selected directory (const char ). - DirectoryOpened and DirectoryClosed are passed the directory being opened or closed (const char *). - DirectoryAdded and DirectoryDeleted are passed the directory that was added or removed (const char *). - DirectoryRenamed is passed the preview and new name (path) of the directory that was renamed (const char *, const char ).
| virtual void vtkKWDirectoryExplorer::SetDirectoryOpenedCommand | ( | vtkObject * | obj, | |
| const char * | method | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetDirectoryClosedCommand | ( | vtkObject * | obj, | |
| const char * | method | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetDirectoryCreatedCommand | ( | vtkObject * | obj, | |
| const char * | method | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetDirectoryDeletedCommand | ( | vtkObject * | obj, | |
| const char * | method | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::SetDirectoryRenamedCommand | ( | vtkObject * | obj, | |
| const char * | method | |||
| ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::Focus | ( | ) | [virtual] |
Set focus to the directory widget component of this widget.
Reimplemented from vtkKWWidget.
| virtual int vtkKWDirectoryExplorer::HasFocus | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
Reimplemented from vtkKWWidget.
| virtual vtkKWToolbar* vtkKWDirectoryExplorer::GetToolbar | ( | ) | [virtual] |
Get the toolbar object.
| virtual vtkKWPushButton* vtkKWDirectoryExplorer::GetCreateFolderButton | ( | ) | [virtual] |
Get the button objects. DO NOT modify the callbacks, these accessors are provided to change the button icons, for example.
| virtual vtkKWPushButtonWithMenu* vtkKWDirectoryExplorer::GetBackButton | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual vtkKWPushButtonWithMenu* vtkKWDirectoryExplorer::GetForwardButton | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual vtkKWPushButton* vtkKWDirectoryExplorer::GetUpButton | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::AddBindingToInternalWidget | ( | const char * | event, | |
| vtkObject * | obj, | |||
| const char * | method | |||
| ) | [virtual] |
Add event binding to the internal component widget for the directory hierarchy, so that these events will be invoked directly from the directory component of this widget.
| virtual void vtkKWDirectoryExplorer::OpenDirectoryNodeCallback | ( | const char * | node, | |
| int | offsetFromCurrentIndex | |||
| ) | [virtual] |
Callback, do NOT use. When the dropdown menu button of the Back/Forward buttons is clicked, navigate to the corresponding directory is the history list. 'node' is a pointer to the unique directory node string, 'offsetFromCurrentIndex' is the offset from current directory index in history list.
| virtual void vtkKWDirectoryExplorer::SingleClickOnNodeCallback | ( | const char * | node | ) | [virtual] |
Callback, do NOT use. When the node selection is changed in the directory tree, the corresponding directory is refreshed, loading any new files or directories underneath it.
| virtual void vtkKWDirectoryExplorer::RightClickCallback | ( | int | x, | |
| int | y, | |||
| const char * | node | |||
| ) | [virtual] |
Callback, do NOT use. Right-click to popup context menu.
| virtual int vtkKWDirectoryExplorer::RenameCallback | ( | ) | [virtual] |
Callback, do NOT use. Rename directory node from right-click context menu.
| virtual void vtkKWDirectoryExplorer::RightClickExploreCallback | ( | const char * | ) | [virtual] |
Callback, do NOT use. Launch native explorer from right-click context menu.
| virtual void vtkKWDirectoryExplorer::TreeKeyNavigationCallback | ( | ) | [virtual] |
Callback, do NOT use. When the Navigation keys (Up/Down, Home/End, Prior(PageUp)/Next(PageDown)) are pressed. This is used to setup logic to update the new selected node after the KeyPress events.
| virtual void vtkKWDirectoryExplorer::DirectoryOpenedCallback | ( | const char * | node | ) | [virtual] |
Callback, do NOT use. When a node is opened in the directory tree, the corresponding directory is refreshed, loading new files and directories.
| virtual void vtkKWDirectoryExplorer::DirectorySelectedCallback | ( | ) | [virtual] |
Callback, do NOT use. When a node selection is changed in the directory tree.
| virtual void vtkKWDirectoryExplorer::DirectoryClosedCallback | ( | const char * | node | ) | [virtual] |
Callback, do NOT use. When a node is closed in the directory tree. Also need refreshing the contents of the corresponding directory.
| virtual void vtkKWDirectoryExplorer::CreateNewFolderCallback | ( | ) | [virtual] |
Callback, do NOT use. When the "Create New Folder" button is clicked, a dialog is displayed prompting the user for the name of the new directory. If the user inputs a valid dir name, create the new directory, add it to the dir tree, and select the node.
| virtual void vtkKWDirectoryExplorer::BackToPreviousDirectoryCallback | ( | ) | [virtual] |
Callback, do NOT use. When the "Back to previous directory" button is clicked, navigate to the previously visited directory. A history of visited directories is saved in memory.
| virtual void vtkKWDirectoryExplorer::ForwardToNextDirectoryCallback | ( | ) | [virtual] |
Callback, do NOT use. When the "Go to next directory" button is clicked, navigate to next directory in the history list.
| virtual void vtkKWDirectoryExplorer::GoUpDirectoryCallback | ( | ) | [virtual] |
Callback, do NOT use. When the "Go up one directory" button is clicked, navigate to the parent directory of the currently selected directory.
| virtual int vtkKWDirectoryExplorer::RemoveSelectedNodeCallback | ( | ) | [virtual] |
Callback, do NOT use. When the 'Delete' key is pressed, remove the selected item from the dir tree/file list.
| virtual void vtkKWDirectoryExplorer::LoadRootDirectoryCallback | ( | ) | [virtual] |
Callback, do NOT use.
| virtual void vtkKWDirectoryExplorer::UpdateEnableState | ( | ) | [virtual] |
Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc.
Reimplemented from vtkKWWidget.
| virtual void vtkKWDirectoryExplorer::Update | ( | ) | [virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::ScrollToDirectory | ( | const char * | prefix | ) | [virtual] |
Given the prefix of a sub-folder name of the current selected directory, this function will make the corresponding child node for this sub-folder visible in the window.
| virtual void vtkKWDirectoryExplorer::CreateWidget | ( | ) | [protected, virtual] |
Create the widget.
Reimplemented from vtkKWCompositeWidget.
| virtual void vtkKWDirectoryExplorer::LoadRootDirectory | ( | ) | [protected, virtual] |
Load root directory. For Win32, this will load the drives; for *nix, this will load root "/" directory
| virtual void vtkKWDirectoryExplorer::BackToRoot | ( | ) | [protected, virtual] |
Close all the nodes up to root level: drives for Win32; '/' for *nix
| virtual void vtkKWDirectoryExplorer::SelectDirectoryNode | ( | const char * | node, | |
| int | opennode = 1 | |||
| ) | [protected, virtual] |
When the node selection is changed in the directory tree, the corresponding directory is refreshed, loading any new files or directories underneath it.
| virtual const char* vtkKWDirectoryExplorer::ReloadDirectory | ( | const char * | node, | |
| const char * | path | |||
| ) | [protected, virtual] |
If the directory is already loaded in the tree, navigate to and reload this input directory; if not, this function will call OpenDirectory(path) to open this directory. 'node' is a pointer to the node string (can be NULL), 'path' a pointer to the absolute path to the directory. Return the node associated with this directory.
| virtual const char* vtkKWDirectoryExplorer::ReloadDirectory | ( | const char * | parentnode, | |
| const char * | dirname, | |||
| int | select | |||
| ) | [protected, virtual] |
Reload a directory node given the parent node, and the fullpath. This is used to open the sub directory node of a parent node. 'select' is a flag to indicate whether to select this sub node after opening it. Return the node opened.
| virtual void vtkKWDirectoryExplorer::OpenSubDirectory | ( | const char * | parentnode, | |
| const char * | fullname, | |||
| int | select = 1 | |||
| ) | [protected, virtual] |
Open a subdirectory of a parent tree node. 'parentnode' is the parent node of this directory, 'fullname' is the full path name of this sub-directory, 'select' a flag to indicate whether to select this sub node after opening it.
| virtual void vtkKWDirectoryExplorer::OpenDirectoryNode | ( | const char * | node, | |
| int | select = 1, |
|||
| int | opennode = 1 | |||
| ) | [protected, virtual] |
This is the main funtion used to find all the directories and adding all the corresponding node to the dir tree.
| virtual void vtkKWDirectoryExplorer::OpenWholeTree | ( | const char * | node | ) | [protected, virtual] |
Open the node, including all its parent nodes.
| virtual void vtkKWDirectoryExplorer::ReloadDirectoryNode | ( | const char * | node | ) | [protected, virtual] |
Calling OpenDirectoryNode after centain logic to determine whether to open the whole tree.
| virtual void vtkKWDirectoryExplorer::UpdateDirectoryNode | ( | const char * | node | ) | [protected, virtual] |
This is the actual funtion adding all the nodes to the tree, called from OpenDirectoryNode.
| virtual void vtkKWDirectoryExplorer::AddDirectoryNode | ( | const char * | parentnode, | |
| const char * | node, | |||
| const char * | text, | |||
| const char * | fullname, | |||
| vtkKWIcon * | nodeicon | |||
| ) | [protected, virtual] |
Add a node to the dir tree.
| const char* vtkKWDirectoryExplorer::GetNthSelectedNode | ( | int | i | ) | [protected] |
Get one node from a multiple selection of nodes. An error will be generated if the index is out of range.
| virtual void vtkKWDirectoryExplorer::UpdateMostRecentDirectoryHistory | ( | const char * | node | ) | [protected, virtual] |
Update the directory history list given the most recent node
| virtual void vtkKWDirectoryExplorer::PruneMostRecentDirectoriesInHistory | ( | ) | [protected, virtual] |
Update directory history list according to the MaximumNumberOfDirectoriesInHistory
| virtual void vtkKWDirectoryExplorer::RemoveDirectoryFromHistory | ( | const char * | node | ) | [protected, virtual] |
Remove a directory node from the most recent history list
| virtual void vtkKWDirectoryExplorer::PopulateContextMenu | ( | vtkKWMenu * | menu, | |
| const char * | ||||
| ) | [protected, virtual] |
Populate the context menu.
| int vtkKWDirectoryExplorer::IsNodeSelected | ( | const char * | node | ) | [protected] |
Check if the node is one of the selected nodes.
| const char* vtkKWDirectoryExplorer::OpenDirectoryInternal | ( | const char * | dirname, | |
| int | select | |||
| ) | [protected] |
Open the directory. -dirname, the directory that is going to be opened -select, is the flag to whether select this directory return a node for this directory
| virtual void vtkKWDirectoryExplorer::InvokeDirectorySelectedCommand | ( | const char * | path | ) | [protected, virtual] |
Invoke Commands
| virtual void vtkKWDirectoryExplorer::InvokeDirectoryOpenedCommand | ( | const char * | path | ) | [protected, virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::InvokeDirectoryClosedCommand | ( | const char * | path | ) | [protected, virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::InvokeDirectoryCreatedCommand | ( | const char * | path | ) | [protected, virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::InvokeDirectoryDeletedCommand | ( | const char * | path | ) | [protected, virtual] |
Events are passed the same parameters as the commands, if any. BTX
| virtual void vtkKWDirectoryExplorer::InvokeDirectoryRenamedCommand | ( | const char * | oldname, | |
| const char * | newname | |||
| ) | [protected, virtual] |
Events are passed the same parameters as the commands, if any. BTX
char* vtkKWDirectoryExplorer::DirectorySelectedCommand [protected] |
Commands
Definition at line 380 of file vtkKWDirectoryExplorer.h.
char* vtkKWDirectoryExplorer::DirectoryOpenedCommand [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 381 of file vtkKWDirectoryExplorer.h.
char* vtkKWDirectoryExplorer::DirectoryClosedCommand [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 382 of file vtkKWDirectoryExplorer.h.
char* vtkKWDirectoryExplorer::DirectoryCreatedCommand [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 383 of file vtkKWDirectoryExplorer.h.
char* vtkKWDirectoryExplorer::DirectoryDeletedCommand [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 384 of file vtkKWDirectoryExplorer.h.
char* vtkKWDirectoryExplorer::DirectoryRenamedCommand [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 385 of file vtkKWDirectoryExplorer.h.
vtkKWDirectoryExplorerInternals* vtkKWDirectoryExplorer::Internals [protected] |
Internal PIMPL class for STL purposes.
Reimplemented from vtkKWCoreWidget.
Definition at line 400 of file vtkKWDirectoryExplorer.h.
vtkKWToolbar* vtkKWDirectoryExplorer::Toolbar [protected] |
GUI
Definition at line 404 of file vtkKWDirectoryExplorer.h.
Events are passed the same parameters as the commands, if any. BTX
Definition at line 405 of file vtkKWDirectoryExplorer.h.
Events are passed the same parameters as the commands, if any. BTX
Definition at line 406 of file vtkKWDirectoryExplorer.h.
Events are passed the same parameters as the commands, if any. BTX
Definition at line 407 of file vtkKWDirectoryExplorer.h.
Events are passed the same parameters as the commands, if any. BTX
Definition at line 408 of file vtkKWDirectoryExplorer.h.
vtkKWPushButton* vtkKWDirectoryExplorer::UpButton [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 409 of file vtkKWDirectoryExplorer.h.
vtkKWMenu* vtkKWDirectoryExplorer::ContextMenu [protected] |
Events are passed the same parameters as the commands, if any. BTX
Definition at line 410 of file vtkKWDirectoryExplorer.h.
int vtkKWDirectoryExplorer::MaximumNumberOfDirectoriesInHistory [protected] |
Member variables
Definition at line 414 of file vtkKWDirectoryExplorer.h.
1.6.1