kaddressbook
addresseewidget.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ADDRESSEEWIDGET_H
00025 #define ADDRESSEEWIDGET_H
00026
00027 #include <qwidget.h>
00028
00029 class KComboBox;
00030 class KLineEdit;
00031
00032 class QListBox;
00033 class QListBoxItem;
00034 class QPushButton;
00035
00036 class NamePartWidget : public QWidget
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 NamePartWidget( const QString &title, const QString &label, QWidget *parent,
00042 const char *name = 0 );
00043 ~NamePartWidget();
00044
00045 void setNameParts( const QStringList &list );
00046 QStringList nameParts() const;
00047
00048 signals:
00049 void modified();
00050
00051 private slots:
00052 void add();
00053 void edit();
00054 void remove();
00055
00056 void selectionChanged( QListBoxItem* );
00057
00058 private:
00059 QListBox *mBox;
00060 QPushButton *mAddButton;
00061 QPushButton *mEditButton;
00062 QPushButton *mRemoveButton;
00063
00064 QString mTitle;
00065 QString mLabel;
00066 };
00067
00068 class AddresseeWidget : public QWidget
00069 {
00070 Q_OBJECT
00071
00072 public:
00073 AddresseeWidget( QWidget *parent, const char *name = 0 );
00074 ~AddresseeWidget();
00075
00076 void restoreSettings();
00077 void saveSettings();
00078
00079 signals:
00080 void modified();
00081
00082 private:
00083 KComboBox *mFormattedNameCombo;
00084 NamePartWidget *mPrefix;
00085 NamePartWidget *mInclusion;
00086 NamePartWidget *mSuffix;
00087 };
00088
00089 #endif
|