author | zautrix <zautrix> | 2004-09-22 02:03:15 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-22 02:03:15 (UTC) |
commit | 633522024e48efc423155a04b71083a03696211d (patch) (unidiff) | |
tree | c383ee8fa3489351450b948eb83a42b504752131 /korganizer/koprefsdialog.h | |
parent | ed2feaa9f7e2064e5b26ff678a25eb79ceae599b (diff) | |
download | kdepimpi-633522024e48efc423155a04b71083a03696211d.zip kdepimpi-633522024e48efc423155a04b71083a03696211d.tar.gz kdepimpi-633522024e48efc423155a04b71083a03696211d.tar.bz2 |
global prefs integrated in kopi amd ompi
-rw-r--r-- | korganizer/koprefsdialog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h index 83dc1eb..e20969a 100644 --- a/korganizer/koprefsdialog.h +++ b/korganizer/koprefsdialog.h | |||
@@ -11,115 +11,118 @@ | |||
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 | 36 | ||
36 | class KColorButton; | 37 | class KColorButton; |
37 | class QSpinBox; | 38 | class QSpinBox; |
38 | class QSlider; | 39 | class QSlider; |
39 | class KURLRequester; | 40 | class KURLRequester; |
40 | class QComboBox; | 41 | class QComboBox; |
41 | class QLineEdit; | 42 | class QLineEdit; |
42 | class QStringList; | 43 | class QStringList; |
43 | 44 | ||
44 | /** Dialog to change the korganizer configuration. | 45 | /** Dialog to change the korganizer configuration. |
45 | */ | 46 | */ |
46 | class KOPrefsDialog : public KPrefsDialog | 47 | class KOPrefsDialog : public KPrefsDialog |
47 | { | 48 | { |
48 | Q_OBJECT | 49 | Q_OBJECT |
49 | public: | 50 | public: |
50 | /** Initialize dialog and pages */ | 51 | /** Initialize dialog and pages */ |
51 | KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); | 52 | KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); |
52 | ~KOPrefsDialog(); | 53 | ~KOPrefsDialog(); |
53 | 54 | ||
54 | public slots: | 55 | public slots: |
55 | void showPrinterTab(); | 56 | void showPrinterTab(); |
56 | 57 | ||
57 | /** Update controls for categories */ | 58 | /** Update controls for categories */ |
58 | void updateCategories(); | 59 | void updateCategories(); |
59 | void showSyncPage(); | 60 | void showSyncPage(); |
60 | protected slots: | 61 | protected slots: |
61 | void selectSoundFile(); | 62 | void selectSoundFile(); |
62 | void setCategoryColor(); | 63 | void setCategoryColor(); |
63 | void updateCategoryColor(); | 64 | void updateCategoryColor(); |
64 | void updateTimezoneOffset( int ); | 65 | void updateTimezoneOffset( int ); |
65 | 66 | ||
66 | 67 | ||
67 | void warningExperimental(bool on); | 68 | void warningExperimental(bool on); |
68 | void warningGroupScheduling(); | 69 | void warningGroupScheduling(); |
69 | void warningProjectView(); | 70 | void warningProjectView(); |
70 | 71 | ||
71 | void toggleEmailSettings(bool); | 72 | void toggleEmailSettings(bool); |
72 | 73 | ||
73 | //additional emails | 74 | //additional emails |
74 | void addItem(); | 75 | void addItem(); |
75 | void removeItem(); | 76 | void removeItem(); |
76 | void updateItem(); | 77 | void updateItem(); |
77 | void updateInput(); | 78 | void updateInput(); |
78 | 79 | ||
79 | protected: | 80 | protected: |
80 | void usrReadConfig(); | 81 | void usrReadConfig(); |
81 | void usrWriteConfig(); | 82 | void usrWriteConfig(); |
83 | void setupGlobalTab(); | ||
82 | 84 | ||
83 | void setupMainTab(); | 85 | void setupMainTab(); |
84 | void setupTimeTab(); | 86 | void setupTimeTab(); |
85 | void setupTimeZoneTab(); | 87 | void setupTimeZoneTab(); |
86 | void setupLocaleTab(); | 88 | void setupLocaleTab(); |
87 | void setupLocaleDateTab(); | 89 | void setupLocaleDateTab(); |
88 | void setupFontsTab(); | 90 | void setupFontsTab(); |
89 | void setupColorsTab(); | 91 | void setupColorsTab(); |
90 | void setupViewsTab(); | 92 | void setupViewsTab(); |
91 | void setupDisplayTab(); | 93 | void setupDisplayTab(); |
92 | void setupPrinterTab(); | 94 | void setupPrinterTab(); |
93 | void setupGroupSchedulingTab(); | 95 | void setupGroupSchedulingTab(); |
94 | void setupGroupAutomationTab(); | 96 | void setupGroupAutomationTab(); |
95 | void setupSyncTab(); | 97 | void setupSyncTab(); |
96 | void setupSyncAlgTab(); | 98 | void setupSyncAlgTab(); |
97 | 99 | ||
98 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); | 100 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); |
99 | 101 | ||
100 | 102 | ||
101 | private: | 103 | private: |
104 | KDEPIMConfigWidget* kdelibcfg; | ||
102 | KPrefsDialogWidBool *mEnableGroupScheduling; | 105 | KPrefsDialogWidBool *mEnableGroupScheduling; |
103 | KPrefsDialogWidBool *mEnableProjectView; | 106 | KPrefsDialogWidBool *mEnableProjectView; |
104 | 107 | ||
105 | QFrame *mPrinterTab; | 108 | QFrame *mPrinterTab; |
106 | 109 | ||
107 | QLineEdit *nameEdit; | 110 | QLineEdit *nameEdit; |
108 | QLineEdit *emailEdit; | 111 | QLineEdit *emailEdit; |
109 | 112 | ||
110 | QComboBox *timeCombo; | 113 | QComboBox *timeCombo; |
111 | QComboBox *tzCombo; | 114 | QComboBox *tzCombo; |
112 | 115 | ||
113 | // widgets holding preferences data | 116 | // widgets holding preferences data |
114 | QLineEdit *mNameEdit; | 117 | QLineEdit *mNameEdit; |
115 | QLineEdit *mEmailEdit; | 118 | QLineEdit *mEmailEdit; |
116 | QLabel *mNameLabel; | 119 | QLabel *mNameLabel; |
117 | QLabel *mEmailLabel; | 120 | QLabel *mEmailLabel; |
118 | QLineEdit *mAdditionalEdit; | 121 | QLineEdit *mAdditionalEdit; |
119 | QSpinBox *mAutoSaveIntervalSpin; | 122 | QSpinBox *mAutoSaveIntervalSpin; |
120 | QSpinBox *mPrioSpin; | 123 | QSpinBox *mPrioSpin; |
121 | // QListView *mAMails; | 124 | // QListView *mAMails; |
122 | QLineEdit *aEmailsEdit; | 125 | QLineEdit *aEmailsEdit; |
123 | 126 | ||
124 | QComboBox *mTimeZoneCombo; | 127 | QComboBox *mTimeZoneCombo; |
125 | QStringList tzonenames; | 128 | QStringList tzonenames; |