Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
FileBrowserControl Class ReferenceDisplays the contents of a directory in a control menu, probably useful as a baseclass for other controls. More...
Inheritance diagram for FileBrowserControl:
Detailed DescriptionDisplays the contents of a directory in a control menu, probably useful as a baseclass for other controls. Causes the selectedFile() function to be called on the root FileBrowserControl with the selected file Definition at line 11 of file FileBrowserControl.h.
Constructor & Destructor Documentation
constructor pass name and root path Definition at line 15 of file FileBrowserControl.h.
constructor pass name and root path Definition at line 17 of file FileBrowserControl.h. Member Function Documentation
Called when the control is activated (or the control system is reactivating). Takes the id number of a LedMC which the control should use, maintained by Controller. Controls share the display which is passed, and may use the socket gui to communicate with the GUI controller, if it is connected.
Reimplemented from ControlBase. Definition at line 11 of file FileBrowserControl.cc.
adds entries to paths (location relative to root) Definition at line 79 of file FileBrowserControl.cc. Referenced by takeInput().
when the user has trigger an "open selection" - default is to return the hilighted control*/ The value which is returned is then activate()ed and pushed on the Controller's stack Reimplemented from ControlBase. Definition at line 16 of file FileBrowserControl.cc.
returns recurse Definition at line 28 of file FileBrowserControl.h.
returns root Definition at line 31 of file FileBrowserControl.h.
sets a junk menu item to mark this as having submenus, and sets root to path Definition at line 57 of file FileBrowserControl.h. Referenced by FileBrowserControl().
returns the path from root as a string, appends filename Definition at line 100 of file FileBrowserControl.cc.
returns the path from root as a string, with no trailing '/' Definition at line 90 of file FileBrowserControl.cc. Referenced by doSelect(), FileInputControl::invalidInput(), makePath(), and rebuildmenu().
returns true if file matches filt Definition at line 107 of file FileBrowserControl.cc. Referenced by rebuildmenu().
rescans current directory and builds menus Definition at line 132 of file FileBrowserControl.cc. Referenced by activate(), doSelect(), and takeInput().
the big money function - by default calls the parent if it exists, otherwise nothing returning NULL means deactivate, this (default) to stay put, or a different Control if you want a submenu Reimplemented in ConfigurationEditor::LoadSettings, ConfigurationEditor::SaveSettings, DumpFileControl, FileInputControl, LoadCalibration, LoadPostureControl, LoadWalkControl, PlaySoundControl, and RunSequenceControl< SequenceSize >. Definition at line 42 of file FileBrowserControl.h. Referenced by doSelect().
sets filter; remember can only use one wildcard, e.g. *.ext or filename.ext or filename* Definition at line 35 of file FileBrowserControl.h. Referenced by LoadCalibration::LoadCalibration(), LoadPostureControl::LoadPostureControl(), LoadWalkControl::LoadWalkControl(), PlaySoundControl::PlaySoundControl(), PostureEditor::PostureEditor(), RunSequenceControl< SequenceSize >::RunSequenceControl(), and WaypointWalkControl::WaypointWalkControl().
sets recurse Definition at line 27 of file FileBrowserControl.h.
Definition at line 71 of file FileBrowserControl.cc. Referenced by init(), and XWalkEdit::XWalkEdit().
called when the user has supplied a text string (may or may not have been prompted by doReadStdIn()! May not even be active yet - the user can direct the same input to a set of hilighted menus) The value which is returned is then activate()ed and pushed on the Controller's stack Reimplemented from ControlBase. Definition at line 43 of file FileBrowserControl.cc. Referenced by TorqueCalibrate::init(). Member Data Documentation
default "*", only display matching files; only can use one wildcard, e.g. *.ext or filename.ext or filename* Definition at line 63 of file FileBrowserControl.h. Referenced by rebuildmenu(), and setFilter().
list of directories from root Definition at line 61 of file FileBrowserControl.h. Referenced by appendPath(), doSelect(), makePath(), rebuildmenu(), setRoot(), and takeInput().
if true (default), will show directories; if false, subdirectories are hidden Definition at line 59 of file FileBrowserControl.h. Referenced by getRecurse(), rebuildmenu(), and setRecurse().
the path to browse, default "/" Definition at line 60 of file FileBrowserControl.h. Referenced by getRoot(), makePath(), setRoot(), and takeInput(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:08 2016 by Doxygen 1.6.3 |