FileInputControl Class Reference#include <FileInputControl.h>
Inheritance diagram for FileInputControl:
[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 ControlBase * | selectedFile (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
|
FileInputControl & | operator= (const FileInputControl &) |
| don't call
|
Constructor & Destructor Documentation
FileInputControl::FileInputControl |
( |
|
) |
[inline] |
|
FileInputControl::FileInputControl |
( |
const std::string & |
nm, |
|
|
const std::string & |
desc, |
|
|
const std::string & |
path, |
|
|
std::string * |
store = NULL |
|
) |
[inline] |
|
Member Function Documentation
virtual void FileInputControl::clearLastInput |
( |
|
) |
[inline, virtual] |
|
virtual const std::string& FileInputControl::getLastInput |
( |
|
) |
[inline, virtual] |
|
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
The documentation for this class was generated from the following file:
|