-// 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
myInfo = msg;
}
+/*!
+ \brief Shows the notifications with spectified text, title and automatic close timeout.
+ Notification will be automatically closed after specified timeout in msec. If
+ timeout is zero then automatic closing doesn't performed.
+ \param text - Notification text
+ \param title - Notification title
+ \param timeout - Notification close timeout in msec
+ \return notification identifier
+*/
+int CAM_Module::showNotification( const QString& message, const QString& title, int timeout )
+{
+ int res = -1;
+ if ( application() )
+ res = application()->showNotification( message, title, timeout );
+ return res;
+}
+
+/*!
+ \brief Closes the notifications with spectified text.
+ \param text - Notification text
+*/
+void CAM_Module::hideNotification( const QString& message )
+{
+ if ( application() )
+ application()->hideNotification( message );
+}
+
+/*!
+ \brief Closes the notifications with spectified identifier.
+ \param text - Notification text
+*/
+void CAM_Module::hideNotification( int id )
+{
+ if ( application() )
+ application()->hideNotification( id );
+}
+
/*!
\brief Restore message info.
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.
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;
}
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;
}
\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;
}