37 #include "htmlstatusbar.h"
42 #include <tdeapplication.h>
45 #include <tdelocale.h>
46 #include <tdeconfig.h>
51 KMail::HtmlStatusBar::HtmlStatusBar( TQWidget * parent, const char * name, WFlags f )
52 : TQLabel( parent, name, f ),
55 setAlignment( AlignHCenter|AlignTop );
57 setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) );
61 KMail::HtmlStatusBar::~HtmlStatusBar() {}
63 void KMail::HtmlStatusBar::upd() {
64 setEraseColor( bgColor() );
65 setPaletteForegroundColor( fgColor() );
88 TQString KMail::HtmlStatusBar::message() const {
91 return i18n( "<qt><b><br>H<br>T<br>M<br>L<br> "
92 "<br>M<br>e<br>s<br>s<br>a<br>g<br>e</b></qt>" );
94 return i18n( "<qt><br>N<br>o<br> "
95 "<br>H<br>T<br>M<br>L<br> "
96 "<br>M<br>e<br>s<br>s<br>a<br>g<br>e</qt>" );
104 inline TDEConfig * config() {
105 #ifndef KMAIL_TESTING
106 return KMKernel::config();
108 return kApp->config();
113 TQColor KMail::HtmlStatusBar::fgColor() const {
114 TDEConfigGroup conf( config(), "Reader" );
117 return conf.readColorEntry( "ColorbarForegroundHTML", &TQt::white );
119 return conf.readColorEntry( "ColorbarForegroundPlain", &TQt::black );
126 TQColor KMail::HtmlStatusBar::bgColor() const {
127 TDEConfigGroup conf( config(), "Reader" );
131 return conf.readColorEntry( "ColorbarBackgroundHTML", &TQt::black );
133 return conf.readColorEntry( "ColorbarBackgroundPlain", &TQt::lightGray );
140 #include "htmlstatusbar.moc"
void setNeutralMode() Switch to "neutral" mode (currently == normal mode).
void setHtmlMode() Switch to "html mode".
void setNormalMode() Switch to "normal mode".
void setMode(Mode m) Switch to mode m.
|