OpenASIP
2.0
|
#include <AddASCmd.hh>
Public Member Functions | |
AddASCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual AddASCmd * | create () const |
virtual std::string | shortName () 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 |
virtual std::string | icon () const |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
Command for adding new address spaces to the Machine.
Displays a address space dialog and creates a new address space according to the dialog output.
Definition at line 43 of file AddASCmd.hh.
AddASCmd::AddASCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 127 of file AddASCmd.cc.
References AddASCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 64 of file AddASCmd.cc.
References TTAMachine::Machine::addressSpaceNavigator(), assert, ProDeConstants::COMP_NEW_NAME_PREFIX_AS, ModelConstants::DEFAULT_AS_MAX_ADDRESS, ModelConstants::DEFAULT_AS_MIN_ADDRESS, ModelConstants::DEFAULT_WIDTH, Model::getMachine(), TTAMachine::Machine::Navigator< ComponentType >::hasItem(), Model::notifyObservers(), GUICommand::parentWindow(), Model::popFromStack(), Model::pushToStack(), Conversion::toString(), and EditorCommand::view().
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 116 of file AddASCmd.cc.
References ProDeConstants::COMMAND_ADD_AS.
|
virtual |
Returns true when the command is executable, false when not.
This command is executable when a document is open.
Reimplemented from EditorCommand.
Definition at line 151 of file AddASCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 138 of file AddASCmd.cc.
References ProDeConstants::CMD_SNAME_ADD_AS.