Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <StringInputControl.h>
Inheritance diagram for StringInputControl:
Definition at line 10 of file StringInputControl.h.
Public Member Functions | |
StringInputControl (const std::string &n, const std::string &prompt) | |
Constructor. | |
StringInputControl (const std::string &n, const std::string &desc, const std::string &prompt) | |
Constructor. | |
virtual void | refresh () |
called when the child has died and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed | |
virtual ControlBase * | doReadStdIn (const std::string &prompt) |
prompt the user for text input on the current input device (cin, tekkotsu console (sout), or GUI) | |
virtual ControlBase * | takeInput (const std::string &msg) |
called when the user has supplied a text string (may not have been prompted by doReadStdIn()!) | |
virtual std::string | getLastInput () |
returns last call to takeInput() | |
virtual void | setPrompt (const std::string &prompt) |
sets the prompt to give to the user | |
Protected Attributes | |
std::string | lastInput |
stores the last input to takeInput() | |
std::string | userPrompt |
stores the prompt to send out |
|
Constructor.
Definition at line 13 of file StringInputControl.h. |
|
Constructor.
Definition at line 15 of file StringInputControl.h. |
|
prompt the user for text input on the current input device (cin, tekkotsu console (sout), or GUI)
Reimplemented from ControlBase. Definition at line 19 of file StringInputControl.cc. Referenced by refresh(). |
|
returns last call to takeInput()
Definition at line 29 of file StringInputControl.h. Referenced by SensorObserverControl::checkLogFile(), EventLogger::checkLogFile(), WalkCalibration::refresh(), and PostureEditor::refresh(). |
|
called when the child has died and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
Reimplemented from ControlBase. Reimplemented in ValueEditControl< T >. Definition at line 14 of file StringInputControl.cc. Referenced by ValueEditControl< T >::refresh(). |
|
sets the prompt to give to the user
Definition at line 32 of file StringInputControl.h. |
|
called when the user has supplied a text string (may not have been prompted by doReadStdIn()!)
Reimplemented from ControlBase. Reimplemented in SavePostureControl, SaveWalkControl, and ValueEditControl< T >. Definition at line 23 of file StringInputControl.h. Referenced by WalkCalibration::refresh(), PostureEditor::refresh(), SaveWalkControl::takeInput(), and SavePostureControl::takeInput(). |
|
stores the last input to takeInput()
Definition at line 35 of file StringInputControl.h. Referenced by getLastInput(), StringInputControl(), and takeInput(). |
|
stores the prompt to send out
Definition at line 36 of file StringInputControl.h. Referenced by doReadStdIn(), refresh(), setPrompt(), and StringInputControl(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:29 2004 by Doxygen 1.3.4 |