kplato
kptcontext.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KPTCONTEXT_H
00022 #define KPTCONTEXT_H
00023
00024 #include <qdatetime.h>
00025 #include <qstring.h>
00026 #include <qstringlist.h>
00027
00028 class QDomElement;
00029
00030 namespace KPlato
00031 {
00032
00033 class Context {
00034 public:
00035 Context();
00036 virtual ~Context();
00037
00038 virtual bool load(QDomElement &element);
00039 virtual void save(QDomElement &element) const;
00040
00041
00042
00043 QString currentView;
00044 int currentEstimateType;
00045 long currentSchedule;
00046 bool actionViewExpected;
00047 bool actionViewOptimistic;
00048 bool actionViewPessimistic;
00049
00050 struct Ganttview {
00051 int ganttviewsize;
00052 int taskviewsize;
00053 QString currentNode;
00054 bool showResources;
00055 bool showTaskName;
00056 bool showTaskLinks;
00057 bool showProgress;
00058 bool showPositiveFloat;
00059 bool showCriticalTasks;
00060 bool showCriticalPath;
00061 bool showNoInformation;
00062 QStringList closedNodes;
00063 } ganttview;
00064
00065 struct Pertview {
00066 } pertview;
00067
00068 struct Resourceview {
00069 } resourceview;
00070
00071 struct Accountsview {
00072 int accountsviewsize;
00073 int periodviewsize;
00074 QDate date;
00075 int period;
00076 bool cumulative;
00077 QStringList closedItems;
00078 } accountsview;
00079
00080 struct Reportview {
00081 } reportview;
00082
00083 };
00084
00085 }
00086
00087 #endif //CONTEXT_H
|