• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

superkaramba

richtextlabel.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Wilfried Huss                                   *
00003  *   Wilfried.Huss@gmx.at                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef RICHTEXTLABEL_H
00012 #define RICHTEXTLABEL_H
00013 
00014 #include "meter.h"
00015 #include <tqstring.h>
00016 #include <tqsimplerichtext.h>
00017 #include <tqpainter.h>
00018 #include <tqfont.h>
00019 #include <tqfontmetrics.h>
00020 #include <tqrect.h>
00021 #include <tqsize.h>
00022 #include "karamba.h"
00023 
00024 class RichTextLabel : public Meter
00025 {
00026     Q_OBJECT
00027   public:
00028     RichTextLabel(karamba*);
00029     RichTextLabel(karamba* k, int x, int y, int w, int h);
00030     ~RichTextLabel();
00031 
00032     void setText(TQString text, bool linkUnderline = false);
00033     void setValue(TQString text);
00034     void setValue(long v);
00035     TQString getStringValue() { return source; };
00036 
00037     void setFont(TQString font);
00038     TQString getFont() const;
00039     void setFontSize(int);
00040     int getFontSize() const;
00041     void setFixedPitch(bool);
00042     bool getFixedPitch() const;
00043     void setTextProps( TextField* t );
00044     void setColorGroup(const TQColorGroup &colorg);
00045     const TQColorGroup &getColorGroup() const;
00046     void setWidth(int width);
00047 
00048     virtual bool insideActiveArea(int, int);
00049 
00050     virtual bool click(TQMouseEvent*);
00051     virtual void mUpdate(TQPainter*);
00052 
00053     TQString anchorAt(int, int);
00054 
00055   private:
00056     TQSimpleRichText* text;
00057     TQString source;
00058     TQFont font;
00059     TQColorGroup colorGrp;
00060     bool underlineLinks;
00061     TQSize originalSize;
00062 };
00063 
00064 #endif

superkaramba

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

@topname@

Skip menu "@topname@"
  • kcalc
  •   knumber
  • superkaramba
Generated for @topname@ by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal