BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
JobView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Job/JobView.h
6 //! @brief Defines class JobView
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_JOB_JOBVIEW_H
16 #define BORNAGAIN_GUI_VIEW_JOB_JOBVIEW_H
17 
18 #include <QActionGroup>
19 #include <QMainWindow>
20 
21 class MainWindow;
22 class JobView;
23 class JobSelectorWidget;
24 class JobRealTimeWidget;
25 class FitActivityPanel;
26 class JobMessagePanel;
29 class JobItem;
30 class DocksController;
31 class ProjectDocument;
32 enum class JobViewActivity;
33 
34 //! The JobView class is a main view to show list of jobs, job results and widgets for real time
35 //! and fitting activities.
36 
37 class JobView : public QMainWindow {
38  Q_OBJECT
39 
40 public:
42 
43  void fillViewMenu(QMenu* menu);
44 
45 signals:
46  void focusRequest(int);
48 
49 public slots:
50  void onFocusRequest(JobItem* jobItem);
51  void setActivity(JobViewActivity activity);
52  void onSelectionChanged(const QVector<JobItem*>& jobs);
53 
54 private:
55  void createSubWindows();
56  void createActions();
57  void connectSignals();
59  void connectJobRelated();
60 
62  void resetLayout();
63 
66 
72 
73  QActionGroup m_activityActions;
75 };
76 
77 #endif // BORNAGAIN_GUI_VIEW_JOB_JOBVIEW_H
JobViewActivity
Handles creation and appearance of docked widgets in the context of QMainWindow. It is used for Sampl...
The FitActivityPanel class is a main widget to run the fitting. Occupies bottom right corner of JobVi...
The JobMessagePanel class shows log messages from FitActivityPanel at the bottom part of JobView.
The JobProgressAssistant class helps JobView to visualize current progress.
The JobRealTimeWidget class provides tuning of sample parameters in real time. Located on the right s...
Presents results of job (JobItem) using stack of different widgets and combo box in the right top cor...
The JobSelectorWidget class represents left panel of JobView. Contains a tree to select jobs on the t...
The JobView class is a main view to show list of jobs, job results and widgets for real time and fitt...
Definition: JobView.h:37
void connectJobRelated()
Connects signals related to JobItem.
Definition: JobView.cpp:145
void connectActivityRelated()
Connects signal related to activity change.
Definition: JobView.cpp:137
void setActivity(JobViewActivity activity)
Sets docks visibility in accordance with required activity.
Definition: JobView.cpp:73
void setAppropriateActivityForJob(JobItem *jobItem)
Sets appropriate activity for new JobItem.
Definition: JobView.cpp:163
void createActions()
Definition: JobView.cpp:118
JobResultsPresenter * m_jobResultsPresenter
Definition: JobView.h:68
JobView(MainWindow *mainWindow, ProjectDocument *document)
Definition: JobView.cpp:30
FitActivityPanel * m_fitActivityPanel
Definition: JobView.h:70
JobRealTimeWidget * m_jobRealTimeWidget
Definition: JobView.h:69
DocksController * m_docks
Definition: JobView.h:64
void onSelectionChanged(const QVector< JobItem * > &jobs)
Propagates change in JobItem's selection down into main widgets.
Definition: JobView.cpp:88
void fillViewMenu(QMenu *menu)
Definition: JobView.cpp:42
void focusRequest(int)
void onFocusRequest(JobItem *jobItem)
Definition: JobView.cpp:57
void activityChanged(JobViewActivity activity)
JobProgressAssistant * m_progressAssistant
Definition: JobView.h:65
ProjectDocument * m_document
Definition: JobView.h:74
JobSelectorWidget * m_jobSelector
Definition: JobView.h:67
void connectSignals()
Definition: JobView.cpp:129
JobMessagePanel * m_jobMessagePanel
Definition: JobView.h:71
void createSubWindows()
Definition: JobView.cpp:98
void resetLayout()
Definition: JobView.cpp:177
QActionGroup m_activityActions
Definition: JobView.h:73
Project document class handles all data related to the opened project (sample, job,...
static QMainWindow * mainWindow
Definition: Globals.h:22