Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_undo_store.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2003 Patrick Julien <freak@codepimps.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_UNDO_STORE_H_
8#define KIS_UNDO_STORE_H_
9
10#include <QObject>
11
12#include <kritacommand_export.h>
13
14class KUndo2Command;
16
17
44class KRITACOMMAND_EXPORT KisUndoStore : public QObject
45{
46 Q_OBJECT
47public:
49 virtual ~KisUndoStore();
50
51public:
56 virtual const KUndo2Command* presentCommand() = 0;
57 virtual void undoLastCommand() = 0;
58 virtual void addCommand(KUndo2Command *cmd) = 0;
59 virtual void beginMacro(const KUndo2MagicString& macroName) = 0;
60 virtual void endMacro() = 0;
61 virtual void purgeRedoState() = 0;
62
63Q_SIGNALS:
65
66private:
67 Q_DISABLE_COPY(KisUndoStore)
68};
69
70
71#endif // KIS_UNDO_STORE_H_
72
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
void historyStateChanged()