22 #include "boost/shared_ptr.hpp" 41 QWidget* retval = NULL;
47 retval =
new DataSelectWidget(viewService, patientModelService, parent, dsda, gridLayout, row);
70 if (str->getAllowOnlyValuesInRange())
110 std::cout <<
"Failed to create Data Widget for " << (data ? data->getDisplayName() :
"NULL") << std::endl;
117 QHBoxLayout* topLayout =
new QHBoxLayout;
118 topLayout->setContentsMargins(1,0,0,0);
119 widget->setLayout(topLayout);
125 QHBoxLayout* hackLayout =
new QHBoxLayout;
126 hackLayout->setMargin(0);
127 hackLayout->setSpacing(0);
130 hackLayout->addWidget(first);
132 hackLayout->addWidget(second);
virtual GuiRepresentation getGuiRepresentation()
boost::shared_ptr< DoublePairPropertyBase > DoublePairPropertyBasePtr
QWidget * createDataWidget(ViewServicePtr viewService, PatientModelServicePtr patientModelService, QWidget *parent, PropertyPtr data, QGridLayout *gridLayout, int row)
Create a widget capable of displaying the input data.
Abstract interface for interaction with internal string-valued data.
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
boost::shared_ptr< class StringPropertyBase > StringPropertyBasePtr
boost::shared_ptr< class Property > PropertyPtr
boost::shared_ptr< class BoolPropertyBase > BoolPropertyBasePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
boost::shared_ptr< class ColorPropertyBase > ColorPropertyBasePtr
Abstract interface for interaction with internal data structure: A pair of doubles.
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
Namespace for all CustusX production code.