BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
QStringList | fromStdStrings (const std::vector< std::string > &container) |
QString | readTextFile (const QString &fileName) |
QString | suggestName (const QStringList &existingNames, const QString &name) |
Returns a name suggestion based on the given name. More... | |
QStringList GUI::Util::String::fromStdStrings | ( | const std::vector< std::string > & | container | ) |
Definition at line 18 of file String.cpp.
Referenced by MinimizerItemCatalog::algorithmDescriptions(), and MinimizerItemCatalog::algorithmNames().
QString GUI::Util::String::readTextFile | ( | const QString & | fileName | ) |
QString GUI::Util::String::suggestName | ( | const QStringList & | existingNames, |
const QString & | name | ||
) |
Returns a name suggestion based on the given name.
Tries to add a reasonable numbering in brackets if necessary (e.g. "GISAS" -> "GISAS (2)")
Definition at line 26 of file String.cpp.
References GUI::Util::Path::baseName(), and GUI::RealSpace::Particles::name().
Referenced by SampleListModel::createSample(), and InstrumentCollection::suggestInstrumentName().