Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_change_projection_color_command.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_CHANGE_PROJECTION_COLOR_COMMAND_H
8#define __KIS_CHANGE_PROJECTION_COLOR_COMMAND_H
9
10#include "kritaimage_export.h"
11#include "kis_types.h"
13
14#include <KoColor.h>
15
16#include <kundo2command.h>
17
18
20{
21public:
22 KisChangeProjectionColorCommand(KisImageSP image, const KoColor &newColor, KUndo2Command *parent = 0);
24
25 void redo() override;
26 void undo() override;
27
28 int id() const override;
29 bool mergeWith(const KUndo2Command* command) override;
30 bool canMergeWith(const KUndo2Command *command) const override;
31
32private:
36};
37
38#endif /* __KIS_CHANGE_PROJECTION_COLOR_COMMAND_H */
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual int id() const
virtual bool canMergeWith(const KUndo2Command *command) const =0