Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNotifySelectionChangedCommand.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#include "
KisNotifySelectionChangedCommand.h
"
8
9
#include "
kis_image.h
"
10
11
KisNotifySelectionChangedCommand::KisNotifySelectionChangedCommand
(
KisImageWSP
image,
State
state)
12
:
KisCommandUtils
::FlipFlopCommand(state)
13
, m_image(image)
14
{
15
}
16
void
KisNotifySelectionChangedCommand::partB
()
17
{
18
KisImageSP
image =
m_image
.
toStrongRef
();
19
KIS_SAFE_ASSERT_RECOVER_RETURN
(image);
20
image->
notifySelectionChanged
();
21
}
KisNotifySelectionChangedCommand.h
KisImage::notifySelectionChanged
void notifySelectionChanged() override
Definition
kis_image.cc:2337
KisNotifySelectionChangedCommand::partB
void partB()
Definition
KisNotifySelectionChangedCommand.cpp:16
KisNotifySelectionChangedCommand::m_image
KisImageWSP m_image
Definition
KisNotifySelectionChangedCommand.h:21
KisNotifySelectionChangedCommand::KisNotifySelectionChangedCommand
KisNotifySelectionChangedCommand(KisImageWSP image, State state)
Definition
KisNotifySelectionChangedCommand.cpp:11
KisSharedPtr< KisImage >
KisWeakSharedPtr< KisImage >
KisWeakSharedPtr::toStrongRef
KisSharedPtr< T > toStrongRef() const
toStrongRef returns a KisSharedPtr which may be dereferenced.
Definition
kis_shared_ptr.h:418
KIS_SAFE_ASSERT_RECOVER_RETURN
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
Definition
kis_assert.h:128
kis_image.h
KisCommandUtils
Definition
kis_command_ids.h:10
KisCommandUtils::FlipFlopCommand::State
State
Definition
kis_command_utils.h:98
libs
image
commands
KisNotifySelectionChangedCommand.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52