Skip to content

Commit d6b0d6e

Browse files
committed
Add flowgraph API to highlight related instructions.
1 parent a805c3c commit d6b0d6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/flowgraphwidget.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
104104
CursorPosition m_cursorPos, m_selectionStartPos;
105105
HighlightTokenState m_highlight;
106106
bool m_tokenSelection = false;
107+
std::set<size_t> m_relatedIndexHighlights;
108+
std::set<uint64_t> m_relatedInstructionHighlights;
107109

108110
ContextMenuManager m_contextMenuManager;
109111
QPointer<CommentDialog> m_commentDialog;
@@ -218,6 +220,9 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
218220
bool navigateWithHistoryEntry(FunctionRef func, uint64_t addr, FlowGraphHistoryEntry* entry);
219221
void setNavigationTarget(View* target) { m_navigationTarget = target; }
220222

223+
virtual void setRelatedIndexHighlights(const std::set<size_t>& related);
224+
virtual void setRelatedInstructionHighlights(const std::set<uint64_t>& related);
225+
221226
virtual void zoom(bool direction);
222227
virtual void zoomActual();
223228
virtual bool event(QEvent* event) override;

0 commit comments

Comments
 (0)