Fix rename method
[kdepim.git] / grantleeeditor / headerthemeeditor / themetemplatewidget.h
blob7c36d4a9f1aa6fa3746535a64c83d8b19b888d67
1 /*
2 Copyright (c) 2013-2016 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef THEMETEMPLATEWIDGET_H
19 #define THEMETEMPLATEWIDGET_H
21 #include <QWidget>
22 #include "PimCommon/TemplateListWidget"
24 class ThemeTemplateListWidget : public PimCommon::TemplateListWidget
26 Q_OBJECT
27 public:
28 explicit ThemeTemplateListWidget(const QString &configName, QWidget *parent = Q_NULLPTR);
29 ~ThemeTemplateListWidget();
31 QVector<PimCommon::defaultTemplate> defaultTemplates() Q_DECL_OVERRIDE;
34 class ThemeTemplateWidget : public QWidget
36 Q_OBJECT
37 public:
38 explicit ThemeTemplateWidget(const QString &title, QWidget *parent = Q_NULLPTR);
39 ~ThemeTemplateWidget();
41 Q_SIGNALS:
42 void insertTemplate(const QString &);
44 private:
45 ThemeTemplateListWidget *mListTemplate;
48 #endif // THEMETEMPLATEWIDGET_H