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
13#include "kis_types.h"
14#include "kritaimage_export.h"
15
16
17class KRITAIMAGE_EXPORT KisCropSavedExtraData : public KUndo2CommandExtraData
18{
19public:
20 enum Type {
23 CROP_LAYER
24 };
25
26public:
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
47private:
51};
52
53#endif /* __KIS_CROP_SAVED_EXTRA_DATA_H */
KUndo2CommandExtraData * clone() const override