22 #ifndef CTKCMDLINEMODULEFRONTENDQTGUI_H
23 #define CTKCMDLINEMODULEFRONTENDQTGUI_H
27 #include "ctkCommandLineModulesFrontendQtGuiExport.h"
35 struct ctkCmdLineModuleFrontendQtGuiPrivate;
153 virtual QVariant
value(
const QString& parameter,
int role = LocalResourceRole)
const;
167 virtual void setValue(
const QString& parameter,
const QVariant& value,
int role = DisplayRole);
215 QVariant
customValue(
const QString& parameter,
const QString& propertyName = QString())
const;
228 void setCustomValue(
const QString& parameter,
const QVariant& value,
const QString& propertyName = QString()) ;
232 QScopedPointer<ctkCmdLineModuleFrontendQtGuiPrivate> d;
A Qt based implementation of the module front end.
virtual ctkCmdLineModuleXslTransform * xslTransform() const
Get XSL transform used to transfrom the module XML description to a Qt .ui file.
ctkCmdLineModuleFrontendQtGui(const ctkCmdLineModuleReference &moduleRef)
virtual QUiLoader * uiLoader() const
Get the QUiLoader for instantiating widgets.
virtual void setValue(const QString ¶meter, const QVariant &value, int role=DisplayRole)
Sets the parameter value.
virtual void setParameterContainerEnabled(const bool &enabled)
There is a container QWidget within each group box, so you can set the container widget to enabled/di...
void setCustomValue(const QString ¶meter, const QVariant &value, const QString &propertyName=QString())
Set the value of the given parameter to value using the given property name.
virtual QVariant value(const QString ¶meter, int role=LocalResourceRole) const
Retrieves the current parameter value using the default QObject property for parameter values.
QVariant customValue(const QString ¶meter, const QString &propertyName=QString()) const
Get the value of the given parameter using the given property name.
virtual QList< QString > parameterNames() const
Returns a list of all valid parameter names.
virtual QObject * guiHandle() const
Create the actual Qt GUI.
virtual ~ctkCmdLineModuleFrontendQtGui()
Abstract base class for all front-end command line module implementations.
Defines a reference or handle to a module, including location, XML, description and access to the ass...