9#include <klocalizedstring.h>
The command for adding a layer.
KisGroupLayerSP rootLayer() const
KisSelectionSP globalSelection() const
KisSetEmptyGlobalSelectionCommand(KisImageWSP image)
KisSetGlobalSelectionCommand(KisImageWSP image, KisSelectionSP selection)
KisSelectionSP m_newSelection
void populateChildCommands() override
KisSelectionSP m_oldSelection
KisSharedPtr< T > toStrongRef() const
toStrongRef returns a KisSharedPtr which may be dereferenced.
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
QSharedPointer< T > toQShared(T *ptr)
void addCommand(KUndo2Command *cmd)
virtual KisSelectionMaskSP selectionMask() const
void initSelection(KisSelectionSP copyFrom, KisLayerSP parentLayer)
initSelection initializes the selection for the mask from the given selection's projection.
KisNodeSP lastChild() const
void setSelection(KisSelectionSP selection)
Set the selection of this adjustment layer to a copy of selection.