BornAgain  1.19.79
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/View/Job/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_VIEW_JOB_JOBSELECTORWIDGET_H
16 #define BORNAGAIN_GUI_VIEW_JOB_JOBSELECTORWIDGET_H
17 
18 #include <QWidget>
19 
20 class JobModel;
21 class JobItem;
22 class JobListView;
24 
25 //! The JobSelectorWidget class represents left panel of JobView. Contains a tree to select jobs
26 //! on the top and job property editor at the bottom.
27 
28 class JobSelectorWidget : public QWidget {
29  Q_OBJECT
30 
31 public:
32  explicit JobSelectorWidget(JobModel* jobModel, QWidget* parent = nullptr);
33  QVector<JobItem*> selectedJobs() const;
34 
35 signals:
36  void selectedJobsChanged(const QVector<JobItem*>& jobs);
37 
38 public slots:
40 
41 private slots:
42  void onSelectedJobsChanged(const QVector<JobItem*>& jobs);
43 
44 private:
48 };
49 
50 #endif // BORNAGAIN_GUI_VIEW_JOB_JOBSELECTORWIDGET_H
List of jobs on the top left side of JobView.
Definition: JobListView.h:30
The JobPropertiesWidget class holds component editor for JobItem. Part of JobSelectorWidget,...
The JobSelectorWidget class represents left panel of JobView. Contains a tree to select jobs on the t...
void onSelectedJobsChanged(const QVector< JobItem * > &jobs)
JobListView * m_jobListView
void makeJobItemSelected(JobItem *)
JobPropertiesWidget * m_jobProperties
void selectedJobsChanged(const QVector< JobItem * > &jobs)
JobSelectorWidget(JobModel *jobModel, QWidget *parent=nullptr)
QVector< JobItem * > selectedJobs() const