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

Description

Defines class Helpers functions.

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 Path.h.

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

Go to the source code of this file.

Namespaces

 GUI
 
 GUI::Util
 
 GUI::Util::Path
 

Functions

QString GUI::Util::Path::appDataFolder ()
 The folder where persistent application data shall be stored. Under Windows this is the AppData/Roaming location. Used e.g. for storing the instrument library. More...
 
QString GUI::Util::Path::baseName (const QString &fileName)
 Returns base name of file. More...
 
QString GUI::Util::Path::fileDir (const QString &fileName)
 Returns file directory from the full file path. More...
 
QString GUI::Util::Path::getBornAgainVersionString ()
 
QString GUI::Util::Path::getPathFromIndex (const QModelIndex &index)
 
QString GUI::Util::Path::getValidFileName (const QString &proposed_name)
 Returns valid file name to be saved on disk. This name is constructed from proposed_name by replacing all special characters with text representation \ backslash / slash " quote < lessthan

greaterthan

| pipe ? questionmark. More...

 
bool GUI::Util::Path::isVersionMatchMinimal (const QString &version, const QString &minimal_version)
 Returns true if current BornAgain version match minimal required version. More...
 
bool GUI::Util::Path::parseVersion (const QString &version, int &major_num, int &minor_num, int &patch_num)
 parses version string into 3 numbers, returns true in the case of success More...
 
int GUI::Util::Path::versionCode (const QString &version)
 
QString GUI::Util::Path::withTildeHomePath (const QString &path)