CrossReferenceWidget Class Reference

Public Slots

void referenceActivated (const QModelIndex &idx)
 
void pinnedStateChanged (bool state)
 
void selectionChanged ()
 
void typeChanged (int index, bool checked)
 
void directionChanged (int change, bool checked)
 

Public Member Functions

 CrossReferenceWidget (ViewFrame *view, BinaryViewRef data, bool pinned)
 
virtual ~CrossReferenceWidget ()
 
virtual void notifyFontChanged () override
 
virtual QString getHeaderText (SelectionInfoForXref selectionInfo)
 
virtual void setCurrentSelection (SelectionInfoForXref selectionInfo)
 
virtual void updateCrossReferences ()
 
virtual void setCurrentPinnedSelection (SelectionInfoForXref selectionInfo)
 
void updatePinnedSelection ()
 
virtual void navigateToNext ()
 
virtual void navigateToPrev ()
 
virtual bool selectFirstRow ()
 
virtual bool hasSelection () const
 
virtual void goToReference (const QModelIndex &idx)
 
virtual void restartHoverTimer (QMouseEvent *e)
 
virtual void startHoverTimer (QMouseEvent *e)
 
virtual void keyPressEvent (QKeyEvent *e) override
 
virtual bool keyPressHandler (QKeyEvent *e)
 
void useTableView (bool tableView, bool init)
 
bool tableView () const
 
bool uiMaxItemsExceeded () const
 
void setUIMaxItemsExceeded (bool value)
 
void setGraphType (BNFunctionGraphType type)
 
virtual void focus () override
 
virtual void OnNewSelectionForXref (UIContext *context, ViewFrame *frame, View *view, const SelectionInfoForXref &selection) override
 Callback when the ui changes selection and should update cross references. More...
 
virtual QWidget * headerWidget () override
 
- Public Member Functions inherited from SidebarWidget
 SidebarWidget (const QString &title)
 
const QString & title () const
 
virtual void notifyFontChanged ()
 
virtual void notifyOffsetChanged (uint64_t)
 
virtual void notifyThemeChanged ()
 
virtual void notifyViewChanged (ViewFrame *)
 
virtual void notifyViewLocationChanged (View *, const ViewLocation &)
 
virtual void focus ()
 
virtual QWidget * headerWidget ()
 
- Public Member Functions inherited from UIContextNotification
virtual void OnContextOpen (UIContext *context)
 Callback after a UIContext is opened (eg MainWindow) More...
 
virtual void OnContextClose (UIContext *context)
 Callback right before closing a UIContext. More...
 
virtual bool OnBeforeOpenDatabase (UIContext *context, FileMetadataRef metadata)
 Callback before a database (specifically a database, not a raw file) is opened. More...
 
virtual bool OnAfterOpenDatabase (UIContext *context, FileMetadataRef metadata, BinaryViewRef data)
 Callback after a database (specifically a database, not a raw file) is opened. More...
 
virtual bool OnBeforeOpenFile (UIContext *context, FileContext *file)
 Callback before a file (raw or database) is opened (after OnAfterOpenDatabase if opening a database) More...
 
virtual void OnAfterOpenFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback after a file (raw or database) is opened. More...
 
virtual bool OnBeforeSaveFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback before a file is saved (either as a database or raw) More...
 
virtual void OnAfterSaveFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback after a file is saved (either as a database or raw) More...
 
virtual bool OnBeforeCloseFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback before a file is closed. More...
 
virtual void OnAfterCloseFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback after a file is closed. More...
 
virtual void OnViewChange (UIContext *context, ViewFrame *frame, const QString &type)
 Callback when the ui changes views. More...
 
virtual void OnAddressChange (UIContext *context, ViewFrame *frame, View *view, const ViewLocation &location)
 Callback when the ui changes address. More...
 
virtual bool GetNameForFile (UIContext *context, FileContext *file, QString &name)
 Callback to modify the displayed file name for a FileContext (eg in the window title or tab title) Note: Due to the out param &name, this is not usable from Python with PySide. More...
 
virtual bool GetNameForPath (UIContext *context, const QString &path, QString &name)
 Callback to modify the displayed file name for a file path (eg in the new tab widget) Note: Due to the out param &name, this is not usable from Python with PySide. More...
 
virtual void OnNewSelectionForXref (UIContext *context, ViewFrame *frame, View *view, const SelectionInfoForXref &selection)
 Callback when the ui changes selection and should update cross references. More...
 

Additional Inherited Members

- Protected Attributes inherited from SidebarWidget
QString m_title
 
UIActionHandler m_actionHandler
 
ContextMenuManagerm_contextMenuManager = nullptr
 
Menum_menu = nullptr
 

Constructor & Destructor Documentation

◆ CrossReferenceWidget()

CrossReferenceWidget::CrossReferenceWidget ( ViewFrame view,
BinaryViewRef  data,
bool  pinned 
)

◆ ~CrossReferenceWidget()

virtual CrossReferenceWidget::~CrossReferenceWidget ( )
virtual

Member Function Documentation

◆ directionChanged

void CrossReferenceWidget::directionChanged ( int  change,
bool  checked 
)
slot

◆ focus()

virtual void CrossReferenceWidget::focus ( )
overridevirtual

Reimplemented from SidebarWidget.

◆ getHeaderText()

virtual QString CrossReferenceWidget::getHeaderText ( SelectionInfoForXref  selectionInfo)
virtual

◆ goToReference()

virtual void CrossReferenceWidget::goToReference ( const QModelIndex &  idx)
virtual

◆ hasSelection()

virtual bool CrossReferenceWidget::hasSelection ( ) const
virtual

◆ headerWidget()

virtual QWidget * CrossReferenceWidget::headerWidget ( )
inlineoverridevirtual

Reimplemented from SidebarWidget.

◆ keyPressEvent()

virtual void CrossReferenceWidget::keyPressEvent ( QKeyEvent *  e)
overridevirtual

◆ keyPressHandler()

virtual bool CrossReferenceWidget::keyPressHandler ( QKeyEvent *  e)
virtual

◆ navigateToNext()

virtual void CrossReferenceWidget::navigateToNext ( )
virtual

◆ navigateToPrev()

virtual void CrossReferenceWidget::navigateToPrev ( )
virtual

◆ notifyFontChanged()

virtual void CrossReferenceWidget::notifyFontChanged ( )
overridevirtual

Reimplemented from SidebarWidget.

◆ OnNewSelectionForXref()

virtual void CrossReferenceWidget::OnNewSelectionForXref ( UIContext context,
ViewFrame frame,
View view,
const SelectionInfoForXref selection 
)
overridevirtual

Callback when the ui changes selection and should update cross references.

Parameters
contextContext changing selection
frameViewFrame which changed selection
viewView that changed selection
selectionNew selection

Reimplemented from UIContextNotification.

◆ pinnedStateChanged

void CrossReferenceWidget::pinnedStateChanged ( bool  state)
slot

◆ referenceActivated

void CrossReferenceWidget::referenceActivated ( const QModelIndex &  idx)
slot

◆ restartHoverTimer()

virtual void CrossReferenceWidget::restartHoverTimer ( QMouseEvent *  e)
virtual

◆ selectFirstRow()

virtual bool CrossReferenceWidget::selectFirstRow ( )
virtual

◆ selectionChanged

void CrossReferenceWidget::selectionChanged ( )
slot

◆ setCurrentPinnedSelection()

virtual void CrossReferenceWidget::setCurrentPinnedSelection ( SelectionInfoForXref  selectionInfo)
virtual

◆ setCurrentSelection()

virtual void CrossReferenceWidget::setCurrentSelection ( SelectionInfoForXref  selectionInfo)
virtual

◆ setGraphType()

void CrossReferenceWidget::setGraphType ( BNFunctionGraphType  type)

◆ setUIMaxItemsExceeded()

void CrossReferenceWidget::setUIMaxItemsExceeded ( bool  value)
inline

◆ startHoverTimer()

virtual void CrossReferenceWidget::startHoverTimer ( QMouseEvent *  e)
virtual

◆ tableView()

bool CrossReferenceWidget::tableView ( ) const
inline

◆ typeChanged

void CrossReferenceWidget::typeChanged ( int  index,
bool  checked 
)
slot

◆ uiMaxItemsExceeded()

bool CrossReferenceWidget::uiMaxItemsExceeded ( ) const
inline

◆ updateCrossReferences()

virtual void CrossReferenceWidget::updateCrossReferences ( )
virtual

◆ updatePinnedSelection()

void CrossReferenceWidget::updatePinnedSelection ( )

◆ useTableView()

void CrossReferenceWidget::useTableView ( bool  tableView,
bool  init 
)

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