#include <QString>#include <QByteArray>#include <QComboBox>#include <QWidget>#include <QDialog>#include <QProgressDialog>#include <QMouseEvent>#include <QPaintEvent>#include <QTime>#include <QGridLayout>#include <QDoubleSpinBox>#include <QLabel>#include <QMovie>#include <QPainter>#include <klfutil.h>

Go to the source code of this file.
Classes | |
| class | KLFProgressReporter |
| Object that emits progress information of a (lengthy) operation. More... | |
| class | KLFProgressDialog |
| A Progress Dialog. More... | |
| class | KLFPleaseWaitPopup |
| A popup screen inviting the user to wait. More... | |
| class | KLFDelayedPleaseWaitPopup |
| A popup screen inviting user to wait, appearing after a delay. More... | |
| class | KLFEnumComboBox |
| a combo box proposing a list of (integer) enumeration values. More... | |
| class | KLFGridFlowLayout |
| A Layout that lays out its children in a grid, flowing left to right, top to bottom. More... | |
| class | KLFWaitAnimationOverlay |
| An animation display. More... | |
| class | KLFDropDataHandler |
| An abstract handler for when data is dropped. More... | |
| class | KLFWindowGeometryRestorer |
| Helper class that restores window geometry after show/hide events. More... | |
Functions | |
| 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. | |
| 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.
Draws a glow effect for image foreground by extracting the alpha channel, and creating fills an image of color glow_color with the same alpha channel. The image is then drawn at all points (x,y) around (0,0) such that |(x,y)-(0,0)| < r, effectively overlapping the glow image with itself creating a blur effect.
The resulting graphics are painted using the painter painter, at the reference position (0,0). If you want your image drawn at another position, use QPainter::translate().
If also_draw_image is TRUE, then the image itself is also drawn on top of the glow effect.
Definition at line 461 of file klfguiutil.cpp.
References QImage::convertToFormat(), QPainter::device(), QPaintDevice::devicePixelRatioF(), QPainter::drawImage(), QImage::format(), QImage::height(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, QImage::pixel(), QColor::rgba(), QImage::size(), and QImage::width().
| KLF_EXPORT void klfHideWindows | ( | ) |
Definition at line 597 of file klfguiutil.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and klfDbg.
| KLF_EXPORT QImage klfImageScaled | ( | const QImage & | source, |
| const QSize & | newSize | ||
| ) |
Scale image, preserve aspect ratio and meta-information.
Calls QImage::scaled(), with instruction to keep aspect ratio, to scale to new size, with a smooth (not fast) transformation.
Then copies the original image's meta-information to the returned image with QImage::setText().
Definition at line 512 of file klfguiutil.cpp.
References QImage::scaled(), QImage::setText(), QList::size(), QImage::text(), and QImage::textKeys().
| KLF_EXPORT void klfRestoreWindows | ( | ) |
Definition at line 636 of file klfguiutil.cpp.
References QHash::contains(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and klfDbg.