OpenASIP
2.0
|
#include <ProximOpenMachineCmd.hh>
Public Member Functions | |
ProximOpenMachineCmd () | |
virtual | ~ProximOpenMachineCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual ProximOpenMachineCmd * | create () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
virtual std::string | shortName () 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 opening a machine desctiption file in Proxim.
The command displays a file dialog for choosing the machine file to open.
Definition at line 43 of file ProximOpenMachineCmd.hh.
ProximOpenMachineCmd::ProximOpenMachineCmd | ( | ) |
|
virtual |
|
virtual |
Creates and returns a new isntance of this command.
Implements GUICommand.
Definition at line 122 of file ProximOpenMachineCmd.cc.
References ProximOpenMachineCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 64 of file ProximOpenMachineCmd.cc.
References assert, FileSystem::fileExtension(), GUICommand::parentWindow(), ProximConstants::SCL_LOAD_CONF, ProximConstants::SCL_LOAD_MACHINE, and WxConversion::toString().
|
virtual |
Returns full path to the command icon file.
Implements GUICommand.
Definition at line 102 of file ProximOpenMachineCmd.cc.
|
virtual |
Returns ID of this command.
Implements GUICommand.
Definition at line 111 of file ProximOpenMachineCmd.cc.
References ProximConstants::COMMAND_OPEN_MACHINE.
|
virtual |
Returns true if the command is enabled, false otherwise.
Implements GUICommand.
Definition at line 133 of file ProximOpenMachineCmd.cc.
|
virtual |
Returns shortened name of the command for toolbar button text.
Reimplemented from GUICommand.
Definition at line 143 of file ProximOpenMachineCmd.cc.