24 #ifndef PHONEEDITWIDGET_H
25 #define PHONEEDITWIDGET_H
27 #include <kcombobox.h>
28 #include <kdialogbase.h>
30 #include "addresseeconfig.h"
39 class PhoneTypeCombo : public KComboBox
45 PhoneTypeCombo( TQWidget *parent );
48 void setType( int type );
63 TQValueList<int> mTypeList;
66 class PhoneNumberWidget : public TQWidget
72 PhoneNumberWidget( TQWidget *parent );
74 void setNumber( const TDEABC::PhoneNumber &number );
75 TDEABC::PhoneNumber number() const;
77 void setReadOnly( bool readOnly );
83 PhoneTypeCombo *mTypeCombo;
84 KLineEdit *mNumberEdit;
85 TDEABC::PhoneNumber mNumber;
100 void setPhoneNumbers( const TDEABC::PhoneNumber::List &list );
101 TDEABC::PhoneNumber::List phoneNumbers() const;
103 void setReadOnly( bool readOnly );
112 void changed( int pos );
115 void recreateNumberWidgets();
117 TDEABC::PhoneNumber::List mPhoneNumberList;
118 TQPtrList<PhoneNumberWidget> mWidgets;
120 TQPushButton *mAddButton;
121 TQPushButton *mRemoveButton;
122 TQVBoxLayout *mWidgetLayout;
125 TQSignalMapper *mMapper;
142 TDEABC::PhoneNumber::TypeList mTypeList;
144 TQButtonGroup *mGroup;
145 TQCheckBox *mPreferredBox;
Dialog for editing phone number types.
|