|
OpenASIP 2.2
|
#include <ToggleUnitDetailsCmd.hh>


Public Member Functions | |
| ToggleUnitDetailsCmd () | |
| virtual | ~ToggleUnitDetailsCmd () |
| virtual bool | Do () |
| virtual int | id () const |
| virtual ToggleUnitDetailsCmd * | create () const |
| virtual std::string | shortName () const |
| virtual bool | isEnabled () |
| virtual bool | isChecked () const |
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 () |
| void | setParentWindow (wxWindow *view) |
| wxWindow * | parentWindow () const |
| std::string | name () const |
EditorCommand for toggling unit info string visibility in the canvas.
Definition at line 41 of file ToggleUnitDetailsCmd.hh.
| ToggleUnitDetailsCmd::ToggleUnitDetailsCmd | ( | ) |
The Constructor.
Definition at line 48 of file ToggleUnitDetailsCmd.cc.
Referenced by create().
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 116 of file ToggleUnitDetailsCmd.cc.
References ToggleUnitDetailsCmd().

|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 66 of file ToggleUnitDetailsCmd.cc.
References MDFView::canvas(), OptionValue::isFlagOn(), MachineCanvas::options(), Options::optionValue(), OptionValue::setBoolValue(), MachineCanvasOptions::SHOW_UNIT_INFO_STRING, MachineCanvas::updateMachine(), and EditorCommand::view().

|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 105 of file ToggleUnitDetailsCmd.cc.
References ProDeConstants::COMMAND_TOGGLE_UNIT_DETAILS.
|
virtual |
Returns state of the check-item related to this command.
Reimplemented from GUICommand.
Definition at line 83 of file ToggleUnitDetailsCmd.cc.
References MDFView::canvas(), OptionValue::isFlagOn(), MachineCanvas::options(), Options::optionValue(), MachineCanvasOptions::SHOW_UNIT_INFO_STRING, and EditorCommand::view().

|
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 140 of file ToggleUnitDetailsCmd.cc.
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 127 of file ToggleUnitDetailsCmd.cc.
References ProDeConstants::CMD_SNAME_TOGGLE_UNIT_DETAILS.