6 #include <UnigineNode.h> 12 class SelectionActionPrivate;
13 class RemoveNodesActionPrivate;
14 class SetNodeTransformActionPrivate;
15 class ReparentNodesActionPrivate;
16 class RenameNodeActionPrivate;
17 class EnableNodeActionPrivate;
34 void apply()
override;
38 void redo()
override { apply(); }
52 bool validate()
override;
56 static void applySelection(
Selector *selector);
59 static void refreshSelection(
bool expand =
false);
62 SelectionActionPrivate *
d;
78 void apply()
override;
82 void redo()
override { apply(); }
90 bool validate()
override;
92 QVector<Unigine::NodePtr> getNodes()
const;
95 RemoveNodesActionPrivate *d;
106 const Unigine::Math::Mat4 &transform);
110 void apply()
override;
112 void undo()
override;
114 void redo()
override;
121 bool validate()
override;
123 Unigine::NodePtr getNode()
const;
126 SetNodeTransformActionPrivate *d;
138 const Unigine::NodePtr &new_parent,
143 void apply()
override;
145 void undo()
override;
147 void redo()
override;
150 ReparentNodesActionPrivate *d;
164 void apply()
override;
166 void undo()
override;
168 void redo()
override;
175 bool validate()
override;
178 RenameNodeActionPrivate *d;
192 void apply()
override;
194 void undo()
override;
196 void redo()
override;
203 bool validate()
override;
206 EnableNodeActionPrivate *d;
This class is used to represent any user's action changing node's enabled state.
Definition: Actions.h:182
Definition: Selector.h:48
This class is used to represent any user's selection action.
Definition: Actions.h:25
This class is used to represent any user's action removing nodes.
Definition: Actions.h:66
SelectionActionPrivate * d
Definition: Actions.h:62
This class is used to represent any user's action changing node's name.
Definition: Actions.h:154
This class is used to represent any user's action changing nodes parents.
Definition: Actions.h:130
void redo() override
Redoes the previously undone remove nodes action (reverses the undo method).
Definition: Actions.h:82
void redo() override
Redoes the previously undone selection action (reverses the undo method).
Definition: Actions.h:38
This basic class is used to represent any possible user action.
Definition: Undo.h:82
bool modifiesWorld() const override
Indicates whether the action brings any changes to the scene. Selection actions change nothing and sh...
Definition: Actions.h:45