summaryrefslogtreecommitdiff
path: root/ui/scriptingconsole.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2020-04-13 17:09:55 -0400
committerPeter LaFosse <peter@vector35.com>2020-04-13 17:44:52 -0400
commit1511b57efa929d7e4304d416ee0ab9edc3b7ff2e (patch)
tree460a22129217b625e95e98833487c2ae6c047f44 /ui/scriptingconsole.h
parentd263ddfe66b4cd1540b12edbb178e6ab4e706e75 (diff)
Make addresses clickable in scripting console
Diffstat (limited to 'ui/scriptingconsole.h')
-rw-r--r--ui/scriptingconsole.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/scriptingconsole.h b/ui/scriptingconsole.h
index 48eefa6d..4f2cc5a5 100644
--- a/ui/scriptingconsole.h
+++ b/ui/scriptingconsole.h
@@ -98,13 +98,18 @@ class BINARYNINJAUIAPI ScriptingConsoleOutput: public QTextEdit
UIActionHandler* m_handler;
UIActionHandler m_actionHandler;
ContextMenuManager* m_contextMenuManager;
+ BinaryViewRef m_data;
Menu* m_menu;
public:
ScriptingConsoleOutput(ScriptingConsole* parent, Menu* menu);
-
+ bool IsNavigable(const QString& str, const std::pair<int, int>& offsetLen, uint64_t& value, bool highlight) const;
protected:
void contextMenuEvent(QContextMenuEvent* event) override;
+
+public Q_SLOTS:
+ virtual void mousePressEvent(QMouseEvent* event) override;
+ void viewChanged(QWidget* frame);
};
class ScriptingConsoleWidget;
@@ -146,6 +151,9 @@ private Q_SLOTS:
void cancel();
void showCancelButton();
+Q_SIGNALS:
+ void viewChanged(QWidget* frame);
+
protected:
void customEvent(QEvent* event) override;
void notifyFontChanged() override;
@@ -167,6 +175,7 @@ public:
virtual void NotifyOutput(const std::string& text) override;
virtual void NotifyError(const std::string& text) override;
virtual void NotifyInputReadyStateChanged(BNScriptingProviderInputReadyState state) override;
+ virtual void notifyViewChanged(ViewFrame* frame) override;
void moveUpInHistory();
void moveDownInHistory();