BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
QString | 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 | baseName (const QString &fileName) |
Returns base name of file. More... | |
QString | fileDir (const QString &fileName) |
Returns file directory from the full file path. More... | |
QString | getBornAgainVersionString () |
QString | getPathFromIndex (const QModelIndex &index) |
QString | 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 | isVersionMatchMinimal (const QString &version, const QString &minimal_version) |
Returns true if current BornAgain version match minimal required version. More... | |
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 More... | |
int | versionCode (const QString &version) |
QString | withTildeHomePath (const QString &path) |
QString GUI::Util::Path::appDataFolder | ( | ) |
QString GUI::Util::Path::baseName | ( | const QString & | fileName | ) |
Returns base name of file.
Definition at line 133 of file Path.cpp.
Referenced by RealDataSelectorWidget::importData1D(), RealDataSelectorWidget::importData2D(), PyImportAssistant::importMultiLayer(), InstrumentCollection::suggestInstrumentName(), GUI::Util::String::suggestName(), and WelcomeView::updateRecentProjectPanel().
QString GUI::Util::Path::fileDir | ( | const QString & | fileName | ) |
QString GUI::Util::Path::getBornAgainVersionString | ( | ) |
Definition at line 60 of file Path.cpp.
Referenced by AboutDialog::createTextLayout(), ProjectDocument::documentVersion(), ProjectLoadProblemDialog::explanationText(), main(), ApplicationOptions::processOptions(), and ProjectDocument::writeTo().
QString GUI::Util::Path::getPathFromIndex | ( | const QModelIndex & | index | ) |
Definition at line 144 of file Path.cpp.
Referenced by ParameterItem::linkToSessionItem(), and DataProperties::setDataItem().
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.
bool GUI::Util::Path::isVersionMatchMinimal | ( | const QString & | version, |
const QString & | minimal_version | ||
) |
Returns true if current BornAgain version match minimal required version.
Definition at line 117 of file Path.cpp.
References versionCode().
Referenced by ProjectDocument::readProject().
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
Definition at line 83 of file Path.cpp.
Referenced by versionCode().
int GUI::Util::Path::versionCode | ( | const QString & | version | ) |
Definition at line 103 of file Path.cpp.
References parseVersion().
Referenced by isVersionMatchMinimal().
QString GUI::Util::Path::withTildeHomePath | ( | const QString & | path | ) |
Definition at line 45 of file Path.cpp.
Referenced by ActionManager::onAboutToShowFileMenu(), ProjectSettingsView::updateInformation(), and WelcomeView::updateRecentProjectPanel().