TuiNode.hpp   TuiNode.hpp 
skipping to change at line 51 skipping to change at line 51
//! it may be used to edit data of one sort of another. //! it may be used to edit data of one sort of another.
class TuiNode : public QObject class TuiNode : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
//! Create a TuiNode //! Create a TuiNode
//! @param text the text to display for this node //! @param text the text to display for this node
//! @param parent the node for the parent menu item //! @param parent the node for the parent menu item
//! @param prev the previous node in the current menu (typically //! @param prev the previous node in the current menu (typically
//! shares the same parent) //! shares the same parent)
TuiNode(const QString& text, TuiNode* parent=NULL, TuiNode* prev=NUL L); TuiNode(const QString& text, TuiNode* parent=Q_NULLPTR, TuiNode* pre v=Q_NULLPTR);
virtual TuiNodeResponse handleKey(int key); virtual TuiNodeResponse handleKey(int key);
virtual TuiNodeResponse navigation(int key); virtual TuiNodeResponse navigation(int key);
virtual QString getDisplayText(); virtual QString getDisplayText() const;
virtual TuiNode* getParentNode() {return parentNode;} virtual TuiNode* getParentNode() const {return parentNode;}
virtual void setParentNode(TuiNode* n) {parentNode=n; updateNodeNumb er();} virtual void setParentNode(TuiNode* n) {parentNode=n; updateNodeNumb er();}
virtual TuiNode* getChildNode() {return childNode;} virtual TuiNode* getChildNode() const {return childNode;}
//! This also takes ownership of the child through OObject->setParen t //! This also takes ownership of the child through OObject->setParen t
virtual void setChildNode(TuiNode* n) {childNode=n; n->setParent(thi s);} virtual void setChildNode(TuiNode* n) {childNode=n; n->setParent(thi s);}
virtual TuiNode* getPrevNode() {return prevNode;} virtual TuiNode* getPrevNode() const {return prevNode;}
virtual void setPrevNode(TuiNode* n) {prevNode=n; updateNodeNumber() ;} virtual void setPrevNode(TuiNode* n) {prevNode=n; updateNodeNumber() ;}
virtual TuiNode* getNextNode() {return nextNode;} virtual TuiNode* getNextNode() const {return nextNode;}
virtual void setNextNode(TuiNode* n) {nextNode=n;} virtual void setNextNode(TuiNode* n) {nextNode=n;}
//! Set prevNode to the last of the chain of nextNode-s. //! Set prevNode to the last of the chain of nextNode-s.
//! Call for the first node of a menu after all others have been add ed. //! Call for the first node of a menu after all others have been add ed.
virtual void loopToTheLast(); virtual void loopToTheLast();
int getNodeNumber() {return nodeNumber;} int getNodeNumber() const {return nodeNumber;}
QList<int> getAncestorsNumbers() {return ancestorsNumbers;} QList<int> getAncestorsNumbers() const {return ancestorsNumbers;}
protected: protected:
TuiNode* parentNode; TuiNode* parentNode;
TuiNode* childNode; TuiNode* childNode;
TuiNode* prevNode; TuiNode* prevNode;
TuiNode* nextNode; TuiNode* nextNode;
//! Text of the prefix containing the hierarchical node number. //! Text of the prefix containing the hierarchical node number.
QString prefixText; QString prefixText;
QString displayText; QString displayText;
//! Number of the node in the current menu. //! Number of the node in the current menu.
 End of changes. 6 change blocks. 
8 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/