24 #ifndef KLFDISPLAYLABEL_H
25 #define KLFDISPLAYLABEL_H
29 #include <QTemporaryFile>
50 Q_PROPERTY(
bool enableToolTipPreview READ enableToolTipPreview WRITE setEnableToolTipPreview) ;
52 Q_PROPERTY(
QString bigPreviewText READ bigPreviewText) ;
53 Q_PROPERTY(
bool glowEffect READ glowEffect WRITE setGlowEffect) ;
54 Q_PROPERTY(
QColor glowEffectColor READ glowEffectColor WRITE setGlowEffectColor) ;
55 Q_PROPERTY(
int glowEffectRadius READ glowEffectRadius WRITE setGlowEffectRadius) ;
56 Q_PROPERTY(
bool labelEnabled READ labelEnabled WRITE setLabelEnabled) ;
88 virtual void displayClear();
89 virtual void display(
QImage displayimg,
QImage tooltipimage,
bool labelenabled =
true);
91 { displayError(
QString(), labelenabled); }
92 virtual void displayError(
const QString& errorMessage,
bool labelenabled =
false);
98 void setLabelEnabled(
bool enabled) { pLabelEnabled = enabled; display_state(pDisplayState); }
106 void display_state(DisplayState state);
108 DisplayState pDisplayState;
113 QSize pLabelFixedSize;
114 bool pEnableToolTipPreview;
126 void set_error(
bool error_on);
A label to display a LaTeX-formula-output-like image.
int glowEffectRadius() const
virtual void setEnableToolTipPreview(bool enable)
void setGlowEffectColor(const QColor &color)
bool labelEnabled() const
virtual void displayError(bool labelenabled=false)
void setGlowEffect(bool on)
QColor glowEffectColor() const
virtual QSize labelSize() const
maximum pixmap size we can display
virtual DisplayState currentDisplayState() const
void setLabelEnabled(bool enabled)
virtual bool enableToolTipPreview() const
void setGlowEffectRadius(int r)
virtual QString bigPreviewText() const
Base declarations for klatexformula and some utilities.