Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_crop_saved_extra_data.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_CROP_SAVED_EXTRA_DATA_H
8
#define __KIS_CROP_SAVED_EXTRA_DATA_H
9
10
#include <QRect>
11
12
#include "
kundo2commandextradata.h
"
13
#include "
kis_types.h
"
14
#include "kritaimage_export.h"
15
16
17
class
KRITAIMAGE_EXPORT
KisCropSavedExtraData
:
public
KUndo2CommandExtraData
18
{
19
public
:
20
enum
Type
{
21
CROP_IMAGE
,
22
RESIZE_IMAGE
,
23
CROP_LAYER
24
};
25
26
public
:
27
28
KisCropSavedExtraData
(Type type, QRect cropRect,
KisNodeSP
cropNode = 0);
29
~KisCropSavedExtraData
()
override
;
30
31
inline
Type
type
()
const
{
32
return
m_type;
33
}
34
35
inline
QRect
cropRect
()
const
{
36
return
m_cropRect;
37
}
38
39
inline
KisNodeSP
cropNode
()
const
{
40
return
m_cropNode;
41
}
42
43
KUndo2CommandExtraData
*
clone
()
const override
{
44
return
new
KisCropSavedExtraData
(*
this
);
45
}
46
47
private
:
48
Type
m_type
;
49
QRect
m_cropRect
;
50
KisNodeSP
m_cropNode
;
51
};
52
53
#endif
/* __KIS_CROP_SAVED_EXTRA_DATA_H */
KUndo2CommandExtraData
Definition
kundo2commandextradata.h:14
KisCropSavedExtraData
Definition
kis_crop_saved_extra_data.h:18
KisCropSavedExtraData::m_cropRect
QRect m_cropRect
Definition
kis_crop_saved_extra_data.h:49
KisCropSavedExtraData::cropRect
QRect cropRect() const
Definition
kis_crop_saved_extra_data.h:35
KisCropSavedExtraData::cropNode
KisNodeSP cropNode() const
Definition
kis_crop_saved_extra_data.h:39
KisCropSavedExtraData::m_type
Type m_type
Definition
kis_crop_saved_extra_data.h:48
KisCropSavedExtraData::type
Type type() const
Definition
kis_crop_saved_extra_data.h:31
KisCropSavedExtraData::m_cropNode
KisNodeSP m_cropNode
Definition
kis_crop_saved_extra_data.h:50
KisCropSavedExtraData::Type
Type
Definition
kis_crop_saved_extra_data.h:20
KisCropSavedExtraData::CROP_IMAGE
@ CROP_IMAGE
Definition
kis_crop_saved_extra_data.h:21
KisCropSavedExtraData::RESIZE_IMAGE
@ RESIZE_IMAGE
Definition
kis_crop_saved_extra_data.h:22
KisCropSavedExtraData::clone
KUndo2CommandExtraData * clone() const override
Definition
kis_crop_saved_extra_data.h:43
KisSharedPtr< KisNode >
kis_types.h
kundo2commandextradata.h
libs
image
kis_crop_saved_extra_data.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52