8#ifndef __KIS_MERGE_LABELED_LAYERS_H
9#define __KIS_MERGE_LABELED_LAYERS_H
13#include <QSharedPointer>
16#include "kritaimage_export.h"
46 GroupSelectionPolicy_NeverSelect
106 bool forceRegeneration =
false,
111 void undo()
override;
112 void redo()
override;
114 static KisPaintDeviceSP createRefPaintDevice(
KisImageSP originalImage, QString name =
"Merge Labeled Layers Reference Paint Device");
117 void mergeLabeledLayers();
118 bool hasToCheckForChangesInNodes()
const;
119 QPair<KisNodeSP, QPair<bool, bool>> collectNode(
KisNodeSP node)
const;
ReferenceNodeInfoListSP m_prevRefNodeInfoList
ReferenceNodeInfoListSP m_newRefNodeInfoList
KisPaintDeviceSP m_prevRefPaintDevice
KisPaintDeviceSP m_newRefPaintDevice
GroupSelectionPolicy
Policies to stablish how the groups should be treated.
@ GroupSelectionPolicy_SelectIfColorLabeled
Groups will be taken into account only if they have set an explicit color label. This ignores groups ...
@ GroupSelectionPolicy_SelectAlways
Groups will be taken into account if their color label matches one of the selected color labels,...
GroupSelectionPolicy m_groupSelectionPolicy
QList< int > m_selectedLabels
Basic info about a node. This is used to compare and see if the node changed.
bool operator==(const ReferenceNodeInfo &other) const