2 * prefdlg.h - program preferences dialog
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.
24 #include <kpagedialog.h>
32 class StackedScrollGroup
;
35 // The Preferences dialog
36 class KAlarmPrefDlg
: public KPageDialog
40 static void display();
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
;
59 void showEvent(QShowEvent
*) Q_DECL_OVERRIDE
;
60 void resizeEvent(QResizeEvent
*) Q_DECL_OVERRIDE
;
63 virtual void slotOk();
64 virtual void slotApply();
65 virtual void slotHelp();
66 virtual void slotDefault();
67 virtual void slotCancel();
71 void restore(bool defaults
);
73 static KAlarmPrefDlg
* mInstance
;
74 StackedScrollGroup
* mTabScrollGroup
;