34 #include <QVBoxLayout> 47 BaseWidget(parent,
"mesh_properties_widget",
"Properties"),
48 mPatientModelService(patientModelService),
49 mViewService(viewService),
50 mMeshSelector(meshSelector)
52 QVBoxLayout* layout =
new QVBoxLayout(
this);
56 layout->addWidget(mPropertiesWidget);
76 if (mMesh == mMeshSelector->getData())
82 mMesh = boost::dynamic_pointer_cast<
Mesh>(mMeshSelector->getData());
86 void MeshPropertiesWidget::clearUI()
97 QWidget* widget =
new QWidget;
98 QGridLayout* layout =
new QGridLayout(widget);
102 std::vector<PropertyPtr> properties = mMesh->getProperties().mProperties;
103 for (
unsigned i=0; i<properties.size(); ++i)
105 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.