7 #ifndef CAFU_COMMAND_GROUP_SET_PROPERTY_HPP_INCLUDED
8 #define CAFU_COMMAND_GROUP_SET_PROPERTY_HPP_INCLUDED
10 #include "../../CommandPattern.hpp"
22 enum PropT { PROP_NAME, PROP_COLOR, PROP_CANSELECT, PROP_SELECTASGROUP };
61 const wxString m_OldName;
62 const wxColor m_OldColor;
65 const wxString m_NewName;
66 const wxColor m_NewColor;
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
This class implements a command for setting the properties (other than the visibility) of a group...
Definition: Group_SetProp.hpp:18
void Undo()
This method un-does the command.
Definition: Group_SetProp.cpp:98
const GroupT * GetGroup() const
Returns the group whose property is set.
Definition: Group_SetProp.hpp:44
bool Do()
This method executes the command.
Definition: Group_SetProp.cpp:67
This class represents groups.
Definition: Group.hpp:20
CommandGroupSetPropT(MapDocumentT &MapDoc, GroupT *Group, const wxString &NewName)
The constructor for setting a new name.
Definition: Group_SetProp.cpp:13
PropT GetProp() const
Returns which property is set.
Definition: Group_SetProp.hpp:47
wxString GetName() const
Returns the name (a description) of the command.
Definition: Group_SetProp.cpp:128
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30