TagListModel Class Reference

Public Member Functions

 TagListModel (QWidget *parent, BinaryViewRef data)
 
BinaryNinja::TagReferenceGetRef (const QModelIndex &index)
 
const BinaryNinja::TagReferenceGetRef (const QModelIndex &index) const
 
void SetSectionSizeHints (const std::map< int, QSize > &sizes)
 
TagTypeRef GetTypeRef (const QModelIndex &index)
 
const TagTypeRef GetTypeRef (const QModelIndex &index) const
 
virtual QModelIndex index (int row, int col, const QModelIndex &parent) const override
 
virtual QModelIndex parent (const QModelIndex &i) const override
 
virtual bool hasChildren (const QModelIndex &parent) const override
 
virtual int rowCount (const QModelIndex &parent) const override
 
virtual int columnCount (const QModelIndex &parent) const override
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
virtual QVariant data (const QModelIndex &i, int role) const override
 
virtual bool setData (const QModelIndex &i, const QVariant &value, int role=Qt::EditRole) override
 
virtual Qt::ItemFlags flags (const QModelIndex &i) const override
 
virtual void sort (int column, Qt::SortOrder order) override
 
bool setModelData (const std::vector< std::pair< TagTypeRef, std::vector< BinaryNinja::TagReference > > > &refs, QItemSelectionModel *selectionModel, int sortColumn, Qt::SortOrder sortOrder, bool &selectionUpdated)
 

Protected Attributes

QWidget * m_owner
 
BinaryViewRef m_data
 
std::map< TagTypeRef, size_t > m_typeIndexes
 
std::vector< std::pair< TagTypeRef, std::vector< BinaryNinja::TagReference > > > m_refs
 
std::map< int, QSize > m_sectionSizeHints
 
DisassemblySettingsRef m_settings
 

Constructor & Destructor Documentation

◆ TagListModel()

TagListModel::TagListModel ( QWidget *  parent,
BinaryViewRef  data 
)

Member Function Documentation

◆ columnCount()

virtual int TagListModel::columnCount ( const QModelIndex &  parent) const
overridevirtual

◆ data()

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

◆ flags()

virtual Qt::ItemFlags TagListModel::flags ( const QModelIndex &  i) const
overridevirtual

◆ GetRef() [1/2]

BinaryNinja::TagReference & TagListModel::GetRef ( const QModelIndex &  index)

◆ GetRef() [2/2]

const BinaryNinja::TagReference & TagListModel::GetRef ( const QModelIndex &  index) const

◆ GetTypeRef() [1/2]

TagTypeRef TagListModel::GetTypeRef ( const QModelIndex &  index)

◆ GetTypeRef() [2/2]

const TagTypeRef TagListModel::GetTypeRef ( const QModelIndex &  index) const

◆ hasChildren()

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

◆ headerData()

virtual QVariant TagListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
overridevirtual

◆ index()

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

◆ parent()

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

◆ rowCount()

virtual int TagListModel::rowCount ( const QModelIndex &  parent) const
overridevirtual

◆ setData()

virtual bool TagListModel::setData ( const QModelIndex &  i,
const QVariant &  value,
int  role = Qt::EditRole 
)
overridevirtual

◆ setModelData()

bool TagListModel::setModelData ( const std::vector< std::pair< TagTypeRef, std::vector< BinaryNinja::TagReference > > > &  refs,
QItemSelectionModel *  selectionModel,
int  sortColumn,
Qt::SortOrder  sortOrder,
bool &  selectionUpdated 
)

◆ SetSectionSizeHints()

void TagListModel::SetSectionSizeHints ( const std::map< int, QSize > &  sizes)
inline

◆ sort()

virtual void TagListModel::sort ( int  column,
Qt::SortOrder  order 
)
overridevirtual

Member Data Documentation

◆ m_data

BinaryViewRef TagListModel::m_data
protected

◆ m_owner

QWidget* TagListModel::m_owner
protected

◆ m_refs

std::vector<std::pair<TagTypeRef, std::vector<BinaryNinja::TagReference> > > TagListModel::m_refs
protected

◆ m_sectionSizeHints

std::map<int, QSize> TagListModel::m_sectionSizeHints
protected

◆ m_settings

DisassemblySettingsRef TagListModel::m_settings
protected

◆ m_typeIndexes

std::map<TagTypeRef, size_t> TagListModel::m_typeIndexes
protected

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