Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#18963 Minimize compiler warnings
[modules/gui.git]
/
src
/
CAM
/
CAM_Module.cxx
diff --git
a/src/CAM/CAM_Module.cxx
b/src/CAM/CAM_Module.cxx
old mode 100755
(executable)
new mode 100644
(file)
index
a5bcaf7
..
f5b7b43
--- a/
src/CAM/CAM_Module.cxx
+++ b/
src/CAM/CAM_Module.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
20
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
//
// 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 CAM_Module::showNotification( const QString& message, const QString& title, int timeout )
{
+ int res = -1;
if ( application() )
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;
}
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.
/*!
\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.
*/
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;
}
{
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.
*/
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;
}
{
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.
*/
\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;
}
{
return false;
}