Skip to content
Snippets Groups Projects
Commit 967c01b6 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

[i358] GUI: add missing material form for core and shell (Closes #358)

Merging branch 'i358'  into 'main'.

See merge request !1217
parents 85f048bf 7e08f810
No related branches found
No related tags found
1 merge request!1217GUI: add missing material form for core and shell
Pipeline #84219 passed
......@@ -19,6 +19,7 @@
#include "GUI/Model/Sample/ParticleItem.h"
#include "GUI/Util/ActionFactory.h"
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include "GUI/View/SampleDesigner/MaterialInplaceForm.h"
#include "GUI/View/SampleDesigner/SampleEditorController.h"
#include "GUI/View/SampleDesigner/SelectionContainerForm.h"
#include "GUI/View/Tool/GroupBoxCollapser.h"
......@@ -162,6 +163,7 @@ void CoreAndShellForm::createCoreWidgets()
const QString formfactor = FormFactorItemCatalog::menuEntry(particle->formfactorItem());
groupTitle += " (" + formfactor + ")";
core.layouter->addRow("Material", new MaterialInplaceForm(this, particle, m_ec));
core.layouter->addGroupOfValues("Geometry",
particle->formfactorItem()->geometryProperties());
core.layouter->addVector(particle->position(), false);
......@@ -180,6 +182,7 @@ void CoreAndShellForm::createShellWidgets()
const QString formfactor = FormFactorItemCatalog::menuEntry(particle->formfactorItem());
groupTitle += " (" + formfactor + ")";
shell.layouter->addRow("Material", new MaterialInplaceForm(this, particle, m_ec));
shell.layouter->addGroupOfValues("Geometry",
particle->formfactorItem()->geometryProperties());
shell.layouter->addSelection(particle->rotation());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment