Binary Ninja API C++: TagList
Classes | |
| class | TagListModel |
| class | TagItemDelegate |
| class | TagList |
| class | TagListWidget |
| class | TagListDialog |
| class | TagListSidebarWidgetType |
◆ TagListModel
Signals | |
| void | notifyUpdateComplete (bool complete) |
Public Member Functions | |
| TagListModel (QWidget *parent, BinaryViewRef data) | |
| virtual | ~TagListModel () |
| void | connectDataStore () |
| void | disconnectDataStore () |
| BinaryNinja::TagReference & | GetRef (const QModelIndex &index) |
| const BinaryNinja::TagReference & | GetRef (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 |
| void | backgroundSort (int column, Qt::SortOrder order, TagStorage &tagStorage, TagTypeStorage &tagTypeStorage, TagTypeIndices &tagTypeIndices) |
| void | refresh () |
Protected Attributes | |
| QWidget * | m_owner |
| BinaryViewRef | m_data |
| NotificationsDispatcher * | m_dispatcher = nullptr |
| TagTypeStorage | m_tagTypes |
| std::unordered_map< std::string, uint64_t > | m_tagTypeCounts |
| TagStorage | m_tagStorage |
| TagTypeIndices | m_tagTypeIndices |
| std::map< int, QSize > | m_sectionSizeHints |
| DisassemblySettingsRef | m_settings |
◆ TagListModel()
| TagListModel::TagListModel | ( | QWidget * | parent, |
| BinaryViewRef | data ) |
◆ ~TagListModel()
|
virtual |
◆ connectDataStore()
| void TagListModel::connectDataStore | ( | ) |
◆ disconnectDataStore()
| void TagListModel::disconnectDataStore | ( | ) |
◆ GetRef() [1/2]
◆ GetRef() [2/2]
◆ SetSectionSizeHints()
|
inline |
◆ GetTypeRef() [1/2]
| TagTypeRef TagListModel::GetTypeRef | ( | const QModelIndex & | index | ) |
◆ GetTypeRef() [2/2]
| const TagTypeRef TagListModel::GetTypeRef | ( | const QModelIndex & | index | ) | const |
◆ index()
|
overridevirtual |
◆ parent()
|
overridevirtual |
◆ hasChildren()
|
overridevirtual |
◆ rowCount()
|
overridevirtual |
◆ columnCount()
|
overridevirtual |
◆ headerData()
|
overridevirtual |
◆ data()
|
overridevirtual |
◆ setData()
|
overridevirtual |
◆ flags()
|
overridevirtual |
◆ sort()
|
overridevirtual |
◆ backgroundSort()
| void TagListModel::backgroundSort | ( | int | column, |
| Qt::SortOrder | order, | ||
| TagStorage & | tagStorage, | ||
| TagTypeStorage & | tagTypeStorage, | ||
| TagTypeIndices & | tagTypeIndices ) |
◆ refresh()
| void TagListModel::refresh | ( | ) |
◆ notifyUpdateComplete
|
signal |
◆ m_owner
|
QWidget* TagListModel::m_owner |
protected |
◆ m_data
◆ m_dispatcher
◆ m_tagTypes
|
TagTypeStorage TagListModel::m_tagTypes |
protected |
◆ m_tagTypeCounts
|
std::unordered_map<std::string, uint64_t> TagListModel::m_tagTypeCounts |
protected |
◆ m_tagStorage
|
TagStorage TagListModel::m_tagStorage |
protected |
◆ m_tagTypeIndices
|
TagTypeIndices TagListModel::m_tagTypeIndices |
protected |
◆ m_sectionSizeHints
|
std::map<int, QSize> TagListModel::m_sectionSizeHints |
protected |
◆ m_settings
◆ TagItemDelegate
Public Member Functions | |
| TagItemDelegate (QWidget *parent) | |
| void | updateFonts () |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &idx) const override |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override |
| virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const override |
Protected Member Functions | |
| void | initFont () |
Protected Attributes | |
| QFont | m_font |
| QFont | m_monospaceFont |
| QFont | m_emojiFont |
| int | m_baseline |
| int | m_charWidth |
| int | m_charHeight |
| int | m_charOffset |
◆ TagItemDelegate()
| TagItemDelegate::TagItemDelegate | ( | QWidget * | parent | ) |
◆ initFont()
|
protected |
◆ updateFonts()
| void TagItemDelegate::updateFonts | ( | ) |
◆ sizeHint()
|
overridevirtual |
◆ paint()
|
overridevirtual |
◆ setEditorData()
|
overridevirtual |
◆ m_font
|
QFont TagItemDelegate::m_font |
protected |
◆ m_monospaceFont
|
QFont TagItemDelegate::m_monospaceFont |
protected |
◆ m_emojiFont
|
QFont TagItemDelegate::m_emojiFont |
protected |
◆ m_baseline
|
int TagItemDelegate::m_baseline |
protected |
◆ m_charWidth
|
int TagItemDelegate::m_charWidth |
protected |
◆ m_charHeight
|
int TagItemDelegate::m_charHeight |
protected |
◆ m_charOffset
|
int TagItemDelegate::m_charOffset |
protected |
Public Types | |
| typedef std::function< bool(const BinaryNinja::TagReference &)> | FilterFn |
Public Slots | |
| void | showContextMenu () |
Public Member Functions | |
| TagList (QWidget *parent, ViewFrame *view, BinaryViewRef data, TagListModel *model=nullptr, Menu *menu=nullptr) | |
| virtual | ~TagList () |
| virtual void | setModel (QAbstractItemModel *model) override |
| void | notifyFontChanged () |
| void | removeSelection () |
| void | copySelection () |
| void | filterTagReferences (std::vector< BinaryNinja::TagReference > &refs) |
| void | clearFilter () |
| void | setFilter (FilterFn filter) |
| void | setFilterView (FilteredView *filterView) |
| bool | hasSelection () |
| void | navigateToNext () |
| void | navigateToPrev () |
| virtual void | scrollToFirstItem () override |
| virtual void | scrollToCurrentItem () override |
| virtual void | ensureSelection () override |
| virtual void | activateSelection () override |
| Public Member Functions inherited from FilterTarget | |
| virtual | ~FilterTarget () |
| virtual void | closeFilter () |
Static Public Member Functions | |
| static void | registerActions () |
Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *event) override |
| virtual void | keyPressEvent (QKeyEvent *e) override |
| virtual void | mouseMoveEvent (QMouseEvent *e) override |
| virtual void | mousePressEvent (QMouseEvent *e) override |
| virtual void | wheelEvent (QWheelEvent *e) override |
| virtual void | resizeEvent (QResizeEvent *event) override |
| void | goToReference (const QModelIndex &idx) |
| void | setFilter (const std::string &filter) override |
◆ FilterFn
◆ TagList()
◆ ~TagList()
|
virtual |
◆ contextMenuEvent()
|
overrideprotectedvirtual |
◆ keyPressEvent()
|
overrideprotectedvirtual |
◆ mouseMoveEvent()
|
overrideprotectedvirtual |
◆ mousePressEvent()
|
overrideprotectedvirtual |
◆ wheelEvent()
|
overrideprotectedvirtual |
◆ resizeEvent()
|
overrideprotectedvirtual |
◆ goToReference()
|
protected |
◆ setFilter() [1/2]
|
overrideprotectedvirtual |
◆ showContextMenu
|
slot |
◆ registerActions()
|
static |
◆ setModel()
|
overridevirtual |
◆ notifyFontChanged()
| void TagList::notifyFontChanged | ( | ) |
◆ removeSelection()
| void TagList::removeSelection | ( | ) |
◆ copySelection()
| void TagList::copySelection | ( | ) |
◆ filterTagReferences()
◆ clearFilter()
| void TagList::clearFilter | ( | ) |
◆ setFilter() [2/2]
| void TagList::setFilter | ( | FilterFn | filter | ) |
◆ setFilterView()
|
inline |
◆ hasSelection()
| bool TagList::hasSelection | ( | ) |
◆ navigateToNext()
| void TagList::navigateToNext | ( | ) |
◆ navigateToPrev()
| void TagList::navigateToPrev | ( | ) |
◆ scrollToFirstItem()
|
overridevirtual |
◆ scrollToCurrentItem()
|
overridevirtual |
◆ ensureSelection()
|
overridevirtual |
◆ activateSelection()
|
overridevirtual |
◆ TagListWidget
◆ TagListDialog
◆ AddFn
typedef std::function<void(const TagRef&)> TagListDialog::AddFn
◆ TagListDialog()
◆ setFilter()
| void TagListDialog::setFilter | ( | TagList::FilterFn | filter | ) |
◆ TagListSidebarWidgetType
class TagListSidebarWidgetType