Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_set_global_selection_command.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2007 Sven Langkamp <sven.langkamp@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#ifndef KIS_SET_GLOBAL_SELECTION_COMMAND_H
7
#define KIS_SET_GLOBAL_SELECTION_COMMAND_H
8
9
#include <kritaimage_export.h>
10
#include <
kundo2command.h
>
11
#include "
kis_types.h
"
12
#include "
kis_command_utils.h
"
13
18
class
KRITAIMAGE_EXPORT
KisSetGlobalSelectionCommand
:
public
KisCommandUtils::AggregateCommand
19
{
20
21
public
:
28
KisSetGlobalSelectionCommand
(
KisImageWSP
image,
KisSelectionSP
selection);
29
30
void
populateChildCommands
()
override
;
31
32
private
:
33
KisImageWSP
m_image
;
34
KisSelectionSP
m_newSelection
;
35
KisSelectionSP
m_oldSelection
;
36
};
37
42
class
KRITAIMAGE_EXPORT
KisSetEmptyGlobalSelectionCommand
:
public
KisSetGlobalSelectionCommand
43
{
44
public
:
45
KisSetEmptyGlobalSelectionCommand
(
KisImageWSP
image);
46
};
47
48
#endif
//KIS_SET_GLOBAL_SELECTION_COMMAND_H
KisSetEmptyGlobalSelectionCommand
Definition
kis_set_global_selection_command.h:43
KisSetGlobalSelectionCommand
Definition
kis_set_global_selection_command.h:19
KisSetGlobalSelectionCommand::m_image
KisImageWSP m_image
Definition
kis_set_global_selection_command.h:33
KisSetGlobalSelectionCommand::m_newSelection
KisSelectionSP m_newSelection
Definition
kis_set_global_selection_command.h:34
KisSetGlobalSelectionCommand::m_oldSelection
KisSelectionSP m_oldSelection
Definition
kis_set_global_selection_command.h:35
KisSharedPtr< KisSelection >
KisWeakSharedPtr< KisImage >
kis_command_utils.h
kis_types.h
kundo2command.h
KisCommandUtils::AggregateCommand
The AggregateCommand struct is a command with delayed initialization. On first redo() populateChildCo...
Definition
kis_command_utils.h:27
KisCommandUtils::AggregateCommand::populateChildCommands
virtual void populateChildCommands()=0
libs
image
commands
kis_set_global_selection_command.h
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1