BornAgain  1.19.79
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/View/Fit/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_VIEW_FIT_FITACTIVITYPANEL_H
16 #define BORNAGAIN_GUI_VIEW_FIT_FITACTIVITYPANEL_H
17 
18 #include <QWidget>
19 
20 class FitLog;
21 class JobItem;
22 class FitSessionWidget;
23 class JobRealTimeWidget;
24 class QLabel;
25 class QStackedWidget;
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(QWidget* parent = nullptr);
37 
38  void setRealTimeWidget(JobRealTimeWidget* realTimeWidget);
39 
40  QSize sizeHint() const override;
41  QSize minimumSizeHint() const override;
42 
43 public slots:
44  void setItem(JobItem* item);
45 
46 signals:
47  void showLog(FitLog* log);
48 
49 private:
50  bool isValidJobItem(JobItem* item);
52 
53  QStackedWidget* m_stack;
54  QWidget* m_blankWidget;
56  QLabel* m_nofitLabel;
59 };
60 
61 #endif // BORNAGAIN_GUI_VIEW_FIT_FITACTIVITYPANEL_H
The FitActivityPanel class is a main widget to run the fitting. Occupies bottom right corner of JobVi...
QSize minimumSizeHint() const override
FitSessionWidget * m_fitSessionWidget
FitActivityPanel(QWidget *parent=nullptr)
bool isValidJobItem(JobItem *item)
void showLog(FitLog *log)
QWidget * m_blankWidget
QSize sizeHint() const override
QStackedWidget * m_stack
FitSessionWidget * currentFitSuiteWidget()
void setRealTimeWidget(JobRealTimeWidget *realTimeWidget)
void setItem(JobItem *item)
JobRealTimeWidget * m_realTimeWidget
FitSessionManager * m_fitSessionManager
the collected messages of a fitting session
Definition: FitLog.h:27
Handles all activity related to the simultaneous running of fitting jobs.
Contains all fit settings for given JobItem (fit parameters, minimizer settings). Controlled by FitAc...
The JobRealTimeWidget class provides tuning of sample parameters in real time. Located on the right s...
The RunFitControlWidget contains elements to start/stop fitting and to provide minimal diagnostic....