1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00: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:
Andreas Kling 2019-11-30 15:36:17 +01:00
parent f8703d44cc
commit f430da1d45
7 changed files with 156 additions and 73 deletions

View file

@ -57,6 +57,8 @@ OBJS = \
GAboutDialog.o \
GModelSelection.o \
GLazyWidget.o \
GCommand.o \
GUndoStack.o \
GWindow.o
LIBRARY = libgui.a