Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_document_undo_store.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2011 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_DOCUMENT_UNDO_STORE_H
8#define __KIS_DOCUMENT_UNDO_STORE_H
9
10#include "kis_undo_store.h"
11#include "kritaui_export.h"
12
13class KisDocument;
14
15class KRITAUI_EXPORT KisDocumentUndoStore : public KisUndoStore
16{
17public:
19
20 const KUndo2Command* presentCommand() override;
21 void undoLastCommand() override;
22 void addCommand(KUndo2Command *cmd) override;
23 void beginMacro(const KUndo2MagicString& macroName) override;
24 void endMacro() override;
25 void purgeRedoState() override;
26
27private:
29};
30
31#endif /* __KIS_DOCUMENT_UNDO_STORES_H */
virtual void addCommand(KUndo2Command *cmd)=0
virtual const KUndo2Command * presentCommand()=0
virtual void endMacro()=0
virtual void purgeRedoState()=0
virtual void beginMacro(const KUndo2MagicString &macroName)=0
virtual void undoLastCommand()=0