superkaramba
TextLabel Class Reference
#include <textlabel.h>

Detailed Description
Definition at line 19 of file meters/textlabel.h.
Public Types | |
| enum | ScrollType { ScrollNone, ScrollNormal, ScrollBackAndForth, ScrollOnePass } |
Public Member Functions | |
| TextLabel (Karamba *k, int x, int y, int w, int h) | |
| TextLabel (Karamba *k) | |
| ~TextLabel () | |
| void | setTextProps (TextField *) |
| void | setValue (const QString &text) |
| void | setValue (int) |
| QString | getStringValue () const |
| void | setFontSize (int) |
| void | setBGColor (QColor clr) |
| void | setFont (const QString &) |
| void | setAlignment (const QString &) |
| void | setFixedPitch (bool) |
| void | setShadow (int) |
| void | paint (QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| virtual void | show () |
| virtual void | hide () |
| int | getFontSize () const |
| QColor | getBGColor () const |
| QString | getFont () const |
| QString | getAlignment () const |
| bool | getFixedPitch () const |
| int | getShadow () const |
| void | setScroll (ScrollType type, QPoint speed, int gap, int pause) |
| void | setScroll (const QString &type, const QPoint &speed, int gap, int pause) |
| void | attachClickArea (const QString &leftMouseButton, const QString &middleMouseButton, const QString &rightMouseButton) |
| bool | mouseEvent (QEvent *e) |
| QRectF | boundingRect () const |
| void | allowClick (bool enable) |
| bool | clickable () |
| int | getTextWidth () const |
| void | setSize (int x, int y, int width, int height) |
| int | getX () const |
| int | getY () const |
| int | getWidth () const |
| int | getHeight () const |
Member Enumeration Documentation
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::setTextProps | ( | TextField * | field | ) |
Definition at line 84 of file meters/textlabel.cpp.
| void TextLabel::setValue | ( | const QString & | text | ) | [virtual] |
| void TextLabel::setValue | ( | int | v | ) | [virtual] |
| QString TextLabel::getStringValue | ( | ) | const [inline, virtual] |
| void TextLabel::setFontSize | ( | int | size | ) |
Definition at line 179 of file meters/textlabel.cpp.
| void TextLabel::setBGColor | ( | QColor | clr | ) |
Definition at line 158 of file meters/textlabel.cpp.
| void TextLabel::setFont | ( | const QString & | f | ) |
Definition at line 168 of file meters/textlabel.cpp.
| void TextLabel::setAlignment | ( | const QString & | align | ) |
Definition at line 190 of file meters/textlabel.cpp.
| void TextLabel::setFixedPitch | ( | bool | fp | ) |
Definition at line 213 of file meters/textlabel.cpp.
| void TextLabel::setShadow | ( | int | s | ) |
Definition at line 223 of file meters/textlabel.cpp.
| void TextLabel::paint | ( | QPainter * | p, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget | |||
| ) | [virtual] |
| void TextLabel::show | ( | ) | [virtual] |
| void TextLabel::hide | ( | ) | [virtual] |
| int TextLabel::getFontSize | ( | ) | const |
Definition at line 185 of file meters/textlabel.cpp.
| QColor TextLabel::getBGColor | ( | ) | const |
Definition at line 163 of file meters/textlabel.cpp.
| QString TextLabel::getFont | ( | ) | const |
Definition at line 174 of file meters/textlabel.cpp.
| QString TextLabel::getAlignment | ( | ) | const |
Definition at line 203 of file meters/textlabel.cpp.
| bool TextLabel::getFixedPitch | ( | ) | const |
Definition at line 218 of file meters/textlabel.cpp.
| int TextLabel::getShadow | ( | ) | const |
Definition at line 228 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.
Definition at line 233 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.
| bool TextLabel::mouseEvent | ( | QEvent * | e | ) |
Definition at line 397 of file meters/textlabel.cpp.
| QRectF TextLabel::boundingRect | ( | ) | const [virtual] |
| void TextLabel::allowClick | ( | bool | enable | ) |
Definition at line 424 of file meters/textlabel.cpp.
| bool TextLabel::clickable | ( | ) |
Definition at line 429 of file meters/textlabel.cpp.
| int TextLabel::getTextWidth | ( | ) | const |
Definition at line 450 of file meters/textlabel.cpp.
| void TextLabel::setSize | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [virtual] |
| int TextLabel::getX | ( | ) | const [virtual] |
| int TextLabel::getY | ( | ) | const [virtual] |
| int TextLabel::getWidth | ( | ) | const [virtual] |
| int TextLabel::getHeight | ( | ) | const [virtual] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference