BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Slots | |
void | cancelJob (const QModelIndex &index) |
void | onCancelAllJobs () |
void | removeJob (const QModelIndex &index) |
void | runJob (const QModelIndex &index) |
Signals | |
void | aboutToDeleteJobItem (JobItem *item) |
void | focusRequest (JobItem *item) |
void | globalProgress (int) |
void | modelLoaded () |
Public Member Functions | |
JobModel (QObject *parent=0) | |
virtual | ~JobModel () |
QVector< QString > | acceptableDefaultItemTypes (const QModelIndex &parent) const |
JobItem * | addJob (const MultiLayerItem *multiLayerItem, const InstrumentItem *instrumentItem, const RealDataItem *realDataItem, const SimulationOptionsItem *optionItem) |
Main method to add a job. More... | |
virtual bool | canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const |
void | clear () override |
virtual int | columnCount (const QModelIndex &parent) const |
template<typename T > | |
T * | copyItem (const T *item_to_copy, SessionItem *new_parent=0, const QString &tag="") |
virtual SessionModel * | createCopy (SessionItem *parent=0) |
void | createRootItem () |
virtual QVariant | data (const QModelIndex &index, int role) const |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
JobItem * | getJobItemForIdentifier (const QString &identifier) |
JobItem * | getJobItemForIndex (const QModelIndex &index) |
const JobItem * | getJobItemForIndex (const QModelIndex &index) const |
QString | getModelName () const |
QString | getModelTag () const |
bool | hasUnfinishedJobs () |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const |
QModelIndex | indexOfItem (SessionItem *item) const |
virtual void | initFrom (SessionModel *model, SessionItem *parent) |
template<typename T > | |
T * | insertItem (const QModelIndex &parent, int row=-1, QString tag="") |
template<typename T > | |
T * | insertItem (SessionItem *parent=nullptr, int row=-1, QString tag="") |
SessionItem * | insertNewItem (QString model_type, const QModelIndex &parent_item, int row=-1, QString tag="") |
SessionItem * | insertNewItem (QString model_type, SessionItem *parent_item=nullptr, int row=-1, QString tag="") |
SessionItem * | itemForIndex (const QModelIndex &index) const |
QVector< JobItem * > | jobItems () const |
void | load (const QString &filename="") |
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
virtual QStringList | mimeTypes () const |
SessionItem * | moveItem (SessionItem *item, SessionItem *new_parent=0, int row=-1, const QString &tag="") |
Move given parameterized item to the new_parent at given row. More... | |
QVector< SessionItem * > | nonXMLItems () const override |
virtual QModelIndex | parent (const QModelIndex &child) const |
virtual void | readFrom (QXmlStreamReader *reader, MessageService *messageService=0) override |
void | removeItem (SessionItem *item) |
virtual bool | removeRows (int row, int count, const QModelIndex &parent) |
void | restore (JobItem *jobItem) |
restore instrument and sample model from backup for given JobItem More... | |
SessionItem * | rootItem () const |
virtual int | rowCount (const QModelIndex &parent) const |
void | save (const QString &filename="") |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role) |
void | setDraggedItemType (const QString &type) |
virtual bool | setHeaderData (int, Qt::Orientation, const QVariant &, int=Qt::EditRole) |
virtual Qt::DropActions | supportedDragActions () const |
virtual Qt::DropActions | supportedDropActions () const |
template<typename T = SessionItem> | |
T * | topItem () const |
Returns first item in list of topItems. More... | |
template<typename T = SessionItem> | |
QVector< T * > | topItems () const |
template<typename T = SessionItem> | |
QVector< T * > | topItems (std::function< bool(const T &)> accept) const |
virtual void | writeTo (QXmlStreamWriter *writer, SessionItem *parent=0) |
Protected Member Functions | |
void | setRootItem (SessionItem *root) |
Private Member Functions | |
SessionItem * | copy (const SessionItem *item_to_copy, SessionItem *new_parent=0, const QString &tag="") |
Copy given item to the new_parent at given row. More... | |
QString | generateJobName () |
generates job name More... | |
void | restoreItem (SessionItem *item) |
Private Attributes | |
QString | m_dragged_item_type |
QString | m_model_tag |
model tag (SampleModel, InstrumentModel) More... | |
QString | m_name |
model name More... | |
JobQueueData * | m_queue_data |
SessionItem * | m_root_item |
Definition at line 25 of file JobModel.h.
|
explicit |
Definition at line 32 of file JobModel.cpp.
References focusRequest(), JobQueueData::focusRequest(), globalProgress(), JobQueueData::globalProgress(), SessionXML::JobModelTag(), and m_queue_data.
|
virtual |
Definition at line 41 of file JobModel.cpp.
References m_queue_data.
|
signal |
Referenced by removeJob().
|
inherited |
Definition at line 299 of file SessionModel.cpp.
References SessionModel::itemForIndex(), and SessionModel::parent().
Referenced by SessionModel::canDropMimeData(), SessionModel::flags(), and SampleTreeWidget::showContextMenu().
JobItem * JobModel::addJob | ( | const MultiLayerItem * | multiLayerItem, |
const InstrumentItem * | instrumentItem, | ||
const RealDataItem * | realDataItem, | ||
const SimulationOptionsItem * | optionItem | ||
) |
Main method to add a job.
Definition at line 73 of file JobModel.cpp.
References ASSERT, SessionModel::copyItem(), ParameterTreeUtils::createParameterTree(), GUIHelpers::createUuid(), generateJobName(), SessionItem::is(), SessionItem::itemName(), JobModelFunctions::muteMagnetizationData(), JobItem::P_SAMPLE_NAME, JobModelFunctions::setupJobItemForFit(), JobModelFunctions::setupJobItemInstrument(), JobModelFunctions::setupJobItemOutput(), JobModelFunctions::setupJobItemSampleData(), and JobItem::T_SIMULATION_OPTIONS.
Referenced by SimulationSetupWidget::onRunSimulation().
|
slot |
Definition at line 184 of file JobModel.cpp.
References JobQueueData::cancelJob(), getJobItemForIndex(), SessionModel::index(), and m_queue_data.
Referenced by JobListWidget::setModel().
|
virtualinherited |
Definition at line 199 of file SessionModel.cpp.
References SessionModel::acceptableDefaultItemTypes(), SessionModel::data(), SessionXML::ItemMimeType, SessionXML::ItemTag(), SessionXML::ModelTypeAttribute(), and SessionModel::parent().
Referenced by SessionModel::dropMimeData().
|
overridevirtual |
Reimplemented from SessionModel.
Definition at line 127 of file JobModel.cpp.
References SessionModel::clear(), removeJob(), and SessionModel::topItems().
Referenced by ApplicationModels::resetModels().
|
virtualinherited |
Definition at line 119 of file SessionModel.cpp.
References SessionFlags::MAX_COLUMNS, and SessionModel::parent().
Referenced by SessionModel::data(), and SessionModel::index().
|
privateinherited |
Copy given item to the new_parent at given row.
Item intended for copying can belong to another model and it will remain intact. Returns pointer to the new child.
Definition at line 419 of file SessionModel.cpp.
References SessionItem::defaultTag(), SessionItem::getItems(), SessionModel::m_root_item, SessionXML::readItems(), and SessionXML::writeItemAndChildItems().
Referenced by SessionModel::copyItem().
|
inherited |
Definition at line 136 of file SessionModel.h.
References SessionModel::copy().
Referenced by addJob(), MaterialModel::cloneMaterial(), JobModelFunctions::copyRealDataItem(), DetectorItem::importMasks(), MaterialItemContainer::insertCopy(), InstrumentViewActions::onCloneInstrument(), JobModelFunctions::setupJobItemInstrument(), and JobModelFunctions::setupJobItemSampleData().
|
virtualinherited |
Reimplemented in InstrumentModel, SampleModel, and MaterialModel.
Definition at line 437 of file SessionModel.cpp.
References SessionModel::parent().
|
inherited |
Definition at line 36 of file SessionModel.cpp.
References ItemFactory::CreateEmptyItem(), SessionModel::m_root_item, SessionItem::registerTag(), SessionItem::setDefaultTag(), and SessionItem::setModel().
Referenced by SessionModel::SessionModel(), and SessionModel::clear().
|
virtualinherited |
Definition at line 70 of file SessionModel.cpp.
References SessionModel::columnCount(), SessionModel::index(), SessionFlags::ITEM_NAME, SessionFlags::ITEM_VALUE, SessionModel::itemForIndex(), SessionModel::m_root_item, and SessionItemUtils::ToolTipRole().
Referenced by SessionModel::canDropMimeData(), RealDataTreeModel::data(), SessionModel::dropMimeData(), gui2::JobModel::updateSLDProfile(), and gui2::JobModel::updateSpecularData().
|
virtualinherited |
Definition at line 227 of file SessionModel.cpp.
References SessionModel::canDropMimeData(), SessionModel::data(), SessionModel::itemForIndex(), SessionXML::ItemMimeType, and SessionModel::parent().
|
virtualinherited |
Definition at line 51 of file SessionModel.cpp.
References SessionModel::acceptableDefaultItemTypes(), SessionModel::index(), SessionItem::isEditable(), SessionItem::isEnabled(), SessionFlags::ITEM_VALUE, SessionModel::itemForIndex(), SessionModel::m_dragged_item_type, and SessionItem::value().
Referenced by RealDataTreeModel::flags().
|
signal |
Referenced by JobModel(), and JobView::connectJobRelated().
|
private |
generates job name
Definition at line 200 of file JobModel.cpp.
References SessionModel::index(), SessionModel::itemForIndex(), and SessionModel::rowCount().
Referenced by addJob().
JobItem * JobModel::getJobItemForIdentifier | ( | const QString & | identifier | ) |
Definition at line 60 of file JobModel.cpp.
References JobItem::getIdentifier(), getJobItemForIndex(), SessionModel::index(), and SessionModel::rowCount().
Referenced by JobQueueData::onFinishedJob(), JobQueueData::onProgressUpdate(), and JobQueueData::onStartedJob().
JobItem * JobModel::getJobItemForIndex | ( | const QModelIndex & | index | ) |
Definition at line 53 of file JobModel.cpp.
References ASSERT, SessionModel::index(), and SessionModel::itemForIndex().
const JobItem * JobModel::getJobItemForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 46 of file JobModel.cpp.
References ASSERT, SessionModel::index(), and SessionModel::itemForIndex().
Referenced by cancelJob(), JobSelectorActions::canRemoveJob(), JobSelectorActions::canRunJob(), JobListWidget::currentJobItem(), JobListViewDelegate::editorEvent(), JobSelectorActions::equalizeSelectedToJob(), getJobItemForIdentifier(), JobListViewDelegate::paint(), removeJob(), runJob(), JobSelectorActions::setupEqualizeMenu(), and JobQueueData::updateGlobalProgress().
|
inlineinherited |
Definition at line 196 of file SessionModel.h.
References SessionModel::m_name.
Referenced by SessionXML::writeTo().
|
inlineinherited |
Definition at line 191 of file SessionModel.h.
References SessionModel::m_model_tag.
Referenced by ModelTreeView::ModelTreeView(), SessionXML::readItems(), and SessionXML::writeTo().
|
signal |
Referenced by JobModel(), and JobProgressAssistant::JobProgressAssistant().
bool JobModel::hasUnfinishedJobs | ( | ) |
Definition at line 116 of file JobModel.cpp.
References JobQueueData::hasUnfinishedJobs(), and m_queue_data.
|
virtualinherited |
Definition at line 98 of file SessionModel.cpp.
References SessionFlags::ITEM_NAME, and SessionFlags::ITEM_VALUE.
|
virtualinherited |
Definition at line 126 of file SessionModel.cpp.
References SessionItem::childAt(), SessionModel::columnCount(), SessionModel::itemForIndex(), SessionModel::m_root_item, and SessionModel::parent().
Referenced by SampleViewAligner::alignSample(), cancelJob(), MaterialModel::cloneMaterial(), MaskResultsPresenter::createMaskPresentation(), SessionModel::data(), MaskGraphicsScene::deleteViews(), DesignerScene::deleteViews(), SessionModel::flags(), generateJobName(), SampleTreeWidget::getIndexAtColumnZero(), getJobItemForIdentifier(), getJobItemForIndex(), MaterialEditor::init_views(), ModelPath::isValidItem(), SessionModel::itemForIndex(), MaterialModel::materialFromIndex(), ModelMapper::onBeginRemoveRows(), MaterialPropertyController::onMaterialRowsAboutToBeRemoved(), ModelMapper::onRowRemoved(), MaskGraphicsScene::onRowsAboutToBeRemoved(), RealSpaceCanvas::onRowsAboutToBeRemoved(), DesignerScene::onRowsAboutToBeRemoved(), ItemStackWidget::onRowsAboutToBeRemoved(), ModelMapper::onRowsInserted(), SessionModel::removeItem(), removeJob(), runJob(), ItemSelectorWidget::selectLast(), SessionModel::setData(), MaskGraphicsScene::setItemName(), MaskGraphicsScene::setZValues(), ItemSelectorWidget::showEvent(), SessionModel::topItems(), JobQueueData::updateGlobalProgress(), InstrumentViewActions::updateSelection(), SampleViewAligner::updateViews(), MaskGraphicsScene::updateViews(), and DesignerScene::updateViews().
|
inherited |
Definition at line 251 of file SessionModel.cpp.
References SessionModel::m_root_item, SessionItem::parent(), and SessionItem::rowOfChild().
Referenced by SampleTreeWidget::addItem(), SampleViewAligner::alignSample(), MaskGraphicsScene::cancelCurrentDrawing(), MaskEditorActions::changeMaskStackingOrder(), RealDataTreeModel::data(), SessionItem::emitDataChanged(), RealDataTreeModel::flags(), SessionItem::index(), DetectorMaskDelegate::initMaskEditorContext(), MaskGraphicsScene::onSceneSelectionChanged(), DesignerScene::onSceneSelectionChanged(), MaskGraphicsScene::onSessionSelectionChanged(), DesignerScene::onSessionSelectionChanged(), MaskGraphicsScene::processLineItem(), MaskGraphicsScene::processPolygonItem(), SessionModel::removeItem(), and MaterialEditor::setInitialMaterialProperty().
|
virtualinherited |
Definition at line 443 of file SessionModel.cpp.
References SessionModel::modelLoaded(), SessionModel::readFrom(), and SessionModel::writeTo().
Referenced by MaterialModel::createCopy(), SampleModel::createCopy(), InstrumentModel::createCopy(), and MaterialEditorDialog::onOKButton().
|
inherited |
Definition at line 130 of file SessionModel.h.
References SessionModel::itemForIndex(), and SessionModel::parent().
|
inherited |
Definition at line 125 of file SessionModel.h.
References SessionModel::insertNewItem(), SessionItem::modelType(), and SessionModel::parent().
Referenced by IntensityDataFFTPresenter::IntensityDataFFTPresenter(), FitComparison1DViewController::createDiffViewItem(), FitParameterHelper::createFitParameter(), DetectorMaskDelegate::createIntensityDataItem(), DetectorItem::createMaskContainer(), ParameterTreeUtils::createParameterTree(), DesignerScene::dropEvent(), TestComponentView::init_source(), InstrumentViewActions::initAddInstrumentMenu(), RealDataItem::initDataItem(), JobModelFunctions::initDataView(), TestComponentView::onAddItemRequest(), ProjectionsEditorCanvas::onEnteringColorMap(), ParameterTreeUtils::parameterDictionary(), ParameterTreeUtils::parameterNameToLinkedItem(), GUIObjectBuilder::populateDocumentModel(), ParameterTreeUtils::populateParameterContainer(), MaskGraphicsScene::processHorizontalLineItem(), MaskGraphicsScene::processMaskAllItem(), MaskGraphicsScene::processPolygonItem(), MaskGraphicsScene::processVerticalLineItem(), ApplicationModels::resetModels(), JobModelFunctions::setupJobItemOutput(), JobModelFunctions::setupJobItemSampleData(), TestView::test_MinimizerSettings(), TestView::test_specular_data_widget(), and GUIDomainSampleVisitor::visit().
|
inherited |
Definition at line 286 of file SessionModel.cpp.
References SessionModel::insertNewItem(), and SessionModel::itemForIndex().
|
inherited |
Definition at line 260 of file SessionModel.cpp.
References ItemFactory::CreateItem(), SessionItem::defaultTag(), SessionItem::insertItem(), SessionItemTags::isValid(), SessionModel::m_root_item, SessionItem::numberOfChildren(), and SessionItem::sessionItemTags().
Referenced by SampleTreeWidget::addItem(), FitParameterHelper::addToFitParameter(), DesignerScene::dropEvent(), MultiLayerView::dropEvent(), GUIDomainSampleVisitor::InsertIParticle(), SessionModel::insertItem(), SessionModel::insertNewItem(), RealDataMaskWidget::maskContainer(), InstrumentViewActions::onCloneInstrument(), MaskGraphicsScene::processRectangleShapeItem(), and IntensityDataProjectionsWidget::projectionContainer().
|
inherited |
Definition at line 347 of file SessionModel.cpp.
References SessionModel::index(), and SessionModel::m_root_item.
Referenced by SessionModel::acceptableDefaultItemTypes(), MaskEditorActions::changeMaskStackingOrder(), SessionDecorationModel::createIcon(), MaskResultsPresenter::createMaskPresentation(), SessionModel::data(), DataProperties::dataItem(), DesignerScene::deleteSelectedItems(), MaskGraphicsScene::deleteViews(), DesignerScene::deleteViews(), SessionModel::dropMimeData(), SessionModel::flags(), generateJobName(), ModelPath::getItemFromPath(), getJobItemForIndex(), ParameterTuningModel::getParameterItem(), SampleViewAligner::getViewForIndex(), SessionModel::index(), SessionModel::insertItem(), SessionModel::insertNewItem(), MaskEditorActions::isSendToBackPossible(), ModelPath::isValidItem(), ParameterItem::linkedItem(), MaterialModel::materialFromIndex(), SessionModel::mimeData(), ModelMapper::onBeginRemoveRows(), InstrumentViewActions::onCloneInstrument(), PySampleWidget::onDataChanged(), RealSpaceCanvas::onDataChanged(), ComponentFlatView::onDataChanged(), ModelMapper::onDataChanged(), MaterialPropertyController::onMaterialDataChanged(), MaterialPropertyController::onMaterialRowsAboutToBeRemoved(), ModelMapper::onRowRemoved(), ItemStackWidget::onRowsAboutToBeRemoved(), ModelMapper::onRowsInserted(), ItemSelectorWidget::onSelectionChanged(), MaskEditorPropertyPanel::onSelectionChanged(), MaterialEditor::onSelectionChanged(), TestComponentView::onSelectionChanged(), FitParameterProxyModel::onSourceDataChanged(), MaskEditorActions::onToggleMaskValueAction(), SessionModel::parent(), ComponentProxyStrategy::processSourceIndex(), MaterialPropertyController::relatedSampleItems(), SessionModel::removeRows(), SessionModel::rowCount(), SessionModel::setData(), MaskGraphicsScene::setItemName(), MaskEditor::setMaskContext(), MaskGraphicsScene::setMaskContext(), MaskEditorPropertyPanel::setPanelHidden(), MaskGraphicsScene::setZValues(), ComponentProxyModel::sourceDataChanged(), SessionDecorationModel::textColor(), SessionModel::topItems(), MaskGraphicsScene::updateScene(), RealSpaceCanvas::updateScene(), MaskGraphicsScene::updateViews(), and DesignerScene::updateViews().
QVector< JobItem * > JobModel::jobItems | ( | ) | const |
Definition at line 105 of file JobModel.cpp.
Referenced by readFrom().
|
inherited |
Definition at line 316 of file SessionModel.cpp.
References SessionModel::clear(), ItemFactory::CreateEmptyItem(), FileSystemUtils::filename(), SessionModel::m_root_item, and SessionXML::readItems().
|
virtualinherited |
Definition at line 183 of file SessionModel.cpp.
References SessionModel::itemForIndex(), SessionXML::ItemMimeType, and SessionXML::writeItemAndChildItems().
|
virtualinherited |
Definition at line 178 of file SessionModel.cpp.
References SessionXML::ItemMimeType.
|
signalinherited |
Referenced by SessionModel::initFrom(), and MaterialPropertyController::setModels().
|
inherited |
Move given parameterized item to the new_parent at given row.
If new_parent is not defined, use root_item as a new parent.
Definition at line 384 of file SessionModel.cpp.
References SessionItem::defaultTag(), SessionItem::getItems(), SessionItem::insertItem(), SessionItemTags::isValid(), SessionModel::m_root_item, SessionItemTags::maximumReached(), SessionItem::modelType(), SessionItem::parent(), SessionItem::rowOfChild(), SessionItem::sessionItemTags(), SessionItem::takeItem(), and SessionItem::takeRow().
Referenced by MaskEditorActions::changeMaskStackingOrder(), ILayerView::mouseReleaseEvent(), DesignerScene::onEstablishedConnection(), and DesignerScene::removeConnection().
|
overridevirtual |
Reimplemented from SessionModel.
Definition at line 135 of file JobModel.cpp.
References SpecularInstrumentItem::beamItem(), SpecularBeamItem::inclinationAxisGroup(), JobItem::T_INSTRUMENT, JobItem::T_OUTPUT, and JobItem::T_REALDATA.
Referenced by ApplicationModels::nonXMLItems().
|
slot |
Definition at line 174 of file JobModel.cpp.
References m_queue_data, and JobQueueData::onCancelAllJobs().
|
virtualinherited |
Definition at line 139 of file SessionModel.cpp.
References SessionModel::itemForIndex(), SessionModel::m_root_item, SessionItem::parent(), and SessionItemUtils::ParentRow().
Referenced by SessionModel::acceptableDefaultItemTypes(), SessionModel::canDropMimeData(), SessionModel::columnCount(), SessionModel::createCopy(), MaterialModel::createCopy(), SampleModel::createCopy(), InstrumentModel::createCopy(), SampleTreeWidget::deleteItem(), SessionModel::dropMimeData(), SampleTreeWidget::getIndexAtColumnZero(), SessionModel::index(), SessionModel::insertItem(), InstrumentModel::onRowsChange(), RealDataModel::onRowsChange(), SessionModel::removeRows(), SessionModel::rowCount(), and SessionModel::writeTo().
|
overridevirtual |
Reimplemented from SessionModel.
Definition at line 161 of file JobModel.cpp.
References ASSERT, jobItems(), and SessionModel::readFrom().
|
inherited |
Definition at line 292 of file SessionModel.cpp.
References SessionModel::index(), SessionModel::indexOfItem(), and SessionModel::removeRows().
Referenced by RealDataTreeModel::removeItem().
|
slot |
Definition at line 189 of file JobModel.cpp.
References aboutToDeleteJobItem(), ASSERT, JobItem::getIdentifier(), getJobItemForIndex(), SessionModel::index(), m_queue_data, JobQueueData::removeJob(), and SessionModel::removeRows().
Referenced by clear(), and JobSelectorActions::onRemoveJob().
|
virtualinherited |
Definition at line 168 of file SessionModel.cpp.
References SessionModel::itemForIndex(), SessionModel::m_root_item, SessionModel::parent(), and SessionItem::takeRow().
Referenced by MaskGraphicsScene::cancelCurrentDrawing(), SampleTreeWidget::deleteItem(), DesignerScene::deleteSelectedItems(), ProjectionsEditorActions::onDeleteAction(), MaskEditorActions::onDeleteMaskAction(), InstrumentViewActions::onRemoveInstrument(), MaterialEditorToolBar::onRemoveMaterialAction(), SessionModel::removeItem(), and removeJob().
void JobModel::restore | ( | JobItem * | jobItem | ) |
restore instrument and sample model from backup for given JobItem
Definition at line 111 of file JobModel.cpp.
References SessionItem::getItem(), restoreItem(), and JobItem::T_PARAMETER_TREE.
Referenced by ParameterTuningWidget::restoreModelsOfCurrentJobItem().
|
private |
Definition at line 221 of file JobModel.cpp.
References SessionItem::children().
Referenced by restore().
|
inherited |
Definition at line 461 of file SessionModel.cpp.
References SessionModel::m_root_item.
Referenced by ModelPath::getIndexFromPath(), and ModelMapper::nestlingDepth().
|
virtualinherited |
Definition at line 111 of file SessionModel.cpp.
References SessionModel::itemForIndex(), SessionItem::numberOfChildren(), and SessionModel::parent().
Referenced by SampleViewAligner::alignSample(), MaskResultsPresenter::createMaskPresentation(), MaskGraphicsScene::deleteViews(), DesignerScene::deleteViews(), generateJobName(), getJobItemForIdentifier(), ModelPath::isValidItem(), ItemSelectorWidget::selectLast(), MaskGraphicsScene::setItemName(), MaskGraphicsScene::setZValues(), ItemSelectorWidget::showEvent(), SessionModel::topItems(), JobQueueData::updateGlobalProgress(), InstrumentViewActions::updateSelection(), SampleViewAligner::updateViews(), MaskGraphicsScene::updateViews(), and DesignerScene::updateViews().
|
slot |
Definition at line 179 of file JobModel.cpp.
References getJobItemForIndex(), SessionModel::index(), m_queue_data, and JobQueueData::runJob().
Referenced by ParameterTuningWidget::onCurrentLinkChanged(), JobSelectorActions::onRunJob(), SimulationSetupWidget::onRunSimulation(), and ParameterTuningWidget::restoreModelsOfCurrentJobItem().
|
inherited |
Definition at line 331 of file SessionModel.cpp.
References FileSystemUtils::filename(), GUIHelpers::getBornAgainVersionString(), SessionModel::m_root_item, and SessionXML::writeItemAndChildItems().
|
virtualinherited |
Definition at line 155 of file SessionModel.cpp.
References SessionModel::index(), and SessionModel::itemForIndex().
|
inlineinherited |
Definition at line 201 of file SessionModel.h.
References SessionModel::m_dragged_item_type.
Referenced by ItemTreeView::dragMoveEvent().
|
inlinevirtualinherited |
Definition at line 176 of file SessionModel.h.
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Definition at line 181 of file SessionModel.h.
|
inlinevirtualinherited |
Definition at line 186 of file SessionModel.h.
|
inherited |
Returns first item in list of topItems.
Definition at line 141 of file SessionModel.h.
|
inherited |
Definition at line 147 of file SessionModel.h.
References SessionModel::index(), SessionItem::item(), SessionModel::itemForIndex(), and SessionModel::rowCount().
Referenced by clear(), MaterialItemUtils::defaultMaterialProperty(), PySampleWidget::generateCodeSnippet(), SimulationDataSelectorWidget::selectedInstrumentItem(), SimulationDataSelectorWidget::selectedMultiLayerItem(), and ModelUtils::topItemNames().
|
inherited |
Definition at line 161 of file SessionModel.h.
References SessionModel::index(), SessionItem::item(), SessionModel::itemForIndex(), and SessionModel::rowCount().
|
virtualinherited |
Definition at line 374 of file SessionModel.cpp.
References SessionModel::m_root_item, SessionModel::parent(), and SessionXML::writeTo().
Referenced by SessionModel::initFrom().
|
privateinherited |
Definition at line 120 of file SessionModel.h.
Referenced by SessionModel::flags(), and SessionModel::setDraggedItemType().
|
privateinherited |
model tag (SampleModel, InstrumentModel)
Definition at line 122 of file SessionModel.h.
Referenced by SessionModel::getModelTag(), and SessionModel::readFrom().
|
privateinherited |
model name
Definition at line 121 of file SessionModel.h.
Referenced by SessionModel::getModelName(), and SessionModel::readFrom().
|
private |
Definition at line 64 of file JobModel.h.
Referenced by JobModel(), ~JobModel(), cancelJob(), hasUnfinishedJobs(), onCancelAllJobs(), removeJob(), and runJob().
|
privateinherited |
Definition at line 119 of file SessionModel.h.
Referenced by SessionModel::~SessionModel(), SessionModel::clear(), SessionModel::copy(), SessionModel::createRootItem(), SessionModel::data(), SessionModel::index(), SessionModel::indexOfItem(), SessionModel::insertNewItem(), SessionModel::itemForIndex(), SessionModel::load(), SessionModel::moveItem(), SessionModel::parent(), SessionModel::readFrom(), SessionModel::removeRows(), SessionModel::rootItem(), SessionModel::save(), SessionModel::setRootItem(), and SessionModel::writeTo().