Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.1 KB
Raw Blame
/*
 * SPDX-FileCopyrightText: 2013 Lukáš Tvrdý <[email protected]>
 * SPDX-FileCopyrightText: 2022 L. E. Segovia <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef _KIS_GMIC_SYNCHRONIZE_LAYERS_COMMAND
#define _KIS_GMIC_SYNCHRONIZE_LAYERS_COMMAND

#include <kundo2command.h>

#include <kis_image.h>
#include <kis_selection.h>
#include <kis_node.h>
#include <kis_types.h>
#include <kis_command_utils.h>

#include "kis_qmic_interface.h"

class KisQmicSynchronizeLayersCommand : public KisCommandUtils::CompositeCommand
{
public:
    KisQmicSynchronizeLayersCommand(KisNodeListSP nodes,
                                    QVector<KisQMicImageSP> images,
                                    KisImageWSP image,
                                    const QRect &dstRect = QRect(),
                                    KisSelectionSP selection = nullptr);

    ~KisQmicSynchronizeLayersCommand() override;

    void redo() override;
    void undo() override;

private:
    struct Private;
    Private* const d;

    Q_DISABLE_COPY(KisQmicSynchronizeLayersCommand);
};

#endif