summaryrefslogtreecommitdiffabout
path: root/kmicromail/koprefsdialog.h~
Unidiff
Diffstat (limited to 'kmicromail/koprefsdialog.h~') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/koprefsdialog.h~161
1 files changed, 161 insertions, 0 deletions
diff --git a/kmicromail/koprefsdialog.h~ b/kmicromail/koprefsdialog.h~
new file mode 100644
index 0000000..fd651d0
--- a/dev/null
+++ b/kmicromail/koprefsdialog.h~
@@ -0,0 +1,161 @@
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
54 public slots:
55 void showPrinterTab();
56
57 /** Update controls for categories */
58 void updateCategories();
59 void showSyncPage();
60 protected slots:
61 void selectSoundFile();
62 void setCategoryColor();
63 void updateCategoryColor();
64 void updateTimezoneOffset( int );
65
66
67 void warningExperimental(bool on);
68 void warningGroupScheduling();
69 void warningProjectView();
70
71 void toggleEmailSettings(bool);
72
73 //additional emails
74 void addItem();
75 void removeItem();
76 void updateItem();
77 void updateInput();
78
79 protected:
80 void usrReadConfig();
81 void usrWriteConfig();
82
83 void setupMainTab();
84 void setupTimeTab();
85 void setupTimeZoneTab();
86 void setupLocaleTab();
87 void setupLocaleDateTab();
88 void setupFontsTab();
89 void setupColorsTab();
90 void setupViewsTab();
91 void setupDisplayTab();
92 void setupPrinterTab();
93 void setupGroupSchedulingTab();
94 void setupGroupAutomationTab();
95 void setupSyncTab();
96 void setupSyncAlgTab();
97
98 void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0);
99
100
101 private:
102 KPrefsWidBool *mEnableGroupScheduling;
103 KPrefsWidBool *mEnableProjectView;
104
105 QFrame *mPrinterTab;
106
107 QLineEdit *nameEdit;
108 QLineEdit *emailEdit;
109
110 QComboBox *timeCombo;
111 QComboBox *tzCombo;
112
113 // widgets holding preferences data
114 QLineEdit *mNameEdit;
115 QLineEdit *mEmailEdit;
116 QLabel *mNameLabel;
117 QLabel *mEmailLabel;
118 QLineEdit *mAdditionalEdit;
119 QSpinBox *mAutoSaveIntervalSpin;
120 QSpinBox *mPrioSpin;
121 // QListView *mAMails;
122 QLineEdit *aEmailsEdit;
123
124 QComboBox *mTimeZoneCombo;
125 QStringList tzonenames;
126 QSpinBox *mStartTimeSpin;
127 QSpinBox *mDefaultDurationSpin;
128 QComboBox *mAlarmTimeCombo;
129
130 QComboBox *mCategoryCombo;
131 KColorButton *mCategoryButton;
132 QDict<QColor> mCategoryDict;
133
134 QSlider *mHourSizeSlider;
135
136 QSpinBox *mNextXDaysSpin;
137 QSpinBox *mWhatsNextSpin;
138
139 QLineEdit * mRemoteIPEdit;
140 QLineEdit * mRemoteUser;
141 QLineEdit * mRemotePassWd;
142 QLineEdit * mRemoteFile;
143 QLineEdit * mLocalTempFile;
144 QWidget* mSetupSyncAlgTab;
145 QLineEdit * mUserDateFormatLong;
146 QLineEdit * mUserDateFormatShort;
147
148 QSpinBox *mTimezoneOffsetSpin;
149 QSpinBox *mDaylightsavingStart;
150 QSpinBox *mDaylightsavingEnd;
151 KDateEdit* mStartDateSavingEdit;
152 KDateEdit* mEndDateSavingEdit;
153 QSpinBox * mAlarmPlayBeeps;
154 QSpinBox * mAlarmSuspendTime;
155 QSpinBox * mAlarmSuspendCount;
156 QSpinBox * mAlarmBeepInterval;
157
158 QLineEdit * mDefaultAlarmFile;
159};
160
161#endif