Revision 80cb31e...
Go back to digest for 18th November 2012Bug Fixes in Office
Dmitry Kazakov committed changes in [calligra/calligra/2.6] /ui:
Fixed the second half of bug 302758
This patch almost rewrites the KisInputManager to fix the mentioned
bug. Now all the state transitions of the actions are controlled by
a special class KisShorcutMatcher. This class is easily controlled by
a separate unittest. The work of the actions is now can be represented
by a simple state machine with three states (see docs for class
KisStrokeShortcut).
File Changes
Added 9 files
- /ui
- krita/input/kis_abstract_shortcut.cpp
- krita/input/kis_abstract_shortcut.h
- krita/input/kis_key_shortcut.cpp
- krita/input/kis_key_shortcut.h
- krita/input/kis_shortcut_matcher.cpp
- krita/input/kis_shortcut_matcher.h
- krita/input/kis_stroke_shortcut.cpp
- krita/input/kis_stroke_shortcut.h
- krita/tests/kis_input_manager_test.cpp
Deleted 2 files
- /ui/input
- krita/kis_shortcut.cpp
- krita/kis_shortcut.h
Modified 20 files
- /ui
- krita/CMakeLists.txt
- krita/input/kis_abstract_input_action.cpp
- krita/input/kis_abstract_input_action.h
- krita/input/kis_alternate_invocation_action.cpp
- krita/input/kis_alternate_invocation_action.h
- krita/input/kis_change_primary_setting_action.cpp
- krita/input/kis_change_primary_setting_action.h
- krita/input/kis_input_manager.cpp
- krita/input/kis_input_manager.h
- krita/input/kis_pan_action.cpp
- krita/input/kis_pan_action.h
- krita/input/kis_rotate_canvas_action.cpp
- krita/input/kis_rotate_canvas_action.h
- krita/input/kis_show_palette_action.cpp
- krita/input/kis_show_palette_action.h
- krita/input/kis_tool_invocation_action.cpp
- krita/input/kis_tool_invocation_action.h
- krita/input/kis_zoom_action.cpp
- krita/input/kis_zoom_action.h
- krita/tests/CMakeLists.txt
31 files changed in total