BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines class Helpers functions.
Definition in file Path.h.
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
| 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) |