]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #661: patch to enable transparency functionality for land cover map objects...
authormkr <mkr@opencascade.com>
Tue, 17 Nov 2015 16:22:13 +0000 (19:22 +0300)
committermkr <mkr@opencascade.com>
Tue, 17 Nov 2015 16:22:13 +0000 (19:22 +0300)
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_TransparencyDlg.cxx

index f861ac792105ff447509003d9ee25772dd21dba8..1dec04cd1f0beb1697a9584a30c3b5fd166b4970 100644 (file)
@@ -682,6 +682,7 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
         theMenu->addSeparator();
         //
         theMenu->addAction( action( ExportToShapeFileID ) );
+        theMenu->addSeparator();
       }      
       else if( anIsVisualState && anIsObjectBrowser )
       {
@@ -700,8 +701,13 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
       if ( anIsObjectCanBeColored )
       {
         theMenu->addAction( action( SetColorId ) );
-        if ( anIsLandCoverMap )
-          theMenu->addAction( action( SetTransparencyId ) );
+        theMenu->addSeparator();
+      }
+
+      // Add transparency action for land cover map objects
+      if ( anIsLandCoverMap )
+      {
+        theMenu->addAction( action( SetTransparencyId ) );
         theMenu->addSeparator();
       }
     } else if ( anAllAreProfiles ) {
index ef7406ecef9f9b011abc71043a04a1ab90a82eac..504198c3020111ea66e8ba01d03a140e12317677 100644 (file)
@@ -26,7 +26,7 @@
 
 const double RANGE = 1;
 const double STEP = 0.1;
-const double PREC = 1;
+const double PREC = 2;
 
 /**
   Constructor.