diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2024-01-12 10:11:19 -0700 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2024-02-05 13:42:52 -0500 |
| commit | 97ac519092fc87e27c49ab21aafb41b77f40dc03 (patch) | |
| tree | 33d1a72b835a73c25868cb170106f865d9d54430 /ui/typebrowser.h | |
| parent | efa49ca6d23530b5e1ececccea4a2dc0bbe3406b (diff) | |
Sidebar improvements
Diffstat (limited to 'ui/typebrowser.h')
| -rw-r--r-- | ui/typebrowser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/typebrowser.h b/ui/typebrowser.h index b6f442a2..783de834 100644 --- a/ui/typebrowser.h +++ b/ui/typebrowser.h @@ -380,6 +380,8 @@ public: bool navigateToType(const std::string& typeName, uint64_t offset); void scrollToIndexWithContext(const QModelIndex& index, int context = 1); + void setPrimaryOrientation(Qt::Orientation orientation); + // Selection helpers // All nodes @@ -507,6 +509,7 @@ public: TypeBrowserContainer* container() { return m_container; } virtual QWidget* headerWidget() override { return m_header; } virtual void focus() override; + virtual void setPrimaryOrientation(Qt::Orientation orientation) override; protected: virtual void contextMenuEvent(QContextMenuEvent* event) override; @@ -521,4 +524,8 @@ class BINARYNINJAUIAPI TypeBrowserSidebarWidgetType : public SidebarWidgetType public: TypeBrowserSidebarWidgetType(); virtual SidebarWidget* createWidget(ViewFrame* frame, BinaryViewRef data) override; + + SidebarWidgetLocation defaultLocation() const override { return SidebarWidgetLocation::LeftContent; } + virtual bool canUseAsPane(SplitPaneWidget*, BinaryViewRef) const override { return true; } + virtual Pane* createPane(SplitPaneWidget* panes, BinaryViewRef data) override; }; |
