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
"
12
#include "
commands_new/KisAsynchronouslyMergeableCommandInterface.h
"
13
14
#include <
KoColor.h
>
15
16
#include <
kundo2command.h
>
17
18
19
class
KRITAIMAGE_EXPORT
KisChangeProjectionColorCommand
:
public
KUndo2Command
,
public
KisAsynchronouslyMergeableCommandInterface
20
{
21
public
:
22
KisChangeProjectionColorCommand
(
KisImageSP
image,
const
KoColor
&newColor,
KUndo2Command
*parent = 0);
23
~KisChangeProjectionColorCommand
()
override
;
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
32
private
:
33
KisImageWSP
m_image
;
34
KoColor
m_oldColor
;
35
KoColor
m_newColor
;
36
};
37
38
#endif
/* __KIS_CHANGE_PROJECTION_COLOR_COMMAND_H */
KisAsynchronouslyMergeableCommandInterface.h
KoColor.h
KUndo2Command
Definition
kundo2stack.h:87
KUndo2Command::mergeWith
virtual bool mergeWith(const KUndo2Command *other)
Definition
kundo2stack.cpp:205
KUndo2Command::undo
virtual void undo()
Definition
kundo2stack.cpp:240
KUndo2Command::redo
virtual void redo()
Definition
kundo2stack.cpp:222
KUndo2Command::id
virtual int id() const
Definition
kundo2stack.cpp:181
KisAsynchronouslyMergeableCommandInterface
Definition
KisAsynchronouslyMergeableCommandInterface.h:31
KisAsynchronouslyMergeableCommandInterface::canMergeWith
virtual bool canMergeWith(const KUndo2Command *command) const =0
KisChangeProjectionColorCommand
Definition
kis_change_projection_color_command.h:20
KisChangeProjectionColorCommand::m_image
KisImageWSP m_image
Definition
kis_change_projection_color_command.h:33
KisChangeProjectionColorCommand::m_newColor
KoColor m_newColor
Definition
kis_change_projection_color_command.h:35
KisChangeProjectionColorCommand::m_oldColor
KoColor m_oldColor
Definition
kis_change_projection_color_command.h:34
KisSharedPtr< KisImage >
KisWeakSharedPtr< KisImage >
KoColor
Definition
KoColor.h:31
kis_types.h
kundo2command.h
libs
image
commands_new
kis_change_projection_color_command.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52