@@ -329,6 +329,7 @@ struct CrossReferenceFunctionList
329329 void updateFunction (BinaryNinja::Function* func);
330330 std::optional<uint64_t > getFunctionVersion (BinaryNinja::Function* func) const ;
331331 bool checkForUpdates ();
332+ void invalidateCache ();
332333};
333334
334335/* !
@@ -371,6 +372,7 @@ class BINARYNINJAUIAPI CrossReferenceTreeModel : public QAbstractItemModel
371372 size_t getMaxUIItems () const { return m_maxUIItems; }
372373 void setGraphType (const BinaryNinja::FunctionViewType& type);
373374 void notifyRefresh ();
375+ void invalidateCache ();
374376
375377Q_SIGNALS:
376378 void needRepaint ();
@@ -436,6 +438,7 @@ class BINARYNINJAUIAPI CrossReferenceTableModel : public QAbstractTableModel
436438 size_t getMaxUIItems () const { return m_maxUIItems; }
437439 void setGraphType (const BinaryNinja::FunctionViewType& type);
438440 void notifyRefresh ();
441+ void invalidateCache ();
439442
440443Q_SIGNALS:
441444 void needRepaint ();
@@ -575,6 +578,7 @@ class BINARYNINJAUIAPI CrossReferenceTree : public QTreeView, public CrossRefere
575578 void setGraphType (const BinaryNinja::FunctionViewType& type) { m_tree->setGraphType (type); }
576579 virtual void OnAnalysisFunctionUpdated (BinaryNinja::BinaryView* view, BinaryNinja::Function* func) override ;
577580 void notifyRefresh ();
581+ void invalidateCache ();
578582
579583Q_SIGNALS:
580584 void newSelection ();
@@ -620,6 +624,7 @@ class BINARYNINJAUIAPI CrossReferenceTable : public QTableView, public CrossRefe
620624 void setGraphType (const BinaryNinja::FunctionViewType& type) { m_table->setGraphType (type); }
621625 virtual void OnAnalysisFunctionUpdated (BinaryNinja::BinaryView* view, BinaryNinja::Function* func) override ;
622626 void notifyRefresh ();
627+ void invalidateCache ();
623628
624629public Q_SLOTS:
625630 void doRepaint ();
@@ -710,6 +715,8 @@ class BINARYNINJAUIAPI CrossReferenceWidget : public SidebarWidget, public UICon
710715
711716 virtual void OnNewSelectionForXref (
712717 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 ;
713720
714721 virtual QWidget* headerWidget () override { return m_header; }
715722 virtual void setPrimaryOrientation (Qt::Orientation orientation) override ;
0 commit comments