File indexing completed on 2024-05-12 16:01:34
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KIS_NODE_INSERTION_ADAPTER_H 0008 #define __KIS_NODE_INSERTION_ADAPTER_H 0009 0010 #include <QScopedPointer> 0011 0012 #include "kis_node_manager.h" 0013 #include "kis_node.h" 0014 0015 0016 class KisNodeInsertionAdapter 0017 { 0018 public: 0019 KisNodeInsertionAdapter(KisNodeManager *nodeManager); 0020 ~KisNodeInsertionAdapter(); 0021 0022 void moveNodes(KisNodeList nodes, KisNodeSP parent, KisNodeSP aboveThis); 0023 void copyNodes(KisNodeList nodes, KisNodeSP parent, KisNodeSP aboveThis); 0024 void addNodes(KisNodeList nodes, KisNodeSP parent, KisNodeSP aboveThis); 0025 0026 private: 0027 struct Private; 0028 const QScopedPointer<Private> m_d; 0029 }; 0030 0031 #endif /* __KIS_NODE_INSERTION_ADAPTER_H */