31 #include <tqpainter.h>
33 #include <tqstringlist.h>
35 #include <kio/netaccess.h>
44 class Effect :
public TQObject
51 Effect(ImageLabel*,
int millisec);
55 virtual KPixmap apply(KPixmap pixmap) = 0;
66 class Intensity :
public Effect
69 Intensity(ImageLabel*,
float r,
int millisec);
71 KPixmap apply(KPixmap pixmap);
79 class ChannelIntensity :
public Effect
82 ChannelIntensity(ImageLabel*,
float r, TQString c,
int millisec);
84 KPixmap apply(KPixmap pixmap);
92 class ToGray :
public Effect
95 ToGray(ImageLabel*,
int millisec);
97 KPixmap apply(KPixmap pixmap);
100 class ImageLabel :
public Meter
107 ImageLabel(karamba* k,
int ix,
int iy,
int iw,
int ih );
108 ImageLabel(karamba* k);
110 void setValue( TQString imagePath );
112 void setValue(
long );
113 void setValue( TQPixmap& );
114 TQString getStringValue() {
return imagePath; };
115 void scale(
int,
int );
116 void smoothScale(
int,
int );
119 void removeImageTransformations();
120 void mUpdate( TQPainter * );
121 void mUpdate( TQPainter *,
int );
123 void rolloverImage(TQMouseEvent *e);
124 void parseImages( TQString fn, TQString fn_roll,
int,
int,
int,
int );
128 void setTooltip(TQString txt);
132 void removeEffects();
133 void intensity(
float ratio,
int millisec);
134 void channelIntensity(
float ratio, TQString channel,
int millisec);
135 void toGray(
int millisec);
136 void setBackground(
int b);
138 void attachClickArea(TQString leftMouseButton, TQString middleMouseButton,
139 TQString rightMouseButton);
141 virtual bool click(TQMouseEvent*);
146 void slotEffectExpired();
147 void slotCopyResult(KIO::Job* job);
153 void applyTransformations(
bool useSmoothScale =
false);
180 TQRect rect_off, rect_on;
193 #endif // IMAGELABEL_H