diff options
Diffstat (limited to 'kmilo/kmilod')
-rw-r--r-- | kmilo/kmilod/defaultskin.cpp | 34 | ||||
-rw-r--r-- | kmilo/kmilod/defaultskin.h | 16 | ||||
-rw-r--r-- | kmilo/kmilod/displayskin.h | 10 | ||||
-rw-r--r-- | kmilo/kmilod/kmilod.cpp | 20 | ||||
-rw-r--r-- | kmilo/kmilod/kmilod.h | 20 | ||||
-rw-r--r-- | kmilo/kmilod/kmilointerface.h | 16 | ||||
-rw-r--r-- | kmilo/kmilod/monitor.cpp | 8 | ||||
-rw-r--r-- | kmilo/kmilod/monitor.h | 16 |
8 files changed, 70 insertions, 70 deletions
diff --git a/kmilo/kmilod/defaultskin.cpp b/kmilo/kmilod/defaultskin.cpp index a0ef2b0..6667a88 100644 --- a/kmilo/kmilod/defaultskin.cpp +++ b/kmilo/kmilod/defaultskin.cpp @@ -23,11 +23,11 @@ #include "defaultwidget.h" -#include <qprogressbar.h> -#include <qwidget.h> -#include <qwidgetstack.h> -#include <qlabel.h> -#include <qapplication.h> +#include <tqprogressbar.h> +#include <tqwidget.h> +#include <tqwidgetstack.h> +#include <tqlabel.h> +#include <tqapplication.h> #include <kwin.h> #include <netwm.h> @@ -39,10 +39,10 @@ DefaultSkin::DefaultSkin() { - connect(&_timer, SIGNAL(timeout()), this, SLOT(timeout())); + connect(&_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout())); _widget = new DefaultWidget(0, "Screen Indicator", Qt::WX11BypassWM); - _widget->setFocusPolicy(QWidget::NoFocus); + _widget->setFocusPolicy(TQWidget::NoFocus); KWin::setOnAllDesktops(_widget->winId(), true); KWin::setState( _widget->winId(), NET::StaysOnTop | NET::Sticky @@ -65,11 +65,11 @@ void DefaultSkin::reconfigure( KConfig *config ) { config->setGroup("DefaultSkin"); - QFont *defaultFont = new QFont("Sans", 10, QFont::Bold ); - QSize *defaultSize = new QSize( 80, 30 ); - QColor *defaultpaletteForegroundColor = new QColor( 200, 200, 200 ); - QColor *defaultpaletteBackgroundColor = new QColor( 100, 100, 100 ); - QFont *defaultProgressFont = new QFont("Sans", 8, QFont::Bold ); + TQFont *defaultFont = new TQFont("Sans", 10, TQFont::Bold ); + TQSize *defaultSize = new TQSize( 80, 30 ); + TQColor *defaultpaletteForegroundColor = new TQColor( 200, 200, 200 ); + TQColor *defaultpaletteBackgroundColor = new TQColor( 100, 100, 100 ); + TQFont *defaultProgressFont = new TQFont("Sans", 8, TQFont::Bold ); _widget->resize( config->readSizeEntry("Size", defaultSize ) ); _widget->setFont( config->readFontEntry("Font", defaultFont ) ); @@ -98,20 +98,20 @@ void DefaultSkin::clear() { void DefaultSkin::show() { #if KDE_IS_VERSION(3,1,90) - QRect r = KGlobalSettings::splashScreenDesktopGeometry(); + TQRect r = KGlobalSettings::splashScreenDesktopGeometry(); #else - QRect r = QApplication::desktop()->geometry(); + TQRect r = TQApplication::desktop()->geometry(); #endif // _label->resize(_label->minimumSizeHint()); // _widget->resize(_label->minimumSizeHint()); _widget->move(r.center() - - QPoint(_widget->width()/2, _widget->height()/2)); + TQPoint(_widget->width()/2, _widget->height()/2)); _widget->show(); _timer.start(750, true); } -void DefaultSkin::displayText(const QString& text, const QPixmap& customPixmap) { +void DefaultSkin::displayText(const TQString& text, const TQPixmap& customPixmap) { Q_UNUSED(customPixmap) _timer.stop(); _widget->_widgetStack->raiseWidget(0); @@ -120,7 +120,7 @@ void DefaultSkin::displayText(const QString& text, const QPixmap& customPixmap) } -void DefaultSkin::displayProgress(const QString& text, int percent, const QPixmap& customPixmap) { +void DefaultSkin::displayProgress(const TQString& text, int percent, const TQPixmap& customPixmap) { Q_UNUSED(customPixmap) _timer.stop(); _widget->_progressText->setText(text); diff --git a/kmilo/kmilod/defaultskin.h b/kmilo/kmilod/defaultskin.h index 1610152..62bea16 100644 --- a/kmilo/kmilod/defaultskin.h +++ b/kmilo/kmilod/defaultskin.h @@ -23,14 +23,14 @@ #ifndef _DEFAULTSKIN_H_ #define _DEFAULTSKIN_H_ -#include <qstring.h> -#include <qobject.h> -#include <qtimer.h> +#include <tqstring.h> +#include <tqobject.h> +#include <tqtimer.h> #include "displayskin.h" class DefaultWidget; -class DefaultSkin : public QObject, public KMilo::DisplaySkin { +class DefaultSkin : public TQObject, public KMilo::DisplaySkin { Q_OBJECT public: DefaultSkin(); @@ -39,9 +39,9 @@ class DefaultSkin : public QObject, public KMilo::DisplaySkin { virtual void clear(); virtual void reconfigure( KConfig *config ); - virtual void displayText(const QString& text, const QPixmap& customPixmap=QPixmap()); - virtual void displayProgress(const QString& text, - int percent, const QPixmap& customPixmap=QPixmap()); + virtual void displayText(const TQString& text, const TQPixmap& customPixmap=TQPixmap()); + virtual void displayProgress(const TQString& text, + int percent, const TQPixmap& customPixmap=TQPixmap()); private slots: void timeout(); @@ -50,7 +50,7 @@ class DefaultSkin : public QObject, public KMilo::DisplaySkin { void show(); DefaultWidget *_widget; - QTimer _timer; + TQTimer _timer; }; diff --git a/kmilo/kmilod/displayskin.h b/kmilo/kmilod/displayskin.h index 4e74e0c..46bd445 100644 --- a/kmilo/kmilod/displayskin.h +++ b/kmilo/kmilod/displayskin.h @@ -25,8 +25,8 @@ #include <kdemacros.h> -#include <qstring.h> -#include <qpixmap.h> +#include <tqstring.h> +#include <tqpixmap.h> namespace KMilo { @@ -37,9 +37,9 @@ class KDE_EXPORT DisplaySkin { virtual void clear() = 0; - virtual void displayText(const QString& text,const QPixmap& customPixmap=QPixmap()) = 0; - virtual void displayProgress(const QString& text, - int percent, const QPixmap& customPixmap=QPixmap()) = 0; + virtual void displayText(const TQString& text,const TQPixmap& customPixmap=TQPixmap()) = 0; + virtual void displayProgress(const TQString& text, + int percent, const TQPixmap& customPixmap=TQPixmap()) = 0; }; } diff --git a/kmilo/kmilod/kmilod.cpp b/kmilo/kmilod/kmilod.cpp index 98203b1..aa40b6d 100644 --- a/kmilo/kmilod/kmilod.cpp +++ b/kmilo/kmilod/kmilod.cpp @@ -28,7 +28,7 @@ #include "kmilod.h" #include "monitor.h" -#include <qfile.h> +#include <tqfile.h> #include <klocale.h> #include <kdebug.h> @@ -43,13 +43,13 @@ using namespace KMilo; extern "C" { - KDE_EXPORT KDEDModule *create_kmilod(const QCString &name) { + KDE_EXPORT KDEDModule *create_kmilod(const TQCString &name) { return new KMiloD(name); } } -KMiloD::KMiloD(const QCString &name) : KDEDModule(name), _interval(100) +KMiloD::KMiloD(const TQCString &name) : KDEDModule(name), _interval(100) { _monitors.setAutoDelete(true); _miface = new KMiloInterface(this); @@ -80,7 +80,7 @@ KMiloD::KMiloD(const QCString &name) : KDEDModule(name), _interval(100) } // Start the timer - QObject::connect(&_timer, SIGNAL(timeout()), this, SLOT(doTimer())); + TQObject::connect(&_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(doTimer())); if (shouldPoll) { _timer.start(_interval); } @@ -192,21 +192,21 @@ void KMiloD::doTimer() { } -void KMiloD::displayText(const QString& text) { - _display->displayText(text, QPixmap()); +void KMiloD::displayText(const TQString& text) { + _display->displayText(text, TQPixmap()); } -void KMiloD::displayText(const QString& text, const QPixmap& customPixmap) { +void KMiloD::displayText(const TQString& text, const TQPixmap& customPixmap) { _display->displayText(text, customPixmap); } -void KMiloD::displayProgress(const QString& text, int progress) { - _display->displayProgress(text, progress, QPixmap()); +void KMiloD::displayProgress(const TQString& text, int progress) { + _display->displayProgress(text, progress, TQPixmap()); } -void KMiloD::displayProgress(const QString& text, int progress, const QPixmap& customPixmap ) { +void KMiloD::displayProgress(const TQString& text, int progress, const TQPixmap& customPixmap ) { _display->displayProgress(text, progress, customPixmap); } diff --git a/kmilo/kmilod/kmilod.h b/kmilo/kmilod/kmilod.h index d97027b..6fdfb52 100644 --- a/kmilo/kmilod/kmilod.h +++ b/kmilo/kmilod/kmilod.h @@ -24,9 +24,9 @@ #define _KMILOD_H_ #include <kdedmodule.h> -#include <qstring.h> -#include <qtimer.h> -#include <qptrlist.h> +#include <tqstring.h> +#include <tqtimer.h> +#include <tqptrlist.h> #include "monitor.h" #include "displayskin.h" @@ -38,7 +38,7 @@ class KMiloD : public KDEDModule { Q_OBJECT K_DCOP public: - KMiloD(const QCString &name); + KMiloD(const TQCString &name); virtual ~KMiloD(); k_dcop: @@ -49,10 +49,10 @@ class KMiloD : public KDEDModule { virtual int pollMilliSeconds() const; virtual bool setPollMilliSeconds(int ms); - virtual void displayText(const QString& text); - virtual void displayText(const QString& text, const QPixmap& customPixmap); - virtual void displayProgress(const QString& text, int progress, const QPixmap& customPixmap); - virtual void displayProgress(const QString& text, int progress); + virtual void displayText(const TQString& text); + virtual void displayText(const TQString& text, const TQPixmap& customPixmap); + virtual void displayProgress(const TQString& text, int progress, const TQPixmap& customPixmap); + virtual void displayProgress(const TQString& text, int progress); virtual void reconfigure(); @@ -60,9 +60,9 @@ class KMiloD : public KDEDModule { virtual void doTimer(); private: - QTimer _timer; + TQTimer _timer; int _interval; - QPtrList<Monitor> _monitors; + TQPtrList<Monitor> _monitors; DisplaySkin *_display; KMiloInterface *_miface; }; diff --git a/kmilo/kmilod/kmilointerface.h b/kmilo/kmilod/kmilointerface.h index d1edbb9..16e1567 100644 --- a/kmilo/kmilod/kmilointerface.h +++ b/kmilo/kmilod/kmilointerface.h @@ -23,28 +23,28 @@ #ifndef _KMILOI_H_ #define _KMILOI_H_ -#include <qobject.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqstring.h> #include "kmilod.h" namespace KMilo { // FIXME: make put the methods into .cpp file when the header is installed. -class KMiloInterface : public QObject { +class KMiloInterface : public TQObject { Q_OBJECT public: - KMiloInterface(KMiloD *p) : QObject() { _p = p; } + KMiloInterface(KMiloD *p) : TQObject() { _p = p; } virtual ~KMiloInterface() {} public slots: int pollMilliSeconds() const { return _p->pollMilliSeconds(); } bool setPollMilliSeconds(int ms) { return _p->setPollMilliSeconds(ms); } - void displayText(const QString& text) { _p->displayText(text); } - void displayText(const QString& text, const QPixmap& customPixmap) { _p->displayText(text, customPixmap); } + void displayText(const TQString& text) { _p->displayText(text); } + void displayText(const TQString& text, const TQPixmap& customPixmap) { _p->displayText(text, customPixmap); } - void displayProgress(const QString& text, int progress, const QPixmap& customPixmap) { _p->displayProgress(text, progress, customPixmap); } - void displayProgress(const QString& text, int progress) { _p->displayProgress(text, progress); } + void displayProgress(const TQString& text, int progress, const TQPixmap& customPixmap) { _p->displayProgress(text, progress, customPixmap); } + void displayProgress(const TQString& text, int progress) { _p->displayProgress(text, progress); } void reconfigure() { _p->reconfigure(); } diff --git a/kmilo/kmilod/monitor.cpp b/kmilo/kmilod/monitor.cpp index f427ce4..84f0e03 100644 --- a/kmilo/kmilod/monitor.cpp +++ b/kmilo/kmilod/monitor.cpp @@ -22,8 +22,8 @@ #include "monitor.h" -KMilo::Monitor::Monitor(QObject *parent, const char *name, const QStringList&) -: QObject(parent, name) { +KMilo::Monitor::Monitor(TQObject *parent, const char *name, const TQStringList&) +: TQObject(parent, name) { _poll = true; } @@ -38,7 +38,7 @@ KMilo::Monitor::DisplayType KMilo::Monitor::poll() { return None; } int KMilo::Monitor::progress() const { return 42; } -QString KMilo::Monitor::message() const { return QString::null; } -QPixmap KMilo::Monitor::customPixmap() const { return QPixmap(); } +TQString KMilo::Monitor::message() const { return TQString::null; } +TQPixmap KMilo::Monitor::customPixmap() const { return TQPixmap(); } bool KMilo::Monitor::init() { return true; } diff --git a/kmilo/kmilod/monitor.h b/kmilo/kmilod/monitor.h index ee1581c..d50045b 100644 --- a/kmilo/kmilod/monitor.h +++ b/kmilo/kmilod/monitor.h @@ -23,10 +23,10 @@ #ifndef _MONITOR_H_ #define _MONITOR_H_ -#include <qstring.h> -#include <qstringlist.h> -#include <qpixmap.h> -#include <qobject.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqpixmap.h> +#include <tqobject.h> #include <kdemacros.h> @@ -35,9 +35,9 @@ class KConfig; namespace KMilo { class KMiloInterface; -class KDE_EXPORT Monitor : public QObject { +class KDE_EXPORT Monitor : public TQObject { public: - Monitor(QObject *parent, const char *name, const QStringList&); + Monitor(TQObject *parent, const char *name, const TQStringList&); virtual ~Monitor(); /** @@ -73,13 +73,13 @@ class KDE_EXPORT Monitor : public QObject { * Message displayed for DisplayType's that are not int * measurable ( DisplayType::Tap for example ) */ - virtual QString message() const; + virtual TQString message() const; /** * Custom pixmap that can be displayed be the themes * when displaying the DisplayType. */ - virtual QPixmap customPixmap() const; + virtual TQPixmap customPixmap() const; bool shouldPoll() const { return _poll; } |