mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
PixelPaint: Use UndoStack instead of History
This allows to share more code with other undo systems.
This commit is contained in:
parent
7707ebcd63
commit
a27d118085
7 changed files with 41 additions and 134 deletions
|
@ -26,9 +26,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "History.h"
|
||||
#include "Image.h"
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGUI/UndoStack.h>
|
||||
#include <LibGfx/Point.h>
|
||||
|
||||
namespace PixelPaint {
|
||||
|
@ -108,7 +108,7 @@ private:
|
|||
|
||||
RefPtr<Image> m_image;
|
||||
RefPtr<Layer> m_active_layer;
|
||||
History m_history;
|
||||
OwnPtr<GUI::UndoStack> m_undo_stack;
|
||||
|
||||
Tool* m_active_tool { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue