From d6b0d6e6fd2f2ad5a10f3d11c7a0393c1673281e Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 21 Nov 2020 18:08:02 -0500 Subject: Add flowgraph API to highlight related instructions. --- ui/flowgraphwidget.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h index 2c05144d..0a9bf4c1 100644 --- a/ui/flowgraphwidget.h +++ b/ui/flowgraphwidget.h @@ -104,6 +104,8 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View, CursorPosition m_cursorPos, m_selectionStartPos; HighlightTokenState m_highlight; bool m_tokenSelection = false; + std::set m_relatedIndexHighlights; + std::set m_relatedInstructionHighlights; ContextMenuManager m_contextMenuManager; QPointer m_commentDialog; @@ -218,6 +220,9 @@ public: bool navigateWithHistoryEntry(FunctionRef func, uint64_t addr, FlowGraphHistoryEntry* entry); void setNavigationTarget(View* target) { m_navigationTarget = target; } + virtual void setRelatedIndexHighlights(const std::set& related); + virtual void setRelatedInstructionHighlights(const std::set& related); + virtual void zoom(bool direction); virtual void zoomActual(); virtual bool event(QEvent* event) override; -- cgit v1.3.1