|
Engauge Digitizer 2
|
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing state. More...
#include <GraphicsView.h>
Signals | |
| void | signalContextMenuEvent (QString pointIdentifier) |
| Send right click on axis point to MainWindow for editing. | |
| void | signalDraggedDigFile (QString) |
| Send dragged dig file to MainWindow for import. This comes from dragging an engauge dig file. | |
| void | signalDraggedImage (QImage) |
| Send dragged image to MainWindow for import. This typically comes from dragging a file. | |
| void | signalDraggedImageUrl (QUrl) |
| Send dragged url to MainWindow for import. This typically comes from dragging an image from a browser. | |
| void | signalKeyPress (Qt::Key, bool atLeastOneSelectedItem) |
| Send keypress to MainWindow for eventual processing by DigitizeStateAbstractBase subclasses. | |
| void | signalLeave () |
| Send leave to MainWindow for managing the override cursor. | |
| void | signalMouseMove (QPointF) |
| Send mouse move to MainWindow for eventual display of cursor coordinates in StatusBar. | |
| void | signalMousePress (QPointF) |
| Send mouse press to MainWindow for creating one or more Points. | |
| void | signalMouseRelease (QPointF) |
| Send mouse release to MainWindow for moving Points. | |
| void | signalViewZoomIn () |
| Send wheel event to MainWindow for zooming in. | |
| void | signalViewZoomOut () |
| Send wheel event to MainWindow for zooming out. | |
Public Member Functions | |
| GraphicsView (QGraphicsScene *scene, MainWindow &mainWindow) | |
| Single constructor. | |
| void | contextMenuEvent (QContextMenuEvent *event) |
| Intercept right click to support point editing. | |
| virtual void | dragEnterEvent (QDragEnterEvent *event) |
| Intercept mouse drag event to support drag-and-drop. | |
| virtual void | dragMoveEvent (QDragMoveEvent *event) |
| Intercept mouse move event to support drag-and-drop. | |
| virtual void | dropEvent (QDropEvent *event) |
| Intercept mouse drop event to support drag-and-drop. This initiates asynchronous loading of the dragged image. | |
| virtual void | keyPressEvent (QKeyEvent *event) |
| Intercept key press events to handle left/right/up/down moving. | |
| virtual void | leaveEvent (QEvent *event) |
| Intercept leave events to manage override cursor. | |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| Intercept mouse move events to populate the current cursor position in StatusBar. | |
| virtual void | mousePressEvent (QMouseEvent *event) |
| Intercept mouse press events to create one or more Points. | |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| Intercept mouse release events to move one or more Points. | |
| virtual void | wheelEvent (QWheelEvent *event) |
| Convert wheel events into zoom in/out. | |
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing state.
Definition at line 20 of file GraphicsView.h.
| GraphicsView::GraphicsView | ( | QGraphicsScene * | scene, |
| MainWindow & | mainWindow | ||
| ) |
Single constructor.
Definition at line 27 of file GraphicsView.cpp.
|
virtual |
Definition at line 66 of file GraphicsView.cpp.
| void GraphicsView::contextMenuEvent | ( | QContextMenuEvent * | event | ) |
Intercept right click to support point editing.
Definition at line 70 of file GraphicsView.cpp.
|
virtual |
Intercept mouse drag event to support drag-and-drop.
Definition at line 97 of file GraphicsView.cpp.
|
virtual |
Intercept mouse move event to support drag-and-drop.
Definition at line 107 of file GraphicsView.cpp.
|
virtual |
Intercept mouse drop event to support drag-and-drop. This initiates asynchronous loading of the dragged image.
Definition at line 117 of file GraphicsView.cpp.
|
virtual |
Intercept key press events to handle left/right/up/down moving.
Definition at line 184 of file GraphicsView.cpp.
|
virtual |
Intercept leave events to manage override cursor.
Definition at line 208 of file GraphicsView.cpp.
|
virtual |
Intercept mouse move events to populate the current cursor position in StatusBar.
Definition at line 217 of file GraphicsView.cpp.
|
virtual |
Intercept mouse press events to create one or more Points.
Definition at line 235 of file GraphicsView.cpp.
|
virtual |
Intercept mouse release events to move one or more Points.
Definition at line 252 of file GraphicsView.cpp.
|
virtual |
Convert wheel events into zoom in/out.
Definition at line 280 of file GraphicsView.cpp.