19 const QString layer_nslices_tooltip =
"Number of horizontal slices.\n"
20 "Used for Average Layer Material calculations \n"
21 "when corresponding simulation option is set.";
32 setToolTip(
"A layer with thickness and material");
35 .
setToolTip(
"Thickness of a layer in nanometers");
55 QVector<SessionItem*> result;
57 result.push_back(property);
Defines class MaterialItemUtils.
static const QString T_LAYOUTS
static const QString P_MATERIAL
static const QString P_THICKNESS
static const QString P_ROUGHNESS
QVector< SessionItem * > materialPropertyItems()
static const QString P_NSLICES
void updateAppearance(SessionItem *new_parent)
void setOnParentChange(std::function< void(SessionItem *)> f, const void *caller=0)
Calls back when parent has changed, reports newParent.
static RealLimits lowerLimited(double bound_value)
Creates an object bounded from the left.
SessionItem * addProperty(const QString &name, const QVariant &variant)
Add new property item and register new tag.
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.
QVector< SessionItem * > getItems(const QString &tag="") const
Returns vector of all items of given tag.
SessionItem & setEditorType(const QString &editorType)
SessionItem * addGroupProperty(const QString &groupTag, const QString &groupType)
Creates new group item and register new tag, returns GroupItem.
ModelMapper * mapper()
Returns the current model mapper of this item. Creates new one if necessary.
SessionItem * parent() const
Returns parent of this item.
void setDefaultTag(const QString &tag)
Set default tag.
SessionItem & setToolTip(const QString &tooltip)
QString modelType() const
Get model type.
void setEnabled(bool enabled)
SessionItem * getItem(const QString &tag="", int row=0) const
Returns item in given row of given tag.
SessionItem & setLimits(const RealLimits &value)
QVector< SessionItem * > materialPropertyItems(SessionItem *item)
Gather material property items from a given item.
ExternalProperty defaultMaterialProperty()