Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classTuiNodeActivate.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:35:09 2014 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п |
Stellarium 0.12.3
|
Allows navigation but also sends a signal to a specified object when the return key is pressed. More...
#include <TuiNodeActivate.hpp>
Signals | |
void | activate () |
Public Member Functions | |
TuiNodeActivate (const QString &text, QObject *receiver, const char *method, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
Create a TuiNodeActivate node. More... | |
virtual TuiNodeResponse | handleKey (int key) |
virtual QString | getDisplayText () |
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 TuiNode | |
TuiNode * | parentNode |
TuiNode * | childNode |
TuiNode * | prevNode |
TuiNode * | nextNode |
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... | |
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.
TuiNodeActivate::TuiNodeActivate | ( | const QString & | text, |
QObject * | receiver, | ||
const char * | method, | ||
TuiNode * | parent = NULL , |
||
TuiNode * | prev = NULL |
||
) |
Create a TuiNodeActivate node.
text | the text to be displayed for this node |
receiver | a QObject which will receive the activation signal |
method | the method in the receiver which will be called when the node is activated. Note that this should be passed using the SLOT() macro. |
parent | the node for the parent menu item |
prev | the previous node in the current menu (typically shares the same parent) |