diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptschedule.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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/kptschedule.h')
-rw-r--r-- | kplato/kptschedule.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/kplato/kptschedule.h b/kplato/kptschedule.h index 29cb135d..e1525c79 100644 --- a/kplato/kptschedule.h +++ b/kplato/kptschedule.h @@ -23,12 +23,12 @@ #include "kpteffortcostmap.h" #include "kptresource.h" -#include <qintdict.h> -#include <qptrlist.h> -#include <qstring.h> +#include <tqintdict.h> +#include <tqptrlist.h> +#include <tqstring.h> -class QDomElement; -class QStringList; +class TQDomElement; +class TQStringList; namespace KPlato { @@ -61,33 +61,33 @@ public: }; Schedule(); - Schedule(Schedule *parent); - Schedule(QString name, Type type, long id); + Schedule(Schedule *tqparent); + Schedule(TQString name, Type type, long id); ~Schedule(); - QString name() const { return m_name; } - void setName(QString name) { m_name = name; } + TQString name() const { return m_name; } + void setName(TQString name) { m_name = name; } Type type() const { return m_type; } void setType(Type type) { m_type = type; } - void setType(QString type); - QString typeToString(bool translate=false) const; + void setType(TQString type); + TQString typeToString(bool translate=false) const; long id() const { return m_id; } void setId(long id) { m_id = id; } - void setParent(Schedule *parent); - Schedule *parent() const { return m_parent; } + void setParent(Schedule *tqparent); + Schedule *tqparent() const { return m_parent; } virtual bool isDeleted() const; virtual void setDeleted(bool on); virtual Resource *resource() const { return 0; } virtual Node *node() const { return 0; } - virtual bool loadXML(const QDomElement &element); - virtual void saveXML(QDomElement &element) const; - void saveCommonXML(QDomElement &element) const; - void saveAppointments(QDomElement &element) const; + virtual bool loadXML(const TQDomElement &element); + virtual void saveXML(TQDomElement &element) const; + void saveCommonXML(TQDomElement &element) const; + void saveAppointments(TQDomElement &element) const; /// Return the list of appointments - QPtrList<Appointment> &appointments() { return m_appointments; } + TQPtrList<Appointment> &appointments() { return m_appointments; } /// Adds appointment to this schedule only virtual bool add(Appointment *appointment); /// Adds appointment to both this resource schedule and node schedule @@ -102,23 +102,23 @@ public: virtual bool isOverbooked() const { return false; } virtual bool isOverbooked(const DateTime &/*start*/, const DateTime &/*end*/) const { return false; } - virtual QStringList overbookedResources() const; + virtual TQStringList overbookedResources() const; - virtual EffortCostMap plannedEffortCostPrDay(const QDate &start, const QDate &end) const; + virtual EffortCostMap plannedEffortCostPrDay(const TQDate &start, const TQDate &end) const; /// Returns the total planned effort for this task (or subtasks) virtual Duration plannedEffort() const; /// Returns the total planned effort for this task (or subtasks) on date - virtual Duration plannedEffort(const QDate &date) const; + virtual Duration plannedEffort(const TQDate &date) const; /// Returns the planned effort up to and including date - virtual Duration plannedEffortTo(const QDate &date) const; + virtual Duration plannedEffortTo(const TQDate &date) const; /// Returns the total actual effort for this task (or subtasks) virtual Duration actualEffort() const; /// Returns the total actual effort for this task (or subtasks) on date - virtual Duration actualEffort(const QDate &date) const; + virtual Duration actualEffort(const TQDate &date) const; /// Returns the total actual effort for this task (or subtasks) up to and including date - virtual Duration actualEffortTo(const QDate &date) const; + virtual Duration actualEffortTo(const TQDate &date) const; /** * Planned cost is the sum total of all resources and other costs @@ -127,26 +127,26 @@ public: virtual double plannedCost() const; /// Planned cost on date - virtual double plannedCost(const QDate &date) const; + virtual double plannedCost(const TQDate &date) const; /** * Planned cost from start of activity up to and including date * is the sum of all resource costs and other costs planned for this node. */ - virtual double plannedCostTo(const QDate &date) const; + virtual double plannedCostTo(const TQDate &date) const; /** * Actual cost is the sum total of the reported costs actually used * for this node. */ virtual double actualCost() const; /// Actual cost on date - virtual double actualCost(const QDate &date) const; + virtual double actualCost(const TQDate &date) const; /// Actual cost up to and including date - virtual double actualCostTo(const QDate &date) const; + virtual double actualCostTo(const TQDate &date) const; /// Effort based performance index - double effortPerformanceIndex(const QDate &/*date*/, bool */*error=0*/) { return 0.0; } + double effortPerformanceIndex(const TQDate &/*date*/, bool */*error=0*/) { return 0.0; } /// Cost performance index - double costPerformanceIndex(const QDate &/*date*/, bool */*error=0*/) { return 0.0; } + double costPerformanceIndex(const TQDate &/*date*/, bool */*error=0*/) { return 0.0; } virtual double normalRatePrHour() const { return 0.0; } @@ -163,12 +163,12 @@ public: DateTime end() const { return endTime; } protected: - QString m_name; + TQString m_name; Type m_type; long m_id; bool m_deleted; - QPtrList<Appointment> m_appointments; + TQPtrList<Appointment> m_appointments; Schedule *m_parent; friend class Node; @@ -222,7 +222,7 @@ protected: #ifndef NDEBUG public: - virtual void printDebug(QString ident); + virtual void printDebug(TQString ident); #endif }; @@ -234,16 +234,16 @@ class NodeSchedule : public Schedule { public: NodeSchedule(); - NodeSchedule(Node *node, QString name, Schedule::Type type, long id); - NodeSchedule(Schedule *parent, Node *node); + NodeSchedule(Node *node, TQString name, Schedule::Type type, long id); + NodeSchedule(Schedule *tqparent, Node *node); ~NodeSchedule(); virtual bool isDeleted() const { return m_parent == 0 ? true : m_parent->isDeleted(); } void setDeleted(bool on); - virtual bool loadXML(const QDomElement &element); - virtual void saveXML(QDomElement &element) const; + virtual bool loadXML(const TQDomElement &element); + virtual void saveXML(TQDomElement &element) const; // tasks------------> virtual void addAppointment(Schedule *resource, DateTime &start, DateTime &end, double load=100); @@ -259,7 +259,7 @@ private: #ifndef NDEBUG public: - virtual void printDebug(QString ident); + virtual void printDebug(TQString ident); #endif }; @@ -271,8 +271,8 @@ class ResourceSchedule : public Schedule { public: ResourceSchedule(); - ResourceSchedule(Resource *Resource, QString name, Schedule::Type type, long id); - ResourceSchedule(Schedule *parent, Resource *Resource); + ResourceSchedule(Resource *Resource, TQString name, Schedule::Type type, long id); + ResourceSchedule(Schedule *tqparent, Resource *Resource); ~ResourceSchedule(); virtual bool isDeleted() const @@ -292,7 +292,7 @@ private: #ifndef NDEBUG public: - virtual void printDebug(QString ident); + virtual void printDebug(TQString ident); #endif }; @@ -304,18 +304,18 @@ class MainSchedule : public NodeSchedule { public: MainSchedule(); - MainSchedule(Node *node, QString name, Schedule::Type type, long id); + MainSchedule(Node *node, TQString name, Schedule::Type type, long id); ~MainSchedule(); virtual bool isDeleted() const { return m_deleted; } - virtual bool loadXML(const QDomElement &element, Project &project); - virtual void saveXML(QDomElement &element) const; + virtual bool loadXML(const TQDomElement &element, Project &project); + virtual void saveXML(TQDomElement &element) const; private: #ifndef NDEBUG public: - virtual void printDebug(QString ident); + virtual void printDebug(TQString ident); #endif }; |