22 #include "boost/shared_ptr.hpp" 43 QWidget* retval = NULL;
49 retval =
new DataSelectWidget(viewService, patientModelService, parent, dsda, gridLayout, row);
72 if (str->getAllowOnlyValuesInRange())
118 std::cout <<
"Failed to create Data Widget for " << (data ? data->getDisplayName() :
"NULL") << std::endl;
125 QHBoxLayout* topLayout =
new QHBoxLayout;
126 topLayout->setContentsMargins(1,0,0,0);
127 widget->setLayout(topLayout);
133 QHBoxLayout* hackLayout =
new QHBoxLayout;
134 hackLayout->setMargin(0);
135 hackLayout->setSpacing(0);
138 hackLayout->addWidget(first);
140 hackLayout->addWidget(second);
virtual GuiRepresentation getGuiRepresentation()
boost::shared_ptr< class FilePreviewProperty > FilePreviewPropertyPtr
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
Property that connects to a file. Allows file preview and edit.
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.