author | zautrix <zautrix> | 2005-10-28 23:31:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-10-28 23:31:46 (UTC) |
commit | 7a90e619147e06e5f4d4facef98364f78a4a04ef (patch) (unidiff) | |
tree | f1b11d0ca9c123d42f9b632bae1cc6608ee5e740 /kaddressbook/phoneeditwidget.h | |
parent | 85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57 (diff) | |
download | kdepimpi-7a90e619147e06e5f4d4facef98364f78a4a04ef.zip kdepimpi-7a90e619147e06e5f4d4facef98364f78a4a04ef.tar.gz kdepimpi-7a90e619147e06e5f4d4facef98364f78a4a04ef.tar.bz2 |
fixx
Diffstat (limited to 'kaddressbook/phoneeditwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/phoneeditwidget.h | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/kaddressbook/phoneeditwidget.h b/kaddressbook/phoneeditwidget.h index 0477b6c..fbf9fe7 100644 --- a/kaddressbook/phoneeditwidget.h +++ b/kaddressbook/phoneeditwidget.h | |||
@@ -84,123 +84,11 @@ class PhoneEditWidget : public QWidget | |||
84 | QWidget* mw; | 84 | QWidget* mw; |
85 | QVBoxLayout* mainLayout; | 85 | QVBoxLayout* mainLayout; |
86 | QPtrList <PhoneTypeNumberEdit> mTypeNumberEditList; | 86 | QPtrList <PhoneTypeNumberEdit> mTypeNumberEditList; |
87 | 87 | ||
88 | KABC::PhoneNumber::List mPhoneList; | ||
89 | }; | 88 | }; |
90 | 89 | ||
91 | 90 | ||
92 | |||
93 | |||
94 | |||
95 | #if 0 | ||
96 | class PhoneEditWidget : public QWidget | ||
97 | { | ||
98 | Q___OBJECT | ||
99 | |||
100 | public: | ||
101 | PhoneEditWidget( QWidget *parent, const char *name = 0 ); | ||
102 | ~PhoneEditWidget(); | ||
103 | |||
104 | void setPhoneNumbers( const KABC::PhoneNumber::List &list ); | ||
105 | KABC::PhoneNumber::List phoneNumbers(); | ||
106 | |||
107 | void updateTypeCombo( const KABC::PhoneNumber::List&, KComboBox* ); | ||
108 | KABC::PhoneNumber currentPhoneNumber( KComboBox*, int ); | ||
109 | |||
110 | sig_nals: | ||
111 | void modified(); | ||
112 | void typeChange( int oldType, int newType ); | ||
113 | |||
114 | private sl_ots: | ||
115 | void edit(); | ||
116 | |||
117 | void updatePrefEdit(); | ||
118 | void updateSecondEdit(); | ||
119 | void updateThirdEdit(); | ||
120 | void updateFourthEdit(); | ||
121 | |||
122 | void slotPrefEditChanged(); | ||
123 | void slotSecondEditChanged(); | ||
124 | void slotThirdEditChanged(); | ||
125 | void slotFourthEditChanged(); | ||
126 | |||
127 | protected: | ||
128 | void updateLineEdits(); | ||
129 | void updateCombos(); | ||
130 | |||
131 | private: | ||
132 | QPtrList <PhoneTypeNumberEdit> mTypeNumberEditList; | ||
133 | void updateEdit( PhoneTypeCombo *combo ); | ||
134 | void updatePhoneNumber( PhoneTypeCombo *combo ); | ||
135 | void updateOtherEdit( PhoneTypeCombo *combo, PhoneTypeCombo *otherCombo ); | ||
136 | |||
137 | PhoneTypeCombo *mPrefCombo; | ||
138 | PhoneTypeCombo *mSecondCombo; | ||
139 | PhoneTypeCombo *mThirdCombo; | ||
140 | PhoneTypeCombo *mFourthCombo; | ||
141 | |||
142 | KLineEdit *mPrefEdit; | ||
143 | KLineEdit *mSecondEdit; | ||
144 | KLineEdit *mThirdEdit; | ||
145 | KLineEdit *mFourthEdit; | ||
146 | |||
147 | KABC::PhoneNumber::List mPhoneList; | ||
148 | }; | ||
149 | |||
150 | /** | ||
151 | Dialog for editing lists of phonenumbers. | ||
152 | */ | ||
153 | class PhoneEditDialog : public KDialogBase | ||
154 | { | ||
155 | Q___OBJECT | ||
156 | |||
157 | public: | ||
158 | PhoneEditDialog( const KABC::PhoneNumber::List &list, QWidget *parent, const char *name = 0 ); | ||
159 | ~PhoneEditDialog(); | ||
160 | |||
161 | const KABC::PhoneNumber::List &phoneNumbers(); | ||
162 | bool changed() const; | ||
163 | |||
164 | protected s__lots: | ||
165 | void slotAddPhoneNumber(); | ||
166 | void slotRemovePhoneNumber(); | ||
167 | void slotEditPhoneNumber(); | ||
168 | void slotSelectionChanged(); | ||
169 | |||
170 | private: | ||
171 | KABC::PhoneNumber::List mPhoneNumberList; | ||
172 | KABC::PhoneNumber::TypeList mTypeList; | ||
173 | KComboBox *mTypeBox; | ||
174 | KListView *mListView; | ||
175 | |||
176 | QPushButton *mRemoveButton; | ||
177 | QPushButton *mEditButton; | ||
178 | |||
179 | bool mChanged; | ||
180 | }; | ||
181 | |||
182 | /** | ||
183 | Dialog for editing phone number types. | ||
184 | */ | ||
185 | class PhoneTypeDialog : public KDialogBase | ||
186 | { | ||
187 | Q___OBJECT | ||
188 | public: | ||
189 | PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber, QWidget *parent, const char *name = 0 ); | ||
190 | |||
191 | KABC::PhoneNumber phoneNumber(); | ||
192 | |||
193 | private: | ||
194 | KABC::PhoneNumber mPhoneNumber; | ||
195 | KABC::PhoneNumber::TypeList mTypeList; | ||
196 | |||
197 | QButtonGroup *mGroup; | ||
198 | QCheckBox *mPreferredBox; | ||
199 | KLineEdit *mNumber; | ||
200 | }; | ||
201 | #endif | ||
202 | |||
203 | class PhoneTypeNumberEdit : public QWidget | 91 | class PhoneTypeNumberEdit : public QWidget |
204 | { | 92 | { |
205 | Q_OBJECT | 93 | Q_OBJECT |
206 | public: | 94 | public: |