From d66617bdfab6c64b9fe0faa89566d2f35973b211 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 9 Feb 2026 15:37:07 -0500 Subject: Add button to open with options from the Container Browser dialog. --- ui/containerbrowser.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/containerbrowser.h b/ui/containerbrowser.h index a5978d06..d7423dba 100644 --- a/ui/containerbrowser.h +++ b/ui/containerbrowser.h @@ -91,10 +91,13 @@ class BINARYNINJAUIAPI ContainerBrowser : public QDialog QDialogButtonBox* m_buttons = nullptr; AllColumnsFilterProxyModel* m_proxy = nullptr; + QPushButton* m_openWithOptionsButton = nullptr; + QStringList m_pendingSelectionPath; QStringList m_selectedPaths; int m_lastPreviewSize = 0; int m_dialogWidth = 0; + bool m_openWithOptionsRequested = false; void connectSignals(); void updatePreviewForIndex(const QModelIndex& proxyIndex); @@ -113,6 +116,7 @@ public: ContainerBrowser(TransformSessionRef session, QWidget* parent = nullptr); QStringList selectedPaths() const { return m_selectedPaths; } + bool openWithOptionsRequested() const { return m_openWithOptionsRequested; } - static std::vector openContainerFile(const QString& path, bool forceShowDialog = false); + static std::vector openContainerFile(const QString& path, bool forceShowDialog = false, bool* outOpenWithOptions = nullptr); }; -- cgit v1.3.1