43 BaseWidget(parent,
"FilterSetupWidget",
"FilterSetup")
47 QVBoxLayout* toptopLayout =
new QVBoxLayout(
this);
48 toptopLayout->setMargin(0);
50 mOptionsWidget =
new OptionsWidget(viewService, patientModelService,
this);
55 toptopLayout->addWidget(mFrame);
58 toptopLayout->addWidget(mOptionsWidget);
61 connect(mObscuredListener.get(), SIGNAL(obscured(
bool)),
this, SLOT(obscuredSlot(
bool)));
66 void CompactFilterSetupWidget::obscuredSlot(
bool obscured)
69 mCurrentFilter->setActive(!obscured);
78 name = mCurrentFilter->getName();
79 help = mCurrentFilter->getHelp();
81 return QString(
"<html>"
84 "</html>").arg(name).arg(help);
89 if (filter==mCurrentFilter)
93 mCurrentFilter->setActive(
false);
95 mCurrentFilter = filter;
98 mFrame->setTitle(mCurrentFilter->getName());
102 mCurrentFilter->setActive(!mObscuredListener->isObscured());
104 std::vector<SelectDataStringPropertyBasePtr> inputTypes = mCurrentFilter->getInputTypes();
105 std::vector<SelectDataStringPropertyBasePtr> outputTypes = mCurrentFilter->getOutputTypes();
106 std::vector<PropertyPtr> options = mCurrentFilter->getOptions();
108 std::vector<PropertyPtr> all;
109 std::remove_copy(inputTypes.begin(), inputTypes.end(), std::back_inserter(all), inputTypes[0]);
110 std::remove_copy(outputTypes.begin(), outputTypes.end(), std::back_inserter(all), outputTypes[0]);
111 std::copy(options.begin(), options.end(), std::back_inserter(all));
113 mOptionsWidget->
setOptions(mCurrentFilter->getUid(), all,
false);
117 mOptionsWidget->
setOptions(
"", std::vector<PropertyPtr>(),
false);
boost::shared_ptr< class Filter > FilterPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
cxLogicManager_EXPORT ViewServicePtr viewService()
Helper class for xml files used to store ssc/cx data.