summaryrefslogtreecommitdiffstats
path: root/quanta/components/framewizard/treenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/components/framewizard/treenode.h')
-rw-r--r--quanta/components/framewizard/treenode.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/quanta/components/framewizard/treenode.h b/quanta/components/framewizard/treenode.h
index c2d0f3d6..0d686630 100644
--- a/quanta/components/framewizard/treenode.h
+++ b/quanta/components/framewizard/treenode.h
@@ -18,9 +18,9 @@
#ifndef TREENODE_H
#define TREENODE_H
-#include <qptrlist.h>
-#include <qdict.h>
-#include <qstringlist.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
+#include <tqstringlist.h>
#include "fwglobal.h"
#include "areaattributedb.h"
@@ -30,34 +30,34 @@
*/
class treeNode {
private:
- QString m_label,
+ TQString m_label,
m_parentLabel;
SplitType m_splitType;
- QPtrList<treeNode> m_childrenList;
+ TQPtrList<treeNode> m_childrenList;
areaAttribute *m_atts;
public:
- treeNode(const QString &l=QString::null, const QString &pl=QString::null);
+ treeNode(const TQString &l=TQString::null, const TQString &pl=TQString::null);
~treeNode();
- void addChildNode(const QString &L);
+ void addChildNode(const TQString &L);
void addChildNode(treeNode *n){ m_childrenList.append(n); }
- void removeChildNode(const QString &l, bool autoDelete);
+ void removeChildNode(const TQString &l, bool autoDelete);
void setSplitType(SplitType s) { m_splitType = s; }
- void setLabel(const QString &l) { m_label = l; }
+ void setLabel(const TQString &l) { m_label = l; }
void removeChildren() { m_childrenList.clear(); }
- void setParentLabel(const QString &s){ m_parentLabel = s;}
+ void setParentLabel(const TQString &s){ m_parentLabel = s;}
int childPosition(treeNode* n){ return m_childrenList.find(n); }
bool insertChild(unsigned int pos, treeNode* n) { return m_childrenList.insert( pos, n); }
- QString label() const { return m_label; }
- QString parentLabel() const { return m_parentLabel; }
+ TQString label() const { return m_label; }
+ TQString parentLabel() const { return m_parentLabel; }
SplitType splitType() const { return m_splitType; }
- QPtrList<treeNode> childrenList() { return m_childrenList; }
+ TQPtrList<treeNode> childrenList() { return m_childrenList; }
treeNode* firstChild() { return m_childrenList.first(); }
treeNode* nextChild() { return m_childrenList.next(); }
treeNode* lastChild() { return m_childrenList.last(); }
treeNode* currentChild() { return m_childrenList.current(); }
- treeNode* findChild(const QString &L);
+ treeNode* findChild(const TQString &L);
areaAttribute* atts() { return m_atts; }
@@ -68,18 +68,18 @@ class treeNode {
class tree{
private:
treeNode *m_root;
- QDict<treeNode> m_nodeList;
+ TQDict<treeNode> m_nodeList;
static int nodeId;
public:
tree();
~tree();
treeNode* root() const { return m_root; }
- QString addChildNode(const QString &l);
- bool insertChildNode(const QString &L);
- void removeChildNode(const QString &pl,const QString &l,bool autoDelete);//parent node,child node
- treeNode* findNode(const QString &L);
- areaAttribute* findAreaAttribute(const QString &l){ return findNode(l)->atts(); };
+ TQString addChildNode(const TQString &l);
+ bool insertChildNode(const TQString &L);
+ void removeChildNode(const TQString &pl,const TQString &l,bool autoDelete);//parent node,child node
+ treeNode* findNode(const TQString &L);
+ areaAttribute* findAreaAttribute(const TQString &l){ return findNode(l)->atts(); };
void reset();
void refreshGeometries(treeNode*);
};