diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kplato/kptcommand.cc | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-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/kptcommand.cc')
-rw-r--r-- | kplato/kptcommand.cc | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/kplato/kptcommand.cc b/kplato/kptcommand.cc index 364d552d..662c0dd0 100644 --- a/kplato/kptcommand.cc +++ b/kplato/kptcommand.cc @@ -170,7 +170,7 @@ CalendarModifyParentCmd::CalendarModifyParentCmd(Part *part, Calendar *cal, Cale : NamedCommand(part, name), m_cal(cal) { - m_oldvalue = cal->tqparent(); + m_oldvalue = cal->parent(); m_newvalue = newvalue; //kdDebug()<<k_funcinfo<<cal->name()<<endl; // TODO check if any resources uses this calendar @@ -428,15 +428,15 @@ void TaskAddCmd::unexecute() { setCommandType(1); } -SubtaskAddCmd::SubtaskAddCmd(Part *part, Project *project, Node *node, Node *tqparent, TQString name) +SubtaskAddCmd::SubtaskAddCmd(Part *part, Project *project, Node *node, Node *parent, TQString name) : NamedCommand(part, name), m_project(project), m_node(node), - m_parent(tqparent), + m_parent(parent), m_added(false) { // set some reasonable defaults for normally calculated values - node->setStartTime(tqparent->startTime()); + node->setStartTime(parent->startTime()); node->setEndTime(node->startTime() + node->duration()); node->setEarliestStart(node->startTime()); node->setLatestFinish(node->endTime()); @@ -637,27 +637,27 @@ void NodeModifyIdCmd::unexecute() { NodeIndentCmd::NodeIndentCmd(Part *part, Node &node, TQString name) : NamedCommand(part, name), m_node(node), - m_newtqparent(0), + m_newparent(0), m_newindex(-1) { } void NodeIndentCmd::execute() { - m_oldtqparent = m_node.getParent(); - m_oldindex = m_oldtqparent->findChildNode(&m_node); + m_oldparent = m_node.getParent(); + m_oldindex = m_oldparent->findChildNode(&m_node); Project *p = dynamic_cast<Project *>(m_node.projectNode()); if (p && p->indentTask(&m_node)) { - m_newtqparent = m_node.getParent(); - m_newindex = m_newtqparent->findChildNode(&m_node); - m_node.setParent(m_newtqparent); + m_newparent = m_node.getParent(); + m_newindex = m_newparent->findChildNode(&m_node); + m_node.setParent(m_newparent); } setCommandType(1); } void NodeIndentCmd::unexecute() { if (m_newindex != -1) { - m_newtqparent->delChildNode(m_newindex, false); - m_oldtqparent->insertChildNode(m_oldindex, &m_node); - m_node.setParent(m_oldtqparent); + m_newparent->delChildNode(m_newindex, false); + m_oldparent->insertChildNode(m_oldindex, &m_node); + m_node.setParent(m_oldparent); m_newindex = -1; } @@ -667,26 +667,26 @@ void NodeIndentCmd::unexecute() { NodeUnindentCmd::NodeUnindentCmd(Part *part, Node &node, TQString name) : NamedCommand(part, name), m_node(node), - m_newtqparent(0), + m_newparent(0), m_newindex(-1) { } void NodeUnindentCmd::execute() { - m_oldtqparent = m_node.getParent(); - m_oldindex = m_oldtqparent->findChildNode(&m_node); + m_oldparent = m_node.getParent(); + m_oldindex = m_oldparent->findChildNode(&m_node); Project *p = dynamic_cast<Project *>(m_node.projectNode()); if (p && p->unindentTask(&m_node)) { - m_newtqparent = m_node.getParent(); - m_newindex = m_newtqparent->findChildNode(&m_node); - m_node.setParent(m_newtqparent); + m_newparent = m_node.getParent(); + m_newindex = m_newparent->findChildNode(&m_node); + m_node.setParent(m_newparent); } setCommandType(1); } void NodeUnindentCmd::unexecute() { if (m_newindex != -1) { - m_newtqparent->delChildNode(m_newindex, false); - m_oldtqparent->insertChildNode(m_oldindex, &m_node); - m_node.setParent(m_oldtqparent); + m_newparent->delChildNode(m_newindex, false); + m_oldparent->insertChildNode(m_oldindex, &m_node); + m_node.setParent(m_oldparent); m_newindex = -1; } @@ -741,7 +741,7 @@ AddRelationCmd::AddRelationCmd(Part *part, Relation *rel, TQString name) m_rel(rel) { m_taken = true; - Node *p = rel->tqparent()->projectNode(); + Node *p = rel->parent()->projectNode(); if (p) { TQIntDictIterator<Schedule> it = p->schedules(); for (; it.current(); ++it) { @@ -754,16 +754,16 @@ AddRelationCmd::~AddRelationCmd() { delete m_rel; } void AddRelationCmd::execute() { - //kdDebug()<<k_funcinfo<<m_rel->tqparent()<<" to "<<m_rel->child()<<endl; + //kdDebug()<<k_funcinfo<<m_rel->parent()<<" to "<<m_rel->child()<<endl; m_taken = false; - m_rel->tqparent()->addDependChildNode(m_rel); + m_rel->parent()->addDependChildNode(m_rel); m_rel->child()->addDependParentNode(m_rel); setSchScheduled(false); setCommandType(1); } void AddRelationCmd::unexecute() { m_taken = true; - m_rel->tqparent()->takeDependChildNode(m_rel); + m_rel->parent()->takeDependChildNode(m_rel); m_rel->child()->takeDependParentNode(m_rel); setSchScheduled(); setCommandType(1); @@ -774,7 +774,7 @@ DeleteRelationCmd::DeleteRelationCmd(Part *part, Relation *rel, TQString name) m_rel(rel) { m_taken = false; - Node *p = rel->tqparent()->projectNode(); + Node *p = rel->parent()->projectNode(); if (p) { TQIntDictIterator<Schedule> it = p->schedules(); for (; it.current(); ++it) { @@ -787,16 +787,16 @@ DeleteRelationCmd::~DeleteRelationCmd() { delete m_rel; } void DeleteRelationCmd::execute() { - //kdDebug()<<k_funcinfo<<m_rel->tqparent()<<" to "<<m_rel->child()<<endl; + //kdDebug()<<k_funcinfo<<m_rel->parent()<<" to "<<m_rel->child()<<endl; m_taken = true; - m_rel->tqparent()->takeDependChildNode(m_rel); + m_rel->parent()->takeDependChildNode(m_rel); m_rel->child()->takeDependParentNode(m_rel); setSchScheduled(false); setCommandType(1); } void DeleteRelationCmd::unexecute() { m_taken = false; - m_rel->tqparent()->addDependChildNode(m_rel); + m_rel->parent()->addDependChildNode(m_rel); m_rel->child()->addDependParentNode(m_rel); setSchScheduled(); setCommandType(1); @@ -808,7 +808,7 @@ ModifyRelationTypeCmd::ModifyRelationTypeCmd(Part *part, Relation *rel, Relation m_newtype(type) { m_oldtype = rel->type(); - Node *p = rel->tqparent()->projectNode(); + Node *p = rel->parent()->projectNode(); if (p) { TQIntDictIterator<Schedule> it = p->schedules(); for (; it.current(); ++it) { @@ -833,7 +833,7 @@ ModifyRelationLagCmd::ModifyRelationLagCmd(Part *part, Relation *rel, Duration l m_newlag(lag) { m_oldlag = rel->lag(); - Node *p = rel->tqparent()->projectNode(); + Node *p = rel->parent()->projectNode(); if (p) { TQIntDictIterator<Schedule> it = p->schedules(); for (; it.current(); ++it) { @@ -1044,7 +1044,7 @@ void AddResourceGroupRequestCmd::unexecute() { RemoveResourceGroupRequestCmd::RemoveResourceGroupRequestCmd(Part *part, ResourceGroupRequest *request, TQString name) : NamedCommand(part, name), - m_task(request->tqparent()->task()), + m_task(request->parent()->task()), m_request(request) { m_mine = false; @@ -1116,7 +1116,7 @@ RemoveResourceCmd::~RemoveResourceCmd() { void RemoveResourceCmd::execute() { TQPtrListIterator<ResourceRequest> it = m_requests; for (; it.current(); ++it) { - it.current()->tqparent()->takeResourceRequest(it.current()); + it.current()->parent()->takeResourceRequest(it.current()); //kdDebug()<<"Remove request for"<<it.current()->resource()->name()<<endl; } TQPtrListIterator<Appointment> ait = m_resource->appointments(); @@ -1139,7 +1139,7 @@ void RemoveResourceCmd::unexecute() { } TQPtrListIterator<ResourceRequest> it = m_requests; for (; it.current(); ++it) { - it.current()->tqparent()->addResourceRequest(it.current()); + it.current()->parent()->addResourceRequest(it.current()); //kdDebug()<<"Add request for "<<it.current()->resource()->name()<<endl; } AddResourceCmd::execute(); @@ -1375,8 +1375,8 @@ void RemoveResourceGroupCmd::execute() { int c=0; TQPtrListIterator<ResourceGroupRequest> it = m_group->requests(); for (; it.current(); ++it) { - if (it.current()->tqparent()) { - it.current()->tqparent()->takeRequest(it.current()); + if (it.current()->parent()) { + it.current()->parent()->takeRequest(it.current()); } c = 1; } @@ -1391,8 +1391,8 @@ void RemoveResourceGroupCmd::unexecute() { int c=0; TQPtrListIterator<ResourceGroupRequest> it = m_group->requests(); for (; it.current(); ++it) { - if (it.current()->tqparent()) { - it.current()->tqparent()->addRequest(it.current()); + if (it.current()->parent()) { + it.current()->parent()->addRequest(it.current()); } c = 1; } @@ -1467,20 +1467,20 @@ void ProjectModifyBaselineCmd::unexecute() { setCommandType(2); } -AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, TQString tqparent, TQString name) +AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, TQString parent, TQString name) : NamedCommand(part, name), m_project(project), m_account(account), m_parent(0), - m_parentName(tqparent) { + m_parentName(parent) { m_mine = true; } -AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, Account *tqparent, TQString name) +AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, Account *parent, TQString name) : NamedCommand(part, name), m_project(project), m_account(account), - m_parent(tqparent) { + m_parent(parent) { m_mine = true; } @@ -1528,8 +1528,8 @@ void RemoveAccountCmd::execute() { if (m_isDefault) { m_project.accounts().setDefaultAccount(0); } - if (m_account->tqparent()) - m_account->tqparent()->take(m_account); + if (m_account->parent()) + m_account->parent()->take(m_account); else m_project.accounts().take(m_account); @@ -1537,8 +1537,8 @@ void RemoveAccountCmd::execute() { m_mine = true; } void RemoveAccountCmd::unexecute() { - if (m_account->tqparent()) - m_account->tqparent()->append(m_account); + if (m_account->parent()) + m_account->parent()->append(m_account); else m_project.accounts().append(m_account); |