htmlstatusbar.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
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef _KMAIL_HTMLSTATUSBAR_H_
00033 #define _KMAIL_HTMLSTATUSBAR_H_
00034
00035 #include <qlabel.h>
00036
00037 class QString;
00038 class QColor;
00039
00040 namespace KMail {
00041
00061 class HtmlStatusBar : public QLabel {
00062 Q_OBJECT
00063 public:
00064 HtmlStatusBar( QWidget * parent=0, const char * name=0, WFlags f=0 );
00065 virtual ~HtmlStatusBar();
00066
00067 enum Mode {
00068 Normal,
00069 Html,
00070 Neutral
00071 };
00072
00074 Mode mode() const { return mMode ; }
00075 bool isHtml() const { return mode() == Html ; }
00076 bool isNormal() const { return mode() == Normal ; }
00077 bool isNeutral() const { return mode() == Neutral ; }
00078
00079 public slots:
00081 void setHtmlMode();
00083 void setNormalMode();
00085 void setNeutralMode();
00087 void setMode( Mode m );
00088
00089 private:
00090 void upd();
00091 QString message() const;
00092 QColor bgColor() const;
00093 QColor fgColor() const;
00094
00095 Mode mMode;
00096 };
00097
00098 }
00099
00100 #endif // _KMAIL_HTMLSTATUSBAR_H_
This file is part of the documentation for kmail Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Mar 6 17:18:16 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003