OpenASIP
2.0
|
#include <ProximMachineCanvasTool.hh>
Public Member Functions | |
ProximMachineCanvasTool (MachineCanvas *canvas) | |
virtual | ~ProximMachineCanvasTool () |
virtual void | activate () |
virtual void | deactivate () |
virtual void | onMouseEvent (wxMouseEvent &event, wxDC &dc) |
Public Member Functions inherited from MachineCanvasTool | |
virtual | ~MachineCanvasTool () |
virtual Figure * | figure () |
Private Member Functions | |
void | popupMenu (int x, int y) |
Private Attributes | |
MachineCanvas * | canvas_ |
MachineCanvas where the tools is used. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MachineCanvasTool | |
MachineCanvasTool (MachineCanvas *canvas) | |
Protected Attributes inherited from MachineCanvasTool | |
MachineCanvas * | canvas_ |
Machine canvas where the tool is used. More... | |
MachineCanvasTool for Proxim MachineWindow.
Definition at line 45 of file ProximMachineCanvasTool.hh.
ProximMachineCanvasTool::ProximMachineCanvasTool | ( | MachineCanvas * | canvas | ) |
The Constructor.
canvas | MachineCanvas where the tool is used. |
Definition at line 52 of file ProximMachineCanvasTool.cc.
|
virtual |
|
virtual |
Called when the tool is activated.
Implements MachineCanvasTool.
Definition at line 155 of file ProximMachineCanvasTool.cc.
|
virtual |
Called when the tool is deactivated.
Implements MachineCanvasTool.
Definition at line 164 of file ProximMachineCanvasTool.cc.
|
virtual |
Handles mouse events on the canvas.
Implements MachineCanvasTool.
Definition at line 70 of file ProximMachineCanvasTool.cc.
References EditPart::canHandle(), canvas_, ProximMachineStateWindow::clearDetails(), MachineCanvas::clearSelection(), Request::DETAILS_REQUEST, ComponentCommand::Do(), MachineCanvas::findEditPart(), ProximToolbox::machineStateWindow(), Request::MODIFY_REQUEST, EditPart::performRequest(), popupMenu(), MachineCanvas::select(), ComponentCommand::setParentWindow(), ProximMachineStateWindow::setStatusText(), and Request::STATUS_REQUEST.
|
private |
Pops a menu at the given position.
x | X-coordinate of the popup location. |
y | Y-coordinate of the popup location. |
Definition at line 127 of file ProximMachineCanvasTool.cc.
References canvas_, ProximMachineStateWindow::COMMAND_EXPORT, ProximMachineStateWindow::COMMAND_TOGGLE_MOVES, ProximMachineStateWindow::COMMAND_TOGGLE_UNIT_INFO, ProximMachineStateWindow::COMMAND_TOGGLE_UTILIZATIONS, ProximMachineStateWindow::COMMAND_ZOOM_IN, and ProximMachineStateWindow::COMMAND_ZOOM_OUT.
Referenced by onMouseEvent().
|
private |
MachineCanvas where the tools is used.
Definition at line 56 of file ProximMachineCanvasTool.hh.
Referenced by onMouseEvent(), and popupMenu().