-void HYDROGUI_ImmersibleZoneDlg::setBathymetryNames( const QStringList& theBathymetries )
-{
- bool isBlocked = blockSignals( true );
-
- myBathymetries->clear();
- myBathymetries->addItems( theBathymetries );
-
- blockSignals( isBlocked );
-}
-
-void HYDROGUI_ImmersibleZoneDlg::setBathymetryName( const QString& theName )
-{
- int aNewIdx = myBathymetries->findText( theName );
- myBathymetries->setCurrentIndex( aNewIdx );
-}
-
-QString HYDROGUI_ImmersibleZoneDlg::getBathymetryName() const
-{
- return myBathymetries->currentText();
-}
-
-void HYDROGUI_ImmersibleZoneDlg::setFillingColor( const QColor& theColor )
-{
- bool isBlocked = blockSignals( true );
-
- if( theColor.alpha() == 0 ) // transparent
- myFillingTransparent->setChecked( true );
- else
- myFillingColor->setChecked( true );
-
- myFillingColorBox->setColor( theColor );
-
- blockSignals( isBlocked );
-
- onZoneDefChanged();
-}
-
-QColor HYDROGUI_ImmersibleZoneDlg::getFillingColor() const
-{
- QColor aColor( 255, 255, 255, 0 ); // transparent
- if( myFillingColor->isChecked() )
- aColor = myFillingColorBox->color();
- return aColor;
-}
-
-void HYDROGUI_ImmersibleZoneDlg::setBorderColor( const QColor& theColor )
-{
- bool isBlocked = blockSignals( true );
-
- bool isTransparent = theColor.alpha() == 0;
- myBorderColorGroup->setChecked( !isTransparent );
- myBorderColorBox->setColor( !isTransparent ? theColor : QColor( Qt::black ) );
-
- blockSignals( isBlocked );
-
- onZoneDefChanged();
-}
-
-QColor HYDROGUI_ImmersibleZoneDlg::getBorderColor() const
-{
- QColor aColor( Qt::transparent ); // transparent
- if( myBorderColorGroup->isChecked() )
- aColor = myBorderColorBox->color();
- return aColor;
-}
-
-void HYDROGUI_ImmersibleZoneDlg::onFillingColorChanged()
-{
- if ( !myFillingColor->isChecked() )
- return;
-
- onZoneDefChanged();
-}
-
-void HYDROGUI_ImmersibleZoneDlg::onFillingColorChanged( const bool theIsChecked )
-{
- if ( !theIsChecked )
- return;
-
- onZoneDefChanged();
-}
-