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

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 | |
| CallGraphWidget (QWidget *parent=0) | |
| virtual | ~CallGraphWidget () |
| void | setSgDragEnabled (bool b) |
| void | setSgDropEnabled (bool b) |
| bool | isSgDragEnabled () const |
| bool | isSgDropEnabled () const |
Protected Member Functions | |
| virtual void | mouseReleaseEvent (QMouseEvent *ev) |
| virtual void | updateGraph (SgNode *node, AstFilterInterface *filter) |
| 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 | |
| QGraphicsScene * | scene |
| DisplayCallGraph * | callGraph |
| 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 [] |
Displays a callgraph associated with a project, and layouts it with a spring embedder algorithm uses the ProjectManager to build up a callgraph
Definition at line 18 of file CallGraphWidget.h.
| CallGraphWidget::CallGraphWidget | ( | QWidget * | parent = 0 |
) |
| CallGraphWidget::~CallGraphWidget | ( | ) | [virtual] |
Definition at line 44 of file CallGraphWidget.cpp.
| bool RoseGraphicsView::acceptMimeData | ( | const QMimeData * | mimeData | ) | [protected, virtual, inherited] |
Definition at line 158 of file RoseGraphicsView.cpp.
Referenced by RoseGraphicsView::dragEnterEvent().
Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

| void RoseGraphicsView::setFileFilter | ( | int | id | ) | [slot, inherited] |
Definition at line 64 of file RoseGraphicsView.cpp.
| void RoseGraphicsView::setFilter | ( | AstFilterInterface * | filter | ) | [slot, inherited] |
Definition at line 53 of file RoseGraphicsView.cpp.
Referenced by RoseGraphicsView::setFileFilter().
| void RoseGraphicsView::setNode | ( | SgNode * | sgNode | ) | [slot, inherited] |
Definition at line 47 of file RoseGraphicsView.cpp.
Referenced by RoseGraphicsView::gotoNode(), and RoseGraphicsView::RoseGraphicsView().
| void RoseGraphicsView::setSgDragEnabled | ( | bool | b | ) | [inline, inherited] |
Definition at line 29 of file RoseGraphicsView.h.
| void RoseGraphicsView::setSgDropEnabled | ( | bool | b | ) | [inline, inherited] |
Definition at line 30 of file RoseGraphicsView.h.
| void CallGraphWidget::updateGraph | ( | SgNode * | node, | |
| AstFilterInterface * | filter | |||
| ) | [protected, virtual] |
Reimplement in derived classes, and use curFilter and curNode to generate graph/tree
Implements RoseGraphicsView.
Definition at line 51 of file CallGraphWidget.cpp.
Here is the call graph for this function:

| void RoseGraphicsView::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual, inherited] |
DisplayCallGraph* CallGraphWidget::callGraph [protected] |
Definition at line 32 of file CallGraphWidget.h.
Referenced by CallGraphWidget(), mouseReleaseEvent(), updateGraph(), and ~CallGraphWidget().
bool RoseGraphicsView::dragEnabled [protected, inherited] |
if SgNodes can be dragged out of this view
Definition at line 79 of file RoseGraphicsView.h.
Referenced by RoseGraphicsView::isSgDragEnabled(), RoseGraphicsView::mouseMoveEvent(), and RoseGraphicsView::setSgDragEnabled().
QPoint RoseGraphicsView::dragStartPosition [protected, inherited] |
position of mouseclick, used for d&d functions
Definition at line 78 of file RoseGraphicsView.h.
Referenced by RoseGraphicsView::mouseMoveEvent(), and RoseGraphicsView::mousePressEvent().
bool RoseGraphicsView::dropEnabled [protected, inherited] |
if SgNodes can be dropped at this view
Definition at line 80 of file RoseGraphicsView.h.
Referenced by RoseGraphicsView::acceptMimeData(), RoseGraphicsView::dropEvent(), RoseGraphicsView::isSgDropEnabled(), and RoseGraphicsView::setSgDropEnabled().
QGraphicsScene* CallGraphWidget::scene [protected] |
Definition at line 31 of file CallGraphWidget.h.
Referenced by CallGraphWidget(), and ~CallGraphWidget().
bool RoseGraphicsView::SgDragEnabled [read, write, inherited] |
Definition at line 21 of file RoseGraphicsView.h.
bool RoseGraphicsView::SgDropEnabled [read, write, inherited] |
Definition at line 21 of file RoseGraphicsView.h.
1.4.7