Salome HOME
Merge branch 'BR_HYDRO_IMPS_2016' of ssh://gitolite3@git.salome-platform.org/modules...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_StreamDlg.cxx
index 208b483f0496f05a8bbaf644baa0483182e5ada4..a1cc548fb6ded0853b6d350d6eed1469bedeee3d 100644 (file)
@@ -119,10 +119,11 @@ HYDROGUI_StreamDlg::HYDROGUI_StreamDlg( HYDROGUI_Module* theModule, const QStrin
   }
 
   // Connect signals and slots
-  connect( myAxes, SIGNAL( currentIndexChanged( const QString & ) ), 
-           this, SIGNAL( AxisChanged( const QString& ) ) );
+  connect( myAxes, SIGNAL( currentIndexChanged( const QString & ) ), this, SIGNAL( AxisChanged( const QString& ) ) );
   connect( myAddButton, SIGNAL( clicked() ), this, SIGNAL( AddProfiles() ) );
   connect( myRemoveButton, SIGNAL( clicked() ), this, SLOT( onRemoveProfiles() ) );
+  connect( myDDZ, SIGNAL( valueChanged (double) ), this, SLOT (onDDZValueChanged(double)));
+  connect( mySpatialStep, SIGNAL( valueChanged (double) ), this, SLOT (onSSValueChanged(double)));
 }
 
 HYDROGUI_StreamDlg::~HYDROGUI_StreamDlg()
@@ -137,8 +138,8 @@ void HYDROGUI_StreamDlg::reset()
 
   myAxes->clear();
   myProfiles->setObjects( HYDROGUI_ListModel::Object2VisibleList() );
-  myAddButton->setEnabled( false );
-  myRemoveButton->setEnabled( false );
+  myAddButton->setEnabled( true );
+  myRemoveButton->setEnabled( true );
 
   blockSignals( isBlocked );
 }
@@ -171,7 +172,7 @@ void HYDROGUI_StreamDlg::setAxisName( const QString& theName )
   if ( aNewId != myAxes->currentIndex() ) {
     myAxes->setCurrentIndex( aNewId );
   }
-  myAddButton->setEnabled( myAxes->currentIndex() > -1 );
+  //myAddButton->setEnabled( myAxes->currentIndex() > -1 );
 
   blockSignals( isBlocked );
 }
@@ -216,6 +217,17 @@ void HYDROGUI_StreamDlg::onRemoveProfiles()
   emit RemoveProfiles( aSelectedProfiles );
 }
 
+void HYDROGUI_StreamDlg::onDDZValueChanged(double d)
+{
+  emit DDZValueChanged( d );
+}
+
+void HYDROGUI_StreamDlg::onSSValueChanged(double d)
+{
+  emit SSValueChanged( d );
+}
+
+
 void HYDROGUI_StreamDlg::setDDZ( const double theDDZ )
 {
   myDDZ->setValue( theDDZ );