summaryrefslogtreecommitdiffabout
path: root/kaddressbook/addresseeeditorwidget.h
Unidiff
Diffstat (limited to 'kaddressbook/addresseeeditorwidget.h') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/addresseeeditorwidget.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kaddressbook/addresseeeditorwidget.h b/kaddressbook/addresseeeditorwidget.h
index 816bbb5..aa1207e 100644
--- a/kaddressbook/addresseeeditorwidget.h
+++ b/kaddressbook/addresseeeditorwidget.h
@@ -1,93 +1,93 @@
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#include <q3popupmenu.h>
29#include <qcombobox.h> 29#include <qcombobox.h>
30 30
31#include <kabc/addressee.h> 31#include <kabc/addressee.h>
32#include <kdialogbase.h> 32#include <kdialogbase.h>
33#include <kjanuswidget.h> 33#include <kjanuswidget.h>
34 34
35#include "extensionwidget.h" 35#include "extensionwidget.h"
36 36
37class AddresseeConfig; 37class AddresseeConfig;
38class QCheckBox; 38class QCheckBox;
39class QSpinBox; 39class QSpinBox;
40class QTabWidget; 40class QTabWidget;
41 41
42#ifndef KAB_EMBEDDED 42#ifndef KAB_EMBEDDED
43class QTextEdit; 43class Q3TextEdit;
44#else //KAB_EMBEDDED 44#else //KAB_EMBEDDED
45class QMultiLineEdit; 45class Q3MultiLineEdit;
46#endif //KAB_EMBEDDED 46#endif //KAB_EMBEDDED
47 47
48class KComboBox; 48class KComboBox;
49class KDateEdit; 49class KDateEdit;
50class KLineEdit; 50class KLineEdit;
51class KSqueezedTextLabel; 51class KSqueezedTextLabel;
52 52
53class AddressEditWidget; 53class AddressEditWidget;
54class EmailEditWidget; 54class EmailEditWidget;
55class GeoWidget; 55class GeoWidget;
56class ImageWidget; 56class ImageWidget;
57class KABCore; 57class KABCore;
58class KeyWidget; 58class KeyWidget;
59class PhoneEditWidget; 59class PhoneEditWidget;
60class SecrecyWidget; 60class SecrecyWidget;
61class SoundWidget; 61class SoundWidget;
62 62
63namespace KPIM 63namespace KPIM
64{ 64{
65 class CategorySelectDialog; 65 class CategorySelectDialog;
66 class CategoryEditDialog; 66 class CategoryEditDialog;
67} 67}
68 68
69namespace KABC { class AddressBook; } 69namespace KABC { class AddressBook; }
70 70
71class AddresseeEditorWidget : public ExtensionWidget 71class AddresseeEditorWidget : public ExtensionWidget
72{ 72{
73 Q_OBJECT 73 Q_OBJECT
74 74
75 public: 75 public:
76 AddresseeEditorWidget( KABCore *core, bool isExtension, 76 AddresseeEditorWidget( KABCore *core, bool isExtension,
77 QWidget *parent, const char *name = 0 ); 77 QWidget *parent, const char *name = 0 );
78 ~AddresseeEditorWidget(); 78 ~AddresseeEditorWidget();
79 79
80 void setAddressee( const KABC::Addressee& ); 80 void setAddressee( const KABC::Addressee& );
81 const KABC::Addressee &addressee(); 81 const KABC::Addressee &addressee();
82 82
83 void contactsSelectionChanged(); 83 void contactsSelectionChanged();
84 84
85 void load(); 85 void load();
86 void save(); 86 void save();
87 87
88 bool dirty(); 88 bool dirty();
89 89
90 QString title() const; 90 QString title() const;
91 QString identifier() const; 91 QString identifier() const;
92 92
93 protected slots: 93 protected slots:
@@ -110,84 +110,84 @@ class AddresseeEditorWidget : public ExtensionWidget
110 void nameTextChanged( const QString& ); 110 void nameTextChanged( const QString& );
111 void nameBoxChanged(); 111 void nameBoxChanged();
112 void nameButtonClicked(); 112 void nameButtonClicked();
113 void categoryButtonClicked(); 113 void categoryButtonClicked();
114 114
115 /** 115 /**
116 Called whenever the categories change in the categories dialog. 116 Called whenever the categories change in the categories dialog.
117 */ 117 */
118 void categoriesSelected( const QStringList& ); 118 void categoriesSelected( const QStringList& );
119 119
120 /** 120 /**
121 Edits which categories are available in the CategorySelectDialog. 121 Edits which categories are available in the CategorySelectDialog.
122 */ 122 */
123 void editCategories(); 123 void editCategories();
124 124
125 private: 125 private:
126 AddresseeConfig * mAConfig; 126 AddresseeConfig * mAConfig;
127 void initGUI(); 127 void initGUI();
128 void setupTab1(); 128 void setupTab1();
129 void setupTab1_1(); 129 void setupTab1_1();
130 void setupTab2(); 130 void setupTab2();
131 void setupTab2_1(); 131 void setupTab2_1();
132 void setupTab3(); 132 void setupTab3();
133 void setupTab3_1(); 133 void setupTab3_1();
134 134
135 KABC::Addressee mAddressee; 135 KABC::Addressee mAddressee;
136 int mFormattedNameType; 136 int mFormattedNameType;
137 bool mDirty; 137 bool mDirty;
138 bool mIsExtension; 138 bool mIsExtension;
139 bool mBlockSignals; 139 bool mBlockSignals;
140 140
141 // GUI 141 // GUI
142 KPIM::CategorySelectDialog *mCategoryDialog; 142 KPIM::CategorySelectDialog *mCategoryDialog;
143 KPIM::CategoryEditDialog *mCategoryEditDialog; 143 KPIM::CategoryEditDialog *mCategoryEditDialog;
144 QTabWidget *mTabWidget; 144 QTabWidget *mTabWidget;
145 145
146 // Tab1 and Tab1_1 146 // Tab1 and Tab1_1
147 KLineEdit *mNameEdit; 147 KLineEdit *mNameEdit;
148 KLineEdit *mRoleEdit; 148 KLineEdit *mRoleEdit;
149 KLineEdit *mOrgEdit; 149 KLineEdit *mOrgEdit;
150 150
151 KSqueezedTextLabel *mFormattedNameLabel; 151 KSqueezedTextLabel *mFormattedNameLabel;
152 AddressEditWidget *mAddressEditWidget; 152 AddressEditWidget *mAddressEditWidget;
153 EmailEditWidget *mEmailWidget; 153 EmailEditWidget *mEmailWidget;
154 PhoneEditWidget *mPhoneEditWidget; 154 PhoneEditWidget *mPhoneEditWidget;
155 KLineEdit *mURLEdit; 155 KLineEdit *mURLEdit;
156 KLineEdit *mIMAddressEdit; 156 KLineEdit *mIMAddressEdit;
157 QPushButton *mCategoryEdit; 157 QPushButton *mCategoryEdit;
158 QPopupMenu *mCatPopup; 158 Q3PopupMenu *mCatPopup;
159 SecrecyWidget *mSecrecyWidget; 159 SecrecyWidget *mSecrecyWidget;
160 KSqueezedTextLabel *mNameLabel; 160 KSqueezedTextLabel *mNameLabel;
161 161
162 // Tab2 and Tab2_2 162 // Tab2 and Tab2_2
163 KLineEdit *mDepartmentEdit; 163 KLineEdit *mDepartmentEdit;
164 KLineEdit *mOfficeEdit; 164 KLineEdit *mOfficeEdit;
165 KLineEdit *mProfessionEdit; 165 KLineEdit *mProfessionEdit;
166 KLineEdit *mManagerEdit; 166 KLineEdit *mManagerEdit;
167 KLineEdit *mAssistantEdit; 167 KLineEdit *mAssistantEdit;
168 KLineEdit *mNicknameEdit; 168 KLineEdit *mNicknameEdit;
169 KLineEdit *mSpouseEdit; 169 KLineEdit *mSpouseEdit;
170 KLineEdit *mChildEdit; 170 KLineEdit *mChildEdit;
171 QComboBox *mGenderBox; 171 QComboBox *mGenderBox;
172 KDateEdit *mBirthdayPicker; 172 KDateEdit *mBirthdayPicker;
173 KDateEdit *mAnniversaryPicker; 173 KDateEdit *mAnniversaryPicker;
174#ifndef KAB_EMBEDDED 174#ifndef KAB_EMBEDDED
175 QTextEdit *mNoteEdit; 175 Q3TextEdit *mNoteEdit;
176#else //KAB_EMBEDDED 176#else //KAB_EMBEDDED
177 QMultiLineEdit *mNoteEdit; 177 Q3MultiLineEdit *mNoteEdit;
178#endif //KAB_EMBEDDED 178#endif //KAB_EMBEDDED
179 179
180 QSpinBox *mTimeZoneSpin; 180 QSpinBox *mTimeZoneSpin;
181 QSpinBox *mGeoLat; 181 QSpinBox *mGeoLat;
182 QSpinBox *mGeoLon; 182 QSpinBox *mGeoLon;
183 183
184 // Tab3 184 // Tab3
185 GeoWidget *mGeoWidget; 185 GeoWidget *mGeoWidget;
186 ImageWidget *mImageWidget; 186 ImageWidget *mImageWidget;
187#ifndef KAB_EMBEDDED 187#ifndef KAB_EMBEDDED
188 SoundWidget *mSoundWidget; 188 SoundWidget *mSoundWidget;
189#endif //KAB_EMBEDDED 189#endif //KAB_EMBEDDED
190 KeyWidget *mKeyWidget; 190 KeyWidget *mKeyWidget;
191}; 191};
192 192
193#endif 193#endif