From: stv Date: Fri, 3 Jun 2005 05:50:13 +0000 (+0000) Subject: Redefined pure virtual function "engineIOR()" X-Git-Tag: T3_0_0_a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=49567a830d69cd733fa791ff9859f0350330bea8;p=modules%2Fgui.git Redefined pure virtual function "engineIOR()" --- diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx index 9d6a53d79..da5d6ef58 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -32,12 +32,6 @@ 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) diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h index 2d87a3ae7..df8c84c46 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h @@ -74,25 +74,27 @@ public: public: /* initialization */ - void initialize ( CAM_Application* ); + void initialize ( CAM_Application* ); /* getting windows list */ - void windows ( QMap& ) const; + void windows ( QMap& ) 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