Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MenuEdit: Add undo/redo options for frame ops #129

Merged

Conversation

tetektoza
Copy link
Contributor

@tetektoza tetektoza commented Nov 4, 2023

This patch adds undo stack for frame options in "Edit" menu in the app. Currently, if we try to remove frame/insert/append/replace frame, it's possible, although we can't revert the result that we've acquired. This patch adds this possibility for the following options:

  • removing frames
  • replacing frames
  • inserting frames
  • appending frames

While this patch might work by itself, there may be some dependencies with different operations in the app, like adding tiles or megatiles. Those will be supported in undo stack in the next PRs that will come.

@tetektoza tetektoza marked this pull request as draft November 4, 2023 18:36
@tetektoza tetektoza force-pushed the add_undo_stack_for_frame_operations branch 8 times, most recently from d9012ef to 61c9fe5 Compare November 11, 2023 02:03
@tetektoza tetektoza force-pushed the add_undo_stack_for_frame_operations branch 6 times, most recently from 61b5b5b to df946b4 Compare November 14, 2023 09:06
@tetektoza tetektoza marked this pull request as ready for review November 14, 2023 09:06
@tetektoza tetektoza force-pushed the add_undo_stack_for_frame_operations branch from df946b4 to 38dbcf4 Compare November 14, 2023 21:30
Introduces FrameCmds source file/header file which will be used for
undo/redo operations for all operations used in frames.
@tetektoza tetektoza force-pushed the add_undo_stack_for_frame_operations branch from 38dbcf4 to fc3cd3b Compare November 17, 2023 20:56
source/celview.cpp Show resolved Hide resolved
source/celview.cpp Outdated Show resolved Hide resolved
source/celview.cpp Outdated Show resolved Hide resolved
source/d1gfx.h Outdated Show resolved Hide resolved
source/levelcelview.cpp Outdated Show resolved Hide resolved
@tetektoza tetektoza force-pushed the add_undo_stack_for_frame_operations branch 3 times, most recently from bd09dfe to f87d02d Compare November 19, 2023 21:01
This commit makes "delete frame" option to be undoable, it allows to
delete frame and then undo or redo the same action.
This commit makes insert/add options to be undoable, it allows to
insert/add a frame and then undo or redo the same action.
This commit makes "replace frame" option to be undoable, it allows to
replace frame and then undo or redo the same action.
@tetektoza tetektoza force-pushed the add_undo_stack_for_frame_operations branch from f87d02d to 1cbc1dc Compare November 19, 2023 21:13
@StephenCWills StephenCWills merged commit 817c4b9 into diasurgical:master Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants