39 ->setDisplayName(
"Thickness")
40 ->setToolTip(
"Layer thickness in [nm]");
80 auto layers = items<LayerItem>(
T_LAYERS);
81 for (
auto it = layers.begin(); it != layers.end(); ++it) {
82 if (it == layers.begin()) {
89 }
else if (std::next(it) == layers.end()) {
Complex item holding mixed SessionItem types (single properties and other CompountItems).
T * addProperty(const std::string &name)
Adds property item of given type.
static ExternalProperty undefined()
void setOnItemRemoved(Callbacks::item_tagrow_t f, Callbacks::slot_t owner) override
Sets callback to be notified on child removal.
void setOnItemInserted(Callbacks::item_tagrow_t f, Callbacks::slot_t owner) override
Sets callback to be notified on child insertion.
The main object representing an editable/displayable/serializable entity.
void registerTag(const TagInfo &tagInfo, bool set_as_default=false)
Registers tag to hold items under given name.
SessionItem * parent() const
Returns parent item. Will return nullptr if item doesn't have a parent.
SessionModel * model() const
Returns the model to which given item belongs to.
ItemMapper * mapper()
Returns item mapper. Allows subscribing to various events happening to the item.
static TagInfo universalTag(std::string name, std::vector< std::string > modelTypes={})
Constructs universal tag intended for unlimited amount of various items.
Aggregate to hold (tag, row) information for SessionModel.
static const std::string P_MATERIAL
static const std::string P_THICKNESS
static const std::string P_NAME
static const std::string P_ROUGHNESS
static const std::string P_NAME
void update_layer_appearance()
Sets thickness property of top and bottom layers to disabled state.
static const std::string T_LAYERS
static const std::string P_NREPETITIONS
static const std::string P_HURST
static const std::string P_SIGMA
static const std::string P_LATERAL_CORR_LENGTH
materialitems.h Collection of materials to populate MaterialModel.
const std::string MultiLayerItemType
const std::string RoughnessItemType
const std::string LayerItemType
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.