BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ApplicationModels.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Model/ApplicationModels.h
6 //! @brief Defines class holding all application models
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_MODEL_MODEL_APPLICATIONMODELS_H
16 #define BORNAGAIN_GUI_MODEL_MODEL_APPLICATIONMODELS_H
17 
18 #include <QObject>
19 
20 class SessionModel;
21 class SessionItem;
22 class DocumentModel;
24 class RealDataModel;
25 class JobModel;
26 class MessageService;
27 
28 class ApplicationModels : public QObject {
29  Q_OBJECT
30 public:
32 
34  JobModel* jobModel() const;
35 
36  void writeTo(class QXmlStreamWriter* writer);
37  void readFrom(class QXmlStreamReader* reader, MessageService* messageService);
38 
39  //! Returns all non-XML items
40  QVector<SessionItem*> nonXMLItems() const;
41 
42 signals:
43  void modelChanged();
44 
45 private:
46  void connectModel(SessionModel* model) const;
47 
50 };
51 
52 #endif // BORNAGAIN_GUI_MODEL_MODEL_APPLICATIONMODELS_H
JobModel * jobModel() const
QVector< SessionItem * > nonXMLItems() const
Returns all non-XML items.
void readFrom(class QXmlStreamReader *reader, MessageService *messageService)
RealDataModel * m_realDataModel
RealDataModel * realDataModel() const
void writeTo(class QXmlStreamWriter *writer)
Writes all model in file one by one.
void connectModel(SessionModel *model) const
The service to collect messages from different senders.
The RealDataModel class is a model to store all imported RealDataItem's.
Definition: RealDataModel.h:24
Base class for a GUI data item.
Definition: SessionItem.h:204
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....
Definition: SessionModel.h:42