exec( )
{
this->_updateWidgets( );
+ this->updateView( );
int ret = this->QDialog::exec( );
if( ret == 1 )
} // rof
}
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::ParametersQtDialog::
+_addButtons( )
+{
+ // Add buttons
+ this->m_Buttons = new QDialogButtonBox(
+ QDialogButtonBox::Ok | QDialogButtonBox::Cancel
+ );
+ this->connect(
+ this->m_Buttons, SIGNAL( accepted( ) ), this, SLOT( accept( ) )
+ );
+ this->connect(
+ this->m_Buttons, SIGNAL( rejected( ) ), this, SLOT( reject( ) )
+ );
+ this->m_ToolsLayout->addWidget( this->m_Buttons );
+
+ this->updateView( );
+ this->m_WidgetsUpdated = true;
+}
+
// -------------------------------------------------------------------------
void cpPlugins::Interface::ParametersQtDialog::
_updateWidgets( )
// Set dialog title
auto filter = this->m_Parameters->GetProcessObject( );
std::stringstream title;
- title << "Parameters for \"" << filter->GetName( ) << "\"";
+ title
+ << "Parameters for an object of class \""
+ << filter->GetClassName( )
+ << "\"";
this->m_Title->setText( title.str( ).c_str( ) );
// Put values
} // rof
- // Add buttons
- this->m_Buttons = new QDialogButtonBox(
- QDialogButtonBox::Ok | QDialogButtonBox::Cancel
- );
- this->connect(
- this->m_Buttons, SIGNAL( accepted( ) ), this, SLOT( accept( ) )
- );
- this->connect(
- this->m_Buttons, SIGNAL( rejected( ) ), this, SLOT( reject( ) )
- );
- this->m_ToolsLayout->addWidget( this->m_Buttons );
-
// Update values
- this->updateView( );
- this->m_WidgetsUpdated = true;
+ this->_addButtons( );
}
// -------------------------------------------------------------------------