Build with clang.
[kdepim.git] / kalarm / prefdlg.h
blobb462680cb9c26b075f06a702c788b9c37da692c7
1 /*
2 * prefdlg.h - program preferences dialog
3 * Program: kalarm
4 * Copyright © 2001-2009 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 FontColourPrefTab;
27 class EditPrefTab;
28 class EmailPrefTab;
29 class ViewPrefTab;
30 class StorePrefTab;
31 class TimePrefTab;
32 class MiscPrefTab;
33 class StackedScrollGroup;
36 // The Preferences dialog
37 class KAlarmPrefDlg : public KPageDialog
39 Q_OBJECT
40 public:
41 static void display();
42 ~KAlarmPrefDlg();
43 virtual QSize minimumSizeHint() const;
45 MiscPrefTab* mMiscPage;
46 TimePrefTab* mTimePage;
47 StorePrefTab* mStorePage;
48 EditPrefTab* mEditPage;
49 EmailPrefTab* mEmailPage;
50 ViewPrefTab* mViewPage;
51 FontColourPrefTab* mFontColourPage;
53 KPageWidgetItem* mMiscPageItem;
54 KPageWidgetItem* mTimePageItem;
55 KPageWidgetItem* mStorePageItem;
56 KPageWidgetItem* mEditPageItem;
57 KPageWidgetItem* mEmailPageItem;
58 KPageWidgetItem* mViewPageItem;
59 KPageWidgetItem* mFontColourPageItem;
61 protected:
62 virtual void showEvent(QShowEvent*);
63 virtual void resizeEvent(QResizeEvent*);
65 protected slots:
66 virtual void slotOk();
67 virtual void slotApply();
68 virtual void slotHelp();
69 virtual void slotDefault();
70 virtual void slotCancel();
72 private:
73 KAlarmPrefDlg();
74 void restore(bool defaults);
76 static KAlarmPrefDlg* mInstance;
77 StackedScrollGroup* mTabScrollGroup;
78 bool mShown;
79 bool mValid;
82 #endif // PREFDLG_H
84 // vim: et sw=4: