Revision 84f135e...

Go back to digest for 17th July 2011

Features in Office

Dmitry Kazakov committed changes in [calligra/krita_strokes_framework_kazakov] /:

Added support for legacy commands execution

1) KisScheduledUndoCommand used for saving commands to QUndoStack.
Its undo()/redo() methods enqueue the corresponding strategies
to the scheduler's queue.
2) Ported all the commands: no locking is needed now (linearization
is done by the queue), synchronous refreshGraph() calls are
substituted with asynchronous ones.
3) Modified KisUndoAdapter. Its addCommand,begin/endMacro calls now
do not work with QUndoStack directly, they just create a stroke
and the stroke is executed by the scheduler. In the end of
the stroke executed commands are added to the QUndoStack using
special methods of KisUndoAdapter.

File Changes

Added 1 files
  • krita/image/commands/kis_scheduled_undo_command.cpp
Modified 24 files
  •   krita/image/CMakeLists.txt
  •   krita/image/kis_image.cc
  •   krita/image/kis_indirect_painting_support.cpp
  •   krita/image/kis_painter.cc
  •   krita/image/kis_painter.h
  •   krita/image/kis_stroke_strategy_undo_command_based.cpp
  •   krita/image/kis_stroke_strategy_undo_command_based.h
  •   krita/image/kis_transaction.h
  •   krita/image/kis_undo_adapter.cc
  •   krita/image/kis_undo_adapter.h
  •   krita/image/commands/kis_image_change_layers_command.cpp
  •   krita/image/commands/kis_image_command.cpp
  •   krita/image/commands/kis_image_layer_add_command.cpp
  •   krita/image/commands/kis_image_layer_move_command.cpp
  •   krita/image/commands/kis_image_layer_remove_command.cpp
  •   krita/image/commands/kis_image_lock_command.cpp
  •   krita/image/commands/kis_image_lock_command.h
  •   krita/image/commands/kis_image_node_lower_command.cpp
  •   krita/image/commands/kis_image_node_raise_command.cpp
  •   krita/image/commands/kis_image_node_to_bottom_command.cpp
  •   krita/image/commands/kis_image_node_to_top_command.cpp
  •   krita/image/commands/kis_node_move_command.cpp
  •   krita/image/tests/kis_stroke_strategy_undo_command_based_test.cpp
  •   krita/ui/tool/strokes/kis_base_stroke_job_strategies.cpp
25 files changed in total