// function : activeStudyChanged()
// purpose : static
//=================================================================================
-void GeometryGUI::activeStudyChanged(QAD_Desktop* parent)
+bool GeometryGUI::ActiveStudyChanged(QAD_Desktop* parent)
{
GeometryGUI::GetOrCreateGeometryGUI(parent);
// PAL5356: update VTK selection
::UpdateVtkSelection(parent);
- return;
+ return true;
}
if ( GeomGUI )
GeomGUI->EmitSignalCloseAllDialogs();
}
+
+static GeometryGUI aGUI("");
+extern "C"
+{
+ Standard_EXPORT SALOMEGUI* GetComponentGUI() {
+ return &aGUI;
+ }
+}
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);
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,