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

superkaramba

TextLabel Class Reference

#include <textlabel.h>

Inheritance diagram for TextLabel:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 19 of file meters/textlabel.h.


Public Types

enum  ScrollType { ScrollNone, ScrollNormal, ScrollBackAndForth, ScrollOnePass }

Public Member Functions

void allowClick (bool enable)
void attachClickArea (const QString &leftMouseButton, const QString &middleMouseButton, const QString &rightMouseButton)
QRectF boundingRect () const
bool clickable ()
QString getAlignment () const
QColor getBGColor () const
bool getFixedPitch () const
QString getFont () const
int getFontSize () const
int getHeight () const
int getShadow () const
QString getStringValue () const
int getTextWidth () const
int getWidth () const
int getX () const
int getY () const
virtual void hide ()
bool mouseEvent (QEvent *e)
void paint (QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *widget)
void setAlignment (const QString &)
void setBGColor (QColor clr)
void setFixedPitch (bool)
void setFont (const QString &)
void setFontSize (int)
void setScroll (const QString &type, const QPoint &speed, int gap, int pause)
void setScroll (ScrollType type, QPoint speed, int gap, int pause)
void setShadow (int)
void setSize (int x, int y, int width, int height)
void setTextProps (TextField *)
void setValue (int)
void setValue (const QString &text)
virtual void show ()
 TextLabel (Karamba *k)
 TextLabel (Karamba *k, int x, int y, int w, int h)
 ~TextLabel ()

Member Enumeration Documentation

enum TextLabel::ScrollType

Enumerator:
ScrollNone 
ScrollNormal 
ScrollBackAndForth 
ScrollOnePass 

Definition at line 23 of file meters/textlabel.h.


Constructor & Destructor Documentation

TextLabel::TextLabel ( Karamba *  k,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 22 of file meters/textlabel.cpp.

TextLabel::TextLabel ( Karamba *  k  ) 

Definition at line 53 of file meters/textlabel.cpp.

TextLabel::~TextLabel (  ) 

Definition at line 69 of file meters/textlabel.cpp.


Member Function Documentation

void TextLabel::allowClick ( bool  enable  ) 

Definition at line 424 of file meters/textlabel.cpp.

void TextLabel::attachClickArea ( const QString &  leftMouseButton,
const QString &  middleMouseButton,
const QString &  rightMouseButton 
)

Definition at line 434 of file meters/textlabel.cpp.

QRectF TextLabel::boundingRect (  )  const [virtual]

Reimplemented from Meter.

Definition at line 445 of file meters/textlabel.cpp.

bool TextLabel::clickable (  ) 

Definition at line 429 of file meters/textlabel.cpp.

QString TextLabel::getAlignment (  )  const

Definition at line 203 of file meters/textlabel.cpp.

QColor TextLabel::getBGColor (  )  const

Definition at line 163 of file meters/textlabel.cpp.

bool TextLabel::getFixedPitch (  )  const

Definition at line 218 of file meters/textlabel.cpp.

QString TextLabel::getFont (  )  const

Definition at line 174 of file meters/textlabel.cpp.

int TextLabel::getFontSize (  )  const

Definition at line 185 of file meters/textlabel.cpp.

int TextLabel::getHeight (  )  const [virtual]

Reimplemented from Meter.

Definition at line 475 of file meters/textlabel.cpp.

int TextLabel::getShadow (  )  const

Definition at line 228 of file meters/textlabel.cpp.

QString TextLabel::getStringValue (  )  const [inline, virtual]

Reimplemented from Meter.

Definition at line 34 of file meters/textlabel.h.

int TextLabel::getTextWidth (  )  const

Definition at line 450 of file meters/textlabel.cpp.

int TextLabel::getWidth (  )  const [virtual]

Reimplemented from Meter.

Definition at line 466 of file meters/textlabel.cpp.

int TextLabel::getX (  )  const [virtual]

Reimplemented from Meter.

Definition at line 456 of file meters/textlabel.cpp.

int TextLabel::getY (  )  const [virtual]

Reimplemented from Meter.

Definition at line 461 of file meters/textlabel.cpp.

void TextLabel::hide (  )  [virtual]

Reimplemented from Meter.

Definition at line 78 of file meters/textlabel.cpp.

bool TextLabel::mouseEvent ( QEvent *  e  ) 

Definition at line 397 of file meters/textlabel.cpp.

void TextLabel::paint ( QPainter *  p,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
) [virtual]

Implements Meter.

Definition at line 348 of file meters/textlabel.cpp.

void TextLabel::setAlignment ( const QString &  align  ) 

Definition at line 190 of file meters/textlabel.cpp.

void TextLabel::setBGColor ( QColor  clr  ) 

Definition at line 158 of file meters/textlabel.cpp.

void TextLabel::setFixedPitch ( bool  fp  ) 

Definition at line 213 of file meters/textlabel.cpp.

void TextLabel::setFont ( const QString &  f  ) 

Definition at line 168 of file meters/textlabel.cpp.

void TextLabel::setFontSize ( int  size  ) 

Definition at line 179 of file meters/textlabel.cpp.

void TextLabel::setScroll ( const QString &  type,
const QPoint &  speed,
int  gap,
int  pause 
)

Definition at line 233 of file meters/textlabel.cpp.

void TextLabel::setScroll ( ScrollType  type,
QPoint  speed,
int  gap,
int  pause 
)

Definition at line 250 of file meters/textlabel.cpp.

void TextLabel::setShadow ( int  s  ) 

Definition at line 223 of file meters/textlabel.cpp.

void TextLabel::setSize ( int  x,
int  y,
int  width,
int  height 
) [virtual]

Reimplemented from Meter.

Definition at line 484 of file meters/textlabel.cpp.

void TextLabel::setTextProps ( TextField *  field  ) 

Definition at line 84 of file meters/textlabel.cpp.

void TextLabel::setValue ( int  v  )  [virtual]

Reimplemented from Meter.

Definition at line 151 of file meters/textlabel.cpp.

void TextLabel::setValue ( const QString &  text  )  [virtual]

Reimplemented from Meter.

Definition at line 144 of file meters/textlabel.cpp.

void TextLabel::show (  )  [virtual]

Reimplemented from Meter.

Definition at line 72 of file meters/textlabel.cpp.


The documentation for this class was generated from the following files:
  • meters/textlabel.h
  • meters/textlabel.cpp

superkaramba

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
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