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;
79 void apply()
override;
83 void redo()
override { apply(); }
91 bool validate()
override;
93 QVector<Unigine::NodePtr> getNodes()
const;
95 RemoveNodesActionPrivate *d;
107 const Unigine::Math::Mat4 &transform);
111 void apply()
override;
113 void undo()
override;
115 void redo()
override;
122 bool validate()
override;
124 Unigine::NodePtr getNode()
const;
127 SetNodeTransformActionPrivate *d;
139 const Unigine::NodePtr &new_parent,
144 void apply()
override;
146 void undo()
override;
148 void redo()
override;
151 ReparentNodesActionPrivate *d;
165 void apply()
override;
167 void undo()
override;
169 void redo()
override;
176 bool validate()
override;
179 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:183
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:67
SelectionActionPrivate * d
Definition: Actions.h:62
This class is used to represent any user's action changing node's name.
Definition: Actions.h:155
This class is used to represent any user's action changing nodes parents.
Definition: Actions.h:131
void redo() override
Redoes the previously undone remove nodes action (reverses the undo method).
Definition: Actions.h:83
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