Salome HOME
Merge remote-tracking branch 'origin/BR_1323_0' into BR_2017
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Module.cxx
index ab02eb40e4a7f26a80008a0112bc17c3de7fb8dc..c21abdfc7e6d1919df266a149ed60ac297ff0233 100644 (file)
@@ -316,8 +316,8 @@ void HYDROGUI_Module::windows( QMap<int, int>& theMap ) const
   {
     const_cast<HYDROGUI_Module*>( this )->myOverview = 
       new HYDROGUI_Overview( tr( "OVERVIEW" ), 0, app->desktop() );
-    myOverview->setGeometry( 0, 0, 320, 240 );
     app->insertDockWindow( OverviewWindow, myOverview );
+    app->placeDockWindow( OverviewWindow, Qt::LeftDockWidgetArea );
   }
   inWindows = false;
 }
@@ -751,8 +751,8 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
       theMenu->addSeparator();
     }
 
-    bool anIsPoly = anIsPolyline || anIsPolyline3D;
-    if (anIsPoly && !anIsLandCoverMap)
+    bool isPoly = anIsPolyline || anIsPolyline3D;
+    if (isPoly  && !anIsLandCoverMap)
       theMenu->addAction( action( ExportToShapeFileID ) );
 
     // Add copy action
@@ -849,6 +849,11 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
       }
     }
   }
+
+  theMenu->addSeparator();
+  QAction* a = action( ShowHideArrows );
+  a->setText( arrowsVisible() ? tr( "HIDE_ARROWS" ) : tr( "SHOW_ARROWS" ) );
+  theMenu->addAction( a );
 }
 
 void HYDROGUI_Module::createPreferences()