7 #ifndef CAFU_COMMAND_REPARENT_PRIMITIVE_HPP_INCLUDED
8 #define CAFU_COMMAND_REPARENT_PRIMITIVE_HPP_INCLUDED
10 #include "../../CommandPattern.hpp"
11 #include "Templates/Pointer.hpp"
14 namespace MapEditor {
class CompMapEntityT; }
CommandReparentPrimitiveT(MapDocumentT &MapDoc, MapPrimitiveT *Prim, IntrusivePtrT< CompMapEntityT > NewParent)
The constructor for assigning a map primitive to another entity.
Definition: ReparentPrimitive.cpp:17
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
bool Do()
This method executes the command.
Definition: ReparentPrimitive.cpp:39
This class adds no functionality of its own, but only exists for proper type separation.
Definition: MapPrimitive.hpp:21
wxString GetName() const
Returns the name (a description) of the command.
Definition: ReparentPrimitive.cpp:101
A command to assign one or several map primitives to another entity.
Definition: ReparentPrimitive.hpp:22
void Undo()
This method un-does the command.
Definition: ReparentPrimitive.cpp:73
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30