#include <selecttool.h>

Signals | |
| void | selectionChanged () |
Public Member Functions | |
| SelectTool (PDFScene *scene) | |
| void | activate () |
| Activate this Tool: set it to the current one in the Scene, set an appropriate cursor, emit activated(), etc. | |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *ev) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *ev) |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *ev) |
| void | mouseLeftClickEvent (QGraphicsSceneMouseEvent *ev) |
Private Attributes | |
| QGraphicsRectItem * | rubberBand |
| Rectangle * | resizing |
| Rectangle * | dragging |
| Rectangle::ResizeHandleIdx | resizingHandle |
This Tool provides the following kinds of functionality:
Definition at line 25 of file selecttool.h.
| SelectTool::SelectTool | ( | PDFScene * | scene | ) |
| void SelectTool::activate | ( | ) | [virtual] |
Activate this Tool: set it to the current one in the Scene, set an appropriate cursor, emit activated(), etc.
Implements Tool.
Definition at line 19 of file selecttool.cpp.
References Tool::activated(), Tool::scene, and PDFScene::setTool().
Referenced by MainWindow::on_actionSelect_toggled().


| void SelectTool::mouseLeftClickEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [virtual] |
| void SelectTool::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [virtual] |
Implements Tool.
Definition at line 74 of file selecttool.cpp.
References Rectangle::buttonDownPos(), dragging, Rectangle::resize(), resizing, resizingHandle, rubberBand, and Tool::scene.

| void SelectTool::mousePressEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [virtual] |
Implements Tool.
Definition at line 30 of file selecttool.cpp.
References dragging, Rectangle::handleAt(), resizing, resizingHandle, Rectangle::RH_NONE, rubberBand, and Tool::scene.

| void SelectTool::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | ev | ) | [virtual] |
Implements Tool.
Definition at line 102 of file selecttool.cpp.
References dragging, Rectangle::resizeDone(), resizing, rubberBand, Tool::scene, and selectionChanged().

| void SelectTool::selectionChanged | ( | ) | [signal] |
Rectangle* SelectTool::dragging [private] |
Definition at line 42 of file selecttool.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
Rectangle* SelectTool::resizing [private] |
Definition at line 41 of file selecttool.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
QGraphicsRectItem* SelectTool::rubberBand [private] |
Definition at line 40 of file selecttool.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and SelectTool().
1.5.8