13 #include <QVBoxLayout> 26 BaseWidget(parent,
"mesh_properties_widget",
"Properties"),
27 mPatientModelService(patientModelService),
28 mViewService(viewService),
29 mMeshSelector(meshSelector)
31 QVBoxLayout* layout =
new QVBoxLayout(
this);
35 layout->addWidget(mPropertiesWidget);
55 if (mMesh == mMeshSelector->getData())
61 mMesh = boost::dynamic_pointer_cast<
Mesh>(mMeshSelector->getData());
65 void MeshPropertiesWidget::clearUI()
76 QWidget* widget =
new QWidget;
77 QGridLayout* layout =
new QGridLayout(widget);
81 std::vector<PropertyPtr> properties = mMesh->getProperties().mProperties;
82 for (
unsigned i=0; i<properties.size(); ++i)
84 createDataWidget(mViewService, mPatientModelService,
this, properties[i], layout, i);
QWidget * createDataWidget(ViewServicePtr viewService, PatientModelServicePtr patientModelService, QWidget *parent, PropertyPtr data, QGridLayout *gridLayout, int row)
Create a widget capable of displaying the input data.
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
void setWidgetDeleteOld(QWidget *widget)
void changed()
emit when the underlying data value is changed: The user interface will be updated.
Namespace for all CustusX production code.