summaryrefslogtreecommitdiffstats
path: root/kplato/kptcanvasitem.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kplato/kptcanvasitem.cc
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kptcanvasitem.cc')
-rw-r--r--kplato/kptcanvasitem.cc56
1 files changed, 28 insertions, 28 deletions
diff --git a/kplato/kptcanvasitem.cc b/kplato/kptcanvasitem.cc
index fb439945..59690e3a 100644
--- a/kplato/kptcanvasitem.cc
+++ b/kplato/kptcanvasitem.cc
@@ -265,14 +265,14 @@ void PertMilestoneItem::printDebug( int /*info*/ )
//////////////////// PertRelationItem //////////////////////////
-PertRelationItem::PertRelationItem( PertCanvas *view, PertNodeItem *tqparent, PertNodeItem *child, Relation *rel)
+PertRelationItem::PertRelationItem( PertCanvas *view, PertNodeItem *parent, PertNodeItem *child, Relation *rel)
: TQCanvasPolygon(view->canvas()),
m_view(view),
m_rel(rel),
- m_parentItem(tqparent),
+ m_parentItem(parent),
m_childItem(child)
{
- //kdDebug()<<k_funcinfo<<"Parent="<<tqparent->node().name()<<" Child="<<child->node().name()<<endl;
+ //kdDebug()<<k_funcinfo<<"Parent="<<parent->node().name()<<" Child="<<child->node().name()<<endl;
draw();
tqsetVisible(true);
}
@@ -289,10 +289,10 @@ void PertRelationItem::draw()
{
//kdDebug()<<k_funcinfo<<endl;
// Some "rules":
- // a) Relation::FinishStart: child column > tqparent column
- // b) Relation::FinishFinish: child column >= tqparent column
- // c) Relation::StartStart: child column >= tqparent column
- // d) Child row can be >= tqparent row
+ // a) Relation::FinishStart: child column > parent column
+ // b) Relation::FinishFinish: child column >= parent column
+ // c) Relation::StartStart: child column >= parent column
+ // d) Child row can be >= parent row
wgap = m_view->verticalGap();
hgap = m_view->horizontalGap();
@@ -337,7 +337,7 @@ void PertRelationItem::draw()
setZ(45);
/*#ifndef NDEBUG
- kdDebug()<<" PertNodeRelation from tqparent: "<<m_rel->tqparent()->name()<<" to child: "<<m_rel->child()->name()<<endl;
+ kdDebug()<<" PertNodeRelation from parent: "<<m_rel->parent()->name()<<" to child: "<<m_rel->child()->name()<<endl;
TQPointArray pa = poly;
for (int i = 0; i < pa.size(); ++i)
kdDebug()<<" pa["<<i<<"]="<<pa[i].x()<<","<<pa[i].y()<<endl;
@@ -585,7 +585,7 @@ void PertRelationItem::setStartStartPoints()
void PertRelationItem::drawShape(TQPainter &p)
{
- //kdDebug()<<k_funcinfo<<" "<<m_rel->tqparent()->name()<<" to "<<m_rel->child()->name()<<endl;
+ //kdDebug()<<k_funcinfo<<" "<<m_rel->parent()->name()<<" to "<<m_rel->child()->name()<<endl;
// cannot use polygon's drawShape() as it doesn't use the pen
setBrush(Qt::NoBrush);
TQPointArray a = poly;
@@ -616,7 +616,7 @@ TQPointArray PertRelationItem::areaPoints () const
pa[1] = pa[0] + TQPoint(right-left+pw*2,0);
pa[2] = pa[1] + TQPoint(0,bottom-top+pw*2);
pa[3] = pa[0] + TQPoint(0,bottom-top+pw*2);
-/* kdDebug()<<k_funcinfo<<" areaPoints: "<<m_rel->tqparent()->name()<<" to "<<m_rel->child()->name()<<endl;
+/* kdDebug()<<k_funcinfo<<" areaPoints: "<<m_rel->parent()->name()<<" to "<<m_rel->child()->name()<<endl;
kdDebug()<<" "<<pa[0].x()<<","<<pa[0].y()<<" "<<pa[1].x()<<","<<pa[1].y()<<endl;
kdDebug()<<" "<<pa[2].x()<<","<<pa[2].y()<<" "<<pa[3].x()<<","<<pa[3].y()<<endl;*/
return pa;
@@ -674,22 +674,22 @@ KDGanttViewTaskLink::LinkType ItemBase::kdLinkType(int relationType) {
//////////////////// GanttViewSummaryItem //////////////////////////
-GanttViewSummaryItem::GanttViewSummaryItem(KDGanttView *tqparent, Node *node)
- : KDGanttViewSummaryItem(tqparent, node->name()),
+GanttViewSummaryItem::GanttViewSummaryItem(KDGanttView *parent, Node *node)
+ : KDGanttViewSummaryItem(parent, node->name()),
m_node(node),
- m_view(tqparent)
+ m_view(parent)
{
setExpandable(true);
setOpen(true);
}
-GanttViewSummaryItem::GanttViewSummaryItem(KDGanttViewItem *tqparent, Node *node)
- : KDGanttViewSummaryItem(tqparent, node->name()),
+GanttViewSummaryItem::GanttViewSummaryItem(KDGanttViewItem *parent, Node *node)
+ : KDGanttViewSummaryItem(parent, node->name()),
m_node(node),
m_view(0)
{
m_drawn = false;
- GanttViewSummaryItem *p = dynamic_cast<GanttViewSummaryItem*>(tqparent);
+ GanttViewSummaryItem *p = dynamic_cast<GanttViewSummaryItem*>(parent);
if (p)
m_view = p->ganttView();
setExpandable(true);
@@ -759,20 +759,20 @@ KDGanttViewItem *GanttViewSummaryItem::find(KDGanttViewItem *item, Node *node)
//////////////////// GanttViewTaskItem //////////////////////////
-GanttViewTaskItem::GanttViewTaskItem(KDGanttView *tqparent, KPlato::Task *task)
- : KDGanttViewTaskItem(tqparent, task->name()),
+GanttViewTaskItem::GanttViewTaskItem(KDGanttView *parent, KPlato::Task *task)
+ : KDGanttViewTaskItem(parent, task->name()),
m_task(task),
- m_view(tqparent)
+ m_view(parent)
{
}
-GanttViewTaskItem::GanttViewTaskItem(KDGanttViewItem *tqparent, KPlato::Task *task)
- : KDGanttViewTaskItem(tqparent, task->name()),
+GanttViewTaskItem::GanttViewTaskItem(KDGanttViewItem *parent, KPlato::Task *task)
+ : KDGanttViewTaskItem(parent, task->name()),
m_task(task),
m_view()
{
m_drawn = false;
- GanttViewSummaryItem *p = dynamic_cast<GanttViewSummaryItem*>(tqparent);
+ GanttViewSummaryItem *p = dynamic_cast<GanttViewSummaryItem*>(parent);
if (p)
m_view = p->ganttView();
}
@@ -840,20 +840,20 @@ KDGanttViewItem *GanttViewTaskItem::find(KDGanttViewItem *item, Node *node)
//////////////////// GanttViewEventItem //////////////////////////
-GanttViewEventItem::GanttViewEventItem(KDGanttView *tqparent, KPlato::Task *task)
- : KDGanttViewEventItem(tqparent, task->name()),
+GanttViewEventItem::GanttViewEventItem(KDGanttView *parent, KPlato::Task *task)
+ : KDGanttViewEventItem(parent, task->name()),
m_task(task),
- m_view(tqparent)
+ m_view(parent)
{
}
-GanttViewEventItem::GanttViewEventItem(KDGanttViewItem *tqparent, KPlato::Task *task)
- : KDGanttViewEventItem(tqparent, task->name()),
+GanttViewEventItem::GanttViewEventItem(KDGanttViewItem *parent, KPlato::Task *task)
+ : KDGanttViewEventItem(parent, task->name()),
m_task(task),
m_view()
{
m_drawn = false;
- GanttViewSummaryItem *p = dynamic_cast<GanttViewSummaryItem*>(tqparent);
+ GanttViewSummaryItem *p = dynamic_cast<GanttViewSummaryItem*>(parent);
if (p)
m_view = p->ganttView();
}