addWidget( main );
- base->addWidget( new QLabel( tr( "RIVER_OBJECT" ), main ), 0, 0, 1, 1 );
+ base->addWidget( new QLabel( tr( "STREAM_OBJECT" ), main ), 0, 0, 1, 1 );
base->addWidget( myRiver = new HYDROGUI_ObjComboBox( theModule, QString::null, KIND_STREAM, main ), 0, 1, 1, 1 );
base->addWidget( new QLabel( tr( "INTERPOLATOR" ), main ), 1, 0, 1, 1 );
connect( myProfileFinish, SIGNAL( objectSelected( const QString& ) ), this, SIGNAL( profileFinishChanged( const QString& ) ) );
connect( myProfileNumber, SIGNAL( valueChanged( int ) ), this, SIGNAL( profileNumberChanged( int ) ) );
- connect( myParams, SIGNAL( textChanged( const QString& ) ), this, SIGNAL( interpolatorParametersChanged( const QString& ) ) );
+ connect( myParams, SIGNAL( editingFinished() ), this, SIGNAL( onParametersEditingFinished() ) );
new HYDROGUI_OCCSelector( module(), viewer(), selectionMgr() );
myDescr->clear();
}
+void HYDROGUI_ProfileInterpolateDlg::onParametersEditingFinished()
+{
+ emit interpolatorParametersChanged( myParams->text() );
+}
+
void HYDROGUI_ProfileInterpolateDlg::onRiverChanged( const QString& theName )
{
myRiverProfiles.clear();
void HYDROGUI_ProfileInterpolateDlg::updateState()
{
- setApplyEnabled( !river().isEmpty() && !profileStart().isEmpty() && !profileFinish().isEmpty() );
+ setApplyEnabled( !river().isEmpty() && !profileStart().isEmpty() && !profileFinish().isEmpty() && profileStart() != profileFinish() );
}
HYDROGUI_ObjComboBox* HYDROGUI_ProfileInterpolateDlg::activeProfile() const