Diffstat (limited to 'libkdepim/kcmconfigs/kdepimconfigwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.h b/libkdepim/kcmconfigs/kdepimconfigwidget.h index 824ef79..d693015 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.h +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.h | |||
@@ -5,137 +5,139 @@ | |||
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 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef KDEPIMCONFIGWIDGET_H | 31 | #ifndef KDEPIMCONFIGWIDGET_H |
32 | #define KDEPIMCONFIGWIDGET_H | 32 | #define KDEPIMCONFIGWIDGET_H |
33 | 33 | ||
34 | #include <kprefswidget.h> | 34 | #include <kprefswidget.h> |
35 | #include <kio/kfile/kurlrequester.h> | 35 | #include <kio/kfile/kurlrequester.h> |
36 | #include <qmap.h> | 36 | #include <qmap.h> |
37 | //Added by qt3to4: | ||
38 | #include <QLabel> | ||
37 | 39 | ||
38 | #include "externalapphandler.h" | 40 | #include "externalapphandler.h" |
39 | 41 | ||
40 | 42 | ||
41 | class QComboBox; | 43 | class QComboBox; |
42 | class QLineEdit; | 44 | class QLineEdit; |
43 | class KPimGlobalPrefs; | 45 | class KPimGlobalPrefs; |
44 | class QGroupBox; | 46 | class Q3GroupBox; |
45 | class QTabWidget; | 47 | class QTabWidget; |
46 | class KDateEdit; | 48 | class KDateEdit; |
47 | 49 | ||
48 | class KDEPIMConfigWidget : public KPrefsWidget | 50 | class KDEPIMConfigWidget : public KPrefsWidget |
49 | { | 51 | { |
50 | Q_OBJECT | 52 | Q_OBJECT |
51 | 53 | ||
52 | public: | 54 | public: |
53 | KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name = 0 ); | 55 | KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name = 0 ); |
54 | 56 | ||
55 | public slots: | 57 | public slots: |
56 | void textChanged( const QString& text ); | 58 | void textChanged( const QString& text ); |
57 | void showTimeZoneTab(); | 59 | void showTimeZoneTab(); |
58 | 60 | ||
59 | protected: | 61 | protected: |
60 | /** Implement this to read custom configuration widgets. */ | 62 | /** Implement this to read custom configuration widgets. */ |
61 | virtual void usrReadConfig(); | 63 | virtual void usrReadConfig(); |
62 | /** Implement this to write custom configuration widgets. */ | 64 | /** Implement this to write custom configuration widgets. */ |
63 | virtual void usrWriteConfig(); | 65 | virtual void usrWriteConfig(); |
64 | 66 | ||
65 | 67 | ||
66 | private slots: | 68 | private slots: |
67 | // void configureExtension(); | 69 | // void configureExtension(); |
68 | // void selectionChanged( QListViewItem* ); | 70 | // void selectionChanged( QListViewItem* ); |
69 | // void itemClicked( QListViewItem* ); | 71 | // void itemClicked( QListViewItem* ); |
70 | void client_changed( int newClient ); | 72 | void client_changed( int newClient ); |
71 | void externalapp_changed( int newApp ); | 73 | void externalapp_changed( int newApp ); |
72 | void saveStoreSettings(); | 74 | void saveStoreSettings(); |
73 | void setStandardStore(); | 75 | void setStandardStore(); |
74 | void setLocalStore(); | 76 | void setLocalStore(); |
75 | 77 | ||
76 | private: | 78 | private: |
77 | void setupExternalAppTab(); | 79 | void setupExternalAppTab(); |
78 | void setupLocaleDateTab(); | 80 | void setupLocaleDateTab(); |
79 | void setupLocaleTab(); | 81 | void setupLocaleTab(); |
80 | void setupTimeZoneTab(); | 82 | void setupTimeZoneTab(); |
81 | void setupStoreTab(); | 83 | void setupStoreTab(); |
82 | void setupBackupTab(); | 84 | void setupBackupTab(); |
83 | KURLRequester* mStoreUrl; | 85 | KURLRequester* mStoreUrl; |
84 | 86 | ||
85 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); | 87 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); |
86 | 88 | ||
87 | 89 | ||
88 | void saveEditFieldSettings(); | 90 | void saveEditFieldSettings(); |
89 | void updateClientWidgets(); | 91 | void updateClientWidgets(); |
90 | 92 | ||
91 | QTabWidget *tabWidget; | 93 | QTabWidget *tabWidget; |
92 | 94 | ||
93 | 95 | ||
94 | QLineEdit* mUserDateFormatShort; | 96 | QLineEdit* mUserDateFormatShort; |
95 | QLineEdit* mUserDateFormatLong; | 97 | QLineEdit* mUserDateFormatLong; |
96 | QComboBox* mTimeZoneCombo; | 98 | QComboBox* mTimeZoneCombo; |
97 | KDateEdit* mStartDateSavingEdit; | 99 | KDateEdit* mStartDateSavingEdit; |
98 | KDateEdit* mEndDateSavingEdit; | 100 | KDateEdit* mEndDateSavingEdit; |
99 | 101 | ||
100 | // void restoreExtensionSettings(); | 102 | // void restoreExtensionSettings(); |
101 | // void saveExtensionSettings(); | 103 | // void saveExtensionSettings(); |
102 | 104 | ||
103 | // KListView *mExtensionView; | 105 | // KListView *mExtensionView; |
104 | 106 | ||
105 | // QCheckBox *mNameParsing; | 107 | // QCheckBox *mNameParsing; |
106 | // QCheckBox *mViewsSingleClickBox; | 108 | // QCheckBox *mViewsSingleClickBox; |
107 | // QPushButton *mConfigureButton; | 109 | // QPushButton *mConfigureButton; |
108 | QComboBox* mExternalApps; | 110 | QComboBox* mExternalApps; |
109 | QGroupBox* mExternalAppGroupBox; | 111 | Q3GroupBox* mExternalAppGroupBox; |
110 | 112 | ||
111 | 113 | ||
112 | QComboBox* mClient; | 114 | QComboBox* mClient; |
113 | QLineEdit* mChannel; | 115 | QLineEdit* mChannel; |
114 | QLineEdit* mMessage; | 116 | QLineEdit* mMessage; |
115 | QLineEdit* mParameters; | 117 | QLineEdit* mParameters; |
116 | QLineEdit* mMessage2; | 118 | QLineEdit* mMessage2; |
117 | QLineEdit* mParameters2; | 119 | QLineEdit* mParameters2; |
118 | 120 | ||
119 | ExternalAppHandler::Types mCurrentApp; | 121 | ExternalAppHandler::Types mCurrentApp; |
120 | int mCurrentClient; | 122 | int mCurrentClient; |
121 | 123 | ||
122 | 124 | ||
123 | int mEmailClient; | 125 | int mEmailClient; |
124 | QString mEmailOtherChannel; | 126 | QString mEmailOtherChannel; |
125 | QString mEmailOtherMessage; | 127 | QString mEmailOtherMessage; |
126 | QString mEmailOtherMessageParameters; | 128 | QString mEmailOtherMessageParameters; |
127 | QString mEmailOtherMessage2; | 129 | QString mEmailOtherMessage2; |
128 | QString mEmailOtherMessageParameters2; | 130 | QString mEmailOtherMessageParameters2; |
129 | 131 | ||
130 | int mPhoneClient; | 132 | int mPhoneClient; |
131 | QString mPhoneOtherChannel; | 133 | QString mPhoneOtherChannel; |
132 | QString mPhoneOtherMessage; | 134 | QString mPhoneOtherMessage; |
133 | QString mPhoneOtherMessageParameters; | 135 | QString mPhoneOtherMessageParameters; |
134 | 136 | ||
135 | int mFaxClient; | 137 | int mFaxClient; |
136 | QString mFaxOtherChannel; | 138 | QString mFaxOtherChannel; |
137 | QString mFaxOtherMessage; | 139 | QString mFaxOtherMessage; |
138 | QString mFaxOtherMessageParameters; | 140 | QString mFaxOtherMessageParameters; |
139 | 141 | ||
140 | int mSMSClient; | 142 | int mSMSClient; |
141 | QString mSMSOtherChannel; | 143 | QString mSMSOtherChannel; |