Go to the documentation of this file.
33 #include <QProgressDialog>
34 #include <QMouseEvent>
35 #include <QPaintEvent>
37 #include <QGridLayout>
38 #include <QDoubleSpinBox>
71 inline int min()
const {
return pMin; }
72 inline int max()
const {
return pMax; }
84 void progress(
int progressValue);
99 void doReportProgress(
int value);
190 virtual void setDescriptiveText(
const QString& labelText);
195 const QString& descriptiveText);
202 virtual void setValue(
int value);
208 void setup(
bool canCancel);
209 void init(
const QString& labelText);
240 Q_PROPERTY(
bool disableUi READ willDisableUi WRITE setDisableUi) ;
263 inline bool willDisableUi()
const {
return pDisableUi; }
269 virtual void setDisableUi(
bool disableUi);
272 virtual bool pleaseWaitShown()
const {
return pGotPaintEvent; }
276 virtual bool wasUserDiscarded()
const {
return pDiscarded; }
280 virtual void showPleaseWait();
287 QWidget *pParentWidget;
312 virtual void setDelay(
int ms);
315 virtual void process();
343 Q_PROPERTY(
int selectedValue READ selectedValue WRITE setSelectedValue)
347 QWidget *parent = 0);
350 int selectedValue()
const;
352 QString enumText(
int enumValue)
const;
355 void selectedValueChanged(
int enumValue);
358 void setSelectedValue(
int val);
363 void internalCurrentIndexChanged(
int index);
388 virtual int ncolumns()
const {
return _ncols; }
390 virtual void insertGridFlowWidget(QWidget *w,
Qt::Alignment align = 0);
397 int _currow, _curcol;
461 void setWidthPercent(
int widthpercent) { pWidthPercent = widthpercent; }
466 void setHeightPercent(
int heightpercent) { pHeightPercent = heightpercent; }
518 int pPositionXPercent;
519 int pPositionYPercent;
532 OpenDataCantHandle = 2
535 virtual bool canOpenDropData(
const QMimeData * data) = 0;
537 virtual int openDropData(
const QMimeData *data) = 0;
562 int radius = 4,
bool also_draw_image =
true);
virtual void timerEvent(QTimerEvent *event)
KLF_EXPORT QImage klfImageScaled(const QImage &source, const QSize &newSize)
Scale image, preserve aspect ratio and meta-information.
void setPositionXPercent(int xpc)
Sets the horizontal position of this label relative to the parent widget.
KLF_EXPORT void klfRestoreWindows()
int positionYPercent() const
An abstract handler for when data is dropped.
KLFWaitAnimationOverlay(QWidget *parent)
virtual bool event(QEvent *e)
void setBackgroundColor(const QColor &c)
Set the label background color.
Helper class that restores window geometry after show/hide events.
a combo box proposing a list of (integer) enumeration values.
virtual ~KLFWindowGeometryRestorer()
Object that emits progress information of a (lengthy) operation.
KLFWindowGeometryRestorer(QWidget *window)
virtual bool eventFilter(QObject *obj, QEvent *event)
KLF_EXPORT void klfHideWindows()
virtual void stopWait()
Hide the animation.
int heightPercent() const
virtual QRect calcAnimationLabelGeometry()
A Layout that lays out its children in a grid, flowing left to right, top to bottom.
virtual void startWait()
Display the animation.
QColor backgroundColor() const
void setPositionYPercent(int ypc)
Sets the vertical position of this label relative to the parent widget.
void setWidthPercent(int widthpercent)
Sets the width of this label.
virtual ~KLFWaitAnimationOverlay()
void setHeightPercent(int heightpercent)
Sets the height of this label.
QString waitMovieFileName() const
KLF_EXPORT void klfDrawGlowedImage(QPainter *painter, const QImage &foreground, const QColor &glow_color=QColor(128, 255, 128, 8), int radius=4, bool also_draw_image=true)
Draws the given image with a glow effect.
int positionXPercent() const
virtual void setWaitMovie(QMovie *movie)
Set which animation to display while searching.
Generated by doxygen 1.8.16