Commit 11d9f46f authored by Manuel Grizonnet's avatar Manuel Grizonnet

Merge branch 'develop' into txx_to_hxx

parents 7fe54ded 01f22368
......@@ -135,6 +135,7 @@ signals:
/** */
void Updated();
void ValueChanged();
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
......
......@@ -619,6 +619,11 @@ ListEditWidget
assert( GetItemModel()!=nullptr );
//Notify the ParameterList that the parameter has been modified (UserValue)
// ParameterList is not available in this class, transfer the signal to WidgetParameterList
emit ValueChanged();
//Then, trigger the update the application parameters
emit Updated();
}
......
......@@ -130,13 +130,13 @@ QtWidgetModel
OutputProcessXMLParameter::Pointer outXMLParam = OutputProcessXMLParameter::New();
TiXmlElement* XMLAppElement = outXMLParam->ParseApplication(m_Application);
//Create command line from the XML document
TiXmlElement * pName, *pParam;
std::ostringstream cmdLine;
cmdLine << "";
if(XMLAppElement)
{
pName = XMLAppElement->FirstChildElement("name");
......@@ -149,10 +149,10 @@ QtWidgetModel
//Parse application parameters
pParam = XMLAppElement->FirstChildElement("parameter");
while(pParam)
{
//Get pareter key
//Get parameter key
cmdLine << "-";
cmdLine << pParam->FirstChildElement("key")->GetText();
cmdLine << " ";
......@@ -169,8 +169,8 @@ QtWidgetModel
{
cmdLine << pValue->GetText();
cmdLine << " ";
pValue = pValue->NextSiblingElement(); // iteration over multiple values
pValue = pValue->NextSiblingElement(); // iteration over multiple values
}
}
else
......@@ -188,13 +188,13 @@ QtWidgetModel
cmdLine << " ";
}
}
pParam = pParam->NextSiblingElement(); // iteration over parameters
}
//Insert a new line character at the end of the command line
cmdLine << std::endl;
//Report the command line string to the application logger
m_Application->GetLogger()->Write(itk::LoggerBase::INFO, cmdLine.str());
}
......
......@@ -83,7 +83,13 @@ QtWidgetParameterList
setLayout( gLayout );
//
// Connections.
// Connections (Update UserValue flag).
QObject::connect(
widget, &ListEditWidget::ValueChanged,
this, [=] () { emit ParameterChanged( GetParam()->GetKey() ); }
);
// Connections (Update app parameters).
QObject::connect(
widget, SIGNAL( Updated() ),
this, SIGNAL( NotifyUpdate() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment