20 #define _TUINODE_HPP_ 1 54 virtual QString getDisplayText();
55 virtual TuiNode* getParentNode() {
return parentNode;}
57 virtual TuiNode* getChildNode() {
return childNode;}
60 virtual TuiNode* getPrevNode() {
return prevNode;}
62 virtual TuiNode* getNextNode() {
return nextNode;}
63 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.
virtual void setChildNode(TuiNode *n)
This also takes ownership of the child through OObject->setParent.
A TuiNodeResponse contains a flag, "accepted" if a keystroke was accepted And a link to a node...
void updateNodeNumber()
Updates nodeNumber, ancestorNumbers and prefixText.