Public Member Functions | |
CommandSetCompVarArrayT (DocAdapterI &DocAdapter, cf::TypeSys::VarArrayT< T > &Var, const ArrayT< T > &NewValues) | |
The constructor for setting the given arry to a new set of values. More... | |
CommandSetCompVarArrayT (DocAdapterI &DocAdapter, cf::TypeSys::VarArrayT< T > &Var, const cf::Network::StateT &OldState) | |
The constructor to be used when the array has already been set to the new set of values. More... | |
bool | Do () |
This method executes the command. More... | |
void | Undo () |
This method un-does the command. More... | |
wxString | GetName () const |
Returns the name (a description) of the command. More... | |
![]() | |
CommandT (bool ShowInHistory=true, bool SuggestsSave=true) | |
The constructor. More... | |
virtual | ~CommandT () |
The virtual destructor. More... | |
bool | ShowInHistory () const |
Whether the command should be shown in the undo/redo history. More... | |
bool | SuggestsSave () const |
Whether the command suggests to save the document when its closed and hasn't been saved between the command execution and the closing (selection changes for example don't suggest to save the document since no important changes have been made). More... | |
bool | IsDone () const |
Whether the command has been executed. More... | |
unsigned long | GetID () const |
Returns the commands unique ID. More... | |
Additional Inherited Members | |
![]() | |
bool | m_Done |
Whether the command has been executed. More... | |
const bool | m_ShowInHistory |
Whether the command should have an entry in the undo/redo history. More... | |
const bool | m_SuggestsSave |
Whether the command suggests saving of the document on close. More... | |
const unsigned long | m_ID |
The commands unique ID. More... | |
CommandSetCompVarArrayT< T >::CommandSetCompVarArrayT | ( | DocAdapterI & | DocAdapter, |
cf::TypeSys::VarArrayT< T > & | Var, | ||
const ArrayT< T > & | NewValues | ||
) |
The constructor for setting the given arry to a new set of values.
CommandSetCompVarArrayT< T >::CommandSetCompVarArrayT | ( | DocAdapterI & | DocAdapter, |
cf::TypeSys::VarArrayT< T > & | Var, | ||
const cf::Network::StateT & | OldState | ||
) |
The constructor to be used when the array has already been set to the new set of values.
With this constructor, the command is initialized in the "already done" state.
|
virtual |
This method executes the command.
Implements CommandT.
|
virtual |
Returns the name (a description) of the command.
Implements CommandT.
|
virtual |
This method un-does the command.
Implements CommandT.