![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
GraphicsView class that is used to view the contents of a GraphicsScene. The class inherits from QGraphicsView. More...
#include <GraphicsView.h>
Signals | |
void | itemsDropped (GraphicsScene *, const QString &, QPointF) |
signal is emitted when some object OTHER than files are dropped on the canvas | |
Static Public Attributes | |
static qreal | DEFAULT_ZOOM = 0.5 |
Protected Member Functions | |
virtual void | drawBackground (QPainter *painter, const QRectF &rect) |
draw background | |
virtual void | drawForeground (QPainter *painter, const QRectF &rect) |
draw foreground | |
virtual void | dropEvent (QDropEvent *) |
drag and drop | |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
drag and drop | |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
drag and drop | |
virtual void | wheelEvent (QWheelEvent *event) |
mouse wheel event | |
virtual void | scrollContentsBy (int dx, int dy) |
scroll event | |
virtual void | mousePressEvent (QMouseEvent *event) |
mouse event. sets the currentGraphicsView for NetworkWindow | |
virtual void | keyPressEvent (QKeyEvent *event) |
mouse event. sets the currentGraphicsView for NetworkWindow | |
virtual void | mouseMoveEvent (QMouseEvent *event) |
when moved using right button or ctrl, mode switches to drag | |
Friends | |
class | GraphicsScene |
class | NetworkWindow |
class | NetworkHandle |
class | MainWindow |
GraphicsView class that is used to view the contents of a GraphicsScene. The class inherits from QGraphicsView.
Definition at line 56 of file GraphicsView.h.
void Tinkercell::GraphicsView::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
drag and drop
Definition at line 134 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
drag and drop
Definition at line 139 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::drawBackground | ( | QPainter * | painter, |
const QRectF & | rect | ||
) | [protected, virtual] |
draw background
Definition at line 30 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::drawForeground | ( | QPainter * | painter, |
const QRectF & | rect | ||
) | [protected, virtual] |
draw foreground
Definition at line 36 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
drag and drop
Definition at line 143 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::itemsDropped | ( | GraphicsScene * | , |
const QString & | , | ||
QPointF | |||
) | [signal] |
signal is emitted when some object OTHER than files are dropped on the canvas
void Tinkercell::GraphicsView::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
mouse event. sets the currentGraphicsView for NetworkWindow
Definition at line 125 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
when moved using right button or ctrl, mode switches to drag
Definition at line 114 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
mouse event. sets the currentGraphicsView for NetworkWindow
Definition at line 101 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::scrollContentsBy | ( | int | dx, |
int | dy | ||
) | [protected, virtual] |
scroll event
Definition at line 60 of file GraphicsView.cpp.
void Tinkercell::GraphicsView::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
mouse wheel event
Definition at line 42 of file GraphicsView.cpp.
friend class GraphicsScene [friend] |
Definition at line 103 of file GraphicsView.h.
friend class MainWindow [friend] |
Definition at line 106 of file GraphicsView.h.
friend class NetworkHandle [friend] |
Definition at line 105 of file GraphicsView.h.
friend class NetworkWindow [friend] |
Definition at line 104 of file GraphicsView.h.
qreal Tinkercell::GraphicsView::DEFAULT_ZOOM = 0.5 [static] |
Definition at line 61 of file GraphicsView.h.