author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/koprefsdialog.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kmicromail/koprefsdialog.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/kmicromail/koprefsdialog.h b/kmicromail/koprefsdialog.h index 7fa9261..042af3f 100644 --- a/kmicromail/koprefsdialog.h +++ b/kmicromail/koprefsdialog.h | |||
@@ -1,179 +1,181 @@ | |||
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 | protected: | 57 | protected: |
56 | void usrReadConfig(); | 58 | void usrReadConfig(); |
57 | void usrWriteConfig(); | 59 | void usrWriteConfig(); |
58 | 60 | ||
59 | void setupMainTab(); | 61 | void setupMainTab(); |
60 | void setupGlobalTab(); | 62 | void setupGlobalTab(); |
61 | void setupMailTab(); | 63 | void setupMailTab(); |
62 | void setupFontsTab(); | 64 | void setupFontsTab(); |
63 | private: | 65 | private: |
64 | QLineEdit *mNameEdit; | 66 | QLineEdit *mNameEdit; |
65 | QLineEdit *mCodecEdit; | 67 | QLineEdit *mCodecEdit; |
66 | QLineEdit *mEmailEdit; | 68 | QLineEdit *mEmailEdit; |
67 | QLabel *mNameLabel; | 69 | QLabel *mNameLabel; |
68 | QLabel *mEmailLabel; | 70 | QLabel *mEmailLabel; |
69 | #if 0 | 71 | #if 0 |
70 | /* | 72 | /* |
71 | public slots: | 73 | public slots: |
72 | void showPrinterTab(); | 74 | void showPrinterTab(); |
73 | 75 | ||
74 | 76 | ||
75 | void updateCategories(); | 77 | void updateCategories(); |
76 | void showSyncPage(); | 78 | void showSyncPage(); |
77 | protected slots: | 79 | protected slots: |
78 | void selectSoundFile(); | 80 | void selectSoundFile(); |
79 | void setCategoryColor(); | 81 | void setCategoryColor(); |
80 | void updateCategoryColor(); | 82 | void updateCategoryColor(); |
81 | void updateTimezoneOffset( int ); | 83 | void updateTimezoneOffset( int ); |
82 | 84 | ||
83 | 85 | ||
84 | void warningExperimental(bool on); | 86 | void warningExperimental(bool on); |
85 | void warningGroupScheduling(); | 87 | void warningGroupScheduling(); |
86 | void warningProjectView(); | 88 | void warningProjectView(); |
87 | 89 | ||
88 | void toggleEmailSettings(bool); | 90 | void toggleEmailSettings(bool); |
89 | 91 | ||
90 | //additional emails | 92 | //additional emails |
91 | void addItem(); | 93 | void addItem(); |
92 | void removeItem(); | 94 | void removeItem(); |
93 | void updateItem(); | 95 | void updateItem(); |
94 | void updateInput(); | 96 | void updateInput(); |
95 | */ | 97 | */ |
96 | protected: | 98 | protected: |
97 | void usrReadConfig(); | 99 | void usrReadConfig(); |
98 | void usrWriteConfig(); | 100 | void usrWriteConfig(); |
99 | 101 | ||
100 | void setupMainTab(); | 102 | void setupMainTab(); |
101 | void setupTimeTab(); | 103 | void setupTimeTab(); |
102 | void setupTimeZoneTab(); | 104 | void setupTimeZoneTab(); |
103 | void setupLocaleTab(); | 105 | void setupLocaleTab(); |
104 | void setupLocaleDateTab(); | 106 | void setupLocaleDateTab(); |
105 | void setupFontsTab(); | 107 | void setupFontsTab(); |
106 | void setupColorsTab(); | 108 | void setupColorsTab(); |
107 | void setupViewsTab(); | 109 | void setupViewsTab(); |
108 | void setupDisplayTab(); | 110 | void setupDisplayTab(); |
109 | void setupPrinterTab(); | 111 | void setupPrinterTab(); |
110 | void setupGroupSchedulingTab(); | 112 | void setupGroupSchedulingTab(); |
111 | void setupGroupAutomationTab(); | 113 | void setupGroupAutomationTab(); |
112 | void setupSyncTab(); | 114 | void setupSyncTab(); |
113 | void setupSyncAlgTab(); | 115 | void setupSyncAlgTab(); |
114 | 116 | ||
115 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); | 117 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); |
116 | 118 | ||
117 | 119 | ||
118 | private: | 120 | private: |
119 | KPrefsWidBool *mEnableGroupScheduling; | 121 | KPrefsWidBool *mEnableGroupScheduling; |
120 | KPrefsWidBool *mEnableProjectView; | 122 | KPrefsWidBool *mEnableProjectView; |
121 | 123 | ||
122 | QFrame *mPrinterTab; | 124 | Q3Frame *mPrinterTab; |
123 | 125 | ||
124 | QLineEdit *nameEdit; | 126 | QLineEdit *nameEdit; |
125 | QLineEdit *emailEdit; | 127 | QLineEdit *emailEdit; |
126 | 128 | ||
127 | QComboBox *timeCombo; | 129 | QComboBox *timeCombo; |
128 | QComboBox *tzCombo; | 130 | QComboBox *tzCombo; |
129 | 131 | ||
130 | // widgets holding preferences data | 132 | // widgets holding preferences data |
131 | QLineEdit *mNameEdit; | 133 | QLineEdit *mNameEdit; |
132 | QLineEdit *mEmailEdit; | 134 | QLineEdit *mEmailEdit; |
133 | QLabel *mNameLabel; | 135 | QLabel *mNameLabel; |
134 | QLabel *mEmailLabel; | 136 | QLabel *mEmailLabel; |
135 | QLineEdit *mAdditionalEdit; | 137 | QLineEdit *mAdditionalEdit; |
136 | QSpinBox *mAutoSaveIntervalSpin; | 138 | QSpinBox *mAutoSaveIntervalSpin; |
137 | QSpinBox *mPrioSpin; | 139 | QSpinBox *mPrioSpin; |
138 | // QListView *mAMails; | 140 | // QListView *mAMails; |
139 | QLineEdit *aEmailsEdit; | 141 | QLineEdit *aEmailsEdit; |
140 | 142 | ||
141 | QComboBox *mTimeZoneCombo; | 143 | QComboBox *mTimeZoneCombo; |
142 | QStringList tzonenames; | 144 | QStringList tzonenames; |
143 | QSpinBox *mStartTimeSpin; | 145 | QSpinBox *mStartTimeSpin; |
144 | QSpinBox *mDefaultDurationSpin; | 146 | QSpinBox *mDefaultDurationSpin; |
145 | QComboBox *mAlarmTimeCombo; | 147 | QComboBox *mAlarmTimeCombo; |
146 | 148 | ||
147 | QComboBox *mCategoryCombo; | 149 | QComboBox *mCategoryCombo; |
148 | KColorButton *mCategoryButton; | 150 | KColorButton *mCategoryButton; |
149 | QDict<QColor> mCategoryDict; | 151 | Q3Dict<QColor> mCategoryDict; |
150 | 152 | ||
151 | QSlider *mHourSizeSlider; | 153 | QSlider *mHourSizeSlider; |
152 | 154 | ||
153 | QSpinBox *mNextXDaysSpin; | 155 | QSpinBox *mNextXDaysSpin; |
154 | QSpinBox *mWhatsNextSpin; | 156 | QSpinBox *mWhatsNextSpin; |
155 | 157 | ||
156 | QLineEdit * mRemoteIPEdit; | 158 | QLineEdit * mRemoteIPEdit; |
157 | QLineEdit * mRemoteUser; | 159 | QLineEdit * mRemoteUser; |
158 | QLineEdit * mRemotePassWd; | 160 | QLineEdit * mRemotePassWd; |
159 | QLineEdit * mRemoteFile; | 161 | QLineEdit * mRemoteFile; |
160 | QLineEdit * mLocalTempFile; | 162 | QLineEdit * mLocalTempFile; |
161 | QWidget* mSetupSyncAlgTab; | 163 | QWidget* mSetupSyncAlgTab; |
162 | QLineEdit * mUserDateFormatLong; | 164 | QLineEdit * mUserDateFormatLong; |
163 | QLineEdit * mUserDateFormatShort; | 165 | QLineEdit * mUserDateFormatShort; |
164 | 166 | ||
165 | QSpinBox *mTimezoneOffsetSpin; | 167 | QSpinBox *mTimezoneOffsetSpin; |
166 | QSpinBox *mDaylightsavingStart; | 168 | QSpinBox *mDaylightsavingStart; |
167 | QSpinBox *mDaylightsavingEnd; | 169 | QSpinBox *mDaylightsavingEnd; |
168 | KDateEdit* mStartDateSavingEdit; | 170 | KDateEdit* mStartDateSavingEdit; |
169 | KDateEdit* mEndDateSavingEdit; | 171 | KDateEdit* mEndDateSavingEdit; |
170 | QSpinBox * mAlarmPlayBeeps; | 172 | QSpinBox * mAlarmPlayBeeps; |
171 | QSpinBox * mAlarmSuspendTime; | 173 | QSpinBox * mAlarmSuspendTime; |
172 | QSpinBox * mAlarmSuspendCount; | 174 | QSpinBox * mAlarmSuspendCount; |
173 | QSpinBox * mAlarmBeepInterval; | 175 | QSpinBox * mAlarmBeepInterval; |
174 | 176 | ||
175 | QLineEdit * mDefaultAlarmFile; | 177 | QLineEdit * mDefaultAlarmFile; |
176 | #endif | 178 | #endif |
177 | }; | 179 | }; |
178 | 180 | ||
179 | #endif | 181 | #endif |