ProjectView Class Reference

Display of ProjectManager Status. More...

#include <ProjectView.h>

Inheritance diagram for ProjectView:

Inheritance graph
[legend]
List of all members.

Public Slots

virtual void setNode (SgNode *node)
virtual void setFilter (AstFilterInterface *filter)
virtual bool gotoNode (SgNode *node)

Signals

void nodeActivated (SgNode *node)
void nodeActivatedAlt (SgNode *node)
void clicked (const QString &file, int startRow, int startCol, int endRow, int endCol)
 Emitted when clicked, provides the sourcefile and position of the SgNode (can be connected to an editor).
void nodeDropped (SgNode *node, const QPoint &p)

Public Member Functions

 ProjectView (QWidget *par=NULL)
virtual ~ProjectView ()
void setTaskListWidget (TaskList *l)
 Sets widget where the task should be displayed.
void setSgDragEnabled (bool b)
void setSgDropEnabled (bool b)
bool isSgDragEnabled () const
bool isSgDropEnabled () const
void addArrow (const QModelIndex &i1, const QModelIndex &i2)
void removeAllArrows ()

Protected Slots

virtual void viewClicked (const QModelIndex &ind)
void viewDoubleClicked (const QModelIndex &ind)

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *ev)
virtual void updateModel ()
void displayContextMenu (const QPoint &pos, ItemTreeNode *node)
virtual void dragEnterEvent (QDragEnterEvent *ev)
virtual void dragMoveEvent (QDragMoveEvent *ev)
virtual void dropEvent (QDropEvent *ev)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual bool acceptMimeData (const QMimeData *mimeData)
virtual void handleMimeData (const QMimeData *mimeData, const QPoint &pos)
 extracts and takes proper action for the arrived mimeData
virtual void paintEvent (QPaintEvent *ev)
void drawArrowBezier (const QPoint &p1, const QPoint &p2, QPainter *painter, float curvature)
void normalizeVec (QPointF &vec) const
QPointF getOrtho (const QPointF &input, bool direction=true) const

Protected Attributes

ProjectManagerRootNodepmRootNode
QList< QPair< QModelIndex,
QModelIndex > > 
arrows
ItemTreeModelmodel
AstFilterInterfacecurFilter
SgNode * curNode
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 []

Detailed Description

Display of ProjectManager Status.

ProjectView.jpg

Definition at line 26 of file ProjectView.h.


Constructor & Destructor Documentation

ProjectView::ProjectView ( QWidget *  par = NULL  ) 

Definition at line 15 of file ProjectView.cpp.

Here is the call graph for this function:

ProjectView::~ProjectView (  )  [virtual]

Definition at line 31 of file ProjectView.cpp.


Member Function Documentation

bool RoseTreeView::acceptMimeData ( const QMimeData *  mimeData  )  [protected, virtual, inherited]

handler to decide wether to accept a certain mime data default is to accept application/SgNode to support application/SgNode-* overwrite these two functions in the derived class

Definition at line 195 of file RoseTreeView.cpp.

Referenced by RoseTreeView::dragEnterEvent().

Here is the caller graph for this function:

void RoseTreeView::addArrow ( const QModelIndex &  i1,
const QModelIndex &  i2 
) [inherited]

Definition at line 207 of file RoseTreeView.cpp.

Referenced by AsmView::addArrows().

Here is the caller graph for this function:

void RoseTreeView::clicked ( const QString &  file,
int  startRow,
int  startCol,
int  endRow,
int  endCol 
) [signal, inherited]

Emitted when clicked, provides the sourcefile and position of the SgNode (can be connected to an editor).

Referenced by RoseTreeView::RoseTreeView(), and RoseTreeView::viewClicked().

void ProjectView::displayContextMenu ( const QPoint &  pos,
ItemTreeNode node 
) [protected]

Definition at line 56 of file ProjectView.cpp.

Referenced by mousePressEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void RoseTreeView::dragEnterEvent ( QDragEnterEvent *  ev  )  [protected, virtual, inherited]

Definition at line 171 of file RoseTreeView.cpp.

Here is the call graph for this function:

void RoseTreeView::dragMoveEvent ( QDragMoveEvent *  ev  )  [protected, virtual, inherited]

Definition at line 179 of file RoseTreeView.cpp.

void RoseTreeView::drawArrowBezier ( const QPoint &  p1,
const QPoint &  p2,
QPainter *  painter,
float  curvature 
) [protected, inherited]

Definition at line 266 of file RoseTreeView.cpp.

Referenced by RoseTreeView::paintEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void RoseTreeView::dropEvent ( QDropEvent *  ev  )  [protected, virtual, inherited]

Definition at line 185 of file RoseTreeView.cpp.

Here is the call graph for this function:

QPointF RoseTreeView::getOrtho ( const QPointF &  input,
bool  direction = true 
) const [protected, inherited]

Definition at line 259 of file RoseTreeView.cpp.

Referenced by RoseTreeView::drawArrowBezier().

Here is the caller graph for this function:

bool RoseTreeView::gotoNode ( SgNode *  node  )  [virtual, slot, inherited]

Reimplemented in AsmView, and AstBrowserWidget.

Definition at line 63 of file RoseTreeView.cpp.

void RoseTreeView::handleMimeData ( const QMimeData *  mimeData,
const QPoint &  pos 
) [protected, virtual, inherited]

extracts and takes proper action for the arrived mimeData

Definition at line 200 of file RoseTreeView.cpp.

Referenced by RoseTreeView::dropEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

bool RoseTreeView::isSgDragEnabled (  )  const [inline, inherited]

Definition at line 43 of file RoseTreeView.h.

bool RoseTreeView::isSgDropEnabled (  )  const [inline, inherited]

Definition at line 44 of file RoseTreeView.h.

void RoseTreeView::mouseMoveEvent ( QMouseEvent *  event  )  [protected, virtual, inherited]

Definition at line 136 of file RoseTreeView.cpp.

Here is the call graph for this function:

void ProjectView::mousePressEvent ( QMouseEvent *  ev  )  [protected, virtual]

Reimplemented from RoseTreeView.

Definition at line 40 of file ProjectView.cpp.

Here is the call graph for this function:

void RoseTreeView::nodeActivated ( SgNode *  node  )  [signal, inherited]

Emitted if clicked on an Entry warning: may be null (appropriate action would be to clear the attached view)

Referenced by AstBrowserWidget::AstBrowserWidget(), and RoseTreeView::viewClicked().

void RoseTreeView::nodeActivatedAlt ( SgNode *  node  )  [signal, inherited]

Referenced by AstBrowserWidget::AstBrowserWidget(), and RoseTreeView::viewDoubleClicked().

void RoseTreeView::nodeDropped ( SgNode *  node,
const QPoint &  p 
) [signal, inherited]

Referenced by AsmView::AsmView(), AstBrowserWidget::AstBrowserWidget(), BAstView::BAstView(), and RoseTreeView::handleMimeData().

void RoseTreeView::normalizeVec ( QPointF &  vec  )  const [protected, inherited]

Definition at line 250 of file RoseTreeView.cpp.

Referenced by RoseTreeView::drawArrowBezier().

Here is the caller graph for this function:

void RoseTreeView::paintEvent ( QPaintEvent *  ev  )  [protected, virtual, inherited]

Definition at line 220 of file RoseTreeView.cpp.

Here is the call graph for this function:

void RoseTreeView::removeAllArrows (  )  [inherited]

Definition at line 213 of file RoseTreeView.cpp.

Referenced by AsmView::selectionChanged().

void RoseTreeView::setFilter ( AstFilterInterface filter  )  [virtual, slot, inherited]

Reimplemented in AstBrowserWidget.

Definition at line 54 of file RoseTreeView.cpp.

void RoseTreeView::setNode ( SgNode *  node  )  [virtual, slot, inherited]

Reimplemented in AstBrowserWidget.

Definition at line 48 of file RoseTreeView.cpp.

Referenced by AsmView::asmNodeDropped(), BAstView::BAstView(), and AsmView::on_nodeDropped().

void RoseTreeView::setSgDragEnabled ( bool  b  )  [inline, inherited]

Definition at line 40 of file RoseTreeView.h.

void RoseTreeView::setSgDropEnabled ( bool  b  )  [inline, inherited]

Definition at line 41 of file RoseTreeView.h.

Referenced by ProjectView().

Here is the caller graph for this function:

void ProjectView::setTaskListWidget ( TaskList l  ) 

Sets widget where the task should be displayed.

Definition at line 160 of file ProjectView.cpp.

void ProjectView::updateModel (  )  [protected, virtual]

Reimplemented from RoseTreeView.

Definition at line 35 of file ProjectView.cpp.

void RoseTreeView::viewClicked ( const QModelIndex &  ind  )  [protected, virtual, slot, inherited]

Definition at line 77 of file RoseTreeView.cpp.

Referenced by AstBrowserWidget::AstBrowserWidget(), and RoseTreeView::RoseTreeView().

void RoseTreeView::viewDoubleClicked ( const QModelIndex &  ind  )  [protected, slot, inherited]

Definition at line 108 of file RoseTreeView.cpp.

Referenced by AstBrowserWidget::AstBrowserWidget(), and RoseTreeView::RoseTreeView().


Member Data Documentation

QList<QPair<QModelIndex,QModelIndex> > RoseTreeView::arrows [protected, inherited]

Definition at line 95 of file RoseTreeView.h.

Referenced by RoseTreeView::addArrow(), RoseTreeView::paintEvent(), and RoseTreeView::removeAllArrows().

AstFilterInterface* RoseTreeView::curFilter [protected, inherited]

The user calls setNode and filter, the new values are stored here then updateView is called

Definition at line 104 of file RoseTreeView.h.

Referenced by RoseTreeView::setFilter(), BAstView::updateModel(), and AsmView::updateModel().

SgNode* RoseTreeView::curNode [protected, inherited]

Definition at line 105 of file RoseTreeView.h.

Referenced by AsmView::contextMenuEvent(), AsmView::on_nodeDropped(), RoseTreeView::setNode(), BAstView::updateModel(), and AsmView::updateModel().

bool RoseTreeView::dragEnabled [protected, inherited]

if SgNodes can be dragged out of this view

Definition at line 110 of file RoseTreeView.h.

Referenced by RoseTreeView::isSgDragEnabled(), RoseTreeView::mouseMoveEvent(), and RoseTreeView::setSgDragEnabled().

QPoint RoseTreeView::dragStartPosition [protected, inherited]

position of mouseclick, used for d&d functions

Definition at line 109 of file RoseTreeView.h.

Referenced by RoseTreeView::mouseMoveEvent(), and RoseTreeView::mousePressEvent().

bool RoseTreeView::dropEnabled [protected, inherited]

if SgNodes can be dropped at this view

Definition at line 111 of file RoseTreeView.h.

Referenced by RoseTreeView::acceptMimeData(), RoseTreeView::dropEvent(), RoseTreeView::isSgDropEnabled(), and RoseTreeView::setSgDropEnabled().

ItemTreeModel* RoseTreeView::model [protected, inherited]

Reimplemented in AstBrowserWidget.

Definition at line 97 of file RoseTreeView.h.

Referenced by AsmView::addArrows(), BAstView::BAstView(), RoseTreeView::gotoNode(), AsmView::gotoNode(), RoseTreeView::mouseMoveEvent(), ProjectView(), RoseTreeView::RoseTreeView(), AsmView::selectionChanged(), BAstView::updateModel(), AsmView::updateModel(), RoseTreeView::viewClicked(), and RoseTreeView::viewDoubleClicked().

ProjectManagerRootNode* ProjectView::pmRootNode [protected]

Definition at line 43 of file ProjectView.h.

Referenced by ProjectView().


Property Documentation

bool RoseTreeView::SgDragEnabled [read, write, inherited]

Definition at line 33 of file RoseTreeView.h.

bool RoseTreeView::SgDropEnabled [read, write, inherited]

Definition at line 33 of file RoseTreeView.h.


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:49 2009 for RoseQtWidgets by  doxygen 1.4.7