SVN_SILENT made messages (after extraction)
[kdepim.git] / kalarm / prefdlg.h
blob1ff0cf7784bfd51a383fde0100f1aaa00366b295
1 /*
2 * prefdlg.h - program preferences dialog
3 * Program: kalarm
4 * Copyright © 2001-2013 by David Jarvie <djarvie@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef PREFDLG_H
22 #define PREFDLG_H
24 #include <kpagedialog.h>
26 class EditPrefTab;
27 class EmailPrefTab;
28 class ViewPrefTab;
29 class StorePrefTab;
30 class TimePrefTab;
31 class MiscPrefTab;
32 class StackedScrollGroup;
35 // The Preferences dialog
36 class KAlarmPrefDlg : public KPageDialog
38 Q_OBJECT
39 public:
40 static void display();
41 ~KAlarmPrefDlg();
42 QSize minimumSizeHint() const Q_DECL_OVERRIDE;
44 MiscPrefTab* mMiscPage;
45 TimePrefTab* mTimePage;
46 StorePrefTab* mStorePage;
47 EditPrefTab* mEditPage;
48 EmailPrefTab* mEmailPage;
49 ViewPrefTab* mViewPage;
51 KPageWidgetItem* mMiscPageItem;
52 KPageWidgetItem* mTimePageItem;
53 KPageWidgetItem* mStorePageItem;
54 KPageWidgetItem* mEditPageItem;
55 KPageWidgetItem* mEmailPageItem;
56 KPageWidgetItem* mViewPageItem;
58 protected:
59 void showEvent(QShowEvent*) Q_DECL_OVERRIDE;
60 void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
62 protected Q_SLOTS:
63 virtual void slotOk();
64 virtual void slotApply();
65 virtual void slotHelp();
66 virtual void slotDefault();
67 virtual void slotCancel();
69 private:
70 KAlarmPrefDlg();
71 void restore(bool defaults);
73 static KAlarmPrefDlg* mInstance;
74 StackedScrollGroup* mTabScrollGroup;
75 bool mShown;
76 bool mValid;
79 #endif // PREFDLG_H
81 // vim: et sw=4: