kalarm
prefdlg.h
Go to the documentation of this file.00001 /* 00002 * prefdlg.h - program preferences dialog 00003 * Program: kalarm 00004 * Copyright © 2001-2008 by David Jarvie <djarvie@kde.org> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with this program; if not, write to the Free Software Foundation, Inc., 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef PREFDLG_H 00022 #define PREFDLG_H 00023 00024 #include <kpagedialog.h> 00025 00026 class FontColourPrefTab; 00027 class EditPrefTab; 00028 class EmailPrefTab; 00029 class ViewPrefTab; 00030 class StorePrefTab; 00031 class TimePrefTab; 00032 class MiscPrefTab; 00033 00034 00035 // The Preferences dialog 00036 class KAlarmPrefDlg : public KPageDialog 00037 { 00038 Q_OBJECT 00039 public: 00040 static void display(); 00041 ~KAlarmPrefDlg(); 00042 virtual QSize minimumSizeHint() const; 00043 00044 MiscPrefTab* mMiscPage; 00045 TimePrefTab* mTimePage; 00046 StorePrefTab* mStorePage; 00047 EditPrefTab* mEditPage; 00048 EmailPrefTab* mEmailPage; 00049 ViewPrefTab* mViewPage; 00050 FontColourPrefTab* mFontColourPage; 00051 00052 KPageWidgetItem* mMiscPageItem; 00053 KPageWidgetItem* mTimePageItem; 00054 KPageWidgetItem* mStorePageItem; 00055 KPageWidgetItem* mEditPageItem; 00056 KPageWidgetItem* mEmailPageItem; 00057 KPageWidgetItem* mViewPageItem; 00058 KPageWidgetItem* mFontColourPageItem; 00059 00060 protected: 00061 virtual void resizeEvent(QResizeEvent*); 00062 00063 protected slots: 00064 virtual void slotOk(); 00065 virtual void slotApply(); 00066 virtual void slotHelp(); 00067 virtual void slotDefault() { restore(true); } 00068 virtual void slotCancel(); 00069 00070 private: 00071 KAlarmPrefDlg(); 00072 void restore(bool defaults); 00073 00074 static KAlarmPrefDlg* mInstance; 00075 bool mValid; 00076 }; 00077 00078 #endif // PREFDLG_H
KDE 4.2 API Reference