TagList Class Reference

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 clearFilter ()
 
void setFilter (FilterFn filter)
 
void setFilterView (FilteredView *filterView)
 
void updateTags ()
 
bool hasSelection ()
 
void navigateToNext ()
 
void navigateToPrev ()
 
void scrollToFirstItem () override
 
void scrollToCurrentItem () override
 
void selectFirstItem () override
 
void activateFirstItem () override
 
- Public Member Functions inherited from BinaryNinja::BinaryDataNotification
 BinaryDataNotification ()
 
virtual ~BinaryDataNotification ()
 
BNBinaryDataNotificationGetCallbacks ()
 
virtual void OnBinaryDataWritten (BinaryView *view, uint64_t offset, size_t len)
 
virtual void OnBinaryDataInserted (BinaryView *view, uint64_t offset, size_t len)
 
virtual void OnBinaryDataRemoved (BinaryView *view, uint64_t offset, uint64_t len)
 
virtual void OnAnalysisFunctionAdded (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionRemoved (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionUpdated (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionUpdateRequested (BinaryView *view, Function *func)
 
virtual void OnDataVariableAdded (BinaryView *view, const DataVariable &var)
 
virtual void OnDataVariableRemoved (BinaryView *view, const DataVariable &var)
 
virtual void OnDataVariableUpdated (BinaryView *view, const DataVariable &var)
 
virtual void OnDataMetadataUpdated (BinaryView *view, uint64_t offset)
 
virtual void OnTagTypeUpdated (BinaryView *view, Ref< TagType > tagTypeRef)
 
virtual void OnTagAdded (BinaryView *view, const TagReference &tagRef)
 
virtual void OnTagUpdated (BinaryView *view, const TagReference &tagRef)
 
virtual void OnTagRemoved (BinaryView *view, const TagReference &tagRef)
 
virtual void OnSymbolAdded (BinaryView *view, Symbol *sym)
 
virtual void OnSymbolUpdated (BinaryView *view, Symbol *sym)
 
virtual void OnSymbolRemoved (BinaryView *view, Symbol *sym)
 
virtual void OnStringFound (BinaryView *data, BNStringType type, uint64_t offset, size_t len)
 
virtual void OnStringRemoved (BinaryView *data, BNStringType type, uint64_t offset, size_t len)
 
virtual void OnTypeDefined (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeUndefined (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeReferenceChanged (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeFieldReferenceChanged (BinaryView *data, const QualifiedName &name, uint64_t offset)
 
- Public Member Functions inherited from FilterTarget
virtual ~FilterTarget ()
 
virtual void setFilter (const std::string &filter)=0
 
virtual void scrollToFirstItem ()=0
 
virtual void scrollToCurrentItem ()=0
 
virtual void selectFirstItem ()=0
 
virtual void activateFirstItem ()=0
 
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
 
virtual void OnAnalysisFunctionUpdated (BinaryNinja::BinaryView *view, BinaryNinja::Function *func) override
 
virtual void OnTagAdded (BinaryNinja::BinaryView *, const BinaryNinja::TagReference &) override
 
virtual void OnTagUpdated (BinaryNinja::BinaryView *, const BinaryNinja::TagReference &) override
 
virtual void OnTagRemoved (BinaryNinja::BinaryView *, const BinaryNinja::TagReference &) override
 
virtual void OnTagTypeUpdated (BinaryNinja::BinaryView *, TagTypeRef) override
 
virtual void showEvent (QShowEvent *event) override
 
virtual void hideEvent (QHideEvent *event) override
 

Member Typedef Documentation

◆ FilterFn

typedef std::function<bool(const BinaryNinja::TagReference&)> TagList::FilterFn

Constructor & Destructor Documentation

◆ TagList()

TagList::TagList ( QWidget *  parent,
ViewFrame view,
BinaryViewRef  data,
TagListModel model = nullptr,
Menu menu = nullptr 
)

◆ ~TagList()

virtual TagList::~TagList ( )
virtual

Member Function Documentation

◆ activateFirstItem()

void TagList::activateFirstItem ( )
overridevirtual

Implements FilterTarget.

◆ clearFilter()

void TagList::clearFilter ( )

◆ contextMenuEvent()

virtual void TagList::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedvirtual

◆ goToReference()

void TagList::goToReference ( const QModelIndex &  idx)
protected

◆ hasSelection()

bool TagList::hasSelection ( )

◆ hideEvent()

virtual void TagList::hideEvent ( QHideEvent *  event)
overrideprotectedvirtual

◆ keyPressEvent()

virtual void TagList::keyPressEvent ( QKeyEvent *  e)
overrideprotectedvirtual

◆ mouseMoveEvent()

virtual void TagList::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedvirtual

◆ mousePressEvent()

virtual void TagList::mousePressEvent ( QMouseEvent *  e)
overrideprotectedvirtual

◆ navigateToNext()

void TagList::navigateToNext ( )

◆ navigateToPrev()

void TagList::navigateToPrev ( )

◆ notifyFontChanged()

void TagList::notifyFontChanged ( )

◆ OnAnalysisFunctionUpdated()

virtual void TagList::OnAnalysisFunctionUpdated ( BinaryNinja::BinaryView view,
BinaryNinja::Function func 
)
overrideprotectedvirtual

◆ OnTagAdded()

virtual void TagList::OnTagAdded ( BinaryNinja::BinaryView ,
const BinaryNinja::TagReference  
)
overrideprotectedvirtual

◆ OnTagRemoved()

virtual void TagList::OnTagRemoved ( BinaryNinja::BinaryView ,
const BinaryNinja::TagReference  
)
overrideprotectedvirtual

◆ OnTagTypeUpdated()

virtual void TagList::OnTagTypeUpdated ( BinaryNinja::BinaryView ,
TagTypeRef   
)
overrideprotectedvirtual

◆ OnTagUpdated()

virtual void TagList::OnTagUpdated ( BinaryNinja::BinaryView ,
const BinaryNinja::TagReference  
)
overrideprotectedvirtual

◆ registerActions()

static void TagList::registerActions ( )
static

◆ removeSelection()

void TagList::removeSelection ( )

◆ resizeEvent()

virtual void TagList::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

◆ scrollToCurrentItem()

void TagList::scrollToCurrentItem ( )
overridevirtual

Implements FilterTarget.

◆ scrollToFirstItem()

void TagList::scrollToFirstItem ( )
overridevirtual

Implements FilterTarget.

◆ selectFirstItem()

void TagList::selectFirstItem ( )
overridevirtual

Implements FilterTarget.

◆ setFilter() [1/2]

void TagList::setFilter ( const std::string &  filter)
overrideprotectedvirtual

Implements FilterTarget.

◆ setFilter() [2/2]

void TagList::setFilter ( FilterFn  filter)

◆ setFilterView()

void TagList::setFilterView ( FilteredView filterView)
inline

◆ setModel()

virtual void TagList::setModel ( QAbstractItemModel *  model)
overridevirtual

◆ showContextMenu

void TagList::showContextMenu ( )
slot

◆ showEvent()

virtual void TagList::showEvent ( QShowEvent *  event)
overrideprotectedvirtual

◆ updateTags()

void TagList::updateTags ( )

◆ wheelEvent()

virtual void TagList::wheelEvent ( QWheelEvent *  e)
overrideprotectedvirtual

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