From 4bc108e48a80aed3c59ca9c03867b7a312392e97 Mon Sep 17 00:00:00 2001 From: Brian Knudson Date: Thu, 18 Mar 2021 11:23:59 -0400 Subject: Add Go to File Offset action --- ui/viewframe.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/viewframe.h') diff --git a/ui/viewframe.h b/ui/viewframe.h index 0f86aa2b..09d3376c 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -352,6 +352,8 @@ public: uint64_t currentAddress, const QString& addrStr, std::string& errorString); static bool getAddressFromInput(QWidget* parent, BinaryViewRef data, uint64_t& offset, uint64_t currentAddress, const QString& title = "Go to Address", const QString& msg = "Address:", bool defaultToCurrent = false); + static bool getFileOffsetFromInput(QWidget* parent, BinaryViewRef data, uint64_t& offset, + uint64_t currentAddress, const QString& title = "Go to File Offset", const QString& msg = "File Offset:", bool defaultToCurrent = false); void setCurrentFunction(FunctionRef func); void updateCrossReferences(); -- cgit v1.3.1