15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_SAVEPLOTASSISTANT_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_SAVEPLOTASSISTANT_H
32 Format(
const QString& file_extention,
const QString& filter);
42 QString
composeFileName(
const QString& fileName,
const QString& filterName)
const;
45 bool isPngFile(
const QString& fileName)
const;
46 bool isJpgFile(
const QString& fileName)
const;
47 bool isPdfFile(
const QString& fileName)
const;
Templated class to store data of type double or CumulativeValue in multi-dimensional space.
Assistant class which contains all logic for saving IntensityData to various formats from IntensityDa...
QString getExtensionFromFilterName(const QString &filterName) const
bool isPdfFile(const QString &fileName) const
QString composeFileName(const QString &fileName, const QString &filterName) const
Compose file name to save plot from information provided by QFileDialog.
bool isJpgFile(const QString &fileName) const
QString getFilterString() const
Returns string contraining all defined filters in the format suitable for QFileDialog.
bool isPngFile(const QString &fileName) const
void saveToFile(const QString &dirname, QCustomPlot *plot, OutputData< double > *output_data)
static QVector< Format > m_formats
bool isValidExtension(const QString &fileName) const
void savePlot(const QString &dirname, QCustomPlot *plot, OutputData< double > *output_data)