• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
  • meters
meters/richtextlabel.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2003 by Wilfried Huss <Wilfried.Huss@gmx.at> *
3  * Copyright (C) 2003 Matt Broadstone <mbroadst@gmail.com> *
4  * *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  ***************************************************************************/
11 
12 #ifndef RICHTEXTLABEL_H
13 #define RICHTEXTLABEL_H
14 
15 #include <QFont>
16 #include <QPalette>
17 
18 #include "meter.h"
19 
20 class QTextDocument;
21 class Karamba;
22 class TextField;
23 
24 class RichTextLabel : public Meter
25 {
26  Q_OBJECT
27 public:
28  RichTextLabel(Karamba*);
29  RichTextLabel(Karamba* k, int x, int y, int w, int h);
30  ~RichTextLabel();
31 
32  void setText(const QString &text, bool linkUnderline = false);
33  void setValue(const QString &text);
34  void setValue(int v);
35  QString getStringValue() const
36  {
37  return source;
38  }
39 
40  void setFont(const QString &font);
41  QString getFont() const;
42  void setFontSize(int);
43  int getFontSize() const;
44  void setFixedPitch(bool);
45  bool getFixedPitch() const;
46  void setTextProps(TextField* t);
47  void setColorGroup(const QPalette &colorg);
48  const QPalette& getColorGroup() const;
49  void setWidth(int width);
50 
51  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
52  QWidget *widget = 0);
53 
54  bool mouseEvent(QEvent *event);
55  QString getAnchor(QPointF point);
56 
57 private:
58  QTextDocument* text;
59 
60  QString source;
61  QFont font;
62  QPalette colorGrp;
63  bool underlineLinks;
64  QSize originalSize;
65 
66 };
67 
68 #endif
RichTextLabel::setValue
void setValue(const QString &text)
Definition: meters/richtextlabel.cpp:84
RichTextLabel::getStringValue
QString getStringValue() const
Definition: meters/richtextlabel.h:35
RichTextLabel::mouseEvent
bool mouseEvent(QEvent *event)
Definition: meters/richtextlabel.cpp:166
RichTextLabel::getFixedPitch
bool getFixedPitch() const
Definition: meters/richtextlabel.cpp:125
RichTextLabel::setWidth
void setWidth(int width)
Definition: meters/richtextlabel.cpp:145
RichTextLabel::getFontSize
int getFontSize() const
Definition: meters/richtextlabel.cpp:113
RichTextLabel::setTextProps
void setTextProps(TextField *t)
Definition: meters/richtextlabel.cpp:130
meter.h
QWidget
Karamba
Definition: karamba.h:52
RichTextLabel::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: meters/richtextlabel.cpp:151
RichTextLabel::~RichTextLabel
~RichTextLabel()
Definition: meters/richtextlabel.cpp:46
RichTextLabel::setFontSize
void setFontSize(int)
Definition: meters/richtextlabel.cpp:106
RichTextLabel::setFont
void setFont(const QString &font)
Definition: meters/richtextlabel.cpp:94
RichTextLabel::RichTextLabel
RichTextLabel(Karamba *)
Definition: meters/richtextlabel.cpp:26
RichTextLabel
Definition: meters/richtextlabel.h:24
RichTextLabel::getColorGroup
const QPalette & getColorGroup() const
Definition: meters/richtextlabel.cpp:200
RichTextLabel::setColorGroup
void setColorGroup(const QPalette &colorg)
Definition: meters/richtextlabel.cpp:195
Meter
Definition: meters/meter.h:23
RichTextLabel::getAnchor
QString getAnchor(QPointF point)
Definition: meters/richtextlabel.cpp:189
RichTextLabel::setFixedPitch
void setFixedPitch(bool)
Definition: meters/richtextlabel.cpp:118
RichTextLabel::getFont
QString getFont() const
Definition: meters/richtextlabel.cpp:101
TextField
Ralph M.
Definition: textfield.h:22
RichTextLabel::setText
void setText(const QString &text, bool linkUnderline=false)
Definition: meters/richtextlabel.cpp:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal