summaryrefslogtreecommitdiffstats
path: root/ksplashml/themeengine/default
diff options
context:
space:
mode:
Diffstat (limited to 'ksplashml/themeengine/default')
-rw-r--r--ksplashml/themeengine/default/CMakeLists.txt45
-rw-r--r--ksplashml/themeengine/default/Makefile.am17
-rw-r--r--ksplashml/themeengine/default/ksplashdefault.desktop97
-rw-r--r--ksplashml/themeengine/default/main.cpp17
-rw-r--r--ksplashml/themeengine/default/themelegacy.cpp319
-rw-r--r--ksplashml/themeengine/default/themelegacy.h107
6 files changed, 602 insertions, 0 deletions
diff --git a/ksplashml/themeengine/default/CMakeLists.txt b/ksplashml/themeengine/default/CMakeLists.txt
new file mode 100644
index 000000000..ba3866e35
--- /dev/null
+++ b/ksplashml/themeengine/default/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ #${CMAKE_CURRENT_SOURCE_DIR}
+ #${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/ksplashml/themeengine
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES ksplashdefault.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### ksplashdefault (module) ###################
+
+tde_add_kpart( ksplashdefault AUTOMOC
+ SOURCES main.cpp
+ LINK themedefault-static ksplashthemes-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### themedefault (static) #####################
+
+tde_add_library( themedefault STATIC_PIC AUTOMOC
+ SOURCES themelegacy.cpp
+ LINK ksplashthemes-shared
+)
diff --git a/ksplashml/themeengine/default/Makefile.am b/ksplashml/themeengine/default/Makefile.am
new file mode 100644
index 000000000..b117cbb29
--- /dev/null
+++ b/ksplashml/themeengine/default/Makefile.am
@@ -0,0 +1,17 @@
+
+INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. $(all_includes)
+
+noinst_LTLIBRARIES = libthemedefault.la
+libthemedefault_la_SOURCES = themelegacy.cpp
+libthemedefault_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
+libthemedefault_la_LIBADD = $(LIB_TDEUI) ../libksplashthemes.la
+
+kde_module_LTLIBRARIES = ksplashdefault.la
+
+ksplashdefault_la_SOURCES = main.cpp
+ksplashdefault_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(KDE_PLUGIN) -module
+ksplashdefault_la_LIBADD = $(LIB_TDEUI) ../libksplashthemes.la libthemedefault.la
+METASOURCES = AUTO
+
+servicesdir = $(kde_servicesdir)
+services_DATA = ksplashdefault.desktop
diff --git a/ksplashml/themeengine/default/ksplashdefault.desktop b/ksplashml/themeengine/default/ksplashdefault.desktop
new file mode 100644
index 000000000..2f4f3d236
--- /dev/null
+++ b/ksplashml/themeengine/default/ksplashdefault.desktop
@@ -0,0 +1,97 @@
+[Desktop Entry]
+Type=Service
+Comment=KSplash Plugin
+Comment[af]=KSplash Inprop module
+Comment[ar]=ملحق للشاشة الافتتاحية
+Comment[az]=KSplash Əlavəsi
+Comment[be]=Утулка KSplash
+Comment[bg]=Приставка KSplash
+Comment[bn]=কে-স্প্ল্যাশ প্লাগ-ইন
+Comment[br]=Lugent KSplash
+Comment[bs]=KSplash dodatak
+Comment[ca]=Connector per a KSplash
+Comment[cs]=Modul aplikaci KSplash
+Comment[csb]=Plugins KSplash
+Comment[cy]=Ategyn KCroeso
+Comment[da]=KSplash-plugin
+Comment[de]=KSplash-Plugin
+Comment[el]=Πρόσθετο KSplash
+Comment[eo]=Ksalutŝilda kromaĵo
+Comment[es]=Complemento KSplash
+Comment[et]=KSplashi plugin
+Comment[eu]=KSplash plugina
+Comment[fa]=وصلۀ KSplash
+Comment[fi]=KSplash-liitännäinen
+Comment[fr]=Modules de KSplash
+Comment[fy]=KSplash-plugin
+Comment[ga]=Breiseán KSplash
+Comment[gl]=Plugin de KSplash
+Comment[he]=תוסף KSplash
+Comment[hi]=के-स्प्लैश प्लगइन
+Comment[hr]=KSplash dodatak
+Comment[hu]=KSplash bővítőmodul
+Comment[is]=KSplash íforrit
+Comment[it]=Plugin KSplash
+Comment[ja]=KSplash プラグイン
+Comment[ka]=KSplash პლაგინი
+Comment[kk]=KSplash модулі
+Comment[km]=កម្មវិធី​ជំនួយ​ខាង​ក្នុង​របស់ KSplash
+Comment[lt]=KSplash įskiepis
+Comment[lv]=KSplash spraudnis
+Comment[mk]=Приклучок за KSplash
+Comment[ms]=Plugin KSplash
+Comment[mt]=Plugin ta' KSplash
+Comment[nb]=Programtillegg Ksplash
+Comment[ne]=के स्प्लयास प्लगइन
+Comment[nl]=KSplash-plugin
+Comment[nn]=KSplash-programtillegg
+Comment[pa]=ਕੇ-ਸਪਲੇਸ ਪਲੱਗਇਨ
+Comment[pl]=Wtyczka KSplash
+Comment[pt]='Plugin' do KSplash
+Comment[pt_BR]=Plug-in do KSplash
+Comment[ro]=Modul KSplash
+Comment[ru]=Модуль KSplash
+Comment[rw]=Icomeka rya K-Gukwiza
+Comment[se]=KSplash-lassemoduvla
+Comment[sk]=Modul KSplash
+Comment[sl]=Vstavek KSplash
+Comment[sr]=KSplash прикључак
+Comment[sr@Latn]=KSplash priključak
+Comment[sv]=Insticksprogram för startskärm
+Comment[ta]=Kஸ்ப்ளாஷ் செருகு பொருள்
+Comment[tg]=Мутассалкунандаи KSplash
+Comment[th]=ปลั๊กอิน KSplash
+Comment[tr]=KSplash Eklentisi
+Comment[tt]=KSplash atlı Östämä
+Comment[uk]=Втулок KSplash
+Comment[uz]=KSplash plagini
+Comment[uz@cyrillic]=KSplash плагини
+Comment[vi]=Trình bổ sung Chào mừng TDE
+Comment[wa]=Tchôke-divins KSplash (waitroûle d' enondaedje)
+Comment[zh_CN]=KSplash 插件
+Comment[zh_TW]=KSplash 外掛程式
+Name=KSplashLegacy
+Name[af]=KSplash Verouders
+Name[be]=Старая тэма
+Name[ca]=KSplash heretat
+Name[cs]=Staré
+Name[cy]=KCroesoEtifeddiaeth
+Name[de]=KSplash mit älterem Programm
+Name[eo]=Ksalutŝildotestamento
+Name[et]=KSplahs Legacy
+Name[hi]=के-स्प्लैश-लीजेसी
+Name[it]=KSplashVecchio
+Name[ne]=के स्प्लयास अवस्था
+Name[pa]=ਕੇਸਪਲੇਸਲੀਜੈਂਸੀ
+Name[pt_BR]=Herança do KSplash
+Name[rw]=K-GukwizaUmurage
+Name[sv]=Klassisk startskärm
+Name[ta]=Kஸ்ப்ளாஷ் Legacy
+Name[tg]=МеросиKSplash
+Name[vi]=Chào mừng TDE Gia tài
+Name[wa]=KSplashTayons
+ServiceTypes=KSplash/Plugin
+X-TDE-Library=ksplashdefault
+X-KSplash-Default=true
+X-KSplash-PluginName=Default
+X-KSplash-ObjectName=ThemeLegacy
diff --git a/ksplashml/themeengine/default/main.cpp b/ksplashml/themeengine/default/main.cpp
new file mode 100644
index 000000000..e1382dd37
--- /dev/null
+++ b/ksplashml/themeengine/default/main.cpp
@@ -0,0 +1,17 @@
+/***************************************************************************
+ * Copyright Brian Ledbetter 2001-2003 <[email protected]> *
+ * Copyright Ravikiran Rajagopal 2003 *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License (version 2) as *
+ * published by the Free Software Foundation. (The original KSplash/ML *
+ * codebase (upto version 0.95.3) is BSD-licensed.) *
+ * *
+ ***************************************************************************/
+
+#include <kgenericfactory.h>
+
+#include "themelegacy.h"
+
+K_EXPORT_COMPONENT_FACTORY( ksplashdefault, KGenericFactory<ThemeDefault>( "ksplash" ) )
diff --git a/ksplashml/themeengine/default/themelegacy.cpp b/ksplashml/themeengine/default/themelegacy.cpp
new file mode 100644
index 000000000..0e1242120
--- /dev/null
+++ b/ksplashml/themeengine/default/themelegacy.cpp
@@ -0,0 +1,319 @@
+/***************************************************************************
+ * Copyright Brian Ledbetter 2001-2003 <[email protected]> *
+ * Copyright Ravikiran Rajagopal 2003 <[email protected]> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License (version 2) as *
+ * published by the Free Software Foundation. (The original KSplash/ML *
+ * codebase (upto version 0.95.3) is BSD-licensed.) *
+ * *
+ ***************************************************************************/
+
+#include <tdeapplication.h>
+#include <tdeconfig.h>
+#include <kdebug.h>
+#include <kgenericfactory.h>
+#include <tdeglobalsettings.h>
+#include <tdelocale.h>
+#include <kstandarddirs.h>
+#include <kprogress.h>
+
+#include <tqcheckbox.h>
+#include <tqdesktopwidget.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
+#include <tqvaluelist.h>
+
+#include "objkstheme.h"
+#include "themeengine.h"
+#include "themelegacy.h"
+#include "themelegacy.moc"
+
+const int MAX_STATES=8;
+
+DefaultConfig::DefaultConfig( TQWidget *parent, TDEConfig *config )
+ :ThemeEngineConfig( parent, config )
+{
+ mConfig->setGroup( TQString("KSplash Theme: Default") );
+ TQVBox *hbox = new TQVBox( this );
+ mFlash = new TQCheckBox( i18n("Icons flash while they are starting"), hbox );
+ mFlash->setChecked( mConfig->readBoolEntry("Icons Flashing",true) );
+ mAlwaysShow = new TQCheckBox( i18n("Always show progress bar"), hbox );
+ mAlwaysShow->setChecked( mConfig->readBoolEntry("Always Show Progress",true) );
+}
+
+void DefaultConfig::save()
+{
+ kdDebug() << "DefaultConfig::save()" << endl;
+ mConfig->setGroup( TQString("KSplash Theme: Default") );
+ mConfig->writeEntry( "Icons Flashing", mFlash->isChecked() );
+ mConfig->writeEntry( "Always Show Progress", mAlwaysShow->isChecked() );
+ mConfig->sync();
+}
+
+#define BIDI 0
+
+ThemeDefault::ThemeDefault( TQWidget *parent, const char *name, const TQStringList &args )
+ :ThemeEngine( parent, name, args )
+{
+
+ mActivePixmap = mInactivePixmap = 0L;
+ mState = 0;
+ for (int i=0; i<MAX_ICONS; ++i)
+ mIconOffsets[i]=0;
+
+ _readSettings();
+ _initUi();
+
+ if( mIconsFlashing )
+ {
+ mFlashTimer = new TQTimer( this );
+ connect( mFlashTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(flash()) );
+ mFlashPixmap1 = new TQPixmap();
+ mFlashPixmap2 = new TQPixmap();
+
+ }
+ else
+ {
+ mFlashTimer = 0L;
+ mFlashPixmap1 = 0L;
+ mFlashPixmap2 = 0L;
+ }
+}
+
+ThemeDefault::~ThemeDefault()
+{
+ delete mFlashPixmap1;
+ delete mFlashPixmap2;
+}
+
+void ThemeDefault::_initUi()
+{
+ TQString resource_prefix;
+
+ TQVBox *vbox = new TQVBox( this );
+ vbox->setBackgroundMode(NoBackground);
+
+
+ TQString activePix, inactivePix;
+#if BIDI
+ if ( TQApplication::reverseLayout() )
+ {
+ activePix = _findPicture(TQString("splash_active_bar_bidi.png"));
+ inactivePix = _findPicture(TQString("splash_inactive_bar_bidi.png"));
+ }
+ else
+#endif
+ {
+ activePix = _findPicture(TQString("splash_active_bar.png"));
+ inactivePix = _findPicture(TQString("splash_inactive_bar.png"));
+ }
+ kdDebug() << "Inactive pixmap: " << inactivePix << endl;
+ kdDebug() << "Active pixmap: " << activePix << endl;
+
+ mActivePixmap = new TQPixmap( activePix );
+ mInactivePixmap = new TQPixmap( inactivePix );
+
+ if (mActivePixmap->isNull())
+ {
+ mActivePixmap->resize(200,100);
+ mActivePixmap->fill(Qt::blue);
+ }
+ if (mInactivePixmap->isNull())
+ {
+ mInactivePixmap->resize(200,100);
+ mInactivePixmap->fill(Qt::black);
+ }
+
+ TQPixmap tlimage( _findPicture(TQString("splash_top.png")) );
+ if (tlimage.isNull())
+ {
+ tlimage.resize(200,100);
+ tlimage.fill(Qt::blue);
+ }
+ TQLabel *top_label = new TQLabel( vbox );
+ top_label->setPixmap( tlimage );
+ top_label->setFixedSize( tlimage.width(), tlimage.height() );
+ top_label->setBackgroundMode(NoBackground);
+
+ mBarLabel = new TQLabel( vbox );
+ mBarLabel->setPixmap(*mInactivePixmap);
+ mBarLabel->setBackgroundMode(NoBackground);
+
+ TQPixmap blimage( _findPicture(TQString("splash_bottom.png")) );
+ if (blimage.isNull())
+ {
+ blimage.resize(200,100);
+ blimage.fill(Qt::black);
+ }
+ TQLabel *bottom_label = new TQLabel( vbox );
+ bottom_label->setPaletteBackgroundPixmap( blimage );
+
+
+ mLabel = new TQLabel( bottom_label );
+ mLabel->setBackgroundOrigin( TQWidget::ParentOrigin );
+ mLabel->setPaletteForegroundColor( mLabelForeground );
+ mLabel->setPaletteBackgroundPixmap( blimage );
+ TQFont f(mLabel->font());
+ f.setBold(TRUE);
+ mLabel->setFont(f);
+
+ mProgressBar = new KProgress( mLabel );
+ int h, s, v;
+ mLabelForeground.getHsv( &h, &s, &v );
+ mProgressBar->setPalette( TQPalette( v > 128 ? black : white ));
+ mProgressBar->setBackgroundOrigin( TQWidget::ParentOrigin );
+ mProgressBar->setPaletteBackgroundPixmap( blimage );
+
+ bottom_label->setFixedWidth( TQMAX(blimage.width(),tlimage.width()) );
+ bottom_label->setFixedHeight( mLabel->sizeHint().height()+4 );
+
+ // 3 pixels of whitespace between the label and the progressbar.
+ mLabel->resize( bottom_label->width(), bottom_label->height() );
+
+ mProgressBar->setFixedSize( 120, mLabel->height() );
+
+ if (TQApplication::reverseLayout()){
+ mProgressBar->move( 2, 0 );
+// mLabel->move( mProgressBar->width() + 4, 0);
+ }
+ else{
+ mProgressBar->move( bottom_label->width() - mProgressBar->width() - 4, 0);
+ mLabel->move( 2, 0 );
+ }
+
+ mProgressBar->hide();
+
+ setFixedWidth( mInactivePixmap->width() );
+ setFixedHeight( mInactivePixmap->height() +
+ top_label->height() + bottom_label->height() );
+
+ const TQRect rect = kapp->desktop()->screenGeometry( mTheme->xineramaScreen() );
+ // TDEGlobalSettings::splashScreenDesktopGeometry(); cannot be used here.
+ // kdDebug() << "ThemeDefault::_initUi" << rect << endl;
+
+ move( rect.x() + (rect.width() - size().width())/2,
+ rect.y() + (rect.height() - size().height())/2 );
+}
+
+// Attempt to find overrides elsewhere?
+void ThemeDefault::_readSettings()
+{
+ if (!mTheme)
+ return;
+
+ TDEConfig *cfg = mTheme->themeConfig();
+ if (!cfg)
+ return;
+
+ cfg->setGroup( TQString("KSplash Theme: %1").arg(mTheme->theme()) );
+
+ mIconsFlashing = cfg->readBoolEntry( "Icons Flashing", true );
+ TQColor df(Qt::white);
+ mLabelForeground = cfg->readColorEntry( "Label Foreground", &df );
+ TQValueList<int> io_list=cfg->readIntListEntry("Icon Offsets");
+ if (io_list.size() == MAX_ICONS)
+ {
+ TQValueList<int>::iterator io_it;
+ int i=0;
+ for (io_it = io_list.begin(); io_it != io_list.end(); ++io_it, ++i)
+ mIconOffsets[i]=*io_it;
+ }
+}
+
+/*
+ * ThemeDefault::slotUpdateState(): IF in Default mode, THEN adjust the bar
+ * pixmap label. Whee, phun!
+ *
+ * A similar method exists in the old KSplash.
+ */
+void ThemeDefault::slotUpdateState()
+{
+ if (mState >= MAX_STATES)
+ mState = MAX_STATES-1;
+
+ if( mIconsFlashing )
+ {
+
+ *mFlashPixmap1 = updateBarPixmap( mState );
+ *mFlashPixmap2 = updateBarPixmap( mState+1 );
+ mBarLabel->setPixmap(*mFlashPixmap2);
+ mFlashTimer->stop();
+
+ if( mState < MAX_STATES )
+ mFlashTimer->start(400);
+ }
+ else
+ mBarLabel->setPixmap( updateBarPixmap( mState ) );
+
+ mState++;
+}
+
+/*
+ * ThemeDefault::updateBarPixmap(): IF in Default mode, THEN adjust the
+ * bar pixmap to reflect the current state. WARNING! KSplash Default
+ * does NOT support our "Restoring Session..." state. We will need
+ * to reflect that somehow.
+ */
+TQPixmap ThemeDefault::updateBarPixmap( int state )
+{
+ int offs;
+
+ TQPixmap x;
+ if( !mActivePixmap ) return( x );
+#if BIDI
+ if( TQApplication::reverseLayout() )
+ {
+ if ( state > 7 )
+ return ( x );
+ }
+#endif
+
+ offs = state*58;
+ if (state>=0 && state<MAX_ICONS)
+ offs += mIconOffsets[state];
+
+ TQPixmap tmp(*mActivePixmap);
+ TQPainter p(&tmp);
+#if BIDI
+ if ( TQApplication::reverseLayout() )
+ p.drawPixmap(0, 0, *mInactivePixmap, 0, 0, tmp.width()-offs );
+ else
+#endif
+ p.drawPixmap(offs, 0, *mInactivePixmap, offs, 0);
+ return tmp ;
+}
+
+void ThemeDefault::flash()
+{
+ if( !mIconsFlashing )
+ return;
+ TQPixmap *swap = mFlashPixmap1;
+ mFlashPixmap1 = mFlashPixmap2;
+ mFlashPixmap2 = swap;
+ mBarLabel->setPixmap(*mFlashPixmap2);
+}
+
+TQString ThemeDefault::_findPicture( const TQString &pic )
+{
+ // Don't use ObjKsTheme::locateThemeData here for compatibility reasons.
+ TQString f = pic;
+ if (mTheme->loColor())
+ f = TQString("locolor/")+f;
+ //kdDebug() << "Searching for " << f << endl;
+ //kdDebug() << "Theme directory: " << mTheme->themeDir() << endl;
+ //kdDebug() << "Theme name: " << mTheme->theme() << endl;
+ TQString p = TQString::null;
+ if ((p = locate("appdata",mTheme->themeDir()+f)).isEmpty())
+ if ((p = locate("appdata",mTheme->themeDir()+"pics/"+f)).isEmpty())
+ if ((p = locate("appdata", TQString("pics/")+mTheme->theme()+"/"+f)).isEmpty())
+ if ((p = locate("appdata",f)).isEmpty())
+ if ((p = locate("appdata",TQString("pics/")+f)).isEmpty())
+ if ((p = locate("data",TQString("pics/")+f)).isEmpty()) {
+ ; // No more places to search
+ }
+ return p;
+}
diff --git a/ksplashml/themeengine/default/themelegacy.h b/ksplashml/themeengine/default/themelegacy.h
new file mode 100644
index 000000000..1f56d05b0
--- /dev/null
+++ b/ksplashml/themeengine/default/themelegacy.h
@@ -0,0 +1,107 @@
+/***************************************************************************
+ * Copyright Brian Ledbetter 2001-2003 <[email protected]> *
+ * Copyright Ravikiran Rajagopal 2003 *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License (version 2) as *
+ * published by the Free Software Foundation. (The original KSplash/ML *
+ * codebase (upto version 0.95.3) is BSD-licensed.) *
+ * *
+ ***************************************************************************/
+
+#ifndef __THEMELEGACY_H__
+#define __THEMELEGACY_H__
+
+#include <kprogress.h>
+
+#include <tqlabel.h>
+#include <tqwidget.h>
+
+#include "themeengine.h"
+
+static const int MAX_ICONS=7;
+
+class TQPixmap;
+class TQTimer;
+
+class TQCheckBox;
+
+class DefaultConfig: public ThemeEngineConfig
+{
+ Q_OBJECT
+public:
+ DefaultConfig( TQWidget *, TDEConfig * );
+ void save();
+protected:
+ TQCheckBox *mFlash, *mAlwaysShow;
+};
+
+/**
+ * @short Traditional Trinity splash screen.
+ */
+class ObjKsTheme;
+class KDE_EXPORT ThemeDefault : public ThemeEngine
+{
+ Q_OBJECT
+public:
+ ThemeDefault( TQWidget *, const char *, const TQStringList& );
+ virtual ~ThemeDefault();
+
+ inline const DefaultConfig *config( TQWidget *p, TDEConfig *c )
+ {
+ return new DefaultConfig( p, c );
+ };
+
+ static TQStringList names()
+ {
+ TQStringList Names;
+ Names << "Default";
+ Names << "Classic";
+ Names << "Klassic";
+ return( Names );
+ }
+
+public slots:
+ inline void slotSetText( const TQString& s )
+ {
+ if( mLabel )
+ mLabel->setText( s );
+ slotUpdateState();
+ };
+ inline void slotUpdateSteps( int s )
+ {
+ mProgressBar->show();
+ mProgressBar->setTotalSteps( s );
+ }
+ inline void slotUpdateProgress( int i )
+ {
+ mProgressBar->setProgress( i );
+ }
+
+
+private slots:
+ void slotUpdateState();
+ TQPixmap updateBarPixmap( int );
+ void flash();
+
+private:
+ void _initUi();
+ void _readSettings();
+ TQString _findPicture( const TQString &pic );
+
+ // Configurable Options
+ bool mIconsFlashing;
+ TQColor mLabelForeground;
+ int mIconOffsets[MAX_ICONS];
+
+ // Internals.
+ KProgress *mProgressBar;
+ TQLabel *mLabel, *mBarLabel;
+ TQPixmap *mActivePixmap, *mInactivePixmap;
+ int mState;
+ TQTimer *mFlashTimer;
+ TQPixmap *mFlashPixmap1, *mFlashPixmap2;
+};
+
+#endif