summaryrefslogtreecommitdiffstats
path: root/kplato/kptpertcanvas.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptpertcanvas.cc')
-rw-r--r--kplato/kptpertcanvas.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/kplato/kptpertcanvas.cc b/kplato/kptpertcanvas.cc
index 910ec600..198d4593 100644
--- a/kplato/kptpertcanvas.cc
+++ b/kplato/kptpertcanvas.cc
@@ -125,23 +125,23 @@ PertNodeItem *PertCanvas::createNodeItem(Node *node)
return item;
}
-void PertCanvas::createChildItems(PertNodeItem *tqparentItem)
+void PertCanvas::createChildItems(PertNodeItem *parentItem)
{
- //kdDebug()<<k_funcinfo<<"tqparentItem="<<(tqparentItem ? tqparentItem->node().name() : "nil")<<endl;
- if (!tqparentItem)
+ //kdDebug()<<k_funcinfo<<"parentItem="<<(parentItem ? parentItem->node().name() : "nil")<<endl;
+ if (!parentItem)
return;
- TQPtrListIterator<Relation> it(tqparentItem->node().dependChildNodes());
+ TQPtrListIterator<Relation> it(parentItem->node().dependChildNodes());
for (; it.current(); ++it)
{
PertNodeItem *childItem = createNodeItem(it.current()->child());
if (childItem)
- tqparentItem->addChildRelation(it.current(), childItem);
+ parentItem->addChildRelation(it.current(), childItem);
m_relations.append(it.current());
}
// Now my tqchildren
- TQPtrListIterator<Node> nit(tqparentItem->node().childNodeIterator());
+ TQPtrListIterator<Node> nit(parentItem->node().childNodeIterator());
for ( ; nit.current(); ++nit ) {
createChildItems(createNodeItem(nit.current()));
}
@@ -153,11 +153,11 @@ void PertCanvas::drawRelations()
TQPtrListIterator<Relation> it(m_relations);
for (; it.current(); ++it)
{
- PertNodeItem *tqparentItem = m_nodes.tqfind(it.current()->tqparent());
+ PertNodeItem *parentItem = m_nodes.tqfind(it.current()->tqparent());
PertNodeItem *childItem = m_nodes.tqfind(it.current()->child());
- if (tqparentItem && childItem)
+ if (parentItem && childItem)
{
- PertRelationItem *item = new PertRelationItem(this, tqparentItem, childItem, it.current());
+ PertRelationItem *item = new PertRelationItem(this, parentItem, childItem, it.current());
item->show();
}
}
@@ -174,20 +174,20 @@ void PertCanvas::mapNode(PertNodeItem *item)
m_rows.at(item->row())->at(item->column()) = true;
}
-void PertCanvas::mapChildNode(PertNodeItem *tqparentItem, PertNodeItem *childItem, Relation::Type type)
+void PertCanvas::mapChildNode(PertNodeItem *parentItem, PertNodeItem *childItem, Relation::Type type)
{
- //kdDebug()<<k_funcinfo<<"Parent: "<<tqparentItem->node().name()<<" to child: "<<(childItem ? childItem->node().name() : "None")<<endl;
+ //kdDebug()<<k_funcinfo<<"Parent: "<<parentItem->node().name()<<" to child: "<<(childItem ? childItem->node().name() : "None")<<endl;
if (!childItem)
{ // shouldn't happen...
kdError()<<k_funcinfo<<"No childItem"<<endl;
return;
}
- int row = tqparentItem->row();
- int col = tqparentItem->column();
+ int row = parentItem->row();
+ int col = parentItem->column();
int chRow = childItem->row();
int chCol = childItem->column();
bool chMapped = (chRow > -1 && chCol > -1);
- //kdDebug()<<k_funcinfo<<"Parent: "<<tqparentItem->node().name()<<" at ("<<row<<","<<col<<"): Moving "<<childItem->node().name()<<" from: "<<chRow<<","<<chCol<<endl;
+ //kdDebug()<<k_funcinfo<<"Parent: "<<parentItem->node().name()<<" at ("<<row<<","<<col<<"): Moving "<<childItem->node().name()<<" from: "<<chRow<<","<<chCol<<endl;
if (type == Relation::StartStart ||
type == Relation::FinishFinish)