diff options
Diffstat (limited to 'kplato/kptrelation.cc')
-rw-r--r-- | kplato/kptrelation.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kplato/kptrelation.cc b/kplato/kptrelation.cc index e4cf7b26..3814c51c 100644 --- a/kplato/kptrelation.cc +++ b/kplato/kptrelation.cc @@ -23,37 +23,37 @@ #include "kptproject.h" #include "kptcanvasitem.h" -#include <qcanvas.h> -#include <qdom.h> +#include <tqcanvas.h> +#include <tqdom.h> #include <kdebug.h> namespace KPlato { -Relation::Relation(Node *parent, Node *child, Type type, Duration lag) { - m_parent=parent; +Relation::Relation(Node *tqparent, Node *child, Type type, Duration lag) { + m_parent=tqparent; m_child=child; m_type=type; m_lag=lag; } -Relation::Relation(Node *parent, Node *child, Type type) { - m_parent=parent; +Relation::Relation(Node *tqparent, Node *child, Type type) { + m_parent=tqparent; m_child=child; m_type=type; m_lag=Duration(); } Relation::Relation(Relation *rel) { - m_parent=rel->parent(); + m_parent=rel->tqparent(); m_child=rel->child(); m_type=rel->type(); m_lag=rel->lag(); } Relation::~Relation() { - //kdDebug()<<k_funcinfo<<"parent: "<<(m_parent ? m_parent->name():"none")<<" child: "<<(m_child ? m_child->name():"None")<<endl; + //kdDebug()<<k_funcinfo<<"tqparent: "<<(m_parent ? m_parent->name():"none")<<" child: "<<(m_child ? m_child->name():"None")<<endl; if (m_parent) m_parent->takeDependChildNode(this); if (m_child) @@ -65,8 +65,8 @@ void Relation::setType(Type type) { } -bool Relation::load(QDomElement &element, Project &project) { - m_parent = project.findNode(element.attribute("parent-id")); +bool Relation::load(TQDomElement &element, Project &project) { + m_parent = project.findNode(element.attribute("tqparent-id")); if (m_parent == 0) { return false; } @@ -75,13 +75,13 @@ bool Relation::load(QDomElement &element, Project &project) { return false; } if (m_child == m_parent) { - kdDebug()<<k_funcinfo<<"child == parent"<<endl; + kdDebug()<<k_funcinfo<<"child == tqparent"<<endl; return false; } if (!m_parent->legalToLink(m_child)) return false; - QString tr = element.attribute("type"); + TQString tr = element.attribute("type"); if ( tr == "Finish-Start" ) m_type = FinishStart; else if ( tr == "Finish-Finish" ) @@ -94,27 +94,27 @@ bool Relation::load(QDomElement &element, Project &project) { m_lag = Duration::fromString(element.attribute("lag")); if (!m_parent->addDependChildNode(this)) { - kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" parent="<<m_parent->name()<<endl; + kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" tqparent="<<m_parent->name()<<endl; return false; } if (!m_child->addDependParentNode(this)) { m_parent->delDependChildNode(this, false/*do not delete*/); - kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" parent="<<m_parent->name()<<endl; + kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" tqparent="<<m_parent->name()<<endl; return false; } - //kdDebug()<<k_funcinfo<<"Added relation: Child="<<m_child->name()<<" parent="<<m_parent->name()<<endl; + //kdDebug()<<k_funcinfo<<"Added relation: Child="<<m_child->name()<<" tqparent="<<m_parent->name()<<endl; return true; } -void Relation::save(QDomElement &element) const { - QDomElement me = element.ownerDocument().createElement("relation"); +void Relation::save(TQDomElement &element) const { + TQDomElement me = element.ownerDocument().createElement("relation"); element.appendChild(me); - me.setAttribute("parent-id", m_parent->id()); + me.setAttribute("tqparent-id", m_parent->id()); me.setAttribute("child-id", m_child->id()); - QString type = "Finish-Start"; + TQString type = "Finish-Start"; switch (m_type) { case FinishStart: type = "Finish-Start"; @@ -131,7 +131,7 @@ void Relation::save(QDomElement &element) const { } #ifndef NDEBUG -void Relation::printDebug(QCString indent) { +void Relation::printDebug(TQCString indent) { indent += " "; kdDebug()<<indent<<" Parent: "<<m_parent->name()<<endl; kdDebug()<<indent<<" Child: "<<m_child->name()<<endl; |