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/uicontext.h | |
| parent | eab54b005e28cda35ac140e1bb504cb7bcaae56e (diff) | |
Improve container-aware display names in projects.
Diffstat (limited to 'ui/uicontext.h')
| -rw-r--r-- | ui/uicontext.h | 10 |
1 files changed, 8 insertions, 2 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; |
