OpenASIP
2.0
|
#include <GUICommand.hh>
Inherited by AddBusEntryCmd, AddCostFunctionPluginCmd, AddFUArchFromADFCmd, AddFUEntryCmd, AddFUImplementationCmd, AddOperationImplementationCmd, AddOperationImplementationResourceCmd, AddRFArchitectureCmd, AddRFEntryCmd, AddRFImplementationCmd, AddSocketEntryCmd, ClearDisassemblyHighlightCmd, CreateHDBCmd, EditorCommand, HDBEditorAboutCmd, HDBEditorDeleteCmd, HDBEditorModifyCmd, HDBEditorQuitCmd, HighlightExecPercentageCmd, HighlightTopExecCountsCmd, OpenHDBCmd, OSEdAboutCmd, OSEdAddModuleCmd, OSEdAddOperationCmd, OSEdBuildAllCmd, OSEdBuildCmd, OSEdMemoryCmd, OSEdModifyBehaviorCmd, OSEdOptionsCmd, OSEdPropertiesCmd, OSEdQuitCmd, OSEdRemoveModuleCmd, OSEdRemoveOperationCmd, OSEdSimulateCmd, OSEdUserManualCmd, ProximAboutCmd, ProximCDCmd, ProximClearConsoleCmd, ProximExecuteFileCmd, ProximFindCmd, ProximKillCmd, ProximNewPortWindowCmd, ProximNewRegisterWindowCmd, ProximNextICmd, ProximOpenMachineCmd, ProximOpenProgramCmd, ProximOptionsCmd, ProximQuitCmd, ProximResumeCmd, ProximRunCmd, ProximSimulatorSettingsCmd, ProximStepICmd, SetCostFunctionPluginCmd, SetFUArchitectureCmd, SetRFArchitectureCmd, and UserManualCmd.
Public Member Functions | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual int | id () const =0 |
virtual GUICommand * | create () const =0 |
virtual bool | Do ()=0 |
virtual bool | isEnabled ()=0 |
virtual std::string | icon () const =0 |
virtual bool | isChecked () const |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
Private Attributes | |
wxWindow * | parent_ |
Parent window of the command. More... | |
std::string | name_ |
Name of the command. More... | |
Base class for editor commands, which can be added to menus or toolbar.
Definition at line 43 of file GUICommand.hh.
GUICommand::GUICommand | ( | std::string | name, |
wxWindow * | parent = NULL |
||
) |
The Constructor.
Definition at line 42 of file GUICommand.cc.
|
virtual |
|
pure virtual |
Creates a new GUICommand instance.
Implemented in FullyConnectBussesCmd, PasteComponentCmd, ProximCDCmd, ProximNextICmd, ProximResumeCmd, OSEdAboutCmd, OSEdAddModuleCmd, OSEdAddOperationCmd, OSEdBuildAllCmd, OSEdBuildCmd, OSEdMemoryCmd, OSEdModifyBehaviorCmd, OSEdOptionsCmd, OSEdPropertiesCmd, OSEdQuitCmd, OSEdRemoveModuleCmd, OSEdRemoveOperationCmd, OSEdSimulateCmd, OSEdUserManualCmd, ProximExecuteFileCmd, ProximKillCmd, ProximOpenMachineCmd, ProximOpenProgramCmd, ProximOptionsCmd, ProximQuitCmd, ProximRunCmd, ProximSimulatorSettingsCmd, ProximStepICmd, CreateHDBCmd, OpenHDBCmd, AddBridgeCmd, AddGCUCmd, CallExplorerPluginCmd, EditOTAFormatsCmd, EditTemplatesCmd, ImplementMachineCmd, ProDeExportCmd, HighlightTopExecCountsCmd, ProximAboutCmd, ProximFindCmd, HDBEditorAboutCmd, AddASCmd, AddBusCmd, AddFUCmd, AddIUCmd, AddRFCmd, AddSocketCmd, CopyComponentCmd, CutComponentCmd, DeleteComponentCmd, EditConnectionsCmd, EditOptionsCmd, ModifyComponentCmd, PrintPreviewCmd, SaveOptionsCmd, VerifyMachineCmd, VLIWConnectICCmd, ClearDisassemblyHighlightCmd, HighlightExecPercentageCmd, ProximClearConsoleCmd, ProximNewPortWindowCmd, ProximNewRegisterWindowCmd, AddBusEntryCmd, AddCostFunctionPluginCmd, AddFUArchFromADFCmd, AddFUEntryCmd, AddFUImplementationCmd, AddRFArchitectureCmd, AddRFEntryCmd, AddRFImplementationCmd, AddSocketEntryCmd, AddFUArchFromADFCmd, HDBEditorDeleteCmd, HDBEditorModifyCmd, HDBEditorQuitCmd, SetCostFunctionPluginCmd, SetFUArchitectureCmd, SetRFArchitectureCmd, AddFUFromHDBCmd, AddIUFromHDBCmd, AddRFFromHDBCmd, BlocksConnectICCmd, CloseDocumentCmd, EditBusOrderCmd, EditImmediateSlotsCmd, NewDocumentCmd, OpenDocumentCmd, PrintCmd, QuitCmd, RedoCmd, SaveDocumentAsCmd, SaveDocumentCmd, SelectCmd, ToggleUnitDetailsCmd, UndoCmd, UserManualCmd, AboutCmd, EditAddressSpacesCmd, FitHeightCmd, FitWidthCmd, FitWindowCmd, ZoomInCmd, ZoomOutCmd, EditMachineCmd, AddOperationImplementationCmd, and AddOperationImplementationResourceCmd.
|
pure virtual |
Executes the command.
Implemented in FullyConnectBussesCmd, PasteComponentCmd, OSEdAboutCmd, OSEdAddModuleCmd, OSEdAddOperationCmd, OSEdBuildAllCmd, OSEdBuildCmd, OSEdMemoryCmd, OSEdModifyBehaviorCmd, OSEdOptionsCmd, OSEdPropertiesCmd, OSEdQuitCmd, OSEdRemoveModuleCmd, OSEdRemoveOperationCmd, OSEdSimulateCmd, OSEdUserManualCmd, ProximCDCmd, ProximNextICmd, ProximResumeCmd, ProximExecuteFileCmd, ProximKillCmd, ProximOpenMachineCmd, ProximOpenProgramCmd, ProximOptionsCmd, ProximQuitCmd, ProximRunCmd, ProximStepICmd, CreateHDBCmd, OpenHDBCmd, AddBridgeCmd, AddGCUCmd, CallExplorerPluginCmd, EditOTAFormatsCmd, EditTemplatesCmd, ImplementMachineCmd, ProDeExportCmd, HighlightTopExecCountsCmd, ProximAboutCmd, ProximFindCmd, HDBEditorAboutCmd, AddASCmd, AddBusCmd, AddFUCmd, AddIUCmd, AddRFCmd, AddSocketCmd, CopyComponentCmd, CutComponentCmd, DeleteComponentCmd, EditConnectionsCmd, EditOptionsCmd, ModifyComponentCmd, PrintPreviewCmd, SaveOptionsCmd, VerifyMachineCmd, VLIWConnectICCmd, ClearDisassemblyHighlightCmd, HighlightExecPercentageCmd, ProximClearConsoleCmd, ProximNewPortWindowCmd, ProximNewRegisterWindowCmd, ProximSimulatorSettingsCmd, AddBusEntryCmd, AddCostFunctionPluginCmd, AddFUArchFromADFCmd, AddFUEntryCmd, AddFUImplementationCmd, AddRFArchitectureCmd, AddRFEntryCmd, AddRFImplementationCmd, AddSocketEntryCmd, AddFUArchFromADFCmd, HDBEditorDeleteCmd, HDBEditorModifyCmd, HDBEditorQuitCmd, SetCostFunctionPluginCmd, SetFUArchitectureCmd, SetRFArchitectureCmd, AddFUFromHDBCmd, AddIUFromHDBCmd, AddRFFromHDBCmd, BlocksConnectICCmd, CloseDocumentCmd, EditBusOrderCmd, EditImmediateSlotsCmd, NewDocumentCmd, OpenDocumentCmd, PrintCmd, QuitCmd, RedoCmd, SaveDocumentAsCmd, SaveDocumentCmd, SelectCmd, ToggleUnitDetailsCmd, UndoCmd, UserManualCmd, AboutCmd, EditAddressSpacesCmd, FitHeightCmd, FitWidthCmd, FitWindowCmd, ZoomInCmd, ZoomOutCmd, EditMachineCmd, AddOperationImplementationCmd, and AddOperationImplementationResourceCmd.
Referenced by QuitCmd::Do(), ProximMainFrame::onClose(), OSEdMainFrame::onCommandEvent(), HDBEditorMainFrame::onCommandEvent(), MainFrame::onCommandEvent(), ProximMainFrame::onCommandEvent(), and OSEdTreeView::onItemClicked().
|
pure virtual |
Returns name of the command icon file.
Implemented in PasteComponentCmd, EditorCommand, OSEdAboutCmd, OSEdAddModuleCmd, OSEdAddOperationCmd, OSEdBuildAllCmd, OSEdBuildCmd, OSEdMemoryCmd, OSEdModifyBehaviorCmd, OSEdOptionsCmd, OSEdPropertiesCmd, OSEdQuitCmd, OSEdRemoveModuleCmd, OSEdRemoveOperationCmd, OSEdSimulateCmd, OSEdUserManualCmd, ProximCDCmd, ProximNextICmd, ProximResumeCmd, ProximExecuteFileCmd, ProximKillCmd, ProximOpenMachineCmd, ProximOpenProgramCmd, ProximOptionsCmd, ProximQuitCmd, ProximRunCmd, ProximStepICmd, CreateHDBCmd, OpenHDBCmd, CallExplorerPluginCmd, DeleteComponentCmd, EditOptionsCmd, EditOTAFormatsCmd, EditTemplatesCmd, ImplementMachineCmd, ModifyComponentCmd, PrintPreviewCmd, HighlightTopExecCountsCmd, ProximAboutCmd, ProximFindCmd, HDBEditorAboutCmd, CloseDocumentCmd, CopyComponentCmd, CutComponentCmd, EditConnectionsCmd, NewDocumentCmd, OpenDocumentCmd, SaveDocumentAsCmd, SaveDocumentCmd, SaveOptionsCmd, VerifyMachineCmd, ClearDisassemblyHighlightCmd, HighlightExecPercentageCmd, ProximClearConsoleCmd, ProximNewPortWindowCmd, ProximNewRegisterWindowCmd, ProximSimulatorSettingsCmd, AddBusEntryCmd, AddCostFunctionPluginCmd, AddFUArchFromADFCmd, AddFUEntryCmd, AddFUImplementationCmd, AddRFArchitectureCmd, AddRFEntryCmd, AddRFImplementationCmd, AddSocketEntryCmd, AddFUArchFromADFCmd, HDBEditorDeleteCmd, HDBEditorModifyCmd, HDBEditorQuitCmd, SetCostFunctionPluginCmd, SetFUArchitectureCmd, SetRFArchitectureCmd, AboutCmd, AddFUFromHDBCmd, AddIUFromHDBCmd, AddRFFromHDBCmd, EditImmediateSlotsCmd, PrintCmd, QuitCmd, RedoCmd, SelectCmd, UndoCmd, UserManualCmd, EditAddressSpacesCmd, FitHeightCmd, FitWidthCmd, FitWindowCmd, ZoomInCmd, ZoomOutCmd, EditMachineCmd, AddOperationImplementationCmd, and AddOperationImplementationResourceCmd.
|
pure virtual |
Returns the ID of the command.
Implemented in FullyConnectBussesCmd, PasteComponentCmd, ProximCDCmd, ProximNextICmd, ProximResumeCmd, OSEdAboutCmd, OSEdAddModuleCmd, OSEdAddOperationCmd, OSEdBuildAllCmd, OSEdBuildCmd, OSEdMemoryCmd, OSEdModifyBehaviorCmd, OSEdOptionsCmd, OSEdPropertiesCmd, OSEdQuitCmd, OSEdRemoveModuleCmd, OSEdRemoveOperationCmd, OSEdSimulateCmd, OSEdUserManualCmd, ProximExecuteFileCmd, ProximKillCmd, ProximOpenMachineCmd, ProximOpenProgramCmd, ProximOptionsCmd, ProximQuitCmd, ProximRunCmd, ProximStepICmd, CreateHDBCmd, OpenHDBCmd, AddBridgeCmd, AddGCUCmd, CallExplorerPluginCmd, EditOTAFormatsCmd, EditTemplatesCmd, ImplementMachineCmd, ProDeExportCmd, HighlightTopExecCountsCmd, ProximAboutCmd, ProximFindCmd, ProximSimulatorSettingsCmd, HDBEditorAboutCmd, AddASCmd, AddBusCmd, AddFUCmd, AddIUCmd, AddRFCmd, AddSocketCmd, CopyComponentCmd, CutComponentCmd, DeleteComponentCmd, EditConnectionsCmd, EditOptionsCmd, ModifyComponentCmd, PrintPreviewCmd, SaveOptionsCmd, VerifyMachineCmd, VLIWConnectICCmd, ClearDisassemblyHighlightCmd, HighlightExecPercentageCmd, ProximClearConsoleCmd, ProximNewPortWindowCmd, ProximNewRegisterWindowCmd, AddBusEntryCmd, AddCostFunctionPluginCmd, AddFUArchFromADFCmd, AddFUEntryCmd, AddFUImplementationCmd, AddRFArchitectureCmd, AddRFEntryCmd, AddRFImplementationCmd, AddSocketEntryCmd, AddFUArchFromADFCmd, HDBEditorDeleteCmd, HDBEditorModifyCmd, HDBEditorQuitCmd, SetCostFunctionPluginCmd, SetFUArchitectureCmd, SetRFArchitectureCmd, AddFUFromHDBCmd, AddIUFromHDBCmd, AddRFFromHDBCmd, BlocksConnectICCmd, CloseDocumentCmd, EditBusOrderCmd, EditImmediateSlotsCmd, NewDocumentCmd, OpenDocumentCmd, PrintCmd, QuitCmd, RedoCmd, SaveDocumentAsCmd, SaveDocumentCmd, SelectCmd, ToggleUnitDetailsCmd, UndoCmd, UserManualCmd, AboutCmd, EditAddressSpacesCmd, FitHeightCmd, FitWidthCmd, FitWindowCmd, ZoomInCmd, ZoomOutCmd, EditMachineCmd, AddOperationImplementationCmd, and AddOperationImplementationResourceCmd.
Referenced by OptionsDialog::readCommands(), DropDownMenu::updateMenu(), and OSEdMainFrame::updateMenuBar().
|
virtual |
Returns true if a checkbox related to the command is checked.
This is meaningful only for toggle-type commands.
Reimplemented in ToggleUnitDetailsCmd.
Definition at line 112 of file GUICommand.cc.
Referenced by MainFrame::onUpdateUI().
|
pure virtual |
Returns true if the command is executable, false otherwise.
Implemented in FullyConnectBussesCmd, PasteComponentCmd, EditorCommand, ProximCDCmd, ProximNextICmd, ProximResumeCmd, CallExplorerPluginCmd, EditOTAFormatsCmd, EditTemplatesCmd, ImplementMachineCmd, OSEdAboutCmd, OSEdAddModuleCmd, OSEdAddOperationCmd, OSEdBuildAllCmd, OSEdBuildCmd, OSEdMemoryCmd, OSEdModifyBehaviorCmd, OSEdOptionsCmd, OSEdPropertiesCmd, OSEdQuitCmd, OSEdRemoveModuleCmd, OSEdRemoveOperationCmd, OSEdSimulateCmd, OSEdUserManualCmd, ProximExecuteFileCmd, ProximKillCmd, ProximOpenMachineCmd, ProximOpenProgramCmd, ProximOptionsCmd, ProximQuitCmd, ProximRunCmd, ProximStepICmd, CreateHDBCmd, OpenHDBCmd, AddBridgeCmd, AddGCUCmd, DeleteComponentCmd, EditConnectionsCmd, EditOptionsCmd, ModifyComponentCmd, PrintPreviewCmd, SaveOptionsCmd, VerifyMachineCmd, HighlightTopExecCountsCmd, ProximAboutCmd, ProximFindCmd, HDBEditorAboutCmd, AddASCmd, AddBusCmd, AddFUCmd, AddFUFromHDBCmd, AddIUCmd, AddIUFromHDBCmd, AddRFCmd, AddRFFromHDBCmd, AddSocketCmd, CloseDocumentCmd, CopyComponentCmd, CutComponentCmd, EditImmediateSlotsCmd, NewDocumentCmd, OpenDocumentCmd, ProDeExportCmd, SaveDocumentAsCmd, SaveDocumentCmd, UserManualCmd, ClearDisassemblyHighlightCmd, HighlightExecPercentageCmd, ProximClearConsoleCmd, ProximNewPortWindowCmd, ProximNewRegisterWindowCmd, AddBusEntryCmd, AddCostFunctionPluginCmd, AddFUArchFromADFCmd, AddFUEntryCmd, AddFUImplementationCmd, AddRFArchitectureCmd, AddRFEntryCmd, AddRFImplementationCmd, AddSocketEntryCmd, AddFUArchFromADFCmd, HDBEditorDeleteCmd, HDBEditorModifyCmd, HDBEditorQuitCmd, SetCostFunctionPluginCmd, SetFUArchitectureCmd, SetRFArchitectureCmd, EditAddressSpacesCmd, FitHeightCmd, FitWidthCmd, FitWindowCmd, PrintCmd, QuitCmd, RedoCmd, SelectCmd, ToggleUnitDetailsCmd, UndoCmd, VLIWConnectICCmd, ZoomInCmd, ZoomOutCmd, BlocksConnectICCmd, EditBusOrderCmd, EditMachineCmd, AboutCmd, ProximSimulatorSettingsCmd, AddOperationImplementationCmd, and AddOperationImplementationResourceCmd.
Referenced by ProximMainFrame::onClose(), MainFrame::onCommandEvent(), HDBEditorMainFrame::onUpdateUI(), MainFrame::onUpdateUI(), ProximMainFrame::updateCommand(), DropDownMenu::updateMenu(), and OSEdMainFrame::updateMenuBar().
std::string GUICommand::name | ( | ) | const |
Returns name of the command.
Definition at line 99 of file GUICommand.cc.
References name_.
Referenced by OptionsDialog::readCommands().
wxWindow * GUICommand::parentWindow | ( | ) | const |
Returns parent window of the command.
Definition at line 75 of file GUICommand.cc.
References parent_.
Referenced by UserManualCmd::askFromUser(), HDBEditorDeleteCmd::confirmDeletion(), EditMachineCmd::Do(), EditAddressSpacesCmd::Do(), AboutCmd::Do(), SetRFArchitectureCmd::Do(), AddRFImplementationCmd::Do(), QuitCmd::Do(), SetCostFunctionPluginCmd::Do(), HDBEditorModifyCmd::Do(), SetFUArchitectureCmd::Do(), AddFUFromHDBCmd::Do(), AddFUImplementationCmd::Do(), AddCostFunctionPluginCmd::Do(), AddFUArchFromADFCmd::Do(), EditBusOrderCmd::Do(), EditImmediateSlotsCmd::Do(), PrintCmd::Do(), AddIUFromHDBCmd::Do(), AddRFArchitectureCmd::Do(), AddRFFromHDBCmd::Do(), HDBEditorDeleteCmd::Do(), ProximSimulatorSettingsCmd::Do(), SaveOptionsCmd::Do(), VerifyMachineCmd::Do(), AddBusCmd::Do(), AddFUCmd::Do(), AddSocketCmd::Do(), ModifyComponentCmd::Do(), CopyComponentCmd::Do(), CutComponentCmd::Do(), AddASCmd::Do(), DeleteComponentCmd::Do(), AddIUCmd::Do(), PrintPreviewCmd::Do(), ProximAboutCmd::Do(), EditOptionsCmd::Do(), AddRFCmd::Do(), ProximFindCmd::Do(), HDBEditorAboutCmd::Do(), ProximKillCmd::Do(), ProximQuitCmd::Do(), ProximOpenProgramCmd::Do(), CallExplorerPluginCmd::Do(), OpenHDBCmd::Do(), ProximOptionsCmd::Do(), ProximOpenMachineCmd::Do(), CreateHDBCmd::Do(), AddGCUCmd::Do(), EditOTAFormatsCmd::Do(), AddBridgeCmd::Do(), ProximExecuteFileCmd::Do(), ProDeExportCmd::Do(), EditTemplatesCmd::Do(), ImplementMachineCmd::Do(), ProximCDCmd::Do(), OSEdOptionsCmd::Do(), OSEdAddModuleCmd::Do(), OSEdRemoveOperationCmd::Do(), OSEdAddOperationCmd::Do(), OSEdBuildAllCmd::Do(), OSEdSimulateCmd::Do(), OSEdModifyBehaviorCmd::Do(), OSEdPropertiesCmd::Do(), OSEdRemoveModuleCmd::Do(), OSEdBuildCmd::Do(), OSEdMemoryCmd::Do(), OSEdAboutCmd::Do(), and PasteComponentCmd::Do().
void GUICommand::setParentWindow | ( | wxWindow * | parent | ) |
Sets the parent window of the command.
Window will be used as parent for the dialogs created by this command.
parent | Parent window for the command dialogs. |
Definition at line 64 of file GUICommand.cc.
References parent_.
Referenced by ProximMainFrame::onClose(), OSEdMainFrame::onCommandEvent(), HDBEditorMainFrame::onCommandEvent(), MainFrame::onCommandEvent(), ProximMainFrame::onCommandEvent(), OSEdTreeView::onItemClicked(), and SelectTool::onMouseEvent().
|
virtual |
Returns short version of the command name.
Base class implementation returns the command normal name.
Reimplemented in FullyConnectBussesCmd, ProximOpenMachineCmd, ProximOpenProgramCmd, CallExplorerPluginCmd, EditOTAFormatsCmd, EditTemplatesCmd, ImplementMachineCmd, AddBridgeCmd, AddGCUCmd, EditConnectionsCmd, SaveOptionsCmd, VerifyMachineCmd, VLIWConnectICCmd, AddASCmd, AddBusCmd, AddFUCmd, AddFUFromHDBCmd, AddIUCmd, AddIUFromHDBCmd, AddRFCmd, AddRFFromHDBCmd, AddSocketCmd, BlocksConnectICCmd, DeleteComponentCmd, EditBusOrderCmd, EditImmediateSlotsCmd, EditOptionsCmd, ModifyComponentCmd, PrintPreviewCmd, UserManualCmd, CloseDocumentCmd, EditAddressSpacesCmd, FitHeightCmd, FitWidthCmd, FitWindowCmd, NewDocumentCmd, OpenDocumentCmd, SaveDocumentAsCmd, SaveDocumentCmd, ToggleUnitDetailsCmd, ZoomInCmd, ZoomOutCmd, and EditMachineCmd.
Definition at line 88 of file GUICommand.cc.
References name_.
|
private |
Name of the command.
Definition at line 93 of file GUICommand.hh.
Referenced by name(), and shortName().
|
private |
Parent window of the command.
Definition at line 91 of file GUICommand.hh.
Referenced by parentWindow(), and setParentWindow().