diff options
| author | Brian Potchik <brian@vector35.com> | 2026-02-10 10:29:18 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2026-02-10 10:29:18 -0500 |
| commit | 15a836af4ae798a1d030394e872781ca381cf844 (patch) | |
| tree | a3c8f9c73b9f6f8fea4378d51e5793a008061adc /ui | |
| parent | eab54b005e28cda35ac140e1bb504cb7bcaae56e (diff) | |
Improve container-aware display names in projects.
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/uicontext.h | 10 | ||||
| -rw-r--r-- | ui/uitypes.h | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/ui/uicontext.h b/ui/uicontext.h index 5ca5a4e5..fcb77479 100644 --- a/ui/uicontext.h +++ b/ui/uicontext.h @@ -561,10 +561,10 @@ public: virtual ProjectRef getProject(); virtual ProjectStatusWidget* getProjectStatusWidget(); - virtual bool openFilename(const QString& path, bool openOptions = false); + virtual bool openFilename(const QString& path, bool openOptions = false, bool forceContainerBrowser = false); virtual ProjectRef openProject(const QString& path); virtual ViewFrame* openFileContext(FileContext* file, const QString& forcedView = "", bool addTab = true); - virtual bool openProjectFile(ProjectFileRef file, ExternalLocationRef loc = nullptr, bool openWithOptions = false); + virtual bool openProjectFile(ProjectFileRef file, ExternalLocationRef loc = nullptr, bool openWithOptions = false, bool forceContainerBrowser = false); virtual bool openUrl(const QUrl& url, bool openWithOptions = false); virtual void recreateViewFrames(FileContext* file) = 0; virtual void refreshCurrentViewContents(); @@ -629,6 +629,12 @@ public: \return Name to display for this path */ QString GetNameForPath(const QString& path); + /*! + Get the displayed name for a file, resolving container entries within projects + \param metadata FileMetadata whose displayed name you want + \return Name to display for this file + */ + QString GetNameForPath(FileMetadataRef metadata); virtual QWidget* fileContentsLockStatusWidget() = 0; diff --git a/ui/uitypes.h b/ui/uitypes.h index 40b46570..f01ed988 100644 --- a/ui/uitypes.h +++ b/ui/uitypes.h @@ -6,14 +6,14 @@ // there are changes to the API that affect linking, including new functions, // new types, modifications to existing functions or types, or new versions // of the Qt libraries. -#define BN_CURRENT_UI_ABI_VERSION 12 +#define BN_CURRENT_UI_ABI_VERSION 13 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions, or a new version of Qt. -#define BN_MINIMUM_UI_ABI_VERSION 12 +#define BN_MINIMUM_UI_ABI_VERSION 13 #ifdef __GNUC__ #ifdef BINARYNINJAUI_LIBRARY |
