15 #ifndef BORNAGAIN_GUI_UTIL_PATH_H
16 #define BORNAGAIN_GUI_UTIL_PATH_H
30 QString
fileDir(
const QString& fileName);
31 QString
baseName(
const QString& fileName);
33 bool parseVersion(
const QString& version,
int& major_num,
int& minor_num,
int& patch_num);
QString appDataFolder()
The folder where persistent application data shall be stored. Under Windows this is the AppData/Roami...
int versionCode(const QString &version)
QString baseName(const QString &fileName)
Returns base name of file.
QString fileDir(const QString &fileName)
Returns file directory from the full file path.
QString getValidFileName(const QString &proposed_name)
Returns valid file name to be saved on disk. This name is constructed from proposed_name by replacing...
bool 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
bool isVersionMatchMinimal(const QString &version, const QString &minimal_version)
Returns true if current BornAgain version match minimal required version.
QString withTildeHomePath(const QString &path)
QString getBornAgainVersionString()
QString getPathFromIndex(const QModelIndex &index)