BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The ParameterTuningModel class represents parameters which can be tuned in real time in ParameterTuningWidget. More...
Public Member Functions | |
ParameterTuningModel (QObject *parent=0) | |
int | columnCount (const QModelIndex &parent) const |
Qt::ItemFlags | flags (const QModelIndex &proxyIndex) const |
ParameterItem * | getParameterItem (const QModelIndex &proxyIndex) const |
Returns ParameterItem from given proxy index. More... | |
QMimeData * | mimeData (const QModelIndexList &proxyIndexes) const |
Qt::DropActions | supportedDragActions () const |
Qt::DropActions | supportedDropActions () const |
Static Public Member Functions | |
static QModelIndex | toSourceIndex (QModelIndex index) |
Protected Member Functions | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
Private Attributes | |
int | m_columns |
The ParameterTuningModel class represents parameters which can be tuned in real time in ParameterTuningWidget.
In the fitting activity context handles dragging of ParameterItem's to the FitParametersWidget.
Definition at line 28 of file ParameterTuningModel.h.
ParameterTuningModel::ParameterTuningModel | ( | QObject * | parent = 0 | ) |
Definition at line 21 of file ParameterTuningModel.cpp.
|
inherited |
|
protectedinherited |
Qt::ItemFlags ParameterTuningModel::flags | ( | const QModelIndex & | proxyIndex | ) | const |
Definition at line 23 of file ParameterTuningModel.cpp.
References getParameterItem(), SessionFlags::ITEM_VALUE, SessionFlags::ModelTypeRole, and FilterPropertyProxy::toSourceIndex().
ParameterItem * ParameterTuningModel::getParameterItem | ( | const QModelIndex & | proxyIndex | ) | const |
Returns ParameterItem from given proxy index.
Definition at line 55 of file ParameterTuningModel.cpp.
References ASSERT, SessionModel::itemForIndex(), and FilterPropertyProxy::toSourceIndex().
Referenced by flags(), ParameterTuningWidget::getSelectedParameters(), and mimeData().
QMimeData * ParameterTuningModel::mimeData | ( | const QModelIndexList & | proxyIndexes | ) | const |
Definition at line 39 of file ParameterTuningModel.cpp.
References getParameterItem(), FitParameterHelper::getParameterItemPath(), and SessionXML::LinkMimeType.
|
inline |
Definition at line 42 of file ParameterTuningModel.h.
|
inline |
Definition at line 47 of file ParameterTuningModel.h.
|
staticinherited |
Definition at line 24 of file FilterPropertyProxy.cpp.
Referenced by SampleTreeWidget::addItem(), ParameterTuningDelegate::createEditor(), SampleTreeWidget::deleteItem(), flags(), getParameterItem(), SampleTreeWidget::showContextMenu(), and RealSpaceCanvas::updateToSelection().
|
privateinherited |
Definition at line 40 of file FilterPropertyProxy.h.
Referenced by FilterPropertyProxy::columnCount().