|
Krita Source Code Documentation
|
#include <DefaultToolGeometryWidget.h>
Inheritance diagram for DefaultToolGeometryWidget:Public Member Functions | |
| DefaultToolGeometryWidget (KoInteractionTool *tool, QWidget *parent=0) | |
| void | setUnit (const KoUnit &unit) |
| Sets the unit used by the unit aware child widgets. | |
| bool | useUniformScaling () const |
| ~DefaultToolGeometryWidget () override | |
Protected Member Functions | |
| void | showEvent (QShowEvent *event) override |
Private Slots | |
| void | resourceChanged (int key, const QVariant &res) |
| void | slotAnchorPointChanged () |
| void | slotAspectButtonToggled () |
| void | slotOpacitySliderChanged (qreal newOpacity) |
| void | slotPaintOrderChanged () |
| void | slotRepositionShapes () |
| void | slotResizeShapes () |
| void | slotUpdateAspectButton () |
| void | slotUpdateCheckboxes () |
| void | slotUpdateOpacitySlider () |
| void | slotUpdatePaintOrder () |
| void | slotUpdatePositionBoxes () |
| void | slotUpdateSizeBoxes (bool updateAspect=true) |
| void | slotUpdateSizeBoxesNoAspectChange () |
Private Attributes | |
| bool | m_savedUniformScaling |
| QScopedPointer< KisAspectRatioLocker > | m_sizeAspectLocker |
| KoInteractionTool * | m_tool |
Definition at line 20 of file DefaultToolGeometryWidget.h.
|
explicit |
A huge block of self-blocking acyclic connections
Definition at line 47 of file DefaultToolGeometryWidget.cpp.
References KoToolBase::canvas(), KoFlake::Center, connect(), KisAcyclicSignalConnector::connectBackwardVoid(), KisAcyclicSignalConnector::connectForwardVoid(), KisAcyclicSignalConnector::createCoordinatedConnector(), DefaultTool::HotPosition, KisIconUtils::loadIcon(), m_sizeAspectLocker, m_tool, KoUnit::Point, KoCanvasResourceProvider::resource(), resourceChanged(), KoCanvasBase::resourceManager, KoCanvasBase::selectedShapesProxy(), KoCanvasResourceProvider::setResource(), setUnit(), slotAnchorPointChanged(), slotAspectButtonToggled(), slotOpacitySliderChanged(), slotPaintOrderChanged(), slotRepositionShapes(), slotResizeShapes(), slotUpdateAspectButton(), slotUpdateCheckboxes(), slotUpdateOpacitySlider(), slotUpdatePositionBoxes(), slotUpdateSizeBoxes(), slotUpdateSizeBoxesNoAspectChange(), and KoShape::transparency().
|
override |
Definition at line 132 of file DefaultToolGeometryWidget.cpp.
|
privateslot |
Definition at line 535 of file DefaultToolGeometryWidget.cpp.
References DefaultTool::HotPosition, setUnit(), and KoCanvasResource::Unit.
Sets the unit used by the unit aware child widgets.
Definition at line 490 of file DefaultToolGeometryWidget.cpp.
References slotUpdatePositionBoxes(), and slotUpdateSizeBoxes().
|
overrideprotected |
Definition at line 522 of file DefaultToolGeometryWidget.cpp.
References slotAnchorPointChanged(), slotUpdateAspectButton(), slotUpdateCheckboxes(), slotUpdateOpacitySlider(), slotUpdatePaintOrder(), slotUpdatePositionBoxes(), and slotUpdateSizeBoxes().
|
privateslot |
Definition at line 188 of file DefaultToolGeometryWidget.cpp.
References KoToolBase::canvas(), DefaultTool::HotPosition, m_tool, KoCanvasBase::resourceManager, and slotUpdatePositionBoxes().
|
privateslot |
Definition at line 225 of file DefaultToolGeometryWidget.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), m_tool, KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 285 of file DefaultToolGeometryWidget.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), m_tool, KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 307 of file DefaultToolGeometryWidget.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KoShape::Fill, m_tool, KoShape::Markers, KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), KoSelectedShapesProxy::selection(), and KoShape::Stroke.
|
privateslot |
Definition at line 422 of file DefaultToolGeometryWidget.cpp.
References KoShape::absolutePosition(), KoCanvasBase::addCommand(), bounds, KoToolBase::canvas(), eps, m_tool, KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 455 of file DefaultToolGeometryWidget.cpp.
References KoCanvasBase::addCommand(), bounds, KoToolBase::canvas(), KisAlgebra2D::ensureSizeNotSmaller(), eps, m_tool, KoCanvasBase::selectedShapesProxy(), KoSelectedShapesProxy::selection(), and KoShape::transformation().
|
privateslot |
Definition at line 236 of file DefaultToolGeometryWidget.cpp.
References bounds, KoToolBase::canvas(), KoShape::keepAspectRatio(), m_tool, KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 197 of file DefaultToolGeometryWidget.cpp.
References KoToolBase::canvas(), m_savedUniformScaling, m_tool, KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 297 of file DefaultToolGeometryWidget.cpp.
References KoToolBase::canvas(), m_tool, KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 348 of file DefaultToolGeometryWidget.cpp.
References KoToolBase::canvas(), KoShape::Fill, m_tool, KoShape::paintOrder(), KoSelection::selectedEditableShapes(), KoCanvasBase::selectedShapesProxy(), KoSelectedShapesProxy::selection(), and KoShape::Stroke.
|
privateslot |
Definition at line 400 of file DefaultToolGeometryWidget.cpp.
References bounds, KoToolBase::canvas(), m_tool, KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 369 of file DefaultToolGeometryWidget.cpp.
References bounds, KoToolBase::canvas(), m_sizeAspectLocker, m_tool, KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
privateslot |
Definition at line 395 of file DefaultToolGeometryWidget.cpp.
References slotUpdateSizeBoxes().
| bool DefaultToolGeometryWidget::useUniformScaling | ( | ) | const |
Definition at line 517 of file DefaultToolGeometryWidget.cpp.
|
private |
Definition at line 60 of file DefaultToolGeometryWidget.h.
|
private |
Definition at line 59 of file DefaultToolGeometryWidget.h.
|
private |
Definition at line 58 of file DefaultToolGeometryWidget.h.