File indexing completed on 2024-12-22 04:10:03

0001 /*
0002  *  SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KIS_SELECTION_MOVE_COMMAND2_H
0007 #define KIS_SELECTION_MOVE_COMMAND2_H
0008 
0009 #include "kis_move_command_common.h"
0010 
0011 /**
0012  * A specialized class for moving a selection without its flattening and recalculation
0013  * of the outline cache. See details in a comment to KisMoveCommandCommon.
0014  */
0015 class KRITAIMAGE_EXPORT KisSelectionMoveCommand2 : public KisMoveCommandCommon<KisSelectionSP>
0016 {
0017 public:
0018     KisSelectionMoveCommand2(KisSelectionSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = 0);
0019 
0020     void undo() override;
0021     void redo() override;
0022 };
0023 
0024 #endif