@@ -329,6 +329,7 @@ struct CrossReferenceFunctionList
329
329
void updateFunction (BinaryNinja::Function* func);
330
330
std::optional<uint64_t > getFunctionVersion (BinaryNinja::Function* func) const ;
331
331
bool checkForUpdates ();
332
+ void invalidateCache ();
332
333
};
333
334
334
335
/* !
@@ -371,6 +372,7 @@ class BINARYNINJAUIAPI CrossReferenceTreeModel : public QAbstractItemModel
371
372
size_t getMaxUIItems () const { return m_maxUIItems; }
372
373
void setGraphType (const BinaryNinja::FunctionViewType& type);
373
374
void notifyRefresh ();
375
+ void invalidateCache ();
374
376
375
377
Q_SIGNALS:
376
378
void needRepaint ();
@@ -436,6 +438,7 @@ class BINARYNINJAUIAPI CrossReferenceTableModel : public QAbstractTableModel
436
438
size_t getMaxUIItems () const { return m_maxUIItems; }
437
439
void setGraphType (const BinaryNinja::FunctionViewType& type);
438
440
void notifyRefresh ();
441
+ void invalidateCache ();
439
442
440
443
Q_SIGNALS:
441
444
void needRepaint ();
@@ -575,6 +578,7 @@ class BINARYNINJAUIAPI CrossReferenceTree : public QTreeView, public CrossRefere
575
578
void setGraphType (const BinaryNinja::FunctionViewType& type) { m_tree->setGraphType (type); }
576
579
virtual void OnAnalysisFunctionUpdated (BinaryNinja::BinaryView* view, BinaryNinja::Function* func) override ;
577
580
void notifyRefresh ();
581
+ void invalidateCache ();
578
582
579
583
Q_SIGNALS:
580
584
void newSelection ();
@@ -620,6 +624,7 @@ class BINARYNINJAUIAPI CrossReferenceTable : public QTableView, public CrossRefe
620
624
void setGraphType (const BinaryNinja::FunctionViewType& type) { m_table->setGraphType (type); }
621
625
virtual void OnAnalysisFunctionUpdated (BinaryNinja::BinaryView* view, BinaryNinja::Function* func) override ;
622
626
void notifyRefresh ();
627
+ void invalidateCache ();
623
628
624
629
public Q_SLOTS:
625
630
void doRepaint ();
@@ -710,6 +715,8 @@ class BINARYNINJAUIAPI CrossReferenceWidget : public SidebarWidget, public UICon
710
715
711
716
virtual void OnNewSelectionForXref (
712
717
UIContext* context, ViewFrame* frame, View* view, const SelectionInfoForXref& selection) override ;
718
+ void OnILViewTypeChange (
719
+ UIContext* context, ViewFrame* frame, View* view, const BinaryNinja::FunctionViewType& viewType) override ;
713
720
714
721
virtual QWidget* headerWidget () override { return m_header; }
715
722
virtual void setPrimaryOrientation (Qt::Orientation orientation) override ;
0 commit comments