CrossReferenceTableModel Class Reference

Public Types

enum  ColumnHeaders { Direction = 0 , Address = 1 , Function = 2 , Preview = 3 }
 

Public Member Functions

 CrossReferenceTableModel (QWidget *parent, BinaryViewRef data, ViewFrame *view)
 
virtual ~CrossReferenceTableModel ()
 
virtual QModelIndex index (int row, int col, const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &i, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QModelIndex parent (const QModelIndex &i) const override
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant headerData (int column, Qt::Orientation orientation, int role) const override
 
virtual bool hasChildren (const QModelIndex &) const override
 
bool setModelData (std::vector< XrefItem > &refs, QItemSelectionModel *selectionModel, bool &selectionUpdated)
 
const XrefItemgetRow (int idx)
 
ViewFramegetView () const
 
virtual void updateMaxUIItems (size_t value)
 
size_t getMaxUIItems () const
 
void setGraphType (BNFunctionGraphType type)
 

Member Enumeration Documentation

◆ ColumnHeaders

Enumerator
Direction 
Address 
Function 
Preview 

Constructor & Destructor Documentation

◆ CrossReferenceTableModel()

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

◆ ~CrossReferenceTableModel()

virtual CrossReferenceTableModel::~CrossReferenceTableModel ( )
inlinevirtual

Member Function Documentation

◆ columnCount()

virtual int CrossReferenceTableModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
inlineoverridevirtual

◆ data()

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

◆ flags()

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

◆ getMaxUIItems()

size_t CrossReferenceTableModel::getMaxUIItems ( ) const
inline

◆ getRow()

const XrefItem & CrossReferenceTableModel::getRow ( int  idx)

◆ getView()

ViewFrame * CrossReferenceTableModel::getView ( ) const
inline

◆ hasChildren()

virtual bool CrossReferenceTableModel::hasChildren ( const QModelIndex &  ) const
inlineoverridevirtual

◆ headerData()

virtual QVariant CrossReferenceTableModel::headerData ( int  column,
Qt::Orientation  orientation,
int  role 
) const
overridevirtual

◆ index()

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

◆ parent()

virtual QModelIndex CrossReferenceTableModel::parent ( const QModelIndex &  i) const
inlineoverridevirtual

◆ rowCount()

virtual int CrossReferenceTableModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
inlineoverridevirtual

◆ setGraphType()

void CrossReferenceTableModel::setGraphType ( BNFunctionGraphType  type)
inline

◆ setModelData()

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

◆ updateMaxUIItems()

virtual void CrossReferenceTableModel::updateMaxUIItems ( size_t  value)
inlinevirtual

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