xfaceconfigurator.h
00001 /* -*- c++ -*- 00002 xfaceconfigurator.cpp 00003 00004 KMail, the KDE mail client. 00005 Copyright (c) 2004 Jakob Schröter <js@camaya.net> 00006 Copyright (c) 2002 the KMail authors. 00007 See file AUTHORS for details 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License, 00011 version 2.0, as published by the Free Software Foundation. 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software Foundation, 00014 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US 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 } // namespace KMail 00062 00063 #endif // __KMAIL_XFACECONFIGURATOR_H__ 00064 00065