mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: Add GUndoStack and GCommand classes
This patch converts the undo stack from GTextDocument into GUndoStack, and GTextDocumentUndoCommand now inherits from GCommand. Let's turn this into a generic mechanism that can be used to implement undo/redo in any application. :^)
This commit is contained in:
parent
f8703d44cc
commit
f430da1d45
Notes:
sideshowbarker
2024-07-19 11:01:20 +09:00
Author: https://github.com/awesomekling
Commit: f430da1d45
7 changed files with 156 additions and 73 deletions
5
Libraries/LibGUI/GCommand.cpp
Normal file
5
Libraries/LibGUI/GCommand.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <LibGUI/GCommand.h>
|
||||
|
||||
GCommand::~GCommand()
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue