BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FitSessionManager.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Fit/FitSessionManager.h
6 //! @brief Defines class FitSessionManager
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_VIEW_FIT_FITSESSIONMANAGER_H
16 #define BORNAGAIN_GUI_VIEW_FIT_FITSESSIONMANAGER_H
17 
18 #include <QMap>
19 #include <QObject>
20 
21 class JobModel;
22 class SessionItem;
23 class JobItem;
25 
26 //! Handles all activity related to the simultaneous running of fitting jobs.
27 
28 class FitSessionManager : public QObject {
29  Q_OBJECT
30 public:
31  FitSessionManager(QObject* parent = nullptr);
33 
35 
36 private:
38  void removeController(JobItem* jobItem);
39 
40  //!< Fit controller which is currently attached to jobMessagePanel
42  QMap<JobItem*, FitSessionController*> m_item_to_controller;
43 };
44 
45 #endif // BORNAGAIN_GUI_VIEW_FIT_FITSESSIONMANAGER_H
Controls all activity related to the single fitting task for JobItem. Provides interaction between Fi...
Handles all activity related to the simultaneous running of fitting jobs.
FitSessionManager(QObject *parent=nullptr)
FitSessionController * m_activeController
FitSessionController * createController(JobItem *jobItem)
FitSessionController * sessionController(JobItem *jobItem)
void removeController(JobItem *jobItem)
Fit controller which is currently attached to jobMessagePanel.
QMap< JobItem *, FitSessionController * > m_item_to_controller
Base class for a GUI data item.
Definition: SessionItem.h:204