diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-07-07 15:17:49 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-07-07 15:21:53 -0400 |
| commit | 402cf087cfcf69e0c38b027d2b8488d5cdcbed76 (patch) | |
| tree | 93159a8aa51f1aaaae973862403aed94164bb196 /ui/uicontext.h | |
| parent | 768f7c78465fb93936e5ca50a0ca712664fe54e7 (diff) | |
Add IL view type change UI context notification
Diffstat (limited to 'ui/uicontext.h')
| -rw-r--r-- | ui/uicontext.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/uicontext.h b/ui/uicontext.h index 82062040..501c4eeb 100644 --- a/ui/uicontext.h +++ b/ui/uicontext.h @@ -253,6 +253,22 @@ class BINARYNINJAUIAPI UIContextNotification } /*! + Callback when the ui changes IL view type + \param context Context changing address + \param frame ViewFrame which changed address + \param view Currently open View + \param viewType New view type + */ + virtual void OnILViewTypeChange( + UIContext* context, ViewFrame* frame, View* view, const BinaryNinja::FunctionViewType& viewType) + { + (void)context; + (void)frame; + (void)view; + (void)viewType; + } + + /*! Callback to modify the displayed file name for a FileContext (eg in the window title or tab title) Note: Due to the out param &name, this is not usable from Python with PySide \param context Context which will display this name @@ -551,6 +567,7 @@ public: void NotifyOnViewChange(ViewFrame* frame, const QString& type); void NotifyOnAddressChange(ViewFrame* frame, View* view, const ViewLocation& location); + void NotifyOnILViewTypeChange(ViewFrame* frame, View* view, const BinaryNinja::FunctionViewType& viewType); void updateCrossReferences(ViewFrame* frame, View* view, const SelectionInfoForXref& selection); void NotifyOnActionExecuted(UIActionHandler* handler, const QString& name, const UIActionContext& ctx, std::function<void(const UIActionContext&)>& action); void NotifyOnContextMenuCreated(View* view, Menu& menu); |
