summaryrefslogtreecommitdiffstats
path: root/client/buttonimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/buttonimage.h')
-rw-r--r--client/buttonimage.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/client/buttonimage.h b/client/buttonimage.h
index 32284f6..79026c3 100644
--- a/client/buttonimage.h
+++ b/client/buttonimage.h
@@ -23,7 +23,7 @@
#ifndef _BUTTON_IMAGE_INCLUDED_
#define _BUTTON_IMAGE_INCLUDED_
-#include <qimage.h>
+#include <tqimage.h>
#include "crystalclient.h"
#define DEFAULT_IMAGE_SIZE 14
@@ -32,35 +32,35 @@
class ButtonImage
{
public:
- QImage *normal,*hovered,*pressed;
+ TQImage *normal,*hovered,*pressed;
int image_width,image_height;
int hSpace,vSpace;
int drawMode;
- QColor normal_color,hovered_color,pressed_color;
+ TQColor normal_color,hovered_color,pressed_color;
- QImage *animated;
- QRgb *normal_data,*hovered_data,*animated_data,*pressed_data;
- QRgb *org_normal_data,*org_hovered_data;
+ TQImage *animated;
+ TQRgb *normal_data,*hovered_data,*animated_data,*pressed_data;
+ TQRgb *org_normal_data,*org_hovered_data;
- ButtonImage(const QRgb *d_normal=NULL,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE);
+ ButtonImage(const TQRgb *d_normal=NULL,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE);
virtual ~ButtonImage();
- void SetNormal(const QRgb *d_normal,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE);
- void SetHovered(const QRgb *d_hovered=NULL);
- void SetPressed(const QRgb *d_pressed=NULL);
+ void SetNormal(const TQRgb *d_normal,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE);
+ void SetHovered(const TQRgb *d_hovered=NULL);
+ void SetPressed(const TQRgb *d_pressed=NULL);
void reset();
void finish();
bool initialized();
void setSpace(int hS,int vS) { hSpace=hS; vSpace=vS; }
void setDrawMode(int dm) { drawMode=dm; }
- void setColors(QColor n,QColor h,QColor p) { normal_color=n; hovered_color=h; pressed_color=p; }
+ void setColors(TQColor n,TQColor h,TQColor p) { normal_color=n; hovered_color=h; pressed_color=p; }
- QImage* getAnimated(float anim);
+ TQImage* getAnimated(float anim);
private:
- QImage CreateImage(QRgb *data,QColor color);
- void tint(QRgb *data,QColor color);
+ TQImage CreateImage(TQRgb *data,TQColor color);
+ void tint(TQRgb *data,TQColor color);
};
#endif