15 #ifndef BORNAGAIN_GUI_VIEW_LOADERS_USERDEFINEDDATALOADER1D_H
16 #define BORNAGAIN_GUI_VIEW_LOADERS_USERDEFINEDDATALOADER1D_H
26 QByteArray defaultProperties);
28 QString
name()
const override;
Defines class AbstractDataLoader1D.
Abstract base class for reflectometry data loaders.
Abstract base class for all data loaders (classes to import real data).
virtual QByteArray fileContent() const
Returns the original file content. If not available any more (like for legacy project file import),...
A user defined data loader. This is a thin wrapper around the real loader implementation,...
void populateImportSettingsWidget(QWidget *parent) override
Fills the widget on the import dialog pane. The implementation here in the base class does nothing (m...
AbstractDataLoader * clone() const override
Create a complete clone, including all internal states.
void guessSettings() override
Guess appropriate settings (for example the separator in a CSV file). Is called only once,...
UserDefinedDataLoader1D(AbstractDataLoader1D *wrappedLoader, QString name, QByteArray defaultProperties)
QString persistentClassName() const override
A name which can be used for save/load purposes (which will not change ever more)
void deserialize(const QByteArray &data) override
Initialize from serialization data. If any error occurred, then a DeserializationException has to be ...
void setFileContents(const QByteArray &fileContent) override
Sets the file contents to be imported. If the file was a compressed file, then the decompressed conte...
QByteArray serialize() const override
Returns every internal setting so it can be restored completely.
AbstractDataLoader1D * m_wrappedLoader
void processContents() override
Process the file contents. Can be called more than once, e.g. if the import settings have changed....
QByteArray m_defaultProperties
void initWithDefaultImportSettings() override
Set import settings to defaults.
QString name() const override
The name shown in the format selection combo.