summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kaiman/style.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/kaiman/style.h
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/kaiman/style.h')
-rw-r--r--noatun/modules/kaiman/style.h140
1 files changed, 70 insertions, 70 deletions
diff --git a/noatun/modules/kaiman/style.h b/noatun/modules/kaiman/style.h
index 4266bc42..1f2bc788 100644
--- a/noatun/modules/kaiman/style.h
+++ b/noatun/modules/kaiman/style.h
@@ -21,27 +21,27 @@
#ifndef KaimanStyle_H
#define KaimanStyle_H
-#include <qstring.h>
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qbitmap.h>
-#include <qimage.h>
-#include <qevent.h>
-#include <qptrvector.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
+#include <tqbitmap.h>
+#include <tqimage.h>
+#include <tqevent.h>
+#include <tqptrvector.h>
class KaimanStyleElement : public QWidget
{
Q_OBJECT
public:
- KaimanStyleElement(QWidget *parent, const char *name=0);
+ KaimanStyleElement(TQWidget *parent, const char *name=0);
~KaimanStyleElement();
- virtual void loadPixmaps(QString &val_s_filename);
+ virtual void loadPixmaps(TQString &val_s_filename);
- QString element;
- QString filename;
- QPoint upperLeft;
- QSize dimension;
+ TQString element;
+ TQString filename;
+ TQPoint upperLeft;
+ TQSize dimension;
bool options[3];
int digits;
@@ -52,15 +52,15 @@ public:
int pixmapLines;
int pixmapColumns;
- QPtrVector<QPixmap> pixmaps;
+ TQPtrVector<TQPixmap> pixmaps;
public slots:
void setPixmap( int num );
protected:
- void paintEvent(QPaintEvent *qpe);
- void dropEvent( QDropEvent *event );
- void dragEnterEvent( QDragEnterEvent *event );
+ void paintEvent(TQPaintEvent *qpe);
+ void dropEvent( TQDropEvent *event );
+ void dragEnterEvent( TQDragEnterEvent *event );
int pixmapNum;
@@ -73,10 +73,10 @@ class KaimanStyleMasked : public KaimanStyleElement
{
Q_OBJECT
public:
- KaimanStyleMasked(QWidget *parent, const char *name=0)
+ KaimanStyleMasked(TQWidget *parent, const char *name=0)
: KaimanStyleElement( parent, name ) {};
- virtual void loadPixmaps(QString &val_s_filename)
+ virtual void loadPixmaps(TQString &val_s_filename)
{
KaimanStyleElement::loadPixmaps( val_s_filename );
if(pixmaps[0]->mask())
@@ -89,13 +89,13 @@ class KaimanStyleButton : public KaimanStyleMasked
{
Q_OBJECT
public:
- KaimanStyleButton(QWidget *parent, const char *name=0);
+ KaimanStyleButton(TQWidget *parent, const char *name=0);
~KaimanStyleButton();
// Button states.
enum { NormalUp=0, NormalDown, LitUp, LitDown, PrelightUp, PrelightLitUp, StateListEND };
- QPtrVector<int> I_pmIndex;
+ TQPtrVector<int> I_pmIndex;
void setLit(bool);
void setPrelight(bool);
@@ -109,10 +109,10 @@ signals:
void clicked();
protected:
- void mousePressEvent(QMouseEvent *qme);
- void mouseReleaseEvent(QMouseEvent *qme);
- void enterEvent(QEvent * );
- void leaveEvent ( QEvent * );
+ void mousePressEvent(TQMouseEvent *qme);
+ void mouseReleaseEvent(TQMouseEvent *qme);
+ void enterEvent(TQEvent * );
+ void leaveEvent ( TQEvent * );
private:
int i_i_currentState;
@@ -126,7 +126,7 @@ class KaimanStyleSlider : public KaimanStyleMasked
{
Q_OBJECT
public:
- KaimanStyleSlider(int min, int max, QWidget *parent, const char *name=0);
+ KaimanStyleSlider(int min, int max, TQWidget *parent, const char *name=0);
~KaimanStyleSlider();
int value() { return _value; };
@@ -144,12 +144,12 @@ signals:
void newValueDrop( int value );
protected:
- void mouseMoveEvent(QMouseEvent *qme);
- void mousePressEvent(QMouseEvent *qme);
- void mouseReleaseEvent(QMouseEvent *qme);
- void paintEvent(QPaintEvent *qpe);
- void enterEvent(QEvent * );
- void leaveEvent ( QEvent * );
+ void mouseMoveEvent(TQMouseEvent *qme);
+ void mousePressEvent(TQMouseEvent *qme);
+ void mouseReleaseEvent(TQMouseEvent *qme);
+ void paintEvent(TQPaintEvent *qpe);
+ void enterEvent(TQEvent * );
+ void leaveEvent ( TQEvent * );
int pos2value( int x, int y );
@@ -164,18 +164,18 @@ class KaimanStyleBackground : public KaimanStyleMasked
{
Q_OBJECT
public:
- KaimanStyleBackground(QWidget *parent, const char *name=0);
+ KaimanStyleBackground(TQWidget *parent, const char *name=0);
~KaimanStyleBackground();
protected:
- void mousePressEvent(QMouseEvent *qme);
- void mouseReleaseEvent(QMouseEvent *qme);
- void mouseMoveEvent(QMouseEvent *qme);
+ void mousePressEvent(TQMouseEvent *qme);
+ void mouseReleaseEvent(TQMouseEvent *qme);
+ void mouseMoveEvent(TQMouseEvent *qme);
private:
bool i_b_move;
- QPoint i_point_dragStart;
- QPoint i_point_lastPos;
+ TQPoint i_point_dragStart;
+ TQPoint i_point_lastPos;
};
@@ -183,7 +183,7 @@ class KaimanStyleValue : public KaimanStyleMasked
{
Q_OBJECT
public:
- KaimanStyleValue(int min, int max, QWidget *parent, const char *name=0);
+ KaimanStyleValue(int min, int max, TQWidget *parent, const char *name=0);
~KaimanStyleValue();
int value() { return _value; };
@@ -201,7 +201,7 @@ class KaimanStyleState : public KaimanStyleMasked
{
Q_OBJECT
public:
- KaimanStyleState(QWidget *parent, const char *name=0);
+ KaimanStyleState(TQWidget *parent, const char *name=0);
~KaimanStyleState();
int value() { return _value; };
@@ -213,7 +213,7 @@ signals:
void clicked();
protected:
- void mousePressEvent(QMouseEvent *qme);
+ void mousePressEvent(TQMouseEvent *qme);
private:
int _value;
@@ -224,10 +224,10 @@ class KaimanStyleNumber : public KaimanStyleElement
{
Q_OBJECT
public:
- KaimanStyleNumber(QWidget *parent, const char *name=0);
+ KaimanStyleNumber(TQWidget *parent, const char *name=0);
~KaimanStyleNumber();
- virtual void loadPixmaps(QString &val_s_filename);
+ virtual void loadPixmaps(TQString &val_s_filename);
static const bool optionCentered = 1;
@@ -237,7 +237,7 @@ public slots:
void setValue( int value );
protected:
- void paintEvent(QPaintEvent *qpe);
+ void paintEvent(TQPaintEvent *qpe);
private:
int _value;
@@ -248,33 +248,33 @@ class KaimanStyleText : public KaimanStyleElement
{
Q_OBJECT
public:
- KaimanStyleText(QWidget *parent, const char *name=0);
+ KaimanStyleText(TQWidget *parent, const char *name=0);
~KaimanStyleText();
- virtual void loadPixmaps(QString &val_s_filename);
+ virtual void loadPixmaps(TQString &val_s_filename);
static const bool optionExtended;
- QString value() { return _value; };
+ TQString value() { return _value; };
void startAnimation( int delay );
void stopAnimation();
public slots:
- void setValue( QString value );
+ void setValue( TQString value );
protected:
- void paintEvent(QPaintEvent *qpe);
+ void paintEvent(TQPaintEvent *qpe);
protected slots:
void timeout();
private:
- QString _value;
+ TQString _value;
int _pos;
int _direction;
int _delay;
- QTimer *_timer;
+ TQTimer *_timer;
};
@@ -282,7 +282,7 @@ class KaimanStyleAnimation : public KaimanStyleMasked
{
Q_OBJECT
public:
- KaimanStyleAnimation(int delay, QWidget *parent, const char *name=0);
+ KaimanStyleAnimation(int delay, TQWidget *parent, const char *name=0);
~KaimanStyleAnimation();
public slots:
@@ -295,14 +295,14 @@ protected:
private:
int _delay,_frame;
- QTimer *_timer;
+ TQTimer *_timer;
};
class KaimanStyle : public QWidget
{
Q_OBJECT
public:
- KaimanStyle(QWidget *parent, const char *name=0);
+ KaimanStyle(TQWidget *parent, const char *name=0);
~KaimanStyle();
enum { background, mask, play_Button, stop_Button, pause_Button, prev_Button, next_Button, repeat_Button, shuffle_Button, playlist_Button, mixer_Button, exit_Button, Iconify_Button, Config_Button, Alt_Skin_Button, Minute_Number, Second_Number, in_Rate_Number, in_Hz_Number, song_Number, status_Item, cPU_Number, digit_Large, digit_Small_Default, title, volume_Item, volume_Slider, position_Item, position_Slider };
@@ -313,43 +313,43 @@ public:
KaimanStyleElement* find(const char* val_s_elemName);
/// Tries to load the given style and returns success (true) or failure (false)
- bool loadStyle(const QString &styleName, const QString &descFile="skindata" );
- QString skinName() { return i_skinName; };
+ bool loadStyle(const TQString &styleName, const TQString &descFile="skindata" );
+ TQString skinName() { return i_skinName; };
/// Returns the mask
- QBitmap* Mask();
+ TQBitmap* Mask();
- virtual bool eventFilter( QObject *o, QEvent *e );
+ virtual bool eventFilter( TQObject *o, TQEvent *e );
private:
// Parses the "skindata" file and returns success (true) or failure (false)
- int parseStyleFile(QString &l_s_tmpName);
- QString getToken(QString &val_s_string, char val_c_separator);
- void interpretTokens(QStringList& ref_s_tokens);
+ int parseStyleFile(TQString &l_s_tmpName);
+ TQString getToken(TQString &val_s_string, char val_c_separator);
+ void interpretTokens(TQStringList& ref_s_tokens);
bool loadPixmaps();
/// The name of the style, e.g. "k9"
- QString i_s_styleName;
+ TQString i_s_styleName;
/// The base directory, where the style is found. For example
/// "/opt/kde/share/apps/kaiman/Skins/k9/" or "/opt/kde/share/apps/kaiman/Skins/k9.tgz"
- QString i_s_styleBase;
+ TQString i_s_styleBase;
// The mask of the complete style. Used for doing shaped windows
- QBitmap i_bitmap_Mask;
+ TQBitmap i_bitmap_Mask;
/// All style elements are stored here.
- QPtrVector<KaimanStyleElement> I_styleElem;
+ TQPtrVector<KaimanStyleElement> I_styleElem;
// The parent window. In other words: The container that holds all the KaimanStyleElement's
- QWidget* i_qw_parent;
+ TQWidget* i_qw_parent;
- QPtrList<QWidget> i_sliders;
+ TQPtrList<TQWidget> i_sliders;
bool i_eventSemaphore;
- QString i_smallFont;
- QString i_largeFont;
- QString i_skinName;
+ TQString i_smallFont;
+ TQString i_largeFont;
+ TQString i_skinName;
};