21 #ifndef __qSlicerCLIModuleUIHelper_h 22 #define __qSlicerCLIModuleUIHelper_h 25 #include <QButtonGroup> 33 #include <ModuleDescription.h> 35 #include "qSlicerBaseQTCLIExport.h" 40 class qSlicerCLIModuleUIHelperPrivate;
49 virtual QVariant value() = 0;
50 QString
label(){
return this->Label; }
51 QString
name(){
return this->Name; }
53 virtual void setValue(
const QString& _value) = 0;
60 static bool toBool(
const QString& _value)
62 return (_value.compare(
"true", Qt::CaseInsensitive) == 0);
65 static int toInt(
const QString& _value)
67 return _value.toInt();
72 return _value.toDouble();
90 QButtonGroup* buttonGroup()
const;
91 QString checkedValue();
93 void setCheckedValue(
const QString& value);
99 QButtonGroup* ButtonGroup;
115 QWidget* createTagWidget(
const ModuleParameter& moduleParameter);
127 const QVariant& value);
128 void setValue(
const QString& name,
const QVariant& type);
131 void valueChanged(
const QString& tag,
const QVariant& value);
134 void onValueChanged();
137 QScopedPointer<qSlicerCLIModuleUIHelperPrivate>
d_ptr;
QScopedPointer< qSlicerCLIModuleUIHelperPrivate > d_ptr
MRML node for representing the parameters allowing to run a command line interface module (CLI)...