32 return QStringList() <<
"Name"
41 std::vector<std::unique_ptr<ViewItem>> result;
49 result.emplace_back(std::make_unique<ViewDataItem>(
50 multilayer->getItem(MultiLayerItem::P_NREPETITIONS)));
51 result.emplace_back(std::make_unique<ViewEmptyItem>());
52 result.emplace_back(std::make_unique<ViewEmptyItem>());
53 result.emplace_back(std::make_unique<ViewEmptyItem>());
57 if (
auto layer =
dynamic_cast<LayerItem*
>(item)) {
58 result.emplace_back(std::make_unique<ViewDataItem>(layer->getItem(
LayerItem::P_NAME)));
60 result.emplace_back(std::make_unique<ViewEmptyItem>());
65 result.emplace_back(std::make_unique<ViewDataItem>(
static const QString P_MATERIAL
static const QString P_THICKNESS
static const QString P_ROUGHNESS
Base class to construct row of ViewItem's from given SessionItem.
The main object representing an editable/displayable/serializable entity.
Main class to hold hierarchy of SessionItem objects.
Propagates changes from SessionModel to its ViewModelBase.
void setChildrenStrategy(std::unique_ptr< ChildrenStrategyInterface > children_strategy)
void setRowStrategy(std::unique_ptr< RowStrategyInterface > row_strategy)
Main class to represent content of SessionModel in Qt's trees and tables.
static const QString P_NAME
Custom strategy to form table rows for nested multilayers and layers.
QStringList horizontalHeaderLabels() const
std::vector< std::unique_ptr< ViewItem > > constructRow(SessionItem *item)
Layer with name, thickness and reference to material.
Multi layer capable of holding layers and other multi-layers.
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.