20 #define _TUINODE_HPP_ 1
54 virtual QString getDisplayText();
55 virtual TuiNode* getParentNode() {
return parentNode;}
57 virtual TuiNode* getChildNode() {
return childNode;}
58 virtual void setChildNode(
TuiNode* n) {childNode=n;}
59 virtual TuiNode* getPrevNode() {
return prevNode;}
61 virtual TuiNode* getNextNode() {
return nextNode;}
62 virtual void setNextNode(
TuiNode* n) {nextNode=n;}
int nodeNumber
Number of the node in the current menu.
QString prefixText
Text of the prefix containing the hierarchical node number.
QList< int > ancestorsNumbers
Contains the numbers of the parent nodes in the hierarchy.
TuiNode objects are linked together in a network of nodes to form the structure of a menu which may b...
TuiNode(const QString &text, TuiNode *parent=NULL, TuiNode *prev=NULL)
Create a TuiNode.
virtual void loopToTheLast()
Set prevNode to the last of the chain of nextNode-s.
A TuiNodeResponse contains a flag, "accepted" if a keystroke was accepted And a link to a node...
void updateNodeNumber()
Updates nodeNumber, ancestorNumbers and prefixText.