-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,123 +1,124 @@ | |||
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: |