Salome HOME
#18963 Minimize compiler warnings
[modules/gui.git] / src / CAM / CAM_Module.cxx
old mode 100755 (executable)
new mode 100644 (file)
index a5bcaf7..f5b7b43
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -338,8 +338,10 @@ void CAM_Module::putInfo( const QString& msg, const int msec )
 */
 int CAM_Module::showNotification( const QString& message, const QString& title, int timeout )
 {
+  int res = -1;
   if ( application() )
-    application()->showNotification( message, title, timeout );
+    res = application()->showNotification( message, title, timeout );
+  return res;
 }
 
 /*!
@@ -597,6 +599,16 @@ int CAM_Module::createTool( const int id, const QString& tBar, const int idx )
   return intId != -1 ? id : -1;
 }
 
+/*!
+  Clears given toolbar.
+  \param title - title of toolbar
+*/
+void CAM_Module::clearTool( const QString& title )
+{
+  if ( toolMgr() )
+    toolMgr()->clear( title );
+}
+
 /*!
   \brief Create menu or submenu.
 
@@ -1132,7 +1144,7 @@ void CAM_Module::updateModuleVisibilityState() {
   This method is called from CAM_Application::startOperation().
   \param actionId is a numerical unique operation id.
 */
-bool CAM_Module::activateOperation( int actionId )
+bool CAM_Module::activateOperation( int /*actionId*/ )
 {
   return false;
 }
@@ -1142,7 +1154,7 @@ bool CAM_Module::activateOperation( int actionId )
   This method is called from CAM_Application::startOperation().
   \param actionId is a string unique operation id.
 */
-bool CAM_Module::activateOperation( const QString& actionId )
+bool CAM_Module::activateOperation( const QString& /*actionId*/ )
 {
   return false;
 }
@@ -1153,7 +1165,7 @@ bool CAM_Module::activateOperation( const QString& actionId )
   \param actionId is a string unique operation id.
   \param pluginName is a name of a plugin where the operation is implemented.
 */
-bool CAM_Module::activateOperation( const QString& actionId, const QString& pluginName )
+bool CAM_Module::activateOperation( const QString& /*actionId*/, const QString& /*pluginName*/ )
 {
   return false;
 }