// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
using namespace std;
-BooleanGUI* BooleanGUI::myGUIObject = 0;
-
-//=======================================================================
-// function : GetBooleanGUI()
-// purpose : Get the only BooleanGUI object [ static ]
-//=======================================================================
-BooleanGUI* BooleanGUI::GetBooleanGUI( GeometryGUI* parent )
-{
- if ( myGUIObject == 0 ) {
- // init BooleanGUI only once
- myGUIObject = new BooleanGUI( parent );
- }
- return myGUIObject;
-}
-
//=======================================================================
// function : BooleanGUI()
// purpose : Constructor
{
}
-
//=======================================================================
// function : ~BooleanGUI()
// purpose : Destructor
QDialog* aDlg = new BooleanGUI_Dialog( anOperation, getGeometryGUI(), parent, "");
aDlg->show();
-
+
return true;
}
//=====================================================================================
extern "C"
{
-#ifdef WNT
- __declspec( dllexport )
-#endif
+GEOM_BOOLEANGUI_EXPORT
GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BooleanGUI::GetBooleanGUI( parent );
+ return new BooleanGUI( parent );
}
}