From: mkr Date: Tue, 17 Nov 2015 16:22:13 +0000 (+0300) Subject: refs #661: patch to enable transparency functionality for land cover map objects... X-Git-Tag: v1.5~26^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d7943ad749b1b6345aa54907d859dc4b3606900;p=modules%2Fhydro.git refs #661: patch to enable transparency functionality for land cover map objects, set transparency precision to 2. --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index f861ac79..1dec04cd 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -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 ) { diff --git a/src/HYDROGUI/HYDROGUI_TransparencyDlg.cxx b/src/HYDROGUI/HYDROGUI_TransparencyDlg.cxx index ef7406ec..504198c3 100644 --- a/src/HYDROGUI/HYDROGUI_TransparencyDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_TransparencyDlg.cxx @@ -26,7 +26,7 @@ const double RANGE = 1; const double STEP = 0.1; -const double PREC = 1; +const double PREC = 2; /** Constructor.