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
;
23
class
JobPropertiesWidget
;
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:
39
void
makeJobItemSelected
(
JobItem
*);
40
41
private
slots:
42
void
onSelectedJobsChanged
(
const
QVector<JobItem*>& jobs);
43
44
private
:
45
JobListView
*
m_jobListView
;
46
JobPropertiesWidget
*
m_jobProperties
;
47
JobModel
*
m_jobModel
;
48
};
49
50
#endif
// BORNAGAIN_GUI_VIEW_JOB_JOBSELECTORWIDGET_H
JobItem
Definition:
JobItem.h:43
JobListView
List of jobs on the top left side of JobView.
Definition:
JobListView.h:30
JobModel
Definition:
JobModel.h:27
JobPropertiesWidget
The JobPropertiesWidget class holds component editor for JobItem. Part of JobSelectorWidget,...
Definition:
JobPropertiesWidget.h:29
JobSelectorWidget
The JobSelectorWidget class represents left panel of JobView. Contains a tree to select jobs on the t...
Definition:
JobSelectorWidget.h:28
JobSelectorWidget::onSelectedJobsChanged
void onSelectedJobsChanged(const QVector< JobItem * > &jobs)
Definition:
JobSelectorWidget.cpp:68
JobSelectorWidget::m_jobListView
JobListView * m_jobListView
Definition:
JobSelectorWidget.h:45
JobSelectorWidget::makeJobItemSelected
void makeJobItemSelected(JobItem *)
Definition:
JobSelectorWidget.cpp:61
JobSelectorWidget::m_jobProperties
JobPropertiesWidget * m_jobProperties
Definition:
JobSelectorWidget.h:46
JobSelectorWidget::m_jobModel
JobModel * m_jobModel
Definition:
JobSelectorWidget.h:47
JobSelectorWidget::selectedJobsChanged
void selectedJobsChanged(const QVector< JobItem * > &jobs)
JobSelectorWidget::JobSelectorWidget
JobSelectorWidget(JobModel *jobModel, QWidget *parent=nullptr)
Definition:
JobSelectorWidget.cpp:24
JobSelectorWidget::selectedJobs
QVector< JobItem * > selectedJobs() const
Definition:
JobSelectorWidget.cpp:56
GUI
View
Job
JobSelectorWidget.h
Generated by
1.9.1