BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
AutomaticDataLoader1DResultModel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/DataLoaders/AutomaticDataLoader1DResultModel.h
6 //! @brief Defines class AutomaticDataLoader1DResultModel
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2021
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef GUI_COREGUI_DATALOADERS_AUTOMATICDATALOADER1DRESULTMODEL_H
16 #define GUI_COREGUI_DATALOADERS_AUTOMATICDATALOADER1DRESULTMODEL_H
17 
19 
20 class RealDataItem;
21 
22 //! The result model of a AutomaticDataLoader1D (for showing the import results in a table view).
24 public:
26 
27 protected:
28  virtual bool rowIsSkipped(int row) const override;
29  virtual QString headerTextOfCalculatedColumn(int column) const override;
30  virtual int columnCount(ColumnType type) const override;
31  virtual QString cellText(ColumnType type, int row, int col) const override;
32  virtual bool rowHasError(int row) const override;
33  virtual int rowCount() const override;
34 
35 private:
37 };
38 
39 #endif // GUI_COREGUI_DATALOADERS_AUTOMATICDATALOADER1DRESULTMODEL_H
Defines class AbstractDataLoaderResultModel.
Base class for result tables of data loaders.
The result model of a AutomaticDataLoader1D (for showing the import results in a table view).
virtual QString cellText(ColumnType type, int row, int col) const override
The text of the given cell.
virtual int rowCount() const override
The row count of the result table.
virtual bool rowHasError(int row) const override
Returns whether the row given in the index contains errors. Row counting starts with 0.
virtual int columnCount(ColumnType type) const override
The number of existing columns related to the given column type.
virtual QString headerTextOfCalculatedColumn(int column) const override
Return the table header text for the given column.
virtual bool rowIsSkipped(int row) const override
Returns whether the row given in the index is a skipped row. Row counting starts with 0.
The RealDataItem class represents intensity data imported from file and intended for fitting.
Definition: RealDataItem.h:35