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