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

undo/redoの実装 #6

Open
Cj-bc opened this issue Sep 2, 2024 · 0 comments
Open

undo/redoの実装 #6

Cj-bc opened this issue Sep 2, 2024 · 0 comments

Comments

@Cj-bc
Copy link
Owner

Cj-bc commented Sep 2, 2024

どのような機能が欲しいか

  • 作業を巻き戻したい。例えば「値Aの時と値Bの時の見た目の差を見比べたい」とかなると、巻き戻らし・進みができると理想。

設計案

  • Command Pattern

懸念事項

アプリケーション自体が値を書き換えてくる問題

  1. ツール側で値を書き換える
  2. アプリケーションが値を書き換える
  3. Undoを実行する

こうしたとき、3. のUndoは何をUndoすれば良いのだろうか?

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

No branches or pull requests

1 participant