|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
List of jobs on the top left side of JobView.
Definition at line 30 of file JobListView.h.
Signals | |
| void | selectedJobsChanged (const QVector< JobItem * > &jobs) |
Public Member Functions | |
| JobListView (JobModel *jobs, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
| QVector< JobItem * > | selectedJobs () const |
| void | selectJob (JobItem *job) |
Private Slots | |
| void | equalizeSelectedToJob (JobItem *job) |
| void | onCancel () |
| void | onItemSelectionChanged () |
| void | onJobListModelDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
| void | onRemove () |
| void | onRun () |
| void | showContextMenu (const QPoint &pos) |
Private Member Functions | |
| void | ensureItemSelected () |
| void | updateActions () |
Private Attributes | |
| QAction * | m_cancelAction |
| QMenu * | m_equalizeMenu |
| QListView * | m_listView |
| JobListViewDelegate * | m_listViewDelegate |
| JobListModel * | m_model |
| QAction * | m_removeAction |
| QAction * | m_runAction |
| JobListView::JobListView | ( | JobModel * | jobs, |
| QWidget * | parent = nullptr, |
||
| Qt::WindowFlags | f = Qt::WindowFlags() |
||
| ) |
Definition at line 51 of file JobListView.cpp.
References ensureItemSelected(), m_cancelAction, m_equalizeMenu, m_listView, m_listViewDelegate, m_model, m_removeAction, m_runAction, onCancel(), onItemSelectionChanged(), onJobListModelDataChanged(), onRemove(), onRun(), showContextMenu(), and updateActions().
|
private |
Definition at line 252 of file JobListView.cpp.
References m_listView, m_model, and JobListModel::rowCount().
Referenced by JobListView(), and onRemove().
|
privateslot |
Definition at line 174 of file JobListView.cpp.
References IntensityDataItem::getLowerX(), IntensityDataItem::getLowerY(), IntensityDataItem::getLowerZ(), IntensityDataItem::getUpperX(), IntensityDataItem::getUpperY(), IntensityDataItem::getUpperZ(), JobItem::intensityDataItem(), JobListModel::jobForIndex(), m_listView, m_model, IntensityDataItem::setLowerX(), IntensityDataItem::setLowerY(), IntensityDataItem::setLowerZ(), IntensityDataItem::setUpperX(), IntensityDataItem::setUpperY(), and IntensityDataItem::setUpperZ().
Referenced by showContextMenu().
|
privateslot |
Definition at line 158 of file JobListView.cpp.
References JobListModel::cancelJob(), m_listView, and m_model.
Referenced by JobListView().
|
privateslot |
Definition at line 135 of file JobListView.cpp.
References selectedJobs(), selectedJobsChanged(), and updateActions().
Referenced by JobListView().
|
privateslot |
Definition at line 142 of file JobListView.cpp.
References m_listView, and updateActions().
Referenced by JobListView().
|
privateslot |
Definition at line 164 of file JobListView.cpp.
References ensureItemSelected(), m_listView, m_model, and JobListModel::removeJob().
Referenced by JobListView().
|
privateslot |
Definition at line 152 of file JobListView.cpp.
References m_listView, m_model, and JobListModel::runJob().
Referenced by JobListView().
| QVector< JobItem * > JobListView::selectedJobs | ( | ) | const |
Definition at line 108 of file JobListView.cpp.
References JobListModel::jobForIndex(), m_listView, and m_model.
Referenced by onItemSelectionChanged(), and JobSelectorWidget::selectedJobs().
|
signal |
Referenced by JobSelectorWidget::JobSelectorWidget(), onItemSelectionChanged(), and selectJob().
| void JobListView::selectJob | ( | JobItem * | job | ) |
Definition at line 116 of file JobListView.cpp.
References JobListModel::indexForJob(), m_listView, m_model, and selectedJobsChanged().
Referenced by JobSelectorWidget::makeJobItemSelected().
|
privateslot |
Definition at line 198 of file JobListView.cpp.
References equalizeSelectedToJob(), JobListModel::jobForIndex(), JobItem::jobName(), m_cancelAction, m_equalizeMenu, m_listView, m_model, m_removeAction, and m_runAction.
Referenced by JobListView().
|
private |
Definition at line 226 of file JobListView.cpp.
References JobItem::isFitting(), JobItem::isRunning(), JobListModel::jobForIndex(), m_cancelAction, m_listView, m_model, m_removeAction, and m_runAction.
Referenced by JobListView(), onItemSelectionChanged(), and onJobListModelDataChanged().
|
private |
Definition at line 59 of file JobListView.h.
Referenced by JobListView(), showContextMenu(), and updateActions().
|
private |
Definition at line 61 of file JobListView.h.
Referenced by JobListView(), and showContextMenu().
|
private |
Definition at line 55 of file JobListView.h.
Referenced by JobListView(), ensureItemSelected(), equalizeSelectedToJob(), onCancel(), onJobListModelDataChanged(), onRemove(), onRun(), selectedJobs(), selectJob(), showContextMenu(), and updateActions().
|
private |
Definition at line 56 of file JobListView.h.
Referenced by JobListView().
|
private |
Definition at line 57 of file JobListView.h.
Referenced by JobListView(), ensureItemSelected(), equalizeSelectedToJob(), onCancel(), onRemove(), onRun(), selectedJobs(), selectJob(), showContextMenu(), and updateActions().
|
private |
Definition at line 60 of file JobListView.h.
Referenced by JobListView(), showContextMenu(), and updateActions().
|
private |
Definition at line 58 of file JobListView.h.
Referenced by JobListView(), showContextMenu(), and updateActions().