From f5273b29f60826b693b45404a8a428d3f1d1bda5 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 19 Oct 2024 11:13:54 -0400 Subject: Improved support for interactive flowgraphs. --- ui/flowgraphwidget.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h index 321a8480..e41c8586 100644 --- a/ui/flowgraphwidget.h +++ b/ui/flowgraphwidget.h @@ -262,6 +262,7 @@ class BINARYNINJAUIAPI FlowGraphWidget : virtual bool canCopyWithTransform() override; virtual bool canCut() override; virtual bool canCopy() override; + virtual bool canCopyAddress() override; virtual bool canPaste() override; virtual void cut() override; virtual void copy(TransformRef xform) override; @@ -312,7 +313,7 @@ class BINARYNINJAUIAPI FlowGraphWidget : virtual bool goToReference(FunctionRef func, uint64_t source, uint64_t target) override; - void setHighlightToken(const HighlightTokenState& state, bool notify = true); + void setHighlightToken(const HighlightTokenState& state, bool notify = true, bool update = false); virtual void notifyUpdateInProgress(FunctionRef func); virtual void onFunctionSelected(FunctionRef func); @@ -323,8 +324,7 @@ class BINARYNINJAUIAPI FlowGraphWidget : // and they have out parameters (and thus need to be re-implemented) they must be public bool getNodeForMouseEvent(QMouseEvent* event, FlowGraphNodeRef& node); bool getLineForMouseEvent(QMouseEvent* event, CursorPosition& pos); - bool getEdgeForMouseEvent( - QMouseEvent* event, FlowGraphNodeRef& source, BinaryNinja::FlowGraphEdge& edge, bool& incoming); + bool getEdgeForMouseEvent(QMouseEvent* event, FlowGraphNodeRef& source, BinaryNinja::FlowGraphEdge& edge, bool& incoming); FlowGraphWidget* duplicate(); -- cgit v1.3.1