OpenASIP
2.0
|
#include <UndoCmd.hh>
Public Member Functions | |
UndoCmd () | |
virtual | ~UndoCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual UndoCmd * | create () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
Public Member Functions inherited from EditorCommand | |
EditorCommand (std::string name, wxWindow *parent=NULL) | |
virtual | ~EditorCommand () |
void | setView (wxView *view) |
wxView * | view () const |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
EditorCommand for undoing modifications to the machine.
Definition at line 41 of file UndoCmd.hh.
UndoCmd::UndoCmd | ( | ) |
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 85 of file UndoCmd.cc.
References UndoCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 62 of file UndoCmd.cc.
References EditorCommand::view().
|
virtual |
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 97 of file UndoCmd.cc.
References ProDeConstants::CMD_ICON_UNDO.
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 74 of file UndoCmd.cc.
References ProDeConstants::COMMAND_UNDO.
|
virtual |
Returns true when the command is executable, false when not.
This command is executable when the model's undo stack is not empty.
Reimplemented from EditorCommand.
Definition at line 110 of file UndoCmd.cc.
References Model::canUndo(), and EditorCommand::view().