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);
int glowEffectRadius() const
Base declarations for klatexformula and some utilities.
virtual void setEnableToolTipPreview(bool enable)
void setGlowEffectColor(const QColor &color)
A label to display a LaTeX-formula-output-like image.
void setGlowEffectRadius(int r)
virtual bool enableToolTipPreview() const
virtual QString bigPreviewText() const
virtual QSize labelSize() const
maximum pixmap size we can display
QColor glowEffectColor() const
virtual DisplayState currentDisplayState() const
void setGlowEffect(bool on)
virtual void displayError(bool labelenabled=false)
void setLabelEnabled(bool enabled)
bool labelEnabled() const