BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
JobSelectorWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/JobWidgets/JobSelectorWidget.h
6 //! @brief Defines class JobSelectorWidget
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_JOBWIDGETS_JOBSELECTORWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBSELECTORWIDGET_H
17 
18 #include <QWidget>
19 
20 class JobModel;
21 class JobItem;
22 class JobSelectorToolBar;
23 class JobSelectorActions;
24 class JobListWidget;
26 
27 //! The JobSelectorWidget class represents left panel of JobView. Contains a tree to select jobs
28 //! on the top and job property editor at the bottom.
29 
30 class JobSelectorWidget : public QWidget {
31  Q_OBJECT
32 
33 public:
34  explicit JobSelectorWidget(JobModel* jobModel, QWidget* parent = nullptr);
35 
36  void setModel(JobModel* jobModel);
37 
38  QSize sizeHint() const;
39  QSize minimumSizeHint() const;
40 
41  const JobItem* currentJobItem() const;
42 
43 signals:
45 
46 public slots:
48 
49 private slots:
50  void onSelectionChanged(JobItem* jobItem);
51 
52 private:
58 };
59 
60 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBSELECTORWIDGET_H
The JobListWidget class contains list view to select job items.
Definition: JobListWidget.h:31
The JobPropertiesWidget class holds component editor for JobItem.
The JobSelectorActions class contains actions to run/remove jobs.
Styled tool bar on top of JobSelector with run/remove job buttons.
The JobSelectorWidget class represents left panel of JobView.
void makeJobItemSelected(JobItem *)
JobPropertiesWidget * m_jobProperties
JobSelectorActions * m_jobSelectorActions
JobSelectorToolBar * m_toolBar
void setModel(JobModel *jobModel)
JobListWidget * m_jobListWidget
QSize minimumSizeHint() const
void selectionChanged(JobItem *)
void onSelectionChanged(JobItem *jobItem)
QSize sizeHint() const
const JobItem * currentJobItem() const
JobSelectorWidget(JobModel *jobModel, QWidget *parent=nullptr)