Stellarium  0.16.1
List of all members | Signals | Public Member Functions
TuiNodeActivate Class Reference

Allows navigation but also sends a signal to a specified object when the return key is pressed. More...

#include <TuiNodeActivate.hpp>

+ Inheritance diagram for TuiNodeActivate:
+ Collaboration diagram for TuiNodeActivate:

Signals

void activate ()
 

Public Member Functions

 TuiNodeActivate (const QString &text, QObject *receiver, const char *method, TuiNode *parent=Q_NULLPTR, TuiNode *prev=Q_NULLPTR)
 Create a TuiNodeActivate node. More...
 
virtual TuiNodeResponse handleKey (int key)
 
virtual QString getDisplayText () const
 
- Public Member Functions inherited from TuiNode
 TuiNode (const QString &text, TuiNode *parent=Q_NULLPTR, TuiNode *prev=Q_NULLPTR)
 Create a TuiNode. More...
 
virtual TuiNodeResponse navigation (int key)
 
virtual TuiNodegetParentNode () const
 
virtual void setParentNode (TuiNode *n)
 
virtual TuiNodegetChildNode () const
 
virtual void setChildNode (TuiNode *n)
 This also takes ownership of the child through OObject->setParent. More...
 
virtual TuiNodegetPrevNode () const
 
virtual void setPrevNode (TuiNode *n)
 
virtual TuiNodegetNextNode () 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
 

Additional Inherited Members

- Protected Member Functions inherited from TuiNode
void updateNodeNumber ()
 Updates nodeNumber, ancestorNumbers and prefixText. More...
 
- 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 sends a signal to a specified object when the return key is pressed.

Definition at line 28 of file TuiNodeActivate.hpp.

Constructor & Destructor Documentation

TuiNodeActivate::TuiNodeActivate ( const QString &  text,
QObject *  receiver,
const char *  method,
TuiNode parent = Q_NULLPTR,
TuiNode prev = Q_NULLPTR 
)

Create a TuiNodeActivate node.

Parameters
textthe text to be displayed for this node
receivera QObject which will receive the activation signal
methodthe method in the receiver which will be called when the node is activated. Note that this should be passed using the SLOT() macro.
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: