kmail
xfaceconfigurator.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __KMAIL_XFACECONFIGURATOR_H__
00018 #define __KMAIL_XFACECONFIGURATOR_H__
00019
00020 #include <tqwidget.h>
00021 #include <tqtextedit.h>
00022
00023 class KURL;
00024
00025 class TQCheckBox;
00026 class TQString;
00027 class TQLabel;
00028 class TQComboBox;
00029
00030 namespace KMail {
00031
00032 class XFaceConfigurator : public TQWidget {
00033 Q_OBJECT
00034 TQ_OBJECT
00035 public:
00036 XFaceConfigurator( TQWidget * parent=0, const char * name=0 );
00037 virtual ~XFaceConfigurator();
00038
00039 bool isXFaceEnabled() const;
00040 void setXFaceEnabled( bool enable );
00041
00042
00043 TQString xface() const;
00044 void setXFace( const TQString & text );
00045
00046 protected:
00047 TQCheckBox * mEnableCheck;
00048 TQTextEdit * mTextEdit;
00049 TQLabel * mXFaceLabel;
00050 TQComboBox * mSourceCombo;
00051
00052
00053 private:
00054 void setXfaceFromFile( const KURL &url );
00055
00056 private slots:
00057 void slotSelectFile();
00058 void slotSelectFromAddressbook();
00059 void slotUpdateXFace();
00060 };
00061 }
00062
00063 #endif // __KMAIL_XFACECONFIGURATOR_H__
00064
00065
|