A label to display a LaTeX-formula-output-like image. More...
#include <klfdisplaylabel.h>


Public Slots | |
| virtual void | setLabelFixedSize (const QSize &size) |
| virtual void | setEnableToolTipPreview (bool enable) |
| virtual void | displayClear () |
| virtual void | display (QImage displayimg, QImage tooltipimage, bool labelenabled=true) |
| virtual void | displayError (bool labelenabled=false) |
| void | setGlowEffect (bool on) |
| void | setGlowEffectColor (const QColor &color) |
| void | setGlowEffectRadius (int r) |
Signals | |
| void | labelDrag () |
Public Member Functions | |
| KLFDisplayLabel (QWidget *parent) | |
| virtual | ~KLFDisplayLabel () |
| virtual QSize | labelFixedSize () const |
| virtual bool | enableToolTipPreview () const |
| virtual QString | bigPreviewText () const |
| bool | glowEffect () const |
| QColor | glowEffectColor () const |
| int | glowEffectRadius () const |
Protected Member Functions | |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
Properties | |
| QSize | labelFixedSize |
| bool | enableToolTipPreview |
| QString | bigPreviewText |
| bool | glowEffect |
| QColor | glowEffectColor |
| int | glowEffectRadius |
A label to display a LaTeX-formula-output-like image.
Definition at line 34 of file klfdisplaylabel.h.
| KLFDisplayLabel::KLFDisplayLabel | ( | QWidget * | parent | ) |
Definition at line 35 of file klfdisplaylabel.cpp.
References QLabel::setAlignment(), QPalette::setColor(), and setLabelFixedSize().
| KLFDisplayLabel::~KLFDisplayLabel | ( | ) | [virtual] |
Definition at line 52 of file klfdisplaylabel.cpp.
| virtual QString KLFDisplayLabel::bigPreviewText | ( | ) | const [inline, virtual] |
Definition at line 52 of file klfdisplaylabel.h.
| void KLFDisplayLabel::display | ( | QImage | displayimg, |
| QImage | tooltipimage, | ||
| bool | labelenabled = true |
||
| ) | [virtual, slot] |
Definition at line 74 of file klfdisplaylabel.cpp.
References QString::arg(), QMessageBox::critical(), QTemporaryFile::fileName(), QTemporaryFile::fileTemplate(), QPixmap::fill(), QPixmap::fromImage(), QSize::height(), QImage::height(), QImage::isNull(), klfDrawGlowedImage(), QTemporaryFile::open(), QImage::save(), QImage::scaled(), QTemporaryFile::setAutoRemove(), QImage::size(), QDir::tempPath(), QPainter::translate(), QSize::width(), and QImage::width().
| void KLFDisplayLabel::displayClear | ( | ) | [virtual, slot] |
Definition at line 66 of file klfdisplaylabel.cpp.
| void KLFDisplayLabel::displayError | ( | bool | labelenabled = false | ) | [virtual, slot] |
Definition at line 138 of file klfdisplaylabel.cpp.
| virtual bool KLFDisplayLabel::enableToolTipPreview | ( | ) | const [inline, virtual] |
Definition at line 50 of file klfdisplaylabel.h.
| bool KLFDisplayLabel::glowEffect | ( | ) | const [inline] |
Definition at line 54 of file klfdisplaylabel.h.
| QColor KLFDisplayLabel::glowEffectColor | ( | ) | const [inline] |
Definition at line 55 of file klfdisplaylabel.h.
| int KLFDisplayLabel::glowEffectRadius | ( | ) | const [inline] |
Definition at line 56 of file klfdisplaylabel.h.
| void KLFDisplayLabel::labelDrag | ( | ) | [signal] |
Referenced by mouseMoveEvent().
| virtual QSize KLFDisplayLabel::labelFixedSize | ( | ) | const [inline, virtual] |
Definition at line 49 of file klfdisplaylabel.h.
| void KLFDisplayLabel::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 159 of file klfdisplaylabel.cpp.
References labelDrag().
| virtual void KLFDisplayLabel::setEnableToolTipPreview | ( | bool | enable | ) | [inline, virtual, slot] |
Definition at line 63 of file klfdisplaylabel.h.
| void KLFDisplayLabel::setGlowEffect | ( | bool | on | ) | [inline, slot] |
Definition at line 70 of file klfdisplaylabel.h.
| void KLFDisplayLabel::setGlowEffectColor | ( | const QColor & | color | ) | [inline, slot] |
Definition at line 72 of file klfdisplaylabel.h.
| void KLFDisplayLabel::setGlowEffectRadius | ( | int | r | ) | [inline, slot] |
Definition at line 74 of file klfdisplaylabel.h.
| void KLFDisplayLabel::setLabelFixedSize | ( | const QSize & | size | ) | [virtual, slot] |
Definition at line 58 of file klfdisplaylabel.cpp.
Referenced by KLFDisplayLabel().
QString KLFDisplayLabel::bigPreviewText [read] |
Definition at line 39 of file klfdisplaylabel.h.
bool KLFDisplayLabel::enableToolTipPreview [read, write] |
Definition at line 38 of file klfdisplaylabel.h.
bool KLFDisplayLabel::glowEffect [read, write] |
Definition at line 41 of file klfdisplaylabel.h.
QColor KLFDisplayLabel::glowEffectColor [read, write] |
Definition at line 42 of file klfdisplaylabel.h.
int KLFDisplayLabel::glowEffectRadius [read, write] |
Definition at line 43 of file klfdisplaylabel.h.
QSize KLFDisplayLabel::labelFixedSize [read, write] |
Definition at line 38 of file klfdisplaylabel.h.