krita
KisPreviewWidget Class Reference
#include <kis_previewwidget.h>
Detailed Description
A widget that can be used by plugins to show a preview of the effect of the plugin to the user.This is a convenience class thand handily packs a source and a preview view together with a zoom button. It would be nice if every plugin that needs to show a preview (maybe not those that create a new image) would use this. This can prevent the distracting effect the GIMP has with a different preview for almost every filter.
Definition at line 42 of file kis_previewwidget.h.
Public Slots | |
void | slotSetDevice (KisPaintDeviceSP dev) |
void | slotUpdate () |
void | slotSetAutoUpdate (bool set) |
void | setPreviewDisplayed (bool v) |
void | needUpdate () |
Signals | |
void | updated () |
Public Member Functions | |
KisPreviewWidget (QWidget *parent=0, const char *name=0) | |
KisPaintDeviceSP | getDevice () |
bool | getAutoUpdate () const |
void | wheelEvent (QWheelEvent *e) |
Constructor & Destructor Documentation
|
Constructs the widget.
Definition at line 57 of file kis_previewwidget.cc. |
Member Function Documentation
|
returns if the preview is automatically updated
Definition at line 180 of file kis_previewwidget.cc. |
|
Definition at line 122 of file kis_previewwidget.cc. |
|
use to indicate that the preview need to be updated.
Definition at line 174 of file kis_previewwidget.cc. |
|
Toggle between display preview and display original.
Definition at line 157 of file kis_previewwidget.cc. |
|
Enables or disables the automatically updating of the preview.
Definition at line 144 of file kis_previewwidget.cc. |
|
Sets the preview to use the layer specified as argument.
Definition at line 100 of file kis_previewwidget.cc. |
|
Call this when the effect has finished updating the layer. Makes the preview repaint itself. Definition at line 127 of file kis_previewwidget.cc. |
|
This is emitted when the position or zoom factor of the widget has changed.
|
The documentation for this class was generated from the following files: