OpenASIP
2.0
|
#include <ComponentCommand.hh>
Public Member Functions | |
ComponentCommand () | |
virtual | ~ComponentCommand () |
virtual bool | Do ()=0 |
wxWindow * | parentWindow () |
void | setParentWindow (wxWindow *window) |
Private Attributes | |
wxWindow * | parentWindow_ |
Parent window of the command. More... | |
Base class for the commands created by component EditPolicies.
Setting the parent window allows command to popup dialogs.
Definition at line 46 of file ComponentCommand.hh.
ComponentCommand::ComponentCommand | ( | ) |
|
virtual |
|
pure virtual |
Implemented in ProximBusDetailsCmd, ProximFUDetailsCmd, ProximFUPortDetailsCmd, ProximIUDetailsCmd, ProximRFDetailsCmd, ProximSocketDetailsCmd, SocketPortConnCmd, ProximShowPortsCmd, ProximShowRegistersCmd, ModifyBridgeCmd, SocketBusConnCmd, ProximSetMachineWinStatusCmd, DeleteBridgeCmd, ModifyFUPortCmd, ModifyIUPortCmd, ModifyRFPortCmd, ModifySRPortCmd, CopyComponent, DeletePortCmd, DeleteSegmentCmd, ModifyBusCmd, ModifyFUCmd, ModifyGCUCmd, ModifyIUCmd, ModifyRFCmd, ModifySocketCmd, SetStatusTextCmd, ProximComponentStatusCmd, DeleteBusCmd, DeleteFUCmd, DeleteGCUCmd, DeleteIUCmd, DeleteRFCmd, and DeleteSocketCmd.
Referenced by CopyComponentCmd::Do(), CutComponentCmd::Do(), DeleteComponentCmd::Do(), ModifyComponentCmd::Do(), ConnectTool::leftClick(), ProximMachineCanvasTool::onMouseEvent(), SelectTool::onMouseEvent(), ProximMachineStateWindow::onSimulationStop(), and ConnectTool::updateStatusline().
wxWindow * ComponentCommand::parentWindow | ( | ) |
Returns the parent window for the dialogs created by this command.
Definition at line 66 of file ComponentCommand.cc.
References parentWindow_.
Referenced by ModifyBusCmd::Do(), ModifyGCUCmd::Do(), ModifyRFCmd::Do(), ModifySocketCmd::Do(), ModifyFUCmd::Do(), ModifyIUCmd::Do(), ModifyRFPortCmd::Do(), ModifyFUPortCmd::Do(), ModifySRPortCmd::Do(), ModifyIUPortCmd::Do(), and ModifyBridgeCmd::Do().
void ComponentCommand::setParentWindow | ( | wxWindow * | window | ) |
Sets a parent window for the dialogs created by this command.
window | A parent window for the dialogs. |
Definition at line 55 of file ComponentCommand.cc.
References parentWindow_.
Referenced by CopyComponentCmd::Do(), CutComponentCmd::Do(), ModifyComponentCmd::Do(), and ProximMachineCanvasTool::onMouseEvent().
|
private |
Parent window of the command.
Definition at line 58 of file ComponentCommand.hh.
Referenced by parentWindow(), and setParentWindow().