Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSimpleModifyTransformMaskCommand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISSIMPLEMODIFYTRANSFORMMASKCOMMAND_H
8#define KISSIMPLEMODIFYTRANSFORMMASKCOMMAND_H
9
10#include "kritaimage_export.h"
11#include "kis_types.h"
12#include <boost/none.hpp>
13
14#include <kundo2command.h>
15
16
17class KRITAIMAGE_EXPORT KisSimpleModifyTransformMaskCommand : public KUndo2Command
18{
19public:
23 KUndo2Command *parent = nullptr);
24
25 int id() const override;
26
27 bool mergeWith(const KUndo2Command *other) override;
28
29 void undo() override;
30
31 void redo() override;
32
33private:
34 bool m_isInitialized {false};
35
39
41
42 std::vector<std::unique_ptr<KUndo2Command>> m_undoCommands;
43};
44
45#endif // KISSIMPLEMODIFYTRANSFORMMASKCOMMAND_H
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
std::vector< std::unique_ptr< KUndo2Command > > m_undoCommands