BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Signals | |
void | jobBeginTimeChanged (const QDateTime &begin_time) |
void | jobCommentsChanged (const QString &comments) |
void | jobDestroyed () |
void | jobEndTimeChanged (const QDateTime &end_time) |
void | jobIdentifierChanged (const QString &identifier) |
void | jobInstrumentNameChanged (const QString &name) |
void | jobNameChanged (const QString &name) |
void | jobPresentationTypeChanged (const QString &type) |
void | jobProgressChanged (int progress) |
void | jobStatusChanged (const JobStatus status) |
Public Member Functions | |
JobItem () | |
~JobItem () | |
QVector< QString > | acceptableDefaultItemTypes () const |
Returns vector of acceptable default tag types. More... | |
bool | acceptsAsDefaultItem (const QString &item_name) const |
Returns true if model type can be added to default tag. More... | |
void | addDataViewItem (Data1DViewItem *data_view) |
SessionItem * | addGroupProperty (const QString &groupTag, const GroupInfo &groupInfo) |
template<typename T > | |
T * | addProperty (const QString &name) |
SessionItem * | addProperty (const QString &name, const QVariant &variant) |
Add new property item and register new tag. name is the tag name and the display name. The property's value will be set to variant. More... | |
virtual bool | allowWritingChildToXml (SessionItem *child) const |
QDateTime | beginTime () const |
SessionItem * | childAt (int row) const |
Returns the child at the given row. More... | |
QVector< SessionItem * > | children () const |
Returns vector of all children. More... | |
template<typename T > | |
QVector< T * > | childrenOfType () const |
QVector< SessionItem * > | childrenOfType (const QString &model_type) const |
Returns a vector of all children of the given type. More... | |
InstrumentItem * | copyInstrumentIntoJob (const InstrumentItem *instrument) |
RealDataItem * | copyRealDataIntoJob (const RealDataItem *real_data) |
MultiLayerItem * | copySampleIntoJob (const MultiLayerItem *sample) |
void | copySimulationOptionsIntoJob (const SimulationOptionsItem &options) |
Data1DViewItem * | createDataViewItem () |
FitSuiteItem * | createFitSuiteItem () |
RealDataItem * | createRealDataItem () |
DataItem * | dataItem () |
Data1DViewItem * | dataItemView () |
int | decimals () const |
QString | defaultTag () const |
Get default tag. More... | |
virtual void | deserializeBinaryData (const QByteArray &data) |
QString | displayName () const |
Get display name of item, append index if ambigue. More... | |
std::optional< size_t > | duration () const |
if begin and end time are both available the duration in ms, otherwise empty More... | |
void | emitDataChanged (int role=Qt::DisplayRole) |
Notify model about data changes. More... | |
QDateTime | endTime () const |
template<typename T > | |
T * | firstChildOfType () const |
FitParameterContainerItem * | fitParameterContainerItem () |
FitSuiteItem * | fitSuiteItem () |
SessionItem * | getChildOfType (const QString &type) const |
Returns the first child of the given type. More... | |
QString | getComments () const |
SessionItem * | getGroupItem (const QString &groupName) const |
Access subitem of group item. More... | |
QString | getIdentifier () const |
SessionItem * | getItem (const QString &tag="", int row=0) const |
Returns item in given row of given tag. More... | |
QVector< SessionItem * > | getItems (const QString &tag="") const |
Returns vector of all items of given tag. More... | |
QVariant | getItemValue (const QString &tag) const |
Directly access value of item under given tag. More... | |
int | getProgress () const |
QVector< int > | getRoles () const |
Returns vector of all present roles. More... | |
JobStatus | getStatus () const |
template<typename T > | |
T & | groupItem (const QString &groupName) const |
bool | hasChildren () const |
Indicates whether this SessionItem has any child items. More... | |
template<typename T > | |
bool | hasModelType () const |
QModelIndex | index () const |
Returns model index of this item. More... | |
void | insertChild (int row, SessionItem *item, const QString &tag="") |
Insert item into given tag into given row. More... | |
Instrument2DItem * | instrument2DItem () |
InstrumentItem * | instrumentItem () const |
QString | instrumentName () const |
IntensityDataItem * | intensityDataItem () |
bool | isCanceled () const |
bool | isCompleted () const |
bool | isEditable () const |
bool | isEnabled () const |
bool | isFailed () const |
bool | isFitting () const |
bool | isIdle () const |
bool | isRunning () const |
bool | isSpecularJob () const |
bool | isTag (const QString &name) const |
Returns true if tag is available. More... | |
bool | isValidForFitting () |
template<typename T > | |
T * | item (const QString &tag) const |
QString | itemName () const |
Get item name, return display name if no name is set. More... | |
template<typename T > | |
QVector< T * > | items (const QString &tag="") const |
QString | jobName () const |
RealLimits | limits () const |
ModelMapper * | mapper () |
Returns the current model mapper of this item. Creates new one if necessary. More... | |
SessionModel * | model () const |
Returns model of this item. More... | |
QString | modelType () const |
Get model type. More... | |
int | numberOfChildren () const |
Returns total number of children. More... | |
ParameterContainerItem * | parameterContainerItem () |
const ParameterContainerItem * | parameterContainerItem () const |
SessionItem * | parentItem () const |
Returns parent of this item. More... | |
int | parentRow () |
Returns the index of the given item within its parent. Returns -1 when no parent is set. More... | |
QString | presentationType () const |
void | readNonSessionItems (QXmlStreamReader *reader) override |
RealDataItem * | realDataItem () |
bool | registerTag (const QString &name, int min=0, int max=-1, QStringList modelTypes={}) |
Add new tag to this item with given name, min, max and types. max = -1 -> unlimited, modelTypes empty -> all types allowed. More... | |
QVariant | roleProperty (int role) const |
Returns corresponding variant under given role, invalid variant when role is not present. More... | |
int | rowOfChild (SessionItem *child) const |
Returns row index of given child. More... | |
bool | runImmediately () const |
bool | runInBackground () const |
MultiLayerItem * | sampleItem () |
QString | sampleName () const |
virtual QByteArray | serializeBinaryData () const |
const SessionItemTags * | sessionItemTags () const |
void | setBeginTime (const QDateTime &begin_time) |
void | setComments (const QString &comments) |
template<typename T > | |
T * | setDataType () |
SessionItem & | setDecimals (int n) |
void | setDefaultTag (const QString &tag) |
Set default tag. More... | |
void | setDisplayName (const QString &display_name) |
Set display name. More... | |
void | setEditable (bool enabled) |
void | setEnabled (bool enabled) |
Flags accessors. More... | |
void | setEndTime (const QDateTime &end_time) |
SessionItem * | setGroupProperty (const QString &groupTag, const QString &modelType) const |
Set the current type of group item. More... | |
template<typename T > | |
T * | setGroupPropertyType (const QString &groupTag) |
void | setIdentifier (const QString &identifier) |
void | setInstrumentName (const QString &name) |
void | setItemName (const QString &name) |
Set item name, add property if necessary. More... | |
void | setItemValue (const QString &tag, const QVariant &variant) const |
Directly set value of item under given tag. More... | |
void | setJobName (const QString &name) |
SessionItem & | setLimits (const RealLimits &value) |
void | setPresentationType (const QString &type) |
void | setProgress (int progress) |
void | setResults (const SimulationResult &result) |
bool | setRoleProperty (int role, const QVariant &value) |
Set the contained role property to the given value. See also setTranslatorForRolePropertySetter. More... | |
void | setStatus (JobStatus status) |
SessionItem & | setToolTip (const QString &tooltip) |
bool | setValue (QVariant value) |
Set value, ensure that variant types match. More... | |
const SimulationOptionsItem & | simulationOptionsItem () const |
QString | tagFromItem (const SessionItem *item) const |
Returns the tag name of given item when existing. More... | |
SessionItem * | takeItem (int row, const QString &tag) |
Remove item from given row from given tag. More... | |
SessionItem * | takeRow (int row) |
Removes row from item and returns the item. More... | |
QString | toolTip () const |
QVariant | value () const |
Get value. More... | |
void | writeNonSessionItems (QXmlStreamWriter *writer) const override |
Static Public Member Functions | |
static bool | isItemNamePropertyName (const QString &name) |
Static Public Attributes | |
static constexpr auto | M_TYPE {"JobItem"} |
Private Member Functions | |
void | changeFlags (bool enabled, int flag) |
internal More... | |
void | childDeleted (SessionItem *child) |
int | flags () const |
int | getCopyNumberOfChild (const SessionItem *item) const |
internal More... | |
void | setModel (SessionModel *model) |
void | setParentAndModel (SessionItem *parent, SessionModel *model) |
void | updateIntensityDataFileName () |
Updates the name of file to store intensity data. More... | |
Private Attributes | |
QVector< SessionItem * > | m_children |
std::unique_ptr< InstrumentItem > | m_instrument |
std::unique_ptr< ModelMapper > | m_mapper |
SessionModel * | m_model |
ParameterContainerItem | m_parameterContainer |
SessionItem * | m_parent |
std::unique_ptr< SessionItemData > | m_properties |
MultiLayerItem | m_sampleItem |
SimulationOptionsItem | m_simulationOptionsItem |
std::unique_ptr< SessionItemTags > | m_tags |
Static Private Attributes | |
static constexpr auto | P_BEGIN_TIME {"Begin time"} |
static constexpr auto | P_COMMENTS {"Comments"} |
static constexpr auto | P_END_TIME {"End time"} |
static constexpr auto | P_IDENTIFIER {"Identifier"} |
static constexpr auto | P_INSTRUMENT_NAME {"Instrument"} |
static constexpr auto | P_NAME {"Name"} |
static constexpr auto | P_PRESENTATION_TYPE {"Presentation type"} |
static constexpr auto | P_PROGRESS {"Progress"} |
static constexpr auto | P_STATUS {"Status"} |
static constexpr auto | P_WITH_FITTING {"With fitting"} |
static constexpr auto | T_DATAVIEW {"Data View tag"} |
static constexpr auto | T_FIT_SUITE {"Fit suite tag"} |
static constexpr auto | T_MATERIAL_CONTAINER {"Material container tag"} |
static constexpr auto | T_OUTPUT {"Output tag"} |
static constexpr auto | T_REALDATA {"Real Data tag"} |
Friends | |
class | JobModel |
JobItem::JobItem | ( | ) |
Definition at line 44 of file JobItem.cpp.
References SessionItem::addProperty(), Idle, jobStatusToString(), Data1DViewItem::M_TYPE, IntensityDataItem::M_TYPE, RealDataItem::M_TYPE, SpecularDataItem::M_TYPE, FitSuiteItem::M_TYPE, M_TYPE, P_BEGIN_TIME, P_COMMENTS, P_END_TIME, P_IDENTIFIER, P_INSTRUMENT_NAME, P_PRESENTATION_TYPE, P_PROGRESS, P_STATUS, P_WITH_FITTING, SessionItem::registerTag(), SessionItem::setEditable(), SessionItem::setItemName(), T_DATAVIEW, T_FIT_SUITE, T_OUTPUT, and T_REALDATA.
JobItem::~JobItem | ( | ) |
Definition at line 68 of file JobItem.cpp.
References jobDestroyed().
|
inherited |
Returns vector of acceptable default tag types.
Definition at line 193 of file SessionItem.cpp.
References SessionItem::defaultTag(), and SessionItem::m_tags.
|
inherited |
Returns true if model type can be added to default tag.
Definition at line 186 of file SessionItem.cpp.
References SessionItem::defaultTag(), and SessionItem::m_tags.
void JobItem::addDataViewItem | ( | Data1DViewItem * | data_view | ) |
Definition at line 310 of file JobItem.cpp.
References SessionItem::insertChild(), and T_DATAVIEW.
|
inherited |
Definition at line 306 of file SessionItem.cpp.
References GUI::Model::ItemFactory::CreateItem(), SessionItem::groupItem(), SessionItem::insertChild(), GroupItem::M_TYPE, and SessionItem::registerTag().
Referenced by MinimizerContainerItem::MinimizerContainerItem().
|
inherited |
Definition at line 394 of file SessionItem.h.
References SessionItem::insertChild(), SessionItem::registerTag(), and SessionItem::setDisplayName().
|
inherited |
Add new property item and register new tag. name is the tag name and the display name. The property's value will be set to variant.
Definition at line 278 of file SessionItem.cpp.
References GUI::Model::ItemFactory::CreateItem(), SessionItem::insertChild(), SessionItem::isTag(), PropertyItem::M_TYPE, GUI::RealSpace::Particles::name(), and SessionItem::registerTag().
Referenced by AmplitudeAxisItem::AmplitudeAxisItem(), BasicAxisItem::BasicAxisItem(), Data1DProperties::Data1DProperties(), Data1DViewItem::Data1DViewItem(), DataItem::DataItem(), DataProperties::DataProperties(), EllipseItem::EllipseItem(), FitParameterItem::FitParameterItem(), FitParameterLinkItem::FitParameterLinkItem(), FitSuiteItem::FitSuiteItem(), GeneticMinimizerItem::GeneticMinimizerItem(), GSLLMAMinimizerItem::GSLLMAMinimizerItem(), GSLMultiMinimizerItem::GSLMultiMinimizerItem(), HorizontalLineItem::HorizontalLineItem(), IntensityDataItem::IntensityDataItem(), JobItem(), MaskItem::MaskItem(), MinimizerContainerItem::MinimizerContainerItem(), MinuitMinimizerItem::MinuitMinimizerItem(), PointwiseAxisItem::PointwiseAxisItem(), PolygonItem::PolygonItem(), PolygonPointItem::PolygonPointItem(), RealDataItem::RealDataItem(), RectangleItem::RectangleItem(), SimAnMinimizerItem::SimAnMinimizerItem(), SpecularDataItem::SpecularDataItem(), VerticalLineItem::VerticalLineItem(), and SessionItem::setItemName().
|
virtualinherited |
Definition at line 528 of file SessionItem.cpp.
Referenced by GUI::Session::XML::writeItemAndChildItems().
QDateTime JobItem::beginTime | ( | ) | const |
Definition at line 159 of file JobItem.cpp.
References SessionItem::getItemValue(), P_BEGIN_TIME, and GUI::View::PropertyEditorFactory::toString().
Referenced by JobPropertiesTableModel::data(), and duration().
|
privateinherited |
internal
Definition at line 568 of file SessionItem.cpp.
References SessionFlags::FlagRole, SessionItem::flags(), and SessionItem::setRoleProperty().
Referenced by SessionItem::setEditable(), and SessionItem::setEnabled().
|
inherited |
Returns the child at the given row.
Definition at line 102 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by SessionModel::index(), and SessionItem::takeRow().
|
privateinherited |
Definition at line 533 of file SessionItem.cpp.
References SessionItem::index(), SessionItem::m_children, and SessionItem::rowOfChild().
Referenced by SessionItem::~SessionItem().
|
inherited |
Returns vector of all children.
Definition at line 95 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by MaskContainerItem::maskItems(), DataPropertyContainer::propertyItem(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
|
inherited |
Returns a vector of all children of the given type.
Definition at line 127 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by ProjectionsPlot::projectionItems(), and SaveProjectionsAssistant::projectionItems().
InstrumentItem * JobItem::copyInstrumentIntoJob | ( | const InstrumentItem * | instrument | ) |
Definition at line 245 of file JobItem.cpp.
References InstrumentItem::createCopy(), and m_instrument.
Referenced by GUI::Model::JobFunctions::setupJobItemInstrument().
RealDataItem * JobItem::copyRealDataIntoJob | ( | const RealDataItem * | real_data | ) |
Definition at line 295 of file JobItem.cpp.
References SessionModel::copyItem(), SessionItem::model(), and T_REALDATA.
Referenced by GUI::Model::JobFunctions::copyRealDataItem().
MultiLayerItem * JobItem::copySampleIntoJob | ( | const MultiLayerItem * | sample | ) |
Definition at line 227 of file JobItem.cpp.
References MultiLayerItem::initFrom(), and m_sampleItem.
void JobItem::copySimulationOptionsIntoJob | ( | const SimulationOptionsItem & | options | ) |
Definition at line 420 of file JobItem.cpp.
References m_simulationOptionsItem.
Data1DViewItem * JobItem::createDataViewItem | ( | ) |
Definition at line 315 of file JobItem.cpp.
References SessionModel::insertItem(), SessionItem::model(), and T_DATAVIEW.
Referenced by GUI::Model::JobFunctions::initDataView().
FitSuiteItem * JobItem::createFitSuiteItem | ( | ) |
Definition at line 262 of file JobItem.cpp.
References Error, SessionItem::getItem(), SessionModel::insertItem(), SessionItem::model(), and T_FIT_SUITE.
RealDataItem * JobItem::createRealDataItem | ( | ) |
Definition at line 300 of file JobItem.cpp.
References SessionModel::insertItem(), SessionItem::model(), and T_REALDATA.
DataItem * JobItem::dataItem | ( | ) |
Definition at line 101 of file JobItem.cpp.
References SessionItem::getItem(), and T_OUTPUT.
Referenced by GUI::Model::JobFunctions::initDataView(), FitSessionController::onObserverUpdate(), FitComparisonController2D::setItem(), setResults(), setStatus(), DiffItemController::subscribe(), DiffItemController::unsubscribe(), DiffItemController::updateDiffData(), and updateIntensityDataFileName().
Data1DViewItem * JobItem::dataItemView | ( | ) |
Definition at line 305 of file JobItem.cpp.
References SessionItem::getItem(), and T_DATAVIEW.
Referenced by FitComparison1DViewController::createDiffViewItem(), GUI::Model::JobFunctions::initDataView(), FitComparison1DViewController::setItem(), and FitComparisonWidget1D::viewItem().
|
inherited |
Definition at line 484 of file SessionItem.cpp.
References SessionFlags::DecimalRole, and SessionItem::roleProperty().
Referenced by GUI::View::PropertyEditorFactory::CreateEditor().
|
inherited |
Get default tag.
Definition at line 390 of file SessionItem.cpp.
References SessionFlags::DefaultTagRole, and SessionItem::roleProperty().
Referenced by SessionItem::acceptableDefaultItemTypes(), SessionItem::acceptsAsDefaultItem(), SessionModel::copy(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), SessionModel::insertNewItem(), SessionModel::moveItem(), and SessionItem::takeItem().
|
virtualinherited |
Reimplemented in PointwiseAxisItem, and RealDataItem.
Definition at line 522 of file SessionItem.cpp.
Referenced by GUI::Session::XML::readItems().
|
inherited |
Get display name of item, append index if ambigue.
Definition at line 404 of file SessionItem.cpp.
References SessionFlags::DisplayNameRole, SessionItem::getCopyNumberOfChild(), SessionItem::index(), SessionItemTags::isSingleItemTag(), SessionItem::m_parent, SessionItem::roleProperty(), SessionItem::sessionItemTags(), and SessionItem::tagFromItem().
Referenced by SelectionDescriptor< T >::SelectionDescriptor(), and SessionItem::itemName().
std::optional< size_t > JobItem::duration | ( | ) | const |
if begin and end time are both available the duration in ms, otherwise empty
Definition at line 181 of file JobItem.cpp.
References beginTime(), and endTime().
Referenced by JobPropertiesTableModel::data().
|
inherited |
Notify model about data changes.
Definition at line 358 of file SessionItem.cpp.
References SessionItem::index(), SessionModel::indexOfItem(), and SessionItem::m_model.
Referenced by GroupItem::onValueChange(), IntensityDataItem::setDatafield(), SpecularDataItem::setDatafield(), SessionItem::setRoleProperty(), and PointwiseAxisItem::updateIndicators().
QDateTime JobItem::endTime | ( | ) | const |
Definition at line 170 of file JobItem.cpp.
References SessionItem::getItemValue(), P_END_TIME, and GUI::View::PropertyEditorFactory::toString().
Referenced by JobPropertiesTableModel::data(), and duration().
|
inherited |
FitParameterContainerItem * JobItem::fitParameterContainerItem | ( | ) |
Definition at line 282 of file JobItem.cpp.
References fitSuiteItem(), and SessionItem::item().
Referenced by FitParameterWidget::onAddToFitParAction(), FitParameterWidget::onCreateFitParAction(), FitParameterWidget::onRemoveFitParAction(), FitParameterWidget::onRemoveFromFitParAction(), FitParameterWidget::onTuningWidgetContextMenu(), FitObjectiveBuilder::update_fit_parameters(), FitSessionController::updateFitParameterValues(), and FitSessionController::updateLog().
FitSuiteItem * JobItem::fitSuiteItem | ( | ) |
Definition at line 257 of file JobItem.cpp.
References SessionItem::getItem(), and T_FIT_SUITE.
Referenced by FitObjectiveBuilder::FitObjectiveBuilder(), FitObjectiveBuilder::createMinimizer(), FitObjectiveBuilder::createParameters(), fitParameterContainerItem(), RunFitControlWidget::fitSuiteItem(), FitSessionController::onStartFittingRequest(), FitObjectiveBuilder::runFit(), FitSessionController::setItem(), MinimizerSettingsWidget::setItem(), and FitSessionController::updateIterationCount().
|
privateinherited |
Definition at line 557 of file SessionItem.cpp.
References SessionFlags::EDITABLE, SessionFlags::ENABLED, SessionFlags::FlagRole, SessionItem::roleProperty(), and SessionFlags::VISIBLE.
Referenced by SessionItem::changeFlags(), SessionItem::isEditable(), and SessionItem::isEnabled().
|
inherited |
Returns the first child of the given type.
Definition at line 116 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by GroupItemController::currentItem(), GroupItemController::getItemOfType(), and GroupItemController::setCurrentType().
QString JobItem::getComments | ( | ) | const |
Definition at line 190 of file JobItem.cpp.
References SessionItem::getItemValue(), and P_COMMENTS.
Referenced by JobPropertiesWidget::notifyJobPropertyChange(), and JobPropertiesWidget::setItem().
|
privateinherited |
internal
Definition at line 580 of file SessionItem.cpp.
References SessionItem::item(), SessionItem::m_children, and SessionItem::P_NAME.
Referenced by SessionItem::displayName().
|
inherited |
Access subitem of group item.
Definition at line 327 of file SessionItem.cpp.
Referenced by SessionItem::groupItem(), and SessionItem::setGroupPropertyType().
QString JobItem::getIdentifier | ( | ) | const |
Definition at line 73 of file JobItem.cpp.
References SessionItem::getItemValue(), and P_IDENTIFIER.
Referenced by JobModel::cancelJob(), GUI::Model::JobFunctions::copyRealDataItem(), JobModel::removeJob(), JobQueueData::runJob(), and updateIntensityDataFileName().
|
inherited |
Returns item in given row of given tag.
Definition at line 200 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::m_children, and SessionItem::m_tags.
Referenced by FitParameterItem::FitParameterItem(), EllipseItem::angle(), DataItem::axesUnits(), Data1DViewItem::axesUnitsDescriptor(), BasicAxisItem::binsItem(), FitSuiteItem::createFitParametersContainer(), createFitSuiteItem(), FitSuiteItem::createMinimizerContainer(), dataItem(), RealDataItem::dataItem(), dataItemView(), fitSuiteItem(), DataItem::getAxesUnitsItem(), SessionItem::getItemValue(), IntensityDataItem::gradient(), RealDataItem::initDataItem(), FitParameterItem::initMinMaxValues(), intensityDataItem(), isValidForFitting(), SessionItem::item(), FitParameterLinkItem::linkItem(), AmplitudeAxisItem::logScaleItem(), IntensityDataItem::maskContainerItem(), MaskItem::maskValueItem(), BasicAxisItem::max(), FitParameterItem::maximumItem(), BasicAxisItem::maxItem(), BasicAxisItem::min(), FitParameterItem::minimumItem(), BasicAxisItem::minItem(), RealDataItem::nativeData(), MinimizerContainerItem::normFunction(), MinimizerContainerItem::objectiveMetric(), VerticalLineItem::posX(), HorizontalLineItem::posY(), IntensityDataItem::projectionContainerItem(), realDataItem(), BasicAxisItem::serialize(), PolygonPointItem::serialize(), AmplitudeAxisItem::serialize(), RectangleItem::serialize(), PolygonItem::serialize(), VerticalLineItem::serialize(), HorizontalLineItem::serialize(), EllipseItem::serialize(), MaskAllItem::serialize(), PointwiseAxisItem::serialize(), SessionItem::setItemValue(), FitParameterItem::setLimitEnabled(), RealDataItem::setNativeDataUnits(), FitParameterItem::startValueItem(), BasicAxisItem::titleItem(), FitParameterItem::typeItem(), MinuitMinimizerItem::valueDescriptorsForUI(), GSLMultiMinimizerItem::valueDescriptorsForUI(), GeneticMinimizerItem::valueDescriptorsForUI(), SimAnMinimizerItem::valueDescriptorsForUI(), GSLLMAMinimizerItem::valueDescriptorsForUI(), BasicAxisItem::visibilityItem(), EllipseItem::xCenter(), RectangleItem::xLow(), EllipseItem::xRadius(), RectangleItem::xUp(), EllipseItem::yCenter(), RectangleItem::yLow(), EllipseItem::yRadius(), and RectangleItem::yUp().
|
inherited |
Returns vector of all items of given tag.
Definition at line 221 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::m_children, and SessionItem::m_tags.
Referenced by MaskUnitsConverter::convertIntensityDataItem(), SessionModel::copy(), GroupItem::groupItems(), SessionItem::items(), SessionModel::moveItem(), DataPropertyContainer::propertyItem(), DataPropertyContainer::propertyItems(), and SessionItem::takeRow().
|
inherited |
Directly access value of item under given tag.
Definition at line 292 of file SessionItem.cpp.
References SessionItem::getItem(), SessionItem::isTag(), and SessionItem::value().
Referenced by FitParameterItem::attLimits(), Data1DViewItem::axesUnits(), beginTime(), BasicAxisItem::binCount(), FitSuiteItem::chi2(), Data1DProperties::color(), Data1DProperties::colorName(), MaskUnitsConverter::convertCoordinate(), MinimizerContainerItem::createMetric(), MinuitMinimizerItem::createMinimizer(), GSLMultiMinimizerItem::createMinimizer(), GeneticMinimizerItem::createMinimizer(), SimAnMinimizerItem::createMinimizer(), GSLLMAMinimizerItem::createMinimizer(), RectangleItem::createShape(), VerticalLineItem::createShape(), HorizontalLineItem::createShape(), EllipseItem::createShape(), DataProperties::dataItem(), endTime(), DataItem::fileName(), getComments(), IntensityDataItem::getGradient(), getIdentifier(), getProgress(), getStatus(), PointwiseAxisItem::getUnitsLabel(), FitParameterItem::initMinMaxValues(), RealDataItem::instrumentId(), instrumentName(), PolygonItem::isClosed(), IntensityDataItem::isInterpolated(), AmplitudeAxisItem::isLocked(), AmplitudeAxisItem::isLogScale(), BasicAxisItem::isTitleVisible(), FitParameterItem::isValid(), MaskItem::isVisibleValue(), SessionItem::itemName(), FitSuiteItem::iterationCount(), Data1DProperties::line(), FitParameterLinkItem::link(), MaskItem::maskValue(), FitParameterItem::maximum(), FitParameterItem::minimum(), RealDataItem::nativeDataUnits(), Data1DProperties::nextColorName(), PropertyRepeater::onPropertyChanged(), FitParameterItem::parameterType(), PolygonPointItem::posX(), PolygonPointItem::posY(), presentationType(), Data1DProperties::scatter(), DataItem::selectedCoords(), PropertyRepeater::setOnChildPropertyChange(), FitParameterItem::startValue(), BasicAxisItem::title(), FitParameterLinkItem::title(), and FitSuiteItem::updateInterval().
int JobItem::getProgress | ( | ) | const |
Definition at line 201 of file JobItem.cpp.
References SessionItem::getItemValue(), and P_PROGRESS.
Referenced by JobListViewDelegate::drawCustomProjectBar().
|
inherited |
Returns vector of all present roles.
Definition at line 351 of file SessionItem.cpp.
References SessionItem::m_properties.
Referenced by GUI::Session::XML::writeItemAndChildItems().
JobStatus JobItem::getStatus | ( | ) | const |
Definition at line 106 of file JobItem.cpp.
References SessionItem::getItemValue(), jobStatusFromString(), P_STATUS, and GUI::View::PropertyEditorFactory::toString().
Referenced by JobPropertiesTableModel::data(), JobListViewDelegate::drawCustomProjectBar(), isCanceled(), isCompleted(), isFailed(), isFitting(), isIdle(), isRunning(), and FitSessionController::onFittingFinished().
|
inherited |
Definition at line 413 of file SessionItem.h.
References SessionItem::getGroupItem().
Referenced by SessionItem::addGroupProperty().
|
inherited |
Indicates whether this SessionItem has any child items.
Definition at line 81 of file SessionItem.cpp.
References SessionItem::numberOfChildren().
Referenced by IntensityDataItem::hasProjections().
|
inherited |
Definition at line 421 of file SessionItem.h.
References SessionItem::modelType().
Referenced by MaskViewFactory::createMaskView(), FitParameterModel::flags(), FitParameterModel::index(), FitParameterModel::indexOfItem(), FitParameterWidget::onFitParametersSelectionChanged(), FitParameterModel::rowCount(), and MaskGraphicsScene::updateViews().
|
inherited |
Returns model index of this item.
Definition at line 74 of file SessionItem.cpp.
References SessionModel::indexOfItem(), and SessionItem::model().
Referenced by SessionItem::childDeleted(), MaskContainerItem::clear(), FitParameterContainerItem::createParameters(), SessionItem::displayName(), SessionItem::emitDataChanged(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), FitParameterModel::isValidSourceItem(), ParameterItem::linkToSessionItem(), JobModel::removeJob(), FitParameterContainerItem::setValuesInParameterContainer(), IntensityDataProjectionsWidget::subscribeToItem(), SessionItem::tagFromItem(), and SessionItem::takeItem().
|
inherited |
Insert item into given tag into given row.
Definition at line 233 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::item(), SessionItem::m_children, SessionItem::m_model, and SessionItem::m_tags.
Referenced by GroupItemController::GroupItemController(), addDataViewItem(), SessionItem::addGroupProperty(), DataPropertyContainer::addItem(), MaskContainerItem::addMask(), PolygonItem::addPoint(), SessionItem::addProperty(), GUI::Model::ItemFactory::CreateItem(), GroupItemController::getItemOfType(), MaskItems::insertMask(), MaskContainerItem::insertMask(), SessionModel::insertNewItem(), SessionModel::moveItem(), and GroupItemController::setCurrentType().
Instrument2DItem * JobItem::instrument2DItem | ( | ) |
Definition at line 238 of file JobItem.cpp.
References m_instrument.
InstrumentItem * JobItem::instrumentItem | ( | ) | const |
Definition at line 233 of file JobItem.cpp.
References m_instrument.
Referenced by ParameterTreeBuilder::addInstrument(), FitObjectiveBuilder::buildSimulation(), GUI::Model::JobFunctions::initDataView(), isSpecularJob(), JobQueueData::runJob(), GUI::Model::JobFunctions::setupJobItemForFit(), GUI::Model::JobFunctions::setupJobItemOutput(), and DiffItemController::subscribe().
QString JobItem::instrumentName | ( | ) | const |
Definition at line 325 of file JobItem.cpp.
References SessionItem::getItemValue(), and P_INSTRUMENT_NAME.
Referenced by JobPropertiesTableModel::data().
IntensityDataItem * JobItem::intensityDataItem | ( | ) |
Definition at line 96 of file JobItem.cpp.
References SessionItem::getItem(), and T_OUTPUT.
Referenced by JobListView::equalizeSelectedToJob(), and FitComparisonWidget::simulatedDataItem().
bool JobItem::isCanceled | ( | ) | const |
Definition at line 139 of file JobItem.cpp.
References Canceled, and getStatus().
Referenced by JobRealTimeWidget::isValidJobItem().
bool JobItem::isCompleted | ( | ) | const |
Definition at line 134 of file JobItem.cpp.
References Completed, and getStatus().
Referenced by JobRealTimeWidget::isValidJobItem(), FitSessionController::onFittingFinished(), and JobQueueData::processFinishedJob().
|
inherited |
Definition at line 468 of file SessionItem.cpp.
References SessionFlags::EDITABLE, and SessionItem::flags().
Referenced by SessionModel::flags().
|
inherited |
Definition at line 463 of file SessionItem.cpp.
References SessionFlags::ENABLED, and SessionItem::flags().
Referenced by SessionModel::flags().
bool JobItem::isFailed | ( | ) | const |
Definition at line 144 of file JobItem.cpp.
References Failed, and getStatus().
Referenced by JobRealTimeWidget::isValidJobItem(), and JobPropertiesWidget::setItem().
bool JobItem::isFitting | ( | ) | const |
Definition at line 149 of file JobItem.cpp.
References Fitting, and getStatus().
Referenced by JobListView::updateActions().
bool JobItem::isIdle | ( | ) | const |
Definition at line 124 of file JobItem.cpp.
References getStatus(), and Idle.
|
staticinherited |
Definition at line 446 of file SessionItem.cpp.
References GUI::RealSpace::Particles::name(), and SessionItem::P_NAME.
bool JobItem::isRunning | ( | ) | const |
Definition at line 129 of file JobItem.cpp.
References getStatus(), and Running.
Referenced by JobListViewDelegate::editorEvent(), JobListViewDelegate::paint(), and JobListView::updateActions().
bool JobItem::isSpecularJob | ( | ) | const |
Definition at line 394 of file JobItem.cpp.
References instrumentItem(), and InstrumentItem::is().
Referenced by ParameterTreeBuilder::allowMagneticFields().
|
inherited |
Returns true if tag is available.
Definition at line 166 of file SessionItem.cpp.
References SessionItem::m_tags, and GUI::RealSpace::Particles::name().
Referenced by SessionItem::addProperty(), MaskUnitsConverter::convertCoordinate(), SessionItem::getItemValue(), isValidForFitting(), SessionItem::itemName(), SessionItem::setItemName(), SessionItem::setItemValue(), and FitParameterItem::setLimitEnabled().
bool JobItem::isValidForFitting | ( | ) |
Definition at line 154 of file JobItem.cpp.
References SessionItem::getItem(), SessionItem::isTag(), and T_REALDATA.
Referenced by GUI::Model::JobFunctions::initDataView(), RunFitControlWidget::isValidJobItem(), FitActivityPanel::isValidJobItem(), and JobView::setAppropriateActivityForJob().
|
inherited |
Definition at line 353 of file SessionItem.h.
References SessionItem::getItem().
Referenced by MinimizerContainerItem::MinimizerContainerItem(), PolygonItem::createShape(), DataProperties::dataItem(), DataPropertyContainer::dataItems(), fitParameterContainerItem(), FitParameterContainerItem::fitParameterItem(), FitParameterContainerItem::fitParameterNames(), SessionItem::getCopyNumberOfChild(), SessionItem::insertChild(), SessionItem::items(), Data1DViewItem::jobItem(), DataPropertyContainer::propertyItems(), DataProperties::setDataItem(), SessionItem::setGroupPropertyType(), SessionItem::tagFromItem(), SessionItem::takeRow(), SessionModel::topItems(), DataItem::updateAxesUnits(), updateIntensityDataFileName(), and RealDataItem::updateNonXMLDataFileNames().
|
inherited |
Get item name, return display name if no name is set.
Definition at line 432 of file SessionItem.cpp.
References SessionItem::displayName(), SessionItem::getItemValue(), SessionItem::isTag(), and SessionItem::P_NAME.
Referenced by SessionModel::data(), RealDataItem::dataName(), jobName(), MaskItem::maskName(), GUI::Session::XML::readItems(), MaskGraphicsScene::setItemName(), Plot1D::subscribeToItem(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), and updateIntensityDataFileName().
|
inherited |
Definition at line 361 of file SessionItem.h.
References SessionItem::getItems(), and SessionItem::item().
Referenced by DataPropertyContainer::dataItems(), SessionItem::takeRow(), and SessionModel::topItem().
|
signal |
Referenced by JobPropertiesTableModel::notifyJobPropertyChange(), and setBeginTime().
|
signal |
Referenced by JobPropertiesWidget::notifyJobPropertyChange(), and setComments().
|
signal |
Referenced by ~JobItem(), and FitSessionManager::createController().
|
signal |
Referenced by JobPropertiesTableModel::notifyJobPropertyChange(), and setEndTime().
|
signal |
Referenced by setIdentifier().
|
signal |
Referenced by setInstrumentName().
QString JobItem::jobName | ( | ) | const |
Definition at line 84 of file JobItem.cpp.
References SessionItem::itemName().
Referenced by GUI::Model::JobFunctions::copyRealDataItem(), JobListModel::data(), JobPropertiesTableModel::data(), JobListViewDelegate::paint(), and JobListView::showContextMenu().
|
signal |
|
signal |
Referenced by setPresentationType().
|
signal |
Referenced by JobListModel::enableJobNotification(), and setProgress().
|
signal |
|
inherited |
Definition at line 473 of file SessionItem.cpp.
References SessionFlags::LimitsRole, and SessionItem::roleProperty().
Referenced by GUI::View::PropertyEditorFactory::CreateEditor(), FitParameterContainerItem::createParameters(), and FitParameterItem::initMinMaxValues().
|
inherited |
Returns the current model mapper of this item. Creates new one if necessary.
Definition at line 508 of file SessionItem.cpp.
References SessionItem::m_mapper.
Referenced by Data1DViewItem::Data1DViewItem(), FitParameterItem::FitParameterItem(), FitParameterModel::FitParameterModel(), GroupItem::GroupItem(), IShape2DView::IShape2DView(), FitParameterModel::~FitParameterModel(), IntensityDataPropertyWidget::~IntensityDataPropertyWidget(), PropertyRepeater::addItem(), MaskEditorPropertyPanel::addMaskCheckBox(), MaskEditorPropertyPanel::addMaskSpinBox(), IShape2DView::disconnectFromItem(), SessionItemController::onControllerDestroy(), SpecularDataPropertyWidget::setCurrentItem(), MaskEditorPropertyPanel::setCurrentMaskItem(), IntensityDataPropertyWidget::setItem(), FitSessionController::setItem(), SessionItemController::setItem(), RunFitControlWidget::subscribeToItem(), IntensityDataCanvas::subscribeToItem(), FitFlowWidget::subscribeToItem(), Plot1D::subscribeToItem(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), SessionItemController::unsubscribe(), RunFitControlWidget::unsubscribeFromChildren(), and ProjectionsPlot::unsubscribeFromChildren().
|
inherited |
Returns model of this item.
Definition at line 60 of file SessionItem.cpp.
References SessionItem::m_model.
Referenced by FitParameterModel::FitParameterModel(), DataPropertyContainer::addItem(), FitParameterItem::addLink(), MaskContainerItem::clear(), copyRealDataIntoJob(), createDataViewItem(), FitParameterContainerItem::createFitParameter(), FitSuiteItem::createFitParametersContainer(), createFitSuiteItem(), FitSuiteItem::createMinimizerContainer(), Data1DViewItem::createPropertyContainerItem(), createRealDataItem(), DataProperties::dataItem(), IntensityDataItem::getOrCreateMaskContainerItem(), IntensityDataItem::getOrCreateProjectionContainerItem(), SessionItem::index(), RealDataItem::initDataItem(), FitParameterWidget::onRemoveFitParAction(), GUI::Session::XML::readItems(), FitParameterItem::removeLink(), setDataType(), ModelMapper::setItem(), SessionItem::setModel(), SessionItem::setParentAndModel(), FitParameterModel::sourceModel(), ParameterTuningWidget::subscribeToItem(), ItemStackWidget::validateItem(), and GUI::Session::XML::writeModel().
|
inherited |
Get model type.
Definition at line 368 of file SessionItem.cpp.
References SessionFlags::ModelTypeRole, and SessionItem::roleProperty().
Referenced by GSLMultiMinimizerItem::GSLMultiMinimizerItem(), MinuitMinimizerItem::MinuitMinimizerItem(), RectangleItem::RectangleItem(), SessionItem::SessionItem(), GUI::Model::Path::ancestor(), MaskViewFactory::createMaskView(), FitParameterHelper::getParameterItem(), ProjectionsPlot::graphForItem(), SessionItem::hasModelType(), SessionModel::insertItem(), SessionModel::moveItem(), MaskGraphicsScene::processPolygonItem(), MaskGraphicsScene::processRectangleShapeItem(), GroupItem::setCurrentType(), ProjectionsPlot::setGraphFromItem(), SessionItem::setGroupProperty(), MaskGraphicsScene::setItemName(), MaskEditor::setMaskContext(), MaskGraphicsScene::setMaskContext(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Returns total number of children.
Definition at line 88 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by MaskContainerItem::clear(), SessionModel::dropMimeData(), SessionItem::hasChildren(), SessionModel::insertNewItem(), MaskEditorActions::isSendToBackPossible(), FitParameterModel::rowCount(), and SessionModel::rowCount().
ParameterContainerItem * JobItem::parameterContainerItem | ( | ) |
Definition at line 271 of file JobItem.cpp.
Referenced by ParameterTreeBuilder::addParameterItem(), ParameterTreeBuilder::parameterContainer(), JobModel::restore(), FitObjectiveBuilder::update_fit_parameters(), and FitSessionController::updateFitParameterValues().
const ParameterContainerItem * JobItem::parameterContainerItem | ( | ) | const |
|
inherited |
Returns parent of this item.
Definition at line 67 of file SessionItem.cpp.
References SessionItem::m_parent.
Referenced by DataPropertyContainer::addItem(), GUI::Model::Path::ancestor(), FitComparison1DViewController::deleteDiffViewItem(), FitParameterHelper::getParameterItem(), FitParameterModel::indexOfItem(), SessionModel::indexOfItem(), MaskEditorActions::isSendToBackPossible(), Data1DViewItem::jobItem(), SessionModel::moveItem(), ModelMapper::nestlingDepth(), ModelMapper::onDataChanged(), FitParameterWidget::onFitParametersSelectionChanged(), ProjectionsEditorCanvas::onLeavingColorMap(), FitParameterModel::parent(), SessionModel::parent(), SessionItem::parentRow(), GUI::Session::XML::readItems(), GUI::Session::XML::readProperty(), IntensityDataCanvas::rotateData(), PropertyRepeater::setOnChildPropertyChange(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Returns the index of the given item within its parent. Returns -1 when no parent is set.
Definition at line 148 of file SessionItem.cpp.
References SessionItem::parentItem(), and SessionItem::rowOfChild().
Referenced by FitParameterModel::indexOfItem(), and FitParameterModel::parent().
QString JobItem::presentationType | ( | ) | const |
Definition at line 336 of file JobItem.cpp.
References SessionItem::getItemValue(), and P_PRESENTATION_TYPE.
|
overridevirtual |
Reimplemented from SessionItem.
Definition at line 366 of file JobItem.cpp.
References GUI::Session::XML::gotoEndElementOfTag(), m_instrument, m_parameterContainer, m_sampleItem, m_simulationOptionsItem, Streamer::read(), ParameterContainerItem::readContentFrom(), MultiLayerItem::readContentFrom(), SimulationOptionsItem::readContentFrom(), DeserializationException::tooNew(), DeserializationException::tooOld(), and GUI::Session::XML::Version().
RealDataItem * JobItem::realDataItem | ( | ) |
Definition at line 290 of file JobItem.cpp.
References SessionItem::getItem(), and T_REALDATA.
Referenced by FitObjectiveBuilder::createFitObjective(), GUI::Model::JobFunctions::initDataView(), FitComparisonWidget::realDataItem(), FitComparisonController2D::setItem(), DiffItemController::updateDiffData(), and updateIntensityDataFileName().
|
inherited |
Add new tag to this item with given name, min, max and types. max = -1 -> unlimited, modelTypes empty -> all types allowed.
Definition at line 159 of file SessionItem.cpp.
References SessionItem::m_tags, and GUI::RealSpace::Particles::name().
Referenced by Data1DViewItem::Data1DViewItem(), DataPropertyContainer::DataPropertyContainer(), FitParameterContainerItem::FitParameterContainerItem(), FitParameterItem::FitParameterItem(), FitSuiteItem::FitSuiteItem(), GroupItem::GroupItem(), IntensityDataItem::IntensityDataItem(), JobItem(), MaskContainerItem::MaskContainerItem(), PolygonItem::PolygonItem(), ProjectionContainerItem::ProjectionContainerItem(), RealDataItem::RealDataItem(), SessionItem::addGroupProperty(), SessionItem::addProperty(), and SessionModel::createRootItem().
|
inherited |
Returns corresponding variant under given role, invalid variant when role is not present.
Definition at line 334 of file SessionItem.cpp.
References SessionItem::m_properties.
Referenced by GUI::View::PropertyEditorFactory::CreateEditor(), SessionItem::decimals(), SessionItem::defaultTag(), SessionItem::displayName(), SessionItem::flags(), SessionItem::limits(), SessionItem::modelType(), SessionItem::toolTip(), SessionItem::value(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Returns row index of given child.
Definition at line 109 of file SessionItem.cpp.
Referenced by SessionItem::childDeleted(), SessionModel::indexOfItem(), SessionModel::moveItem(), ProjectionsEditorCanvas::onLeavingColorMap(), and SessionItem::parentRow().
bool JobItem::runImmediately | ( | ) | const |
Definition at line 212 of file JobItem.cpp.
References SimulationOptionsItem::runImmediately(), and simulationOptionsItem().
bool JobItem::runInBackground | ( | ) | const |
Definition at line 217 of file JobItem.cpp.
References SimulationOptionsItem::runInBackground(), and simulationOptionsItem().
Referenced by JobView::onFocusRequest().
MultiLayerItem * JobItem::sampleItem | ( | ) |
Definition at line 222 of file JobItem.cpp.
References m_sampleItem.
Referenced by ParameterTreeBuilder::addMaterials(), ParameterTreeBuilder::addSample(), FitObjectiveBuilder::buildSimulation(), and JobQueueData::runJob().
QString JobItem::sampleName | ( | ) | const |
Definition at line 320 of file JobItem.cpp.
References m_sampleItem, and MultiLayerItem::sampleName().
Referenced by JobPropertiesTableModel::data().
|
virtualinherited |
Reimplemented in PointwiseAxisItem, and RealDataItem.
Definition at line 517 of file SessionItem.cpp.
Referenced by GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Definition at line 171 of file SessionItem.cpp.
References SessionItem::m_tags.
Referenced by SessionItem::displayName(), SessionModel::insertNewItem(), and SessionModel::moveItem().
void JobItem::setBeginTime | ( | const QDateTime & | begin_time | ) |
Definition at line 164 of file JobItem.cpp.
References jobBeginTimeChanged(), P_BEGIN_TIME, and SessionItem::setItemValue().
Referenced by FitSessionController::onFittingStarted().
void JobItem::setComments | ( | const QString & | comments | ) |
Definition at line 195 of file JobItem.cpp.
References jobCommentsChanged(), P_COMMENTS, and SessionItem::setItemValue().
Referenced by JobPropertiesWidget::onCommentsEdited(), JobQueueData::processFinishedJob(), and JobQueueData::runJob().
T * JobItem::setDataType |
Definition at line 171 of file JobItem.h.
References SessionModel::insertItem(), SessionItem::model(), and T_OUTPUT.
Referenced by GUI::Model::JobFunctions::setupJobItemOutput().
|
inherited |
Definition at line 489 of file SessionItem.cpp.
References SessionFlags::DecimalRole, and SessionItem::setRoleProperty().
Referenced by BasicAxisItem::BasicAxisItem(), and SessionItem::SessionItem().
|
inherited |
Set default tag.
Definition at line 397 of file SessionItem.cpp.
References SessionFlags::DefaultTagRole, and SessionItem::setRoleProperty().
Referenced by DataPropertyContainer::DataPropertyContainer(), FitParameterContainerItem::FitParameterContainerItem(), FitParameterItem::FitParameterItem(), GroupItem::GroupItem(), IntensityDataItem::IntensityDataItem(), MaskContainerItem::MaskContainerItem(), PolygonItem::PolygonItem(), ProjectionContainerItem::ProjectionContainerItem(), and RealDataItem::RealDataItem().
|
inherited |
Set display name.
Definition at line 426 of file SessionItem.cpp.
References SessionFlags::DisplayNameRole, and SessionItem::setRoleProperty().
Referenced by SessionItem::SessionItem(), SessionItem::addProperty(), FitParameterContainerItem::createFitParameter(), and GUI::Session::XML::readItems().
|
inherited |
Definition at line 458 of file SessionItem.cpp.
References SessionItem::changeFlags(), and SessionFlags::EDITABLE.
Referenced by JobItem(), and FitParameterItem::setLimitEnabled().
|
inherited |
Flags accessors.
Definition at line 453 of file SessionItem.cpp.
References SessionItem::changeFlags(), and SessionFlags::ENABLED.
Referenced by FitParameterItem::FitParameterItem(), MaskAllItem::MaskAllItem(), PointwiseAxisItem::PointwiseAxisItem(), GroupItemController::getItemOfType(), and FitParameterItem::setLimitEnabled().
void JobItem::setEndTime | ( | const QDateTime & | end_time | ) |
Definition at line 175 of file JobItem.cpp.
References jobEndTimeChanged(), P_END_TIME, and SessionItem::setItemValue().
Referenced by FitSessionController::onFittingError(), FitSessionController::onFittingFinished(), FitSessionController::onFittingStarted(), and JobQueueData::processFinishedJob().
|
inherited |
Set the current type of group item.
Definition at line 320 of file SessionItem.cpp.
References SessionItem::modelType().
Referenced by SessionItem::setGroupPropertyType().
|
inherited |
Definition at line 404 of file SessionItem.h.
References SessionItem::getGroupItem(), SessionItem::item(), and SessionItem::setGroupProperty().
void JobItem::setIdentifier | ( | const QString & | identifier | ) |
Definition at line 78 of file JobItem.cpp.
References jobIdentifierChanged(), P_IDENTIFIER, and SessionItem::setItemValue().
void JobItem::setInstrumentName | ( | const QString & | name | ) |
Definition at line 330 of file JobItem.cpp.
References jobInstrumentNameChanged(), GUI::RealSpace::Particles::name(), P_INSTRUMENT_NAME, and SessionItem::setItemValue().
Referenced by GUI::Model::JobFunctions::setupJobItemInstrument().
|
inherited |
Set item name, add property if necessary.
Definition at line 438 of file SessionItem.cpp.
References SessionItem::addProperty(), SessionItem::isTag(), GUI::RealSpace::Particles::name(), SessionItem::P_NAME, and SessionItem::setItemValue().
Referenced by EllipseItem::EllipseItem(), HorizontalLineItem::HorizontalLineItem(), JobItem(), MaskAllItem::MaskAllItem(), PolygonItem::PolygonItem(), PolygonPointItem::PolygonPointItem(), RealDataItem::RealDataItem(), RectangleItem::RectangleItem(), VerticalLineItem::VerticalLineItem(), RealDataItem::setDataName(), MaskGraphicsScene::setItemName(), setJobName(), and MaskItem::setMaskName().
|
inherited |
Directly set value of item under given tag.
Definition at line 300 of file SessionItem.cpp.
References SessionItem::getItem(), SessionItem::isTag(), and SessionItem::setValue().
Referenced by MaskUnitsConverter::convertCoordinate(), PointwiseAxisItem::init(), FitParameterItem::initMinMaxValues(), RealDataItem::linkToInstrument(), EllipseItem::setAngle(), Data1DViewItem::setAxesUnits(), DataItem::setAxesUnits(), setBeginTime(), BasicAxisItem::setBinCount(), FitSuiteItem::setChi2(), Data1DProperties::setColorProperty(), setComments(), DataProperties::setDataItem(), setEndTime(), DataItem::setFileName(), IntensityDataItem::setGradient(), setIdentifier(), setInstrumentName(), IntensityDataItem::setInterpolated(), PolygonItem::setIsClosed(), MaskItem::setIsVisibleValue(), SessionItem::setItemName(), FitSuiteItem::setIterationCount(), Data1DProperties::setLineProperty(), FitParameterLinkItem::setLink(), AmplitudeAxisItem::setLocked(), AmplitudeAxisItem::setLogScale(), BasicAxisItem::setLowerBound(), MaskItem::setMaskValue(), FitParameterItem::setMaximum(), FitParameterItem::setMinimum(), PolygonPointItem::setPosX(), VerticalLineItem::setPosX(), PolygonPointItem::setPosY(), HorizontalLineItem::setPosY(), setPresentationType(), setProgress(), Data1DProperties::setScatterProperty(), FitParameterItem::setStartValue(), setStatus(), BasicAxisItem::setTitle(), FitParameterLinkItem::setTitle(), FitSuiteItem::setUpdateInterval(), BasicAxisItem::setUpperBound(), BasicAxisItem::setVisibilityValue(), EllipseItem::setXCenter(), RectangleItem::setXLow(), EllipseItem::setXRadius(), RectangleItem::setXUp(), EllipseItem::setYCenter(), RectangleItem::setYLow(), EllipseItem::setYRadius(), RectangleItem::setYUp(), and RealDataItem::unlinkFromInstrument().
void JobItem::setJobName | ( | const QString & | name | ) |
Definition at line 89 of file JobItem.cpp.
References jobNameChanged(), GUI::RealSpace::Particles::name(), SessionItem::setItemName(), and updateIntensityDataFileName().
Referenced by JobPropertiesTableModel::setData().
|
inherited |
Definition at line 478 of file SessionItem.cpp.
References SessionFlags::LimitsRole, SessionItem::setRoleProperty(), and SessionItem::value().
Referenced by BasicAxisItem::BasicAxisItem(), EllipseItem::EllipseItem(), FitParameterItem::FitParameterItem(), HorizontalLineItem::HorizontalLineItem(), PolygonPointItem::PolygonPointItem(), RectangleItem::RectangleItem(), SessionItem::SessionItem(), VerticalLineItem::VerticalLineItem(), and FitParameterItem::initMinMaxValues().
|
privateinherited |
Definition at line 546 of file SessionItem.cpp.
References SessionItem::m_children, SessionItem::m_mapper, SessionItem::m_model, and SessionItem::model().
Referenced by SessionItem::~SessionItem(), SessionModel::createRootItem(), and SessionItem::setParentAndModel().
|
privateinherited |
Definition at line 540 of file SessionItem.cpp.
References SessionItem::m_parent, SessionItem::model(), and SessionItem::setModel().
Referenced by SessionItem::takeItem().
void JobItem::setPresentationType | ( | const QString & | type | ) |
Definition at line 341 of file JobItem.cpp.
References jobPresentationTypeChanged(), P_PRESENTATION_TYPE, and SessionItem::setItemValue().
Referenced by JobResultsPresenter::setPresentation().
void JobItem::setProgress | ( | int | progress | ) |
Definition at line 206 of file JobItem.cpp.
References jobProgressChanged(), P_PROGRESS, and SessionItem::setItemValue().
Referenced by FitSessionController::onFittingFinished(), FitSessionController::onFittingStarted(), JobQueueData::onProgressUpdate(), JobQueueData::onStartedJob(), JobQueueData::processFinishedJob(), and JobQueueData::runJob().
void JobItem::setResults | ( | const SimulationResult & | result | ) |
Definition at line 251 of file JobItem.cpp.
References dataItem(), GUI::Model::JobItemUtils::setResults(), and updateIntensityDataFileName().
Referenced by JobQueueData::processFinishedJob().
|
inherited |
Set the contained role property to the given value. See also setTranslatorForRolePropertySetter.
Set variant to role, create role if not present yet.
Definition at line 341 of file SessionItem.cpp.
References SessionItem::emitDataChanged(), SessionItem::m_properties, and SessionItem::value().
Referenced by SessionItem::SessionItem(), SessionItem::changeFlags(), GUI::Session::XML::readProperty(), SessionModel::setData(), SessionItem::setDecimals(), SessionItem::setDefaultTag(), SessionItem::setDisplayName(), SessionItem::setLimits(), SessionItem::setToolTip(), and SessionItem::setValue().
void JobItem::setStatus | ( | JobStatus | status | ) |
Definition at line 111 of file JobItem.cpp.
References dataItem(), Failed, jobStatusChanged(), jobStatusToString(), P_STATUS, and SessionItem::setItemValue().
Referenced by FitSessionController::onFittingFinished(), FitSessionController::onFittingStarted(), FitSessionController::onStartFittingRequest(), JobQueueData::processFinishedJob(), and JobQueueData::runJob().
|
inherited |
Definition at line 500 of file SessionItem.cpp.
References SessionItem::setRoleProperty().
Referenced by GeneticMinimizerItem::GeneticMinimizerItem(), GSLLMAMinimizerItem::GSLLMAMinimizerItem(), GSLMultiMinimizerItem::GSLMultiMinimizerItem(), MinimizerContainerItem::MinimizerContainerItem(), MinuitMinimizerItem::MinuitMinimizerItem(), and SimAnMinimizerItem::SimAnMinimizerItem().
|
inherited |
Set value, ensure that variant types match.
Definition at line 382 of file SessionItem.cpp.
References GUI::Util::Variant::CompatibleVariantTypes(), SessionItem::setRoleProperty(), and SessionItem::value().
Referenced by DoubleDescriptor::DoubleDescriptor(), SelectionDescriptor< T >::SelectionDescriptor(), UIntDescriptor::UIntDescriptor(), IntensityDataPropertyWidget::createCheckBox(), SpecularDataPropertyWidget::createCheckBox(), IntensityDataPropertyWidget::createTextEdit(), SpecularDataPropertyWidget::createTextEdit(), SessionItem::setItemValue(), RealDataItem::setNativeDataUnits(), and GroupItem::updateComboValue().
const SimulationOptionsItem & JobItem::simulationOptionsItem | ( | ) | const |
Definition at line 415 of file JobItem.cpp.
References m_simulationOptionsItem.
Referenced by FitObjectiveBuilder::buildSimulation(), runImmediately(), runInBackground(), and JobQueueData::runJob().
|
inherited |
Returns the tag name of given item when existing.
Definition at line 178 of file SessionItem.cpp.
References SessionItem::index(), SessionItem::item(), SessionItem::m_children, and SessionItem::m_tags.
Referenced by SessionItem::displayName(), ModelMapper::onDataChanged(), PropertyRepeater::setOnChildPropertyChange(), SessionItem::takeRow(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Remove item from given row from given tag.
Definition at line 258 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::m_children, SessionItem::m_model, SessionItem::m_tags, and SessionItem::setParentAndModel().
Referenced by SessionModel::moveItem(), and SessionItem::takeRow().
|
inherited |
Removes row from item and returns the item.
Definition at line 139 of file SessionItem.cpp.
References SessionItem::childAt(), SessionItem::getItems(), SessionItem::item(), SessionItem::items(), SessionItem::tagFromItem(), and SessionItem::takeItem().
Referenced by FitComparison1DViewController::deleteDiffViewItem(), SessionModel::moveItem(), ProjectionsEditorCanvas::onLeavingColorMap(), and SessionModel::removeRows().
|
inherited |
Definition at line 495 of file SessionItem.cpp.
References SessionItem::roleProperty().
Referenced by SelectionDescriptor< T >::SelectionDescriptor().
|
private |
Updates the name of file to store intensity data.
Definition at line 401 of file JobItem.cpp.
References dataItem(), getIdentifier(), SessionItem::item(), SessionItem::itemName(), GUI::Model::FilenameUtils::jobNativeDataFileName(), GUI::Model::FilenameUtils::jobReferenceFileName(), GUI::Model::FilenameUtils::jobResultsFileName(), and realDataItem().
Referenced by setJobName(), and setResults().
|
inherited |
Get value.
Definition at line 375 of file SessionItem.cpp.
References SessionItem::roleProperty().
Referenced by SelectionDescriptor< T >::SelectionDescriptor(), IntensityDataPropertyWidget::createCheckBox(), SpecularDataPropertyWidget::createCheckBox(), GUI::View::PropertyEditorFactory::CreateEditor(), IntensityDataPropertyWidget::createTextEdit(), SpecularDataPropertyWidget::createTextEdit(), SessionModel::data(), SessionModel::flags(), SessionItem::getItemValue(), FitParameterItem::initMinMaxValues(), FitParameterItem::isValid(), GroupItem::onValueChange(), BasicAxisItem::setBinCount(), SessionItem::setLimits(), AmplitudeAxisItem::setLogScale(), BasicAxisItem::setLowerBound(), Data1DViewItem::setLowerX(), IntensityDataItem::setLowerX(), SpecularDataItem::setLowerX(), Data1DViewItem::setLowerY(), IntensityDataItem::setLowerY(), SpecularDataItem::setLowerY(), SessionItem::setRoleProperty(), BasicAxisItem::setUpperBound(), Data1DViewItem::setUpperX(), IntensityDataItem::setUpperX(), SpecularDataItem::setUpperX(), Data1DViewItem::setUpperY(), IntensityDataItem::setUpperY(), SpecularDataItem::setUpperY(), SessionItem::setValue(), BasicAxisItem::visibilityValue(), and GUI::Session::XML::writeItemAndChildItems().
|
overridevirtual |
Reimplemented from SessionItem.
Definition at line 347 of file JobItem.cpp.
References m_instrument, m_parameterContainer, m_sampleItem, m_simulationOptionsItem, GUI::Session::XML::Version(), Streamer::write(), GUI::Session::XML::writeAttribute(), ParameterContainerItem::writeContentTo(), MultiLayerItem::writeContentTo(), and SimulationOptionsItem::writeContentTo().
|
privateinherited |
Definition at line 332 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::childAt(), SessionItem::childDeleted(), SessionItem::children(), SessionItem::childrenOfType(), SessionItem::firstChildOfType(), SessionItem::getChildOfType(), SessionItem::getCopyNumberOfChild(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), SessionItem::numberOfChildren(), SessionItem::setModel(), SessionItem::tagFromItem(), and SessionItem::takeItem().
|
private |
Definition at line 167 of file JobItem.h.
Referenced by copyInstrumentIntoJob(), instrument2DItem(), instrumentItem(), readNonSessionItems(), and writeNonSessionItems().
|
privateinherited |
Definition at line 335 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::mapper(), and SessionItem::setModel().
|
privateinherited |
Definition at line 331 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::emitDataChanged(), SessionItem::insertChild(), SessionItem::model(), SessionItem::setModel(), and SessionItem::takeItem().
|
private |
Definition at line 165 of file JobItem.h.
Referenced by parameterContainerItem(), readNonSessionItems(), and writeNonSessionItems().
|
privateinherited |
Definition at line 330 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::displayName(), SessionItem::parentItem(), and SessionItem::setParentAndModel().
|
privateinherited |
Definition at line 333 of file SessionItem.h.
Referenced by SessionItem::getRoles(), SessionItem::roleProperty(), and SessionItem::setRoleProperty().
|
private |
Definition at line 166 of file JobItem.h.
Referenced by copySampleIntoJob(), readNonSessionItems(), sampleItem(), sampleName(), and writeNonSessionItems().
|
private |
Definition at line 164 of file JobItem.h.
Referenced by copySimulationOptionsIntoJob(), readNonSessionItems(), simulationOptionsItem(), and writeNonSessionItems().
|
privateinherited |
Definition at line 334 of file SessionItem.h.
Referenced by SessionItem::acceptableDefaultItemTypes(), SessionItem::acceptsAsDefaultItem(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), SessionItem::isTag(), SessionItem::registerTag(), SessionItem::sessionItemTags(), SessionItem::tagFromItem(), and SessionItem::takeItem().
|
staticconstexpr |
Definition at line 62 of file JobItem.h.
Referenced by JobItem(), FitParameterHelper::getParameterItem(), and Data1DViewItem::jobItem().
|
staticconstexprprivate |
Definition at line 50 of file JobItem.h.
Referenced by JobItem(), beginTime(), and setBeginTime().
|
staticconstexprprivate |
Definition at line 52 of file JobItem.h.
Referenced by JobItem(), getComments(), and setComments().
|
staticconstexprprivate |
Definition at line 51 of file JobItem.h.
Referenced by JobItem(), endTime(), and setEndTime().
|
staticconstexprprivate |
Definition at line 46 of file JobItem.h.
Referenced by JobItem(), getIdentifier(), and setIdentifier().
|
staticconstexprprivate |
Definition at line 47 of file JobItem.h.
Referenced by JobItem(), instrumentName(), and setInstrumentName().
|
staticconstexprprivateinherited |
Definition at line 208 of file SessionItem.h.
Referenced by SessionItem::getCopyNumberOfChild(), SessionItem::isItemNamePropertyName(), SessionItem::itemName(), and SessionItem::setItemName().
|
staticconstexprprivate |
Definition at line 54 of file JobItem.h.
Referenced by JobItem(), presentationType(), and setPresentationType().
|
staticconstexprprivate |
Definition at line 53 of file JobItem.h.
Referenced by JobItem(), getProgress(), and setProgress().
|
staticconstexprprivate |
Definition at line 49 of file JobItem.h.
Referenced by JobItem(), getStatus(), and setStatus().
|
staticconstexprprivate |
|
staticconstexprprivate |
Definition at line 58 of file JobItem.h.
Referenced by JobItem(), addDataViewItem(), createDataViewItem(), and dataItemView().
|
staticconstexprprivate |
Definition at line 59 of file JobItem.h.
Referenced by JobItem(), createFitSuiteItem(), and fitSuiteItem().
|
staticconstexprprivate |
|
staticconstexprprivate |
Definition at line 56 of file JobItem.h.
Referenced by JobItem(), dataItem(), intensityDataItem(), and setDataType().
|
staticconstexprprivate |
Definition at line 57 of file JobItem.h.
Referenced by JobItem(), copyRealDataIntoJob(), createRealDataItem(), isValidForFitting(), and realDataItem().