Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_property_list_command.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2009 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_IMAGE_NODE_PROPERTY_LIST_COMMAND_H_
8#define KIS_IMAGE_NODE_PROPERTY_LIST_COMMAND_H_
9
10#include "kis_node_command.h"
11#include "kis_base_node.h"
13
14
17{
18
19public:
26
27 void redo() override;
28 void undo() override;
29
30 int id() const override;
31 bool mergeWith(const KUndo2Command *command) override;
32 bool canMergeWith(const KUndo2Command *command) const override;
33 bool canAnnihilateWith(const KUndo2Command *other) const override;
34
36 static void setNodePropertiesAutoUndo(KisNodeSP node, KisImageSP image, PropertyList proplist);
37
38private:
39 void doUpdate(const KisBaseNode::PropertyList &oldPropertyList,
40 const KisBaseNode::PropertyList &newPropertyList, const QRect &totalUpdateExtent);
41 static const QSet<QString>& propsWithNoUpdates();
42private:
45};
46#endif
virtual bool mergeWith(const KUndo2Command *other)
virtual void undo()
virtual void redo()
virtual bool canAnnihilateWith(const KUndo2Command *other) const
virtual int id() const
virtual bool canMergeWith(const KUndo2Command *command) const =0
the base command for commands altering a node
The command for changing the property list of a layer.
KisBaseNode::PropertyList m_newPropertyList
KisBaseNode::PropertyList m_oldPropertyList