Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_macro_based_undo_store.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
10#include "kis_global.h"
11
12
18
23
27
29{
30 KIS_ASSERT(0 && "Not implemented");
31 return 0;
32}
33
35{
36 KIS_ASSERT(0 && "Not implemented");
37}
38
40{
45 cmd->redo();
46 m_d->command->addCommand(toQShared(cmd));
47
48 Q_EMIT historyStateChanged();
49}
50
52{
53 Q_UNUSED(macroName);
54 KIS_ASSERT(0 && "Not implemented");
55}
56
58{
59 KIS_ASSERT(0 && "Not implemented");
60}
61
63{
64 KIS_ASSERT(0 && "Not implemented");
65}
66
virtual void redo()
KisMacroBasedUndoStore(KisSavedMacroCommand *command)
const QScopedPointer< Private > m_d
void beginMacro(const KUndo2MagicString &macroName) override
const KUndo2Command * presentCommand() override
void addCommand(KUndo2Command *cmd) override
void historyStateChanged()
#define KIS_ASSERT(cond)
Definition kis_assert.h:33
QSharedPointer< T > toQShared(T *ptr)
Private(KisSavedMacroCommand *_command)