diff options
Diffstat (limited to 'k9author/k9menubutton.h')
-rw-r--r-- | k9author/k9menubutton.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/k9author/k9menubutton.h b/k9author/k9menubutton.h index 135340e..06b58c2 100644 --- a/k9author/k9menubutton.h +++ b/k9author/k9menubutton.h @@ -12,18 +12,18 @@ #ifndef K9MENUBUTTON_H #define K9MENUBUTTON_H -#include <qobject.h> -#include <qpixmap.h> -#include <qimage.h> -#include <qcanvas.h> +#include <tqobject.h> +#include <tqpixmap.h> +#include <tqimage.h> +#include <tqcanvas.h> /** @author Jean-Michel PETIT <k9copy@free.fr> */ class k9MenuButton; -class k9CanvasSprite : public QCanvasSprite { +class k9CanvasSprite : public TQCanvasSprite { public: - k9CanvasSprite (QCanvasPixmapArray *a,QCanvas *canvas,k9MenuButton *button); + k9CanvasSprite (TQCanvasPixmapArray *a,TQCanvas *canvas,k9MenuButton *button); virtual int rtti() const { return 1000; } @@ -36,12 +36,13 @@ private: }; -class k9MenuButton : public QObject { +class k9MenuButton : public TQObject { Q_OBJECT + TQ_OBJECT public: enum eTextPosition {BOTTOM=1,RIGHT=2}; - k9MenuButton(QCanvas *parent = 0, const char *name = 0); + k9MenuButton(TQCanvas *tqparent = 0, const char *name = 0); ~k9MenuButton(); void setWidth(int _value,bool _reload=true); @@ -50,12 +51,12 @@ public: int getHeight(); void setTop(int _value,bool _reload=true); void setLeft(int _value,bool _reload=true); - void setFont(QFont _font); - QFont getFont(); - void setColor(QColor _color); - QColor getColor(); - void setText(QString _text); - QString getText(); + void setFont(TQFont _font); + TQFont getFont(); + void setColor(TQColor _color); + TQColor getColor(); + void setText(TQString _text); + TQString getText(); void select(bool); int getTop(); int getLeft(); @@ -63,16 +64,16 @@ public: void moveBy(int x,int y,bool _reload=true); void update(); public slots: - void setImage(const QImage &_image); - void setImage(const QString &_fileName); + void setImage(const TQImage &_image); + void setImage(const TQString &_fileName); void setTextPosition(const eTextPosition& _value); eTextPosition getTextPosition() const; - QImage getImage() const; + TQImage getImage() const; - void setScript(const QString& _value); - QString getScript() const; + void setScript(const TQString& _value); + TQString getScript() const; void setAngle(int _value); int getAngle() const; @@ -87,18 +88,18 @@ public slots: private: - QCanvas *m_canvas; - QCanvasPixmapArray m_pixmapArray; - QCanvasPixmap *m_pixmap; + TQCanvas *m_canvas; + TQCanvasPixmapArray m_pixmapArray; + TQCanvasPixmap *m_pixmap; k9CanvasSprite *m_sprite; int m_num; - QCanvasText *m_text; - QImage m_image; + TQCanvasText *m_text; + TQImage m_image; int m_width; int m_height; int m_angle; eTextPosition m_textPosition; - QString m_script; + TQString m_script; void loadImage(); signals: void sigsetTop(int); @@ -106,10 +107,10 @@ signals: void sigsetWidth(int); void sigsetHeight(int); - void sigsetFont(const QFont &); - void sigsetColor(const QColor &); - void sigsetImage(k9MenuButton *,const QImage &); - void sigsetText(const QString &); + void sigsetFont(const TQFont &); + void sigsetColor(const TQColor &); + void sigsetImage(k9MenuButton *,const TQImage &); + void sigsetText(const TQString &); void sigsetTextPosition(int); }; |