author | zautrix <zautrix> | 2005-06-10 11:53:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-10 11:53:12 (UTC) |
commit | d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc (patch) (unidiff) | |
tree | 0764371abfdb5d663ffebf408d47d49f0ca919f3 /kmicromail/koprefsdialog.h | |
parent | e5ca8e0d8d6d08b597253f43de401aa1a99a6abe (diff) | |
download | kdepimpi-d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc.zip kdepimpi-d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc.tar.gz kdepimpi-d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc.tar.bz2 |
config dialog changes
-rw-r--r-- | kmicromail/koprefsdialog.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kmicromail/koprefsdialog.h b/kmicromail/koprefsdialog.h index a0416ae..7fa9261 100644 --- a/kmicromail/koprefsdialog.h +++ b/kmicromail/koprefsdialog.h | |||
@@ -1,180 +1,179 @@ | |||
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 <qframe.h> |
27 | #include <qdict.h> | 27 | #include <qdict.h> |
28 | #include <qcolor.h> | 28 | #include <qcolor.h> |
29 | #include <qlistview.h> | 29 | #include <qlistview.h> |
30 | 30 | ||
31 | #include <kdialogbase.h> | 31 | #include <kdialogbase.h> |
32 | 32 | ||
33 | #include <libkdepim/kprefsdialog.h> | 33 | #include <libkdepim/kprefsdialog.h> |
34 | #include <libkdepim/kdateedit.h> | 34 | #include <libkdepim/kdateedit.h> |
35 | #include <kcmconfigs/kdepimconfigwidget.h> | 35 | #include <kcmconfigs/kdepimconfigwidget.h> |
36 | 36 | ||
37 | class KColorButton; | 37 | class KColorButton; |
38 | class QSpinBox; | 38 | class QSpinBox; |
39 | class QSlider; | 39 | class QSlider; |
40 | class KURLRequester; | 40 | class KURLRequester; |
41 | class QComboBox; | 41 | class QComboBox; |
42 | class QLineEdit; | 42 | class QLineEdit; |
43 | class QStringList; | 43 | class QStringList; |
44 | 44 | ||
45 | /** Dialog to change the korganizer configuration. | 45 | /** Dialog to change the korganizer configuration. |
46 | */ | 46 | */ |
47 | class KOPrefsDialog : public KPrefsDialog | 47 | class KOPrefsDialog : public KPrefsDialog |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | public: | 50 | public: |
51 | /** Initialize dialog and pages */ | 51 | /** Initialize dialog and pages */ |
52 | KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); | 52 | KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); |
53 | ~KOPrefsDialog(); | 53 | ~KOPrefsDialog(); |
54 | 54 | ||
55 | protected: | 55 | protected: |
56 | void usrReadConfig(); | 56 | void usrReadConfig(); |
57 | void usrWriteConfig(); | 57 | void usrWriteConfig(); |
58 | 58 | ||
59 | void setupMainTab(); | 59 | void setupMainTab(); |
60 | void setupGlobalTab(); | 60 | void setupGlobalTab(); |
61 | void setupMailTab(); | 61 | void setupMailTab(); |
62 | void setupFontsTab(); | 62 | void setupFontsTab(); |
63 | private: | 63 | private: |
64 | KDEPIMConfigWidget* kdelibcfg; | ||
65 | QLineEdit *mNameEdit; | 64 | QLineEdit *mNameEdit; |
66 | QLineEdit *mCodecEdit; | 65 | QLineEdit *mCodecEdit; |
67 | QLineEdit *mEmailEdit; | 66 | QLineEdit *mEmailEdit; |
68 | QLabel *mNameLabel; | 67 | QLabel *mNameLabel; |
69 | QLabel *mEmailLabel; | 68 | QLabel *mEmailLabel; |
70 | #if 0 | 69 | #if 0 |
71 | /* | 70 | /* |
72 | public slots: | 71 | public slots: |
73 | void showPrinterTab(); | 72 | void showPrinterTab(); |
74 | 73 | ||
75 | 74 | ||
76 | void updateCategories(); | 75 | void updateCategories(); |
77 | void showSyncPage(); | 76 | void showSyncPage(); |
78 | protected slots: | 77 | protected slots: |
79 | void selectSoundFile(); | 78 | void selectSoundFile(); |
80 | void setCategoryColor(); | 79 | void setCategoryColor(); |
81 | void updateCategoryColor(); | 80 | void updateCategoryColor(); |
82 | void updateTimezoneOffset( int ); | 81 | void updateTimezoneOffset( int ); |
83 | 82 | ||
84 | 83 | ||
85 | void warningExperimental(bool on); | 84 | void warningExperimental(bool on); |
86 | void warningGroupScheduling(); | 85 | void warningGroupScheduling(); |
87 | void warningProjectView(); | 86 | void warningProjectView(); |
88 | 87 | ||
89 | void toggleEmailSettings(bool); | 88 | void toggleEmailSettings(bool); |
90 | 89 | ||
91 | //additional emails | 90 | //additional emails |
92 | void addItem(); | 91 | void addItem(); |
93 | void removeItem(); | 92 | void removeItem(); |
94 | void updateItem(); | 93 | void updateItem(); |
95 | void updateInput(); | 94 | void updateInput(); |
96 | */ | 95 | */ |
97 | protected: | 96 | protected: |
98 | void usrReadConfig(); | 97 | void usrReadConfig(); |
99 | void usrWriteConfig(); | 98 | void usrWriteConfig(); |
100 | 99 | ||
101 | void setupMainTab(); | 100 | void setupMainTab(); |
102 | void setupTimeTab(); | 101 | void setupTimeTab(); |
103 | void setupTimeZoneTab(); | 102 | void setupTimeZoneTab(); |
104 | void setupLocaleTab(); | 103 | void setupLocaleTab(); |
105 | void setupLocaleDateTab(); | 104 | void setupLocaleDateTab(); |
106 | void setupFontsTab(); | 105 | void setupFontsTab(); |
107 | void setupColorsTab(); | 106 | void setupColorsTab(); |
108 | void setupViewsTab(); | 107 | void setupViewsTab(); |
109 | void setupDisplayTab(); | 108 | void setupDisplayTab(); |
110 | void setupPrinterTab(); | 109 | void setupPrinterTab(); |
111 | void setupGroupSchedulingTab(); | 110 | void setupGroupSchedulingTab(); |
112 | void setupGroupAutomationTab(); | 111 | void setupGroupAutomationTab(); |
113 | void setupSyncTab(); | 112 | void setupSyncTab(); |
114 | void setupSyncAlgTab(); | 113 | void setupSyncAlgTab(); |
115 | 114 | ||
116 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); | 115 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); |
117 | 116 | ||
118 | 117 | ||
119 | private: | 118 | private: |
120 | KPrefsWidBool *mEnableGroupScheduling; | 119 | KPrefsWidBool *mEnableGroupScheduling; |
121 | KPrefsWidBool *mEnableProjectView; | 120 | KPrefsWidBool *mEnableProjectView; |
122 | 121 | ||
123 | QFrame *mPrinterTab; | 122 | QFrame *mPrinterTab; |
124 | 123 | ||
125 | QLineEdit *nameEdit; | 124 | QLineEdit *nameEdit; |
126 | QLineEdit *emailEdit; | 125 | QLineEdit *emailEdit; |
127 | 126 | ||
128 | QComboBox *timeCombo; | 127 | QComboBox *timeCombo; |
129 | QComboBox *tzCombo; | 128 | QComboBox *tzCombo; |
130 | 129 | ||
131 | // widgets holding preferences data | 130 | // widgets holding preferences data |
132 | QLineEdit *mNameEdit; | 131 | QLineEdit *mNameEdit; |
133 | QLineEdit *mEmailEdit; | 132 | QLineEdit *mEmailEdit; |
134 | QLabel *mNameLabel; | 133 | QLabel *mNameLabel; |
135 | QLabel *mEmailLabel; | 134 | QLabel *mEmailLabel; |
136 | QLineEdit *mAdditionalEdit; | 135 | QLineEdit *mAdditionalEdit; |
137 | QSpinBox *mAutoSaveIntervalSpin; | 136 | QSpinBox *mAutoSaveIntervalSpin; |
138 | QSpinBox *mPrioSpin; | 137 | QSpinBox *mPrioSpin; |
139 | // QListView *mAMails; | 138 | // QListView *mAMails; |
140 | QLineEdit *aEmailsEdit; | 139 | QLineEdit *aEmailsEdit; |
141 | 140 | ||
142 | QComboBox *mTimeZoneCombo; | 141 | QComboBox *mTimeZoneCombo; |
143 | QStringList tzonenames; | 142 | QStringList tzonenames; |
144 | QSpinBox *mStartTimeSpin; | 143 | QSpinBox *mStartTimeSpin; |
145 | QSpinBox *mDefaultDurationSpin; | 144 | QSpinBox *mDefaultDurationSpin; |
146 | QComboBox *mAlarmTimeCombo; | 145 | QComboBox *mAlarmTimeCombo; |
147 | 146 | ||
148 | QComboBox *mCategoryCombo; | 147 | QComboBox *mCategoryCombo; |
149 | KColorButton *mCategoryButton; | 148 | KColorButton *mCategoryButton; |
150 | QDict<QColor> mCategoryDict; | 149 | QDict<QColor> mCategoryDict; |
151 | 150 | ||
152 | QSlider *mHourSizeSlider; | 151 | QSlider *mHourSizeSlider; |
153 | 152 | ||
154 | QSpinBox *mNextXDaysSpin; | 153 | QSpinBox *mNextXDaysSpin; |
155 | QSpinBox *mWhatsNextSpin; | 154 | QSpinBox *mWhatsNextSpin; |
156 | 155 | ||
157 | QLineEdit * mRemoteIPEdit; | 156 | QLineEdit * mRemoteIPEdit; |
158 | QLineEdit * mRemoteUser; | 157 | QLineEdit * mRemoteUser; |
159 | QLineEdit * mRemotePassWd; | 158 | QLineEdit * mRemotePassWd; |
160 | QLineEdit * mRemoteFile; | 159 | QLineEdit * mRemoteFile; |
161 | QLineEdit * mLocalTempFile; | 160 | QLineEdit * mLocalTempFile; |
162 | QWidget* mSetupSyncAlgTab; | 161 | QWidget* mSetupSyncAlgTab; |
163 | QLineEdit * mUserDateFormatLong; | 162 | QLineEdit * mUserDateFormatLong; |
164 | QLineEdit * mUserDateFormatShort; | 163 | QLineEdit * mUserDateFormatShort; |
165 | 164 | ||
166 | QSpinBox *mTimezoneOffsetSpin; | 165 | QSpinBox *mTimezoneOffsetSpin; |
167 | QSpinBox *mDaylightsavingStart; | 166 | QSpinBox *mDaylightsavingStart; |
168 | QSpinBox *mDaylightsavingEnd; | 167 | QSpinBox *mDaylightsavingEnd; |
169 | KDateEdit* mStartDateSavingEdit; | 168 | KDateEdit* mStartDateSavingEdit; |
170 | KDateEdit* mEndDateSavingEdit; | 169 | KDateEdit* mEndDateSavingEdit; |
171 | QSpinBox * mAlarmPlayBeeps; | 170 | QSpinBox * mAlarmPlayBeeps; |
172 | QSpinBox * mAlarmSuspendTime; | 171 | QSpinBox * mAlarmSuspendTime; |
173 | QSpinBox * mAlarmSuspendCount; | 172 | QSpinBox * mAlarmSuspendCount; |
174 | QSpinBox * mAlarmBeepInterval; | 173 | QSpinBox * mAlarmBeepInterval; |
175 | 174 | ||
176 | QLineEdit * mDefaultAlarmFile; | 175 | QLineEdit * mDefaultAlarmFile; |
177 | #endif | 176 | #endif |
178 | }; | 177 | }; |
179 | 178 | ||
180 | #endif | 179 | #endif |