5 #include <editor/Undo.h> 7 #include <UnigineNode.h> 8 #include <UnigineVector.h> 14 class SelectionActionPrivate;
15 class CreateNodesActionPrivate;
16 class RemoveNodesActionPrivate;
17 class SetNodeTransformActionPrivate;
18 class ReparentNodesActionPrivate;
19 class RenameNodeActionPrivate;
20 class EnableNodeActionPrivate;
37 void apply()
override;
41 void redo()
override { apply(); }
55 bool validate()
override;
59 static void applySelection(
Selector *selector);
62 static void refreshSelection(
bool expand =
false);
65 SelectionActionPrivate *
d;
81 void apply()
override;
87 Unigine::Vector<Unigine::NodePtr> getNodes()
const;
90 CreateNodesActionPrivate *d;
106 void apply()
override;
108 void undo()
override;
110 void redo()
override { apply(); }
118 bool validate()
override;
120 Unigine::Vector<Unigine::NodePtr> getNodes()
const;
123 RemoveNodesActionPrivate *d;
134 const Unigine::Math::Mat4 &transform);
138 void apply()
override;
140 void undo()
override;
142 void redo()
override;
149 bool validate()
override;
151 Unigine::NodePtr getNode()
const;
154 SetNodeTransformActionPrivate *d;
166 const Unigine::NodePtr &new_parent,
171 void apply()
override;
173 void undo()
override;
175 void redo()
override;
178 ReparentNodesActionPrivate *d;
188 explicit RenameNodeAction(
const Unigine::NodePtr &node,
const char *new_name);
192 void apply()
override;
194 void undo()
override;
196 void redo()
override;
203 bool validate()
override;
206 RenameNodeActionPrivate *d;
220 EnableNodeAction(
const Unigine::Vector<Unigine::NodePtr> &nodes,
bool enabled);
224 void apply()
override;
226 void undo()
override;
228 void redo()
override;
235 bool validate()
override;
238 EnableNodeActionPrivate *d;
This class is used to represent any user's action changing node's enabled state.
Definition: Actions.h:210
Definition: Selector.h:49
This class is used to represent any user's selection action.
Definition: Actions.h:28
This class is used to represent any user's action removing nodes.
Definition: Actions.h:94
SelectionActionPrivate * d
Definition: Actions.h:65
This class is used to represent any user's action changing node's name.
Definition: Actions.h:182
This class is used to represent any user's action changing nodes parents.
Definition: Actions.h:158
void redo() override
Redoes the previously undone remove nodes action (reverses the undo method).
Definition: Actions.h:110
void redo() override
Redoes the previously undone selection action (reverses the undo method).
Definition: Actions.h:41
This class is used to represent any user's action creating nodes.
Definition: Actions.h:69
This basic class is used to represent any possible user action.
Definition: Undo.h:83
bool modifiesWorld() const override
Indicates whether the action brings any changes to the scene. Selection actions change nothing and sh...
Definition: Actions.h:48