Commit 53769cbb authored by Dmitry Kazakov's avatar Dmitry Kazakov

Hide as much as possible in KisMimeData class

KisView still uses loadNodes() so we cannot hide it yet. Ideally, the
D&D functionality in KisView should be merged with the code in
insertMimeLayers().
parent 89bc8f2f
......@@ -54,27 +54,27 @@ public:
*/
QStringList formats() const;
//private:
/**
* Try load the node, which belongs to the same Krita instance,
* that is can be fetched without serialization
*/
static QList<KisNodeSP> tryLoadInternalNodes(const QMimeData *data,
KisImageWSP image,
KisShapeController *shapeController,
bool /* IN-OUT */ &copyNode);
/**
* Loads a node from a mime container
* Supports application/x-krita-node and image types.
*/
static QList<KisNodeSP> loadNodes(const QMimeData *data,
static KisNodeList loadNodes(const QMimeData *data,
const QRect &imageBounds,
const QPoint &preferredCenter,
bool forceRecenter,
KisImageWSP image,
KisShapeController *shapeController);
private:
/**
* Try load the node, which belongs to the same Krita instance,
* that is can be fetched without serialization
*/
static KisNodeList tryLoadInternalNodes(const QMimeData *data,
KisImageWSP image,
KisShapeController *shapeController,
bool /* IN-OUT */ &copyNode);
public:
static QMimeData* mimeForLayers(const KisNodeList &nodes, KisNodeSP imageRoot, bool forceCopy = false);
static bool insertMimeLayers(const QMimeData *data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment