mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
Implementation of inheritance from base class SALOMEGUI
This commit is contained in:
parent
a352ef8b0b
commit
b9fcb13a5c
@ -529,7 +529,7 @@ bool GeometryGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QStr
|
|||||||
// function : activeStudyChanged()
|
// function : activeStudyChanged()
|
||||||
// purpose : static
|
// purpose : static
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void GeometryGUI::activeStudyChanged(QAD_Desktop* parent)
|
bool GeometryGUI::ActiveStudyChanged(QAD_Desktop* parent)
|
||||||
{
|
{
|
||||||
GeometryGUI::GetOrCreateGeometryGUI(parent);
|
GeometryGUI::GetOrCreateGeometryGUI(parent);
|
||||||
|
|
||||||
@ -562,7 +562,7 @@ void GeometryGUI::activeStudyChanged(QAD_Desktop* parent)
|
|||||||
// PAL5356: update VTK selection
|
// PAL5356: update VTK selection
|
||||||
::UpdateVtkSelection(parent);
|
::UpdateVtkSelection(parent);
|
||||||
|
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -600,3 +600,11 @@ void GeometryGUI::Deactivate()
|
|||||||
if ( GeomGUI )
|
if ( GeomGUI )
|
||||||
GeomGUI->EmitSignalCloseAllDialogs();
|
GeomGUI->EmitSignalCloseAllDialogs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GeometryGUI aGUI("");
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
Standard_EXPORT SALOMEGUI* GetComponentGUI() {
|
||||||
|
return &aGUI;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -41,7 +41,7 @@ class GeometryGUI : public SALOMEGUI
|
|||||||
Q_OBJECT /* for QT compatibility */
|
Q_OBJECT /* for QT compatibility */
|
||||||
|
|
||||||
public :
|
public :
|
||||||
GeometryGUI( const QString& name, QObject* parent = 0 );
|
GeometryGUI( const QString& name = "", QObject* parent = 0 );
|
||||||
~GeometryGUI();
|
~GeometryGUI();
|
||||||
|
|
||||||
static GEOMContext* GetOrCreateGeometryGUI(QAD_Desktop* desktop);
|
static GEOMContext* GetOrCreateGeometryGUI(QAD_Desktop* desktop);
|
||||||
@ -52,7 +52,7 @@ public :
|
|||||||
virtual bool OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
|
virtual bool OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
|
||||||
virtual bool OnKeyPress(QKeyEvent* 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 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 BuildPresentation(const Handle(SALOME_InteractiveObject)&);
|
||||||
virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
|
virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
|
||||||
virtual bool CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString& theContext,
|
virtual bool CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString& theContext,
|
||||||
|
Loading…
Reference in New Issue
Block a user