CrossReferenceTreeModel Class Reference

Public Member Functions

 CrossReferenceTreeModel (QWidget *parent, BinaryViewRef data, ViewFrame *view)
 
virtual ~CrossReferenceTreeModel ()
 
virtual QModelIndex index (int row, int col, const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &i, int role) const override
 
virtual QModelIndex parent (const QModelIndex &i) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual bool hasChildren (const QModelIndex &parent) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex nextValidIndex (const QModelIndex &current) const
 
QModelIndex prevValidIndex (const QModelIndex &current) const
 
bool selectRef (XrefItem *ref, QItemSelectionModel *selectionModel)
 
XrefRootgetRoot ()
 
bool setModelData (std::vector< XrefItem > &refs, QItemSelectionModel *selectionModel, bool &selectionUpdated)
 
int leafCount () const
 
ViewFramegetView () const
 
virtual void updateMaxUIItems (size_t value)
 
size_t getMaxUIItems () const
 
void setGraphType (BNFunctionGraphType type)
 

Constructor & Destructor Documentation

◆ CrossReferenceTreeModel()

CrossReferenceTreeModel::CrossReferenceTreeModel ( QWidget *  parent,
BinaryViewRef  data,
ViewFrame view 
)

◆ ~CrossReferenceTreeModel()

virtual CrossReferenceTreeModel::~CrossReferenceTreeModel ( )
virtual

Member Function Documentation

◆ columnCount()

virtual int CrossReferenceTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
overridevirtual

◆ data()

virtual QVariant CrossReferenceTreeModel::data ( const QModelIndex &  i,
int  role 
) const
overridevirtual

◆ flags()

Qt::ItemFlags CrossReferenceTreeModel::flags ( const QModelIndex &  index) const
override

◆ getMaxUIItems()

size_t CrossReferenceTreeModel::getMaxUIItems ( ) const
inline

◆ getRoot()

XrefRoot * CrossReferenceTreeModel::getRoot ( )
inline

◆ getView()

ViewFrame * CrossReferenceTreeModel::getView ( ) const
inline

◆ hasChildren()

virtual bool CrossReferenceTreeModel::hasChildren ( const QModelIndex &  parent) const
overridevirtual

◆ index()

virtual QModelIndex CrossReferenceTreeModel::index ( int  row,
int  col,
const QModelIndex &  parent = QModelIndex() 
) const
overridevirtual

◆ leafCount()

int CrossReferenceTreeModel::leafCount ( ) const

◆ nextValidIndex()

QModelIndex CrossReferenceTreeModel::nextValidIndex ( const QModelIndex &  current) const

◆ parent()

virtual QModelIndex CrossReferenceTreeModel::parent ( const QModelIndex &  i) const
overridevirtual

◆ prevValidIndex()

QModelIndex CrossReferenceTreeModel::prevValidIndex ( const QModelIndex &  current) const

◆ rowCount()

virtual int CrossReferenceTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
overridevirtual

◆ selectRef()

bool CrossReferenceTreeModel::selectRef ( XrefItem ref,
QItemSelectionModel *  selectionModel 
)

◆ setGraphType()

void CrossReferenceTreeModel::setGraphType ( BNFunctionGraphType  type)
inline

◆ setModelData()

bool CrossReferenceTreeModel::setModelData ( std::vector< XrefItem > &  refs,
QItemSelectionModel *  selectionModel,
bool &  selectionUpdated 
)

◆ updateMaxUIItems()

virtual void CrossReferenceTreeModel::updateMaxUIItems ( size_t  value)
inlinevirtual

The documentation for this class was generated from the following file: