ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::model::ClassTreeModel Class Reference

#include <classtreemodel.h>

Collaboration diagram for inspectorj::model::ClassTreeModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

ClassTreeModel is a QAbstractItemModel for representing a tree view of a java class.

Definition at line 46 of file classtreemodel.h.

Public Slots

void initModel ()
 Initialize this model with a java class.

Public Member Functions

 ClassTreeModel (QObject *parent=0)
 ~ClassTreeModel ()
QVariant data (const QModelIndex &index, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
void setJavaClass (JavaClass *)
 Set the JavaClass that this model will represent.

Private Member Functions

void setupModelData (TreeItem *parent)

Private Attributes

JavaClassjavaClass
TreeItemrootItem


Member Function Documentation

void inspectorj::model::ClassTreeModel::setJavaClass ( JavaClass  ) 

Set the JavaClass that this model will represent.

Definition at line 187 of file classtreemodel.cpp.

References javaClass.

Referenced by inspectorj::toolset::ClassToolSet::getClassDetails().

void inspectorj::model::ClassTreeModel::initModel (  )  [slot]

Initialize this model with a java class.

Definition at line 195 of file classtreemodel.cpp.

References inspectorj::model::JavaClass::getJNIClassSignature(), javaClass, rootItem, and setupModelData().

Referenced by inspectorj::client::InspectorJ::updateClassTree().


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 17:08:17 2007 for inspectorJ by  doxygen 1.5.1