kplato

kptcontext.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 Dag Andersen <danders@get2net.dk>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation;
7 version 2 of the License.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20
21#ifndef KPTCONTEXT_H
22#define KPTCONTEXT_H
23
24#include <tqdatetime.h>
25#include <tqstring.h>
26#include <tqstringlist.h>
27
28class TQDomElement;
29
30namespace KPlato
31{
32
33class Context {
34public:
35 Context();
36 virtual ~Context();
37
38 virtual bool load(TQDomElement &element);
39 virtual void save(TQDomElement &element) const;
40
41
42 // View
43 TQString currentView;
44 int currentEstimateType;
45 long currentSchedule;
46 bool actionViewExpected;
47 bool actionViewOptimistic;
48 bool actionViewPessimistic;
49
50 struct Ganttview {
51 int ganttviewsize;
52 int taskviewsize;
53 TQString currentNode;
54 bool showResources;
55 bool showTaskName;
56 bool showTaskLinks;
57 bool showProgress;
58 bool showPositiveFloat;
59 bool showCriticalTasks;
60 bool showCriticalPath;
61 bool showNoInformation;
62 TQStringList closedNodes;
63 } ganttview;
64
65 struct Pertview {
66 } pertview;
67
68 struct Resourceview {
69 } resourceview;
70
71 struct Accountsview {
72 int accountsviewsize;
73 int periodviewsize;
74 TQDate date;
75 int period;
76 bool cumulative;
77 TQStringList closedItems;
78 } accountsview;
79
80 struct Reportview {
81 } reportview;
82
83};
84
85} //KPlato namespace
86
87#endif //CONTEXT_H