}
// 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()
myAxes->clear();
myProfiles->setObjects( HYDROGUI_ListModel::Object2VisibleList() );
- myAddButton->setEnabled( false );
- myRemoveButton->setEnabled( false );
+ myAddButton->setEnabled( true );
+ myRemoveButton->setEnabled( true );
blockSignals( isBlocked );
}
if ( aNewId != myAxes->currentIndex() ) {
myAxes->setCurrentIndex( aNewId );
}
- myAddButton->setEnabled( myAxes->currentIndex() > -1 );
+ //myAddButton->setEnabled( myAxes->currentIndex() > -1 );
blockSignals( isBlocked );
}
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 );