Homepage Demos Overview Downloads Tutorials Reference
Credits

FileInputControl Class Reference

#include <FileInputControl.h>

Inheritance diagram for FileInputControl:

Inheritance graph
[legend]
List of all members.

Detailed Description

Upon activation, allows user to browse files and select one; stores path in a string.

Definition at line 9 of file FileInputControl.h.

Public Member Functions

 FileInputControl ()
 Constructor.
 FileInputControl (const std::string &nm, const std::string &desc, const std::string &path, std::string *store=NULL)
 Constructor.
virtual const std::string & getLastInput ()
 returns the path to file last selected
virtual void clearLastInput ()
 clears the last input (i.e. so you can easily tell later if new input is entered)
virtual void setStore (std::string *store)
 pass pointer to an external string you wish to have set when a file is selected; NULL otherwise

Protected Member Functions

virtual ControlBaseselectedFile (const std::string &f)
 the big money function - by default calls the parent if it exists, otherwise nothing

Protected Attributes

std::string * file
 if we're supposed to store in an external string, this will point to it, otherwise NULL
std::string myfile
 stores last file selected

Private Member Functions

 FileInputControl (const FileInputControl &)
 don't call
FileInputControloperator= (const FileInputControl &)
 don't call


Constructor & Destructor Documentation

FileInputControl::FileInputControl  )  [inline]
 

Constructor.

Definition at line 12 of file FileInputControl.h.

FileInputControl::FileInputControl const std::string &  nm,
const std::string &  desc,
const std::string &  path,
std::string *  store = NULL
[inline]
 

Constructor.

Definition at line 17 of file FileInputControl.h.

FileInputControl::FileInputControl const FileInputControl  )  [private]
 

don't call


Member Function Documentation

virtual void FileInputControl::clearLastInput  )  [inline, virtual]
 

clears the last input (i.e. so you can easily tell later if new input is entered)

Definition at line 25 of file FileInputControl.h.

Referenced by WaypointWalkControl::refresh().

virtual const std::string& FileInputControl::getLastInput  )  [inline, virtual]
 

returns the path to file last selected

Definition at line 22 of file FileInputControl.h.

Referenced by WaypointWalkControl::refresh(), WalkCalibration::refresh(), and PostureEditor::refresh().

FileInputControl& FileInputControl::operator= const FileInputControl  )  [private]
 

don't call

virtual ControlBase* FileInputControl::selectedFile const std::string &  f  )  [inline, protected, virtual]
 

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 from FileBrowserControl.

Definition at line 31 of file FileInputControl.h.

Referenced by clearLastInput().

virtual void FileInputControl::setStore std::string *  store  )  [inline, virtual]
 

pass pointer to an external string you wish to have set when a file is selected; NULL otherwise

Definition at line 28 of file FileInputControl.h.


Member Data Documentation

std::string* FileInputControl::file [protected]
 

if we're supposed to store in an external string, this will point to it, otherwise NULL

Definition at line 38 of file FileInputControl.h.

Referenced by FileInputControl(), selectedFile(), and setStore().

std::string FileInputControl::myfile [protected]
 

stores last file selected

Definition at line 39 of file FileInputControl.h.

Referenced by FileInputControl(), and selectedFile().


The documentation for this class was generated from the following file:

Tekkotsu v2.2
Generated Tue Oct 19 14:20:17 2004 by Doxygen 1.3.9.1