1、支持边界选择一条边进行 流体类型 属性设置;

feature/ribbon-menu-20240927
simonyan 1 month ago
parent 9729a1cd8d
commit c730bb6046

File diff suppressed because one or more lines are too long

@ -201,6 +201,6 @@
<PtyItem Label="填充背景" Name="ObjPolygon.BackgrdColor" Editor="Color" Order="2" Path="nmObjPolygon.cpp(184)"/> <PtyItem Label="填充背景" Name="ObjPolygon.BackgrdColor" Editor="Color" Order="2" Path="nmObjPolygon.cpp(184)"/>
</PtyGroup> </PtyGroup>
<PtyGroup Label="边界属性" Name="ObjPolygonOutline" Order="48"> <PtyGroup Label="边界属性" Name="ObjPolygonOutline" Order="48">
<PtyItem Label="流动模型" Name="ObjPolygonOutline.Type" Editor="Edit" Order="1" Path="nmObjPolygonOutline.cpp(67)"/> <PtyItem Label="流动模型" Name="ObjPolygonOutline.Type" Editor="Enum" Order="1" Path="nmObjPolygonOutline.cpp(67)"/>
</PtyGroup> </PtyGroup>
</zhAttributes> </zhAttributes>

@ -64,7 +64,15 @@ void nmObjPolygonOutline::fillPtyPano(IxPtyPano* sheet)
{ {
nmObjPolygon::fillPtyPano(sheet); nmObjPolygon::fillPtyPano(sheet);
// TODO设置边界类型的 // TODO设置边界类型的
ZX_PROP("ObjPolygonOutline.Type", getCurOutlineFlowType, setCurOutlineFlowType); IxPtyItem* pProp = ZX_PROP("ObjPolygonOutline.Type", getCurOutlineFlowType, setCurOutlineFlowType);
if (NULL != pProp) {
QStringList listTags;
listTags << tr("No Flow") << tr("Constant Pressure") << tr("Unknow");
QList<QVariant> listIndexes;
listIndexes << 0 << 1 << 2;
pProp->getPtyPano();
pProp->setOptions(listTags, listIndexes);
}
} }
void nmObjPolygonOutline::onSerialize(ZxSerializer* ser) void nmObjPolygonOutline::onSerialize(ZxSerializer* ser)

Loading…
Cancel
Save