File indexing completed on 2024-12-22 04:10:01
0001 /* 0002 * SPDX-FileCopyrightText: 2002 Patrick Julien <freak@codepimps.org> 0003 * SPDX-FileCopyrightText: 2007 Sven Langkamp <sven.langkamp@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KIS_IMAGE_CHANGE_LAYERS_COMMAND_H_ 0009 #define KIS_IMAGE_CHANGE_LAYERS_COMMAND_H_ 0010 0011 #include <kritaimage_export.h> 0012 #include "kis_types.h" 0013 #include "kis_image_command.h" 0014 0015 class KisImageChangeLayersCommand : public KisImageCommand 0016 { 0017 0018 public: 0019 KisImageChangeLayersCommand(KisImageWSP image, KisNodeSP oldRootLayer, KisNodeSP newRootLayer); 0020 0021 void redo() override; 0022 void undo() override; 0023 0024 private: 0025 KisNodeSP m_oldRootLayer; 0026 KisNodeSP m_newRootLayer; 0027 }; 0028 0029 #endif 0030