OpenASIP
2.0
|
#include <AddGCUCmd.hh>
Public Member Functions | |
AddGCUCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual AddGCUCmd * | 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 |
Static Private Attributes | |
static const std::string | RA_PORT_NAME = "ra" |
Name for the return address port. More... | |
static const std::string | OP_PORT_NAME = "pc" |
Name for the jump/call operand port. More... | |
static const std::string | OPNAME_JUMP = "jump" |
Name string for the jump operation. More... | |
static const std::string | OPNAME_CALL = "call" |
Name string for the call operation. More... | |
Command for adding new global control unit to the Machine.
Displays a global control unit dialog and creates a new global control unit according to the dialog output.
Definition at line 44 of file AddGCUCmd.hh.
AddGCUCmd::AddGCUCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 151 of file AddGCUCmd.cc.
References AddGCUCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 78 of file AddGCUCmd.cc.
References TTAMachine::ExecutionPipeline::addPortRead(), assert, TTAMachine::HWOperation::bindPort(), ProDeConstants::COMP_DEFAULT_NAME_GCU, TTAMachine::Machine::controlUnit(), Model::getMachine(), ProDeTextGenerator::instance(), ProDeTextGenerator::MSG_ERROR_ONE_GCU, Model::notifyObservers(), OP_PORT_NAME, OPNAME_CALL, OPNAME_JUMP, GUICommand::parentWindow(), TTAMachine::HWOperation::pipeline(), Model::popFromStack(), Model::pushToStack(), RA_PORT_NAME, TTAMachine::ControlUnit::setMachine(), TTAMachine::ControlUnit::setReturnAddressPort(), Texts::TextGenerator::text(), WxConversion::toWxString(), and EditorCommand::view().
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 140 of file AddGCUCmd.cc.
References ProDeConstants::COMMAND_ADD_GCU.
|
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 176 of file AddGCUCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 163 of file AddGCUCmd.cc.
References ProDeConstants::CMD_SNAME_ADD_GCU.
|
staticprivate |
Name for the jump/call operand port.
Definition at line 57 of file AddGCUCmd.hh.
Referenced by Do().
|
staticprivate |
|
staticprivate |
|
staticprivate |