00001 /* This file is part of the KDE project 00002 Copyright (C) 2005 Dag Andersen <danders@get2net.dk> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; 00007 version 2 of the License. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 00018 */ 00019 00020 00021 #ifndef KPTCONTEXT_H 00022 #define KPTCONTEXT_H 00023 00024 #include <qdatetime.h> 00025 #include <QString> 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 // View 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 } //KPlato namespace 00086 00087 #endif //CONTEXT_H