1 | /* This file is part of the KDE project |
2 | Copyright (C) 2004, 2007 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; either |
7 | version 2 of the License, or (at your option) any later version. |
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 | #ifndef KPTCONFIG_H |
21 | #define KPTCONFIG_H |
22 | |
23 | #include "kptconfigbase.h" |
24 | |
25 | class KPlatoSettings; |
26 | |
27 | namespace KPlato |
28 | { |
29 | |
30 | class Config : public ConfigBase |
31 | { |
32 | Q_OBJECT |
33 | public: |
34 | Config(); |
35 | ~Config(); |
36 | |
37 | void readConfig(); |
38 | void saveSettings(); |
39 | |
40 | virtual void setDefaultValues( Task &task ); |
41 | |
42 | virtual bool checkForWorkPackages() const; |
43 | virtual KUrl retrieveUrl() const; |
44 | |
45 | virtual int minimumDurationUnit() const; |
46 | virtual int maximumDurationUnit() const; |
47 | |
48 | virtual bool summaryTaskLevelColorsEnabled() const; |
49 | virtual QBrush summaryTaskDefaultColor() const; |
50 | virtual QBrush summaryTaskLevelColor_1() const; |
51 | virtual QBrush summaryTaskLevelColor_2() const; |
52 | virtual QBrush summaryTaskLevelColor_3() const; |
53 | virtual QBrush summaryTaskLevelColor_4() const; |
54 | |
55 | virtual QBrush taskNormalColor() const; |
56 | virtual QBrush taskErrorColor() const; |
57 | virtual QBrush taskCriticalColor() const; |
58 | virtual QBrush taskFinishedColor() const; |
59 | |
60 | virtual QBrush milestoneNormalColor() const; |
61 | virtual QBrush milestoneErrorColor() const; |
62 | virtual QBrush milestoneCriticalColor() const; |
63 | virtual QBrush milestoneFinishedColor() const; |
64 | |
65 | }; |
66 | |
67 | } //KPlato namespace |
68 | |
69 | #endif // CONFIG_H |
70 | |