summaryrefslogtreecommitdiffstats
path: root/kplato/kptcommand.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptcommand.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kptcommand.cc')
-rw-r--r--kplato/kptcommand.cc340
1 files changed, 170 insertions, 170 deletions
diff --git a/kplato/kptcommand.cc b/kplato/kptcommand.cc
index 043dc776..96efa2f7 100644
--- a/kplato/kptcommand.cc
+++ b/kplato/kptcommand.cc
@@ -30,8 +30,8 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qintdict.h>
-#include <qmap.h>
+#include <tqintdict.h>
+#include <tqmap.h>
namespace KPlato
{
@@ -42,28 +42,28 @@ void NamedCommand::setCommandType(int type) {
}
void NamedCommand::setSchDeleted() {
- QMap<Schedule*, bool>::Iterator it;
+ TQMap<Schedule*, bool>::Iterator it;
for (it = m_schedules.begin(); it != m_schedules.end(); ++it) {
kdDebug()<<k_funcinfo<<it.key()->id()<<": "<<it.data()<<endl;
it.key()->setDeleted(it.data());
}
}
void NamedCommand::setSchDeleted(bool state) {
- QMap<Schedule*, bool>::Iterator it;
+ TQMap<Schedule*, bool>::Iterator it;
for (it = m_schedules.begin(); it != m_schedules.end(); ++it) {
kdDebug()<<k_funcinfo<<it.key()->id()<<": "<<state<<endl;
it.key()->setDeleted(state);
}
}
void NamedCommand::setSchScheduled() {
-QMap<Schedule*, bool>::Iterator it;
+TQMap<Schedule*, bool>::Iterator it;
for (it = m_schedules.begin(); it != m_schedules.end(); ++it) {
kdDebug()<<k_funcinfo<<it.key()->id()<<": "<<it.data()<<endl;
it.key()->setScheduled(it.data());
}
}
void NamedCommand::setSchScheduled(bool state) {
- QMap<Schedule*, bool>::Iterator it;
+ TQMap<Schedule*, bool>::Iterator it;
for (it = m_schedules.begin(); it != m_schedules.end(); ++it) {
kdDebug()<<k_funcinfo<<it.key()->id()<<": "<<state<<endl;
it.key()->setScheduled(state);
@@ -72,7 +72,7 @@ void NamedCommand::setSchScheduled(bool state) {
void NamedCommand::addSchScheduled(Schedule *sch) {
kdDebug()<<k_funcinfo<<sch->id()<<": "<<sch->isScheduled()<<endl;
m_schedules.insert(sch, sch->isScheduled());
- QPtrListIterator<Appointment> it = sch->appointments();
+ TQPtrListIterator<Appointment> it = sch->appointments();
for (; it.current(); ++it) {
if (it.current()->node() == sch) {
m_schedules.insert(it.current()->resource(), it.current()->resource()->isScheduled());
@@ -84,7 +84,7 @@ void NamedCommand::addSchScheduled(Schedule *sch) {
void NamedCommand::addSchDeleted(Schedule *sch) {
kdDebug()<<k_funcinfo<<sch->id()<<": "<<sch->isDeleted()<<endl;
m_schedules.insert(sch, sch->isDeleted());
- QPtrListIterator<Appointment> it = sch->appointments();
+ TQPtrListIterator<Appointment> it = sch->appointments();
for (; it.current(); ++it) {
if (it.current()->node() == sch) {
m_schedules.insert(it.current()->resource(), it.current()->resource()->isDeleted());
@@ -95,7 +95,7 @@ void NamedCommand::addSchDeleted(Schedule *sch) {
}
//-------------------------------------------------
-CalendarAddCmd::CalendarAddCmd(Part *part, Project *project,Calendar *cal, QString name)
+CalendarAddCmd::CalendarAddCmd(Part *part, Project *project,Calendar *cal, TQString name)
: NamedCommand(part, name),
m_project(project),
m_cal(cal),
@@ -122,13 +122,13 @@ void CalendarAddCmd::unexecute() {
//kdDebug()<<k_funcinfo<<m_cal->name()<<endl;
}
-CalendarDeleteCmd::CalendarDeleteCmd(Part *part, Calendar *cal, QString name)
+CalendarDeleteCmd::CalendarDeleteCmd(Part *part, Calendar *cal, TQString name)
: NamedCommand(part, name),
m_cal(cal) {
// TODO check if any resources uses this calendar
if (part) {
- QIntDictIterator<Schedule> it = part->getProject().schedules();
+ TQIntDictIterator<Schedule> it = part->getProject().schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -147,7 +147,7 @@ void CalendarDeleteCmd::unexecute() {
setCommandType(0);
}
-CalendarModifyNameCmd::CalendarModifyNameCmd(Part *part, Calendar *cal, QString newvalue, QString name)
+CalendarModifyNameCmd::CalendarModifyNameCmd(Part *part, Calendar *cal, TQString newvalue, TQString name)
: NamedCommand(part, name),
m_cal(cal) {
@@ -166,16 +166,16 @@ void CalendarModifyNameCmd::unexecute() {
//kdDebug()<<k_funcinfo<<m_cal->name()<<endl;
}
-CalendarModifyParentCmd::CalendarModifyParentCmd(Part *part, Calendar *cal, Calendar *newvalue, QString name)
+CalendarModifyParentCmd::CalendarModifyParentCmd(Part *part, Calendar *cal, Calendar *newvalue, TQString name)
: NamedCommand(part, name),
m_cal(cal) {
- m_oldvalue = cal->parent();
+ m_oldvalue = cal->tqparent();
m_newvalue = newvalue;
//kdDebug()<<k_funcinfo<<cal->name()<<endl;
// TODO check if any resources uses this calendar
if (part) {
- QIntDictIterator<Schedule> it = part->getProject().schedules();
+ TQIntDictIterator<Schedule> it = part->getProject().schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -192,7 +192,7 @@ void CalendarModifyParentCmd::unexecute() {
setCommandType(1);
}
-CalendarAddDayCmd::CalendarAddDayCmd(Part *part, Calendar *cal, CalendarDay *newvalue, QString name)
+CalendarAddDayCmd::CalendarAddDayCmd(Part *part, Calendar *cal, CalendarDay *newvalue, TQString name)
: NamedCommand(part, name),
m_cal(cal),
m_mine(true) {
@@ -201,7 +201,7 @@ CalendarAddDayCmd::CalendarAddDayCmd(Part *part, Calendar *cal, CalendarDay *new
//kdDebug()<<k_funcinfo<<cal->name()<<endl;
// TODO check if any resources uses this calendar
if (part) {
- QIntDictIterator<Schedule> it = part->getProject().schedules();
+ TQIntDictIterator<Schedule> it = part->getProject().schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -227,7 +227,7 @@ void CalendarAddDayCmd::unexecute() {
setCommandType(1);
}
-CalendarRemoveDayCmd::CalendarRemoveDayCmd(Part *part, Calendar *cal, const QDate &day, QString name)
+CalendarRemoveDayCmd::CalendarRemoveDayCmd(Part *part, Calendar *cal, const TQDate &day, TQString name)
: NamedCommand(part, name),
m_cal(cal),
m_mine(false) {
@@ -236,7 +236,7 @@ CalendarRemoveDayCmd::CalendarRemoveDayCmd(Part *part, Calendar *cal, const QDat
//kdDebug()<<k_funcinfo<<cal->name()<<endl;
// TODO check if any resources uses this calendar
if (part) {
- QIntDictIterator<Schedule> it = part->getProject().schedules();
+ TQIntDictIterator<Schedule> it = part->getProject().schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -257,7 +257,7 @@ void CalendarRemoveDayCmd::unexecute() {
setCommandType(1);
}
-CalendarModifyDayCmd::CalendarModifyDayCmd(Part *part, Calendar *cal, CalendarDay *value, QString name)
+CalendarModifyDayCmd::CalendarModifyDayCmd(Part *part, Calendar *cal, CalendarDay *value, TQString name)
: NamedCommand(part, name),
m_cal(cal),
m_mine(true) {
@@ -267,7 +267,7 @@ CalendarModifyDayCmd::CalendarModifyDayCmd(Part *part, Calendar *cal, CalendarDa
//kdDebug()<<k_funcinfo<<cal->name()<<" old:("<<m_oldvalue<<") new:("<<m_newvalue<<")"<<endl;
// TODO check if any resources uses this calendar
if (part) {
- QIntDictIterator<Schedule> it = part->getProject().schedules();
+ TQIntDictIterator<Schedule> it = part->getProject().schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -298,7 +298,7 @@ void CalendarModifyDayCmd::unexecute() {
setCommandType(1);
}
-CalendarModifyWeekdayCmd::CalendarModifyWeekdayCmd(Part *part, Calendar *cal, int weekday, CalendarDay *value, QString name)
+CalendarModifyWeekdayCmd::CalendarModifyWeekdayCmd(Part *part, Calendar *cal, int weekday, CalendarDay *value, TQString name)
: NamedCommand(part, name),
m_weekday(weekday),
m_cal(cal),
@@ -308,7 +308,7 @@ CalendarModifyWeekdayCmd::CalendarModifyWeekdayCmd(Part *part, Calendar *cal, in
kdDebug()<<k_funcinfo<<cal->name()<<" ("<<value<<")"<<endl;
// TODO check if any resources uses this calendar
if (part) {
- QIntDictIterator<Schedule> it = part->getProject().schedules();
+ TQIntDictIterator<Schedule> it = part->getProject().schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -320,17 +320,17 @@ CalendarModifyWeekdayCmd::~CalendarModifyWeekdayCmd() {
}
void CalendarModifyWeekdayCmd::execute() {
- m_value = m_cal->weekdays()->replace(m_weekday, m_value);
+ m_value = m_cal->weekdays()->tqreplace(m_weekday, m_value);
setSchScheduled(false);
setCommandType(1);
}
void CalendarModifyWeekdayCmd::unexecute() {
- m_value = m_cal->weekdays()->replace(m_weekday, m_value);
+ m_value = m_cal->weekdays()->tqreplace(m_weekday, m_value);
setSchScheduled();
setCommandType(1);
}
-NodeDeleteCmd::NodeDeleteCmd(Part *part, Node *node, QString name)
+NodeDeleteCmd::NodeDeleteCmd(Part *part, Node *node, TQString name)
: NamedCommand(part, name),
m_node(node),
m_index(-1) {
@@ -343,11 +343,11 @@ NodeDeleteCmd::NodeDeleteCmd(Part *part, Node *node, QString name)
m_project = static_cast<Project*>(node->projectNode());
if (m_project) {
- QIntDictIterator<Schedule> it = m_project->schedules();
+ TQIntDictIterator<Schedule> it = m_project->schedules();
for (; it.current(); ++it) {
Schedule *s = node->findSchedule(it.current()->id());
if (s && s->isScheduled()) {
- // Only invalidate schedules this node is part of
+ // Only tqinvalidate schedules this node is part of
addSchScheduled(it.current());
}
}
@@ -360,7 +360,7 @@ NodeDeleteCmd::~NodeDeleteCmd() {
void NodeDeleteCmd::execute() {
if (m_parent && m_project) {
//kdDebug()<<k_funcinfo<<m_node->name()<<" "<<m_index<<endl;
- QPtrListIterator<Appointment> it = m_node->appointments();
+ TQPtrListIterator<Appointment> it = m_node->appointments();
for (; it.current(); ++it) {
it.current()->detach();
m_appointments.append(it.current());
@@ -385,7 +385,7 @@ void NodeDeleteCmd::unexecute() {
}
}
-TaskAddCmd::TaskAddCmd(Part *part, Project *project, Node *node, Node *after, QString name)
+TaskAddCmd::TaskAddCmd(Part *part, Project *project, Node *node, Node *after, TQString name)
: NamedCommand(part, name),
m_project(project),
m_node(node),
@@ -428,15 +428,15 @@ void TaskAddCmd::unexecute() {
setCommandType(1);
}
-SubtaskAddCmd::SubtaskAddCmd(Part *part, Project *project, Node *node, Node *parent, QString name)
+SubtaskAddCmd::SubtaskAddCmd(Part *part, Project *project, Node *node, Node *tqparent, TQString name)
: NamedCommand(part, name),
m_project(project),
m_node(node),
- m_parent(parent),
+ m_parent(tqparent),
m_added(false) {
// set some reasonable defaults for normally calculated values
- node->setStartTime(parent->startTime());
+ node->setStartTime(tqparent->startTime());
node->setEndTime(node->startTime() + node->duration());
node->setEarliestStart(node->startTime());
node->setLatestFinish(node->endTime());
@@ -460,7 +460,7 @@ void SubtaskAddCmd::unexecute() {
setCommandType(1);
}
-NodeModifyNameCmd::NodeModifyNameCmd(Part *part, Node &node, QString nodename, QString name)
+NodeModifyNameCmd::NodeModifyNameCmd(Part *part, Node &node, TQString nodename, TQString name)
: NamedCommand(part, name),
m_node(node),
newName(nodename),
@@ -478,7 +478,7 @@ void NodeModifyNameCmd::unexecute() {
setCommandType(0);
}
-NodeModifyLeaderCmd::NodeModifyLeaderCmd(Part *part, Node &node, QString leader, QString name)
+NodeModifyLeaderCmd::NodeModifyLeaderCmd(Part *part, Node &node, TQString leader, TQString name)
: NamedCommand(part, name),
m_node(node),
newLeader(leader),
@@ -496,7 +496,7 @@ void NodeModifyLeaderCmd::unexecute() {
setCommandType(0);
}
-NodeModifyDescriptionCmd::NodeModifyDescriptionCmd(Part *part, Node &node, QString description, QString name)
+NodeModifyDescriptionCmd::NodeModifyDescriptionCmd(Part *part, Node &node, TQString description, TQString name)
: NamedCommand(part, name),
m_node(node),
newDescription(description),
@@ -514,13 +514,13 @@ void NodeModifyDescriptionCmd::unexecute() {
setCommandType(0);
}
-NodeModifyConstraintCmd::NodeModifyConstraintCmd(Part *part, Node &node, Node::ConstraintType c, QString name)
+NodeModifyConstraintCmd::NodeModifyConstraintCmd(Part *part, Node &node, Node::ConstraintType c, TQString name)
: NamedCommand(part, name),
m_node(node),
newConstraint(c),
oldConstraint(static_cast<Node::ConstraintType>(node.constraint())) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -536,13 +536,13 @@ void NodeModifyConstraintCmd::unexecute() {
setCommandType(1);
}
-NodeModifyConstraintStartTimeCmd::NodeModifyConstraintStartTimeCmd(Part *part, Node &node, QDateTime dt, QString name)
+NodeModifyConstraintStartTimeCmd::NodeModifyConstraintStartTimeCmd(Part *part, Node &node, TQDateTime dt, TQString name)
: NamedCommand(part, name),
m_node(node),
newTime(dt),
oldTime(node.constraintStartTime()) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -558,13 +558,13 @@ void NodeModifyConstraintStartTimeCmd::unexecute() {
setCommandType(1);
}
-NodeModifyConstraintEndTimeCmd::NodeModifyConstraintEndTimeCmd(Part *part, Node &node, QDateTime dt, QString name)
+NodeModifyConstraintEndTimeCmd::NodeModifyConstraintEndTimeCmd(Part *part, Node &node, TQDateTime dt, TQString name)
: NamedCommand(part, name),
m_node(node),
newTime(dt),
oldTime(node.constraintEndTime()) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -580,7 +580,7 @@ void NodeModifyConstraintEndTimeCmd::unexecute() {
setCommandType(1);
}
-NodeModifyStartTimeCmd::NodeModifyStartTimeCmd(Part *part, Node &node, QDateTime dt, QString name)
+NodeModifyStartTimeCmd::NodeModifyStartTimeCmd(Part *part, Node &node, TQDateTime dt, TQString name)
: NamedCommand(part, name),
m_node(node),
newTime(dt),
@@ -598,7 +598,7 @@ void NodeModifyStartTimeCmd::unexecute() {
setCommandType(1);
}
-NodeModifyEndTimeCmd::NodeModifyEndTimeCmd(Part *part, Node &node, QDateTime dt, QString name)
+NodeModifyEndTimeCmd::NodeModifyEndTimeCmd(Part *part, Node &node, TQDateTime dt, TQString name)
: NamedCommand(part, name),
m_node(node),
newTime(dt),
@@ -616,7 +616,7 @@ void NodeModifyEndTimeCmd::unexecute() {
setCommandType(1);
}
-NodeModifyIdCmd::NodeModifyIdCmd(Part *part, Node &node, QString id, QString name)
+NodeModifyIdCmd::NodeModifyIdCmd(Part *part, Node &node, TQString id, TQString name)
: NamedCommand(part, name),
m_node(node),
newId(id),
@@ -634,66 +634,66 @@ void NodeModifyIdCmd::unexecute() {
setCommandType(0);
}
-NodeIndentCmd::NodeIndentCmd(Part *part, Node &node, QString name)
+NodeIndentCmd::NodeIndentCmd(Part *part, Node &node, TQString name)
: NamedCommand(part, name),
m_node(node),
- m_newparent(0),
+ m_newtqparent(0),
m_newindex(-1) {
}
void NodeIndentCmd::execute() {
- m_oldparent = m_node.getParent();
- m_oldindex = m_oldparent->findChildNode(&m_node);
+ m_oldtqparent = m_node.getParent();
+ m_oldindex = m_oldtqparent->findChildNode(&m_node);
Project *p = dynamic_cast<Project *>(m_node.projectNode());
if (p && p->indentTask(&m_node)) {
- m_newparent = m_node.getParent();
- m_newindex = m_newparent->findChildNode(&m_node);
- m_node.setParent(m_newparent);
+ m_newtqparent = m_node.getParent();
+ m_newindex = m_newtqparent->findChildNode(&m_node);
+ m_node.setParent(m_newtqparent);
}
setCommandType(1);
}
void NodeIndentCmd::unexecute() {
if (m_newindex != -1) {
- m_newparent->delChildNode(m_newindex, false);
- m_oldparent->insertChildNode(m_oldindex, &m_node);
- m_node.setParent(m_oldparent);
+ m_newtqparent->delChildNode(m_newindex, false);
+ m_oldtqparent->insertChildNode(m_oldindex, &m_node);
+ m_node.setParent(m_oldtqparent);
m_newindex = -1;
}
setCommandType(1);
}
-NodeUnindentCmd::NodeUnindentCmd(Part *part, Node &node, QString name)
+NodeUnindentCmd::NodeUnindentCmd(Part *part, Node &node, TQString name)
: NamedCommand(part, name),
m_node(node),
- m_newparent(0),
+ m_newtqparent(0),
m_newindex(-1) {
}
void NodeUnindentCmd::execute() {
- m_oldparent = m_node.getParent();
- m_oldindex = m_oldparent->findChildNode(&m_node);
+ m_oldtqparent = m_node.getParent();
+ m_oldindex = m_oldtqparent->findChildNode(&m_node);
Project *p = dynamic_cast<Project *>(m_node.projectNode());
if (p && p->unindentTask(&m_node)) {
- m_newparent = m_node.getParent();
- m_newindex = m_newparent->findChildNode(&m_node);
- m_node.setParent(m_newparent);
+ m_newtqparent = m_node.getParent();
+ m_newindex = m_newtqparent->findChildNode(&m_node);
+ m_node.setParent(m_newtqparent);
}
setCommandType(1);
}
void NodeUnindentCmd::unexecute() {
if (m_newindex != -1) {
- m_newparent->delChildNode(m_newindex, false);
- m_oldparent->insertChildNode(m_oldindex, &m_node);
- m_node.setParent(m_oldparent);
+ m_newtqparent->delChildNode(m_newindex, false);
+ m_oldtqparent->insertChildNode(m_oldindex, &m_node);
+ m_node.setParent(m_oldtqparent);
m_newindex = -1;
}
setCommandType(1);
}
-NodeMoveUpCmd::NodeMoveUpCmd(Part *part, Node &node, QString name)
+NodeMoveUpCmd::NodeMoveUpCmd(Part *part, Node &node, TQString name)
: NamedCommand(part, name),
m_node(node),
m_moved(false) {
@@ -715,7 +715,7 @@ void NodeMoveUpCmd::unexecute() {
setCommandType(0);
}
-NodeMoveDownCmd::NodeMoveDownCmd(Part *part, Node &node, QString name)
+NodeMoveDownCmd::NodeMoveDownCmd(Part *part, Node &node, TQString name)
: NamedCommand(part, name),
m_node(node),
m_moved(false) {
@@ -736,14 +736,14 @@ void NodeMoveDownCmd::unexecute() {
setCommandType(0);
}
-AddRelationCmd::AddRelationCmd(Part *part, Relation *rel, QString name)
+AddRelationCmd::AddRelationCmd(Part *part, Relation *rel, TQString name)
: NamedCommand(part, name),
m_rel(rel) {
m_taken = true;
- Node *p = rel->parent()->projectNode();
+ Node *p = rel->tqparent()->projectNode();
if (p) {
- QIntDictIterator<Schedule> it = p->schedules();
+ TQIntDictIterator<Schedule> it = p->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -754,29 +754,29 @@ AddRelationCmd::~AddRelationCmd() {
delete m_rel;
}
void AddRelationCmd::execute() {
- //kdDebug()<<k_funcinfo<<m_rel->parent()<<" to "<<m_rel->child()<<endl;
+ //kdDebug()<<k_funcinfo<<m_rel->tqparent()<<" to "<<m_rel->child()<<endl;
m_taken = false;
- m_rel->parent()->addDependChildNode(m_rel);
+ m_rel->tqparent()->addDependChildNode(m_rel);
m_rel->child()->addDependParentNode(m_rel);
setSchScheduled(false);
setCommandType(1);
}
void AddRelationCmd::unexecute() {
m_taken = true;
- m_rel->parent()->takeDependChildNode(m_rel);
+ m_rel->tqparent()->takeDependChildNode(m_rel);
m_rel->child()->takeDependParentNode(m_rel);
setSchScheduled();
setCommandType(1);
}
-DeleteRelationCmd::DeleteRelationCmd(Part *part, Relation *rel, QString name)
+DeleteRelationCmd::DeleteRelationCmd(Part *part, Relation *rel, TQString name)
: NamedCommand(part, name),
m_rel(rel) {
m_taken = false;
- Node *p = rel->parent()->projectNode();
+ Node *p = rel->tqparent()->projectNode();
if (p) {
- QIntDictIterator<Schedule> it = p->schedules();
+ TQIntDictIterator<Schedule> it = p->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -787,30 +787,30 @@ DeleteRelationCmd::~DeleteRelationCmd() {
delete m_rel;
}
void DeleteRelationCmd::execute() {
- //kdDebug()<<k_funcinfo<<m_rel->parent()<<" to "<<m_rel->child()<<endl;
+ //kdDebug()<<k_funcinfo<<m_rel->tqparent()<<" to "<<m_rel->child()<<endl;
m_taken = true;
- m_rel->parent()->takeDependChildNode(m_rel);
+ m_rel->tqparent()->takeDependChildNode(m_rel);
m_rel->child()->takeDependParentNode(m_rel);
setSchScheduled(false);
setCommandType(1);
}
void DeleteRelationCmd::unexecute() {
m_taken = false;
- m_rel->parent()->addDependChildNode(m_rel);
+ m_rel->tqparent()->addDependChildNode(m_rel);
m_rel->child()->addDependParentNode(m_rel);
setSchScheduled();
setCommandType(1);
}
-ModifyRelationTypeCmd::ModifyRelationTypeCmd(Part *part, Relation *rel, Relation::Type type, QString name)
+ModifyRelationTypeCmd::ModifyRelationTypeCmd(Part *part, Relation *rel, Relation::Type type, TQString name)
: NamedCommand(part, name),
m_rel(rel),
m_newtype(type) {
m_oldtype = rel->type();
- Node *p = rel->parent()->projectNode();
+ Node *p = rel->tqparent()->projectNode();
if (p) {
- QIntDictIterator<Schedule> it = p->schedules();
+ TQIntDictIterator<Schedule> it = p->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -827,15 +827,15 @@ void ModifyRelationTypeCmd::unexecute() {
setCommandType(1);
}
-ModifyRelationLagCmd::ModifyRelationLagCmd(Part *part, Relation *rel, Duration lag, QString name)
+ModifyRelationLagCmd::ModifyRelationLagCmd(Part *part, Relation *rel, Duration lag, TQString name)
: NamedCommand(part, name),
m_rel(rel),
m_newlag(lag) {
m_oldlag = rel->lag();
- Node *p = rel->parent()->projectNode();
+ Node *p = rel->tqparent()->projectNode();
if (p) {
- QIntDictIterator<Schedule> it = p->schedules();
+ TQIntDictIterator<Schedule> it = p->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -852,7 +852,7 @@ void ModifyRelationLagCmd::unexecute() {
setCommandType(1);
}
-AddResourceRequestCmd::AddResourceRequestCmd(Part *part, ResourceGroupRequest *group, ResourceRequest *request, QString name)
+AddResourceRequestCmd::AddResourceRequestCmd(Part *part, ResourceGroupRequest *group, ResourceRequest *request, TQString name)
: NamedCommand(part, name),
m_group(group),
m_request(request) {
@@ -878,7 +878,7 @@ void AddResourceRequestCmd::unexecute() {
setCommandType(1);
}
-RemoveResourceRequestCmd::RemoveResourceRequestCmd(Part *part, ResourceGroupRequest *group, ResourceRequest *request, QString name)
+RemoveResourceRequestCmd::RemoveResourceRequestCmd(Part *part, ResourceGroupRequest *group, ResourceRequest *request, TQString name)
: NamedCommand(part, name),
m_group(group),
m_request(request) {
@@ -887,7 +887,7 @@ RemoveResourceRequestCmd::RemoveResourceRequestCmd(Part *part, ResourceGroupReq
//kdDebug()<<k_funcinfo<<"group="<<group<<" req="<<request<<endl;
Task *t = request->task();
if (t) { // safety, something is seriously wrong!
- QIntDictIterator<Schedule> it = t->schedules();
+ TQIntDictIterator<Schedule> it = t->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -910,13 +910,13 @@ void RemoveResourceRequestCmd::unexecute() {
setCommandType(1);
}
-ModifyEffortCmd::ModifyEffortCmd(Part *part, Node &node, Duration oldvalue, Duration newvalue, QString name)
+ModifyEffortCmd::ModifyEffortCmd(Part *part, Node &node, Duration oldvalue, Duration newvalue, TQString name)
: NamedCommand(part, name),
m_effort(node.effort()),
m_oldvalue(oldvalue),
m_newvalue(newvalue) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -932,13 +932,13 @@ void ModifyEffortCmd::unexecute() {
setCommandType(1);
}
-EffortModifyOptimisticRatioCmd::EffortModifyOptimisticRatioCmd(Part *part, Node &node, int oldvalue, int newvalue, QString name)
+EffortModifyOptimisticRatioCmd::EffortModifyOptimisticRatioCmd(Part *part, Node &node, int oldvalue, int newvalue, TQString name)
: NamedCommand(part, name),
m_effort(node.effort()),
m_oldvalue(oldvalue),
m_newvalue(newvalue) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -954,13 +954,13 @@ void EffortModifyOptimisticRatioCmd::unexecute() {
setCommandType(1);
}
-EffortModifyPessimisticRatioCmd::EffortModifyPessimisticRatioCmd(Part *part, Node &node, int oldvalue, int newvalue, QString name)
+EffortModifyPessimisticRatioCmd::EffortModifyPessimisticRatioCmd(Part *part, Node &node, int oldvalue, int newvalue, TQString name)
: NamedCommand(part, name),
m_effort(node.effort()),
m_oldvalue(oldvalue),
m_newvalue(newvalue) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -976,13 +976,13 @@ void EffortModifyPessimisticRatioCmd::unexecute() {
setCommandType(1);
}
-ModifyEffortTypeCmd::ModifyEffortTypeCmd(Part *part, Node &node, int oldvalue, int newvalue, QString name)
+ModifyEffortTypeCmd::ModifyEffortTypeCmd(Part *part, Node &node, int oldvalue, int newvalue, TQString name)
: NamedCommand(part, name),
m_effort(node.effort()),
m_oldvalue(oldvalue),
m_newvalue(newvalue) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -998,13 +998,13 @@ void ModifyEffortTypeCmd::unexecute() {
setCommandType(1);
}
-EffortModifyRiskCmd::EffortModifyRiskCmd(Part *part, Node &node, int oldvalue, int newvalue, QString name)
+EffortModifyRiskCmd::EffortModifyRiskCmd(Part *part, Node &node, int oldvalue, int newvalue, TQString name)
: NamedCommand(part, name),
m_effort(node.effort()),
m_oldvalue(oldvalue),
m_newvalue(newvalue) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1020,7 +1020,7 @@ void EffortModifyRiskCmd::unexecute() {
setCommandType(1);
}
-AddResourceGroupRequestCmd::AddResourceGroupRequestCmd(Part *part, Task &task, ResourceGroupRequest *request, QString name)
+AddResourceGroupRequestCmd::AddResourceGroupRequestCmd(Part *part, Task &task, ResourceGroupRequest *request, TQString name)
: NamedCommand(part, name),
m_task(task),
m_request(request) {
@@ -1042,15 +1042,15 @@ void AddResourceGroupRequestCmd::unexecute() {
setCommandType(1);
}
-RemoveResourceGroupRequestCmd::RemoveResourceGroupRequestCmd(Part *part, ResourceGroupRequest *request, QString name)
+RemoveResourceGroupRequestCmd::RemoveResourceGroupRequestCmd(Part *part, ResourceGroupRequest *request, TQString name)
: NamedCommand(part, name),
- m_task(request->parent()->task()),
+ m_task(request->tqparent()->task()),
m_request(request) {
m_mine = false;
}
-RemoveResourceGroupRequestCmd::RemoveResourceGroupRequestCmd(Part *part, Task &task, ResourceGroupRequest *request, QString name)
+RemoveResourceGroupRequestCmd::RemoveResourceGroupRequestCmd(Part *part, Task &task, ResourceGroupRequest *request, TQString name)
: NamedCommand(part, name),
m_task(task),
m_request(request) {
@@ -1072,7 +1072,7 @@ void RemoveResourceGroupRequestCmd::unexecute() {
setCommandType(1);
}
-AddResourceCmd::AddResourceCmd(Part *part, ResourceGroup *group, Resource *resource, QString name)
+AddResourceCmd::AddResourceCmd(Part *part, ResourceGroup *group, Resource *resource, TQString name)
: NamedCommand(part, name),
m_group(group),
m_resource(resource) {
@@ -1099,13 +1099,13 @@ void AddResourceCmd::unexecute() {
setCommandType(0);
}
-RemoveResourceCmd::RemoveResourceCmd(Part *part, ResourceGroup *group, Resource *resource, QString name)
+RemoveResourceCmd::RemoveResourceCmd(Part *part, ResourceGroup *group, Resource *resource, TQString name)
: AddResourceCmd(part, group, resource, name) {
//kdDebug()<<k_funcinfo<<resource<<endl;
m_mine = false;
m_requests = m_resource->requests();
- QIntDictIterator<Schedule> it = resource->schedules();
+ TQIntDictIterator<Schedule> it = resource->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1114,16 +1114,16 @@ RemoveResourceCmd::~RemoveResourceCmd() {
m_appointments.setAutoDelete(true);
}
void RemoveResourceCmd::execute() {
- QPtrListIterator<ResourceRequest> it = m_requests;
+ TQPtrListIterator<ResourceRequest> it = m_requests;
for (; it.current(); ++it) {
- it.current()->parent()->takeResourceRequest(it.current());
+ it.current()->tqparent()->takeResourceRequest(it.current());
//kdDebug()<<"Remove request for"<<it.current()->resource()->name()<<endl;
}
- QPtrListIterator<Appointment> ait = m_resource->appointments();
+ TQPtrListIterator<Appointment> ait = m_resource->appointments();
for (; ait.current(); ++ait) {
m_appointments.append(ait.current());
}
- QPtrListIterator<Appointment> mit = m_appointments;
+ TQPtrListIterator<Appointment> mit = m_appointments;
for (; mit.current(); ++mit) {
mit.current()->detach(); //NOTE: removes from m_resource->appointments()
//kdDebug()<<k_funcinfo<<"detached: "<<mit.current()<<endl;
@@ -1137,16 +1137,16 @@ void RemoveResourceCmd::unexecute() {
//kdDebug()<<k_funcinfo<<"attach: "<<m_appointments.current()<<endl;
m_appointments.take()->attach();
}
- QPtrListIterator<ResourceRequest> it = m_requests;
+ TQPtrListIterator<ResourceRequest> it = m_requests;
for (; it.current(); ++it) {
- it.current()->parent()->addResourceRequest(it.current());
+ it.current()->tqparent()->addResourceRequest(it.current());
//kdDebug()<<"Add request for "<<it.current()->resource()->name()<<endl;
}
AddResourceCmd::execute();
setSchScheduled();
}
-ModifyResourceNameCmd::ModifyResourceNameCmd(Part *part, Resource *resource, QString value, QString name)
+ModifyResourceNameCmd::ModifyResourceNameCmd(Part *part, Resource *resource, TQString value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
@@ -1162,7 +1162,7 @@ void ModifyResourceNameCmd::unexecute() {
setCommandType(0);
}
-ModifyResourceInitialsCmd::ModifyResourceInitialsCmd(Part *part, Resource *resource, QString value, QString name)
+ModifyResourceInitialsCmd::ModifyResourceInitialsCmd(Part *part, Resource *resource, TQString value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
@@ -1178,7 +1178,7 @@ void ModifyResourceInitialsCmd::unexecute() {
setCommandType(0);
}
-ModifyResourceEmailCmd::ModifyResourceEmailCmd(Part *part, Resource *resource, QString value, QString name)
+ModifyResourceEmailCmd::ModifyResourceEmailCmd(Part *part, Resource *resource, TQString value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
@@ -1194,13 +1194,13 @@ void ModifyResourceEmailCmd::unexecute() {
setCommandType(0);
}
-ModifyResourceTypeCmd::ModifyResourceTypeCmd(Part *part, Resource *resource, int value, QString name)
+ModifyResourceTypeCmd::ModifyResourceTypeCmd(Part *part, Resource *resource, int value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
m_oldvalue = resource->type();
- QIntDictIterator<Schedule> it = resource->schedules();
+ TQIntDictIterator<Schedule> it = resource->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1215,13 +1215,13 @@ void ModifyResourceTypeCmd::unexecute() {
setSchScheduled();
setCommandType(1);
}
-ModifyResourceUnitsCmd::ModifyResourceUnitsCmd(Part *part, Resource *resource, int value, QString name)
+ModifyResourceUnitsCmd::ModifyResourceUnitsCmd(Part *part, Resource *resource, int value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
m_oldvalue = resource->units();
- QIntDictIterator<Schedule> it = resource->schedules();
+ TQIntDictIterator<Schedule> it = resource->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1237,16 +1237,16 @@ void ModifyResourceUnitsCmd::unexecute() {
setCommandType(1);
}
-ModifyResourceAvailableFromCmd::ModifyResourceAvailableFromCmd(Part *part, Resource *resource, DateTime value, QString name)
+ModifyResourceAvailableFromCmd::ModifyResourceAvailableFromCmd(Part *part, Resource *resource, DateTime value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
m_oldvalue = resource->availableFrom();
- QIntDictIterator<Schedule> it = resource->schedules();
+ TQIntDictIterator<Schedule> it = resource->schedules();
if (!it.isEmpty() && resource->project()) {
- QDateTime s;
- QDateTime e;
+ TQDateTime s;
+ TQDateTime e;
for (; it.current(); ++it) {
Schedule *sch = resource->project()->findSchedule(it.current()->id());
if (sch) {
@@ -1271,16 +1271,16 @@ void ModifyResourceAvailableFromCmd::unexecute() {
setCommandType(1); //FIXME
}
-ModifyResourceAvailableUntilCmd::ModifyResourceAvailableUntilCmd(Part *part, Resource *resource, DateTime value, QString name)
+ModifyResourceAvailableUntilCmd::ModifyResourceAvailableUntilCmd(Part *part, Resource *resource, DateTime value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
m_oldvalue = resource->availableUntil();
- QIntDictIterator<Schedule> it = resource->schedules();
+ TQIntDictIterator<Schedule> it = resource->schedules();
if (!it.isEmpty()) {
- QDateTime s;
- QDateTime e;
+ TQDateTime s;
+ TQDateTime e;
for (; it.current(); ++it) {
Schedule *sch = resource->project()->findSchedule(it.current()->id());
if (sch) {
@@ -1305,7 +1305,7 @@ void ModifyResourceAvailableUntilCmd::unexecute() {
setCommandType(1); //FIXME
}
-ModifyResourceNormalRateCmd::ModifyResourceNormalRateCmd(Part *part, Resource *resource, double value, QString name)
+ModifyResourceNormalRateCmd::ModifyResourceNormalRateCmd(Part *part, Resource *resource, double value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
@@ -1321,7 +1321,7 @@ void ModifyResourceNormalRateCmd::unexecute() {
setCommandType(0);
}
-ModifyResourceOvertimeRateCmd::ModifyResourceOvertimeRateCmd(Part *part, Resource *resource, double value, QString name)
+ModifyResourceOvertimeRateCmd::ModifyResourceOvertimeRateCmd(Part *part, Resource *resource, double value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
@@ -1338,13 +1338,13 @@ void ModifyResourceOvertimeRateCmd::unexecute() {
setCommandType(0);
}
-ModifyResourceCalendarCmd::ModifyResourceCalendarCmd(Part *part, Resource *resource, Calendar *value, QString name)
+ModifyResourceCalendarCmd::ModifyResourceCalendarCmd(Part *part, Resource *resource, Calendar *value, TQString name)
: NamedCommand(part, name),
m_resource(resource),
m_newvalue(value) {
m_oldvalue = resource->calendar(true);
- QIntDictIterator<Schedule> it = resource->schedules();
+ TQIntDictIterator<Schedule> it = resource->schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1360,7 +1360,7 @@ void ModifyResourceCalendarCmd::unexecute() {
setCommandType(1);
}
-RemoveResourceGroupCmd::RemoveResourceGroupCmd(Part *part, ResourceGroup *group, QString name)
+RemoveResourceGroupCmd::RemoveResourceGroupCmd(Part *part, ResourceGroup *group, TQString name)
: NamedCommand(part, name),
m_group(group) {
@@ -1373,10 +1373,10 @@ RemoveResourceGroupCmd::~RemoveResourceGroupCmd() {
void RemoveResourceGroupCmd::execute() {
// remove all requests to this group
int c=0;
- QPtrListIterator<ResourceGroupRequest> it = m_group->requests();
+ TQPtrListIterator<ResourceGroupRequest> it = m_group->requests();
for (; it.current(); ++it) {
- if (it.current()->parent()) {
- it.current()->parent()->takeRequest(it.current());
+ if (it.current()->tqparent()) {
+ it.current()->tqparent()->takeRequest(it.current());
}
c = 1;
}
@@ -1389,10 +1389,10 @@ void RemoveResourceGroupCmd::execute() {
void RemoveResourceGroupCmd::unexecute() {
// add all requests
int c=0;
- QPtrListIterator<ResourceGroupRequest> it = m_group->requests();
+ TQPtrListIterator<ResourceGroupRequest> it = m_group->requests();
for (; it.current(); ++it) {
- if (it.current()->parent()) {
- it.current()->parent()->addRequest(it.current());
+ if (it.current()->tqparent()) {
+ it.current()->tqparent()->addRequest(it.current());
}
c = 1;
}
@@ -1404,7 +1404,7 @@ void RemoveResourceGroupCmd::unexecute() {
setCommandType(c);
}
-AddResourceGroupCmd::AddResourceGroupCmd(Part *part, ResourceGroup *group, QString name)
+AddResourceGroupCmd::AddResourceGroupCmd(Part *part, ResourceGroup *group, TQString name)
: RemoveResourceGroupCmd(part, group, name) {
m_mine = true;
@@ -1416,7 +1416,7 @@ void AddResourceGroupCmd::unexecute() {
RemoveResourceGroupCmd::execute();
}
-ModifyResourceGroupNameCmd::ModifyResourceGroupNameCmd(Part *part, ResourceGroup *group, QString value, QString name)
+ModifyResourceGroupNameCmd::ModifyResourceGroupNameCmd(Part *part, ResourceGroup *group, TQString value, TQString name)
: NamedCommand(part, name),
m_group(group),
m_newvalue(value) {
@@ -1433,7 +1433,7 @@ void ModifyResourceGroupNameCmd::unexecute() {
setCommandType(0);
}
-TaskModifyProgressCmd::TaskModifyProgressCmd(Part *part, Task &task, struct Task::Progress &value, QString name)
+TaskModifyProgressCmd::TaskModifyProgressCmd(Part *part, Task &task, struct Task::Progress &value, TQString name)
: NamedCommand(part, name),
m_task(task),
m_newvalue(value) {
@@ -1450,7 +1450,7 @@ void TaskModifyProgressCmd::unexecute() {
setCommandType(0);
}
-ProjectModifyBaselineCmd::ProjectModifyBaselineCmd(Part *part, Project &project, bool value, QString name)
+ProjectModifyBaselineCmd::ProjectModifyBaselineCmd(Part *part, Project &project, bool value, TQString name)
: NamedCommand(part, name),
m_project(project),
m_newvalue(value) {
@@ -1467,20 +1467,20 @@ void ProjectModifyBaselineCmd::unexecute() {
setCommandType(2);
}
-AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, QString parent, QString name)
+AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, TQString tqparent, TQString name)
: NamedCommand(part, name),
m_project(project),
m_account(account),
m_parent(0),
- m_parentName(parent) {
+ m_parentName(tqparent) {
m_mine = true;
}
-AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, Account *parent, QString name)
+AddAccountCmd::AddAccountCmd(Part *part, Project &project, Account *account, Account *tqparent, TQString name)
: NamedCommand(part, name),
m_project(project),
m_account(account),
- m_parent(parent) {
+ m_parent(tqparent) {
m_mine = true;
}
@@ -1511,7 +1511,7 @@ void AddAccountCmd::unexecute() {
m_mine = true;
}
-RemoveAccountCmd::RemoveAccountCmd(Part *part, Project &project, Account *account, QString name)
+RemoveAccountCmd::RemoveAccountCmd(Part *part, Project &project, Account *account, TQString name)
: NamedCommand(part, name),
m_project(project),
m_account(account) {
@@ -1528,8 +1528,8 @@ void RemoveAccountCmd::execute() {
if (m_isDefault) {
m_project.accounts().setDefaultAccount(0);
}
- if (m_account->parent())
- m_account->parent()->take(m_account);
+ if (m_account->tqparent())
+ m_account->tqparent()->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->parent())
- m_account->parent()->append(m_account);
+ if (m_account->tqparent())
+ m_account->tqparent()->append(m_account);
else
m_project.accounts().append(m_account);
@@ -1549,7 +1549,7 @@ void RemoveAccountCmd::unexecute() {
m_mine = false;
}
-RenameAccountCmd::RenameAccountCmd(Part *part, Account *account, QString value, QString name)
+RenameAccountCmd::RenameAccountCmd(Part *part, Account *account, TQString value, TQString name)
: NamedCommand(part, name),
m_account(account) {
m_oldvalue = account->name();
@@ -1565,7 +1565,7 @@ void RenameAccountCmd::unexecute() {
setCommandType(0);
}
-ModifyAccountDescriptionCmd::ModifyAccountDescriptionCmd(Part *part, Account *account, QString value, QString name)
+ModifyAccountDescriptionCmd::ModifyAccountDescriptionCmd(Part *part, Account *account, TQString value, TQString name)
: NamedCommand(part, name),
m_account(account) {
m_oldvalue = account->description();
@@ -1582,7 +1582,7 @@ void ModifyAccountDescriptionCmd::unexecute() {
}
-NodeModifyStartupCostCmd::NodeModifyStartupCostCmd(Part *part, Node &node, double value, QString name)
+NodeModifyStartupCostCmd::NodeModifyStartupCostCmd(Part *part, Node &node, double value, TQString name)
: NamedCommand(part, name),
m_node(node) {
m_oldvalue = node.startupCost();
@@ -1598,7 +1598,7 @@ void NodeModifyStartupCostCmd::unexecute() {
setCommandType(0);
}
-NodeModifyShutdownCostCmd::NodeModifyShutdownCostCmd(Part *part, Node &node, double value, QString name)
+NodeModifyShutdownCostCmd::NodeModifyShutdownCostCmd(Part *part, Node &node, double value, TQString name)
: NamedCommand(part, name),
m_node(node) {
m_oldvalue = node.startupCost();
@@ -1614,7 +1614,7 @@ void NodeModifyShutdownCostCmd::unexecute() {
setCommandType(0);
}
-NodeModifyRunningAccountCmd::NodeModifyRunningAccountCmd(Part *part, Node &node, Account *oldvalue, Account *newvalue, QString name)
+NodeModifyRunningAccountCmd::NodeModifyRunningAccountCmd(Part *part, Node &node, Account *oldvalue, Account *newvalue, TQString name)
: NamedCommand(part, name),
m_node(node) {
m_oldvalue = oldvalue;
@@ -1642,7 +1642,7 @@ void NodeModifyRunningAccountCmd::unexecute() {
setCommandType(0);
}
-NodeModifyStartupAccountCmd::NodeModifyStartupAccountCmd(Part *part, Node &node, Account *oldvalue, Account *newvalue, QString name)
+NodeModifyStartupAccountCmd::NodeModifyStartupAccountCmd(Part *part, Node &node, Account *oldvalue, Account *newvalue, TQString name)
: NamedCommand(part, name),
m_node(node) {
m_oldvalue = oldvalue;
@@ -1671,7 +1671,7 @@ void NodeModifyStartupAccountCmd::unexecute() {
setCommandType(0);
}
-NodeModifyShutdownAccountCmd::NodeModifyShutdownAccountCmd(Part *part, Node &node, Account *oldvalue, Account *newvalue, QString name)
+NodeModifyShutdownAccountCmd::NodeModifyShutdownAccountCmd(Part *part, Node &node, Account *oldvalue, Account *newvalue, TQString name)
: NamedCommand(part, name),
m_node(node) {
m_oldvalue = oldvalue;
@@ -1700,7 +1700,7 @@ void NodeModifyShutdownAccountCmd::unexecute() {
setCommandType(0);
}
-ModifyDefaultAccountCmd::ModifyDefaultAccountCmd(Part *part, Accounts &acc, Account *oldvalue, Account *newvalue, QString name)
+ModifyDefaultAccountCmd::ModifyDefaultAccountCmd(Part *part, Accounts &acc, Account *oldvalue, Account *newvalue, TQString name)
: NamedCommand(part, name),
m_accounts(acc) {
m_oldvalue = oldvalue;
@@ -1719,13 +1719,13 @@ void ModifyDefaultAccountCmd::unexecute() {
setCommandType(0);
}
-ProjectModifyConstraintCmd::ProjectModifyConstraintCmd(Part *part, Project &node, Node::ConstraintType c, QString name)
+ProjectModifyConstraintCmd::ProjectModifyConstraintCmd(Part *part, Project &node, Node::ConstraintType c, TQString name)
: NamedCommand(part, name),
m_node(node),
newConstraint(c),
oldConstraint(static_cast<Node::ConstraintType>(node.constraint())) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1741,13 +1741,13 @@ void ProjectModifyConstraintCmd::unexecute() {
setCommandType(1);
}
-ProjectModifyStartTimeCmd::ProjectModifyStartTimeCmd(Part *part, Project &node, QDateTime dt, QString name)
+ProjectModifyStartTimeCmd::ProjectModifyStartTimeCmd(Part *part, Project &node, TQDateTime dt, TQString name)
: NamedCommand(part, name),
m_node(node),
newTime(dt),
oldTime(node.startTime()) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1764,13 +1764,13 @@ void ProjectModifyStartTimeCmd::unexecute() {
setCommandType(1);
}
-ProjectModifyEndTimeCmd::ProjectModifyEndTimeCmd(Part *part, Project &node, QDateTime dt, QString name)
+ProjectModifyEndTimeCmd::ProjectModifyEndTimeCmd(Part *part, Project &node, TQDateTime dt, TQString name)
: NamedCommand(part, name),
m_node(node),
newTime(dt),
oldTime(node.endTime()) {
- QIntDictIterator<Schedule> it = node.schedules();
+ TQIntDictIterator<Schedule> it = node.schedules();
for (; it.current(); ++it) {
addSchScheduled(it.current());
}
@@ -1787,7 +1787,7 @@ void ProjectModifyEndTimeCmd::unexecute() {
setCommandType(1);
}
-CalculateProjectCmd::CalculateProjectCmd(Part *part, Project &node, QString tname, int type, QString name)
+CalculateProjectCmd::CalculateProjectCmd(Part *part, Project &node, TQString tname, int type, TQString name)
: NamedCommand(part, name),
m_node(node),
m_typename(tname),
@@ -1817,7 +1817,7 @@ void CalculateProjectCmd::unexecute() {
setCommandType(0);
}
-RecalculateProjectCmd::RecalculateProjectCmd(Part *part, Project &node, Schedule &sch, QString name)
+RecalculateProjectCmd::RecalculateProjectCmd(Part *part, Project &node, Schedule &sch, TQString name)
: NamedCommand(part, name),
m_node(node),
oldSchedule(sch),
@@ -1849,7 +1849,7 @@ void RecalculateProjectCmd::unexecute() {
}
-ModifyStandardWorktimeYearCmd::ModifyStandardWorktimeYearCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, QString name)
+ModifyStandardWorktimeYearCmd::ModifyStandardWorktimeYearCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, TQString name)
: NamedCommand(part, name),
swt(wt),
m_oldvalue(oldvalue),
@@ -1865,7 +1865,7 @@ void ModifyStandardWorktimeYearCmd::unexecute() {
setCommandType(0);
}
-ModifyStandardWorktimeMonthCmd::ModifyStandardWorktimeMonthCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, QString name)
+ModifyStandardWorktimeMonthCmd::ModifyStandardWorktimeMonthCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, TQString name)
: NamedCommand(part, name),
swt(wt),
m_oldvalue(oldvalue),
@@ -1881,7 +1881,7 @@ void ModifyStandardWorktimeMonthCmd::unexecute() {
setCommandType(0);
}
-ModifyStandardWorktimeWeekCmd::ModifyStandardWorktimeWeekCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, QString name)
+ModifyStandardWorktimeWeekCmd::ModifyStandardWorktimeWeekCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, TQString name)
: NamedCommand(part, name),
swt(wt),
m_oldvalue(oldvalue),
@@ -1897,7 +1897,7 @@ void ModifyStandardWorktimeWeekCmd::unexecute() {
setCommandType(0);
}
-ModifyStandardWorktimeDayCmd::ModifyStandardWorktimeDayCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, QString name)
+ModifyStandardWorktimeDayCmd::ModifyStandardWorktimeDayCmd(Part *part, StandardWorktime *wt, double oldvalue, double newvalue, TQString name)
: NamedCommand(part, name),
swt(wt),
m_oldvalue(oldvalue),