BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FitActivityPanel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/FitWidgets/FitActivityPanel.h
6 //! @brief Defines class FitActivityPanel
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_COREGUI_VIEWS_FITWIDGETS_FITACTIVITYPANEL_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_FITWIDGETS_FITACTIVITYPANEL_H
17 
19 #include <QWidget>
20 
21 class JobModel;
22 class JobItem;
23 class FitSessionWidget;
24 class JobRealTimeWidget;
26 class JobMessagePanel;
27 class FitSessionManager;
28 
29 //! The FitActivityPanel class is a main widget to run the fitting.
30 //! Occupies bottom right corner of JobView, contains stack of FitSuiteWidgets for every
31 //! JobItem which is suitable for fitting.
32 
33 class FitActivityPanel : public QWidget {
34  Q_OBJECT
35 public:
36  FitActivityPanel(JobModel* jobModel, QWidget* parent = 0);
37 
38  void setRealTimeWidget(JobRealTimeWidget* realTimeWidget);
39  void setJobMessagePanel(JobMessagePanel* jobMessagePanel);
40 
41  QSize sizeHint() const;
42  QSize minimumSizeHint() const;
43 
44 public slots:
45  void setItem(JobItem* item);
46 
47 private:
48  bool isValidJobItem(JobItem* item);
50 
55 };
56 
57 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_FITWIDGETS_FITACTIVITYPANEL_H
Defines class ItemStackPresenter.
The FitActivityPanel class is a main widget to run the fitting.
QSize sizeHint() const
FitActivityPanel(JobModel *jobModel, QWidget *parent=0)
bool isValidJobItem(JobItem *item)
FitSessionWidget * currentFitSuiteWidget()
QSize minimumSizeHint() const
void setJobMessagePanel(JobMessagePanel *jobMessagePanel)
void setRealTimeWidget(JobRealTimeWidget *realTimeWidget)
void setItem(JobItem *item)
JobMessagePanel * m_jobMessagePanel
JobRealTimeWidget * m_realTimeWidget
FitSessionManager * m_fitSessionManager
ItemStackPresenter< FitSessionWidget > * m_stackedWidget
Handles all activity related to the simultaneous running of fitting jobs.
Contains all fit settings for given JobItem (fit parameters, minimizer settings).
The JobMessagePanel class shows log messages from FitActivityPanel at the bottom part of JobView.
The JobRealTimeWidget class provides tuning of sample parameters in real time.
The RunFitControlWidget contains elements to start/stop fitting and to provide minimal diagnostic.