SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / korganizer / kcmdesignerfields.h
blob8a4dedc3e863a4b7d8d46c31a1d0f28f38e98916
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
5 Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #ifndef KORG_KCMDESIGNERFIELDS_H
24 #define KORG_KCMDESIGNERFIELDS_H
26 #include <KCModule>
28 class QLabel;
29 class QPushButton;
30 class QTreeWidget;
31 class QTreeWidgetItem;
33 class KCMDesignerFields : public KCModule
35 Q_OBJECT
36 public:
37 explicit KCMDesignerFields(QWidget *parent = Q_NULLPTR,
38 const QVariantList &args = QVariantList());
40 void load() Q_DECL_OVERRIDE;
41 void save() Q_DECL_OVERRIDE;
42 void defaults() Q_DECL_OVERRIDE;
44 protected:
45 void loadUiFiles();
46 void loadActivePages(const QStringList &);
47 QStringList saveActivePages();
49 virtual QString localUiDir() = 0;
50 virtual QString uiPath() = 0;
51 virtual void writeActivePages(const QStringList &) = 0;
52 virtual QStringList readActivePages() = 0;
53 virtual QString applicationName() = 0;
55 private Q_SLOTS:
56 void updatePreview();
57 void itemClicked(QTreeWidgetItem *);
58 void startDesigner();
59 void rebuildList();
60 void deleteFile();
61 void importFile();
62 void delayedInit();
63 void showWhatsThis(const QString &href);
65 private:
66 void initGUI();
68 QTreeWidget *mPageView;
69 QLabel *mPagePreview;
70 QLabel *mPageDetails;
71 QPushButton *mDeleteButton;
72 QPushButton *mImportButton;
73 QPushButton *mDesignerButton;
76 #endif