2 * prefdlg.h - program preferences dialog
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.
24 #include <kpagedialog.h>
26 class FontColourPrefTab
;
33 class StackedScrollGroup
;
36 // The Preferences dialog
37 class KAlarmPrefDlg
: public KPageDialog
41 static void display();
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
;
62 virtual void showEvent(QShowEvent
*);
63 virtual void resizeEvent(QResizeEvent
*);
66 virtual void slotOk();
67 virtual void slotApply();
68 virtual void slotHelp();
69 virtual void slotDefault();
70 virtual void slotCancel();
74 void restore(bool defaults
);
76 static KAlarmPrefDlg
* mInstance
;
77 StackedScrollGroup
* mTabScrollGroup
;