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++
946 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2016 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "kis_node_insertion_adapter.h"

struct KisNodeInsertionAdapter::Private
{
    KisNodeManager *nodeManager;
};

KisNodeInsertionAdapter::KisNodeInsertionAdapter(KisNodeManager *nodeManager)
    : m_d(new Private)
{
    m_d->nodeManager = nodeManager;
}

KisNodeInsertionAdapter::~KisNodeInsertionAdapter()
{
}

void KisNodeInsertionAdapter::moveNodes(KisNodeList nodes, KisNodeSP parent, KisNodeSP aboveThis)
{
    m_d->nodeManager->moveNodesDirect(nodes, parent, aboveThis);
}

void KisNodeInsertionAdapter::copyNodes(KisNodeList nodes, KisNodeSP parent, KisNodeSP aboveThis)
{
    m_d->nodeManager->copyNodesDirect(nodes, parent, aboveThis);
}

void KisNodeInsertionAdapter::addNodes(KisNodeList nodes, KisNodeSP parent, KisNodeSP aboveThis)
{
    m_d->nodeManager->addNodesDirect(nodes, parent, aboveThis);
}