Diffstat (limited to 'kaddressbook/addresseeeditorwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/addresseeeditorwidget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kaddressbook/addresseeeditorwidget.h b/kaddressbook/addresseeeditorwidget.h index eaf5b16..1703e2f 100644 --- a/kaddressbook/addresseeeditorwidget.h +++ b/kaddressbook/addresseeeditorwidget.h | |||
@@ -44,145 +44,148 @@ class QMultiLineEdit; | |||
44 | #endif //KAB_EMBEDDED | 44 | #endif //KAB_EMBEDDED |
45 | 45 | ||
46 | class KComboBox; | 46 | class KComboBox; |
47 | class KDateEdit; | 47 | class KDateEdit; |
48 | class KLineEdit; | 48 | class KLineEdit; |
49 | class KSqueezedTextLabel; | 49 | class KSqueezedTextLabel; |
50 | 50 | ||
51 | class AddressEditWidget; | 51 | class AddressEditWidget; |
52 | class EmailEditWidget; | 52 | class EmailEditWidget; |
53 | class GeoWidget; | 53 | class GeoWidget; |
54 | class ImageWidget; | 54 | class ImageWidget; |
55 | class KABCore; | 55 | class KABCore; |
56 | class KeyWidget; | 56 | class KeyWidget; |
57 | class PhoneEditWidget; | 57 | class PhoneEditWidget; |
58 | class SecrecyWidget; | 58 | class SecrecyWidget; |
59 | class SoundWidget; | 59 | class SoundWidget; |
60 | 60 | ||
61 | namespace KPIM | 61 | namespace KPIM |
62 | { | 62 | { |
63 | class CategorySelectDialog; | 63 | class CategorySelectDialog; |
64 | class CategoryEditDialog; | 64 | class CategoryEditDialog; |
65 | } | 65 | } |
66 | 66 | ||
67 | namespace KABC { class AddressBook; } | 67 | namespace KABC { class AddressBook; } |
68 | 68 | ||
69 | class AddresseeEditorWidget : public ExtensionWidget | 69 | class AddresseeEditorWidget : public ExtensionWidget |
70 | { | 70 | { |
71 | Q_OBJECT | 71 | Q_OBJECT |
72 | 72 | ||
73 | public: | 73 | public: |
74 | AddresseeEditorWidget( KABCore *core, bool isExtension, | 74 | AddresseeEditorWidget( KABCore *core, bool isExtension, |
75 | QWidget *parent, const char *name = 0 ); | 75 | QWidget *parent, const char *name = 0 ); |
76 | ~AddresseeEditorWidget(); | 76 | ~AddresseeEditorWidget(); |
77 | 77 | ||
78 | void setAddressee( const KABC::Addressee& ); | 78 | void setAddressee( const KABC::Addressee& ); |
79 | const KABC::Addressee &addressee(); | 79 | const KABC::Addressee &addressee(); |
80 | 80 | ||
81 | void contactsSelectionChanged(); | 81 | void contactsSelectionChanged(); |
82 | 82 | ||
83 | void load(); | 83 | void load(); |
84 | void save(); | 84 | void save(); |
85 | 85 | ||
86 | bool dirty(); | 86 | bool dirty(); |
87 | 87 | ||
88 | QString title() const; | 88 | QString title() const; |
89 | QString identifier() const; | 89 | QString identifier() const; |
90 | 90 | ||
91 | protected slots: | 91 | protected slots: |
92 | void showCatPopup(); | ||
93 | void selectedCatPopup( int ); | ||
92 | void setRole2FN(); | 94 | void setRole2FN(); |
93 | void setCompany2FN(); | 95 | void setCompany2FN(); |
94 | void textChanged( const QString& ); | 96 | void textChanged( const QString& ); |
95 | void pageChanged( QWidget *wdg ); | 97 | void pageChanged( QWidget *wdg ); |
96 | 98 | ||
97 | /** | 99 | /** |
98 | Emits the modified signal and sets the dirty flag. Any slot | 100 | Emits the modified signal and sets the dirty flag. Any slot |
99 | that modifies data should use this method instead of calling emit | 101 | that modifies data should use this method instead of calling emit |
100 | modified() directly. | 102 | modified() directly. |
101 | */ | 103 | */ |
102 | void emitModified(); | 104 | void emitModified(); |
103 | 105 | ||
104 | void dateChanged( QDate ); | 106 | void dateChanged( QDate ); |
105 | void invalidDate(); | 107 | void invalidDate(); |
106 | void nameTextChanged( const QString& ); | 108 | void nameTextChanged( const QString& ); |
107 | void nameBoxChanged(); | 109 | void nameBoxChanged(); |
108 | void nameButtonClicked(); | 110 | void nameButtonClicked(); |
109 | void categoryButtonClicked(); | 111 | void categoryButtonClicked(); |
110 | 112 | ||
111 | /** | 113 | /** |
112 | Called whenever the categories change in the categories dialog. | 114 | Called whenever the categories change in the categories dialog. |
113 | */ | 115 | */ |
114 | void categoriesSelected( const QStringList& ); | 116 | void categoriesSelected( const QStringList& ); |
115 | 117 | ||
116 | /** | 118 | /** |
117 | Edits which categories are available in the CategorySelectDialog. | 119 | Edits which categories are available in the CategorySelectDialog. |
118 | */ | 120 | */ |
119 | void editCategories(); | 121 | void editCategories(); |
120 | 122 | ||
121 | private: | 123 | private: |
122 | AddresseeConfig * mAConfig; | 124 | AddresseeConfig * mAConfig; |
123 | void initGUI(); | 125 | void initGUI(); |
124 | void setupTab1(); | 126 | void setupTab1(); |
125 | void setupTab1_1(); | 127 | void setupTab1_1(); |
126 | void setupTab2(); | 128 | void setupTab2(); |
127 | void setupTab2_1(); | 129 | void setupTab2_1(); |
128 | void setupTab3(); | 130 | void setupTab3(); |
129 | void setupTab3_1(); | 131 | void setupTab3_1(); |
130 | 132 | ||
131 | KABC::Addressee mAddressee; | 133 | KABC::Addressee mAddressee; |
132 | int mFormattedNameType; | 134 | int mFormattedNameType; |
133 | bool mDirty; | 135 | bool mDirty; |
134 | bool mIsExtension; | 136 | bool mIsExtension; |
135 | bool mBlockSignals; | 137 | bool mBlockSignals; |
136 | 138 | ||
137 | // GUI | 139 | // GUI |
138 | KPIM::CategorySelectDialog *mCategoryDialog; | 140 | KPIM::CategorySelectDialog *mCategoryDialog; |
139 | KPIM::CategoryEditDialog *mCategoryEditDialog; | 141 | KPIM::CategoryEditDialog *mCategoryEditDialog; |
140 | QTabWidget *mTabWidget; | 142 | QTabWidget *mTabWidget; |
141 | 143 | ||
142 | // Tab1 and Tab1_1 | 144 | // Tab1 and Tab1_1 |
143 | KLineEdit *mNameEdit; | 145 | KLineEdit *mNameEdit; |
144 | KLineEdit *mRoleEdit; | 146 | KLineEdit *mRoleEdit; |
145 | KLineEdit *mOrgEdit; | 147 | KLineEdit *mOrgEdit; |
146 | 148 | ||
147 | KSqueezedTextLabel *mFormattedNameLabel; | 149 | KSqueezedTextLabel *mFormattedNameLabel; |
148 | AddressEditWidget *mAddressEditWidget; | 150 | AddressEditWidget *mAddressEditWidget; |
149 | EmailEditWidget *mEmailWidget; | 151 | EmailEditWidget *mEmailWidget; |
150 | PhoneEditWidget *mPhoneEditWidget; | 152 | PhoneEditWidget *mPhoneEditWidget; |
151 | KLineEdit *mURLEdit; | 153 | KLineEdit *mURLEdit; |
152 | KLineEdit *mIMAddressEdit; | 154 | KLineEdit *mIMAddressEdit; |
153 | KLineEdit *mCategoryEdit; | 155 | QPushButton *mCategoryEdit; |
156 | QPopupMenu *mCatPopup; | ||
154 | SecrecyWidget *mSecrecyWidget; | 157 | SecrecyWidget *mSecrecyWidget; |
155 | KSqueezedTextLabel *mNameLabel; | 158 | KSqueezedTextLabel *mNameLabel; |
156 | 159 | ||
157 | // Tab2 and Tab2_2 | 160 | // Tab2 and Tab2_2 |
158 | KLineEdit *mDepartmentEdit; | 161 | KLineEdit *mDepartmentEdit; |
159 | KLineEdit *mOfficeEdit; | 162 | KLineEdit *mOfficeEdit; |
160 | KLineEdit *mProfessionEdit; | 163 | KLineEdit *mProfessionEdit; |
161 | KLineEdit *mManagerEdit; | 164 | KLineEdit *mManagerEdit; |
162 | KLineEdit *mAssistantEdit; | 165 | KLineEdit *mAssistantEdit; |
163 | KLineEdit *mNicknameEdit; | 166 | KLineEdit *mNicknameEdit; |
164 | KLineEdit *mSpouseEdit; | 167 | KLineEdit *mSpouseEdit; |
165 | KLineEdit *mChildEdit; | 168 | KLineEdit *mChildEdit; |
166 | QComboBox *mGenderBox; | 169 | QComboBox *mGenderBox; |
167 | KDateEdit *mBirthdayPicker; | 170 | KDateEdit *mBirthdayPicker; |
168 | KDateEdit *mAnniversaryPicker; | 171 | KDateEdit *mAnniversaryPicker; |
169 | #ifndef KAB_EMBEDDED | 172 | #ifndef KAB_EMBEDDED |
170 | QTextEdit *mNoteEdit; | 173 | QTextEdit *mNoteEdit; |
171 | #else //KAB_EMBEDDED | 174 | #else //KAB_EMBEDDED |
172 | QMultiLineEdit *mNoteEdit; | 175 | QMultiLineEdit *mNoteEdit; |
173 | #endif //KAB_EMBEDDED | 176 | #endif //KAB_EMBEDDED |
174 | 177 | ||
175 | QSpinBox *mTimeZoneSpin; | 178 | QSpinBox *mTimeZoneSpin; |
176 | QSpinBox *mGeoLat; | 179 | QSpinBox *mGeoLat; |
177 | QSpinBox *mGeoLon; | 180 | QSpinBox *mGeoLon; |
178 | 181 | ||
179 | // Tab3 | 182 | // Tab3 |
180 | GeoWidget *mGeoWidget; | 183 | GeoWidget *mGeoWidget; |
181 | ImageWidget *mImageWidget; | 184 | ImageWidget *mImageWidget; |
182 | #ifndef KAB_EMBEDDED | 185 | #ifndef KAB_EMBEDDED |
183 | SoundWidget *mSoundWidget; | 186 | SoundWidget *mSoundWidget; |
184 | #endif //KAB_EMBEDDED | 187 | #endif //KAB_EMBEDDED |
185 | KeyWidget *mKeyWidget; | 188 | KeyWidget *mKeyWidget; |
186 | }; | 189 | }; |
187 | 190 | ||
188 | #endif | 191 | #endif |