Allows navigation but also editing of a float value.
#include <TuiNodeFloat.hpp>
|
| TuiNodeFloat (const QString &text, QObject *receiver, const char *method, float defValue, float min, float max, float inc, TuiNode *parent=Q_NULLPTR, TuiNode *prev=Q_NULLPTR) |
| Create a TuiNodeFloat node. More...
|
|
virtual TuiNodeResponse | handleEditingKey (int key) |
|
virtual QString | getDisplayText () const |
|
| TuiNodeEditable (const QString &text, TuiNode *parent=Q_NULLPTR, TuiNode *prev=Q_NULLPTR) |
|
virtual TuiNodeResponse | handleKey (int key) |
|
| TuiNode (const QString &text, TuiNode *parent=Q_NULLPTR, TuiNode *prev=Q_NULLPTR) |
| Create a TuiNode. More...
|
|
virtual TuiNodeResponse | navigation (int key) |
|
virtual TuiNode * | getParentNode () const |
|
virtual void | setParentNode (TuiNode *n) |
|
virtual TuiNode * | getChildNode () const |
|
virtual void | setChildNode (TuiNode *n) |
| This also takes ownership of the child through OObject->setParent.
|
|
virtual TuiNode * | getPrevNode () const |
|
virtual void | setPrevNode (TuiNode *n) |
|
virtual TuiNode * | getNextNode () const |
|
virtual void | setNextNode (TuiNode *n) |
|
virtual void | loopToTheLast () |
| Set prevNode to the last of the chain of nextNode-s. More...
|
|
int | getNodeNumber () const |
|
QList< int > | getAncestorsNumbers () const |
|
TuiNodeFloat::TuiNodeFloat |
( |
const QString & |
text, |
|
|
QObject * |
receiver, |
|
|
const char * |
method, |
|
|
float |
defValue, |
|
|
float |
min, |
|
|
float |
max, |
|
|
float |
inc, |
|
|
TuiNode * |
parent = Q_NULLPTR , |
|
|
TuiNode * |
prev = Q_NULLPTR |
|
) |
| |
- Parameters
-
text | the text to be displayed for this node |
receiver | a QObject which will receive a signal when the value is changed |
method | the method in the receiver which will be called when the value is changed. Note that this should be passed using the SLOT() macro. |
defValue | the default value for the node |
min | the minimum acceptable value for the node |
max | the maximum acceptable value for the node |
inc | the increment which will be added and subtracted from the current value when the up and down cursors are used |
parent | the node for the parent menu item |
prev | the previous node in the current menu (typically shares the same parent) |