BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
QREDataLoaderResultModel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/DataLoaders/QREDataLoaderResultModel.h
6 //! @brief Defines class QREDataLoaderResultModel
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_QREDATALOADERRESULTMODEL_H
16 #define GUI_COREGUI_DATALOADERS_QREDATALOADERRESULTMODEL_H
17 
20 
21 //! The result model of a QREDataLoader (for showing the import results in a table view).
23 public:
25 
26 protected:
27  virtual bool rowIsSkipped(int row) const override;
28  virtual QString headerTextOfCalculatedColumn(int column) const override;
29  virtual int columnCount(ColumnType type) const override;
30  virtual QString cellText(ColumnType type, int row, int col) const override;
31  virtual bool rowHasError(int row) const override;
32  virtual int rowCount() const override;
33 
34 private:
36 };
37 
38 #endif // GUI_COREGUI_DATALOADERS_QREDATALOADERRESULTMODEL_H
Defines class AbstractDataLoaderResultModel.
Defines class QREDataLoader.
Base class for result tables of data loaders.
The result model of a QREDataLoader (for showing the import results in a table view).
QREDataLoaderResultModel(QREDataLoader::ImportResult *importResult)
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 QString headerTextOfCalculatedColumn(int column) const override
Return the table header text for the given column.
virtual QString cellText(ColumnType type, int row, int col) const override
The text of the given cell.
virtual bool rowIsSkipped(int row) const override
Returns whether the row given in the index is a skipped row. Row counting starts with 0.
QREDataLoader::ImportResult * m_importResult
virtual int columnCount(ColumnType type) const override
The number of existing columns related to the given column type.
Result of the file import.