summaryrefslogtreecommitdiffstats
path: root/kplato/kptproject.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptproject.cc')
-rw-r--r--kplato/kptproject.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/kplato/kptproject.cc b/kplato/kptproject.cc
index 4b91916d..9379de4a 100644
--- a/kplato/kptproject.cc
+++ b/kplato/kptproject.cc
@@ -31,7 +31,7 @@
#include <tqdom.h>
#include <tqstring.h>
#include <tqdatetime.h>
-#include <brush.h>
+#include <tqbrush.h>
#include <tqcanvas.h>
#include <tqptrlist.h>
@@ -56,7 +56,7 @@ Project::Project(Node *parent)
void Project::init() {
if (m_parent == 0) {
// set sensible defaults for a project wo parent
- m_constraintStartTime = TQDateTime(TQDate::currentDate(), TQTime());
+ m_constraintStartTime = TQDateTime(TQDate::tqcurrentDate(), TQTime());
m_constraintEndTime = TQDateTime(m_constraintStartTime.addDays(1));
}
m_calendars.setAutoDelete(true);
@@ -308,7 +308,7 @@ bool Project::load(TQDomElement &element) {
if (!s.isEmpty())
m_constraintEndTime = DateTime::fromString(s);
- // Load the project children
+ // Load the project tqchildren
// Must do these first
TQDomNodeList list = element.childNodes();
for (unsigned int i=0; i<list.count(); ++i) {
@@ -498,7 +498,7 @@ void Project::save(TQDomElement &element) const {
}
for (int i=0; i<numChildren(); i++)
- // Save all children
+ // Save all tqchildren
getChildNode(i)->save(me);
// Now we can save relations assuming no tasks have relations outside the project
@@ -568,7 +568,7 @@ bool Project::addTask( Node* task, Node* position )
return addSubTask(task, position);
}
// find the position
- // we have to tell the parent that we want to delete one of its children
+ // we have to tell the parent that we want to delete one of its tqchildren
Node* parentNode = position->getParent();
if ( !parentNode ) {
kdDebug()<<k_funcinfo<<"parent node not found???"<<endl;
@@ -636,7 +636,7 @@ bool Project::canIndentTask(Node* node)
//kdDebug()<<k_funcinfo<<"The root node cannot be indented"<<endl;
return false;
}
- // we have to find the parent of task to manipulate its list of children
+ // we have to find the parent of task to manipulate its list of tqchildren
Node* parentNode = node->getParent();
if ( !parentNode ) {
return false;
@@ -679,7 +679,7 @@ bool Project::canUnindentTask( Node* node )
//kdDebug()<<k_funcinfo<<"The root node cannot be unindented"<<endl;
return false;
}
- // we have to find the parent of task to manipulate its list of children
+ // we have to find the parent of task to manipulate its list of tqchildren
// and we need the parent's parent too
Node* parentNode = node->getParent();
if ( !parentNode ) {
@@ -714,7 +714,7 @@ bool Project::canMoveTaskUp( Node* node )
{
if (node == 0)
return false; // safety
- // we have to find the parent of task to manipulate its list of children
+ // we have to find the parent of task to manipulate its list of tqchildren
Node* parentNode = node->getParent();
if (!parentNode) {
//kdDebug()<<k_funcinfo<<"No parent found"<<endl;
@@ -742,7 +742,7 @@ bool Project::canMoveTaskDown( Node* node )
{
if (node == 0)
return false; // safety
- // we have to find the parent of task to manipulate its list of children
+ // we have to find the parent of task to manipulate its list of tqchildren
Node* parentNode = node->getParent();
if (!parentNode) {
return false;
@@ -779,10 +779,10 @@ Task *Project::createTask(Task &def, Node* parent) {
TQString Project::uniqueNodeId(int seed) {
int i = seed;
- while (findNode(TQString("%1").arg(i))) {
+ while (findNode(TQString("%1").tqarg(i))) {
++i;
}
- return TQString("%1").arg(i);
+ return TQString("%1").tqarg(i);
}
bool Project::removeId(const TQString &id) {
@@ -987,7 +987,7 @@ void Project::setStandardWorktime(StandardWorktime * worktime) {
}
bool Project::legalToLink(Node *par, Node *child) {
- //kdDebug()<<k_funcinfo<<par.name()<<" ("<<par.numDependParentNodes()<<" parents) "<<child.name()<<" ("<<child.numDependChildNodes()<<" children)"<<endl;
+ //kdDebug()<<k_funcinfo<<par.name()<<" ("<<par.numDependParentNodes()<<" parents) "<<child.name()<<" ("<<child.numDependChildNodes()<<" tqchildren)"<<endl;
if (!child || par->isDependChildOf(child)) {
return false;
@@ -1007,7 +1007,7 @@ bool Project::legalToLink(Node *par, Node *child) {
bool Project::legalParents(Node *par, Node *child) {
bool legal = true;
- //kdDebug()<<k_funcinfo<<par->name()<<" ("<<par->numDependParentNodes()<<" parents) "<<child->name()<<" ("<<child->numDependChildNodes()<<" children)"<<endl;
+ //kdDebug()<<k_funcinfo<<par->name()<<" ("<<par->numDependParentNodes()<<" parents) "<<child->name()<<" ("<<child->numDependChildNodes()<<" tqchildren)"<<endl;
for (int i=0; i < par->numDependParentNodes() && legal; ++i) {
Node *pNode = par->getDependParentNode(i)->parent();
if (child->isParentOf(pNode) || pNode->isParentOf(child)) {
@@ -1024,7 +1024,7 @@ bool Project::legalParents(Node *par, Node *child) {
bool Project::legalChildren(Node *par, Node *child) {
bool legal = true;
- //kdDebug()<<k_funcinfo<<par->name()<<" ("<<par->numDependParentNodes()<<" parents) "<<child->name()<<" ("<<child->numDependChildNodes()<<" children)"<<endl;
+ //kdDebug()<<k_funcinfo<<par->name()<<" ("<<par->numDependParentNodes()<<" parents) "<<child->name()<<" ("<<child->numDependChildNodes()<<" tqchildren)"<<endl;
for (int j=0; j < child->numDependChildNodes() && legal; ++j) {
Node *cNode = child->getDependChildNode(j)->child();
if (par->isParentOf(cNode) || cNode->isParentOf(par)) {
@@ -1079,7 +1079,7 @@ void Project::insertCalendarId(const TQString &id, const Calendar *calendar) {
}
#ifndef NDEBUG
-void Project::printDebug(bool children, TQCString indent) {
+void Project::printDebug(bool tqchildren, TQCString indent) {
kdDebug()<<indent<<"+ Project node: "<<name()<<endl;
indent += "!";
@@ -1087,7 +1087,7 @@ void Project::printDebug(bool children, TQCString indent) {
for ( ; it.current(); ++it)
it.current()->printDebug(indent);
- Node::printDebug(children, indent);
+ Node::printDebug(tqchildren, indent);
}
void Project::printCalendarDebug(TQCString indent) {
kdDebug()<<indent<<"-------- Calendars debug printout --------"<<endl;