author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kaddressbook/addresseditwidget.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'kaddressbook/addresseditwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/addresseditwidget.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kaddressbook/addresseditwidget.h b/kaddressbook/addresseditwidget.h index bc96d74..1d4e138 100644 --- a/kaddressbook/addresseditwidget.h +++ b/kaddressbook/addresseditwidget.h | |||
@@ -20,39 +20,39 @@ | |||
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 ADDRESSEDITWIDGET_H | 24 | #ifndef ADDRESSEDITWIDGET_H |
25 | #define ADDRESSEDITWIDGET_H | 25 | #define ADDRESSEDITWIDGET_H |
26 | 26 | ||
27 | #include <qwidget.h> | 27 | #include <qwidget.h> |
28 | 28 | ||
29 | #include <kdialogbase.h> | 29 | #include <kdialogbase.h> |
30 | #include <kabc/address.h> | 30 | #include <kabc/address.h> |
31 | #include <kabc/addressee.h> | 31 | #include <kabc/addressee.h> |
32 | 32 | ||
33 | #include "addresseeconfig.h" | 33 | #include "addresseeconfig.h" |
34 | #include "typecombo.h" | 34 | #include "typecombo.h" |
35 | 35 | ||
36 | class QButtonGroup; | 36 | class Q3ButtonGroup; |
37 | class QCheckBox; | 37 | class QCheckBox; |
38 | class QListView; | 38 | class Q3ListView; |
39 | #ifndef KAB_EMBEDDED | 39 | #ifndef KAB_EMBEDDED |
40 | class QTextEdit; | 40 | class Q3TextEdit; |
41 | #else //KAB_EMBEDDED | 41 | #else //KAB_EMBEDDED |
42 | class QMultiLineEdit; | 42 | class Q3MultiLineEdit; |
43 | #endif //KAB_EMBEDDED | 43 | #endif //KAB_EMBEDDED |
44 | class QToolButton; | 44 | class QToolButton; |
45 | 45 | ||
46 | class KComboBox; | 46 | class KComboBox; |
47 | class KLineEdit; | 47 | class KLineEdit; |
48 | class KListView; | 48 | class KListView; |
49 | 49 | ||
50 | typedef TypeCombo<KABC::Address> AddressTypeCombo; | 50 | typedef TypeCombo<KABC::Address> AddressTypeCombo; |
51 | 51 | ||
52 | /** | 52 | /** |
53 | Editor widget for addresses. | 53 | Editor widget for addresses. |
54 | */ | 54 | */ |
55 | class AddressEditWidget : public QWidget | 55 | class AddressEditWidget : public QWidget |
56 | { | 56 | { |
57 | Q_OBJECT | 57 | Q_OBJECT |
58 | 58 | ||
@@ -68,35 +68,35 @@ class AddressEditWidget : public QWidget | |||
68 | KABC::Address currentAddress( KComboBox*, int ); | 68 | KABC::Address currentAddress( KComboBox*, int ); |
69 | 69 | ||
70 | signals: | 70 | signals: |
71 | void modified(); | 71 | void modified(); |
72 | 72 | ||
73 | protected slots: | 73 | protected slots: |
74 | void updateAddressEdit(); | 74 | void updateAddressEdit(); |
75 | 75 | ||
76 | void edit(); | 76 | void edit(); |
77 | 77 | ||
78 | private: | 78 | private: |
79 | AddresseeConfig * mConfig; | 79 | AddresseeConfig * mConfig; |
80 | AddressTypeCombo *mTypeCombo; | 80 | AddressTypeCombo *mTypeCombo; |
81 | 81 | ||
82 | QPushButton *mEditButton; | 82 | QPushButton *mEditButton; |
83 | #ifndef KAB_EMBEDDED | 83 | #ifndef KAB_EMBEDDED |
84 | QTextEdit *mAddressTextEdit; | 84 | Q3TextEdit *mAddressTextEdit; |
85 | #else //KAB_EMBEDDED | 85 | #else //KAB_EMBEDDED |
86 | QMultiLineEdit *mAddressTextEdit; | 86 | Q3MultiLineEdit *mAddressTextEdit; |
87 | #endif //KAB_EMBEDDED | 87 | #endif //KAB_EMBEDDED |
88 | 88 | ||
89 | KABC::Address::List mAddressList; | 89 | KABC::Address::List mAddressList; |
90 | KABC::Addressee mAddressee; | 90 | KABC::Addressee mAddressee; |
91 | int mIndex; | 91 | int mIndex; |
92 | }; | 92 | }; |
93 | 93 | ||
94 | /** | 94 | /** |
95 | Dialog for editing address details. | 95 | Dialog for editing address details. |
96 | */ | 96 | */ |
97 | class AddressEditDialog : public KDialogBase | 97 | class AddressEditDialog : public KDialogBase |
98 | { | 98 | { |
99 | Q_OBJECT | 99 | Q_OBJECT |
100 | 100 | ||
101 | public: | 101 | public: |
102 | AddressEditDialog( const KABC::Address::List &list, int selected, | 102 | AddressEditDialog( const KABC::Address::List &list, int selected, |
@@ -107,53 +107,53 @@ class AddressEditDialog : public KDialogBase | |||
107 | bool changed() const; | 107 | bool changed() const; |
108 | 108 | ||
109 | protected slots: | 109 | protected slots: |
110 | void addAddress(); | 110 | void addAddress(); |
111 | void removeAddress(); | 111 | void removeAddress(); |
112 | void changeType(); | 112 | void changeType(); |
113 | 113 | ||
114 | void updateAddressEdits(); | 114 | void updateAddressEdits(); |
115 | void modified(); | 115 | void modified(); |
116 | 116 | ||
117 | private: | 117 | private: |
118 | void saveAddress( KABC::Address &addr ); | 118 | void saveAddress( KABC::Address &addr ); |
119 | void fillCountryCombo(); | 119 | void fillCountryCombo(); |
120 | 120 | ||
121 | AddressTypeCombo *mTypeCombo; | 121 | AddressTypeCombo *mTypeCombo; |
122 | #ifndef KAB_EMBEDDED | 122 | #ifndef KAB_EMBEDDED |
123 | QTextEdit *mStreetTextEdit; | 123 | Q3TextEdit *mStreetTextEdit; |
124 | #else //KAB_EMBEDDED | 124 | #else //KAB_EMBEDDED |
125 | QMultiLineEdit *mStreetTextEdit; | 125 | Q3MultiLineEdit *mStreetTextEdit; |
126 | #endif //KAB_EMBEDDED | 126 | #endif //KAB_EMBEDDED |
127 | KComboBox *mCountryCombo; | 127 | KComboBox *mCountryCombo; |
128 | KLineEdit *mRegionEdit; | 128 | KLineEdit *mRegionEdit; |
129 | KLineEdit *mLocalityEdit; | 129 | KLineEdit *mLocalityEdit; |
130 | KLineEdit *mPostalCodeEdit; | 130 | KLineEdit *mPostalCodeEdit; |
131 | KLineEdit *mPOBoxEdit; | 131 | KLineEdit *mPOBoxEdit; |
132 | QCheckBox *mPreferredCheckBox; | 132 | QCheckBox *mPreferredCheckBox; |
133 | 133 | ||
134 | QPushButton *mRemoveButton; | 134 | QPushButton *mRemoveButton; |
135 | QPushButton *mChangeTypeButton; | 135 | QPushButton *mChangeTypeButton; |
136 | 136 | ||
137 | KABC::Address::List mAddressList; | 137 | KABC::Address::List mAddressList; |
138 | KABC::Address *mPreviousAddress; | 138 | KABC::Address *mPreviousAddress; |
139 | bool mChanged; | 139 | bool mChanged; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | /** | 142 | /** |
143 | Dialog for selecting an address type. | 143 | Dialog for selecting an address type. |
144 | */ | 144 | */ |
145 | class AddressTypeDialog : public KDialogBase | 145 | class AddressTypeDialog : public KDialogBase |
146 | { | 146 | { |
147 | public: | 147 | public: |
148 | AddressTypeDialog( int type, QWidget *parent ); | 148 | AddressTypeDialog( int type, QWidget *parent ); |
149 | ~AddressTypeDialog(); | 149 | ~AddressTypeDialog(); |
150 | 150 | ||
151 | int type() const; | 151 | int type() const; |
152 | 152 | ||
153 | private: | 153 | private: |
154 | QButtonGroup *mGroup; | 154 | Q3ButtonGroup *mGroup; |
155 | 155 | ||
156 | KABC::Address::TypeList mTypeList; | 156 | KABC::Address::TypeList mTypeList; |
157 | }; | 157 | }; |
158 | 158 | ||
159 | #endif | 159 | #endif |