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 <tqwidget.h>
00028
00029 class KComboBox;
00030 class KLineEdit;
00031
00032 class TQListBox;
00033 class TQListBoxItem;
00034 class TQPushButton;
00035
00036 class NamePartWidget : public TQWidget
00037 {
00038 Q_OBJECT
00039
00040
00041 public:
00042 NamePartWidget( const TQString &title, const TQString &label, TQWidget *parent,
00043 const char *name = 0 );
00044 ~NamePartWidget();
00045
00046 void setNameParts( const TQStringList &list );
00047 TQStringList nameParts() const;
00048
00049 signals:
00050 void modified();
00051
00052 private slots:
00053 void add();
00054 void edit();
00055 void remove();
00056
00057 void selectionChanged( TQListBoxItem* );
00058
00059 private:
00060 TQListBox *mBox;
00061 TQPushButton *mAddButton;
00062 TQPushButton *mEditButton;
00063 TQPushButton *mRemoveButton;
00064
00065 TQString mTitle;
00066 TQString mLabel;
00067 };
00068
00069 class AddresseeWidget : public TQWidget
00070 {
00071 Q_OBJECT
00072
00073
00074 public:
00075 AddresseeWidget( TQWidget *parent, const char *name = 0 );
00076 ~AddresseeWidget();
00077
00078 void restoreSettings();
00079 void saveSettings();
00080
00081 signals:
00082 void modified();
00083
00084 private:
00085 KComboBox *mFormattedNameCombo;
00086 NamePartWidget *mPrefix;
00087 NamePartWidget *mInclusion;
00088 NamePartWidget *mSuffix;
00089 };
00090
00091 #endif