11#include <klocalizedstring.h>
12#include <kpluginfactory.h>
28 KisAction *action = createAction(
"shearimage");
29 connect(action, SIGNAL(triggered()),
this, SLOT(slotShearImage()));
31 action = createAction(
"shearlayer");
32 connect(action, SIGNAL(triggered()),
this, SLOT(slotShearLayer()));
34 action = createAction(
"shearAllLayers");
35 connect(action, SIGNAL(triggered()),
this, SLOT(slotShearAllLayers()));
47 if (!
viewManager()->blockUntilOperationsFinished(image))
return;
50 Q_CHECK_PTR(dlgShearImage);
52 dlgShearImage->
setCaption(i18n(
"Shear Image"));
54 if (dlgShearImage->exec() == QDialog::Accepted) {
55 qint32 angleX = dlgShearImage->
angleX();
56 qint32 angleY = dlgShearImage->
angleY();
57 viewManager()->imageManager()->shearCurrentImage(angleX, angleY);
71 if (!
viewManager()->blockUntilOperationsFinished(image))
return;
74 Q_CHECK_PTR(dlgShearImage);
76 dlgShearImage->
setCaption(i18np(
"Shear Layer",
"Shear %1 Layers", nodes.size()));
78 if (dlgShearImage->exec() == QDialog::Accepted) {
79 qint32 angleX = dlgShearImage->
angleX();
80 qint32 angleY = dlgShearImage->
angleY();
102#include "shearimage.moc"
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
QPointer< KisViewManager > viewManager() const
void shearNodes(KisNodeList nodes, double angleX, double angleY, KisSelectionSP selection)
virtual void setCaption(const QString &caption)
void shearLayerImpl(KisNodeSP rootNode)
void shearLayersImpl(KisNodeList nodes)
void slotShearAllLayers()
ShearImage(QObject *parent, const QVariantList &)
K_PLUGIN_FACTORY_WITH_JSON(KritaASCCDLFactory, "kritaasccdl.json", registerPlugin< KritaASCCDL >();) KritaASCCDL