diff options
| author | Peter LaFosse <peter@vector35.com> | 2022-08-17 12:34:06 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-08-18 08:57:49 -0400 |
| commit | daa5ed6ff6d93deb20aa09cdfb5429e34391e5e9 (patch) | |
| tree | 0ce81b1d570f5b37d363777e6eb7a0667604692f /ui/flowgraphwidget.h | |
| parent | 41d558e510b1e79f5b83834fcf99b1b2eec4961b (diff) | |
Add 'Zoom to Fit' in graph view
Diffstat (limited to 'ui/flowgraphwidget.h')
| -rw-r--r-- | ui/flowgraphwidget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h index f4751dea..3186e9eb 100644 --- a/ui/flowgraphwidget.h +++ b/ui/flowgraphwidget.h @@ -228,8 +228,10 @@ class BINARYNINJAUIAPI FlowGraphWidget : virtual void setRelatedIndexHighlights(FunctionRef func, const std::set<size_t>& related) override; virtual void setRelatedInstructionHighlights(FunctionRef func, const std::set<uint64_t>& related) override; + float maxScale() const; virtual void zoom(bool direction); - virtual void zoomActual(); + virtual void zoomToScale(float scale = 1.0f); + // virtual void zoomToCursor(); virtual bool event(QEvent* event) override; void disableZoom(); virtual void sendWheelEvent(QWheelEvent* event) override; |
