]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Implementation of inheritance from base class SALOMEGUI Event_Server
authorsmh <smh@opencascade.com>
Thu, 22 Apr 2004 14:00:39 +0000 (14:00 +0000)
committersmh <smh@opencascade.com>
Thu, 22 Apr 2004 14:00:39 +0000 (14:00 +0000)
src/GEOMGUI/GeometryGUI.cxx
src/GEOMGUI/GeometryGUI.h

index 124bac75b616c2b5e4317a262c6cfed060c1a006..ed8e12e72cf294d42c8c5cef946b4a9829ea81b0 100644 (file)
@@ -529,7 +529,7 @@ bool GeometryGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QStr
 // function : activeStudyChanged()
 // purpose  : static
 //=================================================================================
-void GeometryGUI::activeStudyChanged(QAD_Desktop* parent)
+bool GeometryGUI::ActiveStudyChanged(QAD_Desktop* parent)
 {
   GeometryGUI::GetOrCreateGeometryGUI(parent); 
 
@@ -562,7 +562,7 @@ void GeometryGUI::activeStudyChanged(QAD_Desktop* parent)
   // PAL5356: update VTK selection
   ::UpdateVtkSelection(parent);
 
-  return;
+  return true;
 }
 
 
@@ -600,3 +600,11 @@ void GeometryGUI::Deactivate()
   if ( GeomGUI )
     GeomGUI->EmitSignalCloseAllDialogs();
 }
+
+static GeometryGUI aGUI("");
+extern "C"
+{
+  Standard_EXPORT SALOMEGUI* GetComponentGUI() {
+    return &aGUI;
+  }
+}
index 2d5fc45dc1a2a9fcac3dc8dc4c755e8af9dcd08b..06649f6226f723d8552b4a2b3597109eda8726d1 100644 (file)
@@ -41,7 +41,7 @@ class GeometryGUI : public SALOMEGUI
   Q_OBJECT /* for QT compatibility */
 
 public :
-  GeometryGUI( const QString& name, QObject* parent = 0 );
+  GeometryGUI( const QString& name = "", QObject* parent = 0 );
   ~GeometryGUI();
   
   static GEOMContext* GetOrCreateGeometryGUI(QAD_Desktop* desktop);
@@ -52,7 +52,7 @@ public :
   virtual bool OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
   virtual bool OnKeyPress(QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
   virtual bool SetSettings(QAD_Desktop* parent);
-  virtual void activeStudyChanged(QAD_Desktop* parent);
+  virtual bool ActiveStudyChanged(QAD_Desktop* parent);
   virtual void BuildPresentation(const Handle(SALOME_InteractiveObject)&);
   virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
   virtual bool CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString& theContext,