|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classTuiNode.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:20:38 2014 Кодировка: Поисковые слова: asteroid |
![]() |
Stellarium 0.12.3
|
TuiNode objects are linked together in a network of nodes to form the structure of a menu which may be navigated using the cursor keys. More...
#include <TuiNode.hpp>
Public Member Functions | |
| TuiNode (const QString &text, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
| Create a TuiNode. More... | |
| virtual TuiNodeResponse | handleKey (int key) |
| virtual TuiNodeResponse | navigation (int key) |
| virtual QString | getDisplayText () |
| 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 () |
Protected Member Functions | |
| void | updateNodeNumber () |
| Updates nodeNumber, ancestorNumbers and prefixText. More... | |
Protected Attributes | |
| 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... | |
TuiNode objects are linked together in a network of nodes to form the structure of a menu which may be navigated using the cursor keys.
Each node has a single line of text which will be displayed when a node is active. Depending on the sub-class for a particular node, it may be used to edit data of one sort of another.
Definition at line 42 of file TuiNode.hpp.
Create a TuiNode.
| text | the text to display for this node |
| parent | the node for the parent menu item |
| prev | the previous node in the current menu (typically shares the same parent) |
|
virtual |
Set prevNode to the last of the chain of nextNode-s.
Call for the first node of a menu after all others have been added.
|
protected |
Updates nodeNumber, ancestorNumbers and prefixText.
|
protected |
Contains the numbers of the parent nodes in the hierarchy.
The last element is the number of the node in the current menu.
Definition at line 83 of file TuiNode.hpp.
|
protected |
Number of the node in the current menu.
Automatically set to 1 if there is no prevNode.
Definition at line 80 of file TuiNode.hpp.
|
protected |
Text of the prefix containing the hierarchical node number.
Definition at line 76 of file TuiNode.hpp.
1.8.3.1