From 02da29123186692f39381fa1f4d077c46e14f6c9 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Wed, 27 Mar 2019 22:56:46 -0400 Subject: Add API for adding a new type of file open button on the new tab page --- ui/uicontext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/uicontext.h b/ui/uicontext.h index e65a603f..e2a6e0a5 100644 --- a/ui/uicontext.h +++ b/ui/uicontext.h @@ -23,6 +23,7 @@ public: virtual ~UIContextHandler(); virtual void updateStatus(bool updateInfo) = 0; virtual void notifyThemeChanged() = 0; + virtual void registerFileOpenMode(const QString& buttonName, const QString& description, const QString& action); }; class BINARYNINJAUIAPI UIContext @@ -59,6 +60,7 @@ public: static void closePreview(); static bool sendPreviewWheelEvent(QWheelEvent* event); static void closeOtherActiveModalWidget(QWidget* current); + static void registerFileOpenMode(const QString& buttonName, const QString& description, const QString& action); static UIContext* contextForWidget(QWidget* widget); static UIContext* activeContext(); -- cgit v1.3.1