Salome HOME
Redefined pure virtual function "engineIOR()"
authorstv <stv@opencascade.com>
Fri, 3 Jun 2005 05:50:13 +0000 (05:50 +0000)
committerstv <stv@opencascade.com>
Fri, 3 Jun 2005 05:50:13 +0000 (05:50 +0000)
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h

index 9d6a53d79e76991c87d99d001da0865e9cd35cff..da5d6ef58d0e21c5bc5d932662962b897953eac2 100644 (file)
 
 using namespace std;
 
-#ifdef _DEBUG_
-static int MYDEBUG = 0;
-#else
-static int MYDEBUG = 0;
-#endif
-
 // Default name of the module, should be replaced at the moment 
 // of module creation
 #define __DEFAULT_NAME__ "SALOME_PYQT_Module"
@@ -631,6 +625,11 @@ void SALOME_PYQT_Module::studyChanged( SUIT_Study* theStudy )
   }
 }
 
+QString SALOME_PYQT_Module::engineIOR() const
+{
+  return QString::null;
+}
+
 /*!
  * Processes context popup menu request
  * - calls Python module's definePopup(...) method (obsolete function, used for compatibility with old code)
index 2d87a3ae7642ef9c83af587ee70d716bba1a9528..df8c84c464a9f6a0d31fbceb397c738029aab5a8 100644 (file)
@@ -74,25 +74,27 @@ public:
 
 public:
   /* initialization */
-  void           initialize  ( CAM_Application* );
+  void            initialize  ( CAM_Application* );
 
   /* getting windows list */
-  void           windows     ( QMap<int, int>& ) const;
+  void            windows     ( QMap<int, int>& ) const;
   /* getting compatible viewer managers list */
-  void           viewManagers( QStringList& ) const;
+  void            viewManagers( QStringList& ) const;
 
   /* context popup menu request */
-  void           contextMenuPopup( const QString&, QPopupMenu*, QString& );
-  
+  void            contextMenuPopup( const QString&, QPopupMenu*, QString& );
+
+  virtual QString engineIOR() const;
+
 protected:
   /* data model creation */
-  CAM_DataModel* createDataModel();
+  CAM_DataModel*  createDataModel();
 
 public slots:
   /* activation */
-  void           activateModule  ( SUIT_Study* );
+  void            activateModule( SUIT_Study* );
   /* deactivation */
-  void           deactivateModule( SUIT_Study* );
+  void            deactivateModule( SUIT_Study* );
 
   /******************************
    * Internal methods
@@ -100,35 +102,35 @@ public slots:
 
 public slots:
   /* GUI action processing slot */
-  void           onGUIEvent();
+  void            onGUIEvent();
   /* desktop activation slot */ 
-  void           onDesktopActivated();
+  void            onDesktopActivated();
+
 private:
   /* internal initizalition */ 
-  void           init        ( CAM_Application* );
+  void            init        ( CAM_Application* );
   /* internal activation */ 
-  void           activate    ( SUIT_Study* );
+  void            activate    ( SUIT_Study* );
   /* internal deactivation */ 
-  void           deactivate  ( SUIT_Study* );
+  void            deactivate  ( SUIT_Study* );
   /* study activation */ 
-  void           studyChanged( SUIT_Study* );
+  void            studyChanged( SUIT_Study* );
   /* context popup menu processing */
-  void           contextMenu( const QString&, QPopupMenu* );
+  void            contextMenu( const QString&, QPopupMenu* );
   /* GUI event processing */
-  void           guiEvent( const int );
+  void            guiEvent( const int );
 
   /* add action to the private action map */ 
-  void           addAction   ( const PyQtGUIAction, QAction* );
+  void            addAction   ( const PyQtGUIAction, QAction* );
 
   /* initialize a Python subinterpreter */
-  void           initInterp  ( int );
+  void            initInterp  ( int );
   /* import a Python GUI module */
-  void           importModule();
+  void            importModule();
   /* set workspace to Python GUI module */
-  void           setWorkSpace();
+  void            setWorkSpace();
 
-friend class SALOME_PYQT_XmlHandler;
+  friend class SALOME_PYQT_XmlHandler;
 };
 
 #endif // SALOME_PYQT_MODULE_H