|
Krita Source Code Documentation
|
#include <move_selection_stroke_strategy.h>
Inheritance diagram for MoveSelectionStrokeStrategy:Classes | |
| struct | ShowSelectionData |
Signals | |
| void | sigHandlesRectCalculated (const QRect &handlesRect) |
| void | sigStrokeStartedEmpty () |
Private Member Functions | |
| KisStrokeStrategy * | createLodClone (int levelOfDetail) override |
| MoveSelectionStrokeStrategy (const MoveSelectionStrokeStrategy &rhs) | |
Private Attributes | |
| QPoint | m_finalOffset |
| QPoint | m_initialDeviceOffset |
| QPoint | m_initialSelectionOffset |
| KisPaintLayerSP | m_paintLayer |
| KisSelectionSP | m_selection |
| KisUpdatesFacade * | m_updatesFacade |
Definition at line 19 of file move_selection_stroke_strategy.h.
| MoveSelectionStrokeStrategy::MoveSelectionStrokeStrategy | ( | KisPaintLayerSP | paintLayer, |
| KisSelectionSP | selection, | ||
| KisUpdatesFacade * | updatesFacade, | ||
| KisStrokeUndoFacade * | undoFacade ) |
Selection might have some update projection jobs pending, so we should ensure all of them are completed before we start our stroke.
Definition at line 25 of file move_selection_stroke_strategy.cpp.
References KisStrokeJobData::BARRIER, KisSimpleStrokeStrategy::enableJob(), KisSimpleStrokeStrategy::JOB_CANCEL, KisSimpleStrokeStrategy::JOB_FINISH, and KisSimpleStrokeStrategy::JOB_INIT.
|
private |
Definition at line 43 of file move_selection_stroke_strategy.cpp.
|
overridevirtual |
Reimplemented from KisStrokeStrategyUndoCommandBased.
Definition at line 138 of file move_selection_stroke_strategy.cpp.
References KisStrokeStrategyUndoCommandBased::cancelStrokeCallback(), KisSharedPtr< T >::data(), m_initialSelectionOffset, m_paintLayer, m_selection, KisSelection::notifySelectionChanged(), KisPaintDevice::region(), KisNode::setDirty(), KisIndirectPaintingSupport::setTemporaryTarget(), KisSelection::setVisible(), KisSelection::setX(), KisSelection::setY(), and KisIndirectPaintingSupport::temporaryTarget.
|
overrideprivatevirtual |
Reimplemented from KisStrokeStrategy.
Definition at line 201 of file move_selection_stroke_strategy.cpp.
References connect(), KisSelection::hasShapeSelection(), m_selection, MoveSelectionStrokeStrategy(), and sigHandlesRectCalculated().
|
overridevirtual |
Reimplemented from KisStrokeStrategyUndoCommandBased.
Definition at line 163 of file move_selection_stroke_strategy.cpp.
References KisSharedPtr< T >::data(), KisStrokeStrategyUndoCommandBased::doStrokeCallback(), KisRegion::fromQRegion(), KisSelection::isVisible, m_finalOffset, m_initialDeviceOffset, m_initialSelectionOffset, m_paintLayer, m_selection, KisSelection::notifySelectionChanged(), KisPaintDevice::region(), KisNode::setDirty(), KisSelection::setVisible(), KisPaintDevice::setX(), KisSelection::setX(), KisPaintDevice::setY(), KisSelection::setY(), MoveSelectionStrokeStrategy::ShowSelectionData::showSelection, KisIndirectPaintingSupport::temporaryTarget, KisRegion::toQRegion(), KisPaintDevice::x(), and KisPaintDevice::y().
|
overridevirtual |
Reimplemented from KisStrokeStrategyUndoCommandBased.
Definition at line 104 of file move_selection_stroke_strategy.cpp.
References KisUpdatesFacade::blockUpdates(), KisSharedPtr< T >::data(), KisStrokeJobData::EXCLUSIVE, KisStrokeStrategyUndoCommandBased::finishStrokeCallback(), m_finalOffset, m_initialSelectionOffset, m_paintLayer, m_selection, m_updatesFacade, KisIndirectPaintingSupport::mergeToLayer(), KisStrokeStrategy::name(), KisStrokeJobData::NORMAL, KisStrokeStrategyUndoCommandBased::runAndSaveCommand(), KisStrokeJobData::SEQUENTIAL, KisIndirectPaintingSupport::setTemporaryTarget(), KisSelection::setVisible(), and KisUpdatesFacade::unblockUpdates().
|
overridevirtual |
Reimplemented from KisStrokeStrategyUndoCommandBased.
Definition at line 52 of file move_selection_stroke_strategy.cpp.
References KisStrokeJobData::BARRIER, KisPainter::bitBlt(), KisPaintDevice::clearSelection(), KisPaintDevice::colorSpace(), COMPOSITE_OVER, KisSharedPtr< T >::data(), KisPainter::end(), KisTransaction::endAndTake(), KisPaintDevice::exactBounds(), KisStrokeStrategyUndoCommandBased::initStrokeCallback(), m_initialDeviceOffset, m_initialSelectionOffset, m_paintLayer, m_selection, KisLodTransformBase::mapInverted(), KisStrokeStrategy::name(), KisStrokeJobData::NORMAL, OPACITY_OPAQUE_F, KisPaintLayer::paintDevice, KisStrokeStrategyUndoCommandBased::runAndSaveCommand(), KisSelection::selectedRect(), KisStrokeJobData::SEQUENTIAL, KisPainter::setSelection(), KisIndirectPaintingSupport::setTemporaryChannelFlags(), KisIndirectPaintingSupport::setTemporaryCompositeOp(), KisIndirectPaintingSupport::setTemporaryOpacity(), KisIndirectPaintingSupport::setTemporarySelection(), KisIndirectPaintingSupport::setTemporaryTarget(), sigHandlesRectCalculated(), sigStrokeStartedEmpty(), KisAutoKey::SupportsLod, toQShared(), KisAutoKey::tryAutoCreateDuplicatedFrame(), KisPaintDevice::x(), KisSelection::x(), KisPaintDevice::y(), and KisSelection::y().
|
signal |
|
signal |
|
private |
Definition at line 63 of file move_selection_stroke_strategy.h.
|
private |
Definition at line 64 of file move_selection_stroke_strategy.h.
|
private |
Definition at line 65 of file move_selection_stroke_strategy.h.
|
private |
Definition at line 60 of file move_selection_stroke_strategy.h.
|
private |
Definition at line 61 of file move_selection_stroke_strategy.h.
|
private |
Definition at line 62 of file move_selection_stroke_strategy.h.