]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
Use LightApp_Module for cppgui2 example. EMC2P_V_1_3_4 V9_8_0a1 V9_8_0a2 V9_8_0b1
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 5 Aug 2021 12:00:11 +0000 (14:00 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 5 Aug 2021 12:00:11 +0000 (14:00 +0200)
Examples/cppgui2/cppcomposGUI.cxx
Examples/cppgui2/cppcomposGUI.h

index ba6a5938096c6c70f86159243a066649c4ee5511..e76270dedb0a4bdfe8d329e844d7482c39058f5d 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 
 // Constructor
 cppcomposGUI::cppcomposGUI() :
-  SalomeApp_Module( "cppcompos" ) // default name
+  LightApp_Module( "cppcompos" ) // default name
 {
 }
 
@@ -53,7 +53,7 @@ cppcomposGUI::cppcomposGUI() :
 void cppcomposGUI::initialize( CAM_Application* app )
 {
 
-  SalomeApp_Module::initialize( app );
+  LightApp_Module::initialize( app );
 
   QWidget* aParent = application()->desktop();
   SUIT_ResourceMgr* aResourceMgr = app->resourceMgr();
@@ -90,16 +90,10 @@ void cppcomposGUI::windows( QMap<int, int>& theMap ) const
 //  theMap.insert( SalomeApp_Application::WT_PyConsole,     Qt::BottomDockWidgetArea );
 }
 
-// Module's engine IOR
-QString cppcomposGUI::engineIOR() const
-{
-  return "Fake";
-}
-
 // Module's activation
 bool cppcomposGUI::activateModule( SUIT_Study* theStudy )
 {
-  bool bOk = SalomeApp_Module::activateModule( theStudy );
+  bool bOk = LightApp_Module::activateModule( theStudy );
 
   if(bOk)
   {
@@ -120,7 +114,7 @@ bool cppcomposGUI::deactivateModule( SUIT_Study* theStudy )
   _myWidget->setVisible(false);
   _myViewManager->setShown(false);
 
-  return SalomeApp_Module::deactivateModule( theStudy );
+  return LightApp_Module::deactivateModule( theStudy );
 }
 
 void cppcomposGUI::onWindowActivated( SUIT_ViewWindow* svw)
index b4f26c01c47a9f65687978aafc89291932157607..0a998430e0d57651018f1f0a56480b5a500ca540 100644 (file)
 #ifndef _cppcomposGUI_H_
 #define _cppcomposGUI_H_
 
-#include <SalomeApp_Module.h>
+#include <LightApp_Module.h>
 #include "ui_demo.h"
 
 class SUIT_ViewManager;
 class SUIT_ViewWindow;
 
-class cppcomposGUI: public SalomeApp_Module
+class cppcomposGUI: public LightApp_Module
 {
   Q_OBJECT
 
 public:
   cppcomposGUI();
   void    initialize( CAM_Application* );
-  QString engineIOR() const;
   virtual void  windows( QMap<int, int>& theMap ) const;
 
 public slots: