Browse Source
Implement undo/redo for origins in legacy
Implement undo/redo for origins in legacy
PICKED_ITEMS_LIST knows the architecture of the undo commands so that it can delete those ITEMs which it owns. This represents poor encapsulation so instead of adding yet another case, I added a UR_TRANSIENT item flag which is set by callers whenever they create new objects to “give to” the undo/redo stack. This allowed some cleanup of other code, but cleaning up UR_DELETE and UR_WIRE_IMAGE will be a bigger task and have to wait for another day. Fixes: lp:1542018 * https://bugs.launchpad.net/kicad/+bug/1542018pull/5/merge
committed by
Wayne Stambaugh
14 changed files with 71 additions and 70 deletions
-
47common/class_undoredo_container.cpp
-
9common/origin_viewitem.cpp
-
7eeschema/block.cpp
-
7eeschema/block_libedit.cpp
-
5eeschema/libedit_undo_redo.cpp
-
3eeschema/operations_on_items_lists.cpp
-
4include/base_struct.h
-
2include/origin_viewitem.h
-
12pcbnew/hotkeys_board_editor.cpp
-
10pcbnew/hotkeys_module_editor.cpp
-
10pcbnew/modedit_onclick.cpp
-
19pcbnew/onleftclick.cpp
-
4pcbnew/tools/pcb_editor_control.cpp
-
2pcbnew/tools/pcbnew_control.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue