OpenASIP
2.0
|
#include <AddBridgeCmd.hh>
Public Member Functions | |
AddBridgeCmd () | |
virtual | ~AddBridgeCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual AddBridgeCmd * | 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 bridges to the Machine.
Displays a bridge dialog and creates a new bridge according to the dialog output.
Definition at line 43 of file AddBridgeCmd.hh.
AddBridgeCmd::AddBridgeCmd | ( | ) |
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 166 of file AddBridgeCmd.cc.
References AddBridgeCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 79 of file AddBridgeCmd.cc.
References assert, TTAMachine::Machine::bridgeNavigator(), TTAMachine::Machine::busNavigator(), MachineTester::canBridge(), ProDeConstants::COMP_NEW_NAME_PREFIX_BRIDGE, TTAMachine::Machine::Navigator< ComponentType >::count(), Model::getMachine(), TTAMachine::Machine::Navigator< ComponentType >::hasItem(), ProDeTextGenerator::instance(), TTAMachine::Machine::Navigator< ComponentType >::item(), machine, ProDeTextGenerator::MSG_ERROR_CANNOT_BRIDGE, Model::notifyObservers(), GUICommand::parentWindow(), Model::popFromStack(), Model::pushToStack(), Texts::TextGenerator::text(), Conversion::toString(), WxConversion::toWxString(), and EditorCommand::view().
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 155 of file AddBridgeCmd.cc.
References ProDeConstants::COMMAND_ADD_BRIDGE.
|
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 191 of file AddBridgeCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 178 of file AddBridgeCmd.cc.
References ProDeConstants::CMD_SNAME_ADD_BRIDGE.