BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 23 of file JobListModel.h.
Public Member Functions | |
JobListModel (JobModel *jobs, QObject *parent=nullptr) | |
~JobListModel () override | |
void | cancelJob (const QModelIndex &index) |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
QModelIndex | indexForJob (JobItem *job) |
JobItem * | jobForIndex (const QModelIndex &index) const |
void | removeJob (const QModelIndex &index) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
void | runJob (const QModelIndex &index) |
Private Slots | |
void | emitJobListModelChanged (JobItem *job) |
void | onRowsAboutToBeInserted (const QModelIndex &parent, int start, int end) |
void | onRowsInserted (const QModelIndex &parent, int start, int end) |
Private Member Functions | |
void | disableJobNotification (JobItem *job) |
void | enableJobNotification (JobItem *job) |
Private Attributes | |
JobModel * | m_jobs |
JobListModel::JobListModel | ( | JobModel * | jobs, |
QObject * | parent = nullptr |
||
) |
Definition at line 27 of file JobListModel.cpp.
References enableJobNotification(), JobModel::jobItems(), m_jobs, onRowsAboutToBeInserted(), and onRowsInserted().
|
override |
Definition at line 39 of file JobListModel.cpp.
References disableJobNotification(), JobModel::jobItems(), and m_jobs.
void JobListModel::cancelJob | ( | const QModelIndex & | index | ) |
Definition at line 95 of file JobListModel.cpp.
References JobModel::cancelJob(), jobForIndex(), and m_jobs.
Referenced by JobListView::onCancel().
|
override |
Definition at line 51 of file JobListModel.cpp.
References JobModel::jobItems(), JobItem::jobName(), and m_jobs.
|
private |
Definition at line 148 of file JobListModel.cpp.
Referenced by ~JobListModel(), and removeJob().
|
privateslot |
Definition at line 100 of file JobListModel.cpp.
References JobModel::jobItems(), and m_jobs.
Referenced by enableJobNotification().
|
private |
Definition at line 134 of file JobListModel.cpp.
References emitJobListModelChanged(), JobItem::jobNameChanged(), JobItem::jobProgressChanged(), and JobItem::jobStatusChanged().
Referenced by JobListModel(), and onRowsInserted().
QModelIndex JobListModel::indexForJob | ( | JobItem * | job | ) |
Definition at line 72 of file JobListModel.cpp.
References JobModel::jobItems(), and m_jobs.
Referenced by JobListView::selectJob().
JobItem * JobListModel::jobForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 64 of file JobListModel.cpp.
References JobModel::jobItems(), and m_jobs.
Referenced by cancelJob(), JobListView::equalizeSelectedToJob(), removeJob(), runJob(), JobListView::selectedJobs(), JobListView::showContextMenu(), and JobListView::updateActions().
|
privateslot |
Definition at line 114 of file JobListModel.cpp.
Referenced by JobListModel().
|
privateslot |
Definition at line 120 of file JobListModel.cpp.
References enableJobNotification(), JobModel::jobItems(), and m_jobs.
Referenced by JobListModel().
void JobListModel::removeJob | ( | const QModelIndex & | index | ) |
Definition at line 86 of file JobListModel.cpp.
References disableJobNotification(), jobForIndex(), m_jobs, and JobModel::removeJob().
Referenced by JobListView::onRemove().
|
override |
Definition at line 46 of file JobListModel.cpp.
References JobModel::jobItems(), and m_jobs.
Referenced by JobListView::ensureItemSelected().
void JobListModel::runJob | ( | const QModelIndex & | index | ) |
Definition at line 81 of file JobListModel.cpp.
References jobForIndex(), m_jobs, and JobModel::runJob().
Referenced by JobListView::onRun().
|
private |
Definition at line 51 of file JobListModel.h.
Referenced by JobListModel(), ~JobListModel(), cancelJob(), data(), emitJobListModelChanged(), indexForJob(), jobForIndex(), onRowsInserted(), removeJob(), rowCount(), and runJob().