File indexing completed on 2024-04-28 16:24:35
0001 /* This file is part of the KDE project 0002 Copyright (C) 2004, 2007 Dag Andersen <danders@get2net.dk> 0003 Copyright (C) 2019 Dag Andersen <danders@get2net.dk> 0004 0005 This library is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU Library General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 0010 This library is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 Library General Public License for more details. 0014 0015 You should have received a copy of the GNU Library General Public License 0016 along with this library; see the file COPYING.LIB. If not, write to 0017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 * Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #ifndef KPTCONFIG_H 0022 #define KPTCONFIG_H 0023 0024 #include "kptconfigbase.h" 0025 0026 0027 namespace KPlato 0028 { 0029 0030 class Config : public ConfigBase 0031 { 0032 Q_OBJECT 0033 public: 0034 Config(); 0035 ~Config() override; 0036 0037 void readConfig(); 0038 void saveSettings(); 0039 0040 bool isWorkingday(int day) const; 0041 QTime dayStartTime(int day) const; 0042 int dayLength(int day) const; 0043 0044 void setDefaultValues(Project &project) const override; 0045 0046 void setDefaultValues(Task &task) override; 0047 0048 int minimumDurationUnit() const override; 0049 int maximumDurationUnit() const override; 0050 0051 bool summaryTaskLevelColorsEnabled() const override; 0052 QBrush summaryTaskDefaultColor() const override; 0053 QBrush summaryTaskLevelColor_1() const override; 0054 QBrush summaryTaskLevelColor_2() const override; 0055 QBrush summaryTaskLevelColor_3() const override; 0056 QBrush summaryTaskLevelColor_4() const override; 0057 0058 QBrush taskNormalColor() const override; 0059 QBrush taskErrorColor() const override; 0060 QBrush taskCriticalColor() const override; 0061 QBrush taskFinishedColor() const override; 0062 0063 QBrush milestoneNormalColor() const override; 0064 QBrush milestoneErrorColor() const override; 0065 QBrush milestoneCriticalColor() const override; 0066 QBrush milestoneFinishedColor() const override; 0067 0068 QString documentationPath() const override; 0069 QString contextPath() const override; 0070 QString contextLanguage() const override; 0071 0072 bool useLocalTaskModules() const override; 0073 QStringList taskModulePaths() const override; 0074 0075 QStringList projectTemplatePaths() const override; 0076 }; 0077 0078 } //KPlato namespace 0079 0080 #endif // CONFIG_H