summaryrefslogtreecommitdiffabout
path: root/kmicromail/koprefsdialog.h
Unidiff
Diffstat (limited to 'kmicromail/koprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/koprefsdialog.h176
1 files changed, 176 insertions, 0 deletions
diff --git a/kmicromail/koprefsdialog.h b/kmicromail/koprefsdialog.h
new file mode 100644
index 0000000..4b6bd4b
--- a/dev/null
+++ b/kmicromail/koprefsdialog.h
@@ -0,0 +1,176 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
4
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
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
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
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
22*/
23#ifndef _KOPREFSDIALOG_H
24#define _KOPREFSDIALOG_H
25
26#include <qframe.h>
27#include <qdict.h>
28#include <qcolor.h>
29#include <qlistview.h>
30
31#include <kdialogbase.h>
32
33#include <libkdepim/kprefsdialog.h>
34#include <libkdepim/kdateedit.h>
35
36class KColorButton;
37class QSpinBox;
38class QSlider;
39class KURLRequester;
40class QComboBox;
41class QLineEdit;
42class QStringList;
43
44/** Dialog to change the korganizer configuration.
45 */
46class KOPrefsDialog : public KPrefsDialog
47{
48 Q_OBJECT
49 public:
50 /** Initialize dialog and pages */
51 KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false);
52 ~KOPrefsDialog();
53
54protected:
55 void usrReadConfig();
56 void usrWriteConfig();
57
58 void setupMainTab();
59 void setupMailTab();
60 void setupFontsTab();
61 private:
62 QLineEdit *mNameEdit;
63 QLineEdit *mEmailEdit;
64 QLabel *mNameLabel;
65 QLabel *mEmailLabel;
66#if 0
67 /*
68 public slots:
69 void showPrinterTab();
70
71
72 void updateCategories();
73 void showSyncPage();
74 protected slots:
75 void selectSoundFile();
76 void setCategoryColor();
77 void updateCategoryColor();
78 void updateTimezoneOffset( int );
79
80
81 void warningExperimental(bool on);
82 void warningGroupScheduling();
83 void warningProjectView();
84
85 void toggleEmailSettings(bool);
86
87 //additional emails
88 void addItem();
89 void removeItem();
90 void updateItem();
91 void updateInput();
92*/
93 protected:
94 void usrReadConfig();
95 void usrWriteConfig();
96
97 void setupMainTab();
98 void setupTimeTab();
99 void setupTimeZoneTab();
100 void setupLocaleTab();
101 void setupLocaleDateTab();
102 void setupFontsTab();
103 void setupColorsTab();
104 void setupViewsTab();
105 void setupDisplayTab();
106 void setupPrinterTab();
107 void setupGroupSchedulingTab();
108 void setupGroupAutomationTab();
109 void setupSyncTab();
110 void setupSyncAlgTab();
111
112 void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0);
113
114
115 private:
116 KPrefsWidBool *mEnableGroupScheduling;
117 KPrefsWidBool *mEnableProjectView;
118
119 QFrame *mPrinterTab;
120
121 QLineEdit *nameEdit;
122 QLineEdit *emailEdit;
123
124 QComboBox *timeCombo;
125 QComboBox *tzCombo;
126
127 // widgets holding preferences data
128 QLineEdit *mNameEdit;
129 QLineEdit *mEmailEdit;
130 QLabel *mNameLabel;
131 QLabel *mEmailLabel;
132 QLineEdit *mAdditionalEdit;
133 QSpinBox *mAutoSaveIntervalSpin;
134 QSpinBox *mPrioSpin;
135 // QListView *mAMails;
136 QLineEdit *aEmailsEdit;
137
138 QComboBox *mTimeZoneCombo;
139 QStringList tzonenames;
140 QSpinBox *mStartTimeSpin;
141 QSpinBox *mDefaultDurationSpin;
142 QComboBox *mAlarmTimeCombo;
143
144 QComboBox *mCategoryCombo;
145 KColorButton *mCategoryButton;
146 QDict<QColor> mCategoryDict;
147
148 QSlider *mHourSizeSlider;
149
150 QSpinBox *mNextXDaysSpin;
151 QSpinBox *mWhatsNextSpin;
152
153 QLineEdit * mRemoteIPEdit;
154 QLineEdit * mRemoteUser;
155 QLineEdit * mRemotePassWd;
156 QLineEdit * mRemoteFile;
157 QLineEdit * mLocalTempFile;
158 QWidget* mSetupSyncAlgTab;
159 QLineEdit * mUserDateFormatLong;
160 QLineEdit * mUserDateFormatShort;
161
162 QSpinBox *mTimezoneOffsetSpin;
163 QSpinBox *mDaylightsavingStart;
164 QSpinBox *mDaylightsavingEnd;
165 KDateEdit* mStartDateSavingEdit;
166 KDateEdit* mEndDateSavingEdit;
167 QSpinBox * mAlarmPlayBeeps;
168 QSpinBox * mAlarmSuspendTime;
169 QSpinBox * mAlarmSuspendCount;
170 QSpinBox * mAlarmBeepInterval;
171
172 QLineEdit * mDefaultAlarmFile;
173#endif
174};
175
176#endif