#include <AbstractViewTool.h>
Public Member Functions | |
| virtual void | setCursor (const QCursor &cursor) |
| It sets the tool cursor. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| AbstractViewTool (View *view, QObject *parent=0) | |
| It constructs a tool associated with the given map display and with the specified cursor. More... | |
| virtual | ~AbstractViewTool () |
| Destructor. More... | |
AbstractTool Methods | |
Methods related with tool behavior. | |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
| Filters events if this object has been installed as an event filter for the watched object. More... | |
| virtual bool | mousePressEvent (QMouseEvent *e) |
| This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object. More... | |
| virtual bool | mouseMoveEvent (QMouseEvent *e) |
| This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object. More... | |
| virtual bool | mouseReleaseEvent (QMouseEvent *e) |
| This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object. More... | |
| virtual bool | mouseDoubleClickEvent (QMouseEvent *e) |
| This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object. More... | |
Protected Attributes | |
| QCursor | m_cursor |
| The default tool cursor. More... | |
| View * | m_view |
| The QGraphicsView associated with the tool. More... | |
Definition at line 42 of file AbstractViewTool.h.
| te::layout::AbstractViewTool::AbstractViewTool | ( | View * | view, |
| QObject * | parent = 0 |
||
| ) |
It constructs a tool associated with the given map display and with the specified cursor.
| display | The map display associated with the tool. |
| parent | The tool's parent. |
Definition at line 30 of file AbstractViewTool.cpp.
References m_view.
|
virtual |
Destructor.
Definition at line 38 of file AbstractViewTool.cpp.
|
virtual |
Filters events if this object has been installed as an event filter for the watched object.
| watched | The watched object. |
| event | The last event sent to watched object. |
Definition at line 44 of file AbstractViewTool.cpp.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object.
| e | The mouse event. |
Definition at line 87 of file AbstractViewTool.cpp.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object.
| e | The mouse event. |
Reimplemented in te::layout::ViewRubberBand, and te::layout::ViewZoomArea.
Definition at line 77 of file AbstractViewTool.cpp.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object.
| e | The mouse event. |
Reimplemented in te::layout::ViewRubberBand, te::layout::ViewZoomClick, and te::layout::ViewZoomArea.
Definition at line 72 of file AbstractViewTool.cpp.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object.
| e | The mouse event. |
Reimplemented in te::layout::ViewRubberBand, and te::layout::ViewZoomArea.
Definition at line 82 of file AbstractViewTool.cpp.
|
virtual |
It sets the tool cursor.
| cursor | The cursor that will be used during the tool operation. |
Definition at line 92 of file AbstractViewTool.cpp.
Referenced by te::layout::ViewZoomArea::ViewZoomArea(), and te::layout::ViewZoomClick::ViewZoomClick().
|
protected |
The default tool cursor.
Definition at line 141 of file AbstractViewTool.h.
|
protected |
The QGraphicsView associated with the tool.
Definition at line 140 of file AbstractViewTool.h.
Referenced by AbstractViewTool().