| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <ValueEditControl.h>
Inheritance diagram for ValueEditControl< T >:

Definition at line 16 of file ValueEditControl.h.
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 not have been prompted by doReadStdIn()!) | |
| 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() *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 | |
|
||||||||||||||||
|
constructor
Definition at line 19 of file ValueEditControl.h. References ValueEditControl< T >::copies, ValueEditControl< T >::cur, and ValueEditControl< T >::target. |
|
||||||||||||||||||||
|
constructor
Definition at line 21 of file ValueEditControl.h. References ValueEditControl< T >::copies, ValueEditControl< T >::cur, and ValueEditControl< T >::target. |
|
||||||||||||||||||||||||
|
constructor
Definition at line 23 of file ValueEditControl.h. References ValueEditControl< T >::copies, ValueEditControl< T >::cur, and ValueEditControl< T >::target. |
|
||||||||||
|
copy constructor
Definition at line 25 of file ValueEditControl.h. References ValueEditControl< T >::copies, ValueEditControl< T >::cur, and ValueEditControl< T >::target. |
|
|||||||||
|
destructor
Definition at line 29 of file ValueEditControl.h. |
|
||||||||||||||||
|
reads in current value from target
Reimplemented from ControlBase. Definition at line 32 of file ValueEditControl.h. References ControlBase::activate(), ValueEditControl< T >::cur, erouter, EventRouter::forgetListener(), MotionManager::MC_ID, and ValueEditControl< T >::target. |
Here is the call graph for this function:

|
||||||||||
|
#copies.push_back(t)
Definition at line 113 of file ValueEditControl.h. References ValueEditControl< T >::copies. |
|
|||||||||
|
adds one to the current value
Reimplemented from ControlBase. Definition at line 87 of file ValueEditControl.h. References ValueEditControl< T >::cur, and ValueEditControl< T >::refresh(). |
Here is the call graph for this function:

|
|||||||||
|
subtracts one from the current value
Reimplemented from ControlBase. Definition at line 93 of file ValueEditControl.h. References ValueEditControl< T >::cur, and ValueEditControl< T >::refresh(). |
Here is the call graph for this function:

|
|||||||||
|
if the value of the target!=cur, assigns the current value to the target and all the copies
Reimplemented from ControlBase. Reimplemented in MCValueEditControl< T >. Definition at line 71 of file ValueEditControl.h. References ValueEditControl< T >::copies, ValueEditControl< T >::cur, ValueEditControl< T >::getName(), Socket::printf(), sout, and ValueEditControl< T >::target. |
Here is the call graph for this function:

|
|||||||||
|
returns a reference to the vector copies
Definition at line 112 of file ValueEditControl.h. References ValueEditControl< T >::copies. |
|
|||||||||
|
shows current value
Reimplemented from ControlBase. Definition at line 117 of file ValueEditControl.h. References ControlBase::getName(), and ValueEditControl< T >::target. |
Here is the call graph for this function:

|
|||||||||
|
returns the target pointer
Definition at line 106 of file ValueEditControl.h. References ValueEditControl< T >::target. |
|
||||||||||
|
assignment operator
Definition at line 27 of file ValueEditControl.h. References ValueEditControl< T >::copies, ValueEditControl< T >::cur, ControlBase::operator=(), and ValueEditControl< T >::target. |
Here is the call graph for this function:

|
|||||||||
|
request to continue receiving events so we can modify the value while running
Reimplemented from ControlBase. Definition at line 63 of file ValueEditControl.h. References EventRouter::addListener(), EventBase::buttonEGID, EventBase::deactivateETID, erouter, and ControlBase::pause(). |
Here is the call graph for this function:

|
||||||||||
|
will increment/decrement the current and then assign it to the target when head buttons pressed
Implements EventListener. Definition at line 38 of file ValueEditControl.h. References ValueEditControl< T >::doNextItem(), ValueEditControl< T >::doSelect(), EventBase::getSourceID(), Socket::printf(), and serr. |
Here is the call graph for this function:

|
|||||||||
|
displays current value
Reimplemented from StringInputControl. Definition at line 49 of file ValueEditControl.h. References ValueEditControl< T >::cur, ValueEditControl< T >::getName(), ControlBase::gui_comm, Wireless::isConnected(), Socket::printf(), StringInputControl::refresh(), Socket::sock, sout, ValueEditControl< T >::target, and wireless. |
Here is the call graph for this function:

|
||||||||||
|
sets the target pointer - the object pointed to will be overwritten on activate()
Definition at line 107 of file ValueEditControl.h. References ValueEditControl< T >::target. |
|
||||||||||
|
called when the user has supplied a text string (may not have been prompted by doReadStdIn()!)
Reimplemented from StringInputControl. Definition at line 99 of file ValueEditControl.h. References ValueEditControl< T >::cur, and ValueEditControl< T >::doSelect(). |
Here is the call graph for this function:

|
|||||
|
additional targets
Definition at line 126 of file ValueEditControl.h. |
|
|||||
|
the value to use when set
Definition at line 125 of file ValueEditControl.h. |
|
|||||
|
the main target
Definition at line 124 of file ValueEditControl.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:58:06 2003 by Doxygen 1.3.4 |