5 #include <editor/UnigineUndo.h> 7 #include <UnigineNode.h> 8 #include <UnigineVector.h> 14 namespace UnigineEditor
17 class SelectionActionPrivate;
18 class CreateNodesActionPrivate;
19 class RemoveNodesActionPrivate;
20 class SetNodeTransformActionPrivate;
21 class ReparentNodesActionPrivate;
22 class RenameNodeActionPrivate;
23 class EnableNodeActionPrivate;
27 namespace UnigineEditor
40 void apply()
override;
44 void redo()
override { apply(); }
58 bool validate()
override;
62 static void applySelection(Selector *selector);
65 static void refreshSelection(
bool expand =
false);
68 ::UnigineEditor::SelectionActionPrivate *
const d;
84 void apply()
override;
90 Unigine::Vector<Unigine::NodePtr> getNodes()
const;
93 ::UnigineEditor::CreateNodesActionPrivate *
const d;
109 void apply()
override;
111 void undo()
override;
113 void redo()
override { apply(); }
121 bool validate()
override;
123 Unigine::Vector<Unigine::NodePtr> getNodes()
const;
126 ::UnigineEditor::RemoveNodesActionPrivate *
const d;
137 const Unigine::Math::Mat4 &transform);
141 void apply()
override;
143 void undo()
override;
145 void redo()
override;
152 bool validate()
override;
154 Unigine::NodePtr getNode()
const;
157 ::UnigineEditor::SetNodeTransformActionPrivate *
const d;
169 const Unigine::NodePtr &new_parent,
174 void apply()
override;
176 void undo()
override;
178 void redo()
override;
181 ::UnigineEditor::ReparentNodesActionPrivate *
const d;
191 explicit RenameNodeAction(
const Unigine::NodePtr &node,
const char *new_name);
195 void apply()
override;
197 void undo()
override;
199 void redo()
override;
206 bool validate()
override;
209 ::UnigineEditor::RenameNodeActionPrivate *
const d;
223 EnableNodeAction(
const Unigine::Vector<Unigine::NodePtr> &nodes,
bool enabled);
227 void apply()
override;
229 void undo()
override;
231 void redo()
override;
238 bool validate()
override;
241 ::UnigineEditor::EnableNodeActionPrivate *
const d;
This class is used to represent any user's action changing nodes parents.
Definition: UnigineActions.h:161
This class is used to represent any user's action changing node's name.
Definition: UnigineActions.h:185
void redo() override
Redoes the previously undone selection action (reverses the undo method).
Definition: UnigineActions.h:44
bool modifiesWorld() const override
Indicates whether the action brings any changes to the scene. Selection actions change nothing and sh...
Definition: UnigineActions.h:51
This basic class is used to represent any possible user action.
Definition: UnigineUndo.h:83
This class is used to represent any user's action changing node's enabled state.
Definition: UnigineActions.h:213
void redo() override
Redoes the previously undone remove nodes action (reverses the undo method).
Definition: UnigineActions.h:113
This class is used to represent any user's action creating nodes.
Definition: UnigineActions.h:72
This class is used to represent any user's action removing nodes.
Definition: UnigineActions.h:97
This class is used to represent any user's selection action.
Definition: UnigineActions.h:31