Salome HOME
Copyright update: 2016
[samples/atomsolv.git] / src / ATOMSOLVGUI / ATOMSOLVGUI.cxx
index e08edf23fe9d07753a5f5afae0aea0451789811f..4b51a4e9086d9d83f1d4929f36bd13590536af6d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -56,7 +56,7 @@
 #include <vtkActorCollection.h>
 #include <vtkRenderer.h>
 
-using namespace std;
+#include <utilities.h>
 
 ATOMSOLV_ORB::ATOMSOLV_Gen_var ATOMSOLVGUI::myEngine = ATOMSOLV_ORB::ATOMSOLV_Gen::_nil();
 
@@ -114,7 +114,7 @@ void ATOMSOLVGUI::initialize( CAM_Application* app )
   createMenu( ProcessData, aMenuId, 10 );
 
   // create toolbars
-  int aToolId = createTool ( tr( "TOOL_ATOMSOLV" ) );
+  int aToolId = createTool ( tr( "TOOL_ATOMSOLV" ), QString( "AtomSolv" ) );
   createTool( RetrieveData, aToolId );
   createTool( ProcessData, aToolId );
 
@@ -203,7 +203,9 @@ void ATOMSOLVGUI::studyClosed( SUIT_Study* theStudy )
 void ATOMSOLVGUI::windows( QMap<int, int>& theMap ) const
 {
   theMap.insert( SalomeApp_Application::WT_ObjectBrowser, Qt::LeftDockWidgetArea );
+#ifndef DISABLE_PYCONSOLE
   theMap.insert( SalomeApp_Application::WT_PyConsole,     Qt::BottomDockWidgetArea );
+#endif
 }
 
 // Default view managers