mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-25 06:02:03 +05:00
PAL12488: Cannot set a working plane (in second study). Suppress using static member.
This commit is contained in:
parent
ff317e1070
commit
38c7af7b96
@ -57,18 +57,13 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
BasicGUI* BasicGUI::myGUIObject = 0;
|
||||
|
||||
//=======================================================================
|
||||
// function : GetBasicGUI()
|
||||
// purpose : Get the only BasicGUI object [ static ]
|
||||
//=======================================================================
|
||||
BasicGUI* BasicGUI::GetBasicGUI( GeometryGUI* parent )
|
||||
{
|
||||
if ( myGUIObject == 0 ) {
|
||||
myGUIObject = new BasicGUI( parent );
|
||||
}
|
||||
return myGUIObject;
|
||||
return new BasicGUI( parent );
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -80,7 +75,6 @@ BasicGUI::BasicGUI( GeometryGUI* parent ) :
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
// function : ~BasicGUI()
|
||||
// purpose : Destructor
|
||||
|
@ -24,7 +24,6 @@
|
||||
// File : BasicGUI.h
|
||||
// Author : Damien COQUERET
|
||||
// Module : GEOM
|
||||
// $Header$
|
||||
|
||||
#ifndef BASICGUI_H
|
||||
#define BASICGUI_H
|
||||
@ -33,12 +32,12 @@
|
||||
#include "GEOMBase.h"
|
||||
#include <V3d_View.hxx>
|
||||
|
||||
|
||||
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
|
||||
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
|
||||
#else
|
||||
#define BASICGUI_WNT_EXPORT
|
||||
#endif
|
||||
|
||||
//=================================================================================
|
||||
// class : BasicGUI
|
||||
// purpose :
|
||||
@ -58,9 +57,6 @@ public :
|
||||
bool OnMousePress(QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow);
|
||||
|
||||
gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) aView );
|
||||
|
||||
private:
|
||||
static BasicGUI* myGUIObject; // the only BasicGUI object
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user