#include <tool.h>

Signals | |
| void | activated () |
| Signal from the activate() method. | |
Public Member Functions | |
| Tool (PDFScene *scn) | |
| virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *ev)=0 |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *ev)=0 |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *ev)=0 |
| virtual void | mouseLeftClickEvent (QGraphicsSceneMouseEvent *ev)=0 |
| virtual void | activate ()=0 |
| Activate this Tool: set it to the current one in the Scene, set an appropriate cursor, emit activated(), etc. | |
Protected Attributes | |
| PDFScene * | scene |
| The scene to which this tool belongs, as given in the constructor. | |
A Tool receives events from the Scene and implements the appropriate behavior. At most, one Tool per Scene is active at a time. (If no Tool is active, the default View/Scene behavior occurs when handling mouse events.)
Definition at line 17 of file tool.h.
| virtual void Tool::activate | ( | ) | [pure virtual] |
Activate this Tool: set it to the current one in the Scene, set an appropriate cursor, emit activated(), etc.
Implemented in BoxTool, and SelectTool.
| void Tool::activated | ( | ) | [signal] |
Signal from the activate() method.
(Each subclass must emit this signal.)
Referenced by SelectTool::activate().

| virtual void Tool::mouseLeftClickEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [pure virtual] |
Implemented in BoxTool, and SelectTool.
Referenced by PDFScene::mouseReleaseEvent().

| virtual void Tool::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [pure virtual] |
Implemented in BoxTool, and SelectTool.
Referenced by PDFScene::mouseMoveEvent().

| virtual void Tool::mousePressEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [pure virtual] |
Implemented in BoxTool, and SelectTool.
Referenced by PDFScene::mousePressEvent().

| virtual void Tool::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [pure virtual] |
Implemented in BoxTool, and SelectTool.
Referenced by PDFScene::mouseReleaseEvent().

PDFScene* Tool::scene [protected] |
The scene to which this tool belongs, as given in the constructor.
Definition at line 50 of file tool.h.
Referenced by SelectTool::activate(), BoxTool::activate(), SelectTool::mouseLeftClickEvent(), SelectTool::mouseMoveEvent(), SelectTool::mousePressEvent(), BoxTool::mousePressEvent(), and SelectTool::mouseReleaseEvent().
1.5.8