diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-03-27 22:56:46 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-03-27 23:02:34 -0400 |
| commit | 02da29123186692f39381fa1f4d077c46e14f6c9 (patch) | |
| tree | 13865d75cda98c40bc2a37ba8d18cf5a78bd07a4 /ui | |
| parent | c6604a881d3febdf691d77561c62057bb09dac71 (diff) | |
Add API for adding a new type of file open button on the new tab page
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/uicontext.h | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |
