Stellarium 0.15.2
List of all members | Signals | Public Member Functions
TuiNodeFloat Class Reference

Allows navigation but also editing of a float value. More...

#include <TuiNodeFloat.hpp>

+ Inheritance diagram for TuiNodeFloat:
+ Collaboration diagram for TuiNodeFloat:

Signals

void setValue (float b)
 

Public Member Functions

 TuiNodeFloat (const QString &text, QObject *receiver, const char *method, float defValue, float min, float max, float inc, TuiNode *parent=NULL, TuiNode *prev=NULL)
 Create a TuiNodeFloat 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 TuiNodegetParentNode ()
 
virtual void setParentNode (TuiNode *n)
 
virtual TuiNodegetChildNode ()
 
virtual void setChildNode (TuiNode *n)
 This also takes ownership of the child through OObject->setParent. More...
 
virtual TuiNodegetPrevNode ()
 
virtual void setPrevNode (TuiNode *n)
 
virtual TuiNodegetNextNode ()
 
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
 
- Protected Attributes inherited from TuiNode
TuiNodeparentNode
 
TuiNodechildNode
 
TuiNodeprevNode
 
TuiNodenextNode
 
QString prefixText
 Text of the prefix containing the hierarchical node number. More...
 
QString displayText
 
int nodeNumber
 Number of the node in the current menu. More...
 
QList< int > ancestorsNumbers
 Contains the numbers of the parent nodes in the hierarchy. More...
 

Detailed Description

Allows navigation but also editing of a float value.

Definition at line 29 of file TuiNodeFloat.hpp.

Constructor & Destructor Documentation

TuiNodeFloat::TuiNodeFloat ( const QString &  text,
QObject *  receiver,
const char *  method,
float  defValue,
float  min,
float  max,
float  inc,
TuiNode parent = NULL,
TuiNode prev = NULL 
)

Create a TuiNodeFloat node.

Parameters
textthe text to be displayed for this node
receivera QObject which will receive a signal when the value is changed
methodthe method in the receiver which will be called when the value is changed. Note that this should be passed using the SLOT() macro.
defValuethe default value for the node
minthe minimum acceptable value for the node
maxthe maximum acceptable value for the node
incthe increment which will be added and subtracted from the current value when the up and down cursors are used
parentthe node for the parent menu item
prevthe previous node in the current menu (typically shares the same parent)

The documentation for this class was generated from the following file: