BAstModel Class Reference

The Qt-Model representing a beautified AST. More...

#include <BAstModel.h>

Inheritance diagram for BAstModel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BAstModel (QObject *parent)
virtual ~BAstModel ()
void setNode (SgNode *proj)
void setFilter (AstFilterInterface *filter)
SgNode * getNodeFromIndex (const QModelIndex &ind)
virtual Qt::ItemFlags flags (const QModelIndex &index) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual QModelIndex index (const ItemTreeNode *node, int column=0)
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
virtual QModelIndex parent (const QModelIndex &index) const
void setRoot (ItemTreeNode *n)
void setFixedRoot (ItemTreeNode *n)

Static Public Member Functions

static void setupView (QTreeView *view, const QModelIndex &subTree=QModelIndex())

Protected Member Functions

virtual QVariant data (const QModelIndex &ind, int role) const
void updateModel ()

Protected Attributes

AstFilterInterfacecurFilter
SgNode * curNode

Detailed Description

The Qt-Model representing a beautified AST.

Definition at line 12 of file BAstModel.h.


Constructor & Destructor Documentation

BAstModel::BAstModel ( QObject *  parent  ) 

Definition at line 10 of file BAstModel.cpp.

BAstModel::~BAstModel (  )  [virtual]

Definition at line 15 of file BAstModel.cpp.


Member Function Documentation

int ItemTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual, inherited]

Definition at line 114 of file ItemTreeModel.cpp.

Referenced by ItemTreeModel::index(), and AsmView::selectionChanged().

Here is the caller graph for this function:

QVariant BAstModel::data ( const QModelIndex &  ind,
int  role 
) const [protected, virtual]

Reimplemented from ItemTreeModel.

Definition at line 53 of file BAstModel.cpp.

Here is the call graph for this function:

Qt::ItemFlags ItemTreeModel::flags ( const QModelIndex &  index  )  const [virtual, inherited]

Definition at line 63 of file ItemTreeModel.cpp.

Here is the call graph for this function:

SgNode * BAstModel::getNodeFromIndex ( const QModelIndex &  ind  ) 

Definition at line 45 of file BAstModel.cpp.

Here is the call graph for this function:

QVariant ItemTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const [virtual, inherited]

Definition at line 99 of file ItemTreeModel.cpp.

QModelIndex ItemTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const [virtual, inherited]

Definition at line 128 of file ItemTreeModel.cpp.

Here is the call graph for this function:

QModelIndex ItemTreeModel::index ( const ItemTreeNode node,
int  column = 0 
) [virtual, inherited]

Definition at line 120 of file ItemTreeModel.cpp.

Referenced by AsmView::addArrows(), ItemTreeNode::addChildAt(), ItemTreeNode::addChildren(), PropertyTreeModel::addEntryToSection(), PropertyTreeWidget::addSection(), RoseTreeView::gotoNode(), and ItemTreeNode::removeChild().

Here is the call graph for this function:

Here is the caller graph for this function:

QModelIndex ItemTreeModel::parent ( const QModelIndex &  index  )  const [virtual, inherited]

Definition at line 150 of file ItemTreeModel.cpp.

Here is the call graph for this function:

int ItemTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual, inherited]

Definition at line 84 of file ItemTreeModel.cpp.

Referenced by PropertyTreeModel::addEntry(), PropertyTreeModel::addEntryToSection(), PropertyTreeModel::addSection(), and ItemTreeModel::index().

Here is the call graph for this function:

Here is the caller graph for this function:

void BAstModel::setFilter ( AstFilterInterface filter  ) 

Definition at line 27 of file BAstModel.cpp.

Here is the call graph for this function:

void ItemTreeModel::setFixedRoot ( ItemTreeNode n  )  [inherited]

Call this version if setRoot is called only once the ownership of n stays at the caller! delete the ItemTreeNode yourself

Definition at line 47 of file ItemTreeModel.cpp.

Referenced by ProjectView::ProjectView().

Here is the call graph for this function:

Here is the caller graph for this function:

void BAstModel::setNode ( SgNode *  proj  ) 

Definition at line 21 of file BAstModel.cpp.

Here is the call graph for this function:

void ItemTreeModel::setRoot ( ItemTreeNode n  )  [inherited]

Definition at line 22 of file ItemTreeModel.cpp.

Referenced by PropertyTreeModel::clear(), PropertyTreeModel::PropertyTreeModel(), BAstView::updateModel(), updateModel(), and AsmView::updateModel().

Here is the call graph for this function:

Here is the caller graph for this function:

void ItemTreeModel::setupView ( QTreeView *  view,
const QModelIndex &  subTree = QModelIndex() 
) [static, inherited]

This function changes the view according to the information in the ItemTreeNodes currently only used for isFirstColumnSpanned bad design, because view should get all information directly from model but with the isFirstColumnSpanned there seems to be no other possibility

Definition at line 169 of file ItemTreeModel.cpp.

Referenced by PropertyTreeWidget::addEntry(), PropertyTreeWidget::addEntryToSection(), and AsmView::updateModel().

Here is the call graph for this function:

Here is the caller graph for this function:

void BAstModel::updateModel (  )  [protected]

Definition at line 33 of file BAstModel.cpp.

Referenced by setFilter(), and setNode().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

AstFilterInterface* BAstModel::curFilter [protected]

Definition at line 30 of file BAstModel.h.

Referenced by setFilter(), and updateModel().

SgNode* BAstModel::curNode [protected]

Definition at line 31 of file BAstModel.h.

Referenced by setNode(), and updateModel().


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