|
Krita Source Code Documentation
|
Inheritance diagram for KisSuspendProjectionUpdatesStrokeStrategy::Private::EndBatchUIUpdatesCommand:Public Attributes | |
| KisSuspendProjectionUpdatesStrokeStrategy * | m_strategy |
Public Attributes inherited from KisSuspendProjectionUpdatesStrokeStrategy::Private::StrokeJobCommand | |
| KisStrokeJobData::Exclusivity | m_exclusivity |
| KisStrokeJobData::Sequentiality | m_sequentiality |
Definition at line 377 of file kis_suspend_projection_updates_stroke_strategy.cpp.
|
inline |
Definition at line 379 of file kis_suspend_projection_updates_stroke_strategy.cpp.
|
inlineoverridevirtual |
Applies a change to the document. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls redo() on all child commands.
Reimplemented from KUndo2Command.
Definition at line 383 of file kis_suspend_projection_updates_stroke_strategy.cpp.
References KisImageSignalRouter::emitNotifyBatchUpdateEnded(), KisSuspendProjectionUpdatesStrokeStrategy::Private::image, KIS_SAFE_ASSERT_RECOVER_NOOP, KIS_SAFE_ASSERT_RECOVER_RETURN, KisSuspendProjectionUpdatesStrokeStrategy::m_d, m_strategy, and KisImage::signalRouter().
|
inlineoverridevirtual |
Reverts a change to the document. After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls undo() on all child commands in reverse order.
Even though this command is the last command of the stroke is can still be undone by suspendStrokeCallback(). It happens when a LodN stroke is started right after the last job of resume strategy was being executed. In such a case new stroke is placed right in front of our resume strategy and all the resuming work is undone (mimicking a normal suspend strategy).
The only thing we should control here is whether the state of the stroke is reset to default. Otherwise we'll do all the updates twice.
Reimplemented from KUndo2Command.
Definition at line 393 of file kis_suspend_projection_updates_stroke_strategy.cpp.
References KisImageSignalRouter::emitNotifyBatchUpdateStarted(), KisSuspendProjectionUpdatesStrokeStrategy::Private::image, KIS_SAFE_ASSERT_RECOVER_NOOP, KIS_SAFE_ASSERT_RECOVER_RETURN, KisSuspendProjectionUpdatesStrokeStrategy::m_d, m_strategy, and KisImage::signalRouter().
| KisSuspendProjectionUpdatesStrokeStrategy* KisSuspendProjectionUpdatesStrokeStrategy::Private::EndBatchUIUpdatesCommand::m_strategy |
Definition at line 417 of file kis_suspend_projection_updates_stroke_strategy.cpp.