11 #ifndef RICHTEXTLABEL_H 12 #define RICHTEXTLABEL_H 16 #include <tqsimplerichtext.h> 17 #include <tqpainter.h> 19 #include <tqfontmetrics.h> 24 class RichTextLabel :
public Meter
29 RichTextLabel(karamba*);
30 RichTextLabel(karamba* k,
int x,
int y,
int w,
int h);
33 void setText(TQString text,
bool linkUnderline =
false);
34 void setValue(TQString text);
35 void setValue(
long v);
36 TQString getStringValue() {
return source; };
38 void setFont(TQString font);
39 TQString getFont()
const;
40 void setFontSize(
int);
41 int getFontSize()
const;
42 void setFixedPitch(
bool);
43 bool getFixedPitch()
const;
45 void setColorGroup(
const TQColorGroup &colorg);
46 const TQColorGroup &getColorGroup()
const;
47 void setWidth(
int width);
49 virtual bool insideActiveArea(
int,
int);
51 virtual bool click(TQMouseEvent*);
52 virtual void mUpdate(TQPainter*);
54 TQString anchorAt(
int,
int);
57 TQSimpleRichText* text;
60 TQColorGroup colorGrp;