#include <RoseGraphicsView.h>
Inheritance diagram for RoseGraphicsView:

Public Slots | |
| void | setNode (SgNode *sgNode) |
| void | gotoNode (SgNode *sgNode) |
| void | setFilter (AstFilterInterface *filter) |
| void | setFileFilter (int id) |
Signals | |
| void | nodeActivated (SgNode *node) |
| void | nodeActivatedAlt (SgNode *node) |
| void | clicked (const QString &filename, int line, int column) |
| void | nodeDropped (SgNode *node, QPoint pos) |
Public Member Functions | |
| RoseGraphicsView (QWidget *parent=0) | |
| virtual | ~RoseGraphicsView () |
| void | setSgDragEnabled (bool b) |
| void | setSgDropEnabled (bool b) |
| bool | isSgDragEnabled () const |
| bool | isSgDropEnabled () const |
Protected Member Functions | |
| virtual void | updateGraph (SgNode *node, AstFilterInterface *filter)=0 |
| virtual void | wheelEvent (QWheelEvent *event) |
| virtual void | scaleView (qreal scaleFactor) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | dragEnterEvent (QDragEnterEvent *ev) |
| virtual void | dropEvent (QDropEvent *ev) |
| virtual void | dragMoveEvent (QDragMoveEvent *ev) |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| virtual bool | acceptMimeData (const QMimeData *mimeData) |
| virtual void | handleMimeData (const QMimeData *mimeData, const QPoint &pos) |
Protected Attributes | |
| QPoint | dragStartPosition |
| position of mouseclick, used for d&d functions | |
| bool | dragEnabled |
| if SgNodes can be dragged out of this view | |
| bool | dropEnabled |
| if SgNodes can be dropped at this view | |
Properties | |
| bool | SgDragEnabled [] |
| bool | SgDropEnabled [] |
Private Attributes | |
| AstFilterInterface * | curFilter |
| SgNode * | curNode |
implementation of drag&drop and handling of SgNode's is done here
Definition at line 17 of file RoseGraphicsView.h.
| RoseGraphicsView::RoseGraphicsView | ( | QWidget * | parent = 0 |
) |
Definition at line 23 of file RoseGraphicsView.cpp.
| RoseGraphicsView::~RoseGraphicsView | ( | ) | [virtual] |
Definition at line 42 of file RoseGraphicsView.cpp.
| bool RoseGraphicsView::acceptMimeData | ( | const QMimeData * | mimeData | ) | [protected, virtual] |
Definition at line 158 of file RoseGraphicsView.cpp.
Referenced by dragEnterEvent().
Here is the caller graph for this function:

| void RoseGraphicsView::clicked | ( | const QString & | filename, | |
| int | line, | |||
| int | column | |||
| ) | [signal] |
Referenced by mousePressEvent().
| void RoseGraphicsView::dragEnterEvent | ( | QDragEnterEvent * | ev | ) | [protected, virtual] |
| void RoseGraphicsView::dragMoveEvent | ( | QDragMoveEvent * | ev | ) | [protected, virtual] |
Definition at line 143 of file RoseGraphicsView.cpp.
| void RoseGraphicsView::dropEvent | ( | QDropEvent * | ev | ) | [protected, virtual] |
| void RoseGraphicsView::gotoNode | ( | SgNode * | sgNode | ) | [inline, slot] |
Definition at line 40 of file RoseGraphicsView.h.
| void RoseGraphicsView::handleMimeData | ( | const QMimeData * | mimeData, | |
| const QPoint & | pos | |||
| ) | [protected, virtual] |
Definition at line 163 of file RoseGraphicsView.cpp.
Referenced by dropEvent().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool RoseGraphicsView::isSgDragEnabled | ( | ) | const [inline] |
Definition at line 32 of file RoseGraphicsView.h.
| bool RoseGraphicsView::isSgDropEnabled | ( | ) | const [inline] |
Definition at line 33 of file RoseGraphicsView.h.
| void RoseGraphicsView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
| void RoseGraphicsView::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
| void RoseGraphicsView::nodeActivated | ( | SgNode * | node | ) | [signal] |
Referenced by mousePressEvent().
| void RoseGraphicsView::nodeActivatedAlt | ( | SgNode * | node | ) | [signal] |
| void RoseGraphicsView::nodeDropped | ( | SgNode * | node, | |
| QPoint | pos | |||
| ) | [signal] |
Referenced by handleMimeData(), and RoseGraphicsView().
| void RoseGraphicsView::scaleView | ( | qreal | scaleFactor | ) | [protected, virtual] |
Definition at line 172 of file RoseGraphicsView.cpp.
Referenced by wheelEvent().
Here is the caller graph for this function:

| void RoseGraphicsView::setFileFilter | ( | int | id | ) | [slot] |
Definition at line 64 of file RoseGraphicsView.cpp.
| void RoseGraphicsView::setFilter | ( | AstFilterInterface * | filter | ) | [slot] |
| void RoseGraphicsView::setNode | ( | SgNode * | sgNode | ) | [slot] |
Definition at line 47 of file RoseGraphicsView.cpp.
Referenced by gotoNode(), and RoseGraphicsView().
| void RoseGraphicsView::setSgDragEnabled | ( | bool | b | ) | [inline] |
Definition at line 29 of file RoseGraphicsView.h.
| void RoseGraphicsView::setSgDropEnabled | ( | bool | b | ) | [inline] |
Definition at line 30 of file RoseGraphicsView.h.
| virtual void RoseGraphicsView::updateGraph | ( | SgNode * | node, | |
| AstFilterInterface * | filter | |||
| ) | [protected, pure virtual] |
Reimplement in derived classes, and use curFilter and curNode to generate graph/tree
Implemented in AstGraphWidget, and CallGraphWidget.
Referenced by setFilter(), and setNode().
| void RoseGraphicsView::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
AstFilterInterface* RoseGraphicsView::curFilter [private] |
Definition at line 84 of file RoseGraphicsView.h.
Referenced by setFilter(), setNode(), and ~RoseGraphicsView().
SgNode* RoseGraphicsView::curNode [private] |
bool RoseGraphicsView::dragEnabled [protected] |
if SgNodes can be dragged out of this view
Definition at line 79 of file RoseGraphicsView.h.
Referenced by isSgDragEnabled(), mouseMoveEvent(), and setSgDragEnabled().
QPoint RoseGraphicsView::dragStartPosition [protected] |
position of mouseclick, used for d&d functions
Definition at line 78 of file RoseGraphicsView.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
bool RoseGraphicsView::dropEnabled [protected] |
if SgNodes can be dropped at this view
Definition at line 80 of file RoseGraphicsView.h.
Referenced by acceptMimeData(), dropEvent(), isSgDropEnabled(), and setSgDropEnabled().
bool RoseGraphicsView::SgDragEnabled [read, write] |
Definition at line 21 of file RoseGraphicsView.h.
bool RoseGraphicsView::SgDropEnabled [read, write] |
Definition at line 21 of file RoseGraphicsView.h.
1.4.7