BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ProjectUtils.h File Reference

Description

Defines namespace GUI::Project::Utils.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file ProjectUtils.h.

Include dependency graph for ProjectUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GUI
 
 GUI::Project
 
 GUI::Project::Utils
 Defines convenience function for project manager and document.
 

Functions

QString GUI::Project::Utils::autosaveDir (const QString &projectFileName)
 Returns name of autosave directory for project with given project file name. E.g. from '/projects/Untitled2/Untitled2.pro' returns '/projects/Untitled2/autosave'. More...
 
QString GUI::Project::Utils::autosaveName (const QString &projectFileName)
 Returns name of project for autoSave from given project file name. E.g. from '/projects/Untitled2/Untitled2.pro' returns '/projects/Untitled2/autosave/Untitled2.pro'. More...
 
QString GUI::Project::Utils::autosaveSubdir ()
 Returns fixed name for autosave sub-directory. More...
 
bool GUI::Project::Utils::hasAutosavedData (const QString &projectFileName)
 Returns true if project with given projectFileName contains autosaved data. More...
 
QString GUI::Project::Utils::projectDir (const QString &projectFileName)
 Returns project directory deduced from project file name. More...
 
QString GUI::Project::Utils::projectName (const QString &projectFileName)
 Returns project name deduced from project file name. More...
 

Variables

constexpr const char * GUI::Project::Utils::projectFileExtension {".pro"}