File indexing completed on 2025-01-26 04:10:30
0001 /* 0002 * SPDX-FileCopyrightText: 2013 Lukáš Tvrdý <lukast.dev@gmail.com> 0003 * SPDX-FileCopyrightText: 2022 L. E. Segovia <amy@amyspark.me> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef _KIS_GMIC_SYNCHRONIZE_LAYERS_COMMAND 0009 #define _KIS_GMIC_SYNCHRONIZE_LAYERS_COMMAND 0010 0011 #include <kundo2command.h> 0012 0013 #include <kis_image.h> 0014 #include <kis_selection.h> 0015 #include <kis_node.h> 0016 #include <kis_types.h> 0017 #include <kis_command_utils.h> 0018 0019 #include "kis_qmic_interface.h" 0020 0021 class KisQmicSynchronizeLayersCommand : public KisCommandUtils::CompositeCommand 0022 { 0023 public: 0024 KisQmicSynchronizeLayersCommand(KisNodeListSP nodes, 0025 QVector<KisQMicImageSP> images, 0026 KisImageWSP image, 0027 const QRect &dstRect = QRect(), 0028 KisSelectionSP selection = nullptr); 0029 0030 ~KisQmicSynchronizeLayersCommand() override; 0031 0032 void redo() override; 0033 void undo() override; 0034 0035 private: 0036 struct Private; 0037 Private* const d; 0038 0039 Q_DISABLE_COPY(KisQmicSynchronizeLayersCommand); 0040 }; 0041 0042 #endif