OpenASIP
2.0
|
#include <AddRFCmd.hh>
Public Member Functions | |
AddRFCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual AddRFCmd * | 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 register files to the Machine.
Displays a register file dialog and creates a new register file according to the dialog output.
Definition at line 43 of file AddRFCmd.hh.
AddRFCmd::AddRFCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 126 of file AddRFCmd.cc.
References AddRFCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 66 of file AddRFCmd.cc.
References assert, ProDeConstants::COMP_NEW_NAME_PREFIX_RF, ModelConstants::DEFAULT_RF_GUARD_LATENCY, ModelConstants::DEFAULT_RF_MAX_READS, ModelConstants::DEFAULT_RF_MAX_WRITES, ModelConstants::DEFAULT_RF_SIZE, ModelConstants::DEFAULT_WIDTH, Model::getMachine(), TTAMachine::Machine::Navigator< ComponentType >::hasItem(), NORMAL, Model::notifyObservers(), GUICommand::parentWindow(), Model::popFromStack(), Model::pushToStack(), TTAMachine::Machine::registerFileNavigator(), TTAMachine::Unit::setMachine(), Conversion::toString(), and EditorCommand::view().
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 115 of file AddRFCmd.cc.
References ProDeConstants::COMMAND_ADD_RF.
|
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 149 of file AddRFCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 136 of file AddRFCmd.cc.
References ProDeConstants::CMD_SNAME_ADD_RF.