-rw-r--r-- | korganizer/koprefsdialog.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h index ee7a7aa..ccc1726 100644 --- a/korganizer/koprefsdialog.h +++ b/korganizer/koprefsdialog.h | |||
@@ -1,61 +1,63 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef _KOPREFSDIALOG_H | 23 | #ifndef _KOPREFSDIALOG_H |
24 | #define _KOPREFSDIALOG_H | 24 | #define _KOPREFSDIALOG_H |
25 | 25 | ||
26 | #include <qframe.h> | 26 | #include <q3frame.h> |
27 | #include <qdict.h> | 27 | #include <q3dict.h> |
28 | #include <qcolor.h> | 28 | #include <qcolor.h> |
29 | #include <qlistview.h> | 29 | #include <q3listview.h> |
30 | //Added by qt3to4: | ||
31 | #include <QLabel> | ||
30 | 32 | ||
31 | #include <kdialogbase.h> | 33 | #include <kdialogbase.h> |
32 | 34 | ||
33 | #include <libkdepim/kprefsdialog.h> | 35 | #include <libkdepim/kprefsdialog.h> |
34 | #include <libkdepim/kdateedit.h> | 36 | #include <libkdepim/kdateedit.h> |
35 | #include <kcmconfigs/kdepimconfigwidget.h> | 37 | #include <kcmconfigs/kdepimconfigwidget.h> |
36 | 38 | ||
37 | class KColorButton; | 39 | class KColorButton; |
38 | class QSpinBox; | 40 | class QSpinBox; |
39 | class QSlider; | 41 | class QSlider; |
40 | class KURLRequester; | 42 | class KURLRequester; |
41 | class QComboBox; | 43 | class QComboBox; |
42 | class QLineEdit; | 44 | class QLineEdit; |
43 | class QStringList; | 45 | class QStringList; |
44 | 46 | ||
45 | /** Dialog to change the korganizer configuration. | 47 | /** Dialog to change the korganizer configuration. |
46 | */ | 48 | */ |
47 | class KOPrefsDialog : public KPrefsDialog | 49 | class KOPrefsDialog : public KPrefsDialog |
48 | { | 50 | { |
49 | Q_OBJECT | 51 | Q_OBJECT |
50 | public: | 52 | public: |
51 | /** Initialize dialog and pages */ | 53 | /** Initialize dialog and pages */ |
52 | KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); | 54 | KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); |
53 | ~KOPrefsDialog(); | 55 | ~KOPrefsDialog(); |
54 | 56 | ||
55 | public slots: | 57 | public slots: |
56 | void showPrinterTab(); | 58 | void showPrinterTab(); |
57 | 59 | ||
58 | /** Update controls for categories */ | 60 | /** Update controls for categories */ |
59 | void updateCategories(); | 61 | void updateCategories(); |
60 | protected slots: | 62 | protected slots: |
61 | void selectSoundFile(); | 63 | void selectSoundFile(); |
@@ -65,92 +67,92 @@ class KOPrefsDialog : public KPrefsDialog | |||
65 | 67 | ||
66 | //additional emails | 68 | //additional emails |
67 | void addItem(); | 69 | void addItem(); |
68 | void removeItem(); | 70 | void removeItem(); |
69 | void updateItem(); | 71 | void updateItem(); |
70 | void updateInput(); | 72 | void updateInput(); |
71 | 73 | ||
72 | protected: | 74 | protected: |
73 | void usrReadConfig(); | 75 | void usrReadConfig(); |
74 | void usrWriteConfig(); | 76 | void usrWriteConfig(); |
75 | void setupGlobalTab(); | 77 | void setupGlobalTab(); |
76 | 78 | ||
77 | void setupMainTab(); | 79 | void setupMainTab(); |
78 | void setupTimeTab(); | 80 | void setupTimeTab(); |
79 | void setupLocaleTab(); | 81 | void setupLocaleTab(); |
80 | void setupLocaleDateTab(); | 82 | void setupLocaleDateTab(); |
81 | void setupFontsTab(); | 83 | void setupFontsTab(); |
82 | void setupColorsTab(); | 84 | void setupColorsTab(); |
83 | void setupViewsTab(); | 85 | void setupViewsTab(); |
84 | void setupDisplayTab(); | 86 | void setupDisplayTab(); |
85 | void setupPrinterTab(); | 87 | void setupPrinterTab(); |
86 | void setupGroupSchedulingTab(); | 88 | void setupGroupSchedulingTab(); |
87 | void setupGroupAutomationTab(); | 89 | void setupGroupAutomationTab(); |
88 | 90 | ||
89 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); | 91 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); |
90 | 92 | ||
91 | 93 | ||
92 | private: | 94 | private: |
93 | QColor mCatDefaultColor; | 95 | QColor mCatDefaultColor; |
94 | KPrefsDialogWidBool *mEnableGroupScheduling; | 96 | KPrefsDialogWidBool *mEnableGroupScheduling; |
95 | KPrefsDialogWidBool *mEnableProjectView; | 97 | KPrefsDialogWidBool *mEnableProjectView; |
96 | 98 | ||
97 | QFrame *mPrinterTab; | 99 | Q3Frame *mPrinterTab; |
98 | 100 | ||
99 | QLineEdit *nameEdit; | 101 | QLineEdit *nameEdit; |
100 | QLineEdit *emailEdit; | 102 | QLineEdit *emailEdit; |
101 | 103 | ||
102 | QComboBox *timeCombo; | 104 | QComboBox *timeCombo; |
103 | QComboBox *tzCombo; | 105 | QComboBox *tzCombo; |
104 | 106 | ||
105 | // widgets holding preferences data | 107 | // widgets holding preferences data |
106 | QLineEdit *mNameEdit; | 108 | QLineEdit *mNameEdit; |
107 | QLineEdit *mEmailEdit; | 109 | QLineEdit *mEmailEdit; |
108 | QLabel *mNameLabel; | 110 | QLabel *mNameLabel; |
109 | QLabel *mEmailLabel; | 111 | QLabel *mEmailLabel; |
110 | QLineEdit *mAdditionalEdit; | 112 | QLineEdit *mAdditionalEdit; |
111 | QSpinBox *mAutoSaveIntervalSpin; | 113 | QSpinBox *mAutoSaveIntervalSpin; |
112 | QSpinBox *mPrioSpin; | 114 | QSpinBox *mPrioSpin; |
113 | // QListView *mAMails; | 115 | // QListView *mAMails; |
114 | QLineEdit *aEmailsEdit; | 116 | QLineEdit *aEmailsEdit; |
115 | 117 | ||
116 | QComboBox *mTimeZoneCombo; | 118 | QComboBox *mTimeZoneCombo; |
117 | QStringList tzonenames; | 119 | QStringList tzonenames; |
118 | QSpinBox *mStartTimeSpin; | 120 | QSpinBox *mStartTimeSpin; |
119 | QSpinBox *mDefaultDurationSpin; | 121 | QSpinBox *mDefaultDurationSpin; |
120 | QComboBox *mAlarmTimeCombo; | 122 | QComboBox *mAlarmTimeCombo; |
121 | 123 | ||
122 | QComboBox *mCategoryCombo; | 124 | QComboBox *mCategoryCombo; |
123 | KColorButton *mCategoryButton; | 125 | KColorButton *mCategoryButton; |
124 | QDict<QColor> mCategoryDict; | 126 | Q3Dict<QColor> mCategoryDict; |
125 | 127 | ||
126 | QSlider *mHourSizeSlider; | 128 | QSlider *mHourSizeSlider; |
127 | 129 | ||
128 | QSpinBox *mNextXDaysSpin; | 130 | QSpinBox *mNextXDaysSpin; |
129 | QSpinBox *mWhatsNextSpin; | 131 | QSpinBox *mWhatsNextSpin; |
130 | 132 | ||
131 | QLineEdit * mRemoteIPEdit; | 133 | QLineEdit * mRemoteIPEdit; |
132 | QLineEdit * mRemoteUser; | 134 | QLineEdit * mRemoteUser; |
133 | QLineEdit * mRemotePassWd; | 135 | QLineEdit * mRemotePassWd; |
134 | QLineEdit * mRemoteFile; | 136 | QLineEdit * mRemoteFile; |
135 | QLineEdit * mLocalTempFile; | 137 | QLineEdit * mLocalTempFile; |
136 | QWidget* mSetupSyncAlgTab; | 138 | QWidget* mSetupSyncAlgTab; |
137 | QLineEdit * mUserDateFormatLong; | 139 | QLineEdit * mUserDateFormatLong; |
138 | QLineEdit * mUserDateFormatShort; | 140 | QLineEdit * mUserDateFormatShort; |
139 | 141 | ||
140 | QSpinBox *mTimezoneOffsetSpin; | 142 | QSpinBox *mTimezoneOffsetSpin; |
141 | QSpinBox *mDaylightsavingStart; | 143 | QSpinBox *mDaylightsavingStart; |
142 | QSpinBox *mDaylightsavingEnd; | 144 | QSpinBox *mDaylightsavingEnd; |
143 | KDateEdit* mStartDateSavingEdit; | 145 | KDateEdit* mStartDateSavingEdit; |
144 | KDateEdit* mEndDateSavingEdit; | 146 | KDateEdit* mEndDateSavingEdit; |
145 | QSpinBox * mAlarmPlayBeeps; | 147 | QSpinBox * mAlarmPlayBeeps; |
146 | QSpinBox * mAlarmSuspendTime; | 148 | QSpinBox * mAlarmSuspendTime; |
147 | QSpinBox * mAlarmSuspendCount; | 149 | QSpinBox * mAlarmSuspendCount; |
148 | QSpinBox * mAlarmBeepInterval; | 150 | QSpinBox * mAlarmBeepInterval; |
149 | 151 | ||
150 | QComboBox * mFilterEditItem, *mFilterAllItem; | 152 | QComboBox * mFilterEditItem, *mFilterAllItem; |
151 | 153 | ||
152 | QLineEdit * mDefaultAlarmFile; | 154 | QLineEdit * mDefaultAlarmFile; |
153 | int mSpacingHint; | 155 | int mSpacingHint; |
154 | int mMarginHint; | 156 | int mMarginHint; |
155 | }; | 157 | }; |
156 | 158 | ||