addresseewidget.h
00001
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, 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 remove();
00054
00055 void selectionChanged( QListBoxItem* );
00056 void textChanged( const QString& );
00057
00058 private:
00059 KLineEdit *mEdit;
00060
00061 QListBox *mBox;
00062 QPushButton *mAddButton;
00063 QPushButton *mRemoveButton;
00064 };
00065
00066 class AddresseeWidget : public QWidget
00067 {
00068 Q_OBJECT
00069
00070 public:
00071 AddresseeWidget( QWidget *parent, const char *name = 0 );
00072 ~AddresseeWidget();
00073
00074 void restoreSettings();
00075 void saveSettings();
00076
00077 signals:
00078 void modified();
00079
00080 private:
00081 KComboBox *mFormattedNameCombo;
00082 NamePartWidget *mPrefix;
00083 NamePartWidget *mInclusion;
00084 NamePartWidget *mSuffix;
00085 };
00086
00087 #endif
This file is part of the documentation for kaddressbook Library Version 3.2.2.