33#include <QProgressDialog>
38#include <QDoubleSpinBox>
71 inline int min()
const {
return pMin; }
72 inline int max()
const {
return pMax; }
195 const QString& descriptiveText);
208 void setup(
bool canCancel);
209 void init(
const QString& labelText);
269 virtual void setDisableUi(
bool disableUi);
280 virtual void showPleaseWait();
287 QWidget *pParentWidget;
347 QWidget *parent = 0);
363 void internalCurrentIndexChanged(
int index);
390 virtual void insertGridFlowWidget(QWidget *w,
Qt::Alignment align = 0);
518 int pPositionXPercent;
519 int pPositionYPercent;
562 int radius = 4,
bool also_draw_image =
true);
An abstract handler for when data is dropped.
virtual int openDropData(const QMimeData *data)=0
@ OpenDataCantHandle
Couldn't handle the given data. Try further processing.
@ OpenDataOk
Opened the data Ok.
@ OpenDataFailed
Could handle data format, but failed to open (no further processing)
virtual bool canOpenDropData(const QMimeData *data)=0
QString enumText(int enumValue) const
void setSelectedValue(int val)
void setEnumValues(const QList< int > &enumValues, const QStringList &enumTitles)
KLFEnumComboBox(QWidget *parent=0)
void selectedValueChanged(int enumValue)
KLFGridFlowLayout(int columns, QWidget *parent)
virtual ~KLFGridFlowLayout()
virtual int ncolumns() const
QList< QWidget * > mGridFlowWidgets
virtual void setDescriptiveText(const QString &labelText)
virtual void startReportingProgress(KLFProgressReporter *progressReporter, const QString &descriptiveText)
void paintEvent(QPaintEvent *event)
virtual void setValue(int value)
KLFProgressDialog(QString labelText=QString(), QWidget *parent=NULL)
Object that emits progress information of a (lengthy) operation.
void progress(int progressValue)
void doReportProgress(int value)
KLFProgressReporter(int min, int max, QObject *parent=NULL)
KLFWaitAnimationOverlay(QWidget *parent)
virtual void timerEvent(QTimerEvent *event)
void setBackgroundColor(const QColor &c)
Set the label background color.
int positionYPercent() const
virtual ~KLFWaitAnimationOverlay()
virtual void setWaitMovie(QMovie *movie)
Set which animation to display while searching.
void setWidthPercent(int widthpercent)
Sets the width of this label.
void setPositionXPercent(int xpc)
Sets the horizontal position of this label relative to the parent widget.
QString waitMovieFileName() const
int heightPercent() const
int positionXPercent() const
virtual QRect calcAnimationLabelGeometry()
void setHeightPercent(int heightpercent)
Sets the height of this label.
void setPositionYPercent(int ypc)
Sets the vertical position of this label relative to the parent widget.
virtual void startWait()
Display the animation.
virtual void stopWait()
Hide the animation.
virtual bool eventFilter(QObject *obj, QEvent *event)
virtual ~KLFWindowGeometryRestorer()
KLFWindowGeometryRestorer(QWidget *window)
KLF_EXPORT QImage klfImageScaled(const QImage &source, const QSize &newSize)
Scale image, preserve aspect ratio and meta-information.
KLF_EXPORT void klfHideWindows()
KLF_EXPORT void klfRestoreWindows()
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.
virtual bool event(QEvent *e)