mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
FontEditor: Make undo/redo compatible with multi-glyph selections
Previously the glyph undo stack saved an array of bytes representing the restore state of an individual glyph when modified. Now the selection undo stack saves a byte buffer of the entire selection, letting us restore changes to multiple glyphs at once.
This commit is contained in:
parent
5c27ce2561
commit
a3956da6dc
Notes:
sideshowbarker
2024-07-17 17:14:07 +09:00
Author: https://github.com/thankyouverycool
Commit: a3956da6dc
Pull-request: https://github.com/SerenityOS/serenity/pull/13089
5 changed files with 99 additions and 108 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "UndoGlyph.h"
|
||||
#include "UndoSelection.h"
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/FilteringProxyModel.h>
|
||||
#include <LibGUI/GlyphMapWidget.h>
|
||||
|
@ -77,7 +77,7 @@ private:
|
|||
|
||||
RefPtr<GUI::Action> m_undo_action;
|
||||
RefPtr<GUI::Action> m_redo_action;
|
||||
RefPtr<UndoGlyph> m_undo_glyph;
|
||||
RefPtr<UndoSelection> m_undo_selection;
|
||||
OwnPtr<GUI::UndoStack> m_undo_stack;
|
||||
|
||||
RefPtr<GUI::Action> m_go_to_glyph_action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue