From 4d7943ad749b1b6345aa54907d859dc4b3606900 Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 17 Nov 2015 19:22:13 +0300 Subject: [PATCH] refs #661: patch to enable transparency functionality for land cover map objects, set transparency precision to 2. --- src/HYDROGUI/HYDROGUI_Module.cxx | 10 ++++++++-- src/HYDROGUI/HYDROGUI_TransparencyDlg.cxx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) 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. -- 2.39.2