20 const QString jobdata_file_prefix =
"jobdata";
21 const QString refdata_file_prefix =
"refdata";
22 const QString realdata_file_prefix =
"realdata";
23 const QString instrument_file_prefix =
"instrdata";
24 const QString nativedata_file_prefix =
"nativedata";
27 QString intensityDataFileName(
const QString& itemName,
const QString& prefix)
30 return QString(
"%1_%2_0.int.gz").arg(prefix).arg(bodyName);
40 return intensityDataFileName(itemName, jobdata_file_prefix);
47 return intensityDataFileName(itemName, refdata_file_prefix);
52 return intensityDataFileName(
id, nativedata_file_prefix);
59 return intensityDataFileName(dataName, realdata_file_prefix);
64 return intensityDataFileName(dataName, nativedata_file_prefix);
72 QStringList result = QStringList() << QString(jobdata_file_prefix +
"_*.int.gz")
73 << QString(refdata_file_prefix +
"_*.int.gz")
74 << QString(realdata_file_prefix +
"_*.int.gz")
75 << QString(nativedata_file_prefix +
"_*.int.gz")
76 << QString(instrument_file_prefix +
"_*.int.gz");
Defines namespace GUI::Model::FilenameUtils.
Defines class Helpers functions.
QString jobReferenceFileName(const QString &itemName)
Constructs the name of the file with reference data.
QString jobResultsFileName(const QString &itemName)
Constructs the name of the file with simulated intensities.
QStringList nonXMLFileNameFilters()
Returns list of fileName filters related to nonXML data stored by JobModel and RealDataModel.
QString nativeDataFileName(const QString &dataName)
QString realDataFileName(const QString &dataName)
Constructs the name of the intensity file belonging to real data item.
QString jobNativeDataFileName(const QString &id)
QString getValidFileName(const QString &proposed_name)
Returns valid file name to be saved on disk. This name is constructed from proposed_name by replacing...