Skip to content
Snippets Groups Projects
Commit 9337a737 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: add Role for Float, int and string parameter

parent 1de71add
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ void QtWidgetFloatParameter::DoUpdateGUI()
{
font.setBold(false);
}
m_QDoubleSpinBox->setFont(font);
}
......@@ -78,6 +79,11 @@ void QtWidgetFloatParameter::DoCreateWidget()
m_QHBoxLayout->addStretch();
this->setLayout(m_QHBoxLayout);
if (m_FloatParam->GetRole() == Role_Output)
{
m_QDoubleSpinBox->setEnabled( false );
}
}
void QtWidgetFloatParameter::SetValue(double value)
......
......@@ -51,6 +51,11 @@ void QtWidgetIntParameter::DoCreateWidget()
m_QHBoxLayout->addStretch();
this->setLayout(m_QHBoxLayout);
if (m_IntParam->GetRole() == Role_Output)
{
m_QSpinBox->setEnabled( false );
}
}
void QtWidgetIntParameter::DoUpdateGUI()
......
......@@ -55,7 +55,9 @@ void QtWidgetModel::ExecuteAndWriteOutputSlot()
// launch the output image writing
AppliThread * taskAppli = new AppliThread( m_Application );
connect(taskAppli, SIGNAL(ApplicationExecutionDone()), this, SLOT(NotifyUpdate()));
connect(taskAppli, SIGNAL(ApplicationExecutionDone()), this, SLOT(ActivateExecuteButton()));
taskAppli->Execute();
// Tell the Progress Reporter to begin
......
......@@ -54,6 +54,11 @@ void QtWidgetStringParameter::DoCreateWidget()
connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(UpdateGUI() ) );
this->setLayout(m_HLayout);
if (m_StringParam->GetRole() == Role_Output)
{
m_Input->setEnabled( false );
}
}
void QtWidgetStringParameter::SetValue(const QString& value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment