From 732211808796539fcf1de34e06038e7fb015ece9 Mon Sep 17 00:00:00 2001
From: smh
Date: Thu, 2 Jun 2005 07:17:09 +0000
Subject: [PATCH] SMH: Merged GEOM (NEWGUI, HEAD, POLYWORK)
---
INSTALL | 4 +-
adm_local/unix/make_commence.in | 7 +-
bin/VERSION | 2 +-
configure.in.base | 18 +-
.../GEOM/changing_displaying_parameters.htm | 18 +-
doc/salome/gui/GEOM/ehlpdhtm.js | 8 +-
.../salome2_sp3_geomtoolsgui_functions.htm | 27 +-
.../salome2_sp3_measuregui_functions.htm | 118 +-
.../salome2_sp3_operationgui_functions.htm | 146 ++-
.../files/salome2_sp3_repairgui_functions.htm | 84 +-
...alome2_sp3_transformationgui_functions.htm | 113 +-
doc/salome/gui/GEOM/image13.jpg | Bin 9820 -> 22439 bytes
doc/salome/gui/GEOM/image15.jpg | Bin 7742 -> 12330 bytes
doc/salome/gui/GEOM/image16.jpg | Bin 8530 -> 6259 bytes
doc/salome/gui/GEOM/newentity_blocks.htm | 59 +-
doc/salome/gui/GEOM/sketcher.htm | 18 +-
doc/salome/gui/GEOM/webhelp.cab | Bin 89619 -> 89619 bytes
doc/salome/gui/GEOM/webhelp.jar | Bin 134517 -> 134517 bytes
doc/salome/gui/GEOM/whdata/whfts.htm | 4 +-
doc/salome/gui/GEOM/whdata/whfwdata0.htm | 536 +++++++-
doc/salome/gui/GEOM/whgdata/whlstf0.htm | 6 +-
doc/salome/gui/GEOM/whgdata/whlstf1.htm | 8 +-
doc/salome/gui/GEOM/whgdata/whlstf2.htm | 10 +-
doc/salome/gui/GEOM/whgdata/whlstf3.htm | 12 +-
doc/salome/gui/GEOM/whgdata/whlstf4.htm | 8 +-
doc/salome/gui/GEOM/whgdata/whlstf5.htm | 12 +-
doc/salome/gui/GEOM/whgdata/whlstfl15.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whlstfl17.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whlstfl18.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whlstfl5.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whlstfl6.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whlsti0.htm | 2 -
doc/salome/gui/GEOM/whgdata/whnvl31.htm | 29 -
doc/salome/gui/GEOM/whgdata/whnvt30.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whnvt31.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whnvt32.htm | 2 +-
doc/salome/gui/GEOM/whgdata/whnvt33.htm | 2 +-
doc/salome/gui/GEOM/whproj.htm | 2 +-
doc/salome/gui/GEOM/whproj.xml | 2 +-
doc/salome/gui/GEOM/whres.xml | 1 -
doc/salome/gui/GEOM/whskin_info.htm | 4 +-
doc/salome/gui/GEOM/whskin_papplet.htm | 1 -
doc/salome/gui/GEOM/whskin_pdhtml.htm | 1 -
doc/salome/gui/GEOM/whskin_tbars.htm | 1 -
doc/salome/gui/GEOM/whstart.js | 2 +-
doc/salome/gui/GEOM/whxdata/whfts.xml | 4 +-
doc/salome/gui/GEOM/whxdata/whfwdata0.xml | 536 +++++++-
doc/salome/gui/GEOM/working_with_groups.htm | 21 +-
idl/GEOM_Gen.idl | 12 +
resources/GEOMCatalog.xml | 4 +-
src/BasicGUI/BasicGUI.cxx | 101 +-
src/BasicGUI/BasicGUI.h | 9 +-
src/BasicGUI/BasicGUI_ArcDlg.cxx | 49 +-
src/BasicGUI/BasicGUI_ArcDlg.h | 4 +-
src/BasicGUI/BasicGUI_CircleDlg.cxx | 118 +-
src/BasicGUI/BasicGUI_CircleDlg.h | 8 +-
src/BasicGUI/BasicGUI_CurveDlg.cxx | 50 +-
src/BasicGUI/BasicGUI_CurveDlg.h | 6 +-
src/BasicGUI/BasicGUI_EllipseDlg.cxx | 48 +-
src/BasicGUI/BasicGUI_EllipseDlg.h | 8 +-
src/BasicGUI/BasicGUI_LineDlg.cxx | 49 +-
src/BasicGUI/BasicGUI_LineDlg.h | 4 +-
src/BasicGUI/BasicGUI_MarkerDlg.cxx | 130 +-
src/BasicGUI/BasicGUI_MarkerDlg.h | 6 +-
src/BasicGUI/BasicGUI_PlaneDlg.cxx | 60 +-
src/BasicGUI/BasicGUI_PlaneDlg.h | 4 +-
src/BasicGUI/BasicGUI_PointDlg.cxx | 201 +--
src/BasicGUI/BasicGUI_PointDlg.h | 4 +-
src/BasicGUI/BasicGUI_VectorDlg.cxx | 55 +-
src/BasicGUI/BasicGUI_VectorDlg.h | 6 +-
src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx | 68 +-
src/BasicGUI/BasicGUI_WorkingPlaneDlg.h | 4 +-
src/BasicGUI/Makefile.in | 8 +-
src/BlocksGUI/BlocksGUI.cxx | 48 +-
src/BlocksGUI/BlocksGUI.h | 6 +-
src/BlocksGUI/BlocksGUI_BlockDlg.cxx | 28 +-
src/BlocksGUI/BlocksGUI_BlockDlg.h | 1 -
src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx | 44 +-
src/BlocksGUI/BlocksGUI_ExplodeDlg.h | 1 -
src/BlocksGUI/BlocksGUI_PropagateDlg.cxx | 32 +-
src/BlocksGUI/BlocksGUI_PropagateDlg.h | 2 +-
src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx | 30 +-
src/BlocksGUI/BlocksGUI_QuadFaceDlg.h | 1 -
src/BlocksGUI/BlocksGUI_TrsfDlg.cxx | 35 +-
src/BlocksGUI/BlocksGUI_TrsfDlg.h | 1 -
src/BlocksGUI/Makefile.in | 6 +-
src/BooleanGUI/BooleanGUI.cxx | 22 +-
src/BooleanGUI/BooleanGUI.h | 6 +-
src/BooleanGUI/BooleanGUI_Dialog.cxx | 30 +-
src/BooleanGUI/BooleanGUI_Dialog.h | 2 +-
src/BooleanGUI/Makefile.in | 6 +-
src/BuildGUI/BuildGUI.cxx | 41 +-
src/BuildGUI/BuildGUI.h | 6 +-
src/BuildGUI/BuildGUI_CompoundDlg.cxx | 25 +-
src/BuildGUI/BuildGUI_CompoundDlg.h | 2 +-
src/BuildGUI/BuildGUI_EdgeDlg.cxx | 25 +-
src/BuildGUI/BuildGUI_EdgeDlg.h | 2 +-
src/BuildGUI/BuildGUI_FaceDlg.cxx | 24 +-
src/BuildGUI/BuildGUI_FaceDlg.h | 2 +-
src/BuildGUI/BuildGUI_ShellDlg.cxx | 28 +-
src/BuildGUI/BuildGUI_ShellDlg.h | 2 +-
src/BuildGUI/BuildGUI_SolidDlg.cxx | 25 +-
src/BuildGUI/BuildGUI_SolidDlg.h | 2 +-
src/BuildGUI/BuildGUI_WireDlg.cxx | 29 +-
src/BuildGUI/BuildGUI_WireDlg.h | 2 +-
src/BuildGUI/Makefile.in | 6 +-
src/DisplayGUI/DisplayGUI.cxx | 254 ++--
src/DisplayGUI/DisplayGUI.h | 25 +-
src/DisplayGUI/Makefile.in | 8 +-
src/DlgRef/DlgRef_SpinBox.cxx | 2 +-
src/DlgRef/DlgRef_SpinBox.h | 4 +-
src/DlgRef/Makefile.in | 4 +-
src/EntityGUI/EntityGUI.cxx | 101 +-
src/EntityGUI/EntityGUI.h | 10 +-
src/EntityGUI/EntityGUI_SketcherDlg.cxx | 126 +-
src/EntityGUI/EntityGUI_SketcherDlg.h | 9 +-
src/EntityGUI/EntityGUI_SubShapeDlg.cxx | 52 +-
src/EntityGUI/EntityGUI_SubShapeDlg.h | 1 -
src/EntityGUI/Makefile.in | 8 +-
src/GEOM/GEOM_Engine.cxx | 350 ++++-
src/GEOM/GEOM_Engine.hxx | 25 +-
src/GEOM/GEOM_Function.cxx | 5 +-
src/GEOM/GEOM_Function.hxx | 2 +-
src/GEOM/GEOM_Object.cxx | 12 +-
src/GEOM/GEOM_Object.hxx | 2 +-
src/GEOM/Makefile.in | 4 +-
src/GEOMBase/GEOMBase.cxx | 348 ++---
src/GEOMBase/GEOMBase.h | 8 +-
src/GEOMBase/GEOMBase_Helper.cxx | 307 +++--
src/GEOMBase/GEOMBase_Helper.h | 29 +-
src/GEOMBase/GEOMBase_Skeleton.cxx | 64 +-
src/GEOMBase/GEOMBase_Skeleton.h | 6 +-
src/GEOMBase/GEOMBase_aParameterDlg.cxx | 7 +-
src/GEOMBase/GEOMBase_aParameterDlg.h | 4 +-
src/GEOMBase/GEOM_Operation.cxx | 34 +-
src/GEOMBase/GEOM_Operation.h | 18 +-
src/GEOMBase/Makefile.in | 6 +-
src/GEOMFiltersSelection/GEOM_EdgeFilter.cxx | 57 +-
src/GEOMFiltersSelection/GEOM_FaceFilter.cxx | 57 +-
.../GEOM_LogicalFilter.cxx | 157 +--
.../GEOM_PreviewFilter.cxx | 55 +-
src/GEOMFiltersSelection/GEOM_TypeFilter.cxx | 140 +-
src/GEOMFiltersSelection/Makefile.in | 37 +-
src/GEOMGUI/GEOMGUI.cxx | 34 +-
src/GEOMGUI/GEOMGUI.h | 27 +-
src/GEOMGUI/GEOM_Displayer.cxx | 521 ++++----
src/GEOMGUI/GEOM_Displayer.h | 31 +-
src/GEOMGUI/GEOM_msg_en.po | 904 ++++++++++++-
src/GEOMGUI/GeometryGUI.cxx | 1150 ++++++++++++-----
src/GEOMGUI/GeometryGUI.h | 112 +-
src/GEOMGUI/GeometryGUI_Swig.cxx | 337 -----
src/GEOMGUI/Makefile.in | 30 +-
src/GEOMImpl/GEOMImpl_Block6Explorer.cxx | 6 +-
src/GEOMImpl/GEOMImpl_BlockDriver.cxx | 11 +-
src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx | 198 +--
src/GEOMImpl/GEOMImpl_IBasicOperations.cxx | 130 +-
src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx | 408 ++----
src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx | 69 +-
src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx | 140 +-
src/GEOMImpl/GEOMImpl_IGroupOperations.cxx | 84 +-
src/GEOMImpl/GEOMImpl_IHealingOperations.cxx | 124 +-
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx | 28 +-
src/GEOMImpl/GEOMImpl_ILocalOperations.cxx | 120 +-
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx | 12 +-
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 329 ++---
.../GEOMImpl_ITransformOperations.cxx | 257 +---
src/GEOMToolsGUI/GEOMToolsGUI.cxx | 183 +--
src/GEOMToolsGUI/GEOMToolsGUI.h | 12 +-
src/GEOMToolsGUI/GEOMToolsGUI_1.cxx | 342 +++--
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.cxx | 50 +-
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.h | 29 +-
.../GEOMToolsGUI_TransparencyDlg.cxx | 208 +--
.../GEOMToolsGUI_TransparencyDlg.h | 54 +-
src/GEOMToolsGUI/Makefile.in | 22 +-
src/GEOM_I/GEOM_Gen_i.cc | 15 +-
src/GEOM_I/GEOM_Gen_i.hh | 12 +-
src/GEOM_I/GEOM_I3DPrimOperations_i.cc | 4 +-
src/GEOM_I/GEOM_IOperations_i.cc | 2 +-
src/GEOM_I/GEOM_Object_i.cc | 6 +-
src/GEOM_I/Makefile.in | 8 +-
src/GEOM_I_Superv/GEOM_Superv_i.cc | 1 +
src/GEOM_I_Superv/GEOM_Superv_i.hh | 4 -
src/GEOM_SWIG/Makefile.in | 2 +-
src/GEOM_SWIG/batchmode_geompy.py | 68 +-
src/GEOM_SWIG/geompy.py | 77 +-
src/GenerationGUI/GenerationGUI.cxx | 33 +-
src/GenerationGUI/GenerationGUI.h | 6 +-
.../GenerationGUI_FillingDlg.cxx | 36 +-
src/GenerationGUI/GenerationGUI_FillingDlg.h | 4 +-
src/GenerationGUI/GenerationGUI_PipeDlg.cxx | 26 +-
src/GenerationGUI/GenerationGUI_PipeDlg.h | 2 +-
src/GenerationGUI/GenerationGUI_PrismDlg.cxx | 32 +-
src/GenerationGUI/GenerationGUI_PrismDlg.h | 4 +-
src/GenerationGUI/GenerationGUI_RevolDlg.cxx | 27 +-
src/GenerationGUI/GenerationGUI_RevolDlg.h | 4 +-
src/GenerationGUI/Makefile.in | 6 +-
src/GroupGUI/GroupGUI.cxx | 70 +-
src/GroupGUI/GroupGUI.h | 6 +-
src/GroupGUI/GroupGUI_GroupDlg.cxx | 81 +-
src/GroupGUI/GroupGUI_GroupDlg.h | 4 +-
src/GroupGUI/Makefile.in | 6 +-
src/Makefile.in | 2 +-
src/MeasureGUI/Makefile.in | 6 +-
src/MeasureGUI/MeasureGUI.cxx | 49 +-
src/MeasureGUI/MeasureGUI.h | 6 +-
src/MeasureGUI/MeasureGUI_BndBoxDlg.cxx | 21 +-
src/MeasureGUI/MeasureGUI_BndBoxDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_CenterMassDlg.cxx | 35 +-
src/MeasureGUI/MeasureGUI_CenterMassDlg.h | 5 +-
.../MeasureGUI_CheckCompoundOfBlocksDlg.cxx | 24 +-
.../MeasureGUI_CheckCompoundOfBlocksDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_CheckShapeDlg.cxx | 21 +-
src/MeasureGUI/MeasureGUI_CheckShapeDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_DistanceDlg.cxx | 42 +-
src/MeasureGUI/MeasureGUI_DistanceDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_InertiaDlg.cxx | 21 +-
src/MeasureGUI/MeasureGUI_InertiaDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_MaxToleranceDlg.cxx | 21 +-
src/MeasureGUI/MeasureGUI_MaxToleranceDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_PointDlg.cxx | 26 +-
src/MeasureGUI/MeasureGUI_PointDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_PropertiesDlg.cxx | 24 +-
src/MeasureGUI/MeasureGUI_PropertiesDlg.h | 6 +-
src/MeasureGUI/MeasureGUI_Skeleton.cxx | 90 +-
src/MeasureGUI/MeasureGUI_Skeleton.h | 12 +-
src/MeasureGUI/MeasureGUI_WhatisDlg.cxx | 21 +-
src/MeasureGUI/MeasureGUI_WhatisDlg.h | 6 +-
src/OBJECT/Makefile.in | 6 +-
src/OperationGUI/Makefile.in | 6 +-
src/OperationGUI/OperationGUI.cxx | 34 +-
src/OperationGUI/OperationGUI.h | 6 +-
.../OperationGUI_ArchimedeDlg.cxx | 50 +-
src/OperationGUI/OperationGUI_ArchimedeDlg.h | 8 +-
src/OperationGUI/OperationGUI_ChamferDlg.cxx | 65 +-
src/OperationGUI/OperationGUI_ChamferDlg.h | 5 +-
src/OperationGUI/OperationGUI_ClippingDlg.cxx | 73 +-
src/OperationGUI/OperationGUI_ClippingDlg.h | 2 +-
src/OperationGUI/OperationGUI_FilletDlg.cxx | 50 +-
src/OperationGUI/OperationGUI_FilletDlg.h | 5 +-
src/OperationGUI/OperationGUI_MaterialDlg.cxx | 25 +-
src/OperationGUI/OperationGUI_MaterialDlg.h | 3 +-
.../OperationGUI_PartitionDlg.cxx | 42 +-
src/OperationGUI/OperationGUI_PartitionDlg.h | 2 +-
src/PrimitiveGUI/Makefile.in | 6 +-
src/PrimitiveGUI/PrimitiveGUI.cxx | 34 +-
src/PrimitiveGUI/PrimitiveGUI.h | 6 +-
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.cxx | 46 +-
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.h | 4 +-
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.cxx | 53 +-
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.h | 4 +-
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.cxx | 45 +-
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.h | 4 +-
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.cxx | 43 +-
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.h | 4 +-
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.cxx | 45 +-
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.h | 4 +-
src/RepairGUI/Makefile.in | 6 +-
src/RepairGUI/RepairGUI.cxx | 45 +-
src/RepairGUI/RepairGUI.h | 6 +-
src/RepairGUI/RepairGUI_CloseContourDlg.cxx | 37 +-
src/RepairGUI/RepairGUI_CloseContourDlg.h | 2 +-
src/RepairGUI/RepairGUI_DivideEdgeDlg.cxx | 84 +-
src/RepairGUI/RepairGUI_DivideEdgeDlg.h | 8 +-
src/RepairGUI/RepairGUI_FreeBoundDlg.cxx | 67 +-
src/RepairGUI/RepairGUI_FreeBoundDlg.h | 10 +-
src/RepairGUI/RepairGUI_FreeFacesDlg.cxx | 64 +-
src/RepairGUI/RepairGUI_FreeFacesDlg.h | 12 +-
src/RepairGUI/RepairGUI_GlueDlg.cxx | 109 +-
src/RepairGUI/RepairGUI_GlueDlg.h | 6 +-
src/RepairGUI/RepairGUI_RemoveHolesDlg.cxx | 40 +-
src/RepairGUI/RepairGUI_RemoveHolesDlg.h | 2 +-
src/RepairGUI/RepairGUI_RemoveIntWiresDlg.cxx | 77 +-
src/RepairGUI/RepairGUI_RemoveIntWiresDlg.h | 2 +-
src/RepairGUI/RepairGUI_SewingDlg.cxx | 40 +-
src/RepairGUI/RepairGUI_SewingDlg.h | 8 +-
src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx | 79 +-
src/RepairGUI/RepairGUI_ShapeProcessDlg.h | 26 +-
src/RepairGUI/RepairGUI_SuppressFacesDlg.cxx | 41 +-
src/RepairGUI/RepairGUI_SuppressFacesDlg.h | 2 +-
src/SKETCHER/Makefile.in | 2 +-
src/TransformationGUI/Makefile.in | 6 +-
src/TransformationGUI/TransformationGUI.cxx | 38 +-
src/TransformationGUI/TransformationGUI.h | 6 +-
.../TransformationGUI_MirrorDlg.cxx | 37 +-
.../TransformationGUI_MirrorDlg.h | 2 +-
.../TransformationGUI_MultiRotationDlg.cxx | 53 +-
.../TransformationGUI_MultiRotationDlg.h | 4 +-
.../TransformationGUI_MultiTranslationDlg.cxx | 57 +-
.../TransformationGUI_MultiTranslationDlg.h | 4 +-
.../TransformationGUI_OffsetDlg.cxx | 36 +-
.../TransformationGUI_OffsetDlg.h | 2 +-
.../TransformationGUI_PositionDlg.cxx | 43 +-
.../TransformationGUI_PositionDlg.h | 2 +-
.../TransformationGUI_RotationDlg.cxx | 35 +-
.../TransformationGUI_RotationDlg.h | 4 +-
.../TransformationGUI_ScaleDlg.cxx | 38 +-
.../TransformationGUI_ScaleDlg.h | 4 +-
.../TransformationGUI_TranslationDlg.cxx | 57 +-
.../TransformationGUI_TranslationDlg.h | 4 +-
299 files changed, 8527 insertions(+), 6066 deletions(-)
diff --git a/INSTALL b/INSTALL
index 957ed266f..d00a2239a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,3 +1,3 @@
-This is the version 2.2.0 of GEOM
+This is the version 3.0.0 of GEOM
Compatible with :
- - KERNEL 2.2.0
+ - KERNEL 3.0.0 only!
diff --git a/adm_local/unix/make_commence.in b/adm_local/unix/make_commence.in
index 55a110fa8..ce50b9e5c 100644
--- a/adm_local/unix/make_commence.in
+++ b/adm_local/unix/make_commence.in
@@ -10,7 +10,7 @@ HAVE_SSTREAM=@HAVE_SSTREAM@
LIBS=@LIBS@
-LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
+LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome
# add libstdc++ to link c++ library with libtool !
LDFLAGS+= -lstdc++
@@ -34,6 +34,10 @@ CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
+# BOOST Library
+
+BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
+
# JAVA
JAVA_INCLUDES = @JAVA_INCLUDES@
@@ -60,6 +64,7 @@ QT_MT_LIBS = @QT_MT_LIBS@
MOC = @MOC@
UIC = @UIC@
+MSG2QM = @MSG2QM@
#QWT
diff --git a/bin/VERSION b/bin/VERSION
index f2ab43933..9eeab0f4d 100755
--- a/bin/VERSION
+++ b/bin/VERSION
@@ -1 +1 @@
-THIS IS SALOME - GEOM VERSION: 2.2.0
+THIS IS SALOME - GEOM VERSION: 2.2.2
diff --git a/configure.in.base b/configure.in.base
index 7e3acdc86..8bbb9e639 100644
--- a/configure.in.base
+++ b/configure.in.base
@@ -210,6 +210,14 @@ echo
CHECK_QT
+echo
+echo ---------------------------------------------
+echo testing MSG2QM
+echo ---------------------------------------------
+echo
+
+CHECK_MSG2QM
+
echo
echo ---------------------------------------------
echo testing VTK
@@ -234,6 +242,14 @@ echo
CHECK_MED2
+echo
+echo ---------------------------------------------
+echo BOOST Library
+echo ---------------------------------------------
+echo
+
+CHECK_BOOST
+
echo
echo ---------------------------------------------
echo Testing OpenCascade
@@ -265,7 +281,7 @@ echo ---------------------------------------------
echo
echo Configure
-variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
+variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok boost_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
for var in $variables
do
diff --git a/doc/salome/gui/GEOM/changing_displaying_parameters.htm b/doc/salome/gui/GEOM/changing_displaying_parameters.htm
index fe76d2a52..05c0c3cb5 100755
--- a/doc/salome/gui/GEOM/changing_displaying_parameters.htm
+++ b/doc/salome/gui/GEOM/changing_displaying_parameters.htm
@@ -15,20 +15,20 @@ if (navigator.appName !="Netscape")
+
diff --git a/doc/salome/gui/GEOM/whgdata/whlstf0.htm b/doc/salome/gui/GEOM/whgdata/whlstf0.htm
index 812f35024..936cdd86b 100755
--- a/doc/salome/gui/GEOM/whgdata/whlstf0.htm
+++ b/doc/salome/gui/GEOM/whgdata/whlstf0.htm
@@ -36,11 +36,11 @@ A:hover {color:Navy; } A:hover {font-family:Tahoma; } A:hover {font-size:8pt; }
1d 1 2
1st 1 2 3 4 5
2d 1 2 3 4 5 6
2nd 1 2 3 4 5
2st
3d 1 2 3 4 5 6 7 8 9
3rd 1 2
3st
-able
absolute
accordance
according 1 2
achieve
add
added 1 2
addobject
adjustment
advanced 1 2
aimed
algorithm
allowing 1 2
allows 1 2 3 4 5
along 1 2 3
angle 1 2 3 4
another
any
applicable
applied
apply 1 2
applying
approximation
arc 1 2
archimede
argument
arguments 1 2 3 4 5 6 7 8 9 10 11 12 13
around
associated
attributes
automatically 1 2
available 1 2
axes
axis 1 2 3 4 5
+able
absolute
accessible
accordance
according 1 2
achieve
add
added 1 2
addobject
adjustment
advanced 1 2
aimed
algorithm
allowing 1 2
allows 1 2 3 4 5
along 1 2 3
angle 1 2 3 4
another
any
applicable
applied
apply 1 2
applying
approximation
arc 1 2
archimede
argument
arguments 1 2 3 4 5 6 7 8 9 10 11 12 13
around
associated
attributes
automatically 1 2
available 1 2 3 4 5
axes
axis 1 2 3 4 5
-b
base 1 2
based
baseshape
basic 1 2 3 4 5 6
basicproperties
basing
basis
before 1 2
below
bezier 1 2
block 1 2
blocks 1 2 3
boolean 1 2 3 4
both
boundaries
boundary
bounding
boundingbox
box 1 2 3 4 5 6 7 8 9 10 11 12 13 14
brep 1 2
browser 1 2 3
bspline
bsplinerestriction
bsplines
build 1 2
building 1 2 3 4
builds 1 2
button 1 2
bypassing
+b
background
base 1 2
based
baseshape
basic 1 2 3 4 5 6
basicproperties
basing
basis
before 1 2
below
bezier 1 2
block 1 2 3
blocks 1 2 3 4
boolean 1 2 3 4
both
boundaries
boundary
bounding
boundingbox
box 1 2 3 4 5 6 7 8 9 10 11 12 13 14
breaks
brep 1 2
browser 1 2 3
bspline
bsplinerestriction
bsplines
build 1 2 3
building 1 2 3 4
builds 1 2
button 1 2
bypassing
-cad
camera
case 1 2 3
center 1 2 3 4 5
centerofscale
central
chamfer
change
changes
changing
check 1 2
checkbox 1 2
checked 1 2
checking 1 2
checkshape
choose 1 2 3
circle
click 1 2 3
close
closecontour
closed 1 2
closedwires
closes
closure
coincident
color
command 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
common 1 2
complex 1 2 3 4
components 1 2 3
composed
composing
compound 1 2 3 4 5 6
compsolid
compute
computed
concerning
cone
confirm
conical
connected 1 2
considered
constraints
construct
constructed 1 2
constructing
construction 1 2
constructor 1 2 3 4 5
containing
contains 1 2
contents
continuities
continuity
continuity2d
continuity3d
contour
conversion
coordinate 1 2 3
coordinates 1 2 3 4 5
copy
corners
correction
correspond
corresponding 1 2
correspondingly 1 2 3 4 5
coupled
>>
+cad
camera
case 1 2 3
center 1 2 3 4 5
centerofscale
central
chamfer
change
changes
changing
check 1 2
checkbox 1 2
checkcompoundofblocks
checked 1 2
checking 1 2
checks
checkshape
choose 1 2 3
circle
click 1 2 3
close
closecontour
closed 1 2
closedwires
closes
closure
coincident
color
command 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
common 1 2
complex 1 2 3 4
components 1 2 3
composed
composing
compound 1 2 3 4 5 6 7
compsolid
compute
computed
concerning
conditions
cone
confirm
conical
connected 1 2 3
connection
considered 1 2
console
constraints
construct
constructed 1 2
constructing
construction 1 2
constructor 1 2 3 4 5
contain
contained
containing
contains 1 2
contents
continuities
continuity
continuity2d
continuity3d
contour
conversion
coordinate 1 2 3
coordinates 1 2 3 4 5
copy
corners
correction
correspond
corresponding 1 2
correspondingly 1 2 3 4 5
coupled
>>
<<
-create 1 2 3 4 5 6 7 8
created 1 2 3 4 5 6 7
creategroup
creates 1 2 3 4 5 6 7 8 9
creating
creation 1 2 3 4
current 1 2
curve 1 2 3
curve2dmode
curve3dmode
curvecontinuity
curves 1 2 3
curving
cut
cuts
cutting 1 2
cylinder
cylindrical
+create 1 2 3 4 5 6 7 8
created 1 2 3 4 5 6 7
creategroup
creates 1 2 3 4 5 6 7 8 9
creating
creation 1 2 3 4 5
current 1 2
curve 1 2 3
curve2dmode
curve3dmode
curvecontinuity
curves 1 2 3
curving
cut
cuts
cutting 1 2
cylinder
cylindrical
-d1
d2
data
default
define 1 2 3
defined
defines 1 2
defining 1 2 3
definite 1 2
definition 1 2
deflection
degree 1 2
degrees
deleted
density
depending
describes
description 1 2 3 4 5 6 7 8 9 10 11 12 13 14
desired
destination
destined
detect
detection
detects
diagonal
dialog 1 2 3 4 5 6 7 8 9 10 11 12 13 14
differ
different 1 2 3 4
dimension 1 2
dimensions 1 2 3
dir
dir1
dir2
direction 1 2 3 4 5 6
directions 1 2
dirface1v
dirfaceid1
dirfaceid1u
dirfaceid1v
dirfaceid2
dirfaceid2u
dirfaceid2v
display 1 2 3 4
displayall
displayed 1 2 3 4
displaying 1 2
displayonly
displays 1 2
distance 1 2 3
divided
divideedge
dividing
done 1 2
double
doubles
dropsmalledges
dx 1 2
dy 1 2
dz
+d1
d2
data
default 1 2
define 1 2 3
defined
defines 1 2
defining 1 2 3
definite 1 2
definition 1 2
deflection
degenerated
degree 1 2
degrees
deleted
density
depending
describes
description 1 2 3 4 5 6 7 8 9 10 11 12 13 14
desired
destination
destined
detect
detection
detects
diagonal
dialog 1 2 3 4 5 6 7 8 9 10 11 12 13 14
differ
different 1 2 3 4
dimension 1 2
dimensions 1 2 3
dir
dir1
dir2
direction 1 2 3 4 5 6
directions 1 2
dirface1v
dirfaceid1
dirfaceid1u
dirfaceid1v
dirfaceid2
dirfaceid2u
dirfaceid2v
display 1 2 3 4
displayall
displayed 1 2 3 4
displaying 1 2
displayonly
displays 1 2
distance 1 2 3
divided
divideedge
dividing
done 1 2
double
doubles
dropsmalledges
dx 1 2
dy 1 2
dz
-e
e1
e2
e3
e4
edge 1 2 3 4 5
edgeid
edges 1 2 3 4 5
edit
egdemaxtol
egdemintol
either
element 1 2 3 4
elementary
elements 1 2 3 4 5 6
ellipse
empty
end 1 2 3
ending
ends
enter 1 2
entity 1 2 3 4 5 6
equal
erase
eraseall
eraseonly
erases
error
etc 1 2
example 1 2 3 4 5 6 7 8 9 10 11 12
except
existing 1 2
explode 1 2 3
exploded 1 2
export 1 2
exportation
exported
exporting
extracted
extruded
extrusion
+e
e1
e2
e3
e4
easier
edge 1 2 3 4 5 6
edgeid
edges 1 2 3 4 5 6
edit
editing
egdemaxtol
egdemintol
either
element 1 2 3 4 5
elementary
elements 1 2 3 4 5 6
ellipse
empty
encountered
end 1 2 3
ending
ends
enter 1 2
entire
entity 1 2 3 4 5 6 7
equal
erase
eraseall
eraseonly
erases
error
errors
etc 1 2
example 1 2 3 4 5 6 7 8 9 10 11 12
except
existing 1 2
explode 1 2 3
exploded 1 2
export 1 2
exportation
exported
exporting
extra
extracted
extruded
extrusion
-f1
f2
f3
f4
f5
f6
face 1 2 3 4 5 6 7
face1
face2
facemaxtol
facemintol
faces 1 2 3 4 5
factor
false
fields
file
filename
files
fill 1 2
filled
fillet
fillets
filling
first 1 2 3 4 5 6
fix
fixfacesize
fixing
fixshape
>>
+f1
f2
f3
f4
f5
f6
face 1 2 3 4 5 6 7 8
face1
face2
facemaxtol
facemintol
faces 1 2 3 4 5 6
factor
false
>>
<<
-following 1 2 3 4
format
formatname
formats
four
free
functions 1 2
fuse
fuses
+fields
file
filename
files
fill 1 2
filled
fillet
fillets
filling
first 1 2 3 4 5 6
fix
fixfacesize
fixing
fixshape
flag
following 1 2 3 4
format
formatname
formats
four
free
functionalities
functionality 1 2
functions 1 2
fuse
fuses
-gap
general
generating
generation 1 2
geom 1 2 3 4 5 6 7 8 9 10 11 12
geom_object 1 2 3 4 5 6 7 8 9 10 11 12
geom_objects
geometric
geometrical 1 2 3 4 5 6 7 8 9 10 11 12 13 14
geometry
geompy 1 2 3 4 5 6 7 8 9 10 11 12 13
get
getfreeboundary
getobjectids
gets
getsubshapeid
getting
gg
given 1 2 3 4 5
gives
glue 1 2
glued
glues
graphic
gravity
group
groups
gui
+gap
general
generating
generation 1 2
geom 1 2 3 4 5 6 7 8 9 10 11 12
geom_object 1 2 3 4 5 6 7 8 9 10 11 12
geom_objects 1 2
geometric
geometrical 1 2 3 4 5 6 7 8 9 10 11 12 13 14
geometry
geompy 1 2 3 4 5 6 7 8 9 10 11 12 13
get
getfreeboundary
getfreefacesids
getobjectids
gets
getsubshapeid
getting
gg
given 1 2 3 4 5 6
gives
glue 1 2
glued 1 2
glues
graphic
gravity
group 1 2
groups 1 2
gui
-half
having 1 2
height 1 2
hexahedral 1 2
hexahedron
hide
hiding
highlights
hole
holes
+half
handling
having 1 2
height 1 2
hexahedral 1 2
hexahedron
hide
hiding
highlight
highlights
hole
holes
-i
i11
i12
i13
i21
i22
i23
i31
i32
i33
id 1 2 3 4 5 6
ids 1 2 3
if 1 2 3 4
iges 1 2
image
import 1 2
importation
imported 1 2 3
importing
increased
independent
independently
indices
inertia
initial
inner
inquired
inretia
inserted
inside
integer
integers
intended
interactively
intermediate
internal
intersect
intersected
intersection
introduction 1 2
invalid
isbyparameter
iscommonvertex
isolines
isos
iterations
itself
ix
iy
iz
+i
i11
i12
i13
i21
i22
i23
i31
i32
i33
id 1 2 3 4 5 6
ids 1 2 3 4
if 1 2 3 4 5
iges 1 2
image
import 1 2
importation
imported 1 2 3
importing
increased
independent
independently
indices
inertia
informs
initial
inner
inquired
inretia
inserted
inside
integer
integers
intended
interactively
intermediate
internal
intersect
intersected
intersection
introduction 1 2
invalid
investigated
isbyparameter
iscommonvertex
isolines
isos
iterations
itself
ix
iy
iz
just
@@ -47,7 +47,7 @@ A:hover {color:Navy; } A:hover {font-family:Tahoma; } A:hover {font-size:8pt; }
last 1 2
lcs
least
length 1 2 3
less
limit
line 1 2 3
list 1 2 3 4 5 6 7
listoffaceid
listofgeomshapes
listofid 1 2
listofkeepinside
listofmaterials
listofremoveinside
listofshape 1 2 3
listofshapeid
listofshapes 1 2
listoftools
listofwireid
local 1 2 3
located
location 1 2 3
lwp
lying 1 2
-main 1 2 3 4 5 6 7 8 9 10 11
mainshape
major 1 2
make
makearc
makebezier
makeblockexplode
makeboolean
makebox
makecdg
makechamferedge
makechamferface
makecircle
makecompound
makecone
makecylinder
makeedge
makeellipse
makeface
makefillet
makefilling
makegluefaces
makehexasolid
makehexasolidtwofaces
makeinterpol
makeline
makemarker
makemirrorbyplane
makemultirotation1d
makemultirotation2d
makemultitransformation1d
makemultitransformation2d
makemultitranslation1d
makemultitranslation2d
makeoffset
makepartition
makepipe
makeplane
makepolyline
makeposition
makeprism
makequadface
makequadfaceedges
makequadfacevertices
makerevolution
makerotation
makes 1 2
makescaletransform
makesewing
makeshell
makesketcher
makesolid
makesphere
maketorus
maketranslation
makevector
makevertex
makewire
manually
mass
materials
matrix
max 1 2 3
maxdegree
maximal 1 2 3 4
maximum 1 2
maxnbfaces
maxtolerance
maxtolerance3d
>>
+main 1 2 3 4 5 6 7 8 9 10 11 12 13 14
mainshape
major 1 2
make
makearc
makebezier
makeblockexplode
makeboolean
makebox
makecdg
makechamferedge
makechamferface
makecircle
makecompound
makecone
makecylinder
makeedge
makeellipse
makeface
makefillet
makefilling
makegluefaces
makehexasolid
makehexasolidtwofaces
makeinterpol
makeline
makemarker
makemirrorbyplane
makemultirotation1d
makemultirotation2d
makemultitransformation1d
makemultitransformation2d
makemultitranslation1d
makemultitranslation2d
makeoffset
makepartition
makepipe
makeplane
makepolyline
makeposition
makeprism
makequadface
makequadfaceedges
makequadfacevertices
makerevolution
makerotation
makes 1 2 3
makescaletransform
makesewing
makeshell
makesketcher
makesolid
makesphere
maketorus
maketranslation
makevector
makevertex
makewire
manually
mass
materials
matrix
max 1 2 3
maxdegree
maximal 1 2 3 4
maximum 1 2
maxnbfaces
maxtolerance
maxtolerance3d
>>
<<
-meaning
means
measurement
measures
mentioned
menu 1 2 3 4 5 6 7 8 9 10 11 12 13
merging
mesh
meshing 1 2
meshingdeflection
method
middle
min 1 2 3
mindegree
mindistance
minimal 1 2 3
minimum
minnbfaces
minor 1 2
mirror
mirrored
mode 1 2
modeled
models
modes
modification 1 2
modified
modifies 1 2
modify
module 1 2
moment
moments
move
moved
multi 1 2 3
must 1 2
+meaning
means
measurement
measures
mentioned
menu 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
merging
mesh
meshing 1 2
meshingdeflection
method
middle
min 1 2 3
mindegree
mindistance
minimal 1 2 3
minimum
minnbfaces
minor 1 2
mirror
mirrored
mode 1 2
modeled
models
modes
modification 1 2
modified
modifies 1 2
modify
module 1 2
moment
moments
move
moved
much
multi 1 2 3
multitude
must 1 2 3
-name 1 2 3 4 5 6 7 8 9 10
names
nbiter
nbsplitpoints
nbtimes 1 2
nbtimes1
nbtimes2
nbtimesu
nbtimesv
necessary 1 2 3 4
needed
negative
neigbour
new 1 2 3 4 5 6 7
nodes
noerror
normal 1 2 3
notions
number 1 2 3 4 5
numbers
numeber
+name 1 2 3 4 5 6 7 8 9 10
names
nbiter
nbsplitpoints
nbtimes 1 2
nbtimes1
nbtimes2
nbtimesu
nbtimesv
necessary 1 2 3 4
needed
negative
neigbour
new 1 2 3 4 5 6 7 8
nodes
noerror
normal 1 2 3
notions
number 1 2 3 4 5
numbers
numeber
-object 1 2 3 4 5 6 7 8 9 10 11
objects 1 2 3 4 5 6 7 8 9 10 11 12 13
occ 1 2 3
occurred
offset
ok 1 2
one 1 2 3 4 5 6 7
ones
open
openwires
operation 1 2 3 4
operations 1 2 3 4 5 6 7 8
operator
operators
opposite
optimization
options
order
oriented 1 2
origin 1 2
otherwise 1 2
outside
ox 1 2
oy
oz 1 2
+object 1 2 3 4 5 6 7 8 9 10 11
objects 1 2 3 4 5 6 7 8 9 10 11 12 13
occ 1 2 3 4
occurred
offers
offset
ok 1 2
one 1 2 3 4 5 6 7
ones
open
openwires
operation 1 2 3 4
operations 1 2 3 4 5 6 7 8
operator
operators
opposite
optimization
options
order 1 2
oriented 1 2
origin 1 2
otherwise 1 2
outside
ox 1 2
oy
oz 1 2
-parameter 1 2 3
parameters 1 2 3 4 5
paramter
part 1 2
partition
passes
path
pathshape
pattern
perform 1 2
performed
perpendicular
pipe
planar 1 2 3
plane 1 2 3 4
plunged
point 1 2 3 4 5 6
point1
point2
point3
pointcoordinates
points 1 2 3 4 5
polyline
pop 1 2
position 1 2
possibility
possible 1 2
precision
predefined
presses
preview
previous
primitive
primitives 1 2
prism
problems
processed 1 2
processes
processing
processshape
properties 1 2
put
python
+parameter 1 2 3
parameters 1 2 3 4 5
paramter
part 1 2
partition
passes
path
pathshape
pattern
perform 1 2
performed
perpendicular
pipe
planar 1 2 3
plane 1 2 3 4
platform
plunged
point 1 2 3 4 5 6
point1
point2
point3
pointcoordinates
points 1 2 3 4 5
polyline
pop 1 2
position 1 2
possibility
possible 1 2 3 4
precision
predefined
preferences
presses
preview
previous
primitive
primitives 1 2
printed
prism
problems
processed 1 2
processes
processing
processshape
project
propagate
propagation
properties 1 2
put
python
-quadrangle 1 2
+quadrangle 1 2 3
-radians
radius 1 2 3 4
radius1
radius2
radiuses 1 2
radiusmajor 1 2
radiusminor 1 2
range 1 2
re
reasonable
reconstruction
reference
regarding
relative
remove
removed 1 2 3
removeobject
removes
removewebs
removing
repair
repairing 1 2
repetition
repetitions
representing
requested
required 1 2 3
requireddegree
requirednbsegments
respect 1 2
restriction
result 1 2 3 4 5 6 7 8 9 10 11 12
resultant
resulting 1 2 3
results
retrieved
return
returned 1 2
returns 1 2 3 4
reverse
revolution 1 2
>>
+radians
radius 1 2 3 4
radius1
radius2
radiuses 1 2
radiusmajor 1 2
radiusminor 1 2
range 1 2
>>
<<
-right 1 2
rotate
rotated 1 2
rotates
rotation
+re
reasonable
reconstruction
reference
regarding
relative
remove
removed 1 2 3
removeobject
removes
removewebs
removing
repair
repairing 1 2
repetition
repetitions
representing
requested
required 1 2 3
requireddegree
requirednbsegments
respect 1 2
restriction
result 1 2 3 4 5 6 7 8 9 10 11 12
resultant
resulting 1 2 3
results
retrieved
retrieves
return
returned 1 2
returns 1 2 3 4 5
reverse
revolution 1 2
right 1 2
rotate
rotated 1 2
rotates
rotation
-s 1 2 3 4 5 6
salome
same 1 2
sameparameter
scale
scaled
search
second 1 2 3 4
section 1 2
see
segment
segments
select 1 2 3 4 5 6 7 8 9 10 11 12 13 14
selected 1 2 3 4
selection 1 2 3
sense
serve
serving
set 1 2 3
setcolor
setdisplaymode
sets
setting 1 2
settransparency
sew
sewed
sewing
sg
shading
shape 1 2 3 4 5 6 7 8 9 10 11
shape1 1 2
shape2 1 2
shapes 1 2 3 4 5 6 7 8
shapesto
shapetype 1 2
shell 1 2 3 4
shells 1 2
short
should
shown
side
signed
six
size 1 2 3
sketch
sketcher
small 1 2
solid 1 2 3 4 5 6
solids
soon
space 1 2
specific
specified 1 2 3
specifies
specify
specifying
sphere
spline
splitangle
splitclosedfaces
splitcontinuity
splits
splitting
spot
stage
standard
started
starting 1 2 3
step 1 2 3
step1
step2
steps
string 1 2
strip
study
sub 1 2 3
submenu 1 2 3 4
subshape 1 2 3
subshapeall
subshapeid
subshapes 1 2
suppress
suppresses
suppressfaces
suppressholes
suppressinternalwires
surface 1 2
surfacecontinuity
surfacemode
surfaces
symmetrical
symmetry 1 2
system 1 2
+s 1 2 3 4 5 6
salome 1 2
same 1 2
sameparameter
satisfy
scale
scaled
search
second 1 2 3 4
section 1 2
see 1 2
segment
segments
select 1 2 3 4 5 6 7 8 9 10 11 12 13 14
selected 1 2 3 4
selection 1 2 3
sense
serve
serving
set 1 2 3
setcolor
setdisplaymode
sets
setting 1 2
settransparency
sew
sewed
sewing
sg
shading
shape 1 2 3 4 5 6 7 8 9 10 11
shape1 1 2
shape2 1 2
shapes 1 2 3 4 5 6 7 8
shapesto
shapetype 1 2
shared
shell 1 2 3 4
shells 1 2 3
short
should 1 2
shown
side
signed
six
size 1 2 3
sketch
sketcher
small 1 2
solid 1 2 3 4 5 6
solids
soon
space 1 2
specific
specified 1 2 3
specifies
specify
specifying
sphere
spline
splitangle
splitclosedfaces
splitcontinuity
splits
splitting
spot
stage
standard
started
starting 1 2 3
step 1 2 3
step1
step2
string 1 2
strip
study
sub 1 2 3
submenu 1 2 3 4
subshape 1 2 3
subshapeall
subshapeid
subshapes 1 2
suppress
suppresses
suppressfaces
suppressholes
suppressinternalwires
surface 1 2
surfacecontinuity
surfacemode
surfaces
symmetrical
symmetry 1 2
system 1 2
-take
tangent
target 1 2
tetrahedral
theendlcs
them
theobject
therefore
theshape
thestartlcs
thetolerance
times
tobezier
tol2d
tol3d
tolerance 1 2 3
tolerance2d
tolerance3d
tolerances
tools
torus
transform
transformation 1 2 3
transformations 1 2
transformed 1 2
translated
translation
translations 1 2
transparency
trihedron
trimsize
true 1 2 3
tui 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
tuple
two 1 2 3 4 5 6
type 1 2 3 4 5 6
typeofshape
types 1 2 3
-
-underlying
up 1 2 3
updated
upper
used 1 2 3
user 1 2 3 4
using 1 2 3 4 5 6 7 8 9 10
>>
+tangent
target 1 2
tetrahedral
theendlcs
them
theobject
therefore
theshape
thestartlcs
thetolerance
times
tobezier
toggle
tol2d
tol3d
tolerance 1 2 3
tolerance2d
tolerance3d
tolerances
tools
torus
>>
<<
-
-
-v1
v2
v3
v4
val
valid
validity
value 1 2 3 4 5 6 7
values 1 2 3 4 5 6 7
various
vector 1 2 3 4 5
vectors 1 2
vertex 1 2 3 4 5 6 7
vertex1
vertex2
vertexmaxtol
vertexmintol
vertices 1 2 3 4 5 6
view
viewer 1 2 3 4
viewers
visibility
visualization 1 2
volume
vtk
vx
+transform
transformation 1 2 3
transformations 1 2
transformed 1 2
translated
translation
translations 1 2
transparency
trihedron
trimsize
true 1 2 3
tui 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
tuple
two 1 2 3 4 5 6 7
type 1 2 3 4 5 6
typeofshape
types 1 2 3
+
+underlying
up 1 2 3
updated
upper
used 1 2 3 4
useful
user 1 2 3
using 1 2 3 4 5 6 7 8 9 10
+
+v1
v2
v3
v4
val
valid
validity
value 1 2 3 4 5 6 7
values 1 2 3 4 5 6 7
various
vector 1 2 3 4 5
vectors 1 2
vertex 1 2 3 4 5 6 7
vertex1
vertex2
vertexmaxtol
vertexmintol
vertices 1 2 3 4 5 6
via 1 2 3 4
view
viewer 1 2 3 4 5 6
viewers
visibility
visualization 1 2
volume
vtk
vx
-wantplanarface
water
waterdensity
weight
whatis
while
whose 1 2
wide
will 1 2 3 4 5
wire 1 2 3
wireframe
wires 1 2 3
within 1 2
work 1 2
working 1 2 3
+wantplanarface
water
waterdensity
weight
whatis
whether
while
whose 1 2
wide
will 1 2 3 4 5
wire 1 2 3
wireframe
wires 1 2 3
wish
within 1 2
work 1 2
working 1 2 3
x 1 2 3
x1
x2
xdx
xdy
xdz
xmax
xmin
xoy
xyz
-y 1 2 3
y1
y2
ydx
ydy
ydz
ymax
ymin
your 1 2 3
+y 1 2 3
y1
y2
ydx
ydy
ydz
ymax
ymin
your 1 2 3 4
z 1 2 3
z1
z2
zmax
zmin
-
+
-
+
-
+
-
+
-
+
-
-
-
diff --git a/doc/salome/gui/GEOM/whgdata/whnvt30.htm b/doc/salome/gui/GEOM/whgdata/whnvt30.htm
index 04b361145..35e6ef5b8 100755
--- a/doc/salome/gui/GEOM/whgdata/whnvt30.htm
+++ b/doc/salome/gui/GEOM/whgdata/whnvt30.htm
@@ -37,7 +37,7 @@ img {vertial-align:middle;}
diff --git a/doc/salome/gui/GEOM/whgdata/whnvt31.htm b/doc/salome/gui/GEOM/whgdata/whnvt31.htm
index 5ffc8f328..53dd7e91c 100755
--- a/doc/salome/gui/GEOM/whgdata/whnvt31.htm
+++ b/doc/salome/gui/GEOM/whgdata/whnvt31.htm
@@ -35,7 +35,7 @@ A:hover {color:Navy; } A:hover {font-family:Tahoma; } A:hover {font-size:8pt; }
diff --git a/doc/salome/gui/GEOM/whgdata/whnvt32.htm b/doc/salome/gui/GEOM/whgdata/whnvt32.htm
index 3caac9e94..464a4cc4a 100755
--- a/doc/salome/gui/GEOM/whgdata/whnvt32.htm
+++ b/doc/salome/gui/GEOM/whgdata/whnvt32.htm
@@ -35,7 +35,7 @@ A:hover {color:Navy; } A:hover {font-family:Tahoma; } A:hover {font-size:8pt; }
diff --git a/doc/salome/gui/GEOM/whgdata/whnvt33.htm b/doc/salome/gui/GEOM/whgdata/whnvt33.htm
index 286463871..eb46f192b 100755
--- a/doc/salome/gui/GEOM/whgdata/whnvt33.htm
+++ b/doc/salome/gui/GEOM/whgdata/whnvt33.htm
@@ -35,7 +35,7 @@ A:hover {color:Navy; } A:hover {font-family:Tahoma; } A:hover {font-size:8pt; }
diff --git a/doc/salome/gui/GEOM/whproj.htm b/doc/salome/gui/GEOM/whproj.htm
index cb9a087dc..821daea24 100755
--- a/doc/salome/gui/GEOM/whproj.htm
+++ b/doc/salome/gui/GEOM/whproj.htm
@@ -14,7 +14,7 @@
setLangId("1033");
setDataPath("whdata");
addToc("whtoc.htm");
- addIdx("whidx.htm");
+
addFts("whfts.htm");
addGlo("whglo.htm");
diff --git a/doc/salome/gui/GEOM/whproj.xml b/doc/salome/gui/GEOM/whproj.xml
index 8125375e4..4bd4a8de7 100755
--- a/doc/salome/gui/GEOM/whproj.xml
+++ b/doc/salome/gui/GEOM/whproj.xml
@@ -1,3 +1,3 @@
-
+
diff --git a/doc/salome/gui/GEOM/whres.xml b/doc/salome/gui/GEOM/whres.xml
index d47a2b7c8..f3f010a3f 100755
--- a/doc/salome/gui/GEOM/whres.xml
+++ b/doc/salome/gui/GEOM/whres.xml
@@ -81,7 +81,6 @@
-
diff --git a/doc/salome/gui/GEOM/whskin_info.htm b/doc/salome/gui/GEOM/whskin_info.htm
index f99a2d5e7..e8423087a 100755
--- a/doc/salome/gui/GEOM/whskin_info.htm
+++ b/doc/salome/gui/GEOM/whskin_info.htm
@@ -9,10 +9,10 @@
Start Page | geom.htm |
Skin Name | Default |
- Generating Time | 16:19 11/25/2004 |
+ Generating Time | 13:16 03/01/2005 |
Language ID | 1033 |
Compile Script | webhelp5_compile_script.xml |
- Compile Build Version | 13.00.584 |
+ Compile Build Version | 13.10.606 |
Product Name | WebHelp 5.50 |
Authoring Tool Name | RoboHelp X5 |
diff --git a/doc/salome/gui/GEOM/whskin_papplet.htm b/doc/salome/gui/GEOM/whskin_papplet.htm
index 86eb2290d..5f8296ad6 100755
--- a/doc/salome/gui/GEOM/whskin_papplet.htm
+++ b/doc/salome/gui/GEOM/whskin_papplet.htm
@@ -36,7 +36,6 @@ function setShowPane(sName)
gsInitPane=sName;
}
addPane("toc","whtdhtml.htm");
- addPane("idx","whidhtml.htm");
addPane("fts","whfdhtml.htm");
addPane("glo","whgdhtml.htm");
setShowPane("toc");
diff --git a/doc/salome/gui/GEOM/whskin_pdhtml.htm b/doc/salome/gui/GEOM/whskin_pdhtml.htm
index eaf5c6d67..763aa1429 100755
--- a/doc/salome/gui/GEOM/whskin_pdhtml.htm
+++ b/doc/salome/gui/GEOM/whskin_pdhtml.htm
@@ -53,7 +53,6 @@ function writeWebHelpPane()
var strProjectFileHTM = "whproj.htm";
addProject(bPreferXML, strProjectFileXML, strProjectFileHTM);
addPane("toc","whtdhtml.htm");
- addPane("idx","whidhtml.htm");
addPane("fts","whfdhtml.htm");
addPane("glo","whgdhtml.htm");
setShowPane("toc");
diff --git a/doc/salome/gui/GEOM/whskin_tbars.htm b/doc/salome/gui/GEOM/whskin_tbars.htm
index ecec5c12d..6cb490239 100755
--- a/doc/salome/gui/GEOM/whskin_tbars.htm
+++ b/doc/salome/gui/GEOM/whskin_tbars.htm
@@ -83,7 +83,6 @@ setButtonBgColor("searchform","", true);
setButtonBgColor("banner","", true);
addButton("toc",BTN_TEXT|BTN_IMG,"Contents","","","","",0,0,"","","","","","");
-addButton("idx",BTN_TEXT|BTN_IMG,"Index","","","","",0,0,"","","","","","");
addButton("fts",BTN_TEXT|BTN_IMG,"Search","","","","",0,0,"","","","","","");
addButton("glo",BTN_TEXT|BTN_IMG,"Glossary","","","","",0,0,"","","","","","");
addButton("searchform",BTN_TEXT,"","","","","",0,0,"","","","","","");
diff --git a/doc/salome/gui/GEOM/whstart.js b/doc/salome/gui/GEOM/whstart.js
index 95ea404a0..7448a4792 100755
--- a/doc/salome/gui/GEOM/whstart.js
+++ b/doc/salome/gui/GEOM/whstart.js
@@ -31,7 +31,7 @@ function delayReload()
}
}
-var gsToolbarOrder = "toc|idx|fts|glo|blankblock|searchform|banner";
+var gsToolbarOrder = "toc|fts|glo|blankblock|searchform|banner";
var gsMinibarOrder = "blankblock|hide2|";
var gsTopic = "files/introduction_to_geom.htm";
diff --git a/doc/salome/gui/GEOM/whxdata/whfts.xml b/doc/salome/gui/GEOM/whxdata/whfts.xml
index 1b9c3053b..e57bfb026 100755
--- a/doc/salome/gui/GEOM/whxdata/whfts.xml
+++ b/doc/salome/gui/GEOM/whxdata/whfts.xml
@@ -1,8 +1,6 @@
-
-
-
+
diff --git a/doc/salome/gui/GEOM/whxdata/whfwdata0.xml b/doc/salome/gui/GEOM/whxdata/whfwdata0.xml
index 51e07108d..6706ec0f9 100755
--- a/doc/salome/gui/GEOM/whxdata/whfwdata0.xml
+++ b/doc/salome/gui/GEOM/whxdata/whfwdata0.xml
@@ -2,6 +2,7 @@
1,12,
1,15,3,4,7,5,11,12,13,10,9,16,
+ 9,
3,10,
3,11,12,13,10,
14,1,15,3,4,5,11,12,13,10,9,
@@ -14,13 +15,14 @@
13,
14,15,4,12,10,
15,7,12,
- 14,12,
+ 14,12,9,
12,
12,
15,12,
15,
15,
15,
+ 13,
3,12,
12,
12,
@@ -48,10 +50,11 @@
6,
6,
14,3,
- 6,12,
+ 14,15,6,12,16,
3,
3,7,11,13,9,
3,
+ 16,
7,11,12,13,
7,
7,
@@ -60,7 +63,7 @@
15,12,
14,
3,12,
- 14,0,10,
+ 14,0,10,9,
2,4,5,9,
6,
9,
@@ -68,6 +71,7 @@
12,
9,
14,1,15,3,4,8,7,5,11,12,13,10,9,16,
+ 10,
2,8,
3,6,8,
12,
@@ -85,6 +89,7 @@
1,
12,10,9,
12,13,
+ 9,
9,
6,8,10,
3,
@@ -100,20 +105,23 @@
2,4,7,10,
15,3,13,
14,9,
- 14,4,5,12,13,10,
+ 14,4,5,12,13,10,9,
7,
10,9,
11,
9,
+ 9,
8,
12,
- 5,10,
- 12,
+ 5,10,9,
+ 9,
+ 12,9,
+ 9,
14,
14,5,11,
2,4,
3,11,12,13,10,
- 15,8,12,
+ 15,8,12,10,
8,
12,
12,
@@ -129,7 +137,7 @@
15,
14,15,3,6,7,5,11,12,13,10,9,16,
16,
- 2,7,12,10,
+ 2,7,12,10,16,
15,6,
15,3,7,12,
12,
@@ -141,11 +149,12 @@
10,
10,
9,
- 15,
+ 15,16,
15,3,11,12,13,10,
12,9,
7,12,
10,
+ 9,
15,7,12,
10,
10,
@@ -190,7 +199,8 @@
14,
14,
14,
- 14,3,7,5,12,10,
+ 16,
+ 14,3,7,5,12,10,9,
12,
16,
9,
@@ -200,14 +210,16 @@
14,
3,
12,
+ 9,
15,3,12,13,
3,8,
- 15,3,7,5,11,16,
+ 9,
+ 14,15,3,7,5,11,16,
15,
6,
6,
6,
- 12,
+ 12,9,
5,12,
14,1,15,3,4,7,5,11,12,13,10,16,
12,
@@ -215,6 +227,7 @@
0,5,10,
2,8,
8,
+ 9,
10,
7,
7,
@@ -224,7 +237,7 @@
14,
14,
14,
- 14,3,7,5,12,13,10,
+ 14,3,7,5,12,13,10,9,
10,
10,
9,
@@ -240,12 +253,15 @@
12,
12,
12,
- 14,4,6,5,
+ 9,
+ 4,6,5,9,
2,8,
8,
14,
12,
2,5,
+ 14,
+ 15,16,
4,
12,
14,
@@ -256,5 +272,497 @@
14,
1,2,3,4,6,8,7,5,11,12,13,10,9,16,
12,
+ 14,15,3,4,8,7,5,11,12,13,10,9,16,
+ 4,5,9,
+ 12,
+ 12,
+ 16,
+ 5,
+ 1,
+ 3,
+ 3,5,12,13,10,9,
+ 12,10,9,
+ 6,
+ 9,
+ 10,16,
+ 10,
+ 3,
+ 16,
+ 5,12,
+ 7,11,
+ 14,10,
+ 14,
+ 6,
+ 12,9,
+ 12,
+ 6,
+ 9,
+ 9,
+ 9,
+ 9,
+ 9,
+ 9,
+ 9,
+ 9,
+ 9,
+ 1,6,5,12,10,16,
+ 5,12,10,9,16,
+ 2,8,
+ 13,
+ 2,6,8,9,
+ 8,
+ 13,
+ 12,
+ 4,6,
+ 10,
+ 9,
+ 9,
+ 13,
+ 9,
+ 9,
+ 12,
+ 10,
+ 10,
+ 10,
+ 12,
+ 10,
+ 14,
+ 12,
+ 10,
+ 10,
+ 14,2,
+ 12,
+ 9,
+ 12,
+ 12,
+ 1,
+ 1,
+ 7,
+ 12,
+ 9,
+ 9,
+ 9,
+ 14,
+ 13,
+ 3,5,
+ 3,
+ 3,
+ 15,12,9,
+ 12,
+ 10,
+ 15,3,10,
+ 15,3,7,5,12,10,16,
+ 10,
+ 12,
+ 5,12,
+ 10,
+ 10,
+ 10,
+ 3,5,12,10,
+ 10,
+ 10,
+ 12,
+ 15,3,13,
+ 3,
+ 3,8,13,
+ 15,
+ 15,12,
+ 14,0,15,3,4,6,7,5,11,12,13,10,9,16,
+ 16,
+ 3,11,
+ 13,10,16,
+ 3,
+ 3,
+ 10,
+ 4,
+ 11,
+ 9,
+ 10,
+ 10,
+ 3,
+ 5,
+ 11,
+ 11,
+ 5,
+ 3,
+ 5,
+ 7,
+ 10,
+ 12,
+ 14,
+ 14,
+ 3,
+ 3,
+ 3,
+ 13,
+ 13,
+ 13,
+ 10,
+ 10,
+ 13,
+ 13,
+ 13,
+ 10,
+ 7,
+ 3,
+ 3,
+ 13,
+ 7,
+ 14,
+ 14,
+ 14,
+ 7,
+ 13,
+ 13,
+ 12,
+ 5,
+ 15,
+ 5,
+ 11,
+ 11,
+ 13,
+ 3,
+ 3,
+ 5,
+ 3,
+ 9,
+ 10,
+ 9,
+ 7,12,10,
+ 7,
+ 7,12,10,9,
+ 12,10,
+ 10,
+ 12,
+ 12,
+ 15,13,
+ 9,
+ 9,
+ 14,
+ 14,0,1,15,3,4,6,8,7,5,11,12,13,10,9,16,
+ 12,
+ 14,10,
+ 10,
+ 5,
+ 3,
+ 7,10,9,
+ 7,
+ 9,
+ 7,10,9,
+ 10,
+ 10,
+ 3,11,
+ 13,
+ 1,12,
+ 2,10,
+ 3,12,13,
+ 12,13,
+ 13,
+ 2,6,
+ 9,
+ 13,
+ 16,
+ 0,13,10,
+ 10,
+ 12,13,9,
+ 14,3,4,8,7,5,11,12,13,10,
+ 7,
+ 12,
+ 13,10,
+ 13,
+ 13,
+ 10,
+ 10,
+ 15,6,12,9,
+ 12,
+ 13,
+ 12,
+ 14,15,3,7,5,11,12,16,
+ 3,
+ 12,
+ 3,7,13,
+ 14,
+ 1,7,12,13,10,
+ 10,
+ 10,
+ 1,2,3,4,6,8,7,5,11,12,13,10,9,16,
+ 1,6,12,16,
+ 12,
+ 16,
+ 13,
+ 3,8,
+ 15,3,4,6,12,13,10,
+ 12,
+ 12,
+ 14,2,4,6,7,12,13,10,16,
+ 12,
+ 11,
+ 2,
+ 0,
+ 12,9,
+ 14,3,
+ 3,11,
+ 12,13,
+ 10,
+ 15,3,
+ 3,
+ 15,3,
+ 3,5,12,
+ 1,15,3,7,12,
+ 12,
+ 4,11,
+ 10,
+ 3,
+ 7,
+ 7,
+ 13,
+ 10,16,
+ 15,
+ 7,
+ 15,3,13,10,
+ 15,3,5,
+ 16,
+ 10,
+ 14,15,3,11,12,13,9,
+ 3,
+ 3,
+ 3,
+ 9,
+ 3,
+ 1,6,
+ 3,12,
+ 12,
+ 6,12,10,9,
+ 12,
+ 15,
+ 16,
+ 3,
+ 3,
+ 15,
+ 2,11,
+ 9,
+ 7,
+ 12,
+ 12,10,
+ 12,
+ 16,
+ 10,
+ 10,
+ 1,9,
+ 10,
+ 9,
+ 14,3,9,
+ 12,
+ 15,3,11,10,
+ 3,11,
+ 11,
+ 11,
+ 3,11,
+ 3,11,
+ 2,12,
+ 12,
+ 6,
+ 10,
+ 3,
+ 3,
+ 15,
+ 12,13,16,
+ 16,
+ 10,
+ 2,12,
+ 13,
+ 3,
+ 5,
+ 6,8,12,
+ 12,
+ 12,
+ 15,12,
+ 12,
+ 14,15,3,4,7,5,11,12,13,10,9,16,
+ 12,
+ 5,12,
+ 5,12,10,9,16,
+ 13,
+ 7,12,
+ 1,6,
+ 7,13,
+ 13,
+ 3,5,12,13,10,16,
+ 2,16,
+ 15,12,
+ 12,
+ 9,
+ 13,
+ 8,9,
+ 8,
+ 4,11,13,10,
+ 4,10,
+ 15,12,
+ 0,1,15,3,4,6,8,7,5,11,12,10,9,16,
+ 15,3,10,
+ 10,
+ 3,7,
+ 1,3,12,13,10,
+ 1,
+ 1,
+ 1,
+ 12,
+ 6,
+ 1,
+ 1,2,4,6,8,7,5,12,13,10,9,16,
+ 4,9,
+ 4,9,
+ 12,
+ 10,16,
+ 12,
+ 5,12,13,
+ 14,7,5,13,
+ 1,
+ 12,9,
+ 3,
+ 3,
+ 13,
+ 14,
+ 3,12,10,
+ 15,
+ 3,12,
+ 14,7,5,11,13,10,
+ 3,
+ 3,9,
+ 3,12,10,
+ 14,
+ 12,13,
+ 11,
+ 3,
+ 12,
+ 12,
+ 12,
+ 12,
+ 12,
+ 14,
+ 8,
+ 15,3,13,
+ 2,8,13,
+ 13,
+ 13,
+ 15,8,
+ 12,
+ 6,
+ 5,12,16,
+ 0,5,12,9,
+ 5,10,16,
+ 5,
+ 16,
+ 12,
+ 12,
+ 12,
+ 12,
+ 12,13,9,
+ 12,
+ 12,
+ 13,
+ 11,13,
+ 3,13,
+ 15,
+ 15,10,
+ 14,
+ 13,
+ 12,
+ 13,
+ 15,
+ 12,
+ 13,
+ 12,
+ 13,
+ 12,
+ 16,
+ 7,
+ 7,
+ 7,12,9,
+ 12,
+ 12,
+ 9,
+ 11,
+ 4,13,10,
+ 0,2,13,10,
+ 13,
+ 13,10,
+ 1,
+ 3,
+ 3,
+ 12,10,9,
+ 14,1,15,3,4,6,8,7,5,11,12,13,10,9,16,
+ 9,
+ 14,4,11,12,13,10,9,
+ 15,4,5,11,12,10,9,16,
+ 5,
+ 12,
+ 1,6,11,10,
+ 3,
+ 14,2,15,3,4,6,7,5,12,13,10,9,16,
+ 16,
+ 14,
+ 14,
+ 14,
+ 14,
+ 12,
+ 9,
+ 9,
+ 1,15,3,7,11,12,13,10,9,
+ 12,
+ 15,3,7,11,13,
+ 3,7,5,11,12,13,9,
+ 5,
+ 5,
+ 9,
+ 9,
+ 14,3,5,11,12,13,
+ 14,15,13,16,
+ 1,3,6,12,9,16,
+ 6,
+ 6,
+ 1,6,
+ 9,
+ 6,
+ 15,
+ 5,
+ 10,
+ 10,
+ 10,
+ 9,
+ 9,
+ 12,
+ 5,9,
+ 2,
+ 3,8,12,13,10,
+ 14,7,5,12,
+ 1,
+ 8,
+ 1,12,
+ 15,3,6,12,16,
+ 15,3,9,
+ 11,
+ 11,
+ 3,
+ 3,
+ 3,
+ 9,
+ 9,
+ 15,
+ 3,
+ 15,3,9,
+ 11,
+ 11,
+ 3,
+ 3,
+ 3,
+ 9,
+ 9,
+ 8,12,9,16,
+ 3,10,9,
+ 11,
+ 11,
+ 9,
+ 9,
diff --git a/doc/salome/gui/GEOM/working_with_groups.htm b/doc/salome/gui/GEOM/working_with_groups.htm
index c5b89f8df..09f15c3e1 100755
--- a/doc/salome/gui/GEOM/working_with_groups.htm
+++ b/doc/salome/gui/GEOM/working_with_groups.htm
@@ -81,12 +81,21 @@ else
Working with groups
+The Salome platform offers
+ such a useful functionality as creation and editing groups of subshapes
+ of a geometrical object which makes handling subshapes much easier. However
+ the functionality is available in the OCC viewer only. If other viewer
+ is used in your project by default, you can toggle the OCC viewer via
+ Preferences / Viewer background / OCC viewer.
+
+
+
To perform operations with groups:
In the main menu select New
- entity > Groups.
+ entity > Group.
@@ -104,9 +113,10 @@ else
-TUI Command: geompy.CreateGroup(MainShape,
- ShapeType), where MainShape is a shape for which the group is created,
- ShapeType is a type of shapes in the created group.
+TUI Command:
+ geompy.CreateGroup(MainShape, ShapeType),
+ where MainShape is a shape for which the group is created, ShapeType is
+ a type of shapes in the created group.
@@ -149,7 +159,8 @@ else
-TUI Command:
+TUI Command:
+
diff --git a/idl/GEOM_Gen.idl b/idl/GEOM_Gen.idl
index 4e948ae5e..5615e85fc 100644
--- a/idl/GEOM_Gen.idl
+++ b/idl/GEOM_Gen.idl
@@ -2046,6 +2046,18 @@ module GEOM
* \param theObject is a GEOM object which IOR is requested
*/
string GetStringFromIOR (in GEOM_Object theObject);
+
+ /*!
+ * Returns a name with which a GEOM object was dumped into python script
+ * \param theStudyEntry is an entry of the GEOM object in the study
+ */
+ string GetDumpName (in string theStudyEntry);
+
+ /*!
+ * Returns all names with which a GEOM objects was dumped
+ * into python script to avoid the same names in SMESH script
+ */
+ string_array GetAllDumpNames();
};
};
diff --git a/resources/GEOMCatalog.xml b/resources/GEOMCatalog.xml
index b4afaf626..7d301670e 100644
--- a/resources/GEOMCatalog.xml
+++ b/resources/GEOMCatalog.xml
@@ -16,7 +16,7 @@
Geometry
Geom
NRI
- 2.2.0
+ 2.2.2
Geometry component
1
ModuleGeom.png
@@ -526,7 +526,7 @@
GEOM_Superv
OTHER
mkr
- 2.2.0
+ 2.2.2
Supervision wrapper for Geometry component
1
diff --git a/src/BasicGUI/BasicGUI.cxx b/src/BasicGUI/BasicGUI.cxx
index b01d6c7ae..b7ffcbf18 100644
--- a/src/BasicGUI/BasicGUI.cxx
+++ b/src/BasicGUI/BasicGUI.cxx
@@ -30,14 +30,13 @@ using namespace std;
#include "BasicGUI.h"
#include "GeometryGUI.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "OCCViewer_AISSelector.h"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_ViewWindow.h"
+#include "OCCViewer_ViewWindow.h"
+#include "OCCViewer_ViewModel.h"
+#include "OCCViewer_ViewManager.h"
#include "OCCViewer_ViewPort3d.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-
#include "utilities.h"
#include
@@ -63,10 +62,10 @@ BasicGUI* BasicGUI::myGUIObject = 0;
// function : GetBasicGUI()
// purpose : Get the only BasicGUI object [ static ]
//=======================================================================
-BasicGUI* BasicGUI::GetBasicGUI()
+BasicGUI* BasicGUI::GetBasicGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
- myGUIObject = new BasicGUI();
+ myGUIObject = new BasicGUI( parent );
}
return myGUIObject;
}
@@ -75,8 +74,8 @@ BasicGUI* BasicGUI::GetBasicGUI()
// function : BasicGUI()
// purpose : Constructor
//=======================================================================
-BasicGUI::BasicGUI() :
- GEOMGUI()
+BasicGUI::BasicGUI( GeometryGUI* parent ) :
+ GEOMGUI(parent)
{
}
@@ -94,55 +93,45 @@ BasicGUI::~BasicGUI()
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BasicGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool BasicGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch ( theCommandID )
{
case 4011: // POINT
- {
- Handle(AIS_InteractiveContext) ic;
- QAD_StudyFrame* aFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame();
- if ( aFrame->getTypeView() == VIEW_OCC)
- {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)aFrame->getRightFrame()->getViewFrame())->getViewer();
- ic = v3d->getAISContext();
- }
- aDlg = new BasicGUI_PointDlg( parent, "", Sel );
- break;
- }
+ aDlg = new BasicGUI_PointDlg( getGeometryGUI(), parent, "" );
+ break;
case 4012: // LINE
- aDlg = new BasicGUI_LineDlg(parent, "", Sel);
+ aDlg = new BasicGUI_LineDlg( getGeometryGUI(), parent, "" );
break;
case 4013: // CIRCLE
- aDlg = new BasicGUI_CircleDlg(parent, "", Sel);
+ aDlg = new BasicGUI_CircleDlg( getGeometryGUI(), parent, "");
break;
case 4014: // ELLIPSE
- aDlg = new BasicGUI_EllipseDlg(parent, "", Sel);
+ aDlg = new BasicGUI_EllipseDlg( getGeometryGUI(), parent, "" );
break;
case 4015: // ARC
- aDlg = new BasicGUI_ArcDlg(parent, "", Sel);
+ aDlg = new BasicGUI_ArcDlg( getGeometryGUI(), parent, "" );
break ;
case 4016: // VECTOR
- aDlg = new BasicGUI_VectorDlg(parent, "", Sel);
+ aDlg = new BasicGUI_VectorDlg( getGeometryGUI(), parent, "" );
break;
case 4017: // PLANE
- aDlg = new BasicGUI_PlaneDlg(parent, "", Sel);
+ aDlg = new BasicGUI_PlaneDlg( getGeometryGUI(), parent, "");
break;
case 4018: // WORKING PLANE
- aDlg = new BasicGUI_WorkingPlaneDlg(parent, "", Sel);
+ aDlg = new BasicGUI_WorkingPlaneDlg( getGeometryGUI(), parent, "" );
break;
case 4019: // CURVE
- aDlg = new BasicGUI_CurveDlg( parent, "", Sel );
+ aDlg = new BasicGUI_CurveDlg( getGeometryGUI(), parent, "" );
break;
case 4020: // REPAIR
- aDlg = new BasicGUI_MarkerDlg( parent, Sel );
+ aDlg = new BasicGUI_MarkerDlg( getGeometryGUI(), parent );
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
@@ -157,42 +146,42 @@ bool BasicGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
// function : 0nMousePress()
// purpose : [static] manage mouse events
//=================================================================================
-bool BasicGUI::OnMousePress( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* theFrame )
+bool BasicGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
{
- QDialog* aDlg = GeometryGUI::GetGeomGUI()->GetActiveDialogBox();
+ QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
// Create Point dialog, OCC viewer
- if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theFrame->getTypeView() == VIEW_OCC && pe->state() != Qt::ControlButton )
+ if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theViewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() && pe->state() != Qt::ControlButton )
{
BasicGUI_PointDlg* aPntDlg = (BasicGUI_PointDlg*) aDlg;
if ( aPntDlg->acceptMouseEvent() )
- {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)theFrame->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
-
+ {
+ OCCViewer_Viewer* anOCCViewer = ((OCCViewer_ViewManager*)(theViewWindow->getViewManager()))->getOCCViewer();
+ Handle(AIS_InteractiveContext) ic = anOCCViewer->getAISContext();
+
gp_Pnt aPnt;
ic->InitSelected();
if( pe->state() == Qt::ShiftButton )
- v3d->getAISSelector()->shiftSelect(); // Append selection
+ ic->ShiftSelect(); // Append selection
else
- v3d->getAISSelector()->select(); // New selection
+ ic->Select(); // New selection
ic->InitSelected();
if( ic->MoreSelected() )
- {
- TopoDS_Shape aShape = ic->SelectedShape();
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
- }
+ {
+ TopoDS_Shape aShape = ic->SelectedShape();
+ if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
+ aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
+ }
else
- {
- OCCViewer_ViewPort* vp = ((OCCViewer_ViewFrame*)theFrame->getRightFrame()->getViewFrame())->getViewPort();
- aPnt = ConvertClickToPoint( pe->x(), pe->y(), ((OCCViewer_ViewPort3d*)vp)->getView() );
- }
+ {
+ OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
+ aPnt = ConvertClickToPoint( pe->x(), pe->y(), vp->getView() );
+ }
aPntDlg->OnPointSelected( aPnt ); // "feed" the point to point construction dialog
- } // acceptMouseEvent()
+ } // acceptMouseEvent()
}
return false;
}
@@ -229,8 +218,8 @@ gp_Pnt BasicGUI::ConvertClickToPoint( int x, int y, Handle(V3d_View) aView)
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BasicGUI::GetBasicGUI();
+ return BasicGUI::GetBasicGUI( parent );
}
}
diff --git a/src/BasicGUI/BasicGUI.h b/src/BasicGUI/BasicGUI.h
index 418f446ed..29fbf1fe3 100644
--- a/src/BasicGUI/BasicGUI.h
+++ b/src/BasicGUI/BasicGUI.h
@@ -33,6 +33,7 @@
#include "GEOMBase.h"
#include
+
//=================================================================================
// class : BasicGUI
// purpose :
@@ -40,16 +41,16 @@
class BasicGUI : public GEOMGUI
{
protected:
- BasicGUI(); // hide constructor to avoid direct creation
+ BasicGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~BasicGUI();
// Get the only BasicGUI object
- static BasicGUI* GetBasicGUI();
+ static BasicGUI* GetBasicGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
- bool OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
+ bool OnMousePress(QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow);
gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) aView );
diff --git a/src/BasicGUI/BasicGUI_ArcDlg.cxx b/src/BasicGUI/BasicGUI_ArcDlg.cxx
index 2c1dbc537..06ed13b55 100644
--- a/src/BasicGUI/BasicGUI_ArcDlg.cxx
+++ b/src/BasicGUI/BasicGUI_ArcDlg.cxx
@@ -28,7 +28,13 @@
#include "BasicGUI_ArcDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
+
#include
#include
#include
@@ -47,11 +53,12 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_ArcDlg::BasicGUI_ArcDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_ArcDlg::BasicGUI_ArcDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ myGeometryGUI()
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_ARC")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ARC")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_ARC_TITLE"));
@@ -97,7 +104,7 @@ BasicGUI_ArcDlg::~BasicGUI_ArcDlg()
void BasicGUI_ArcDlg::Init()
{
/* init variables */
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = Group3Pnts->LineEdit1;
@@ -107,8 +114,8 @@ void BasicGUI_ArcDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -121,7 +128,8 @@ void BasicGUI_ArcDlg::Init()
connect(Group3Pnts->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(Group3Pnts->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_ARC" ) );
}
@@ -176,7 +184,7 @@ void BasicGUI_ArcDlg::SelectionIntoArgument()
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
@@ -186,7 +194,7 @@ void BasicGUI_ArcDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
@@ -240,9 +248,10 @@ void BasicGUI_ArcDlg::LineEditReturnPressed()
void BasicGUI_ArcDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = Group3Pnts->LineEdit1;
@@ -260,7 +269,7 @@ void BasicGUI_ArcDlg::ActivateThisDialog()
//=================================================================================
void BasicGUI_ArcDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -280,7 +289,7 @@ void BasicGUI_ArcDlg::enterEvent(QEvent* e)
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_ArcDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
@@ -289,7 +298,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_ArcDlg::createOperation()
//=================================================================================
static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
{
- return thePnt1->_is_equivalent( thePnt2 );
+ return thePnt1->_is_equivalent( thePnt2 );
}
//=================================================================================
@@ -299,7 +308,7 @@ static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Obje
bool BasicGUI_ArcDlg::isValid( QString& msg )
{
return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
+ !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
}
//=================================================================================
@@ -309,8 +318,8 @@ bool BasicGUI_ArcDlg::isValid( QString& msg )
bool BasicGUI_ArcDlg::execute( ObjectList& objects )
{
GEOM::GEOM_Object_var anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeArc( myPoint1, myPoint2, myPoint3 );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
return true;
}
@@ -320,6 +329,6 @@ bool BasicGUI_ArcDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_ArcDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_ArcDlg.h b/src/BasicGUI/BasicGUI_ArcDlg.h
index b34721521..f57313872 100644
--- a/src/BasicGUI/BasicGUI_ArcDlg.h
+++ b/src/BasicGUI/BasicGUI_ArcDlg.h
@@ -41,7 +41,7 @@ class BasicGUI_ArcDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_ArcDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
+ BasicGUI_ArcDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~BasicGUI_ArcDlg();
protected:
@@ -56,6 +56,8 @@ private :
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint1, myPoint2, myPoint3;
DlgRef_3Sel_QTD* Group3Pnts;
diff --git a/src/BasicGUI/BasicGUI_CircleDlg.cxx b/src/BasicGUI/BasicGUI_CircleDlg.cxx
index 105e3becd..503489d1b 100644
--- a/src/BasicGUI/BasicGUI_CircleDlg.cxx
+++ b/src/BasicGUI/BasicGUI_CircleDlg.cxx
@@ -28,8 +28,12 @@
#include "BasicGUI_CircleDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
#include "GEOMImpl_Types.hxx"
@@ -42,12 +46,13 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_CircleDlg::BasicGUI_CircleDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_CircleDlg::BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PV")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PNTS")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PV")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PNTS")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CIRCLE_TITLE"));
@@ -110,11 +115,11 @@ void BasicGUI_CircleDlg::Init()
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double aStep = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes & initial values */
GroupPntVecR->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, aStep, 3);
@@ -122,8 +127,8 @@ void BasicGUI_CircleDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -139,9 +144,10 @@ void BasicGUI_CircleDlg::Init()
connect(GroupPntVecR->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPntVecR->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntVecR->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntVecR->SpinBox_DX, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_CIRCLE" ) );
@@ -155,39 +161,40 @@ void BasicGUI_CircleDlg::Init()
//=================================================================================
void BasicGUI_CircleDlg::ConstructorsClicked( int constructorId )
{
- disconnect( mySelection, 0, this, 0 );
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
switch ( constructorId )
{
case 0:
{
- Group3Pnts->hide();
- resize(0, 0);
- GroupPntVecR->show();
-
- myEditCurrentArgument = GroupPntVecR->LineEdit1;
- GroupPntVecR->LineEdit1->setText("");
- GroupPntVecR->LineEdit2->setText("");
- break;
+ Group3Pnts->hide();
+ resize(0, 0);
+ GroupPntVecR->show();
+
+ myEditCurrentArgument = GroupPntVecR->LineEdit1;
+ GroupPntVecR->LineEdit1->setText("");
+ GroupPntVecR->LineEdit2->setText("");
+ break;
}
- case 1:
- {
- GroupPntVecR->hide();
- resize( 0, 0 );
- Group3Pnts->show();
-
- myEditCurrentArgument = Group3Pnts->LineEdit1;
- Group3Pnts->LineEdit1->setText("");
- Group3Pnts->LineEdit2->setText("");
- Group3Pnts->LineEdit3->setText("");
- break;
+ case 1:
+ {
+ GroupPntVecR->hide();
+ resize( 0, 0 );
+ Group3Pnts->show();
+
+ myEditCurrentArgument = Group3Pnts->LineEdit1;
+ Group3Pnts->LineEdit1->setText("");
+ Group3Pnts->LineEdit2->setText("");
+ Group3Pnts->LineEdit3->setText("");
+ break;
}
}
myEditCurrentArgument->setFocus();
- globalSelection( GEOM_POINT );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ globalSelection( GEOM_POINT );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
//=================================================================================
@@ -231,7 +238,7 @@ void BasicGUI_CircleDlg::SelectionIntoArgument()
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPntVecR->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPntVecR->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
@@ -243,7 +250,7 @@ void BasicGUI_CircleDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
@@ -308,9 +315,10 @@ void BasicGUI_CircleDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_POINT );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
ConstructorsClicked( getConstructorId() );
}
@@ -332,7 +340,7 @@ void BasicGUI_CircleDlg::enterEvent(QEvent* e)
//=================================================================================
void BasicGUI_CircleDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -360,7 +368,7 @@ double BasicGUI_CircleDlg::getRadius() const
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_CircleDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
@@ -369,7 +377,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_CircleDlg::createOperation()
//=================================================================================
static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
{
- return thePnt1->_is_equivalent( thePnt2 );
+ return thePnt1->_is_equivalent( thePnt2 );
}
//=================================================================================
@@ -378,13 +386,13 @@ static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Obje
//=================================================================================
bool BasicGUI_CircleDlg::isValid( QString& msg )
{
- const int id = getConstructorId();
- if ( id == 0 )
- return !myPoint->_is_nil() && !myDir->_is_nil() && getRadius() > 0;
- else if ( id == 1 )
- return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
- return false;
+ const int id = getConstructorId();
+ if ( id == 0 )
+ return !myPoint->_is_nil() && !myDir->_is_nil() && getRadius() > 0;
+ else if ( id == 1 )
+ return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
+ !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
+ return false;
}
//=================================================================================
@@ -394,9 +402,9 @@ bool BasicGUI_CircleDlg::isValid( QString& msg )
bool BasicGUI_CircleDlg::execute( ObjectList& objects )
{
bool res = false;
-
+
GEOM::GEOM_Object_var anObj;
-
+
switch ( getConstructorId() )
{
case 0 :
@@ -408,10 +416,10 @@ bool BasicGUI_CircleDlg::execute( ObjectList& objects )
res = true;
break;
}
-
+
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
-
+
return res;
}
@@ -421,7 +429,7 @@ bool BasicGUI_CircleDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_CircleDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_CircleDlg.h b/src/BasicGUI/BasicGUI_CircleDlg.h
index a44c5df83..69fc638b1 100644
--- a/src/BasicGUI/BasicGUI_CircleDlg.h
+++ b/src/BasicGUI/BasicGUI_CircleDlg.h
@@ -35,8 +35,8 @@
#include "BasicGUI.h"
-#include "GEOM_EdgeFilter.hxx"
-#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_EdgeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
#include
@@ -49,7 +49,7 @@ class BasicGUI_CircleDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_CircleDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_CircleDlg();
protected:
@@ -65,6 +65,8 @@ private :
void enterEvent(QEvent* e);
double getRadius() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint, myDir, myPoint1, myPoint2, myPoint3;
DlgRef_2Sel1Spin* GroupPntVecR;
diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx
index 245fe07a8..e5c92ee2e 100644
--- a/src/BasicGUI/BasicGUI_CurveDlg.cxx
+++ b/src/BasicGUI/BasicGUI_CurveDlg.cxx
@@ -27,8 +27,13 @@
#include "BasicGUI_CurveDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
+
#include "utilities.h"
#include "SALOME_ListIteratorOfListIO.hxx"
@@ -45,14 +50,15 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_CurveDlg::BasicGUI_CurveDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_CurveDlg::BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POLYLINE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SPLINE")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BEZIER")));
-
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POLYLINE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SPLINE")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BEZIER")));
+
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CURVE_TITLE"));
@@ -100,8 +106,8 @@ void BasicGUI_CurveDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -110,7 +116,8 @@ void BasicGUI_CurveDlg::Init()
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_CURVE" ) );
ConstructorsClicked( 0 );
@@ -201,22 +208,22 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
Standard_Boolean aRes = Standard_False;
int i = 0;
- myPoints->length( mySelection->IObjectCount() ); // this length may be greater than number of objects,
+ myPoints->length( IObjectCount() ); // this length may be greater than number of objects,
// that will actually be put into myPoints
- for ( SALOME_ListIteratorOfListIO anIt( mySelection->StoredIObjects() ); anIt.More(); anIt.Next() )
+ for ( SALOME_ListIteratorOfListIO anIt( selectedIO() ); anIt.More(); anIt.Next() )
{
GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( anIt.Value(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
//TopoDS_Shape aPointShape;
//if ( myGeomBase->GetShape( aSelectedObject, aPointShape, TopAbs_VERTEX ) )
- myPoints[i++] = aSelectedObject;
+ myPoints[i++] = aSelectedObject;
}
}
myPoints->length( i ); // this is the right length, smaller of equal to the previously set
if ( i )
GroupPoints->LineEdit1->setText( QString::number( i ) + "_" + tr( "GEOM_POINT" ) + tr( "_S_" ) );
-
+
displayPreview();
}
@@ -228,9 +235,10 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
void BasicGUI_CurveDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
ConstructorsClicked( getConstructorId() );
@@ -242,7 +250,7 @@ void BasicGUI_CurveDlg::ActivateThisDialog()
//=================================================================================
void BasicGUI_CurveDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -262,7 +270,7 @@ void BasicGUI_CurveDlg::enterEvent(QEvent* e)
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_CurveDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
@@ -312,7 +320,7 @@ bool BasicGUI_CurveDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_CurveDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_CurveDlg.h b/src/BasicGUI/BasicGUI_CurveDlg.h
index 24cee9eaf..a54e07dd4 100644
--- a/src/BasicGUI/BasicGUI_CurveDlg.h
+++ b/src/BasicGUI/BasicGUI_CurveDlg.h
@@ -33,7 +33,7 @@
#include "BasicGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
//=================================================================================
// class : BasicGUI_CurveDlg
@@ -44,7 +44,7 @@ class BasicGUI_CurveDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_CurveDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_CurveDlg();
protected:
@@ -59,6 +59,8 @@ private :
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
DlgRef_1Sel_QTD* GroupPoints;
GEOM::ListOfGO_var myPoints;
diff --git a/src/BasicGUI/BasicGUI_EllipseDlg.cxx b/src/BasicGUI/BasicGUI_EllipseDlg.cxx
index 9f8d5bb90..85cf7a7e1 100644
--- a/src/BasicGUI/BasicGUI_EllipseDlg.cxx
+++ b/src/BasicGUI/BasicGUI_EllipseDlg.cxx
@@ -26,8 +26,13 @@
// $Header$
#include "BasicGUI_EllipseDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
#include "GEOMImpl_Types.hxx"
@@ -42,11 +47,11 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_ELLIPSE_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ELLIPSE_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_ELLIPSE_TITLE"));
@@ -96,11 +101,12 @@ void BasicGUI_EllipseDlg::Init()
myPoint = myDir = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
double aMajorR( 200. ), aMinorR( 100. );
/* min, max, step and decimals for spin boxes & initial values */
@@ -111,8 +117,8 @@ void BasicGUI_EllipseDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -126,10 +132,11 @@ void BasicGUI_EllipseDlg::Init()
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupPoints->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_ELLIPSE" ) );
}
@@ -184,7 +191,7 @@ void BasicGUI_EllipseDlg::SelectionIntoArgument()
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
@@ -192,7 +199,7 @@ void BasicGUI_EllipseDlg::SelectionIntoArgument()
}
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
@@ -246,7 +253,8 @@ void BasicGUI_EllipseDlg::LineEditReturnPressed()
void BasicGUI_EllipseDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
@@ -264,7 +272,7 @@ void BasicGUI_EllipseDlg::ActivateThisDialog()
//=================================================================================
void BasicGUI_EllipseDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -293,7 +301,7 @@ void BasicGUI_EllipseDlg::ValueChangedInSpinBox(double newValue)
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_EllipseDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
@@ -334,7 +342,7 @@ bool BasicGUI_EllipseDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_EllipseDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_EllipseDlg.h b/src/BasicGUI/BasicGUI_EllipseDlg.h
index 21491d29e..8a1dcf841 100644
--- a/src/BasicGUI/BasicGUI_EllipseDlg.h
+++ b/src/BasicGUI/BasicGUI_EllipseDlg.h
@@ -33,8 +33,8 @@
#include "BasicGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
-#include "GEOM_EdgeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_EdgeFilter.hxx"
#include
//=================================================================================
@@ -46,7 +46,7 @@ class BasicGUI_EllipseDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_EllipseDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_EllipseDlg();
protected:
@@ -61,6 +61,8 @@ private :
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint, myDir;
DlgRef_2Sel2Spin* GroupPoints;
diff --git a/src/BasicGUI/BasicGUI_LineDlg.cxx b/src/BasicGUI/BasicGUI_LineDlg.cxx
index fe435dc53..308f66146 100644
--- a/src/BasicGUI/BasicGUI_LineDlg.cxx
+++ b/src/BasicGUI/BasicGUI_LineDlg.cxx
@@ -28,7 +28,12 @@
#include "BasicGUI_LineDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
#include "GEOMImpl_Types.hxx"
@@ -43,11 +48,11 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_LineDlg::BasicGUI_LineDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_LineDlg::BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_LINE_2P")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_DLG_LINE_2P")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_LINE_TITLE"));
@@ -94,13 +99,13 @@ void BasicGUI_LineDlg::Init()
myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -111,8 +116,9 @@ void BasicGUI_LineDlg::Init()
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+
initName( tr("GEOM_LINE") );
}
@@ -144,7 +150,7 @@ bool BasicGUI_LineDlg::ClickOnApply()
{
if ( !onAccept() )
return false;
-
+
initName();
return true;
}
@@ -158,7 +164,7 @@ void BasicGUI_LineDlg::SelectionIntoArgument()
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
@@ -167,14 +173,14 @@ void BasicGUI_LineDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = aSelectedObject;
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = aSelectedObject;
}
-
+
displayPreview();
}
@@ -214,9 +220,10 @@ void BasicGUI_LineDlg::LineEditReturnPressed()
void BasicGUI_LineDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = GroupPoints->LineEdit1;
@@ -233,7 +240,7 @@ void BasicGUI_LineDlg::ActivateThisDialog()
//=================================================================================
void BasicGUI_LineDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -253,7 +260,7 @@ void BasicGUI_LineDlg::enterEvent(QEvent* e)
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_LineDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
@@ -272,8 +279,8 @@ bool BasicGUI_LineDlg::isValid( QString& msg )
bool BasicGUI_LineDlg::execute( ObjectList& objects )
{
GEOM::GEOM_Object_var anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakeLineTwoPnt( myPoint1, myPoint2 );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
return true;
}
@@ -283,7 +290,7 @@ bool BasicGUI_LineDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_LineDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_LineDlg.h b/src/BasicGUI/BasicGUI_LineDlg.h
index 82daf2f61..92d373c99 100644
--- a/src/BasicGUI/BasicGUI_LineDlg.h
+++ b/src/BasicGUI/BasicGUI_LineDlg.h
@@ -42,7 +42,7 @@ class BasicGUI_LineDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_LineDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_LineDlg();
protected:
@@ -57,6 +57,8 @@ private :
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint1;
GEOM::GEOM_Object_var myPoint2;
diff --git a/src/BasicGUI/BasicGUI_MarkerDlg.cxx b/src/BasicGUI/BasicGUI_MarkerDlg.cxx
index 3cabd35f8..a276a0655 100644
--- a/src/BasicGUI/BasicGUI_MarkerDlg.cxx
+++ b/src/BasicGUI/BasicGUI_MarkerDlg.cxx
@@ -28,11 +28,14 @@
#include "BasicGUI_MarkerDlg.h"
#include "DlgRef_SpinBox.h"
-#include "QAD_Desktop.h"
-#include "QAD_RightFrame.h"
-#include "VTKViewer_ViewFrame.h"
-#include "OCCViewer_ViewFrame.h"
-#include "QAD_Config.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
+
#include "GEOMImpl_Types.hxx"
#include "utilities.h"
@@ -54,14 +57,14 @@
// class : BasicGUI_MarkerDlg()
// purpose : Constructor
//=================================================================================
-BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( QWidget* theParent, SALOME_Selection* theSel )
-: GEOMBase_Skeleton( theParent, "BasicGUI_MarkerDlg", theSel, false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( GeometryGUI* theGeometryGUI, QWidget* theParent )
+: GEOMBase_Skeleton( theParent, "BasicGUI_MarkerDlg", false,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap iconCS1 ( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_MARKER" ) ) );
- QPixmap iconCS2 ( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_MARKER2" ) ) );
- QPixmap iconCS3 ( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_MARKER3" ) ) );
- QPixmap iconSelect( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
+ QPixmap iconCS1 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER" ) ) );
+ QPixmap iconCS2 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER2" ) ) );
+ QPixmap iconCS3 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER3" ) ) );
+ QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
setCaption( tr( "CAPTION" ) );
@@ -116,7 +119,7 @@ BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( QWidget* theParent, SALOME_Selection* th
Layout1->addWidget( Group1, 2, 0 );
Layout1->addWidget( Group2, 2, 0 );
- Init( theSel );
+ Init();
}
@@ -133,7 +136,7 @@ BasicGUI_MarkerDlg::~BasicGUI_MarkerDlg()
// function : Init()
// purpose :
//=================================================================================
-void BasicGUI_MarkerDlg::Init( SALOME_Selection* theSel )
+void BasicGUI_MarkerDlg::Init()
{
myBlockPreview = false;
myConstructorId = -1;
@@ -142,9 +145,7 @@ void BasicGUI_MarkerDlg::Init( SALOME_Selection* theSel )
Group2->LineEdit1->setReadOnly( true );
Group2->LineEdit2->setReadOnly( true );
Group2->LineEdit3->setReadOnly( true );
-
- GeometryGUI* aGeomGUI = GeometryGUI::GetGeomGUI();
-
+
connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
connect(Group1->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(Group2->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
@@ -157,20 +158,23 @@ void BasicGUI_MarkerDlg::Init( SALOME_Selection* theSel )
connect(Group2->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( onClose() ) );
- connect( aGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) );
- connect( aGeomGUI, SIGNAL( SignalCloseAllDialogs() ), this, SLOT( onClose() ) );
+ connect( myGeometryGUI, SIGNAL( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) );
+ connect( myGeometryGUI, SIGNAL( SignalCloseAllDialogs() ), this, SLOT( onClose() ) );
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( onOk() ) );
connect( buttonApply, SIGNAL( clicked() ), this, SLOT( onApply() ) );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
initName( tr( "LCS_NAME" ) );
- QString aStr = QAD_CONFIG->getSetting( "Geometry:SettingsGeomStep" );
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
{
- anIter.data()->RangeStepAndValidator( -999.999, 999.999, aStr.toDouble(), 3 );
+ anIter.data()->RangeStepAndValidator( -999.999, 999.999, step, 3 );
connect( anIter.data(), SIGNAL( valueChanged( double ) ),
this, SLOT( onValueChanged( double ) ) );
}
@@ -184,6 +188,9 @@ void BasicGUI_MarkerDlg::Init( SALOME_Selection* theSel )
ConstructorsClicked( 0 );
+
+ //@
+ /*
QAD_ViewFrame* aFrame = QAD_Application::getDesktop()->getActiveApp()->
getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
@@ -197,6 +204,7 @@ void BasicGUI_MarkerDlg::Init( SALOME_Selection* theSel )
OCCViewer_ViewFrame* aOCCFrame = dynamic_cast( aFrame );
if ( aOCCFrame )
aOCCFrame->AdjustTrihedrons( true );
+ */
}
//=================================================================================
@@ -215,7 +223,7 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
myConstructorId = constructorId;
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch (constructorId)
{
@@ -257,7 +265,8 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
}
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
onSelectionDone();
}
@@ -301,11 +310,11 @@ bool BasicGUI_MarkerDlg::onApply()
//=================================================================================
void BasicGUI_MarkerDlg::onSelectionDone0()
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aRes = Standard_False;
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aRes && !aSelectedObj->_is_nil() )
@@ -336,24 +345,22 @@ void BasicGUI_MarkerDlg::onSelectionDone0()
myData[ DX2 ]->SetValue( aYDir.X() );
myData[ DY2 ]->SetValue( aYDir.Y() );
myData[ DZ2 ]->SetValue( aYDir.Z() );
- //mySelection->ClearIObjects();
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
}
}
else
{
- if ( mySelection->HasIndex( anIO ) )
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+ if ( aMap.Extent() == 1 )
{
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
- if ( aMap.Extent() == 1 )
- {
- int anIndex = aMap( 1 );
- TopTools_IndexedMapOfShape aShapes;
- TopExp::MapShapes( aShape, aShapes );
- aShape = aShapes.FindKey( anIndex );
- //mySelection->ClearIObjects();
- }
- }
+ int anIndex = aMap( 1 );
+ TopTools_IndexedMapOfShape aShapes;
+ TopExp::MapShapes( aShape, aShapes );
+ aShape = aShapes.FindKey( anIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
+ }
+
if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
{
@@ -387,9 +394,9 @@ void BasicGUI_MarkerDlg::onSelectionDone()
myEditCurrentArgument->setText("");
QString aName;
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aRes = Standard_False;
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( !CORBA::is_nil( aSelectedObj ) && aRes ) {
@@ -397,16 +404,18 @@ void BasicGUI_MarkerDlg::onSelectionDone()
TopoDS_Shape aShape;
if ( myGeomBase->GetShape( aSelectedObj, aShape, TopAbs_SHAPE ) ) {
GEOM::short_array anIndexes;
- if ( mySelection->HasIndex( anIO ) ) {
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
+
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+
+ if ( !aMap.IsEmpty() ) {
int anIndex = aMap( 1 );
TopTools_IndexedMapOfShape aShapes;
TopExp::MapShapes( aShape, aShapes );
aShape = aShapes.FindKey( anIndex );
}
- if ( getConstructorId() == 1 ) {
+ if ( getConstructorId() == 1 ) {
if ( !aShape.IsNull() ) {
gp_Pnt aPnt;
if (aShape.ShapeType() == TopAbs_VERTEX) {
@@ -423,7 +432,7 @@ void BasicGUI_MarkerDlg::onSelectionDone()
aPnt = aSystem.CentreOfMass();
}
-
+
gp_Ax3 anAx3;
anAx3.Transform(aShape.Location().Transformation());
if(aShape.ShapeType() == TopAbs_FACE) {
@@ -434,33 +443,33 @@ void BasicGUI_MarkerDlg::onSelectionDone()
anAx3 = aPln.Position();
}
}
-
+
gp_Dir aDirX = anAx3.XDirection();
gp_Dir aDirY = anAx3.YDirection();
-
+
myData[ X ]->SetValue( aPnt.X() );
myData[ Y ]->SetValue( aPnt.Y() );
myData[ Z ]->SetValue( aPnt.Z() );
-
+
myData[ DX1 ]->SetValue( aDirX.X() );
myData[ DY1 ]->SetValue( aDirX.Y() );
myData[ DZ1 ]->SetValue( aDirX.Z() );
-
+
myData[ DX2 ]->SetValue( aDirY.X() );
myData[ DY2 ]->SetValue( aDirY.Y() );
myData[ DZ2 ]->SetValue( aDirY.Z() );
-
+
myEditCurrentArgument->setText( aName );
}
else {
myData[ X ]->SetValue( 0 );
myData[ Y ]->SetValue( 0 );
myData[ Z ]->SetValue( 0 );
-
+
myData[ DX1 ]->SetValue( 0 );
myData[ DY1 ]->SetValue( 0 );
myData[ DZ1 ]->SetValue( 0 );
-
+
myData[ DX2 ]->SetValue( 0 );
myData[ DY2 ]->SetValue( 0 );
myData[ DZ2 ]->SetValue( 0 );
@@ -486,7 +495,7 @@ void BasicGUI_MarkerDlg::onSelectionDone()
gp_Pnt aP1 = BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(aShape)));
gp_Pnt aP2 = BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(aShape)));
gp_Dir aDir(gp_Vec(aP1, aP2));
-
+
myData[ DX1 ]->SetValue( aDir.X() );
myData[ DY1 ]->SetValue( aDir.Y() );
myData[ DZ1 ]->SetValue( aDir.Z() );
@@ -503,7 +512,7 @@ void BasicGUI_MarkerDlg::onSelectionDone()
gp_Pnt aP1 = BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(aShape)));
gp_Pnt aP2 = BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(aShape)));
gp_Dir aDir(gp_Vec(aP1, aP2));
-
+
myData[ DX2 ]->SetValue( aDir.X() );
myData[ DY2 ]->SetValue( aDir.Y() );
myData[ DZ2 ]->SetValue( aDir.Z() );
@@ -524,11 +533,11 @@ void BasicGUI_MarkerDlg::onSelectionDone()
myData[ X ]->SetValue( 0 );
myData[ Y ]->SetValue( 0 );
myData[ Z ]->SetValue( 0 );
-
+
myData[ DX1 ]->SetValue( 0 );
myData[ DY1 ]->SetValue( 0 );
myData[ DZ1 ]->SetValue( 0 );
-
+
myData[ DX2 ]->SetValue( 0 );
myData[ DY2 ]->SetValue( 0 );
myData[ DZ2 ]->SetValue( 0 );
@@ -551,7 +560,7 @@ void BasicGUI_MarkerDlg::onSelectionDone()
}
}
}
-
+
displayPreview();
}
@@ -603,7 +612,8 @@ void BasicGUI_MarkerDlg::LineEditReturnPressed()
void BasicGUI_MarkerDlg::onActivate()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
ConstructorsClicked( getConstructorId() );
}
@@ -633,7 +643,7 @@ void BasicGUI_MarkerDlg::enterEvent(QEvent* e)
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_MarkerDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
diff --git a/src/BasicGUI/BasicGUI_MarkerDlg.h b/src/BasicGUI/BasicGUI_MarkerDlg.h
index 127685c42..2f76d8063 100644
--- a/src/BasicGUI/BasicGUI_MarkerDlg.h
+++ b/src/BasicGUI/BasicGUI_MarkerDlg.h
@@ -46,9 +46,9 @@ private:
typedef QMap< int, DlgRef_SpinBox* > DataMap;
public:
- BasicGUI_MarkerDlg( QWidget*, SALOME_Selection* );
+ BasicGUI_MarkerDlg( GeometryGUI* theGeometryGUI, QWidget* );
virtual ~BasicGUI_MarkerDlg();
- void Init( SALOME_Selection* );
+ void Init();
protected:
virtual GEOM::GEOM_IOperations_ptr createOperation();
@@ -64,6 +64,8 @@ private :
void enterEvent( QEvent* e );
void onSelectionDone0();
+ GeometryGUI* myGeometryGUI;
+
private slots:
void onOk();
void onClose();
diff --git a/src/BasicGUI/BasicGUI_PlaneDlg.cxx b/src/BasicGUI/BasicGUI_PlaneDlg.cxx
index a8298c652..eee53f1d4 100644
--- a/src/BasicGUI/BasicGUI_PlaneDlg.cxx
+++ b/src/BasicGUI/BasicGUI_PlaneDlg.cxx
@@ -27,8 +27,13 @@
// $Header$
#include "BasicGUI_PlaneDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
#include "GEOMImpl_Types.hxx"
@@ -41,13 +46,13 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_3PNTS")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_FACE")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_3PNTS")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_FACE")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PLANE_TITLE"));
@@ -118,11 +123,12 @@ void BasicGUI_PlaneDlg::Init()
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = myFace = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double aStep = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
double aTrimSize = 2000.0;
/* min, max, step and decimals for spin boxes */
@@ -135,8 +141,8 @@ void BasicGUI_PlaneDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -160,11 +166,11 @@ void BasicGUI_PlaneDlg::Init()
connect(Group3Pnts->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupFace->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntDir->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Pnts->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupFace->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntDir->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Pnts->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupFace->SpinBox_DX, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_PLANE" ) );
@@ -180,7 +186,7 @@ void BasicGUI_PlaneDlg::Init()
//=================================================================================
void BasicGUI_PlaneDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = myFace = GEOM::GEOM_Object::_nil();
switch ( constructorId )
@@ -233,7 +239,8 @@ void BasicGUI_PlaneDlg::ConstructorsClicked(int constructorId)
}
myEditCurrentArgument->setFocus();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
@@ -279,7 +286,7 @@ void BasicGUI_PlaneDlg::SelectionIntoArgument()
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPntDir->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPntDir->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
@@ -292,7 +299,7 @@ void BasicGUI_PlaneDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
@@ -363,9 +370,10 @@ void BasicGUI_PlaneDlg::LineEditReturnPressed()
void BasicGUI_PlaneDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
ConstructorsClicked( getConstructorId() );
}
@@ -376,7 +384,7 @@ void BasicGUI_PlaneDlg::ActivateThisDialog()
//=================================================================================
void BasicGUI_PlaneDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -421,7 +429,7 @@ double BasicGUI_PlaneDlg::getSize() const
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_PlaneDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
@@ -493,7 +501,7 @@ bool BasicGUI_PlaneDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_PlaneDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_PlaneDlg.h b/src/BasicGUI/BasicGUI_PlaneDlg.h
index e333a91d8..ba4f50f05 100644
--- a/src/BasicGUI/BasicGUI_PlaneDlg.h
+++ b/src/BasicGUI/BasicGUI_PlaneDlg.h
@@ -44,7 +44,7 @@ class BasicGUI_PlaneDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_PlaneDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_PlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_PlaneDlg();
protected:
@@ -60,6 +60,8 @@ private :
void enterEvent(QEvent* e);
double getSize() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint, myDir, myPoint1, myPoint2, myPoint3, myFace;
DlgRef_2Sel1Spin* GroupPntDir;
diff --git a/src/BasicGUI/BasicGUI_PointDlg.cxx b/src/BasicGUI/BasicGUI_PointDlg.cxx
index d5f72b81b..7b349ef0a 100644
--- a/src/BasicGUI/BasicGUI_PointDlg.cxx
+++ b/src/BasicGUI/BasicGUI_PointDlg.cxx
@@ -29,13 +29,14 @@
using namespace std;
#include "BasicGUI_PointDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include "GEOMImpl_Types.hxx"
+#include
+
#include "utilities.h"
#include
@@ -54,13 +55,13 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_PointDlg::BasicGUI_PointDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl )
+BasicGUI_PointDlg::BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl ), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POINT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POINT_EDGE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POINT_REF")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_EDGE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_REF")));
setCaption(tr("GEOM_POINT_TITLE"));
@@ -146,12 +147,12 @@ void BasicGUI_PointDlg::Init()
myEditCurrentArgument = 0;
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
/* min, max, step and decimals for spin boxes */
GroupXYZ->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
GroupXYZ->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
@@ -173,8 +174,8 @@ void BasicGUI_PointDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -191,18 +192,19 @@ void BasicGUI_PointDlg::Init()
connect(GroupRefPoint->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupRefPoint->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupOnCurve->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DZ, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DZ, SLOT(SetStep(double)));
-
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupOnCurve->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+
initName( tr("GEOM_VERTEX") );
-
+
ConstructorsClicked( 0 );
}
@@ -292,7 +294,7 @@ bool BasicGUI_PointDlg::ClickOnApply()
{
if ( !onAccept() )
return false;
-
+
initName();
ConstructorsClicked( getConstructorId() );
return true;
@@ -315,49 +317,48 @@ void BasicGUI_PointDlg::ClickOnCancel()
//=================================================================================
void BasicGUI_PointDlg::SelectionIntoArgument()
{
- const int id = getConstructorId();
+ const int id = getConstructorId();
if ( ( id == 1 || id == 2 ) && myEditCurrentArgument != 0 )
- {
- myEditCurrentArgument->setText("");
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
- myRefPoint = myEdge = GEOM::GEOM_Object::_nil();
- }
+ {
+ myEditCurrentArgument->setText("");
+ myX->setText( "" );
+ myY->setText( "" );
+ myZ->setText( "" );
+ myRefPoint = myEdge = GEOM::GEOM_Object::_nil();
+ }
- if ( mySelection->IObjectCount() == 1 )
- {
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
+ if ( IObjectCount() == 1 )
+ {
+ Standard_Boolean aRes = Standard_False;
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
+ if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
- if ( id == 0 )
- {
- // get CORBA reference to data object
- TopoDS_Shape aShape = GeometryGUI::GetGeomGUI()->GetShapeReader().GetShape(
- GeometryGUI::GetGeomGUI()->GetGeomGen(), aSelectedObject );
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- {
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
- GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
- GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
- }
- }
- else if ( id == 1 )
- {
- myRefPoint = aSelectedObject;
- GroupRefPoint->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
- }
- else if ( id == 2 )
- {
- myEdge = aSelectedObject;
- GroupOnCurve->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
- }
+ if ( id == 0 )
+ {
+ // get CORBA reference to data object
+ TopoDS_Shape aShape = myGeometryGUI->GetShapeReader().GetShape( myGeometryGUI->GetGeomGen(), aSelectedObject );
+ if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
+ {
+ gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
+ GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
+ GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
+ GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
+ }
+ }
+ else if ( id == 1 )
+ {
+ myRefPoint = aSelectedObject;
+ GroupRefPoint->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
+ }
+ else if ( id == 2 )
+ {
+ myEdge = aSelectedObject;
+ GroupOnCurve->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
+ }
}
- }
-
+ }
+
displayPreview();
}
@@ -370,10 +371,10 @@ void BasicGUI_PointDlg::LineEditReturnPressed()
{
QLineEdit* send = (QLineEdit*)sender();
if ( send == GroupRefPoint->LineEdit1 || send == GroupOnCurve->LineEdit1 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
+ {
+ myEditCurrentArgument = send;
+ GEOMBase_Skeleton::LineEditReturnPressed();
+ }
}
@@ -396,7 +397,7 @@ void BasicGUI_PointDlg::SetEditCurrentArgument()
{
GroupOnCurve->LineEdit1->setFocus();
myEditCurrentArgument = GroupOnCurve->LineEdit1;
-
+
globalSelection( GEOM_EDGE );
}
}
@@ -420,7 +421,7 @@ void BasicGUI_PointDlg::enterEvent(QEvent* e)
void BasicGUI_PointDlg::ActivateThisDialog( )
{
GEOMBase_Skeleton::ActivateThisDialog();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
ConstructorsClicked( getConstructorId() );
}
@@ -431,7 +432,7 @@ void BasicGUI_PointDlg::ActivateThisDialog( )
//=================================================================================
void BasicGUI_PointDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -476,7 +477,7 @@ void BasicGUI_PointDlg::OnPointSelected( const gp_Pnt& thePnt )
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_PointDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
@@ -485,14 +486,14 @@ GEOM::GEOM_IOperations_ptr BasicGUI_PointDlg::createOperation()
//=================================================================================
bool BasicGUI_PointDlg::isValid( QString& msg )
{
- const int id = getConstructorId();
- if ( id == 0 )
- return true;
- else if ( id == 1 )
- return !myRefPoint->_is_nil();
- else if ( id == 2 )
- return !myEdge->_is_nil();
- return false;
+ const int id = getConstructorId();
+ if ( id == 0 )
+ return true;
+ else if ( id == 1 )
+ return !myRefPoint->_is_nil();
+ else if ( id == 2 )
+ return !myEdge->_is_nil();
+ return false;
}
//=================================================================================
@@ -523,8 +524,8 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects )
double dy = GroupRefPoint->SpinBox_DY->GetValue();
double dz = GroupRefPoint->SpinBox_DZ->GetValue();
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointWithReference( myRefPoint, dx, dy, dz );
- res = true;
+ anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointWithReference( myRefPoint, dx, dy, dz );
+ res = true;
break;
}
case 2 :
@@ -534,26 +535,26 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects )
}
if ( getConstructorId() == 1 || getConstructorId() == 2 )
- {
- TopoDS_Shape aShape;
- if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
{
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- myX->setText( QString( "%1" ).arg( aPnt.X() ) );
- myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
- myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
+ TopoDS_Shape aShape;
+ if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
+ {
+ gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
+ myX->setText( QString( "%1" ).arg( aPnt.X() ) );
+ myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
+ myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
+ }
+ else
+ {
+ myX->setText( "" );
+ myY->setText( "" );
+ myZ->setText( "" );
+ }
}
- else
- {
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
- }
- }
-
+
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
-
+
return res;
}
@@ -563,6 +564,6 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects )
//=================================================================================
void BasicGUI_PointDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_PointDlg.h b/src/BasicGUI/BasicGUI_PointDlg.h
index 48b248db8..f149f816a 100644
--- a/src/BasicGUI/BasicGUI_PointDlg.h
+++ b/src/BasicGUI/BasicGUI_PointDlg.h
@@ -46,7 +46,7 @@ class BasicGUI_PointDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_PointDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_PointDlg();
@@ -66,6 +66,8 @@ private :
void enterEvent(QEvent* e);
double getParameter() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myEdge;
GEOM::GEOM_Object_var myRefPoint;
diff --git a/src/BasicGUI/BasicGUI_VectorDlg.cxx b/src/BasicGUI/BasicGUI_VectorDlg.cxx
index 0af637cb3..2dc5bd6e1 100644
--- a/src/BasicGUI/BasicGUI_VectorDlg.cxx
+++ b/src/BasicGUI/BasicGUI_VectorDlg.cxx
@@ -29,8 +29,12 @@
using namespace std;
#include "BasicGUI_VectorDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
#include "GEOMImpl_Types.hxx"
@@ -43,15 +47,15 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_VectorDlg::BasicGUI_VectorDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl )
+BasicGUI_VectorDlg::BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl ), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_2P")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_2P")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_VECTOR_TITLE"));
-
+
/***************************************************************/
GroupConstructors->setTitle(tr("GEOM_VECTOR"));
RadioButton1->setPixmap(image0);
@@ -106,9 +110,9 @@ void BasicGUI_VectorDlg::Init()
myPoint2 = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
/* min, max, step and decimals for spin boxes */
GroupDimensions->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
@@ -123,8 +127,8 @@ void BasicGUI_VectorDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
@@ -140,13 +144,14 @@ void BasicGUI_VectorDlg::Init()
connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupDimensions->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
connect(GroupDimensions->CheckBox1, SIGNAL(stateChanged(int)), this, SLOT(ReverseVector(int)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr("GEOM_VECTOR") );
@@ -161,7 +166,7 @@ void BasicGUI_VectorDlg::Init()
//=================================================================================
void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
myPoint1 = GEOM::GEOM_Object::_nil();
myPoint2 = GEOM::GEOM_Object::_nil();
@@ -178,7 +183,8 @@ void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
GroupPoints->LineEdit2->setText("");
globalSelection( GEOM_POINT );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1:
@@ -246,7 +252,7 @@ void BasicGUI_VectorDlg::SelectionIntoArgument()
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 )
myPoint1 = GEOM::GEOM_Object::_nil();
@@ -257,7 +263,7 @@ void BasicGUI_VectorDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
@@ -304,7 +310,8 @@ void BasicGUI_VectorDlg::LineEditReturnPressed()
void BasicGUI_VectorDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
@@ -315,7 +322,7 @@ void BasicGUI_VectorDlg::ActivateThisDialog()
//=================================================================================
void BasicGUI_VectorDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -361,7 +368,7 @@ void BasicGUI_VectorDlg::ReverseVector(int state)
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_VectorDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
diff --git a/src/BasicGUI/BasicGUI_VectorDlg.h b/src/BasicGUI/BasicGUI_VectorDlg.h
index 02c5e0ef2..76bd9b8be 100644
--- a/src/BasicGUI/BasicGUI_VectorDlg.h
+++ b/src/BasicGUI/BasicGUI_VectorDlg.h
@@ -34,7 +34,7 @@
#include "DlgRef_3Spin1Check.h"
#include "BasicGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
//=================================================================================
// class : BasicGUI_VectorDlg
@@ -45,7 +45,7 @@ class BasicGUI_VectorDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_VectorDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_VectorDlg();
protected:
@@ -58,6 +58,8 @@ private :
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint1;
GEOM::GEOM_Object_var myPoint2;
diff --git a/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx b/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
index 991fc997a..7aa6b1a30 100644
--- a/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
+++ b/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
@@ -30,11 +30,10 @@ using namespace std;
#include "GEOMBase.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewPort3d.h"
-#include "QAD_StudyFrame.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include
#include
@@ -52,6 +51,7 @@ using namespace std;
#include "GEOMImpl_Types.hxx"
#include
+#include
//=================================================================================
// class : BasicGUI_WorkingPlaneDlg()
@@ -60,13 +60,13 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(GeometryGUI* theGeometryGUI , QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_FACE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_VECTOR")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_ORIGIN")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_FACE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_VECTOR")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_ORIGIN")));
setCaption(tr("GEOM_WPLANE_TITLE"));
@@ -121,9 +121,9 @@ void BasicGUI_WorkingPlaneDlg::Init()
{
/* init variables */
myEditCurrentArgument = Group1->LineEdit1;
- myWPlane = GeometryGUI::GetGeomGUI()->GetWorkingPlane();
+ myWPlane = myGeometryGUI->GetWorkingPlane();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
myFace = GEOM::GEOM_Object::_nil();
myVectX = GEOM::GEOM_Object::_nil();
@@ -136,8 +136,8 @@ void BasicGUI_WorkingPlaneDlg::Init()
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
@@ -153,7 +153,8 @@ void BasicGUI_WorkingPlaneDlg::Init()
connect(Group3->GroupBox1, SIGNAL(clicked(int)), this, SLOT(GroupClicked(int)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_WPLANE" ) );
ConstructorsClicked(0);
@@ -165,8 +166,8 @@ void BasicGUI_WorkingPlaneDlg::Init()
//=================================================================================
void BasicGUI_WorkingPlaneDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
- myGeomGUI->SetState( 0 );
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
+ // myGeometryGUI->SetState( 0 );
switch (constructorId)
{
@@ -183,7 +184,8 @@ void BasicGUI_WorkingPlaneDlg::ConstructorsClicked(int constructorId)
Group1->LineEdit1->setText("");
myFace = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1:
@@ -201,7 +203,8 @@ void BasicGUI_WorkingPlaneDlg::ConstructorsClicked(int constructorId)
myVectX = GEOM::GEOM_Object::_nil();
myVectZ = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 2:
@@ -245,7 +248,7 @@ void BasicGUI_WorkingPlaneDlg::ClickOnOk()
bool BasicGUI_WorkingPlaneDlg::ClickOnApply()
{
buttonApply->setFocus();
- QAD_Application::getDesktop()->putInfo(tr(""));
+ myGeometryGUI->application()->putInfo(tr(""));
const int id = getConstructorId();
if (id == 0) {
@@ -258,8 +261,8 @@ bool BasicGUI_WorkingPlaneDlg::ClickOnApply()
gp_Pln aPln = aGPlane->Pln();
myWPlane = aPln.Position();
- GeometryGUI::GetGeomGUI()->SetWorkingPlane(myWPlane);
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
+ myGeometryGUI->SetWorkingPlane(myWPlane);
+ myGeometryGUI->ActiveWorkingPlane();
return true;
}
}
@@ -301,8 +304,8 @@ bool BasicGUI_WorkingPlaneDlg::ClickOnApply()
myWPlane = gp_Ax3(BRep_Tool::Pnt(V1), aDirZ, aDirX);
- GeometryGUI::GetGeomGUI()->SetWorkingPlane(myWPlane);
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
+ myGeometryGUI->SetWorkingPlane(myWPlane);
+ myGeometryGUI->ActiveWorkingPlane();
return true;
}
} else if (id == 2) {
@@ -324,8 +327,8 @@ bool BasicGUI_WorkingPlaneDlg::ClickOnApply()
myWPlane = gp_Ax3(P1, aDirZ, aDirX);
- GeometryGUI::GetGeomGUI()->SetWorkingPlane(myWPlane);
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
+ myGeometryGUI->SetWorkingPlane(myWPlane);
+ myGeometryGUI->ActiveWorkingPlane();
return true;
}
return false;
@@ -340,7 +343,7 @@ void BasicGUI_WorkingPlaneDlg::SelectionIntoArgument()
myEditCurrentArgument->setText("");
const int id = getConstructorId();
- if ( mySelection->IObjectCount() != 1 ) {
+ if ( IObjectCount() != 1 ) {
if(id == 0)
myFace = GEOM::GEOM_Object::_nil();
else if(id == 1) {
@@ -354,7 +357,7 @@ void BasicGUI_WorkingPlaneDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aRes);
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), aRes);
if(!aRes || CORBA::is_nil( aSelectedObject ))
return;
@@ -417,7 +420,8 @@ void BasicGUI_WorkingPlaneDlg::LineEditReturnPressed()
void BasicGUI_WorkingPlaneDlg::ActivateThisDialog( )
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
@@ -429,7 +433,7 @@ void BasicGUI_WorkingPlaneDlg::ActivateThisDialog( )
//=================================================================================
void BasicGUI_WorkingPlaneDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -458,6 +462,6 @@ void BasicGUI_WorkingPlaneDlg::enterEvent(QEvent* e)
//=================================================================================
void BasicGUI_WorkingPlaneDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
diff --git a/src/BasicGUI/BasicGUI_WorkingPlaneDlg.h b/src/BasicGUI/BasicGUI_WorkingPlaneDlg.h
index ba4bf98ed..522631f57 100644
--- a/src/BasicGUI/BasicGUI_WorkingPlaneDlg.h
+++ b/src/BasicGUI/BasicGUI_WorkingPlaneDlg.h
@@ -43,7 +43,7 @@ class BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BasicGUI_WorkingPlaneDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
+ BasicGUI_WorkingPlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~BasicGUI_WorkingPlaneDlg();
virtual void closeEvent( QCloseEvent* e );
@@ -52,6 +52,8 @@ private:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myFace;
GEOM::GEOM_Object_var myVectX;
GEOM::GEOM_Object_var myVectZ;
diff --git a/src/BasicGUI/Makefile.in b/src/BasicGUI/Makefile.in
index dfc9c8a84..4bbaaa7f6 100644
--- a/src/BasicGUI/Makefile.in
+++ b/src/BasicGUI/Makefile.in
@@ -64,15 +64,15 @@ LIB_MOC = \
BasicGUI_CurveDlg.h \
BasicGUI_MarkerDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Exception.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lGEOMFiltersSelection -lGEOMBase -lGEOMGUI
+LDFLAGS += -lGEOMFiltersSelection -lGEOMBase -lGEOM
@CONCLUDE@
diff --git a/src/BlocksGUI/BlocksGUI.cxx b/src/BlocksGUI/BlocksGUI.cxx
index e2707c163..0b42de719 100644
--- a/src/BlocksGUI/BlocksGUI.cxx
+++ b/src/BlocksGUI/BlocksGUI.cxx
@@ -34,10 +34,11 @@
#include "BlocksGUI_ExplodeDlg.h"
#include "BlocksGUI_PropagateDlg.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "GeometryGUI.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_Session.h"
BlocksGUI* BlocksGUI::myGUIObject = 0;
@@ -45,10 +46,10 @@ BlocksGUI* BlocksGUI::myGUIObject = 0;
// function : GetBlocksGUI()
// purpose : Get the only BlocksGUI object [ static ]
//=======================================================================
-BlocksGUI* BlocksGUI::GetBlocksGUI()
+BlocksGUI* BlocksGUI::GetBlocksGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 )
- myGUIObject = new BlocksGUI();
+ myGUIObject = new BlocksGUI( parent );
return myGUIObject;
}
@@ -57,8 +58,8 @@ BlocksGUI* BlocksGUI::GetBlocksGUI()
// function : BlocksGUI()
// purpose : Constructor
//=======================================================================
-BlocksGUI::BlocksGUI()
- : GEOMGUI()
+BlocksGUI::BlocksGUI( GeometryGUI* parent )
+ : GEOMGUI( parent )
{
}
@@ -74,46 +75,43 @@ BlocksGUI::~BlocksGUI()
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BlocksGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool BlocksGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
-
- SALOME_Selection* Sel = SALOME_Selection::Selection
- (QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch (theCommandID)
{
case 9999:
- aDlg = new BlocksGUI_BlockDlg (parent, Sel);
+ aDlg = new BlocksGUI_BlockDlg (parent);
break;
case 9998:
- aDlg = new BlocksGUI_TrsfDlg (parent, Sel);
+ aDlg = new BlocksGUI_TrsfDlg (parent);
break;
case 9997:
- aDlg = new BlocksGUI_QuadFaceDlg (parent, Sel);
+ aDlg = new BlocksGUI_QuadFaceDlg (parent);
break;
case 9996:
// aDlg = new BlocksGUI_CheckMultiBlockDlg (parent, Sel);
- QAD_MessageBox::warn1 (parent,
- QObject::tr("WRN_WARNING"),
- QObject::tr("WRN_NOT_IMPLEMENTED"),
- QObject::tr("BUT_OK"));
+ SUIT_MessageBox::warn1 (parent,
+ QObject::tr("WRN_WARNING"),
+ QObject::tr("WRN_NOT_IMPLEMENTED"),
+ QObject::tr("BUT_OK"));
break;
-
+
case 9995:
- aDlg = new BlocksGUI_ExplodeDlg (parent, Sel);
+ aDlg = new BlocksGUI_ExplodeDlg (parent);
break;
case 99991:
- aDlg = new BlocksGUI_PropagateDlg (parent, "", Sel);
+ aDlg = new BlocksGUI_PropagateDlg (parent, "");
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
@@ -128,8 +126,8 @@ bool BlocksGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BlocksGUI::GetBlocksGUI();
+ return BlocksGUI::GetBlocksGUI( parent );
}
}
diff --git a/src/BlocksGUI/BlocksGUI.h b/src/BlocksGUI/BlocksGUI.h
index 513b8accf..eab79022e 100644
--- a/src/BlocksGUI/BlocksGUI.h
+++ b/src/BlocksGUI/BlocksGUI.h
@@ -37,15 +37,15 @@
class BlocksGUI : public GEOMGUI
{
protected:
- BlocksGUI(); // hide constructor to avoid direct creation
+ BlocksGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public:
~BlocksGUI();
// Get the only BuildGUI object
- static BlocksGUI* GetBlocksGUI();
+ static BlocksGUI* GetBlocksGUI( GeometryGUI* parent );
- bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent (int theCommandID, SUIT_Desktop* parent);
private:
static BlocksGUI* myGUIObject; // the only BlocksGUI object
diff --git a/src/BlocksGUI/BlocksGUI_BlockDlg.cxx b/src/BlocksGUI/BlocksGUI_BlockDlg.cxx
index 888ee3a63..059c8facd 100644
--- a/src/BlocksGUI/BlocksGUI_BlockDlg.cxx
+++ b/src/BlocksGUI/BlocksGUI_BlockDlg.cxx
@@ -27,25 +27,28 @@
#include "BlocksGUI_BlockDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include "GEOMImpl_Types.hxx"
using namespace std;
+#include
+
//=================================================================================
// class : BlocksGUI_BlockDlg()
// purpose : Constructs a BlocksGUI_BlockDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_BlockDlg::BlocksGUI_BlockDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "BlockDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "BlockDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_2F")));
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_6F")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_2F")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_6F")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_BLOCK_TITLE"));
@@ -129,7 +132,8 @@ void BlocksGUI_BlockDlg::Init()
connect(Group6F->PushButton5, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(Group6F->PushButton6, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
// init controls and fields
initName(tr("GEOM_BLOCK"));
@@ -182,7 +186,8 @@ void BlocksGUI_BlockDlg::ConstructorsClicked (int constructorId)
globalSelection(GEOM_FACE);
SelectionIntoArgument();
-// connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
//=================================================================================
@@ -217,7 +222,7 @@ void BlocksGUI_BlockDlg::SelectionIntoArgument()
erasePreview();
myEditCurrentArgument->setText("");
- if (mySelection->IObjectCount() != 1)
+ if (IObjectCount() != 1)
{
if (myEditCurrentArgument == Group2F->LineEdit1 ||
myEditCurrentArgument == Group6F->LineEdit1)
@@ -239,7 +244,7 @@ void BlocksGUI_BlockDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean testResult = Standard_False;
GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if (!testResult || CORBA::is_nil( aSelectedObject ))
return;
@@ -304,7 +309,8 @@ void BlocksGUI_BlockDlg::SetEditCurrentArgument()
void BlocksGUI_BlockDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
globalSelection(GEOM_FACE);
diff --git a/src/BlocksGUI/BlocksGUI_BlockDlg.h b/src/BlocksGUI/BlocksGUI_BlockDlg.h
index 91f98567b..567538c32 100644
--- a/src/BlocksGUI/BlocksGUI_BlockDlg.h
+++ b/src/BlocksGUI/BlocksGUI_BlockDlg.h
@@ -43,7 +43,6 @@ class BlocksGUI_BlockDlg : public GEOMBase_Skeleton
public:
BlocksGUI_BlockDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_BlockDlg();
diff --git a/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx b/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
index 30a03c621..ac63e4135 100644
--- a/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
+++ b/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
@@ -31,7 +31,10 @@
#include "GEOM_Displayer.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "OCCViewer_ViewModel.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "utilities.h"
@@ -41,19 +44,19 @@
#include
#include
#include
+#include
//=================================================================================
// class : BlocksGUI_ExplodeDlg()
// purpose : Constructs a BlocksGUI_ExplodeDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_ExplodeDlg::BlocksGUI_ExplodeDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "ExplodeDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "ExplodeDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_EXPLODE")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_EXPLODE")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_BLOCK_EXPLODE_TITLE"));
@@ -129,7 +132,8 @@ void BlocksGUI_ExplodeDlg::Init()
mySpinBoxMin->RangeStepAndValidator(0.0, 999.0, SpecificStep, 3);
mySpinBoxMax->RangeStepAndValidator(0.0, 999.0, SpecificStep, 3);
- if (QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC)
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type())
myCheckBtn->setEnabled(false);
// signals and slots connections
@@ -143,7 +147,8 @@ void BlocksGUI_ExplodeDlg::Init()
connect(myCheckBtn, SIGNAL(stateChanged(int)), this, SLOT(SubShapeToggled()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
myConstructorId = -1;
ConstructorsClicked(0);
@@ -194,7 +199,7 @@ void BlocksGUI_ExplodeDlg::ClickOnOk()
//=================================================================================
bool BlocksGUI_ExplodeDlg::ClickOnApply()
{
- QAD_Application::getDesktop()->putInfo(tr(""));
+ SUIT_Session::session()->activeApplication()->putInfo(tr(""));
// Explode all sub shapes
if (isAllSubShapes()) {
@@ -230,10 +235,10 @@ void BlocksGUI_ExplodeDlg::SelectionIntoArgument()
myObject = GEOM::GEOM_Object::_nil();
mySelName->setText("");
- if (mySelection->IObjectCount() == 1) {
+ if (IObjectCount() == 1) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
myObject = anObj;
@@ -268,7 +273,8 @@ void BlocksGUI_ExplodeDlg::SetEditCurrentArgument()
void BlocksGUI_ExplodeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
activateSelection();
}
@@ -315,12 +321,14 @@ void BlocksGUI_ExplodeDlg::activateSelection()
erasePreview(true);
if (isAllSubShapes()) { // Sub-shapes selection disabled
- disconnect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_ALLSHAPES );
if (myObject->_is_nil()) {
SelectionIntoArgument();
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
} else {
displayPreview(true, true, false);
globalSelection(GEOM_PREVIEW);
@@ -333,8 +341,8 @@ void BlocksGUI_ExplodeDlg::activateSelection()
//=================================================================================
void BlocksGUI_ExplodeDlg::updateButtonState()
{
- if (QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC ||
- myObject->_is_nil()) {
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() || myObject->_is_nil()) {
myCheckBtn->setChecked(FALSE);
myCheckBtn->setEnabled(FALSE);
} else {
@@ -387,7 +395,7 @@ bool BlocksGUI_ExplodeDlg::isValid (QString&)
if (IsPreview())
return !myObject->_is_nil();
else
- return !myObject->_is_nil() && (isAllSubShapes() || mySelection->IObjectCount());
+ return !myObject->_is_nil() && (isAllSubShapes() || IObjectCount());
default:
return false;
}
@@ -434,7 +442,7 @@ bool BlocksGUI_ExplodeDlg::execute (ObjectList& objects)
QMap selected;
// Get names of selected objects
- SALOME_ListIteratorOfListIO it (mySelection->StoredIObjects());
+ SALOME_ListIteratorOfListIO it (selectedIO());
for (; it.More(); it.Next()) {
selected.insert(it.Value()->getName(), 0);
}
@@ -443,7 +451,7 @@ bool BlocksGUI_ExplodeDlg::execute (ObjectList& objects)
ObjectList toRemoveFromEnggine;
ObjectList::iterator anIter;
for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter) {
- if (selected.contains(GeometryGUI::GetORB()->object_to_string(*anIter)))
+ if (selected.contains(myGeomGUI->getApp()->orb()->object_to_string(*anIter)))
objects.push_back(*anIter);
else
toRemoveFromEnggine.push_back(*anIter);
diff --git a/src/BlocksGUI/BlocksGUI_ExplodeDlg.h b/src/BlocksGUI/BlocksGUI_ExplodeDlg.h
index 73c44136c..53b55e8c3 100644
--- a/src/BlocksGUI/BlocksGUI_ExplodeDlg.h
+++ b/src/BlocksGUI/BlocksGUI_ExplodeDlg.h
@@ -44,7 +44,6 @@ class BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
public:
BlocksGUI_ExplodeDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_ExplodeDlg();
diff --git a/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx b/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx
index 2e50ec031..5f6590153 100644
--- a/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx
+++ b/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx
@@ -28,10 +28,15 @@
using namespace std;
#include "BlocksGUI_PropagateDlg.h"
-
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
+
+#include
//=================================================================================
// class : BlocksGUI_PropagateDlg()
@@ -40,11 +45,11 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PROPAGATE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PROPAGATE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PROPAGATE_TITLE"));
@@ -93,7 +98,7 @@ void BlocksGUI_PropagateDlg::Init()
myObject = GEOM::GEOM_Object::_nil();
ResultName->setText( "" );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
@@ -161,8 +166,8 @@ void BlocksGUI_PropagateDlg::SelectionIntoArgument()
mySelName->setText("");
myObject = GEOM::GEOM_Object::_nil();
- if ( mySelection->IObjectCount() == 1 ) {
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ if ( IObjectCount() == 1 ) {
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
Standard_Boolean aRes;
myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aRes )
@@ -203,7 +208,7 @@ void BlocksGUI_PropagateDlg::LineEditReturnPressed()
//=================================================================================
void BlocksGUI_PropagateDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
@@ -219,7 +224,7 @@ void BlocksGUI_PropagateDlg::ActivateThisDialog()
mySelName->setText("");
myObject = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
activateSelection();
}
@@ -241,7 +246,7 @@ void BlocksGUI_PropagateDlg::enterEvent(QEvent* e)
//=================================================================================
void BlocksGUI_PropagateDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
@@ -297,7 +302,8 @@ void BlocksGUI_PropagateDlg::activateSelection()
if (myObject->_is_nil()) {
SelectionIntoArgument();
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
}
//================================================================
diff --git a/src/BlocksGUI/BlocksGUI_PropagateDlg.h b/src/BlocksGUI/BlocksGUI_PropagateDlg.h
index 230db75d2..db860194b 100644
--- a/src/BlocksGUI/BlocksGUI_PropagateDlg.h
+++ b/src/BlocksGUI/BlocksGUI_PropagateDlg.h
@@ -41,7 +41,7 @@ class BlocksGUI_PropagateDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BlocksGUI_PropagateDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BlocksGUI_PropagateDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BlocksGUI_PropagateDlg();
protected:
diff --git a/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx b/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx
index c95296207..72f017df2 100644
--- a/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx
+++ b/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx
@@ -26,27 +26,29 @@
// $Header$
#include "BlocksGUI_QuadFaceDlg.h"
-
-#include "QAD_Desktop.h"
-
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
//using namespace std;
+#include
+
//=================================================================================
// class : BlocksGUI_QuadFaceDlg()
// purpose : Constructs a BlocksGUI_QuadFaceDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_QuadFaceDlg::BlocksGUI_QuadFaceDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "QuadFaceDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "QuadFaceDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_VERT")));
- QPixmap image2 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_2_EDGE")));
- QPixmap image3 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_EDGE")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_VERT")));
+ QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_2_EDGE")));
+ QPixmap image3 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_EDGE")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_QUAD_FACE_TITLE"));
@@ -127,7 +129,8 @@ void BlocksGUI_QuadFaceDlg::Init()
for (anIterBtn = mySelBtn.begin(); anIterBtn != mySelBtn.end(); ++anIterBtn)
connect(anIterBtn.data(), SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
// init controls and fields
initName(tr("GEOM_QUAD_FACE"));
@@ -226,8 +229,8 @@ void BlocksGUI_QuadFaceDlg::SelectionIntoArgument()
GEOM::GEOM_Object_var anObj;
Standard_Boolean aResult = Standard_False;
- if (mySelection->IObjectCount() == 1) {
- anObj = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ if (IObjectCount() == 1) {
+ anObj = GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if (aResult) {
if (anObj->_is_nil()) {
aResult = Standard_False;
@@ -280,7 +283,8 @@ void BlocksGUI_QuadFaceDlg::SetEditCurrentArgument()
void BlocksGUI_QuadFaceDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
activateSelection();
displayPreview();
diff --git a/src/BlocksGUI/BlocksGUI_QuadFaceDlg.h b/src/BlocksGUI/BlocksGUI_QuadFaceDlg.h
index bd7150e4c..0df8ae01c 100644
--- a/src/BlocksGUI/BlocksGUI_QuadFaceDlg.h
+++ b/src/BlocksGUI/BlocksGUI_QuadFaceDlg.h
@@ -44,7 +44,6 @@ class BlocksGUI_QuadFaceDlg : public GEOMBase_Skeleton
public:
BlocksGUI_QuadFaceDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_QuadFaceDlg();
diff --git a/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx b/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
index 959df91a6..0820f30d6 100644
--- a/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
+++ b/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
@@ -29,23 +29,27 @@
#include "DlgRef_SpinBox.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "OCCViewer_ViewModel.h"
#include
+#include
+
//=================================================================================
// class : BlocksGUI_TrsfDlg()
// purpose : Constructs a BlocksGUI_TrsfDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_TrsfDlg::BlocksGUI_TrsfDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "TrsfDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "TrsfDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_SIMPLE")));
- QPixmap image2 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_DOUBLE")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_SIMPLE")));
+ QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_DOUBLE")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_BLOCK_MULTITRSF_TITLE"));
@@ -153,7 +157,8 @@ void BlocksGUI_TrsfDlg::Init()
for (anIterSpin = mySpinBox.begin(); anIterSpin != mySpinBox.end(); ++anIterSpin)
connect(anIterSpin.data(), SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
// init controls and fields
initName(tr("GEOM_BLOCK_MULTITRSF"));
@@ -254,10 +259,10 @@ void BlocksGUI_TrsfDlg::SelectionIntoArgument()
// If selection of main object is activated
if (aCurrFocus == MainObj1 || aCurrFocus == MainObj2) {
- if (mySelection->IObjectCount() == 1) {
+ if (IObjectCount() == 1) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if (aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
myShape = anObj;
@@ -274,14 +279,14 @@ void BlocksGUI_TrsfDlg::SelectionIntoArgument()
else if (aCurrFocus == Face1 || aCurrFocus == Face2 ||
aCurrFocus == Face1U || aCurrFocus == Face2U ||
aCurrFocus == Face1V || aCurrFocus == Face2V) {
- if (mySelection->IObjectCount() == 1) {
+ if (IObjectCount() == 1) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
TColStd_IndexedMapOfInteger anIndexes;
- mySelection->GetIndex(mySelection->firstIObject(), anIndexes);
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), anIndexes );
if (anIndexes.Extent() == 1) {
int anIndex = anIndexes(1);
@@ -325,7 +330,8 @@ void BlocksGUI_TrsfDlg::SetEditCurrentArgument()
void BlocksGUI_TrsfDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
activateSelection();
displayPreview();
@@ -391,7 +397,8 @@ void BlocksGUI_TrsfDlg::activateSelection()
myEditCurrentArgument == mySelName[ Face2V ])) {
// Local selection is available only in the OCC Viewer
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC ) {
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type()) {
localSelection(myShape, TopAbs_FACE);
} else {
return;
diff --git a/src/BlocksGUI/BlocksGUI_TrsfDlg.h b/src/BlocksGUI/BlocksGUI_TrsfDlg.h
index 1b3b782ff..a5bdc30d6 100644
--- a/src/BlocksGUI/BlocksGUI_TrsfDlg.h
+++ b/src/BlocksGUI/BlocksGUI_TrsfDlg.h
@@ -45,7 +45,6 @@ class BlocksGUI_TrsfDlg : public GEOMBase_Skeleton
public:
BlocksGUI_TrsfDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_TrsfDlg();
diff --git a/src/BlocksGUI/Makefile.in b/src/BlocksGUI/Makefile.in
index 46fda7cb1..99cbd1e09 100644
--- a/src/BlocksGUI/Makefile.in
+++ b/src/BlocksGUI/Makefile.in
@@ -54,14 +54,14 @@ LIB_MOC = \
BlocksGUI_PropagateDlg.h \
BlocksGUI_TrsfDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
diff --git a/src/BooleanGUI/BooleanGUI.cxx b/src/BooleanGUI/BooleanGUI.cxx
index 0e6c813d6..98df1e213 100644
--- a/src/BooleanGUI/BooleanGUI.cxx
+++ b/src/BooleanGUI/BooleanGUI.cxx
@@ -29,21 +29,22 @@
using namespace std;
#include "BooleanGUI.h"
-#include "QAD_Desktop.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Desktop.h"
#include "BooleanGUI_Dialog.h"
+#include "GeometryGUI.h"
+
BooleanGUI* BooleanGUI::myGUIObject = 0;
//=======================================================================
// function : GetBooleanGUI()
// purpose : Get the only BooleanGUI object [ static ]
//=======================================================================
-BooleanGUI* BooleanGUI::GetBooleanGUI()
+BooleanGUI* BooleanGUI::GetBooleanGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init BooleanGUI only once
- myGUIObject = new BooleanGUI();
+ myGUIObject = new BooleanGUI( parent );
}
return myGUIObject;
}
@@ -52,7 +53,7 @@ BooleanGUI* BooleanGUI::GetBooleanGUI()
// function : BooleanGUI()
// purpose : Constructor
//=======================================================================
-BooleanGUI::BooleanGUI() : GEOMGUI()
+BooleanGUI::BooleanGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
}
@@ -70,10 +71,9 @@ BooleanGUI::~BooleanGUI()
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BooleanGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool BooleanGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
int anOperation = 0;
if ( theCommandID == 5011 )
@@ -87,7 +87,7 @@ bool BooleanGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
else
return false;
- QDialog* aDlg = new BooleanGUI_Dialog( anOperation, parent, "", Sel);
+ QDialog* aDlg = new BooleanGUI_Dialog( anOperation, parent, "");
aDlg->show();
return true;
@@ -98,8 +98,8 @@ bool BooleanGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BooleanGUI::GetBooleanGUI();
+ return BooleanGUI::GetBooleanGUI( parent );
}
}
diff --git a/src/BooleanGUI/BooleanGUI.h b/src/BooleanGUI/BooleanGUI.h
index d7773d16a..a0fdf6c23 100644
--- a/src/BooleanGUI/BooleanGUI.h
+++ b/src/BooleanGUI/BooleanGUI.h
@@ -38,7 +38,7 @@
class BooleanGUI : public GEOMGUI
{
protected:
- BooleanGUI(); // hide constructor to avoid direct creation
+ BooleanGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public:
enum BooleanOperation { COMMON = 1, CUT = 2, FUSE = 3, SECTION = 4 };
@@ -46,9 +46,9 @@ public:
~BooleanGUI();
// Get the only BooleanGUI object
- static BooleanGUI* GetBooleanGUI();
+ static BooleanGUI* GetBooleanGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
private:
static BooleanGUI* myGUIObject; // the only BooleanGUI object
diff --git a/src/BooleanGUI/BooleanGUI_Dialog.cxx b/src/BooleanGUI/BooleanGUI_Dialog.cxx
index 68bd77be8..7944e5116 100644
--- a/src/BooleanGUI/BooleanGUI_Dialog.cxx
+++ b/src/BooleanGUI/BooleanGUI_Dialog.cxx
@@ -31,7 +31,11 @@ using namespace std;
#include "BooleanGUI.h"
#include "DlgRef_2Sel_QTD.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
//=================================================================================
// class : BooleanGUI_Dialog()
@@ -40,8 +44,8 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl),
+BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl),
myOperation( theOperation )
{
QPixmap image0;
@@ -49,27 +53,27 @@ BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, c
switch ( myOperation )
{
case BooleanGUI::COMMON:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_COMMON")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_COMMON")));
aTitle = tr("GEOM_COMMON");
aCaption = tr("GEOM_COMMON_TITLE");
break;
case BooleanGUI::CUT:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CUT")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CUT")));
aTitle = tr("GEOM_CUT");
aCaption = tr("GEOM_CUT_TITLE");
break;
case BooleanGUI::FUSE:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_FUSE")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_FUSE")));
aTitle = tr("GEOM_FUSE");
aCaption = tr("GEOM_FUSE_TITLE");
break;
case BooleanGUI::SECTION:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SECTION")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SECTION")));
aTitle = tr("GEOM_SECTION");
aCaption = tr("GEOM_SECTION_TITLE");
break;
}
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption( aCaption );
@@ -134,7 +138,8 @@ void BooleanGUI_Dialog::Init()
connect(myGroup->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(myGroup->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( GroupConstructors->title() );
@@ -175,7 +180,7 @@ void BooleanGUI_Dialog::SelectionIntoArgument()
{
myEditCurrentArgument->setText( "" );
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == myGroup->LineEdit1 ) myObject1 = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == myGroup->LineEdit2 ) myObject2 = GEOM::GEOM_Object::_nil();
@@ -184,7 +189,7 @@ void BooleanGUI_Dialog::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes && GEOMBase::IsShape( aSelectedObject ) )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
@@ -234,7 +239,8 @@ void BooleanGUI_Dialog::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
}
diff --git a/src/BooleanGUI/BooleanGUI_Dialog.h b/src/BooleanGUI/BooleanGUI_Dialog.h
index e9483dd39..70f6c4b75 100644
--- a/src/BooleanGUI/BooleanGUI_Dialog.h
+++ b/src/BooleanGUI/BooleanGUI_Dialog.h
@@ -42,7 +42,7 @@ class BooleanGUI_Dialog : public GEOMBase_Skeleton
Q_OBJECT
public:
- BooleanGUI_Dialog( const int theOperation, QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BooleanGUI_Dialog( const int theOperation, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BooleanGUI_Dialog();
protected:
diff --git a/src/BooleanGUI/Makefile.in b/src/BooleanGUI/Makefile.in
index 61467e6d7..f90b5d458 100644
--- a/src/BooleanGUI/Makefile.in
+++ b/src/BooleanGUI/Makefile.in
@@ -46,14 +46,14 @@ LIB_SRC = BooleanGUI.cxx \
LIB_MOC = \
BooleanGUI_Dialog.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMBase
diff --git a/src/BuildGUI/BuildGUI.cxx b/src/BuildGUI/BuildGUI.cxx
index d361dde5e..97a38e990 100644
--- a/src/BuildGUI/BuildGUI.cxx
+++ b/src/BuildGUI/BuildGUI.cxx
@@ -28,8 +28,8 @@
#include "BuildGUI.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
#include "BuildGUI_EdgeDlg.h" // Method EDGE
#include "BuildGUI_WireDlg.h" // Method WIRE
@@ -38,16 +38,18 @@
#include "BuildGUI_SolidDlg.h" // Method SOLID
#include "BuildGUI_CompoundDlg.h" // Method COMPOUND
+#include "GeometryGUI.h"
+
BuildGUI* BuildGUI::myGUIObject = 0;
//=======================================================================
// function : GetBuildGUI()
// purpose : Get the only BuildGUI object [ static ]
//=======================================================================
-BuildGUI* BuildGUI::GetBuildGUI()
+BuildGUI* BuildGUI::GetBuildGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 )
- myGUIObject = new BuildGUI();
+ myGUIObject = new BuildGUI( parent );
return myGUIObject;
}
@@ -56,8 +58,8 @@ BuildGUI* BuildGUI::GetBuildGUI()
// function : BuildGUI()
// purpose : Constructor
//=======================================================================
-BuildGUI::BuildGUI()
-: GEOMGUI()
+BuildGUI::BuildGUI( GeometryGUI* parent )
+: GEOMGUI( parent )
{
}
@@ -75,25 +77,24 @@ BuildGUI::~BuildGUI()
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BuildGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool BuildGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ getGeometryGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
-
QDialog* aDlg = NULL;
switch ( theCommandID )
{
- case 4081: aDlg = new BuildGUI_EdgeDlg ( parent, "", Sel ); break;
- case 4082: aDlg = new BuildGUI_WireDlg ( parent, "", Sel ); break;
- case 4083: aDlg = new BuildGUI_FaceDlg ( parent, "", Sel ); break;
- case 4084: aDlg = new BuildGUI_ShellDlg ( parent, "", Sel ); break;
- case 4085: aDlg = new BuildGUI_SolidDlg ( parent, "", Sel ); break;
- case 4086: aDlg = new BuildGUI_CompoundDlg( parent, "", Sel ); break;
+ case 4081: aDlg = new BuildGUI_EdgeDlg ( parent, "" ); break;
+ case 4082: aDlg = new BuildGUI_WireDlg ( parent, "" ); break;
+ case 4083: aDlg = new BuildGUI_FaceDlg ( parent, "" ); break;
+ case 4084: aDlg = new BuildGUI_ShellDlg ( parent, "" ); break;
+ case 4085: aDlg = new BuildGUI_SolidDlg ( parent, "" ); break;
+ case 4086: aDlg = new BuildGUI_CompoundDlg( parent, "" ); break;
- default: parent->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) ); break;
+ default:
+ SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
+ break;
}
if ( aDlg != NULL )
@@ -107,8 +108,8 @@ bool BuildGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BuildGUI::GetBuildGUI();
+ return BuildGUI::GetBuildGUI( parent );
}
}
diff --git a/src/BuildGUI/BuildGUI.h b/src/BuildGUI/BuildGUI.h
index d7818c5a4..25b11cfa8 100644
--- a/src/BuildGUI/BuildGUI.h
+++ b/src/BuildGUI/BuildGUI.h
@@ -38,15 +38,15 @@
class BuildGUI : public GEOMGUI
{
protected:
- BuildGUI(); // hide constructor to avoid direct creation
+ BuildGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~BuildGUI();
// Get the only BuildGUI object
- static BuildGUI* GetBuildGUI();
+ static BuildGUI* GetBuildGUI( GeometryGUI* parent );
- bool OnGUIEvent( int theCommandID, QAD_Desktop* parent );
+ bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
private:
static BuildGUI* myGUIObject; // the only BuildGUI object
diff --git a/src/BuildGUI/BuildGUI_CompoundDlg.cxx b/src/BuildGUI/BuildGUI_CompoundDlg.cxx
index b6f9f06b6..df8814144 100644
--- a/src/BuildGUI/BuildGUI_CompoundDlg.cxx
+++ b/src/BuildGUI/BuildGUI_CompoundDlg.cxx
@@ -27,9 +27,14 @@
// $Header$
#include "BuildGUI_CompoundDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
+
//=================================================================================
// class : BuildGUI_CompoundDlg()
// purpose : Constructs a BuildGUI_CompoundDlg which is a child of 'parent', with the
@@ -37,11 +42,11 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_COMPOUND")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_COMPOUND")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_COMPOUND_TITLE"));
@@ -91,7 +96,8 @@ void BuildGUI_CompoundDlg::Init()
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupShapes->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_ALLSHAPES );
@@ -134,13 +140,13 @@ void BuildGUI_CompoundDlg::SelectionIntoArgument()
QString aString = ""; /* name of selection */
myOkShapes = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if ( nbSel == 0 )
return;
if ( nbSel != 1 )
aString = QString( "%1_objects").arg( nbSel );
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myShapes, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myShapes, true );
myEditCurrentArgument->setText( aString );
myOkShapes = true;
}
@@ -171,7 +177,8 @@ void BuildGUI_CompoundDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
}
diff --git a/src/BuildGUI/BuildGUI_CompoundDlg.h b/src/BuildGUI/BuildGUI_CompoundDlg.h
index 848556ded..eef0b2fb1 100644
--- a/src/BuildGUI/BuildGUI_CompoundDlg.h
+++ b/src/BuildGUI/BuildGUI_CompoundDlg.h
@@ -41,7 +41,7 @@ class BuildGUI_CompoundDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BuildGUI_CompoundDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_CompoundDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_CompoundDlg();
protected:
diff --git a/src/BuildGUI/BuildGUI_EdgeDlg.cxx b/src/BuildGUI/BuildGUI_EdgeDlg.cxx
index 33518dc5c..ae8150407 100644
--- a/src/BuildGUI/BuildGUI_EdgeDlg.cxx
+++ b/src/BuildGUI/BuildGUI_EdgeDlg.cxx
@@ -32,9 +32,14 @@
#include
#include "utilities.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include
+
//=================================================================================
// class : BuildGUI_EdgeDlg()
// purpose : Constructs a BuildGUI_EdgeDlg which is a child of 'parent', with the
@@ -42,11 +47,11 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_EdgeDlg::BuildGUI_EdgeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_EdgeDlg::BuildGUI_EdgeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_EDGE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_EDGE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_EDGE_TITLE"));
@@ -109,7 +114,8 @@ void BuildGUI_EdgeDlg::Init()
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_EDGE") );
}
@@ -149,7 +155,7 @@ void BuildGUI_EdgeDlg::SelectionIntoArgument()
erasePreview();
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myOkPoint1 = false;
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
@@ -159,7 +165,7 @@ void BuildGUI_EdgeDlg::SelectionIntoArgument()
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult)
return;
@@ -225,7 +231,8 @@ void BuildGUI_EdgeDlg::SetEditCurrentArgument()
void BuildGUI_EdgeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_POINT );
displayPreview();
}
diff --git a/src/BuildGUI/BuildGUI_EdgeDlg.h b/src/BuildGUI/BuildGUI_EdgeDlg.h
index b86590bff..2d3af1aba 100644
--- a/src/BuildGUI/BuildGUI_EdgeDlg.h
+++ b/src/BuildGUI/BuildGUI_EdgeDlg.h
@@ -41,7 +41,7 @@ class BuildGUI_EdgeDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BuildGUI_EdgeDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_EdgeDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_EdgeDlg();
protected:
diff --git a/src/BuildGUI/BuildGUI_FaceDlg.cxx b/src/BuildGUI/BuildGUI_FaceDlg.cxx
index 2b76cc7cf..dc1d3cd4e 100644
--- a/src/BuildGUI/BuildGUI_FaceDlg.cxx
+++ b/src/BuildGUI/BuildGUI_FaceDlg.cxx
@@ -28,11 +28,15 @@
using namespace std;
#include "BuildGUI_FaceDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
//Qt includes
#include
+#include
//=================================================================================
// class : BuildGUI_FaceDlg()
@@ -41,11 +45,11 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_FaceDlg::BuildGUI_FaceDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_FaceDlg::BuildGUI_FaceDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_FACE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_FACE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_FACE_TITLE"));
@@ -98,7 +102,8 @@ void BuildGUI_FaceDlg::Init()
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupWire->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupWire->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_FACE"));
}
@@ -138,7 +143,7 @@ void BuildGUI_FaceDlg::SelectionIntoArgument()
myEditCurrentArgument->setText("");
QString aName;
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1)
{
@@ -146,7 +151,7 @@ void BuildGUI_FaceDlg::SelectionIntoArgument()
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myWires);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myWires);
if (!myWires.length())
return;
if(aNbSel != 1)
@@ -183,7 +188,8 @@ void BuildGUI_FaceDlg::SetEditCurrentArgument()
void BuildGUI_FaceDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_WIRE );
}
diff --git a/src/BuildGUI/BuildGUI_FaceDlg.h b/src/BuildGUI/BuildGUI_FaceDlg.h
index d91ba714c..f59189fd6 100644
--- a/src/BuildGUI/BuildGUI_FaceDlg.h
+++ b/src/BuildGUI/BuildGUI_FaceDlg.h
@@ -41,7 +41,7 @@ class BuildGUI_FaceDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BuildGUI_FaceDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_FaceDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_FaceDlg();
protected:
diff --git a/src/BuildGUI/BuildGUI_ShellDlg.cxx b/src/BuildGUI/BuildGUI_ShellDlg.cxx
index ff65505a6..5972e2994 100644
--- a/src/BuildGUI/BuildGUI_ShellDlg.cxx
+++ b/src/BuildGUI/BuildGUI_ShellDlg.cxx
@@ -27,10 +27,16 @@
// $Header:
#include "BuildGUI_ShellDlg.h"
-
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include "TColStd_MapOfInteger.hxx"
+
+#include
+
//=================================================================================
// class : BuildGUI_ShellDlg()
// purpose : Constructs a BuildGUI_ShellDlg which is a child of 'parent', with the
@@ -38,11 +44,11 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_ShellDlg::BuildGUI_ShellDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_ShellDlg::BuildGUI_ShellDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SHELL")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SHELL")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_SHELL_TITLE"));
@@ -99,7 +105,8 @@ void BuildGUI_ShellDlg::Init()
connect(GroupShell->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_SHELL"));
}
@@ -140,13 +147,13 @@ void BuildGUI_ShellDlg::SelectionIntoArgument()
QString aString;
myOkFacesAndShells = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if ( nbSel == 0 )
return;
if ( nbSel != 1 )
aString = QString( "%1_objects ").arg( nbSel );
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myFacesAndShells, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myFacesAndShells, true );
if ( !myFacesAndShells.length() )
return;
@@ -183,7 +190,8 @@ void BuildGUI_ShellDlg::SetEditCurrentArgument()
void BuildGUI_ShellDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
TColStd_MapOfInteger aMap;
aMap.Add(GEOM_SHELL);
aMap.Add(GEOM_FACE);
diff --git a/src/BuildGUI/BuildGUI_ShellDlg.h b/src/BuildGUI/BuildGUI_ShellDlg.h
index 3c3c57c0b..c9f0282a5 100644
--- a/src/BuildGUI/BuildGUI_ShellDlg.h
+++ b/src/BuildGUI/BuildGUI_ShellDlg.h
@@ -41,7 +41,7 @@ class BuildGUI_ShellDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BuildGUI_ShellDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_ShellDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_ShellDlg();
protected:
diff --git a/src/BuildGUI/BuildGUI_SolidDlg.cxx b/src/BuildGUI/BuildGUI_SolidDlg.cxx
index cdd99d738..f871dbf79 100644
--- a/src/BuildGUI/BuildGUI_SolidDlg.cxx
+++ b/src/BuildGUI/BuildGUI_SolidDlg.cxx
@@ -27,12 +27,15 @@
// $Header:
#include "BuildGUI_SolidDlg.h"
-
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
//Qt includes
#include
+#include
//=================================================================================
// class : BuildGUI_SolidDlg()
@@ -41,11 +44,11 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_SolidDlg::BuildGUI_SolidDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_SolidDlg::BuildGUI_SolidDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SOLID")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SOLID")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_SOLID_TITLE"));
@@ -102,7 +105,8 @@ void BuildGUI_SolidDlg::Init()
connect(GroupSolid->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupSolid->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(EnableNameField(bool)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_SOLID"));
}
@@ -142,13 +146,13 @@ void BuildGUI_SolidDlg::SelectionIntoArgument()
QString aString = "";
myOkShells = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aString);
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aString);
if (nbSel == 0)
return;
if(nbSel != 1)
aString = tr("%1_objects").arg(nbSel);
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myShells);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myShells);
if (!myShells.length())
return;
@@ -181,7 +185,8 @@ void BuildGUI_SolidDlg::SetEditCurrentArgument()
void BuildGUI_SolidDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_SHELL );
}
diff --git a/src/BuildGUI/BuildGUI_SolidDlg.h b/src/BuildGUI/BuildGUI_SolidDlg.h
index a767fba68..02bf806d6 100644
--- a/src/BuildGUI/BuildGUI_SolidDlg.h
+++ b/src/BuildGUI/BuildGUI_SolidDlg.h
@@ -41,7 +41,7 @@ class BuildGUI_SolidDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BuildGUI_SolidDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_SolidDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_SolidDlg();
protected:
diff --git a/src/BuildGUI/BuildGUI_WireDlg.cxx b/src/BuildGUI/BuildGUI_WireDlg.cxx
index f7f52d8ad..425cb14a0 100644
--- a/src/BuildGUI/BuildGUI_WireDlg.cxx
+++ b/src/BuildGUI/BuildGUI_WireDlg.cxx
@@ -27,9 +27,16 @@
// $Header$
#include "BuildGUI_WireDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include "TColStd_MapOfInteger.hxx"
+
+#include
+
//=================================================================================
// class : BuildGUI_WireDlg()
// purpose : Constructs a BuildGUI_WireDlg which is a child of 'parent', with the
@@ -37,11 +44,11 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_WireDlg::BuildGUI_WireDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_WireDlg::BuildGUI_WireDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_WIRE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_WIRE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_WIRE_TITLE"));
@@ -96,8 +103,9 @@ void BuildGUI_WireDlg::Init()
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+
initName(tr("GEOM_WIRE"));
}
@@ -137,14 +145,14 @@ void BuildGUI_WireDlg::SelectionIntoArgument()
QString aString = ""; /* name of selection */
myOkEdgesAndWires = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aString);
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aString);
if(nbSel == 0)
return;
if(nbSel != 1)
aString = tr("%1_objects").arg(nbSel);
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myEdgesAndWires);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myEdgesAndWires);
if (!myEdgesAndWires.length())
return;
@@ -181,7 +189,8 @@ void BuildGUI_WireDlg::SetEditCurrentArgument()
void BuildGUI_WireDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
TColStd_MapOfInteger aMap;
aMap.Add(GEOM_WIRE);
aMap.Add(GEOM_EDGE);
diff --git a/src/BuildGUI/BuildGUI_WireDlg.h b/src/BuildGUI/BuildGUI_WireDlg.h
index 4fa20d828..2f53e2534 100644
--- a/src/BuildGUI/BuildGUI_WireDlg.h
+++ b/src/BuildGUI/BuildGUI_WireDlg.h
@@ -41,7 +41,7 @@ class BuildGUI_WireDlg : public GEOMBase_Skeleton
Q_OBJECT
public:
- BuildGUI_WireDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_WireDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_WireDlg();
protected:
diff --git a/src/BuildGUI/Makefile.in b/src/BuildGUI/Makefile.in
index abf7e06ca..36d4f80de 100644
--- a/src/BuildGUI/Makefile.in
+++ b/src/BuildGUI/Makefile.in
@@ -56,14 +56,14 @@ LIB_MOC = \
BuildGUI_SolidDlg.h \
BuildGUI_CompoundDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
diff --git a/src/DisplayGUI/DisplayGUI.cxx b/src/DisplayGUI/DisplayGUI.cxx
index 1f496edb0..7ceed3f63 100644
--- a/src/DisplayGUI/DisplayGUI.cxx
+++ b/src/DisplayGUI/DisplayGUI.cxx
@@ -30,20 +30,32 @@
#include "GeometryGUI.h"
#include "GEOM_Displayer.h"
-#include "QAD_RightFrame.h"
-#include "QAD_WaitCursor.h"
-#include "QAD_Desktop.h"
-#include "VTKViewer_ViewFrame.h"
-#include "VTKViewer_RenderWindowInteractor.h"
-#include "OCCViewer_ViewFrame.h"
-#include "OCCViewer_Viewer3d.h"
-#include "SALOME_ListIteratorOfListIO.hxx"
-#include "VTKViewer_Prs.h"
-#include "OCCViewer_Prs.h"
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+
+#include
+
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
#include
-using namespace std;
+#include
+
DisplayGUI* DisplayGUI::myGUIObject = 0;
@@ -51,11 +63,11 @@ DisplayGUI* DisplayGUI::myGUIObject = 0;
// function : DisplayGUI::GetDisplayGUI()
// purpose : Get the only DisplayGUI object [ static ]
//=======================================================================
-DisplayGUI* DisplayGUI::GetDisplayGUI()
+DisplayGUI* DisplayGUI::GetDisplayGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init DisplayGUI only once
- myGUIObject = new DisplayGUI();
+ myGUIObject = new DisplayGUI( parent );
}
return myGUIObject;
}
@@ -64,7 +76,7 @@ DisplayGUI* DisplayGUI::GetDisplayGUI()
// function : DisplayGUI::DisplayGUI()
// purpose : Constructor
//=======================================================================
-DisplayGUI::DisplayGUI() : GEOMGUI()
+DisplayGUI::DisplayGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
}
@@ -82,16 +94,17 @@ DisplayGUI::~DisplayGUI()
// function : DisplayGUI::OnGUIEvent()
// purpose : Dispatch menu command
//=======================================================================
-bool DisplayGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- DisplayGUI* myDisplayGUI = GetDisplayGUI();
+ DisplayGUI* myDisplayGUI = GetDisplayGUI( getGeometryGUI() );
switch (theCommandID) {
case 211: // MENU VIEW - WIREFRAME/SHADING
{
myDisplayGUI->InvertDisplayMode();
int newMode = myDisplayGUI->GetDisplayMode();
- QAD_Application::getDesktop()->menuBar()->changeItem( 211, newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
+ SUIT_Session::session()->activeApplication()->desktop()->menuBar()->
+ changeItem( 211, newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
break;
}
case 212: // MENU VIEW - DISPLAY ALL
@@ -131,7 +144,7 @@ bool DisplayGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
}
default:
{
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
}
@@ -144,24 +157,29 @@ bool DisplayGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
//=====================================================================================
void DisplayGUI::DisplayAll()
{
- QAD_WaitCursor wc;
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SComponent_var SC = aStudy->FindComponent( "GEOM" );
- if ( SC->_is_nil() )
+ SalomeApp_Study* appStudy = dynamic_cast( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return;
+ _PTR(Study) aStudy = appStudy->studyDS();
+ if ( !aStudy ) return;
+ _PTR(SComponent) SC ( aStudy->FindComponent( "GEOM" ) );
+ if ( !SC )
return;
SALOME_ListIO listIO;
- SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator( SC );
+ _PTR(ChildIterator) anIter ( aStudy->NewChildIterator( SC ) );
anIter->InitEx( true );
+
+ SUIT_OverrideCursor();
+
while( anIter->More() ) {
- SALOMEDS::SObject_var valSO = anIter->Value();
- SALOMEDS::SObject_var refSO;
+ _PTR(SObject) valSO ( anIter->Value() );
+ _PTR(SObject) refSO;
if ( !valSO->ReferencedObject( refSO ) ) {
- listIO.Append( new SALOME_InteractiveObject( valSO->GetID(), SC->ComponentDataType() ,valSO->GetName()) );
+ listIO.Append( new SALOME_InteractiveObject( valSO->GetID().c_str(), SC->ComponentDataType().c_str() ,valSO->GetName().c_str() ) );
}
anIter->Next();
}
- GEOM_Displayer().Display( listIO, true );
+ GEOM_Displayer( appStudy ).Display( listIO, true );
}
//=====================================================================================
@@ -170,10 +188,20 @@ void DisplayGUI::DisplayAll()
//=====================================================================================
void DisplayGUI::EraseAll()
{
- QAD_WaitCursor wc;
- QAD_ViewFrame* vf = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- if ( vf->getTypeView() == VIEW_OCC || vf->getTypeView() == VIEW_VTK )
- vf->EraseAll();
+ SUIT_OverrideCursor();
+
+ SUIT_Application* app = SUIT_Session::session()->activeApplication();
+ if ( app ) {
+ SUIT_ViewWindow* vw = app->desktop()->activeWindow();
+ if ( vw ) {
+ SalomeApp_Study* appStudy = dynamic_cast( app->activeStudy() );
+ SUIT_ViewManager* vman = vw->getViewManager();
+ if ( vman->getType() == OCCViewer_Viewer::Type() ||
+ vman->getType() == VTKViewer_Viewer::Type() ) {
+ GEOM_Displayer( appStudy ).EraseAll();
+ }
+ }
+ }
}
//=====================================================================================
@@ -192,27 +220,39 @@ void DisplayGUI::DisplayOnly()
//=====================================================================================
void DisplayGUI::Display()
{
- QAD_WaitCursor wc;
SALOME_ListIO listIO;
+
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app ) return;
+
+ SalomeApp_Study* anActiveStudy = dynamic_cast( app->activeStudy() );
+ if ( !anActiveStudy ) return;
+
+ //get SalomeApp selection manager
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr ) return;
+
+ SALOME_ListIO aList;
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
+ SUIT_OverrideCursor();
- QAD_Study* anActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
- SALOME_Selection* Sel = SALOME_Selection::Selection( anActiveStudy->getSelection() );
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
for( ;It.More();It.Next() ) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
if ( anIObject->hasEntry() ) {
- SALOMEDS::SObject_var SO = anActiveStudy->getStudyDocument()->FindObjectID( anIObject->getEntry() );
- if ( !SO->_is_nil() && QString( SO->GetID() ) == QString( SO->GetFatherComponent()->GetID() ) ) {
- SALOMEDS::SComponent_var SC = SO->GetFatherComponent();
+ _PTR(SObject) SO ( anActiveStudy->studyDS()->FindObjectID( anIObject->getEntry() ) );
+ if ( SO && QString( SO->GetID().c_str() ) == QString( SO->GetFatherComponent()->GetID().c_str() ) ) {
+ _PTR(SComponent) SC ( SO->GetFatherComponent() );
// if component is selected
listIO.Clear();
- SALOMEDS::ChildIterator_var anIter = anActiveStudy->getStudyDocument()->NewChildIterator( SO );
+ _PTR(ChildIterator) anIter ( anActiveStudy->studyDS()->NewChildIterator( SO ) );
anIter->InitEx( true );
while( anIter->More() ) {
- SALOMEDS::SObject_var valSO = anIter->Value();
- SALOMEDS::SObject_var refSO;
+ _PTR(SObject) valSO ( anIter->Value() );
+ _PTR(SObject) refSO;
if ( !valSO->ReferencedObject( refSO ) ) {
- listIO.Append( new SALOME_InteractiveObject( valSO->GetID(), SC->ComponentDataType() ,valSO->GetName()) );
+ listIO.Append( new SALOME_InteractiveObject( valSO->GetID().c_str(), SC->ComponentDataType().c_str() ,valSO->GetName().c_str() ) );
}
anIter->Next();
}
@@ -226,7 +266,7 @@ void DisplayGUI::Display()
listIO.Append( anIObject );
}
}
- GEOM_Displayer().Display( listIO, true );
+ GEOM_Displayer( anActiveStudy ).Display( listIO, true );
}
@@ -236,27 +276,39 @@ void DisplayGUI::Display()
//=====================================================================================
void DisplayGUI::Erase()
{
- QAD_WaitCursor wc;
SALOME_ListIO listIO;
- QAD_Study* anActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
- SALOME_Selection* Sel = SALOME_Selection::Selection( anActiveStudy->getSelection() );
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app ) return;
+
+ SalomeApp_Study* anActiveStudy = dynamic_cast( app->activeStudy() );
+ if ( !anActiveStudy ) return;
+
+ //get SalomeApp selection manager
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr ) return;
+
+ SALOME_ListIO aList;
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
+ SUIT_OverrideCursor();
+
for( ;It.More();It.Next() ) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
if ( anIObject->hasEntry() ) {
- SALOMEDS::SObject_var SO = anActiveStudy->getStudyDocument()->FindObjectID( anIObject->getEntry() );
- if ( !SO->_is_nil() && QString( SO->GetID() ) == QString( SO->GetFatherComponent()->GetID() ) ) {
- SALOMEDS::SComponent_var SC = SO->GetFatherComponent();
+ _PTR(SObject) SO ( anActiveStudy->studyDS()->FindObjectID( anIObject->getEntry() ) );
+ if ( SO && QString( SO->GetID().c_str() ) == QString( SO->GetFatherComponent()->GetID().c_str() ) ) {
+ _PTR(SComponent) SC ( SO->GetFatherComponent() );
// if component is selected
listIO.Clear();
- SALOMEDS::ChildIterator_var anIter = anActiveStudy->getStudyDocument()->NewChildIterator( SO );
+ _PTR(ChildIterator) anIter ( anActiveStudy->studyDS()->NewChildIterator( SO ) );
anIter->InitEx( true );
while( anIter->More() ) {
- SALOMEDS::SObject_var valSO = anIter->Value();
- SALOMEDS::SObject_var refSO;
+ _PTR(SObject) valSO ( anIter->Value() );
+ _PTR(SObject) refSO;
if ( !valSO->ReferencedObject( refSO ) ) {
- listIO.Append( new SALOME_InteractiveObject( valSO->GetID(), SC->ComponentDataType() ,valSO->GetName()) );
+ listIO.Append( new SALOME_InteractiveObject( valSO->GetID().c_str(), SC->ComponentDataType().c_str() ,valSO->GetName().c_str() ) );
}
anIter->Next();
}
@@ -270,25 +322,26 @@ void DisplayGUI::Erase()
listIO.Append( anIObject );
}
}
- GEOM_Displayer().Erase( listIO, true );
- Sel->ClearIObjects();
+ GEOM_Displayer(anActiveStudy).Erase( listIO, true );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
}
//=====================================================================================
// function : DisplayGUI::SetDisplayMode()
-// purpose : Set display mode for the viewer (current viewer if - 0 )
+// purpose : Set display mode for the viewer (current viewer if - 0 )
//=====================================================================================
-void DisplayGUI::SetDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
+void DisplayGUI::SetDisplayMode( const int mode, SUIT_ViewWindow* viewWindow )
{
- QAD_WaitCursor wc;
- if ( !viewFrame )
- viewFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- if( viewFrame->getTypeView() == VIEW_VTK ) {
- VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewFrame*)viewFrame)->getRWInteractor();
+ SUIT_OverrideCursor();
+
+ if ( !viewWindow )
+ viewWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if ( viewWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewWindow*)viewWindow)->getRWInteractor();
myRenderInter->SetDisplayMode( mode );
}
- else if( viewFrame->getTypeView() == VIEW_OCC ) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)viewFrame)->getViewer();
+ else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
AIS_DisplayMode newmode = (mode == 1 ? AIS_Shaded : AIS_WireFrame);
AIS_ListOfInteractive List;
@@ -312,19 +365,19 @@ void DisplayGUI::SetDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
//=====================================================================================
// function : DisplayGUI::GetDisplayMode()
-// purpose : Get display mode of the viewer (current viewer if - 0 )
+// purpose : Get display mode of the viewer (current viewer if - 0 )
//=====================================================================================
-int DisplayGUI::GetDisplayMode( QAD_ViewFrame* viewFrame )
+int DisplayGUI::GetDisplayMode( SUIT_ViewWindow* viewWindow )
{
int dispMode = 0;
- if ( !viewFrame )
- viewFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- if( viewFrame->getTypeView() == VIEW_VTK) {
- VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewFrame*)viewFrame)->getRWInteractor();
+ if ( !viewWindow )
+ viewWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if ( viewWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewWindow*)viewWindow)->getRWInteractor();
dispMode = myRenderInter->GetDisplayMode();
}
- else if( viewFrame->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)viewFrame)->getViewer();
+ else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
AIS_DisplayMode mode = (AIS_DisplayMode)ic->DisplayMode();
dispMode = (mode == AIS_WireFrame ? 0 : 1 );
@@ -335,29 +388,42 @@ int DisplayGUI::GetDisplayMode( QAD_ViewFrame* viewFrame )
//=====================================================================================
// function : DisplayGUI::InvertDisplayMode()
// purpose : Invert display mode ( shadin <-> wireframe ) for the viewer
-// (current viewer if = 0 )
+// (current viewer if = 0 )
//=====================================================================================
-void DisplayGUI::InvertDisplayMode( QAD_ViewFrame* viewFrame )
+void DisplayGUI::InvertDisplayMode( SUIT_ViewWindow* viewWindow )
{
- SetDisplayMode( 1 - GetDisplayMode( viewFrame ) );
+ SetDisplayMode( 1 - GetDisplayMode( viewWindow ) );
}
//=====================================================================================
// function : DisplayGUI::ChangeDisplayMode()
// purpose : Set display mode for selected objects in the viewer given
-// (current viewer if = 0 )
+// (current viewer if = 0 )
//=====================================================================================
-void DisplayGUI::ChangeDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
+void DisplayGUI::ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindow )
{
- QAD_WaitCursor wc;
- if ( !viewFrame )
- viewFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
- if ( viewFrame->getTypeView() == VIEW_VTK ) {
- VTKViewer_RenderWindowInteractor* myRenderInter = ((VTKViewer_ViewFrame*)viewFrame)->getRWInteractor();
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
+ if ( !viewWindow )
+ viewWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app ) return;
+
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr ) return;
+
+ SUIT_OverrideCursor();
+
+ SALOME_ListIO aList;
+
+ if ( viewWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter = ((VTKViewer_ViewWindow*)viewWindow)->getRWInteractor();
+
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
for( ;It.More(); It.Next() ) {
- VTKViewer_Prs* vtkPrs = dynamic_cast( viewFrame->CreatePrs( It.Value()->getEntry() ) );
+ SVTK_Viewer* stvkViewer = (SVTK_Viewer*)(viewWindow->getViewManager()->getViewModel());
+ SVTK_Prs* vtkPrs = dynamic_cast( stvkViewer->CreatePrs( It.Value()->getEntry() ) );
if ( vtkPrs && !vtkPrs->IsNull() ) {
if ( mode == 0 )
myRenderInter->ChangeRepresentationToWireframe( vtkPrs->GetObjects() );
@@ -367,12 +433,16 @@ void DisplayGUI::ChangeDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
}
myRenderInter->Render();
}
- else if ( viewFrame->getTypeView() == VIEW_OCC ) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)viewFrame)->getViewer();
+ else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
+
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
for( ;It.More(); It.Next() ) {
- OCCViewer_Prs* occPrs = dynamic_cast( viewFrame->CreatePrs( It.Value()->getEntry() ) );
+ SOCC_Viewer* soccViewer = (SOCC_Viewer*)(viewWindow->getViewManager()->getViewModel());
+ SOCC_Prs* occPrs = dynamic_cast( soccViewer->CreatePrs( It.Value()->getEntry() ) );
if ( occPrs && !occPrs->IsNull() ) {
AIS_ListOfInteractive shapes; occPrs->GetObjects( shapes );
AIS_ListIteratorOfListOfInteractive interIter( shapes );
@@ -393,8 +463,8 @@ void DisplayGUI::ChangeDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return DisplayGUI::GetDisplayGUI();
+ return DisplayGUI::GetDisplayGUI( parent );
}
}
diff --git a/src/DisplayGUI/DisplayGUI.h b/src/DisplayGUI/DisplayGUI.h
index bf2b57ac1..10f53a97b 100644
--- a/src/DisplayGUI/DisplayGUI.h
+++ b/src/DisplayGUI/DisplayGUI.h
@@ -36,20 +36,21 @@
// class : GEOMBase_Display
// purpose :
//=================================================================================
-class QAD_ViewFrame;
+//class QAD_ViewFrame;
+class SUIT_ViewWindow;
class DisplayGUI : public GEOMGUI
{
protected:
- DisplayGUI(); // hide constructor to avoid direct creation
+ DisplayGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~DisplayGUI();
// Get the only DisplayGUI object
- static DisplayGUI* GetDisplayGUI();
+ static DisplayGUI* GetDisplayGUI( GeometryGUI* parent );
// Dispatch menu command
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
// Display all GEOM objects
void DisplayAll();
@@ -63,17 +64,17 @@ public :
void Erase();
// DISPLAY MODE methods : 0 - wireframe, 1 - shading
- // Set display mode for the viewer (current viewer if - 0 )
- void SetDisplayMode( const int mode, QAD_ViewFrame* viewFrame = 0 );
- // Get display mode of the viewer (current viewer if - 0 )
- int GetDisplayMode( QAD_ViewFrame* viewFrame = 0 );
+ // Set display mode for the viewer (current viewer if - 0 )
+ void SetDisplayMode( const int mode, SUIT_ViewWindow* viewWindow = 0 );
+ // Get display mode of the viewer (current viewer if - 0 )
+ int GetDisplayMode( SUIT_ViewWindow* viewWindow = 0 );
// Invert display mode ( shadin <-> wireframe ) for the viewer
- // (current viewer if = 0 )
- void InvertDisplayMode( QAD_ViewFrame* viewFrame = 0 );
+ // (current viewer if = 0 )
+ void InvertDisplayMode( SUIT_ViewWindow* viewWindow = 0 );
// Set display mode for selected objects in the viewer given
- // (current viewer if = 0 )
- void ChangeDisplayMode( const int mode, QAD_ViewFrame* viewFrame = 0 );
+ // (current viewer if = 0 )
+ void ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindo = 0 );
private:
static DisplayGUI* myGUIObject; // the only DisplayGUI object
diff --git a/src/DisplayGUI/Makefile.in b/src/DisplayGUI/Makefile.in
index 8d0958981..59d22518b 100644
--- a/src/DisplayGUI/Makefile.in
+++ b/src/DisplayGUI/Makefile.in
@@ -44,15 +44,15 @@ LIB_SRC = DisplayGUI.cxx
LIB_MOC =
-LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lGEOMGUI
+LDFLAGS += -lGEOM
@CONCLUDE@
diff --git a/src/DlgRef/DlgRef_SpinBox.cxx b/src/DlgRef/DlgRef_SpinBox.cxx
index 5dc0e0463..418be2d55 100644
--- a/src/DlgRef/DlgRef_SpinBox.cxx
+++ b/src/DlgRef/DlgRef_SpinBox.cxx
@@ -36,7 +36,7 @@ using namespace std;
// purpose : constructor of specific widget accepting floats in double precision.
//=================================================================================
DlgRef_SpinBox::DlgRef_SpinBox(QWidget* parent, const char* name)
-: QAD_SpinBoxDbl(parent, name)
+ : QtxDblSpinBox(parent, name)
{
}
diff --git a/src/DlgRef/DlgRef_SpinBox.h b/src/DlgRef/DlgRef_SpinBox.h
index eec1c40e5..a2659a6f4 100644
--- a/src/DlgRef/DlgRef_SpinBox.h
+++ b/src/DlgRef/DlgRef_SpinBox.h
@@ -29,13 +29,13 @@
#ifndef GEOMSPINBOX_H
#define GEOMSPINBOX_H
-#include "QAD_SpinBoxDbl.h"
+#include "QtxDblSpinBox.h"
//=================================================================================
// class : DlgRef_SpinBox
// purpose : Derivated from QSpinBox class and modified to accept floats
//=================================================================================
-class DlgRef_SpinBox : public QAD_SpinBoxDbl
+class DlgRef_SpinBox : public QtxDblSpinBox
{
Q_OBJECT
diff --git a/src/DlgRef/Makefile.in b/src/DlgRef/Makefile.in
index a986c83f6..546df1fff 100644
--- a/src/DlgRef/Makefile.in
+++ b/src/DlgRef/Makefile.in
@@ -149,8 +149,8 @@ LIB_CLIENT_IDL =
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS +=
diff --git a/src/EntityGUI/EntityGUI.cxx b/src/EntityGUI/EntityGUI.cxx
index 28765de1f..104dfd303 100644
--- a/src/EntityGUI/EntityGUI.cxx
+++ b/src/EntityGUI/EntityGUI.cxx
@@ -28,15 +28,17 @@
#include "EntityGUI.h"
#include "GeometryGUI.h"
-
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "VTKViewer_ViewFrame.h"
#include "GEOM_AssemblyBuilder.h"
-#include "SALOMEGUI_ImportOperation.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_ViewWindow.h"
+#include "OCCViewer_ViewModel.h"
+#include "OCCViewer_ViewManager.h"
+#include "VTKViewer_ViewModel.h"
+#include "SalomeApp_Study.h"
+#include "SalomeApp_Tools.h"
+//#include "SALOMEGUI_ImportOperation.h"
#include
#include
@@ -47,6 +49,7 @@
#include "utilities.h"
+using namespace boost;
using namespace std;
EntityGUI* EntityGUI::myGUIObject = 0;
@@ -55,11 +58,11 @@ EntityGUI* EntityGUI::myGUIObject = 0;
// function : GetEntityGUI()
// purpose : Get the only EntityGUI object [ static ]
//=======================================================================
-EntityGUI* EntityGUI::GetEntityGUI()
+EntityGUI* EntityGUI::GetEntityGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init EntityGUI only once
- myGUIObject = new EntityGUI();
+ myGUIObject = new EntityGUI( parent );
}
return myGUIObject;
}
@@ -68,10 +71,10 @@ EntityGUI* EntityGUI::GetEntityGUI()
// function : EntityGUI()
// purpose : Constructor
//=======================================================================
-EntityGUI::EntityGUI() : GEOMGUI()
+EntityGUI::EntityGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
myGeomBase = new GEOMBase();
- myGeom = GEOM::GEOM_Gen::_duplicate( GeometryGUI::GetGeomGUI()->GetGeomGen() );
+ myGeom = GEOM::GEOM_Gen::_duplicate( GeometryGUI::GetGeomGen() );
mySimulationShape1 = new AIS_Shape(TopoDS_Shape());
mySimulationShape2 = new AIS_Shape(TopoDS_Shape());
@@ -91,23 +94,22 @@ EntityGUI::~EntityGUI()
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool EntityGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool EntityGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch (theCommandID)
{
case 404: // SKETCHER
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
- aDlg = new EntityGUI_SketcherDlg(parent, "", Sel);
+ getGeometryGUI()->ActiveWorkingPlane();
+ aDlg = new EntityGUI_SketcherDlg(getGeometryGUI(), parent, "");
break;
case 407: // EXPLODE : use ic
- aDlg = new EntityGUI_SubShapeDlg(parent, "", Sel);
+ aDlg = new EntityGUI_SubShapeDlg(parent, "");
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
if ( aDlg )
@@ -137,7 +139,7 @@ void EntityGUI::OnSketchEnd(const char *Cmd)
QAD_Application::getDesktop()->putInfo(tr("GEOM_PRP_DONE"));
}
catch(const SALOME::SALOME_Exception& S_ex) {
- QtCatchCorbaException(S_ex);
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
*/
return;
@@ -151,10 +153,12 @@ void EntityGUI::OnSketchEnd(const char *Cmd)
void EntityGUI::DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shape& S2)
{
//NRI DEBUG : 14/02/2002
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
+ if( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() )
return;
-
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
+
+ OCCViewer_Viewer* v3d =
+ ((OCCViewer_ViewManager*)(SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
try {
if(!S1.IsNull()) {
@@ -197,10 +201,18 @@ void EntityGUI::DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shap
//==================================================================================
void EntityGUI::EraseSimulationShape()
{
- int count = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
- for(int i = 0; i < count; i++) {
- if(QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i)->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i)->getRightFrame()->getViewFrame())->getViewer();
+ // get all view windows at the desktop
+ QPtrList aWndLst = SUIT_Session::session()->activeApplication()->desktop()->windows();
+ //get all view windows, which belong to the active study
+ QPtrList aWndLstAS;
+ SUIT_ViewWindow* vw;
+ for ( vw = aWndLst.first(); vw; vw = aWndLst.next() )
+ if ( vw->getViewManager()->study() == SUIT_Session::session()->activeApplication()->activeStudy() )
+ aWndLstAS.append( vw );
+
+ for ( vw = aWndLstAS.first(); vw; vw = aWndLstAS.next() ) {
+ if ( vw->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(vw->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
ic->Erase(mySimulationShape1, Standard_True, Standard_False);
ic->ClearPrs(mySimulationShape1);
@@ -215,24 +227,25 @@ void EntityGUI::EraseSimulationShape()
// function : SObjectExist()
// purpose :
//=====================================================================================
-bool EntityGUI::SObjectExist(SALOMEDS::SObject_ptr theFatherObject, const char* IOR)
+bool EntityGUI::SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR)
{
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::ChildIterator_var it = aStudy->NewChildIterator(theFatherObject);
- SALOMEDS::SObject_var RefSO;
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
+ SalomeApp_Study* appStudy = dynamic_cast( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return false;
+ _PTR(Study) aStudy = appStudy->studyDS();
+ _PTR(ChildIterator) it ( aStudy->NewChildIterator(theFatherObject) );
+ _PTR(SObject) RefSO;
+ _PTR(GenericAttribute) anAttr;
for(; it->More();it->Next()) {
- SALOMEDS::SObject_var SO= it->Value();
+ _PTR(SObject) SO ( it->Value() );
if(SO->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- if(strcmp( anIOR->Value(), IOR ) == 0)
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ if(strcmp( anIOR->Value().c_str(), IOR ) == 0)
return true;
}
if(SO->ReferencedObject(RefSO)) {
if(RefSO->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- if(strcmp(anIOR->Value(), IOR) == 0)
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ if(strcmp(anIOR->Value().c_str(), IOR) == 0)
return true;
}
}
@@ -247,7 +260,7 @@ bool EntityGUI::SObjectExist(SALOMEDS::SObject_ptr theFatherObject, const char*
//=====================================================================================
bool EntityGUI::OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType)
{
- QAD_Application::getDesktop()->putInfo("OnSubShapeGetAll method from EntityGUI should be reimplemented ...");
+ SUIT_Session::session()->activeApplication()->putInfo("OnSubShapeGetAll method from EntityGUI should be reimplemented ...");
/*
SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
SALOMEDS::SObject_var theObj = aStudy->FindObjectIOR(ShapeTopoIOR);
@@ -277,7 +290,7 @@ bool EntityGUI::OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* Shap
}
}
catch(const SALOME::SALOME_Exception& S_ex) {
- QtCatchCorbaException(S_ex);
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
// open transaction
@@ -467,7 +480,7 @@ bool EntityGUI::OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* Shap
//=====================================================================================
bool EntityGUI::OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType, Standard_Integer& aLocalContextId, bool& myUseLocalContext)
{
- QAD_Application::getDesktop()->putInfo("OnSubShapeGetSelected method from EntityGUI should be reimplemented ...");
+ SUIT_Session::session()->activeApplication()->putInfo("OnSubShapeGetSelected method from EntityGUI should be reimplemented ...");
// //* Test the type of viewer */
// if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
// return false;
@@ -532,7 +545,7 @@ bool EntityGUI::OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char*
// aResult = myGeom->SubShape(aShape, SubShapeType, ListOfID);
// }
// catch (const SALOME::SALOME_Exception& S_ex) {
-// QtCatchCorbaException(S_ex);
+// SalomeApp_Tools::QtCatchCorbaException(S_ex);
// }
// /* local context from DialogBox */
@@ -655,8 +668,8 @@ bool EntityGUI::OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char*
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return EntityGUI::GetEntityGUI();
+ return EntityGUI::GetEntityGUI( parent );
}
}
diff --git a/src/EntityGUI/EntityGUI.h b/src/EntityGUI/EntityGUI.h
index bc0fdadc4..fe2f7d816 100644
--- a/src/EntityGUI/EntityGUI.h
+++ b/src/EntityGUI/EntityGUI.h
@@ -32,6 +32,8 @@
#include "GEOMGUI.h"
#include "GEOMBase.h"
+#include "SALOMEDSClient.hxx"
+
//=================================================================================
// class : EntityGUI
// purpose :
@@ -39,15 +41,15 @@
class EntityGUI : public GEOMGUI
{
protected:
- EntityGUI(); // hide constructor to avoid direct creation
+ EntityGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~EntityGUI();
// Get the only EntityGUI object
- static EntityGUI* GetEntityGUI();
+ static EntityGUI* GetEntityGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
void OnSketchEnd(const char *Cmd);
@@ -58,7 +60,7 @@ public :
void MakeBezierAndDisplay(GEOM::string_array& listShapesIOR);
/* Methods for sub shapes explode */
- bool SObjectExist(SALOMEDS::SObject_ptr theFatherObject, const char* IOR);
+ bool SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR);
bool OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType);
bool OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType,
Standard_Integer& aLocalContextId, bool& myUseLocalContext);
diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.cxx b/src/EntityGUI/EntityGUI_SketcherDlg.cxx
index bd150b1ad..0ac078075 100644
--- a/src/EntityGUI/EntityGUI_SketcherDlg.cxx
+++ b/src/EntityGUI/EntityGUI_SketcherDlg.cxx
@@ -29,11 +29,16 @@
#include "EntityGUI_SketcherDlg.h"
#include "Sketcher_Profile.hxx"
#include "GEOM_Displayer.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include
+#include
#include
#include
@@ -56,11 +61,11 @@ using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
-:EntityGUI_Skeleton_QTD(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose), GEOMBase_Helper(), myIsAllAdded( false )
+EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :EntityGUI_Skeleton_QTD(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose), GEOMBase_Helper(), myIsAllAdded( false ),
+ myGeometryGUI( GUI )
{
- mySelection = Sel;
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox(this);
+ myGeometryGUI->SetActiveDialogBox(this);
if ( !name ) setName("EntityGUI_SketcherDlg");
@@ -72,9 +77,9 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(QWidget* parent, const char* name,
GroupDest2->close(TRUE);
GroupDest3->close(TRUE);
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_UNDO")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_REDO")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_UNDO")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_REDO")));
setCaption(tr("GEOM_SKETCHER_TITLE"));
@@ -191,19 +196,19 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(QWidget* parent, const char* name,
connect(Group4Spin->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(Group4Spin->SpinBox_DS, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group1Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DY, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DY, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DZ, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DY, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DZ, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DS, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group1Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DS, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
Init();
}
@@ -215,7 +220,7 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(QWidget* parent, const char* name,
//=================================================================================
EntityGUI_SketcherDlg::~EntityGUI_SketcherDlg()
{
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( 0 );
+ myGeometryGUI->SetActiveDialogBox( 0 );
}
@@ -239,8 +244,7 @@ void EntityGUI_SketcherDlg::Init()
myLastY2 = 0.0;
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ double step = SUIT_Session::session()->resourceMgr()->doubleValue( "Geometry", "SettingsGeomStep", 100.0 );
/* min, max, step and decimals for spin boxes */
Group1Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
@@ -275,7 +279,7 @@ void EntityGUI_SketcherDlg::Init()
//=================================================================================
void EntityGUI_SketcherDlg::InitClick()
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
Group1Sel->hide();
Group1Spin->hide();
@@ -383,7 +387,8 @@ void EntityGUI_SketcherDlg::PointClicked(int constructorId)
{ // Selection
mySketchType = PT_SEL;
myEditCurrentArgument = Group1Sel->LineEdit1;
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
Group1Sel->show();
Group1Sel->buttonApply->setFocus();
SelectionIntoArgument();
@@ -632,8 +637,8 @@ void EntityGUI_SketcherDlg::ClickOnEnd()
// Verify validity of commands
if ( myCommand.count() <= 2 )
{
- QAD_MessageBox::error1( QAD_Application::getDesktop(),
- tr( "GEOM_ERROR_STATUS" ), tr( "CANNOT_CLOSE" ), tr( "BUT_OK" ) );
+ SUIT_MessageBox::error1( SUIT_Session::session()->activeApplication()->desktop(),
+ tr( "GEOM_ERROR_STATUS" ), tr( "CANNOT_CLOSE" ), tr( "BUT_OK" ) );
return;
}
@@ -763,16 +768,16 @@ void EntityGUI_SketcherDlg::SelectionIntoArgument()
myX = myLastX1;
myY = myLastY1;
- int nbSel = mySelection->IObjectCount();
+ int nbSel = IObjectCount();
if ( nbSel == 1 && myEditCurrentArgument == Group1Sel->LineEdit1 )
{
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes ) {
TopoDS_Shape aShape;
if ( GEOMBase::GetShape( aSelectedObject, aShape, TopAbs_VERTEX ) ) {
gp_Trsf aTrans;
- gp_Ax3 aWPlane = GeometryGUI::GetGeomGUI()->GetWorkingPlane();
+ gp_Ax3 aWPlane = myGeometryGUI->GetWorkingPlane();
aTrans.SetTransformation(aWPlane);
BRepBuilderAPI_Transform aTransformation(aShape, aTrans, Standard_False);
@@ -822,7 +827,7 @@ void EntityGUI_SketcherDlg::LineEditReturnPressed()
/* so SelectionIntoArgument() is automatically called. */
const QString objectUserName = myEditCurrentArgument->text();
QWidget* thisWidget = (QWidget*)this;
- if(GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, mySelection))
+ if(GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, selectedIO()))
myEditCurrentArgument->setText(objectUserName);
}
}
@@ -834,12 +839,12 @@ void EntityGUI_SketcherDlg::LineEditReturnPressed()
//=================================================================================
void EntityGUI_SketcherDlg::DeactivateActiveDialog()
{
- GeometryGUI::GetGeomGUI()->SetState( -1 );
+ //myGeometryGUI->SetState( -1 );
setEnabled( false );
globalSelection();
- disconnect(mySelection, 0, this, 0);
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox(0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
+ myGeometryGUI->SetActiveDialogBox(0);
}
@@ -849,13 +854,14 @@ void EntityGUI_SketcherDlg::DeactivateActiveDialog()
//=================================================================================
void EntityGUI_SketcherDlg::ActivateThisDialog()
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ myGeometryGUI->EmitSignalDeactivateDialog();
setEnabled(true);
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox((QDialog*)this);
+ myGeometryGUI->SetActiveDialogBox((QDialog*)this);
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- GeometryGUI::GetGeomGUI()->SetState( 0 );
+ //myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = Group1Sel->LineEdit1;
@@ -882,8 +888,8 @@ void EntityGUI_SketcherDlg::enterEvent(QEvent* e)
//=================================================================================
void EntityGUI_SketcherDlg::closeEvent(QCloseEvent* e)
{
- GeometryGUI::GetGeomGUI()->SetState( -1 );
- disconnect(mySelection, 0, this, 0);
+ //myGeometryGUI->SetState( -1 );
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
QDialog::closeEvent( e );
}
@@ -1279,7 +1285,7 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
}
}
- gp_Ax3 myWPlane = GeometryGUI::GetGeomGUI()->GetWorkingPlane();
+ gp_Ax3 myWPlane = myGeometryGUI->GetWorkingPlane();
GEOM::ListOfDouble_var WPlane = new GEOM::ListOfDouble;
WPlane->length(9);
WPlane[0] = myWPlane.Location().X();
@@ -1323,7 +1329,7 @@ void EntityGUI_SketcherDlg::displayPreview( GEOM::GEOM_Object_ptr object,
getDisplayer()->SetToActivate( activate );
// Make a reference to GEOM_Object
- getDisplayer()->SetName( GeometryGUI::GetORB()->object_to_string( object ) );
+ getDisplayer()->SetName( myGeometryGUI->getApp()->orb()->object_to_string( object ) );
// Create wire from applayed object
TopoDS_Shape anApplyedWire, aLastSegment;
@@ -1390,30 +1396,14 @@ bool EntityGUI_SketcherDlg::createShapes( GEOM::GEOM_Object_ptr theObject,
return true;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+//=================================================================================
+// function : getDesktop()
+// purpose :
+//=================================================================================
+SUIT_Desktop* EntityGUI_SketcherDlg::getDesktop() const
+{
+ return dynamic_cast( parentWidget() );
+}
diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.h b/src/EntityGUI/EntityGUI_SketcherDlg.h
index d7c287d79..4fc1149d5 100644
--- a/src/EntityGUI/EntityGUI_SketcherDlg.h
+++ b/src/EntityGUI/EntityGUI_SketcherDlg.h
@@ -45,8 +45,6 @@
#include "EntityGUI.h"
#include "GeometryGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
-
#include
#include
@@ -65,7 +63,7 @@ class EntityGUI_SketcherDlg : public EntityGUI_Skeleton_QTD, public GEOMBase_Hel
Q_OBJECT
public:
- EntityGUI_SketcherDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~EntityGUI_SketcherDlg();
protected:
@@ -76,6 +74,8 @@ protected:
void closeEvent( QCloseEvent* e );
+ virtual SUIT_Desktop* getDesktop() const;
+
private :
void Init();
void enterEvent(QEvent* e);
@@ -93,7 +93,6 @@ private :
bool myIsAllAdded;
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
- SALOME_Selection* mySelection; /* User shape selection */
QStringList myCommand;
QStringList myUndoCommand;
@@ -113,6 +112,8 @@ private :
EntityGUI_3Spin* Group3Spin;
EntityGUI_4Spin* Group4Spin;
+ GeometryGUI* myGeometryGUI;
+
enum SketchState {FIRST_POINT, NEXT_POINT};
enum SketchType {PT_ABS, PT_RELATIVE, PT_SEL,
diff --git a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx
index ff6304c63..4fbbd78f6 100644
--- a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx
+++ b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx
@@ -29,8 +29,11 @@
#include "EntityGUI_SubShapeDlg.h"
#include "GEOM_Displayer.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "OCCViewer_ViewModel.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include
@@ -39,6 +42,8 @@
#include
#include
+#include
+#include
//=================================================================================
// class : EntityGUI_SubShapeDlg
@@ -47,11 +52,11 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl)
+EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SUBSHAPE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SUBSHAPE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_SUBSHAPE_TITLE"));
@@ -108,7 +113,8 @@ void EntityGUI_SubShapeDlg::Init()
GroupPoints->ComboBox1->insertItem("Vertex");
GroupPoints->ComboBox1->insertItem("Shape");
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC)
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type())
GroupPoints->CheckButton1->setEnabled(false);
/* signals and slots connections */
@@ -125,8 +131,9 @@ void EntityGUI_SubShapeDlg::Init()
connect(GroupPoints->ComboBox1, SIGNAL(activated(int)), this, SLOT(ComboTextChanged()));
connect(GroupPoints->CheckButton1, SIGNAL(stateChanged(int)), this, SLOT(SubShapeToggled()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+
updateButtonState();
SelectionIntoArgument();
@@ -150,7 +157,7 @@ void EntityGUI_SubShapeDlg::ClickOnOk()
//=================================================================================
bool EntityGUI_SubShapeDlg::ClickOnApply()
{
- QAD_Application::getDesktop()->putInfo(tr(""));
+ SUIT_Session::session()->activeApplication()->putInfo(tr(""));
/* Explode all sub shapes */
if( isAllSubShapes() ) {
@@ -185,20 +192,20 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
QString aString = ""; /* name of selection */
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if( nbSel != 1 )
return;
TopoDS_Shape S;
- Handle(SALOME_InteractiveObject) IO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) IO = firstIObject();
if ( !IO->hasEntry() )
{
- QAD_Application::getDesktop()->putInfo( tr( "GEOM_PRP_SHAPE_IN_STUDY" ) );
+ SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_SHAPE_IN_STUDY" ) );
updateButtonState();
return;
}
- if ( !myGeomBase->GetTopoFromSelection( mySelection, S ) ||
+ if ( !myGeomBase->GetTopoFromSelection( selectedIO(), S ) ||
S.IsNull() ||
S.ShapeType() == TopAbs_VERTEX )
{
@@ -332,7 +339,8 @@ void EntityGUI_SubShapeDlg::DeactivateActiveDialog()
void EntityGUI_SubShapeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
SubShapeToggled();
updateButtonState();
}
@@ -456,7 +464,7 @@ unsigned int EntityGUI_SubShapeDlg::NumberOfSubShapes (const TopoDS_Shape& S,
//=================================================================================
void EntityGUI_SubShapeDlg::updateButtonState()
{
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC ||
+ if ( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType() != OCCViewer_Viewer::Type() ||
myObject->_is_nil() || shapeType() == TopAbs_SHAPE || shapeType() == TopAbs_COMPOUND ) {
GroupPoints->CheckButton1->setChecked( FALSE );
GroupPoints->CheckButton1->setEnabled( FALSE );
@@ -514,14 +522,14 @@ bool EntityGUI_SubShapeDlg::isValid( QString& msg )
if ( !myObject->_is_nil() ) {
if ( isAllSubShapes() )
isOk = true;
- else if ( mySelection->IObjectCount() == 1 ) {
+ else if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
isOk = aMapIndex.Extent() > 0;
if ( !isOk )
msg += tr( "NO_SUBSHAPES_SELECTED" );
@@ -547,14 +555,14 @@ bool EntityGUI_SubShapeDlg::execute( ObjectList& objects )
// and manual selection is active
if ( !isAllSubShapes() )
{
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
GEOM::GEOM_ILocalOperations_var aLocOp =
getGeomEngine()->GetILocalOperations( getStudyId() );
diff --git a/src/EntityGUI/EntityGUI_SubShapeDlg.h b/src/EntityGUI/EntityGUI_SubShapeDlg.h
index 3baba6c6c..ba1658a24 100644
--- a/src/EntityGUI/EntityGUI_SubShapeDlg.h
+++ b/src/EntityGUI/EntityGUI_SubShapeDlg.h
@@ -44,7 +44,6 @@ class EntityGUI_SubShapeDlg : public GEOMBase_Skeleton
public:
EntityGUI_SubShapeDlg( QWidget* parent = 0,
const char* name = 0,
- SALOME_Selection* Sel = 0,
bool modal = FALSE,
WFlags fl = 0 );
~EntityGUI_SubShapeDlg();
diff --git a/src/EntityGUI/Makefile.in b/src/EntityGUI/Makefile.in
index 2fd741ec5..720b6f7e9 100644
--- a/src/EntityGUI/Makefile.in
+++ b/src/EntityGUI/Makefile.in
@@ -74,15 +74,15 @@ LIB_MOC = \
EntityGUI_SketcherDlg.h \
EntityGUI_SubShapeDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lGEOMFiltersSelection -lGEOMSketcher -lGEOMBase -lGEOMGUI
+LDFLAGS += -lGEOMFiltersSelection -lGEOMSketcher -lGEOMBase -lGEOM
@CONCLUDE@
diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx
index 46726dcea..705f9c0e6 100644
--- a/src/GEOM/GEOM_Engine.cxx
+++ b/src/GEOM/GEOM_Engine.cxx
@@ -5,13 +5,13 @@
#include "GEOM_ISubShape.hxx"
#include "GEOM_SubShapeDriver.hxx"
#include "GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient.hxx"
+#include "GEOM_PythonDump.hxx"
#include "utilities.h"
-#include
-
#include
#include
+#include
#include
#include
#include
@@ -23,6 +23,14 @@
#include
#include
#include
+#include
+#include
+
+#include
+#include
+
+#include