• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
richtextlabel.h
1 /***************************************************************************
2  * Copyright (C) 2003 by Wilfried Huss *
3  * Wilfried.Huss@gmx.at *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #ifndef RICHTEXTLABEL_H
12 #define RICHTEXTLABEL_H
13 
14 #include "meter.h"
15 #include <tqstring.h>
16 #include <tqsimplerichtext.h>
17 #include <tqpainter.h>
18 #include <tqfont.h>
19 #include <tqfontmetrics.h>
20 #include <tqrect.h>
21 #include <tqsize.h>
22 #include "karamba.h"
23 
24 class RichTextLabel : public Meter
25 {
26  TQ_OBJECT
27 
28  public:
29  RichTextLabel(karamba*);
30  RichTextLabel(karamba* k, int x, int y, int w, int h);
31  ~RichTextLabel();
32 
33  void setText(TQString text, bool linkUnderline = false);
34  void setValue(TQString text);
35  void setValue(long v);
36  TQString getStringValue() { return source; };
37 
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;
44  void setTextProps( TextField* t );
45  void setColorGroup(const TQColorGroup &colorg);
46  const TQColorGroup &getColorGroup() const;
47  void setWidth(int width);
48 
49  virtual bool insideActiveArea(int, int);
50 
51  virtual bool click(TQMouseEvent*);
52  virtual void mUpdate(TQPainter*);
53 
54  TQString anchorAt(int, int);
55 
56  private:
57  TQSimpleRichText* text;
58  TQString source;
59  TQFont font;
60  TQColorGroup colorGrp;
61  bool underlineLinks;
62  TQSize originalSize;
63 };
64 
65 #endif
TextField
Ralph M.
Definition: textfield.h:21

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.