+
+/*!
+ \brief Update visibility state of the module objects.
+*/
+void CAM_Module::updateModuleVisibilityState() {
+
+}
+
+/*!
+ \brief Activate GUI operation of module by its ID.
+ This method is called from CAM_Application::startOperation().
+ \param actionId is a numerical unique operation id.
+*/
+bool CAM_Module::activateOperation( int actionId )
+{
+ return false;
+}
+
+/*!
+ \brief Activate GUI operation of module by its ID.
+ This method is called from CAM_Application::startOperation().
+ \param actionId is a string unique operation id.
+*/
+bool CAM_Module::activateOperation( const QString& actionId )
+{
+ return false;
+}
+
+/*!
+ \brief Activate GUI operation of module by its ID and \a pluginName.
+ This method is called from CAM_Application::startOperation().
+ \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 )
+{
+ return false;
+}
+
+
+/*!
+ \brief Connect data model of the module to the active study
+ \param camStudy CAM study object
+*/
+void CAM_Module::connectToStudy( CAM_Study* camStudy )
+{
+ CAM_Application* app = camStudy ? dynamic_cast<CAM_Application*>( camStudy->application() ) : 0;
+ if( !app )
+ return;
+
+ CAM_DataModel* prev = 0;
+ CAM_Application::ModuleList mods = app->modules();
+ for( QList<CAM_Module*>::const_iterator it = mods.begin(); it != mods.end(); ++it )
+ {
+ CAM_DataModel* dm = (*it)->dataModel();
+ if( (*it) == this && !camStudy->containsDataModel( dm ) )
+ {
+ if ( prev )
+ camStudy->insertDataModel( (*it)->dataModel(), prev );
+ else
+ camStudy->insertDataModel( (*it)->dataModel(), 0 );
+ }
+ prev = dm;
+ }
+}
+
+/*!
+ \fn void CAM_Module::contextMenuPopup( const QString& type, QMenu* menu, QString& title );
+ \brief Create context popup menu.
+ \param type popup menu context
+ \param menu popup menu
+ \param title popup menu title, which can be set by the module if required
+*/
+
+/*!
+ \fn void CAM_Module::updateCommandsStatus();
+ \brief Update menu/toolbar actions.
+*/
+
+
+bool CAM_Module::abortAllOperations()
+{
+ return true;
+}