21#ifndef __qSlicerCLIModuleUIHelper_h
22#define __qSlicerCLIModuleUIHelper_h
25#include <QButtonGroup>
33#include <ModuleDescription.h>
35#include "qSlicerBaseQTCLIExport.h"
40class qSlicerCLIModuleUIHelperPrivate;
53 virtual void setValue(
const QString& _value) = 0;
60 static bool toBool(
const QString& _value)
62 return (_value.compare(
"true", Qt::CaseInsensitive) == 0);
60 static bool toBool(
const QString& _value) {
…}
65 static int toInt(
const QString& _value)
67 return _value.toInt();
65 static int toInt(
const QString& _value) {
…}
72 return _value.toDouble();
99 QButtonGroup* ButtonGroup;
127 const QVariant& value);
128 void setValue(
const QString& name,
const QVariant& type);
137 QScopedPointer<qSlicerCLIModuleUIHelperPrivate>
d_ptr;
QWidget * createTagWidget(const ModuleParameter &moduleParameter)
void setCommandLineModuleParameter(vtkMRMLCommandLineModuleNode *node, const QString &name, const QVariant &value)
Set parameter to the command line module node.
~qSlicerCLIModuleUIHelper() override
void updateMRMLCommandLineModuleNode(vtkMRMLCommandLineModuleNode *commandLineModuleNode)
Update commandLineModuleNode properties using value entered from the UI.
void valueChanged(const QString &tag, const QVariant &value)
void setValue(const QString &name, const QVariant &type)
QScopedPointer< qSlicerCLIModuleUIHelperPrivate > d_ptr
qSlicerCLIModuleUIHelper(qSlicerCLIModuleWidget *cliModuleWidget)
void updateUi(vtkMRMLCommandLineModuleNode *commandLineModuleNode)
Update user interface using the given commandLineModuleNode parameters.
MRML node for representing the parameters allowing to run a command line interface module (CLI)....