BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The JobPropertiesTableModel is a table model for the properties of a job except for the comment. The name of the job is editable, all other fields are read only.
Definition at line 26 of file JobPropertiesTableModel.h.
Public Member Functions | |
JobPropertiesTableModel (QObject *parent=nullptr) | |
~JobPropertiesTableModel () override | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | setItem (JobItem *item) |
Private Member Functions | |
void | notifyJobPropertyChange () |
Private Attributes | |
JobItem * | m_item |
|
explicit |
Definition at line 47 of file JobPropertiesTableModel.cpp.
|
override |
Definition at line 53 of file JobPropertiesTableModel.cpp.
References m_item.
|
override |
Definition at line 66 of file JobPropertiesTableModel.cpp.
References m_item.
|
override |
Definition at line 73 of file JobPropertiesTableModel.cpp.
References JobItem::beginTime(), JobItem::duration(), JobItem::endTime(), JobItem::getStatus(), JobItem::instrumentName(), JobItem::jobName(), jobStatusToString(), m_item, JobItem::sampleName(), and XML::Tags::Value().
|
override |
Definition at line 125 of file JobPropertiesTableModel.cpp.
References m_item, and XML::Tags::Value().
|
override |
Definition at line 116 of file JobPropertiesTableModel.cpp.
|
private |
Definition at line 157 of file JobPropertiesTableModel.cpp.
References JobItem::jobBeginTimeChanged(), JobItem::jobEndTimeChanged(), JobItem::jobNameChanged(), JobItem::jobStatusChanged(), m_item, and XML::Tags::Value().
Referenced by setItem().
|
override |
Definition at line 59 of file JobPropertiesTableModel.cpp.
References m_item.
|
override |
Definition at line 133 of file JobPropertiesTableModel.cpp.
References m_item, JobItem::setJobName(), and XML::Tags::Value().
void JobPropertiesTableModel::setItem | ( | JobItem * | item | ) |
Definition at line 142 of file JobPropertiesTableModel.cpp.
References m_item, and notifyJobPropertyChange().
Referenced by JobPropertiesWidget::setItem().
|
private |
Definition at line 44 of file JobPropertiesTableModel.h.
Referenced by ~JobPropertiesTableModel(), columnCount(), data(), flags(), notifyJobPropertyChange(), rowCount(), setData(), and setItem().