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.

const std::string & getLastInput ()
 returns the path to file last selected

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

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

returns the path to file last selected

Definition at line 22 of file FileInputControl.h.

Referenced by 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 28 of file FileInputControl.h.

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

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

Definition at line 25 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 35 of file FileInputControl.h.

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

std::string FileInputControl::myfile [protected]
 

stores last file selected

Definition at line 36 of file FileInputControl.h.

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


The documentation for this class was generated from the following file:
Tekkotsu v2.0
Generated Wed Jan 21 03:23:12 2004 by Doxygen 1.3.4