OpenASIP
2.0
|
#include <ProximQuitCmd.hh>
Public Member Functions | |
ProximQuitCmd () | |
virtual | ~ProximQuitCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual ProximQuitCmd * | create () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
Private Attributes | |
SimulatorFrontend * | simulator_ |
Command for quiting Proxim.
Definition at line 43 of file ProximQuitCmd.hh.
ProximQuitCmd::ProximQuitCmd | ( | ) |
The Constructor.
Definition at line 50 of file ProximQuitCmd.cc.
References ProximToolbox::frontend(), and simulator_.
Referenced by create().
|
virtual |
|
virtual |
Creates and returns a new isntance of this command.
Implements GUICommand.
Definition at line 145 of file ProximQuitCmd.cc.
References ProximQuitCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 69 of file ProximQuitCmd.cc.
References assert, ProximConstants::CONFIGURATION_NAME, Exception::errorMessage(), ProximLineReader::input(), SimulatorFrontend::isSimulationRunning(), SimulatorFrontend::isSimulationStopped(), ProximToolbox::lineReader(), options, GUICommand::parentWindow(), ProximConstants::SCL_QUIT, XMLSerializer::setDestinationFile(), simulator_, WxConversion::toWxString(), Environment::userConfPath(), and GUIOptionsSerializer::writeOptions().
|
virtual |
Returns full path to the command icon file.
Implements GUICommand.
Definition at line 125 of file ProximQuitCmd.cc.
|
virtual |
Returns ID of this command.
Implements GUICommand.
Definition at line 134 of file ProximQuitCmd.cc.
References ProximConstants::COMMAND_QUIT.
|
virtual |
Returns true if the command is enabled, false otherwise.
Implements GUICommand.
Definition at line 156 of file ProximQuitCmd.cc.
|
private |
Definition at line 54 of file ProximQuitCmd.hh.
Referenced by Do(), and ProximQuitCmd().