| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ValueEditControl< T > Class Template Reference#include <ValueEditControl.h>
Inheritance diagram for ValueEditControl< T >: ![]() Detailed Descriptiontemplate<class T>
allows real-time modification of a value through a pointer
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| ValueEditControl (const std::string &n, T *t) | |
| constructor | |
| ValueEditControl (const std::string &n, const std::string &p, T *t) | |
| constructor | |
| ValueEditControl (const std::string &n, const std::string &d, const std::string &p, T *t) | |
| constructor | |
| ValueEditControl (const ValueEditControl< T > &vec) | |
| copy constructor | |
| ValueEditControl | operator= (const ValueEditControl< T > &vec) |
| assignment operator | |
| virtual | ~ValueEditControl () |
| destructor | |
| virtual ControlBase * | activate (MotionManager::MC_ID display, Socket *gui) |
| reads in current value from target | |
| virtual void | processEvent (const EventBase &e) |
| will increment/decrement the current and then assign it to the target when head buttons pressed | |
| virtual void | refresh () |
| displays current value | |
| virtual void | pause () |
| request to continue receiving events so we can modify the value while running | |
| virtual ControlBase * | doSelect () |
| if the value of the target!=cur, assigns the current value to the target and all the copies | |
| virtual ControlBase * | doNextItem () |
| adds one to the current value | |
| virtual ControlBase * | doPrevItem () |
| subtracts one from the current value | |
| virtual ControlBase * | takeInput (const std::string &str) |
| 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) | |
| virtual std::string | getName () const |
| shows current value | |
Target | |
accessors for the target pointer | |
| virtual T * | getTarget () const |
| returns the target pointer | |
| virtual ValueEditControl & | setTarget (T *t) |
sets the target pointer - the object pointed to will be overwritten on activate(); returns *this | |
Copies | |
accessors for the copies vector, so you can assign the same value to several places if you need to | |
| virtual std::vector< T * > & | getCopies () |
| returns a reference to the vector copies | |
| virtual ValueEditControl & | addCopy (T *t) |
| copies.push_back(t) | |
Protected Attributes | |
| T * | target |
| the main target | |
| T | cur |
| the value to use when set | |
| std::vector< T * > | copies |
| additional targets | |
| virtual ControlBase* ValueEditControl< T >::takeInput | ( | const std::string & | str | ) | [inline, virtual] |
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 StringInputControl.
Definition at line 134 of file ValueEditControl.h.
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:55 2007 by Doxygen 1.4.7 |