author | zautrix <zautrix> | 2005-11-25 07:40:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-11-25 07:40:25 (UTC) |
commit | d0de047797095f1862f4ff77b8dcd0d22643882d (patch) (unidiff) | |
tree | f2371012b7929d93bf4609e4b10e77be2f8b7d08 /kaddressbook | |
parent | 59a3afa458bfb17314017d39c44b102bebb82fa7 (diff) | |
download | kdepimpi-d0de047797095f1862f4ff77b8dcd0d22643882d.zip kdepimpi-d0de047797095f1862f4ff77b8dcd0d22643882d.tar.gz kdepimpi-d0de047797095f1862f4ff77b8dcd0d22643882d.tar.bz2 |
compile fix
-rw-r--r-- | kaddressbook/addresseeeditorwidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/addresseeeditorwidget.h b/kaddressbook/addresseeeditorwidget.h index 1703e2f..df9965d 100644 --- a/kaddressbook/addresseeeditorwidget.h +++ b/kaddressbook/addresseeeditorwidget.h | |||
@@ -1,191 +1,192 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KAddressBook. | 2 | This file is part of KAddressBook. |
3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> |
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 | 23 | ||
24 | #ifndef ADDRESSEEEDITORWIDGET_H | 24 | #ifndef ADDRESSEEEDITORWIDGET_H |
25 | #define ADDRESSEEEDITORWIDGET_H | 25 | #define ADDRESSEEEDITORWIDGET_H |
26 | 26 | ||
27 | #include <qdatetime.h> | 27 | #include <qdatetime.h> |
28 | #include <qpopupmenu.h> | ||
28 | 29 | ||
29 | #include <kabc/addressee.h> | 30 | #include <kabc/addressee.h> |
30 | #include <kdialogbase.h> | 31 | #include <kdialogbase.h> |
31 | #include <kjanuswidget.h> | 32 | #include <kjanuswidget.h> |
32 | 33 | ||
33 | #include "extensionwidget.h" | 34 | #include "extensionwidget.h" |
34 | 35 | ||
35 | class AddresseeConfig; | 36 | class AddresseeConfig; |
36 | class QCheckBox; | 37 | class QCheckBox; |
37 | class QSpinBox; | 38 | class QSpinBox; |
38 | class QTabWidget; | 39 | class QTabWidget; |
39 | 40 | ||
40 | #ifndef KAB_EMBEDDED | 41 | #ifndef KAB_EMBEDDED |
41 | class QTextEdit; | 42 | class QTextEdit; |
42 | #else //KAB_EMBEDDED | 43 | #else //KAB_EMBEDDED |
43 | class QMultiLineEdit; | 44 | class QMultiLineEdit; |
44 | #endif //KAB_EMBEDDED | 45 | #endif //KAB_EMBEDDED |
45 | 46 | ||
46 | class KComboBox; | 47 | class KComboBox; |
47 | class KDateEdit; | 48 | class KDateEdit; |
48 | class KLineEdit; | 49 | class KLineEdit; |
49 | class KSqueezedTextLabel; | 50 | class KSqueezedTextLabel; |
50 | 51 | ||
51 | class AddressEditWidget; | 52 | class AddressEditWidget; |
52 | class EmailEditWidget; | 53 | class EmailEditWidget; |
53 | class GeoWidget; | 54 | class GeoWidget; |
54 | class ImageWidget; | 55 | class ImageWidget; |
55 | class KABCore; | 56 | class KABCore; |
56 | class KeyWidget; | 57 | class KeyWidget; |
57 | class PhoneEditWidget; | 58 | class PhoneEditWidget; |
58 | class SecrecyWidget; | 59 | class SecrecyWidget; |
59 | class SoundWidget; | 60 | class SoundWidget; |
60 | 61 | ||
61 | namespace KPIM | 62 | namespace KPIM |
62 | { | 63 | { |
63 | class CategorySelectDialog; | 64 | class CategorySelectDialog; |
64 | class CategoryEditDialog; | 65 | class CategoryEditDialog; |
65 | } | 66 | } |
66 | 67 | ||
67 | namespace KABC { class AddressBook; } | 68 | namespace KABC { class AddressBook; } |
68 | 69 | ||
69 | class AddresseeEditorWidget : public ExtensionWidget | 70 | class AddresseeEditorWidget : public ExtensionWidget |
70 | { | 71 | { |
71 | Q_OBJECT | 72 | Q_OBJECT |
72 | 73 | ||
73 | public: | 74 | public: |
74 | AddresseeEditorWidget( KABCore *core, bool isExtension, | 75 | AddresseeEditorWidget( KABCore *core, bool isExtension, |
75 | QWidget *parent, const char *name = 0 ); | 76 | QWidget *parent, const char *name = 0 ); |
76 | ~AddresseeEditorWidget(); | 77 | ~AddresseeEditorWidget(); |
77 | 78 | ||
78 | void setAddressee( const KABC::Addressee& ); | 79 | void setAddressee( const KABC::Addressee& ); |
79 | const KABC::Addressee &addressee(); | 80 | const KABC::Addressee &addressee(); |
80 | 81 | ||
81 | void contactsSelectionChanged(); | 82 | void contactsSelectionChanged(); |
82 | 83 | ||
83 | void load(); | 84 | void load(); |
84 | void save(); | 85 | void save(); |
85 | 86 | ||
86 | bool dirty(); | 87 | bool dirty(); |
87 | 88 | ||
88 | QString title() const; | 89 | QString title() const; |
89 | QString identifier() const; | 90 | QString identifier() const; |
90 | 91 | ||
91 | protected slots: | 92 | protected slots: |
92 | void showCatPopup(); | 93 | void showCatPopup(); |
93 | void selectedCatPopup( int ); | 94 | void selectedCatPopup( int ); |
94 | void setRole2FN(); | 95 | void setRole2FN(); |
95 | void setCompany2FN(); | 96 | void setCompany2FN(); |
96 | void textChanged( const QString& ); | 97 | void textChanged( const QString& ); |
97 | void pageChanged( QWidget *wdg ); | 98 | void pageChanged( QWidget *wdg ); |
98 | 99 | ||
99 | /** | 100 | /** |
100 | Emits the modified signal and sets the dirty flag. Any slot | 101 | Emits the modified signal and sets the dirty flag. Any slot |
101 | that modifies data should use this method instead of calling emit | 102 | that modifies data should use this method instead of calling emit |
102 | modified() directly. | 103 | modified() directly. |
103 | */ | 104 | */ |
104 | void emitModified(); | 105 | void emitModified(); |
105 | 106 | ||
106 | void dateChanged( QDate ); | 107 | void dateChanged( QDate ); |
107 | void invalidDate(); | 108 | void invalidDate(); |
108 | void nameTextChanged( const QString& ); | 109 | void nameTextChanged( const QString& ); |
109 | void nameBoxChanged(); | 110 | void nameBoxChanged(); |
110 | void nameButtonClicked(); | 111 | void nameButtonClicked(); |
111 | void categoryButtonClicked(); | 112 | void categoryButtonClicked(); |
112 | 113 | ||
113 | /** | 114 | /** |
114 | Called whenever the categories change in the categories dialog. | 115 | Called whenever the categories change in the categories dialog. |
115 | */ | 116 | */ |
116 | void categoriesSelected( const QStringList& ); | 117 | void categoriesSelected( const QStringList& ); |
117 | 118 | ||
118 | /** | 119 | /** |
119 | Edits which categories are available in the CategorySelectDialog. | 120 | Edits which categories are available in the CategorySelectDialog. |
120 | */ | 121 | */ |
121 | void editCategories(); | 122 | void editCategories(); |
122 | 123 | ||
123 | private: | 124 | private: |
124 | AddresseeConfig * mAConfig; | 125 | AddresseeConfig * mAConfig; |
125 | void initGUI(); | 126 | void initGUI(); |
126 | void setupTab1(); | 127 | void setupTab1(); |
127 | void setupTab1_1(); | 128 | void setupTab1_1(); |
128 | void setupTab2(); | 129 | void setupTab2(); |
129 | void setupTab2_1(); | 130 | void setupTab2_1(); |
130 | void setupTab3(); | 131 | void setupTab3(); |
131 | void setupTab3_1(); | 132 | void setupTab3_1(); |
132 | 133 | ||
133 | KABC::Addressee mAddressee; | 134 | KABC::Addressee mAddressee; |
134 | int mFormattedNameType; | 135 | int mFormattedNameType; |
135 | bool mDirty; | 136 | bool mDirty; |
136 | bool mIsExtension; | 137 | bool mIsExtension; |
137 | bool mBlockSignals; | 138 | bool mBlockSignals; |
138 | 139 | ||
139 | // GUI | 140 | // GUI |
140 | KPIM::CategorySelectDialog *mCategoryDialog; | 141 | KPIM::CategorySelectDialog *mCategoryDialog; |
141 | KPIM::CategoryEditDialog *mCategoryEditDialog; | 142 | KPIM::CategoryEditDialog *mCategoryEditDialog; |
142 | QTabWidget *mTabWidget; | 143 | QTabWidget *mTabWidget; |
143 | 144 | ||
144 | // Tab1 and Tab1_1 | 145 | // Tab1 and Tab1_1 |
145 | KLineEdit *mNameEdit; | 146 | KLineEdit *mNameEdit; |
146 | KLineEdit *mRoleEdit; | 147 | KLineEdit *mRoleEdit; |
147 | KLineEdit *mOrgEdit; | 148 | KLineEdit *mOrgEdit; |
148 | 149 | ||
149 | KSqueezedTextLabel *mFormattedNameLabel; | 150 | KSqueezedTextLabel *mFormattedNameLabel; |
150 | AddressEditWidget *mAddressEditWidget; | 151 | AddressEditWidget *mAddressEditWidget; |
151 | EmailEditWidget *mEmailWidget; | 152 | EmailEditWidget *mEmailWidget; |
152 | PhoneEditWidget *mPhoneEditWidget; | 153 | PhoneEditWidget *mPhoneEditWidget; |
153 | KLineEdit *mURLEdit; | 154 | KLineEdit *mURLEdit; |
154 | KLineEdit *mIMAddressEdit; | 155 | KLineEdit *mIMAddressEdit; |
155 | QPushButton *mCategoryEdit; | 156 | QPushButton *mCategoryEdit; |
156 | QPopupMenu *mCatPopup; | 157 | QPopupMenu *mCatPopup; |
157 | SecrecyWidget *mSecrecyWidget; | 158 | SecrecyWidget *mSecrecyWidget; |
158 | KSqueezedTextLabel *mNameLabel; | 159 | KSqueezedTextLabel *mNameLabel; |
159 | 160 | ||
160 | // Tab2 and Tab2_2 | 161 | // Tab2 and Tab2_2 |
161 | KLineEdit *mDepartmentEdit; | 162 | KLineEdit *mDepartmentEdit; |
162 | KLineEdit *mOfficeEdit; | 163 | KLineEdit *mOfficeEdit; |
163 | KLineEdit *mProfessionEdit; | 164 | KLineEdit *mProfessionEdit; |
164 | KLineEdit *mManagerEdit; | 165 | KLineEdit *mManagerEdit; |
165 | KLineEdit *mAssistantEdit; | 166 | KLineEdit *mAssistantEdit; |
166 | KLineEdit *mNicknameEdit; | 167 | KLineEdit *mNicknameEdit; |
167 | KLineEdit *mSpouseEdit; | 168 | KLineEdit *mSpouseEdit; |
168 | KLineEdit *mChildEdit; | 169 | KLineEdit *mChildEdit; |
169 | QComboBox *mGenderBox; | 170 | QComboBox *mGenderBox; |
170 | KDateEdit *mBirthdayPicker; | 171 | KDateEdit *mBirthdayPicker; |
171 | KDateEdit *mAnniversaryPicker; | 172 | KDateEdit *mAnniversaryPicker; |
172 | #ifndef KAB_EMBEDDED | 173 | #ifndef KAB_EMBEDDED |
173 | QTextEdit *mNoteEdit; | 174 | QTextEdit *mNoteEdit; |
174 | #else //KAB_EMBEDDED | 175 | #else //KAB_EMBEDDED |
175 | QMultiLineEdit *mNoteEdit; | 176 | QMultiLineEdit *mNoteEdit; |
176 | #endif //KAB_EMBEDDED | 177 | #endif //KAB_EMBEDDED |
177 | 178 | ||
178 | QSpinBox *mTimeZoneSpin; | 179 | QSpinBox *mTimeZoneSpin; |
179 | QSpinBox *mGeoLat; | 180 | QSpinBox *mGeoLat; |
180 | QSpinBox *mGeoLon; | 181 | QSpinBox *mGeoLon; |
181 | 182 | ||
182 | // Tab3 | 183 | // Tab3 |
183 | GeoWidget *mGeoWidget; | 184 | GeoWidget *mGeoWidget; |
184 | ImageWidget *mImageWidget; | 185 | ImageWidget *mImageWidget; |
185 | #ifndef KAB_EMBEDDED | 186 | #ifndef KAB_EMBEDDED |
186 | SoundWidget *mSoundWidget; | 187 | SoundWidget *mSoundWidget; |
187 | #endif //KAB_EMBEDDED | 188 | #endif //KAB_EMBEDDED |
188 | KeyWidget *mKeyWidget; | 189 | KeyWidget *mKeyWidget; |
189 | }; | 190 | }; |
190 | 191 | ||
191 | #endif | 192 | #endif |