Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/defaulttool/defaulttool/DefaultToolTransformWidget.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 46 | DefaultToolTransformWidget::DefaultToolTransformWidget(KoInteractionTool *tool, QWidget *parent) | |||
---|---|---|---|---|---|
47 | : QMenu(parent) | 47 | : QMenu(parent) | ||
48 | { | 48 | { | ||
49 | m_tool = tool; | 49 | m_tool = tool; | ||
50 | 50 | | |||
51 | setupUi(this); | 51 | setupUi(this); | ||
52 | 52 | | |||
53 | setUnit(m_tool->canvas()->unit()); | 53 | setUnit(m_tool->canvas()->unit()); | ||
54 | 54 | | |||
55 | KisDocumentAwareSpinBoxUnitManager::setDocumentAwarnessToExistingUnitSpinBox(shearXSpinBox); | | |||
56 | KisDocumentAwareSpinBoxUnitManager::setDocumentAwarnessToExistingUnitSpinBox(shearYSpinBox); | | |||
57 | | ||||
58 | connect(m_tool->canvas()->resourceManager(), SIGNAL(canvasResourceChanged(int,QVariant)), | 55 | connect(m_tool->canvas()->resourceManager(), SIGNAL(canvasResourceChanged(int,QVariant)), | ||
59 | this, SLOT(resourceChanged(int,QVariant))); | 56 | this, SLOT(resourceChanged(int,QVariant))); | ||
60 | 57 | | |||
61 | connect(rotateButton, SIGNAL(clicked()), this, SLOT(rotationChanged())); | 58 | connect(rotateButton, SIGNAL(clicked()), this, SLOT(rotationChanged())); | ||
62 | connect(shearXButton, SIGNAL(clicked()), this, SLOT(shearXChanged())); | 59 | connect(shearXButton, SIGNAL(clicked()), this, SLOT(shearXChanged())); | ||
63 | connect(shearYButton, SIGNAL(clicked()), this, SLOT(shearYChanged())); | 60 | connect(shearYButton, SIGNAL(clicked()), this, SLOT(shearYChanged())); | ||
64 | connect(scaleXButton, SIGNAL(clicked()), this, SLOT(scaleXChanged())); | 61 | connect(scaleXButton, SIGNAL(clicked()), this, SLOT(scaleXChanged())); | ||
65 | connect(scaleYButton, SIGNAL(clicked()), this, SLOT(scaleYChanged())); | 62 | connect(scaleYButton, SIGNAL(clicked()), this, SLOT(scaleYChanged())); | ||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |