Fix Bug 358840 - kmail composer: menu item "send" missing
[kdepim.git] / knotes / configdialog / knotesimpleconfigdialog.h
blob7764f9b2ec14cd7bd9416950d26af8432f85f79d
1 /*
2 Copyright (c) 2013-2015 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 KNoteSimpleConfigDialog_H
19 #define KNoteSimpleConfigDialog_H
20 #include "knotes_export.h"
21 #include <AkonadiCore/Item>
22 #include <QDialog>
23 class QTabWidget;
24 class KNoteEditorConfigWidget;
25 class KNoteDisplayConfigWidget;
26 class KNOTES_EXPORT KNoteSimpleConfigDialog : public QDialog
28 Q_OBJECT
29 public:
30 explicit KNoteSimpleConfigDialog(const QString &title, QWidget *parent = Q_NULLPTR);
31 ~KNoteSimpleConfigDialog();
33 void load(Akonadi::Item &item, bool isRichText);
34 void save(Akonadi::Item &item, bool &isRichText);
36 public Q_SLOTS:
37 void slotUpdateCaption(const QString &name);
39 private:
40 void readConfig();
41 void writeConfig();
42 QTabWidget *mTabWidget;
43 KNoteEditorConfigWidget *mEditorConfigWidget;
44 KNoteDisplayConfigWidget *mDisplayConfigWidget;
47 #endif // KNoteSimpleConfigDialog_H