|
Krita Source Code Documentation
|
#include <kis_image_from_clipboard_widget.h>
Inheritance diagram for KisImageFromClipboardWidget:Public Member Functions | |
| KisImageFromClipboardWidget (QWidget *parent, qint32 defWidth, qint32 defHeight, double resolution, const QString &defColorModel, const QString &defColorDepth, const QString &defColorProfile, const QString &imageName) | |
| ~KisImageFromClipboardWidget () override | |
Public Member Functions inherited from KisCustomImageWidget | |
| KisCustomImageWidget (QWidget *parent, qint32 defWidth, qint32 defHeight, double resolution, const QString &defColorModel, const QString &defColorDepth, const QString &defColorProfile, const QString &imageName) | |
| ~KisCustomImageWidget () override | |
Public Member Functions inherited from WdgNewImage | |
| WdgNewImage (QWidget *parent) | |
Protected Member Functions | |
| void | showEvent (QShowEvent *event) override |
Protected Member Functions inherited from KisCustomImageWidget | |
| KisDocument * | createNewImage () |
| void | setNumberOfLayers (int layers) |
| Set the number of layers that will be created. | |
| void | showEvent (QShowEvent *) override |
Private Slots | |
| void | clipboardDataChanged () |
| void | createClipboardPreview () |
| void | createImage () |
| void | enableImageCreation (const QImage &) |
Additional Inherited Members | |
Protected Attributes inherited from KisCustomImageWidget | |
| KisOpenPane * | m_openPane |
The 'New image from clipboard' widget in the Krita startup widget. This class is an extension of the KisCustomImageWidget("Custom document" widget"
Definition at line 18 of file kis_image_from_clipboard_widget.h.
| KisImageFromClipboardWidget::KisImageFromClipboardWidget | ( | QWidget * | parent, |
| qint32 | defWidth, | ||
| qint32 | defHeight, | ||
| double | resolution, | ||
| const QString & | defColorModel, | ||
| const QString & | defColorDepth, | ||
| const QString & | defColorProfile, | ||
| const QString & | imageName ) |
Constructor. Please note that this class is being used/created by KisDoc.
| parent | the parent widget |
| defWidth | The defined width |
| defHeight | The defined height |
| resolution | The image resolution |
| defColorModel | The defined color model |
| defColorDepth | The defined color depth |
| defColorProfile | The defined color profile |
| imageName | the document that wants to be altered |
Definition at line 44 of file kis_image_from_clipboard_widget.cpp.
References connect(), createImage(), and KisCustomImageWidget::setNumberOfLayers().
|
override |
Definition at line 59 of file kis_image_from_clipboard_widget.cpp.
|
privateslot |
Definition at line 109 of file kis_image_from_clipboard_widget.cpp.
References createClipboardPreview().
|
privateslot |
Definition at line 124 of file kis_image_from_clipboard_widget.cpp.
References enableImageCreation(), and KisClipboard::instance().
|
privateslot |
Definition at line 63 of file kis_image_from_clipboard_widget.cpp.
References KisImportCatcher::adaptClipToImageColorSpace(), KisNodeFacade::addNode(), KisClipboard::clip, KisPainter::copyAreaOptimized(), KisCustomImageWidget::createNewImage(), KisSharedPtr< T >::data(), KisOpenPane::documentSelected(), enableImageCreation(), KisPaintDevice::exactBounds(), KisNode::firstChild(), KisDocument::image, KisClipboard::instance(), KIS_SAFE_ASSERT_RECOVER_RETURN, KisCustomImageWidget::m_openPane, KisImage::nextLayerName(), KisNode::nextSibling(), OPACITY_OPAQUE_U8, KisPaintLayer::paintDevice, KisNodeFacade::root, KisNode::setDirty(), KisDocument::setModified(), KisBaseNode::setOpacity(), and KisBaseNode::userLocked().
|
privateslot |
Definition at line 136 of file kis_image_from_clipboard_widget.cpp.
|
overrideprotected |
Definition at line 114 of file kis_image_from_clipboard_widget.cpp.
References clipboardDataChanged(), KisClipboard::clipChanged(), connect(), createClipboardPreview(), KisClipboard::instance(), and KisCustomImageWidget::showEvent().