From 97ac519092fc87e27c49ab21aafb41b77f40dc03 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 12 Jan 2024 10:11:19 -0700 Subject: Sidebar improvements --- ui/typebrowser.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/typebrowser.h') 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; }; -- cgit v1.3.1