Stellarium 0.12.3
|
Allows navigation but also editing of an integer value. More...
#include <TuiNodeInt.hpp>
Signals | |
void | setValue (int b) |
Public Member Functions | |
TuiNodeInt (const QString &text, QObject *receiver, const char *method, int defValue, int min, int max, int inc, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
Create a TuiNodeInt node. More... | |
virtual TuiNodeResponse | handleEditingKey (int key) |
virtual QString | getDisplayText () |
Public Member Functions inherited from TuiNodeEditable | |
TuiNodeEditable (const QString &text, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
virtual TuiNodeResponse | handleKey (int key) |
Public Member Functions inherited from TuiNode | |
TuiNode (const QString &text, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
Create a TuiNode. More... | |
virtual TuiNodeResponse | navigation (int key) |
virtual TuiNode * | getParentNode () |
virtual void | setParentNode (TuiNode *n) |
virtual TuiNode * | getChildNode () |
virtual void | setChildNode (TuiNode *n) |
virtual TuiNode * | getPrevNode () |
virtual void | setPrevNode (TuiNode *n) |
virtual TuiNode * | getNextNode () |
virtual void | setNextNode (TuiNode *n) |
virtual void | loopToTheLast () |
Set prevNode to the last of the chain of nextNode-s. More... | |
int | getNodeNumber () |
QList< int > | getAncestorsNumbers () |
Additional Inherited Members | |
Protected Member Functions inherited from TuiNode | |
void | updateNodeNumber () |
Updates nodeNumber, ancestorNumbers and prefixText. More... | |
Protected Attributes inherited from TuiNodeEditable | |
bool | editing |
Allows navigation but also editing of an integer value.
Definition at line 27 of file TuiNodeInt.hpp.
TuiNodeInt::TuiNodeInt | ( | const QString & | text, |
QObject * | receiver, | ||
const char * | method, | ||
int | defValue, | ||
int | min, | ||
int | max, | ||
int | inc, | ||
TuiNode * | parent = NULL , |
||
TuiNode * | prev = NULL |
||
) |
Create a TuiNodeInt node.
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) |