author | zautrix <zautrix> | 2005-10-29 12:31:30 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-10-29 12:31:30 (UTC) |
commit | 1360f8e3b5da58b561f868643d2d5f04b874cee7 (patch) (unidiff) | |
tree | d77db1c749cd059244336a701e613d007df27da3 /kaddressbook/phoneeditwidget.h | |
parent | 9e4a837905ba2634cc5c451fec8821404c04da30 (diff) | |
download | kdepimpi-1360f8e3b5da58b561f868643d2d5f04b874cee7.zip kdepimpi-1360f8e3b5da58b561f868643d2d5f04b874cee7.tar.gz kdepimpi-1360f8e3b5da58b561f868643d2d5f04b874cee7.tar.bz2 |
commit
Diffstat (limited to 'kaddressbook/phoneeditwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/phoneeditwidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/phoneeditwidget.h b/kaddressbook/phoneeditwidget.h index f61087b..5bb4226 100644 --- a/kaddressbook/phoneeditwidget.h +++ b/kaddressbook/phoneeditwidget.h | |||
@@ -1,62 +1,63 @@ | |||
1 | #ifndef PHONEEDITWIDGET_H | 1 | #ifndef PHONEEDITWIDGET_H |
2 | #define PHONEEDITWIDGET_H | 2 | #define PHONEEDITWIDGET_H |
3 | /* | 3 | /* |
4 | This file is part of KAddressBook. | 4 | This file is part of KAddressBook. |
5 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 5 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> |
6 | 6 | ||
7 | This program is free software; you can redistribute it and/or modify | 7 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 2 of the License, or | 9 | the Free Software Foundation; either version 2 of the License, or |
10 | (at your option) any later version. | 10 | (at your option) any later version. |
11 | 11 | ||
12 | This program is distributed in the hope that it will be useful, | 12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. |
16 | 16 | ||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 | 20 | ||
21 | As a special exception, permission is given to link this program | 21 | As a special exception, permission is given to link this program |
22 | with any edition of Qt, and distribute the resulting executable, | 22 | with any edition of Qt, and distribute the resulting executable, |
23 | without including the source code for Qt in the source distribution. | 23 | without including the source code for Qt in the source distribution. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <kdialogbase.h> | 26 | #include <kdialogbase.h> |
27 | #include <kiconloader.h> | 27 | #include <kiconloader.h> |
28 | #include <qpushbutton.h> | 28 | #include <qpushbutton.h> |
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qpopupmenu.h> | 30 | #include <qpopupmenu.h> |
31 | #include <qapplication.h> | ||
31 | 32 | ||
32 | #include <qptrlist.h> | 33 | #include <qptrlist.h> |
33 | #include <qscrollview.h> | 34 | #include <qscrollview.h> |
34 | 35 | ||
35 | #include "addresseeconfig.h" | 36 | #include "addresseeconfig.h" |
36 | #include "typecombo.h" | 37 | #include "typecombo.h" |
37 | 38 | ||
38 | class QButtonGroup; | 39 | class QButtonGroup; |
39 | class QCheckBox; | 40 | class QCheckBox; |
40 | class PhoneTypeNumberEdit; | 41 | class PhoneTypeNumberEdit; |
41 | 42 | ||
42 | #include <klineedit.h> | 43 | #include <klineedit.h> |
43 | #include <kcombobox.h> | 44 | #include <kcombobox.h> |
44 | #include <kabc/phonenumber.h> | 45 | #include <kabc/phonenumber.h> |
45 | 46 | ||
46 | typedef TypeCombo<KABC::PhoneNumber> PhoneTypeCombo; | 47 | typedef TypeCombo<KABC::PhoneNumber> PhoneTypeCombo; |
47 | 48 | ||
48 | /** | 49 | /** |
49 | Widget for editing phone numbers. | 50 | Widget for editing phone numbers. |
50 | */ | 51 | */ |
51 | class PhoneEditWidget : public QWidget | 52 | class PhoneEditWidget : public QWidget |
52 | { | 53 | { |
53 | Q_OBJECT | 54 | Q_OBJECT |
54 | 55 | ||
55 | public: | 56 | public: |
56 | PhoneEditWidget( QWidget *parent, const char *name = 0 ); | 57 | PhoneEditWidget( QWidget *parent, const char *name = 0 ); |
57 | ~PhoneEditWidget(); | 58 | ~PhoneEditWidget(); |
58 | 59 | ||
59 | void setPhoneNumbers( const KABC::PhoneNumber::List &list ); | 60 | void setPhoneNumbers( const KABC::PhoneNumber::List &list ); |
60 | KABC::PhoneNumber::List phoneNumbers(); | 61 | KABC::PhoneNumber::List phoneNumbers(); |
61 | 62 | ||
62 | // void updateTypeCombo( const KABC::PhoneNumber::List&, KComboBox* ); | 63 | // void updateTypeCombo( const KABC::PhoneNumber::List&, KComboBox* ); |