OpenASIP
2.0
|
#include <AddIUCmd.hh>
Public Member Functions | |
AddIUCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual AddIUCmd * | 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 immediate units to the Machine.
Displays a immediate unit dialog and creates a new immediate unit according to the dialog output.
Definition at line 43 of file AddIUCmd.hh.
AddIUCmd::AddIUCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 126 of file AddIUCmd.cc.
References AddIUCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 64 of file AddIUCmd.cc.
References assert, ProDeConstants::COMP_NEW_NAME_PREFIX_IU, ModelConstants::DEFAULT_IU_GUARD_LATENCY, ModelConstants::DEFAULT_IU_MAX_READS, ModelConstants::DEFAULT_IU_SIZE, ModelConstants::DEFAULT_WIDTH, Model::getMachine(), TTAMachine::Machine::Navigator< ComponentType >::hasItem(), TTAMachine::Machine::immediateUnitNavigator(), Model::notifyObservers(), GUICommand::parentWindow(), Model::popFromStack(), Model::pushToStack(), TTAMachine::Unit::setMachine(), Conversion::toString(), and EditorCommand::view().
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 115 of file AddIUCmd.cc.
References ProDeConstants::COMMAND_ADD_IU.
|
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 150 of file AddIUCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 137 of file AddIUCmd.cc.
References ProDeConstants::CMD_SNAME_ADD_IU.