summaryrefslogtreecommitdiff
path: root/ui/uicontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/uicontext.h')
-rw-r--r--ui/uicontext.h10
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;