]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
sources v1.2
authornri <nri@opencascade.com>
Wed, 9 Jul 2003 15:23:32 +0000 (15:23 +0000)
committernri <nri@opencascade.com>
Wed, 9 Jul 2003 15:23:32 +0000 (15:23 +0000)
676 files changed:
resources/CatalogModuleGeneral.xml
src/Container/Component_i.cxx
src/Container/Container_i.cxx
src/Container/Makefile.in
src/Container/SALOME_ComponentPy.py
src/Container/SALOME_Component_i.hxx
src/Container/SALOME_Container.cxx
src/Container/SALOME_ContainerPy.py
src/Container/SALOME_Container_i.hxx
src/DataTypeCatalog/Makefile.in
src/DataTypeCatalog/SALOME_DataTypeCatalog_Client.cxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_Handler.cxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_Handler.hxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_Parser.hxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_Server.cxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.cxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.hxx
src/HDFPersist/HDFOI.hxx
src/HDFPersist/HDFascii.cc [new file with mode: 0644]
src/HDFPersist/HDFascii.hxx [new file with mode: 0644]
src/HDFPersist/HDFattrClose.c
src/HDFPersist/HDFattrCreate.c
src/HDFPersist/HDFattrGetSize.c [new file with mode: 0644]
src/HDFPersist/HDFattrGetType.c [new file with mode: 0644]
src/HDFPersist/HDFattrOpen.c
src/HDFPersist/HDFattrRead.c
src/HDFPersist/HDFattrWrite.c
src/HDFPersist/HDFattribute.cc
src/HDFPersist/HDFattribute.hxx
src/HDFPersist/HDFcontainerObject.cc
src/HDFPersist/HDFcontainerObject.hxx
src/HDFPersist/HDFconvert.cc
src/HDFPersist/HDFconvert.hxx
src/HDFPersist/HDFdataset.cc
src/HDFPersist/HDFdataset.hxx
src/HDFPersist/HDFdatasetClose.c
src/HDFPersist/HDFdatasetCreate.c
src/HDFPersist/HDFdatasetGetDim.c
src/HDFPersist/HDFdatasetGetSize.c
src/HDFPersist/HDFdatasetGetType.c
src/HDFPersist/HDFdatasetGetnDim.c
src/HDFPersist/HDFdatasetOpen.c
src/HDFPersist/HDFdatasetRead.c
src/HDFPersist/HDFdatasetWrite.c
src/HDFPersist/HDFerrorModeLock.c
src/HDFPersist/HDFexception.hxx
src/HDFPersist/HDFexplorer.cc
src/HDFPersist/HDFexplorer.hxx
src/HDFPersist/HDFfile.cc
src/HDFPersist/HDFfile.hxx
src/HDFPersist/HDFfileClose.c
src/HDFPersist/HDFfileCreate.c
src/HDFPersist/HDFfileMount.c
src/HDFPersist/HDFfileOpen.c
src/HDFPersist/HDFfileUmount.c
src/HDFPersist/HDFgroup.cc
src/HDFPersist/HDFgroup.hxx
src/HDFPersist/HDFgroupClose.c
src/HDFPersist/HDFgroupCreate.c
src/HDFPersist/HDFgroupOpen.c
src/HDFPersist/HDFinternalObject.cc
src/HDFPersist/HDFinternalObject.hxx
src/HDFPersist/HDFnObjects.c
src/HDFPersist/HDFobject.cc
src/HDFPersist/HDFobject.hxx
src/HDFPersist/HDFobjectIdentify.c
src/HDFPersist/HDFobjectType.c
src/HDFPersist/HDFtypes.h
src/HDFPersist/Makefile.in
src/HDFPersist/hdfi.h
src/HDFPersist/test1.c
src/HDFPersist/test2.c
src/HDFPersist/test3.cxx
src/HDFPersist/test4.cxx
src/HDFPersist/test5.cxx
src/HDFPersist/test6.cxx
src/HDFPersist/test7.cxx
src/HDFPersist/test8.cxx
src/HDFPersist/test9.cxx
src/LifeCycleCORBA/LifeCycleCORBA.py
src/LifeCycleCORBA/Makefile.in
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx
src/LifeCycleCORBA/TestLifeCycleCORBA.cxx
src/Loader/InquireServersQThread.cxx
src/Loader/InquireServersQThread.h
src/Loader/Makefile.in
src/Loader/SALOME_Session_loader.cxx [new file with mode: 0644]
src/Logger/Makefile.in
src/Logger/SALOME_Logger_Server.cxx
src/Logger/SALOME_Logger_Server.hxx
src/Logger/SALOME_Trace.cxx
src/Logger/SALOME_Trace.hxx
src/Logger/SALOME_Trace.py
src/MPIContainer/MPIContainer_i.cxx
src/MPIContainer/MPIContainer_i.hxx
src/MPIContainer/MPIObject_i.cxx
src/MPIContainer/MPIObject_i.hxx
src/MPIContainer/Makefile.in
src/MPIContainer/SALOME_MPIContainer.cxx
src/MSG2QM/Makefile.in
src/MSG2QM/msg2qm.cxx
src/Makefile.in
src/ModuleCatalog/Makefile.in
src/ModuleCatalog/PathPrefix.hxx
src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.hxx
src/ModuleCatalog/SALOME_ModuleCatalog_Client.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_Handler.hxx
src/ModuleCatalog/SALOME_ModuleCatalog_Parser.hxx
src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_impl.hxx
src/ModuleGenerator/IDLparser.py
src/ModuleGenerator/Makefile.in
src/ModuleGenerator/tests/Truc2Component.idl
src/ModuleGenerator/tests/TrucComponent.idl
src/ModuleGenerator/tests/test1.sh
src/ModuleGenerator/tests/test1b.sh
src/ModuleGenerator/tests/test2.sh
src/ModuleGenerator/tests/test3.sh
src/ModuleGenerator/tests/test4.sh
src/ModuleGenerator/tests/test5.sh
src/NOTIFICATION_SWIG/Makefile.in
src/NOTIFICATION_SWIG/NOTIFICATION.i
src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx
src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx
src/NamingService/Makefile.in
src/NamingService/SALOME_NamingService.cxx
src/NamingService/SALOME_NamingService.hxx
src/NamingService/SALOME_NamingService.i
src/NamingService/SALOME_NamingServicePy.py
src/NamingService/ServiceUnreachable.cxx
src/NamingService/ServiceUnreachable.hxx
src/Notification/CosNotifyShorthands.h
src/Notification/Makefile.in
src/Notification/NOTIFICATION.cxx
src/Notification/NOTIFICATION.hxx
src/Notification/NOTIFICATION_Consumer.cxx
src/Notification/NOTIFICATION_Consumer.hxx
src/Notification/NOTIFICATION_Supplier.cxx
src/Notification/NOTIFICATION_Supplier.hxx
src/OBJECT/Handle_SALOME_AISObject.hxx
src/OBJECT/Handle_SALOME_AISShape.hxx
src/OBJECT/Handle_SALOME_InteractiveObject.hxx
src/OBJECT/Makefile.in
src/OBJECT/SALOME_AISObject.cxx
src/OBJECT/SALOME_AISObject.hxx
src/OBJECT/SALOME_AISObject.ixx
src/OBJECT/SALOME_AISObject.jxx
src/OBJECT/SALOME_AISShape.cxx
src/OBJECT/SALOME_AISShape.hxx
src/OBJECT/SALOME_AISShape.ixx
src/OBJECT/SALOME_AISShape.jxx
src/OBJECT/SALOME_Actor.cxx
src/OBJECT/SALOME_Actor.h
src/OBJECT/SALOME_InteractiveObject.cxx
src/OBJECT/SALOME_InteractiveObject.hxx
src/OBJECT/SALOME_InteractiveObject.ixx
src/OBJECT/SALOME_InteractiveObject.jxx
src/OBJECT/SALOME_Transform.cxx [new file with mode: 0644]
src/OBJECT/SALOME_Transform.h [new file with mode: 0644]
src/OBJECT/VTKViewer_Common.h [new file with mode: 0755]
src/OCCViewer/Makefile.in
src/OCCViewer/OCCViewer.cxx
src/OCCViewer/OCCViewer.h
src/OCCViewer/OCCViewer_AISSelector.cxx
src/OCCViewer/OCCViewer_AISSelector.h
src/OCCViewer/OCCViewer_Selector.cxx
src/OCCViewer/OCCViewer_Selector.h
src/OCCViewer/OCCViewer_VService.cxx
src/OCCViewer/OCCViewer_VService.h
src/OCCViewer/OCCViewer_ViewFrame.cxx
src/OCCViewer/OCCViewer_ViewFrame.h
src/OCCViewer/OCCViewer_ViewPort.cxx
src/OCCViewer/OCCViewer_ViewPort.h
src/OCCViewer/OCCViewer_ViewPort3d.cxx
src/OCCViewer/OCCViewer_ViewPort3d.h
src/OCCViewer/OCCViewer_Viewer3d.cxx
src/OCCViewer/OCCViewer_Viewer3d.h
src/PatchQt/Makefile.in
src/PatchQt/qactionP.cxx [new file with mode: 0644]
src/PatchQt/qactionP.h [new file with mode: 0644]
src/PatchQt/qsplitterP.cxx
src/PatchQt/qsplitterP.h
src/PatchQt/qworkspaceP.cxx
src/PatchQt/qworkspaceP.h
src/Plot2d/Makefile.in
src/Plot2d/Plot2d.cxx
src/Plot2d/Plot2d.h
src/Plot2d/Plot2d_Curve.cxx
src/Plot2d/Plot2d_Curve.h
src/Plot2d/Plot2d_CurveContainer.cxx
src/Plot2d/Plot2d_CurveContainer.h
src/Plot2d/Plot2d_FitDataDlg.cxx [new file with mode: 0644]
src/Plot2d/Plot2d_FitDataDlg.h [new file with mode: 0644]
src/Plot2d/Plot2d_SetupPlot2dDlg.cxx
src/Plot2d/Plot2d_SetupPlot2dDlg.h
src/Plot2d/Plot2d_SetupViewDlg.cxx
src/Plot2d/Plot2d_SetupViewDlg.h
src/Plot2d/Plot2d_ViewFrame.cxx
src/Plot2d/Plot2d_ViewFrame.h
src/Registry/Makefile.in
src/Registry/RegistryConnexion.cxx
src/Registry/RegistryConnexion.hxx
src/Registry/RegistryService.cxx
src/Registry/RegistryService.hxx
src/Registry/SALOME_Registry_Server.cxx
src/RegistryDisplay/HelpWindow.cxx
src/RegistryDisplay/HelpWindow.hxx
src/RegistryDisplay/IntervalWindow.cxx
src/RegistryDisplay/IntervalWindow.hxx
src/RegistryDisplay/Makefile.in
src/RegistryDisplay/RegWidget.cxx
src/RegistryDisplay/RegWidget.hxx
src/RegistryDisplay/RegWidgetFactory.cxx
src/RessourcesCatalog/Makefile.in
src/RessourcesCatalog/SALOME_RessourcesCatalog_Client.cxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_Handler.cxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_Handler.hxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_Parser.hxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_Server.cxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.cxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.hxx
src/SALOMEDS/Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
src/SALOMEDS/Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
src/SALOMEDS/Handle_SALOMEDS_DrawableAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_ExpandableAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_IORAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_LocalIDAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_OCAFApplication.hxx
src/SALOMEDS/Handle_SALOMEDS_OpenedAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_PersRefAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_PixMapAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_PythonObjectAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_SelectableAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_SequenceOfRealAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_StudyPropertiesAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_TableOfIntegerAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_TableOfRealAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_TableOfStringAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_TargetAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_TextColorAttribute.hxx
src/SALOMEDS/Handle_SALOMEDS_TextHighlightColorAttribute.hxx
src/SALOMEDS/Makefile.in
src/SALOMEDS/SALOMEDS.cdl
src/SALOMEDS/SALOMEDS_AttLong_i.cxx
src/SALOMEDS/SALOMEDS_AttLong_i.hxx
src/SALOMEDS/SALOMEDS_AttReal_i.cxx
src/SALOMEDS/SALOMEDS_AttReal_i.hxx
src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx
src/SALOMEDS/SALOMEDS_AttributeComment_i.hxx
src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx
src/SALOMEDS/SALOMEDS_AttributeDrawable_i.hxx
src/SALOMEDS/SALOMEDS_AttributeExpandable_i.cxx
src/SALOMEDS/SALOMEDS_AttributeExpandable_i.hxx
src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx
src/SALOMEDS/SALOMEDS_AttributeIOR_i.hxx
src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeInteger_i.hxx
src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx
src/SALOMEDS/SALOMEDS_AttributeLocalID_i.hxx
src/SALOMEDS/SALOMEDS_AttributeName_i.cxx
src/SALOMEDS/SALOMEDS_AttributeName_i.hxx
src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx
src/SALOMEDS/SALOMEDS_AttributeOpened_i.hxx
src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.cxx
src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.hxx
src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx
src/SALOMEDS/SALOMEDS_AttributePixMap_i.hxx
src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx
src/SALOMEDS/SALOMEDS_AttributePythonObject_i.hxx
src/SALOMEDS/SALOMEDS_AttributeReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeReal_i.hxx
src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx
src/SALOMEDS/SALOMEDS_AttributeSelectable_i.hxx
src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.hxx
src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.hxx
src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx
src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTarget_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTextColor_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTextColor_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.hxx
src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.hxx
src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx
src/SALOMEDS/SALOMEDS_AttributeUserID_i.hxx
src/SALOMEDS/SALOMEDS_BasicAttributeFactory.cxx
src/SALOMEDS/SALOMEDS_BasicAttributeFactory.hxx
src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx
src/SALOMEDS/SALOMEDS_BasicAttribute_i.hxx
src/SALOMEDS/SALOMEDS_Callback_i.hxx
src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx
src/SALOMEDS/SALOMEDS_ChildIterator_i.hxx
src/SALOMEDS/SALOMEDS_Client.cxx
src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx
src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx
src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx
src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx
src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx
src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
src/SALOMEDS/SALOMEDS_DataMapOfIntegerString.hxx
src/SALOMEDS/SALOMEDS_DataMapOfIntegerString_0.cxx
src/SALOMEDS/SALOMEDS_DataMapStringLabel.hxx
src/SALOMEDS/SALOMEDS_DataMapStringLabel_0.cxx
src/SALOMEDS/SALOMEDS_DrawableAttribute.cdl
src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx
src/SALOMEDS/SALOMEDS_DrawableAttribute.hxx
src/SALOMEDS/SALOMEDS_DrawableAttribute.ixx
src/SALOMEDS/SALOMEDS_DrawableAttribute.jxx
src/SALOMEDS/SALOMEDS_ExpandableAttribute.cdl
src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx
src/SALOMEDS/SALOMEDS_ExpandableAttribute.hxx
src/SALOMEDS/SALOMEDS_ExpandableAttribute.ixx
src/SALOMEDS/SALOMEDS_ExpandableAttribute.jxx
src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx
src/SALOMEDS/SALOMEDS_GenericAttribute_i.hxx
src/SALOMEDS/SALOMEDS_IORAttribute.cdl
src/SALOMEDS/SALOMEDS_IORAttribute.cxx
src/SALOMEDS/SALOMEDS_IORAttribute.hxx
src/SALOMEDS/SALOMEDS_IORAttribute.ixx
src/SALOMEDS/SALOMEDS_IORAttribute.jxx
src/SALOMEDS/SALOMEDS_LocalIDAttribute.cdl
src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx
src/SALOMEDS/SALOMEDS_LocalIDAttribute.hxx
src/SALOMEDS/SALOMEDS_LocalIDAttribute.ixx
src/SALOMEDS/SALOMEDS_LocalIDAttribute.jxx
src/SALOMEDS/SALOMEDS_OCAFApplication.cdl
src/SALOMEDS/SALOMEDS_OCAFApplication.cxx
src/SALOMEDS/SALOMEDS_OCAFApplication.hxx
src/SALOMEDS/SALOMEDS_OCAFApplication.ixx
src/SALOMEDS/SALOMEDS_OCAFApplication.jxx
src/SALOMEDS/SALOMEDS_OpenedAttribute.cdl
src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx
src/SALOMEDS/SALOMEDS_OpenedAttribute.hxx
src/SALOMEDS/SALOMEDS_OpenedAttribute.ixx
src/SALOMEDS/SALOMEDS_OpenedAttribute.jxx
src/SALOMEDS/SALOMEDS_PersRefAttribute.cdl
src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx
src/SALOMEDS/SALOMEDS_PersRefAttribute.hxx
src/SALOMEDS/SALOMEDS_PersRefAttribute.ixx
src/SALOMEDS/SALOMEDS_PersRefAttribute.jxx
src/SALOMEDS/SALOMEDS_PixMapAttribute.cdl
src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx
src/SALOMEDS/SALOMEDS_PixMapAttribute.hxx
src/SALOMEDS/SALOMEDS_PixMapAttribute.ixx
src/SALOMEDS/SALOMEDS_PixMapAttribute.jxx
src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cdl
src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cxx
src/SALOMEDS/SALOMEDS_PythonObjectAttribute.hxx
src/SALOMEDS/SALOMEDS_PythonObjectAttribute.ixx
src/SALOMEDS/SALOMEDS_PythonObjectAttribute.jxx
src/SALOMEDS/SALOMEDS_SAttribute_i.hxx
src/SALOMEDS/SALOMEDS_SComponentIterator_i.cxx
src/SALOMEDS/SALOMEDS_SComponentIterator_i.hxx
src/SALOMEDS/SALOMEDS_SComponent_i.cxx
src/SALOMEDS/SALOMEDS_SComponent_i.hxx
src/SALOMEDS/SALOMEDS_SObject_i.cxx
src/SALOMEDS/SALOMEDS_SObject_i.hxx
src/SALOMEDS/SALOMEDS_SelectableAttribute.cdl
src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx
src/SALOMEDS/SALOMEDS_SelectableAttribute.hxx
src/SALOMEDS/SALOMEDS_SelectableAttribute.ixx
src/SALOMEDS/SALOMEDS_SelectableAttribute.jxx
src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cdl
src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cxx
src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.hxx
src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.ixx
src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.jxx
src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cdl
src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cxx
src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.hxx
src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.ixx
src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.jxx
src/SALOMEDS/SALOMEDS_Server.cxx
src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
src/SALOMEDS/SALOMEDS_StudyBuilder_i.hxx
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx
src/SALOMEDS/SALOMEDS_StudyManager_i.hxx
src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cdl
src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cxx
src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.hxx
src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.ixx
src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.jxx
src/SALOMEDS/SALOMEDS_Study_i.cxx
src/SALOMEDS/SALOMEDS_Study_i.hxx
src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.cxx
src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.hxx
src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.ixx
src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.jxx
src/SALOMEDS/SALOMEDS_TableOfRealAttribute.cxx
src/SALOMEDS/SALOMEDS_TableOfRealAttribute.hxx
src/SALOMEDS/SALOMEDS_TableOfRealAttribute.ixx
src/SALOMEDS/SALOMEDS_TableOfRealAttribute.jxx
src/SALOMEDS/SALOMEDS_TableOfStringAttribute.cxx
src/SALOMEDS/SALOMEDS_TableOfStringAttribute.hxx
src/SALOMEDS/SALOMEDS_TableOfStringAttribute.ixx
src/SALOMEDS/SALOMEDS_TableOfStringAttribute.jxx
src/SALOMEDS/SALOMEDS_TargetAttribute.cdl
src/SALOMEDS/SALOMEDS_TargetAttribute.cxx
src/SALOMEDS/SALOMEDS_TargetAttribute.hxx
src/SALOMEDS/SALOMEDS_TargetAttribute.ixx
src/SALOMEDS/SALOMEDS_TargetAttribute.jxx
src/SALOMEDS/SALOMEDS_TextColorAttribute.cdl
src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx
src/SALOMEDS/SALOMEDS_TextColorAttribute.hxx
src/SALOMEDS/SALOMEDS_TextColorAttribute.ixx
src/SALOMEDS/SALOMEDS_TextColorAttribute.jxx
src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cdl
src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cxx
src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.hxx
src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.ixx
src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.jxx
src/SALOMEDS/SALOMEDS_Tool.cxx
src/SALOMEDS/SALOMEDS_Tool.hxx
src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx
src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.hxx
src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx
src/SALOMEDS/SALOMEDS_UseCaseIterator_i.hxx
src/SALOMEGUI/CLIENT_icons.po
src/SALOMEGUI/CLIENT_msg_en.po
src/SALOMEGUI/Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx
src/SALOMEGUI/Handle_SALOME_Filter.hxx
src/SALOMEGUI/Handle_SALOME_ListNodeOfListIO.hxx
src/SALOMEGUI/Handle_SALOME_ListNodeOfListOfFilter.hxx
src/SALOMEGUI/Handle_SALOME_NumberFilter.hxx
src/SALOMEGUI/Handle_SALOME_TypeFilter.hxx
src/SALOMEGUI/Makefile.in
src/SALOMEGUI/PyInterp_PyQt.cxx
src/SALOMEGUI/PyInterp_PyQt.h
src/SALOMEGUI/PyInterp_base.cxx
src/SALOMEGUI/PyInterp_base.h
src/SALOMEGUI/QAD.h
src/SALOMEGUI/QAD_Action.h [new file with mode: 0644]
src/SALOMEGUI/QAD_Application.cxx
src/SALOMEGUI/QAD_Application.h
src/SALOMEGUI/QAD_Config.cxx
src/SALOMEGUI/QAD_Config.h
src/SALOMEGUI/QAD_Desktop.cxx
src/SALOMEGUI/QAD_Desktop.h
src/SALOMEGUI/QAD_DirListDlg.cxx
src/SALOMEGUI/QAD_DirListDlg.h
src/SALOMEGUI/QAD_FileDlg.cxx
src/SALOMEGUI/QAD_FileDlg.h
src/SALOMEGUI/QAD_FileValidator.cxx
src/SALOMEGUI/QAD_FileValidator.h
src/SALOMEGUI/QAD_Help.cxx
src/SALOMEGUI/QAD_Help.h
src/SALOMEGUI/QAD_HelpWindow.cxx
src/SALOMEGUI/QAD_HelpWindow.h
src/SALOMEGUI/QAD_LeftFrame.cxx
src/SALOMEGUI/QAD_LeftFrame.h
src/SALOMEGUI/QAD_ListMenuIdAction.cxx
src/SALOMEGUI/QAD_ListMenuIdAction.h
src/SALOMEGUI/QAD_ListPopupMenu.cxx
src/SALOMEGUI/QAD_ListPopupMenu.h
src/SALOMEGUI/QAD_ListView.cxx
src/SALOMEGUI/QAD_ListView.h
src/SALOMEGUI/QAD_Menus.cxx
src/SALOMEGUI/QAD_Menus.h
src/SALOMEGUI/QAD_Message.cxx
src/SALOMEGUI/QAD_Message.h
src/SALOMEGUI/QAD_MessageBox.cxx
src/SALOMEGUI/QAD_MessageBox.h
src/SALOMEGUI/QAD_NameBrowser.cxx
src/SALOMEGUI/QAD_NameBrowser.h
src/SALOMEGUI/QAD_ObjectBrowser.cxx
src/SALOMEGUI/QAD_ObjectBrowser.h
src/SALOMEGUI/QAD_ObjectBrowserItem.cxx
src/SALOMEGUI/QAD_ObjectBrowserItem.h
src/SALOMEGUI/QAD_Operation.cxx
src/SALOMEGUI/QAD_Operation.h
src/SALOMEGUI/QAD_OperatorMenus.cxx
src/SALOMEGUI/QAD_OperatorMenus.h
src/SALOMEGUI/QAD_ParserSettings.cxx
src/SALOMEGUI/QAD_ParserSettings.h
src/SALOMEGUI/QAD_Popup.cxx
src/SALOMEGUI/QAD_Popup.h
src/SALOMEGUI/QAD_PyEditor.cxx
src/SALOMEGUI/QAD_PyEditor.h
src/SALOMEGUI/QAD_PyInterp.cxx
src/SALOMEGUI/QAD_PyInterp.h
src/SALOMEGUI/QAD_PyInterp_mono.cxx
src/SALOMEGUI/QAD_PyInterp_mono.h
src/SALOMEGUI/QAD_Resource.h
src/SALOMEGUI/QAD_ResourceMgr.cxx
src/SALOMEGUI/QAD_ResourceMgr.h
src/SALOMEGUI/QAD_RightFrame.cxx
src/SALOMEGUI/QAD_RightFrame.h
src/SALOMEGUI/QAD_Settings.cxx
src/SALOMEGUI/QAD_Settings.h
src/SALOMEGUI/QAD_SpinBoxDbl.cxx
src/SALOMEGUI/QAD_SpinBoxDbl.h
src/SALOMEGUI/QAD_Splitter.cxx
src/SALOMEGUI/QAD_Splitter.h
src/SALOMEGUI/QAD_Study.cxx
src/SALOMEGUI/QAD_Study.h
src/SALOMEGUI/QAD_StudyFrame.cxx
src/SALOMEGUI/QAD_StudyFrame.h
src/SALOMEGUI/QAD_Tools.cxx
src/SALOMEGUI/QAD_Tools.h
src/SALOMEGUI/QAD_ViewFrame.cxx
src/SALOMEGUI/QAD_ViewFrame.h
src/SALOMEGUI/QAD_WaitCursor.h
src/SALOMEGUI/QAD_XmlHandler.cxx
src/SALOMEGUI/QAD_XmlHandler.h
src/SALOMEGUI/QAD_icons.po
src/SALOMEGUI/QAD_msg_en.po
src/SALOMEGUI/QAD_msg_fr.po
src/SALOMEGUI/SALOMEGUI.cxx
src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx
src/SALOMEGUI/SALOMEGUI_AboutDlg.h
src/SALOMEGUI/SALOMEGUI_Application.cxx
src/SALOMEGUI/SALOMEGUI_Application.h
src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx
src/SALOMEGUI/SALOMEGUI_CloseDlg.h
src/SALOMEGUI/SALOMEGUI_Desktop.cxx
src/SALOMEGUI/SALOMEGUI_Desktop.h
src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx
src/SALOMEGUI/SALOMEGUI_ImportOperation.h
src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx
src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.h
src/SALOMEGUI/SALOMEGUI_NameDlg.cxx
src/SALOMEGUI/SALOMEGUI_NameDlg.h
src/SALOMEGUI/SALOMEGUI_OpenWith.cxx
src/SALOMEGUI/SALOMEGUI_OpenWith.h
src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.cxx
src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.hxx
src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx
src/SALOMEGUI/SALOMEGUI_SetValueDlg.h
src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx
src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.h
src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.cxx
src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.h
src/SALOMEGUI/SALOMEGUI_Swig.cxx
src/SALOMEGUI/SALOMEGUI_Swig.hxx
src/SALOMEGUI/SALOMEGUI_Swig.i
src/SALOMEGUI/SALOMEGUI_TableDlg.cxx
src/SALOMEGUI/SALOMEGUI_TableDlg.h
src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx
src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.h
src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx
src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.h
src/SALOMEGUI/SALOMEGUI_icons.po
src/SALOMEGUI/SALOMEGUI_msg_en.po
src/SALOMEGUI/SALOMEGUI_msg_fr.po
src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx
src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx
src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx
src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx
src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger.hxx
src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger_0.cxx
src/SALOMEGUI/SALOME_Filter.cxx
src/SALOMEGUI/SALOME_Filter.hxx
src/SALOMEGUI/SALOME_Filter.ixx
src/SALOMEGUI/SALOME_Filter.jxx
src/SALOMEGUI/SALOME_ListIO.hxx
src/SALOMEGUI/SALOME_ListIO_0.cxx
src/SALOMEGUI/SALOME_ListIteratorOfListIO.hxx
src/SALOMEGUI/SALOME_ListIteratorOfListIO_0.cxx
src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter.hxx
src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter_0.cxx
src/SALOMEGUI/SALOME_ListNodeOfListIO.hxx
src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx
src/SALOMEGUI/SALOME_ListNodeOfListOfFilter.hxx
src/SALOMEGUI/SALOME_ListNodeOfListOfFilter_0.cxx
src/SALOMEGUI/SALOME_ListOfFilter.hxx
src/SALOMEGUI/SALOME_ListOfFilter_0.cxx
src/SALOMEGUI/SALOME_NumberFilter.cxx
src/SALOMEGUI/SALOME_NumberFilter.hxx
src/SALOMEGUI/SALOME_NumberFilter.ixx
src/SALOMEGUI/SALOME_NumberFilter.jxx
src/SALOMEGUI/SALOME_Selection.cxx
src/SALOMEGUI/SALOME_Selection.h
src/SALOMEGUI/SALOME_TypeFilter.cxx
src/SALOMEGUI/SALOME_TypeFilter.hxx
src/SALOMEGUI/SALOME_TypeFilter.ixx
src/SALOMEGUI/SALOME_TypeFilter.jxx
src/SALOME_PY/Makefile.in
src/SALOME_PY/SalomePy.cxx
src/SALOME_PYQT/Makefile.in
src/SALOME_PYQT/SalomePyQt.cxx
src/SALOME_PYQT/SalomePyQt.hxx
src/SALOME_PYQT/SalomePyQt.sip
src/SALOME_SWIG/Help.py
src/SALOME_SWIG/Makefile.in
src/SALOME_SWIG/PyInterp.py
src/SALOME_SWIG/batchmode_salome.py
src/SALOME_SWIG/examplevtk1.py
src/SALOME_SWIG/libSALOME_Swig.i
src/SALOME_SWIG/salome.py
src/SALOME_SWIG/salome_shared_modules.py
src/SALOME_SWIG/salome_test.py [new file with mode: 0644]
src/SALOME_SWIG/test_big_table.py
src/SALOME_SWIG/test_many_objects.py
src/SALOME_SWIG/test_table.py
src/SALOME_SWIG/testattr.py
src/SUPERVGraph/Makefile.in
src/SUPERVGraph/SUPERVGraph.cxx
src/SUPERVGraph/SUPERVGraph.h
src/SUPERVGraph/SUPERVGraph_Graph.cxx
src/SUPERVGraph/SUPERVGraph_Graph.h
src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx
src/SUPERVGraph/SUPERVGraph_ViewFrame.h
src/Session/Makefile.in
src/Session/SALOME_Session_QThread.cxx
src/Session/SALOME_Session_QThread.hxx
src/Session/SALOME_Session_Server.cxx
src/Session/SALOME_Session_i.cxx
src/Session/SALOME_Session_i.hxx
src/TOOLSDS/Makefile.in [new file with mode: 0644]
src/TOOLSDS/SALOMEDS_Tool.cxx [new file with mode: 0644]
src/TOOLSDS/SALOMEDS_Tool.hxx [new file with mode: 0644]
src/TOOLSGUI/Makefile.in
src/TOOLSGUI/ToolsGUI.cxx
src/TOOLSGUI/ToolsGUI.h
src/TOOLSGUI/ToolsGUI_CatalogGeneratorDlg.cxx
src/TOOLSGUI/ToolsGUI_CatalogGeneratorDlg.h
src/TOOLSGUI/ToolsGUI_icons.po
src/TOOLSGUI/ToolsGUI_msg_en.po
src/TestContainer/Makefile.in
src/TestContainer/SALOME_TestComponentPy.py
src/TestContainer/SALOME_TestComponent_i.cxx
src/TestContainer/SALOME_TestComponent_i.hxx
src/TestContainer/TestComponentPy.py
src/TestContainer/TestContainer.cxx
src/TestContainer/TestLogger.cxx [new file with mode: 0644]
src/Utils/Makefile.in
src/Utils/OpUtil.cxx
src/Utils/OpUtil.hxx
src/Utils/SALOME_utilities.py
src/Utils/SalomeString.hxx
src/Utils/Utils_CommException.cxx
src/Utils/Utils_CommException.hxx
src/Utils/Utils_CorbaException.hxx
src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx
src/Utils/Utils_DESTRUCTEUR_GENERIQUE.hxx
src/Utils/Utils_Identity.cxx
src/Utils/Utils_Identity.hxx
src/Utils/Utils_Identity.py
src/Utils/Utils_ORB_INIT.cxx
src/Utils/Utils_ORB_INIT.hxx
src/Utils/Utils_SALOME_Exception.cxx
src/Utils/Utils_SALOME_Exception.hxx
src/Utils/Utils_SINGLETON.hxx
src/Utils/Utils_Timer.cxx [new file with mode: 0644]
src/Utils/Utils_Timer.hxx [new file with mode: 0644]
src/Utils/duplicate.cxx
src/Utils/utilities.h
src/Utils/utilities.py
src/VTKViewer/Makefile.in
src/VTKViewer/VTKViewer.cxx
src/VTKViewer/VTKViewer.h
src/VTKViewer/VTKViewer_InteractorStyleSALOME.cxx
src/VTKViewer/VTKViewer_InteractorStyleSALOME.h
src/VTKViewer/VTKViewer_RenderWindow.cxx
src/VTKViewer/VTKViewer_RenderWindow.h
src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx
src/VTKViewer/VTKViewer_RenderWindowInteractor.h
src/VTKViewer/VTKViewer_ViewFrame.cxx
src/VTKViewer/VTKViewer_ViewFrame.h

index 66f2d6776d5dfec3a1ad9887285aac4756b24e9b..440af52563ec1ca63c003f0bca7a9e1ca0d586e6 100644 (file)
                                                  </outParameter>
                                         </outParameter-list>
                                </component-service>
+                               <component-service>
+                                       <!-- service-identification -->
+                                       <service-name>PutToStudy</service-name>
+                                       <service-author>mpv</service-author>
+                                       <service-version>1.0</service-version>
+                                       <service-comment>Put field to the study stucture</service-comment>
+                                       <service-by-default>1</service-by-default>
+                                       <!-- service-connexion -->
+                                       <inParameter-list>
+                                               <inParameter>
+                                                       <inParameter-type>FIELDDOUBLE</inParameter-type>
+                                                       <inParameter-name>field1</inParameter-name>
+                                                       <inParameter-comment>field to put to study</inParameter-comment>
+                                               </inParameter>
+                                               <inParameter>
+                                                       <inParameter-type>long</inParameter-type>
+                                                       <inParameter-name>StudyId</inParameter-name>
+                                                       <inParameter-comment>the ID of the study</inParameter-comment>
+                                               </inParameter>
+                                       </inParameter-list>
+                                        <outParameter-list>
+                                                 <outParameter>
+                                                        <outParameter-type>FIELDDOUBLE</outParameter-type>
+                                                        <outParameter-name>return</outParameter-name>
+                                                        <outParameter-comment>the same field like in input</outParameter-comment>
+                                                 </outParameter>
+                                        </outParameter-list>
+                               </component-service>
                                <component-service>
                                        <!-- service-identification -->
                                        <service-name>writeMEDfile</service-name>
index eeed8aed1cbadafd5ed1200199f722cf7306fb5a..400072d0f32a15650fa51c36ca632881427d6104 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : Component_i.cxx
-// Created   : jeu jui 12 08:04:40 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001 - CEA 2001
-// $Header$
-//=============================================================================
+//  SALOME Container : implementation of container and engine for Kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Component_i.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOME_Component_i.hxx"
 #include "RegistryConnexion.hxx"
 #include "OpUtil.hxx"
@@ -118,6 +137,8 @@ void Engines_Component_i::beginService(const char *serviceName)
   MESSAGE("Send BeginService notification for " << serviceName << endl
          << "Component instance : " << _instanceName << endl << endl);
   _ThreadId = pthread_self() ;
+  _StartUsed = 0 ;
+  _StartUsed = CpuUsed_impl() ;
   _serviceName = serviceName ;
   if ( pthread_setcanceltype( PTHREAD_CANCEL_ASYNCHRONOUS , NULL ) ) {
     perror("pthread_setcanceltype ") ;
@@ -163,7 +184,7 @@ bool Killer( int ThreadId , int signum ) {
         return false ;
       }
       else {
-        MESSAGE("Killer : ThreadId " << ThreadId << " pthread_cancel") ;
+        MESSAGE("Killer : ThreadId " << ThreadId << " pthread_canceled") ;
       }
     }
     else {
@@ -247,6 +268,24 @@ bool Engines_Component_i::Resume_impl() {
 
 }
 
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <unistd.h>
+
+long Engines_Component_i::CpuUsed_impl() {
+  struct rusage usage ;
+  long cpu ;
+  if ( getrusage( RUSAGE_SELF , &usage ) == -1 ) {
+    perror("GraphBase::CpuUsed") ;
+    return 0 ;
+  }
+//  return usage.ru_utime.__time_t tv_sec ;
+  cout << "CpuUsed " << usage.ru_utime.tv_sec << " " << usage.ru_utime.tv_usec << " "
+       << usage.ru_stime.tv_sec << " " << usage.ru_stime.tv_usec << endl ;
+  cpu = usage.ru_utime.tv_sec - _StartUsed ;
+  return cpu ;
+}
+
 // Send message to event channel
 
 void Engines_Component_i::sendMessage(const char *event_type, const char *message) {
index d1ed7f09d9e83ab4fdbeff21d6e6bce95e065d39..9cef646b8b75c5fe20e401c937d31be7d8d69cc7 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : Container_i.cxx
-// Created   : jeu jui 12 08:04:40 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA 
-// Project   : SALOME
-// Copyright : EDF 2001 - CEA 2001
-// $Header$
-//=============================================================================
+//  SALOME Container : implementation of container and engine for Kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Container_i.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA 
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Component)
 #include "SALOME_Container_i.hxx"
@@ -22,6 +41,11 @@ using namespace std;
 
 bool _Sleeping = false ;
 
+// Needed by multi-threaded Python
+int _ArgC ;
+char ** _ArgV ;
+
+
 // Containers with name FactoryServer are started via rsh in LifeCycleCORBA
 // Other Containers are started via start_impl of FactoryServer
 
@@ -37,6 +61,9 @@ Engines_Container_i::Engines_Container_i (CORBA::ORB_ptr orb,
 
   ActSigIntHandler() ;
 
+  _ArgC = argc ;
+  _ArgV = argv ;
+
   _argc = argc ;
   _argv = argv ;
   int i = strlen( _argv[ 0 ] ) - 1 ;
@@ -49,7 +76,7 @@ Engines_Container_i::Engines_Container_i (CORBA::ORB_ptr orb,
   }
   string hostname = GetHostname();
   MESSAGE(hostname << " " << getpid() << " Engines_Container_i starting argc "
-          << _argc) ;
+          << _argc << " Thread " << pthread_self() ) ;
   i = 0 ;
   while ( _argv[ i ] ) {
     MESSAGE("           argv" << i << " " << _argv[ i ]) ;
index 1d52e5ffaf9bf2e35daf8bb402ed04d2a66cbbd2..ee5063df1bc235d00b15dc7b76eb31e05847d912 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME Container : implementation of container and engine for Kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -33,7 +51,7 @@ BIN = SALOME_Container
 BIN_SRC =
 BIN_SERVER_IDL = SALOME_Component.idl
 
-CPPFLAGS+= $(PYTHON_INCLUDES) -I../Logger
+CPPFLAGS+= $(PYTHON_INCLUDES)
 
 LDFLAGS+= -lSalomeNS -lRegistry -lOpUtil -lSalomeNotification -lSalomeLoggerServer
 
index 3dd4dd5a074169f6b24d723c5e942c2ad6145524..1ac2e3cfc11d678d80149042e27d7cb8d5a4868c 100755 (executable)
@@ -1,16 +1,36 @@
 #! /usr/bin/env python
-
-#=============================================================================
-# File      : SALOME_ComponentPy.py
-# Created   : lun sep  3 17:54:13 CEST 2001
-# Author    : Paul RASCLE, EDF
-# Project   : SALOME
-# Copyright : EDF 2001
-# $Header$
-#=============================================================================
+#
+#  SALOME Container : implementation of container and engine for Kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOME_ComponentPy.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
+#  $Header$
 
 import os
 import sys
+import time
 from omniORB import CORBA, PortableServer
 import Engines, Engines__POA
 import Registry
@@ -45,6 +65,7 @@ class SALOME_ComponentPy_i (Engines__POA.Component):
         self._graphName = ''
         self._nodeName = ''
         self._ThreadId = 0
+        self._StartUsed = 0
 
         naming_service = SALOME_NamingServicePy_i(self._orb)
         Component_path = "/Containers/" +  os.getenv( "HOSTNAME" ) + "/" + self._containerName + "/" + self._interfaceName
@@ -108,6 +129,8 @@ class SALOME_ComponentPy_i (Engines__POA.Component):
     def beginService(self , serviceName ):
         MESSAGE(  "Send BeginService notification for " + str(serviceName) + "for graph/node" + str(self._graphName) + str(self._nodeName) )
         MESSAGE(  "Component instance : " + str ( self._instanceName ) )
+        self._StartUsed = 0
+        self._StartUsed = self.CpuUsed_impl()
 
     #-------------------------------------------------------------------------
 
@@ -157,3 +180,13 @@ class SALOME_ComponentPy_i (Engines__POA.Component):
     def Resume(self):
         MESSAGE(  "SALOME_ComponentPy_i::Resume not yet implemented" )
 
+    #-------------------------------------------------------------------------
+
+    def CpuUsed_impl(self):
+        cpu = time.clock()
+        cpuL = int(cpu) - self._StartUsed
+        print "SALOME_ComponentPy_i::CpuUsed_impl ",cpuL,type(cpuL)
+        return cpuL
+
+    #-------------------------------------------------------------------------
+
index b57a53005c3f6bc921c51f0f71331282ba7453eb..a5d462b6542c97dec3d334f638f600d14a077c1c 100644 (file)
@@ -1,16 +1,35 @@
-//=============================================================================
-// File      : SALOME_Component_i.hxx
-// Created   : jeu jui 12 08:04:40 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001 - CEA 2001
-// $Header$
-//=============================================================================
+//  SALOME Container : implementation of container and engine for Kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Component_i.hxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOME_COMPONENT_I_HXX_
 #define _SALOME_COMPONENT_I_HXX_
 
-#include <iostream.h>
+#include <iostream>
 #include <signal.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -64,6 +83,7 @@ public:
   bool Stop_impl();
   bool Suspend_impl();
   bool Resume_impl();
+  long CpuUsed_impl() ;
 
 protected:
   string _instanceName ;
@@ -81,6 +101,7 @@ protected:
 
 private:
   pthread_t _ThreadId ;
+  long      _StartUsed ;
 };
 
 #endif
index 3ae29bacc8df5cbe010797a5dd6788e0ef4c2e35..3914a57f383c9cbb44860161bc223e859c9d1f7e 100644 (file)
@@ -1,12 +1,32 @@
+//  SALOME Container : implementation of container and engine for Kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Container.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
+
 using namespace std;
-//=============================================================================
-// File      : SALOME_Container.cxx
-// Created   : jeu jui 12 08:04:40 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001 - CEA 2001
-// $Header$
-//=============================================================================
 using namespace std;
 #include <stdio.h>
 
@@ -18,6 +38,11 @@ using namespace std;
 #include <string>
 #include "utilities.h"
 
+//#define CHECKTIME
+#ifdef CHECKTIME
+#include <Utils_Timer.hxx>
+#endif
+
 #include <Python.h>
 
 static PyMethodDef MethodPyVoidMethod[] = {
@@ -92,6 +117,13 @@ int main(int argc, char* argv[])
     
     pman->activate();
 
+#ifdef CHECKTIME
+    Utils_Timer timer;
+    timer.Start();
+    timer.Stop();
+    MESSAGE("SALOME_Registry_Server.cxx - orb->run()");
+    timer.ShowAbsolute();
+#endif
     orb->run();
 
     orb->destroy();
index a5d96eda5a6bb4faf2a9ad3f017ffe4e46604949..4d906f84de61e1ea23a9551894dc2fcb46840eb8 100755 (executable)
@@ -1,13 +1,32 @@
 #! /usr/bin/env python
-
-#=============================================================================
-# File      : SALOME_ContainerPy.py
-# Created   : lun sep  3 17:54:13 CEST 2001
-# Author    : Paul RASCLE, EDF
-# Project   : SALOME
-# Copyright : EDF 2001
-# $Header$
-#=============================================================================
+#
+#  SALOME Container : implementation of container and engine for Kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOME_ContainerPy.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
+#  $Header$
 
 import os
 import sys
index 6db4d5d8d893bc5db82c9de40c6333ec333c57f1..ee6e460d5e950d7b3ff61c94bd35d205dd3dec3d 100644 (file)
@@ -1,16 +1,35 @@
-//=============================================================================
-// File      : SALOME_Container_i.hxx
-// Created   : jeu jui 12 08:04:44 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001 - CEA 2001
-// $Header$
-//=============================================================================
+//  SALOME Container : implementation of container and engine for Kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Container_i.hxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOME_CONTAINER_I_HXX_
 #define _SALOME_CONTAINER_I_HXX_
 
-#include <iostream.h>
+#include <iostream>
 #include <signal.h>
 #include <stdlib.h>
 #include <unistd.h>
index aa946fccd777a75666046204d7949e6601fd631b..83ec2a9c0288dd307c6fb9a3f9a0987fa124c20e 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mer jui 11 06:50:44 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME DataTypeCatalog : catalog of data types
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 00c25e2cd675c49209a377ef49662fa1fa18545d..083cc4b14f78c1e4eb7eaae9d3a53f838cfb7da0 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_Client.cxx
+//  Module : SALOME
+
 using namespace std;
 /* $Header$ */
 
index f9288bb398a795b751d3684d7a7b8a8803463ca5..55217510a8a1d278b7d40409b665d7fef2f212bf 100644 (file)
@@ -1,11 +1,32 @@
-using namespace std;
-// File: SALOME_DataTypeCatalog_Handler.cxx
-// Created: Mon Aug 08 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_Handler.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #define WRITE_CATA_DATA_TYPE
 #include "SALOME_DataTypeCatalog_Handler.hxx"
 
@@ -114,7 +135,7 @@ bool SALOME_DataTypeCatalog_Handler::endElement(const QString&,
 //----------------------------------------------------------------------
 bool SALOME_DataTypeCatalog_Handler::characters(const QString& chars)
 {
-  content = chars ;
+  content = (const char*)chars ;
   return true;
 }
 
index 06004929943dda42e42a6bb75491ce065aeaa689..7e76f636ce2031a58e6bae6f25ac7bfd7af7ffe2 100644 (file)
@@ -1,9 +1,30 @@
-// File: SALOME_DataTypeCatalog_Handler.hxx
-// Created: Mon Aug 08 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_Handler.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef SALOME_DATA_CATALOG_HANDLER_H
 #define SALOME_DATA_CATALOG_HANDLER_H
index 9dcabac554a0b80cc0624489a9a169233ca9d4e8..ed65a0c59348a14457922278ffba6ab51652a21b 100644 (file)
@@ -1,9 +1,30 @@
-// File: SALOME_DataTypeCatalog_Parser.hxx
-// Created: Mon Aug 08 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_Parser.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef SALOME_DATA_CATALOG_PARSER_H
 #define SALOME_DATA_CATALOG_PARSER_H
index 0971a23e1f49368f1183870d37c05d840921e721..e9b4de72f8d758721143625f406bd13c89f90e1b 100644 (file)
@@ -1,10 +1,32 @@
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_Server.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
+
 using namespace std;
-// File: SALOME_DataTypeCatalog_Server.cxx
-// Created: Mon Aug 08 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
 #include <iostream.h>
 #include "SALOME_NamingService.hxx"
 #include "SALOME_DataTypeCatalog_impl.hxx"
index c1292cb07f2abae3be8b46890931bd5e898d946d..fdcdd0738c94e9a9b7bcc574b76a7f4f7983d6a9 100644 (file)
@@ -1,11 +1,32 @@
-using namespace std;
-// File: SALOME_DataTypeCatalog_impl.cxx
-// Created: Mon Aug 08 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_impl.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOME_DataTypeCatalog_impl.hxx"
 #include <fstream>
 
index 5da4f18de0a0fa64eadb2869de0f8a9a43c04322..97c67ba40c592a0281cada317e12b95ab5413a64 100644 (file)
@@ -1,10 +1,30 @@
-// File: SALOME_DataTypeCatalog_impl.hxx
-// Created: Mon Aug 08 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
-
+//  SALOME DataTypeCatalog : catalog of data types
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataTypeCatalog_impl.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef DATATYPECATALOG_IMPL_H
 #define DATATYPECATALOG_IMPL_H
index 4938a9aabe165b4e52906e46f8a81882f7ce94fa..9266c29adbc3454f6e6f8b08d9a044f37db97768 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFOI.hxx
+//  Module : SALOME
+
 extern "C"
 {
 #include "HDFtypes.h"
@@ -15,3 +41,5 @@ extern "C"
 #include "HDFinternalObject.hxx"
 
 #include "HDFconvert.hxx"
+
+#include "HDFascii.hxx"
diff --git a/src/HDFPersist/HDFascii.cc b/src/HDFPersist/HDFascii.cc
new file mode 100644 (file)
index 0000000..49cc430
--- /dev/null
@@ -0,0 +1,734 @@
+using namespace std;
+//  File      : SALOMEDS_Tool.cxx
+//  Created   : Mon Oct 21 16:24:34 2002
+//  Author    : Sergey RUIN
+
+//  Project   : SALOME
+//  Module    : SALOMEDS
+//  Copyright : Open CASCADE
+
+#include "HDFOI.hxx"
+
+#include <OSD_Path.hxx>
+#include <OSD_File.hxx>
+#include <OSD_Protection.hxx>
+#include <OSD_Directory.hxx>
+#include <TCollection_AsciiString.hxx> 
+
+#include <stdlib.h>
+#include <string.h>
+#include <fcntl.h>
+#include <stdio.h>
+
+bool CreateAttributeFromASCII(HDFinternalObject *father, FILE* fp);
+bool CreateDatasetFromASCII(HDFcontainerObject *father, FILE *fp);
+bool CreateGroupFromASCII(HDFcontainerObject *father, FILE *fp);
+
+void SaveAttributeInASCIIfile(HDFattribute *hdf_attribute, FILE* fp, int ident);
+void SaveGroupInASCIIfile(HDFgroup *hdf_group, FILE* fp, int ident);
+void SaveDatasetInASCIIfile(HDFdataset *hdf_dataset, FILE* fp, int ident);
+
+char* GetTmpDir();
+char* makeName(char* name);
+char* restoreName(char* name);
+void write_float64(FILE* fp, hdf_float64* value);
+void read_float64(FILE* fp, hdf_float64* value);
+
+#define MAX_STRING_SIZE   65535
+#define MAX_ID_SIZE       20
+#define NB_FLOAT_IN_ROW   3
+#define NB_INTEGER_IN_ROW 9
+
+#define ASCIIHDF_ID  "ASCIIHDF"
+#define ATTRIBUTE_ID "ATTRIBUTE"
+#define DATASET_ID   "DATASET"
+#define GROUP_ID     "GROUP"
+
+#define ASCIIHDF_ID_END  "ASCIIHDF_END"
+#define ATTRIBUTE_ID_END "ATTRIBUTE_END"
+#define DATASET_ID_END   "DATASET_END"
+#define GROUP_ID_END     "GROUP_END"
+
+
+//============================================================================
+// function : isASCII
+// purpose  : Returns True if the file is a converted to ASCII HDF file
+//============================================================================
+bool HDFascii::isASCII(const char* thePath) {
+  int fd;
+  if(!(fd = open(thePath, O_RDONLY))) return false;
+  char* aBuffer = new char[9];
+  aBuffer[8] = (char)0;
+  read(fd, aBuffer, 8); 
+  close(fd);
+
+  if(strcmp(aBuffer, ASCIIHDF_ID) == 0) return true;
+
+  return false;
+}
+
+//############################## HDF => ASCII ################################
+
+//============================================================================
+// function : ConvertFromHDFToASCII
+// purpose  : Converts a file pointed by thePath to ASCII format
+//            If isReplace is true the newly created file will replace the existent one.
+//            If isReplace is false theExtension will be added to a created file name 
+//            Returns the file name of ASCII file
+//============================================================================
+char* HDFascii::ConvertFromHDFToASCII(const char* thePath,
+                                     bool isReplace,
+                                     const char* theExtension)
+{
+  TCollection_AsciiString aPath((char*)thePath);
+  if(!isReplace) { 
+    if(theExtension == NULL) aPath += ".asc";    
+    else aPath += (char*)theExtension;
+  }
+
+  TCollection_AsciiString aFileName(aPath);
+  if(isReplace) aFileName=aPath+".ascii_tmp";
+  HDFfile *hdf_file = new HDFfile((char*)thePath); 
+  hdf_file->OpenOnDisk(HDF_RDONLY);
+
+  char name[HDF_NAME_MAX_LEN+1];
+  int nbsons = hdf_file->nInternalObjects(), nbAttr = hdf_file->nAttributes(); 
+
+  FILE* fp = fopen(aFileName.ToCString(), "w");
+  fprintf(fp, "%s\n", ASCIIHDF_ID);
+  fprintf(fp, "%i\n", nbsons+nbAttr);
+
+  for(unsigned j=0; j<nbAttr; j++) {
+    char* attr_name = hdf_file->GetAttributeName(j);
+    HDFattribute *hdf_attribute = new HDFattribute(attr_name, hdf_file);
+    delete attr_name;
+    SaveAttributeInASCIIfile(hdf_attribute, fp, 0);
+    hdf_attribute = 0;
+  }
+
+  for (Standard_Integer i=0; i<nbsons; i++) {
+    hdf_file->InternalObjectIndentify(i,name);
+    if (strncmp(name, "INTERNAL_COMPLEX",16) == 0) continue;
+
+    hdf_object_type type = hdf_file->InternalObjectType(name);
+
+    if(type == HDF_DATASET) { 
+      HDFdataset* hdf_dataset = new HDFdataset(name, hdf_file);
+      SaveDatasetInASCIIfile(hdf_dataset, fp, 0);
+      hdf_dataset = 0; 
+    } else if(type == HDF_GROUP) {
+      HDFgroup *hdf_group = new HDFgroup(name, hdf_file); 
+      SaveGroupInASCIIfile(hdf_group, fp, 0);
+      hdf_group = 0;
+    }
+  }
+
+  fprintf(fp, "%s", ASCIIHDF_ID_END);
+
+  fclose(fp);
+
+  hdf_file->CloseOnDisk();
+  delete hdf_file;
+
+  if(isReplace) {
+    OSD_Path anOSDPath(aFileName);
+    OSD_File anOSDFile(anOSDPath);
+    if(anOSDFile.Exists())
+      anOSDFile.Move(aPath);
+    else 
+      return NULL;
+  }
+
+  int length = strlen(aPath.ToCString());
+  char *new_str = new char[ 1+length ];
+  strcpy(new_str , aPath.ToCString()) ;
+
+  return new_str;
+}
+
+
+//============================================================================
+// function : SaveGroupInASCIIfile
+// purpose  : 
+//============================================================================
+void SaveGroupInASCIIfile(HDFgroup *hdf_group, FILE* fp, int ident)
+{
+  hdf_group->OpenOnDisk();
+
+  TCollection_AsciiString anIdent(ident, '\t');
+  int nbsons = hdf_group->nInternalObjects(), nbAttr = hdf_group->nAttributes(); 
+
+  /*fprintf(fp, "%s%s\n", anIdent.ToCString(), GROUP_ID);*/
+  fprintf(fp, "%s\n", GROUP_ID);
+
+  char* name = makeName(hdf_group->GetName());
+
+  /*fprintf(fp, "%s%s %i\n", anIdent.ToCString(), name, nbsons+nbAttr);*/
+  fprintf(fp, "%s %i\n", name, nbsons+nbAttr);
+  delete name;
+
+  for(unsigned j=0; j<nbAttr; j++) {
+    name = hdf_group->GetAttributeName(j);
+    HDFattribute *hdf_attribute = new HDFattribute(name, hdf_group);
+    delete name;
+    SaveAttributeInASCIIfile(hdf_attribute, fp, ident+1);
+    hdf_attribute = 0;
+  }
+
+  char objName[HDF_NAME_MAX_LEN+1];
+  for (int i=0; i<nbsons; i++) {
+    hdf_group->InternalObjectIndentify(i, objName);
+
+    if (strncmp(objName, "INTERNAL_COMPLEX",16) == 0)  continue;
+
+    hdf_object_type type = hdf_group->InternalObjectType(objName);
+
+    if  (type == HDF_DATASET) {
+      HDFdataset* hdf_dataset = new HDFdataset(objName, hdf_group);
+      SaveDatasetInASCIIfile(hdf_dataset, fp, ident+1);
+      hdf_dataset = 0;
+    } else if (type == HDF_GROUP)   {      
+      HDFgroup *hdf_subgroup = new HDFgroup(objName, hdf_group);
+      SaveGroupInASCIIfile(hdf_subgroup, fp, ident+1);
+      hdf_subgroup = 0;
+    } 
+  }
+
+  /*fprintf(fp, "%s%s\n", anIdent.ToCString(), GROUP_ID_END);*/
+  fprintf(fp, "%s\n", GROUP_ID_END);
+
+  hdf_group->CloseOnDisk();  
+}
+
+//============================================================================
+// function : SaveDatasetInASCIIfile
+// purpose  : 
+//============================================================================
+void SaveDatasetInASCIIfile(HDFdataset *hdf_dataset, FILE* fp, int ident)
+{
+  hdf_dataset->OpenOnDisk();
+
+  long size =  hdf_dataset->GetSize();
+  long ndim = hdf_dataset->nDim(); //Get number of dimesions
+  hdf_size *dim = new hdf_size[ndim];
+  hdf_type type = hdf_dataset->GetType();
+  int nbAttr = hdf_dataset->nAttributes(), j; 
+
+  TCollection_AsciiString anIdent(ident, '\t');
+  TCollection_AsciiString anIdentChild(ident+1, '\t');
+
+  char* name = makeName(hdf_dataset->GetName());
+
+  /*fprintf(fp, "%s%s\n", anIdent.ToCString(), DATASET_ID);*/
+  fprintf(fp, "%s\n", DATASET_ID);
+  /*fprintf(fp, "%s%s %i %i\n", anIdent.ToCString(), name, type, nbAttr);*/
+  fprintf(fp, "%s %i %i\n", name, type, nbAttr);
+  delete name;
+
+  hdf_dataset->GetDim(dim);
+  /*fprintf(fp, "%s %i\n", anIdentChild.ToCString(), ndim);*/
+  fprintf(fp, " %i\n", ndim);
+
+  for(int i = 0;i < ndim;i++) {
+    /*fprintf(fp, "%s%i",  anIdentChild.ToCString(), dim[i]);*/
+    fprintf(fp, " %i", dim[i]);
+  }
+
+  /*fprintf(fp, "%s\n", anIdentChild.ToCString());*/
+  fprintf(fp, "\n");
+  delete dim;
+
+  /*fprintf(fp, "%s%li:", anIdentChild.ToCString(), size);*/
+  fprintf(fp, "%li:", size);
+
+  if (type == HDF_STRING) {    
+    char* val = new char[size];
+    hdf_dataset->ReadFromDisk(val);
+    fwrite(val, 1, size, fp);
+    delete val;
+  } else if (type == HDF_FLOAT64) {
+    hdf_float64* val = new hdf_float64[size];
+    hdf_dataset->ReadFromDisk(val);
+    fprintf(fp, "\n");
+    for (int i = 0, j = 0; i < size; i++) {
+      write_float64(fp, &val[i]);
+      if(++j == NB_FLOAT_IN_ROW) {
+       fprintf(fp, "\n");
+       j = 0;
+      }
+      else fprintf(fp,"  ");
+    }
+    delete val;
+  } else if(type == HDF_INT64) {
+    hdf_int64* val = new hdf_int64[size];
+    hdf_dataset->ReadFromDisk(val);
+    fprintf(fp, "\n");
+    for (int i = 0, j = 0; i < size; i++) {
+      fprintf(fp, " %li", val[i]);
+      if(++j == NB_INTEGER_IN_ROW) {
+       fprintf(fp, "\n");
+       j = 0;
+      }
+    }
+    delete val;
+  } else if(type == HDF_INT32) {
+    hdf_int32* val = new hdf_int32[size];
+    hdf_dataset->ReadFromDisk(val);
+    fprintf(fp, "\n");
+    for (int i = 0, j = 0; i < size; i++) {
+      fprintf(fp, " %i", val[i]);
+      if(++j == NB_INTEGER_IN_ROW) {
+       fprintf(fp, "\n");
+       j = 0;
+      }
+    }
+    delete val;
+  }
+  
+  fprintf(fp, "\n");
+
+  for(unsigned j=0; j<nbAttr; j++) {
+    name = hdf_dataset->GetAttributeName(j);
+    HDFattribute *hdf_attribute = new HDFattribute(name, hdf_dataset);
+    delete name;
+    SaveAttributeInASCIIfile(hdf_attribute, fp, ident+1);
+    hdf_attribute = 0;
+  }
+
+  /*fprintf(fp, "%s%s\n", anIdent.ToCString(), DATASET_ID_END); */
+  fprintf(fp, "%s\n", DATASET_ID_END);
+
+  hdf_dataset->CloseOnDisk(); 
+}
+
+
+//============================================================================
+// function : SaveAttributeInASCIIfile
+// purpose  : 
+//============================================================================
+void SaveAttributeInASCIIfile(HDFattribute *hdf_attribute, FILE* fp, int ident)
+{
+  hdf_attribute->OpenOnDisk();
+
+  hdf_type type = hdf_attribute->GetType();
+
+  TCollection_AsciiString anIdent(ident, '\t');
+  TCollection_AsciiString anIdentChild(ident+1, '\t');
+
+  char* name = makeName(hdf_attribute->GetName());
+  int size = hdf_attribute->GetSize();
+
+  /*fprintf(fp, "%s%s\n", anIdent.ToCString(), ATTRIBUTE_ID);*/
+  fprintf(fp, "%s\n", ATTRIBUTE_ID);
+  /*fprintf(fp, "%s%s %i %i\n", anIdent.ToCString(), name, type, size);*/
+  fprintf(fp, "%s %i %i\n", name, type, size);
+
+  delete name;
+
+  if (type == HDF_STRING) {    
+    char* val = new char[size+1];
+    hdf_attribute->ReadFromDisk(val);
+    /*fprintf(fp, "%s:", anIdentChild.ToCString());*/
+    fprintf(fp, ":");
+    fwrite(val, 1, size, fp);
+    fprintf(fp, "\n");
+    delete val;
+  } else if (type == HDF_FLOAT64) {
+    hdf_float64 val;
+    hdf_attribute->ReadFromDisk(&val);
+    /*fprintf(fp, "%s",  anIdentChild.ToCString());*/
+    write_float64(fp, &val);
+    fprintf(fp, "\n");
+  } else if(type == HDF_INT64) {
+    hdf_int64 val;
+    hdf_attribute->ReadFromDisk(&val);
+    /*fprintf(fp, "%s%li \n", anIdentChild.ToCString(), val);*/
+    fprintf(fp, "%li \n", val);
+  } else if(type == HDF_INT32) {
+    hdf_int32 val;
+    hdf_attribute->ReadFromDisk(&val);
+    /*fprintf(fp, "%s%i \n", anIdentChild.ToCString(), val);*/
+    fprintf(fp, "%i \n", val);
+  }
+
+  /*fprintf(fp, "%s%s\n", anIdent.ToCString(), ATTRIBUTE_ID_END);*/
+  fprintf(fp, "%s\n", ATTRIBUTE_ID_END);
+
+  hdf_attribute->CloseOnDisk();  
+}
+
+//############################## ASCII => HDF ################################
+
+//============================================================================
+// function : ConvertFromASCIIToHDF
+// purpose  : Converts a file pointed by thePath to HDF format
+//            Returns a name of directory where a created HDF file is placed
+//            The created file is named "hdf_from_ascii.hdf"
+//============================================================================
+char* HDFascii::ConvertFromASCIIToHDF(const char* thePath)
+{
+  // Get a temporary directory to store a file
+  TCollection_AsciiString aTmpDir = GetTmpDir(), aFileName("hdf_from_ascii.hdf");
+  // Build a full file name of temporary file
+  TCollection_AsciiString aFullName = aTmpDir + aFileName;
+
+  HDFfile *hdf_file = new HDFfile(aFullName.ToCString()); 
+  hdf_file->CreateOnDisk();
+  
+  FILE *fp = fopen(thePath, "r");
+  if(!fp) return NULL;
+
+  char type[9];
+  int nbsons, i;
+  fscanf(fp, "%s", type);
+  fscanf(fp, "%i",&nbsons);
+
+  if(strcmp(type, ASCIIHDF_ID) != 0) return NULL;
+
+  for(i = 0; i < nbsons; i++) {
+    char id_of_begin[MAX_ID_SIZE];
+    fscanf(fp, "%s\n", id_of_begin);
+
+    if(strcmp(id_of_begin, GROUP_ID) == 0) {
+      if(!CreateGroupFromASCII(hdf_file, fp)) {
+       cout << "ConvertFromASCIIToHDF : Can not create group number " << i << endl;
+       return NULL;
+      }
+    }
+    else if(strcmp(id_of_begin, DATASET_ID) == 0) {
+      if(!CreateDatasetFromASCII(hdf_file, fp)) {
+       cout << "ConvertFromASCIIToHDF :Can not create dataset number " << i << endl;
+       return NULL;
+      }
+    }
+    else if(strcmp(id_of_begin, ATTRIBUTE_ID) == 0) {
+      if(!CreateAttributeFromASCII(hdf_file, fp)) {
+       cout << "ConvertFromASCIIToHDF :Can not create attribute number " << i << endl;
+       return NULL;
+      }
+    }
+    else 
+      cout << "ConvertFromASCIIToHDF : Unrecognized type " << id_of_begin << endl; 
+  }
+
+  char id_of_end[MAX_ID_SIZE];
+  fscanf(fp, "%s", id_of_end);
+  if(strcmp(id_of_end, ASCIIHDF_ID_END) != 0) {
+    cout << "ConvertFromASCIIToHDF : Can not find the end ASCII token " << endl;
+    return false;  
+  }
+
+  hdf_file->CloseOnDisk();
+  delete hdf_file;
+
+  int length = strlen(aTmpDir.ToCString());
+  char *new_str = new char[ 1+length ];
+  strcpy(new_str , aTmpDir.ToCString()) ;
+
+  return new_str;
+}
+
+
+//============================================================================
+// function : CreateGroupFromASCII
+// purpose  : Creates a HDF group from a set attributes situated under theLabel
+//============================================================================
+bool CreateGroupFromASCII(HDFcontainerObject *father, FILE *fp)
+{
+  char name[HDF_NAME_MAX_LEN+1];
+  int nbsons, i;
+  fscanf(fp, "%s %i\n", name, &nbsons);  
+
+  char* new_name = restoreName(name);
+
+  HDFgroup* hdf_group = new HDFgroup(new_name, father);
+
+  delete new_name;
+
+  hdf_group->CreateOnDisk();
+
+  for(i = 0; i < nbsons; i++) {
+    char id_of_begin[MAX_ID_SIZE];
+    fscanf(fp, "%s\n", id_of_begin);
+    
+    if(strcmp(id_of_begin, GROUP_ID) == 0) {
+      if(!CreateGroupFromASCII(hdf_group, fp)) {
+       cout << "Can not create subgroup " << i << " for group " << name << endl;
+       return false;
+      }
+    }
+    else if(strcmp(id_of_begin, DATASET_ID) == 0) {
+      if(!CreateDatasetFromASCII(hdf_group, fp)) {
+       cout << "Can not create dataset " << i << " for group " << name << endl;
+       return false;
+      }
+    }
+    else if(strcmp(id_of_begin, ATTRIBUTE_ID) == 0) {
+      if(!CreateAttributeFromASCII(hdf_group, fp)) {
+       cout << "Can not create attribute " << i << " for group " << name << endl;
+       return false;
+      }
+    }
+    else 
+      cout << "CreateGroupFromASCII : Unrecognized type " << id_of_begin << endl; 
+  }
+  
+  hdf_group->CloseOnDisk();
+  hdf_group = 0; //will be deleted by father destructor
+
+  char id_of_end[MAX_ID_SIZE];
+  fscanf(fp, "%s\n", id_of_end);
+  if(strcmp(id_of_end, GROUP_ID_END) != 0) {
+    cout << "CreateGroupFromASCII : Invalid end token : " << id_of_end << endl;
+    return false;
+  }
+
+  return true;
+}
+
+
+//============================================================================
+// function : CreateDatasetFromASCII
+// purpose  : Creates a HDF dataset from a set attributes situated under theLabel
+//============================================================================
+bool CreateDatasetFromASCII(HDFcontainerObject *father, FILE *fp)
+{
+  char name[HDF_NAME_MAX_LEN+1];
+  hdf_type type;
+  int nbDim, nbAttr;
+  long i, size;
+
+  fscanf(fp, "%s %i %i\n", name, &type, &nbAttr);
+  char* new_name = restoreName(name);
+
+  fscanf(fp, "%i\n", &nbDim);
+
+  hdf_size* sizeArray = new hdf_size[nbDim];
+  for(i = 0; i<nbDim; i++) {
+    fscanf(fp, "%i\n", &(sizeArray[i]));
+  }
+  HDFdataset* hdf_dataset = new HDFdataset(new_name, father,type, sizeArray, nbDim);
+  delete new_name;
+  delete sizeArray;
+
+  hdf_dataset->CreateOnDisk();
+
+  char tmp;
+  fscanf(fp, "%li%c", &size, &tmp);
+
+  if (type == HDF_STRING) {    
+    char *val = new char[size+1];
+    fread(val, 1, size, fp);
+    hdf_dataset->WriteOnDisk(val);
+    delete val;
+  } else if (type == HDF_FLOAT64) {
+    hdf_float64* val = new hdf_float64[size];
+    for(i=0; i<size; i++) {
+      read_float64(fp, &(val[i]));
+    }
+    hdf_dataset->WriteOnDisk(val);
+    delete val;
+  } else if(type == HDF_INT64) {
+    hdf_int64* val = new hdf_int64[size];
+    for(i=0; i<size; i++) {
+      fscanf(fp, " %li", &(val[i]));
+    }
+    hdf_dataset->WriteOnDisk(val);
+    delete val;
+  } else if(type == HDF_INT32) {
+    hdf_int32* val = new hdf_int32[size];
+    for(i=0; i<size; i++) {
+      fscanf(fp, " %i", &(val[i]));
+    }
+    hdf_dataset->WriteOnDisk(val);
+    delete val;
+  }
+
+  char token[MAX_ID_SIZE];
+
+  for(i = 0; i < nbAttr; i++) {
+    fscanf(fp, "%s\n", token);
+    
+    if(strcmp(token, ATTRIBUTE_ID) == 0) {
+      if(!CreateAttributeFromASCII(hdf_dataset, fp)) {
+       cout << "Can not create attribute " << i << " for dataset " << name << endl;
+       return false;
+      }
+    }
+    else {
+      cout << "CreateGroupFromASCII : Unrecognized type " << token << endl; 
+      return false;
+    }
+  }
+  
+  fscanf(fp, "%s\n", token);
+  if(strcmp(token, DATASET_ID_END) != 0) {
+    cout << "CreateDatasetFromASCII : Invalid end token : " << token << endl;
+    return false;
+  }
+
+  hdf_dataset->CloseOnDisk();
+  hdf_dataset = 0; //will be deleted by father destructor
+
+  return true;
+}
+
+
+//============================================================================
+// function : CreateAttributeFromASCII
+// purpose  : Creates a HDF attribute from a set attributes situated under theLabel
+//============================================================================
+bool CreateAttributeFromASCII(HDFinternalObject *father, FILE* fp)
+{
+  char name[HDF_NAME_MAX_LEN+1];
+
+  hdf_type type;
+  int size;
+  fscanf(fp, "%s %i %i\n", name, &type, &size);
+  char* new_name = restoreName(name);
+  HDFattribute* hdf_attribute = new HDFattribute(new_name, father, type, size);
+
+  hdf_attribute->CreateOnDisk();
+
+  delete new_name;
+  
+  if (type == HDF_STRING) {    
+    char tmp;
+    fscanf(fp, "%c", &tmp);
+    char *val = new char[size+1];
+    val[size] = (char)0;
+    fread(val, 1, size, fp);
+    hdf_attribute->WriteOnDisk(val);
+    delete val;
+  } else if (type == HDF_FLOAT64) {
+    hdf_float64 val;
+    read_float64(fp, &val);
+    hdf_attribute->WriteOnDisk(&val);
+  } else if(type == HDF_INT64) {
+    hdf_int64 val;
+    fscanf(fp, "%li", &val);
+    hdf_attribute->WriteOnDisk(&val);
+  } else if(type == HDF_INT32) {
+    hdf_int32 val;
+    fscanf(fp, "%i", &val);
+    hdf_attribute->WriteOnDisk(&val);
+  }
+  
+  hdf_attribute->CloseOnDisk();
+  hdf_attribute = 0; //will be deleted by father destructor
+
+
+  char id_of_end[MAX_ID_SIZE];
+  fscanf(fp, "%s\n", id_of_end);
+  if(strcmp(id_of_end, ATTRIBUTE_ID_END) != 0) {
+    cout << "CreateAttributeFromASCII : Invalid end token : " << id_of_end << endl;
+    return false;
+  }
+
+  return true;
+}
+
+
+//============================================================================
+// function : GetTempDir
+// purpose  : Return a temp directory to store created files like "/tmp/sub_dir/" 
+//============================================================================ 
+char* GetTmpDir()
+{
+  //Find a temporary directory to store a file
+
+  TCollection_AsciiString aTmpDir;
+
+#ifdef WIN32
+  aTmpDir = TCollection_AsciiString("C:\\");
+#else
+  aTmpDir = TCollection_AsciiString("/tmp/");
+#endif
+
+  srand((unsigned int)time(NULL));
+  int aRND = 999 + (int)(100000.0*rand()/(RAND_MAX+1.0)); //Get a random number to present a name of a sub directory
+  TCollection_AsciiString aSubDir(aRND);
+  if(aSubDir.Length() <= 1) aSubDir = TCollection_AsciiString("123409876");
+
+  aTmpDir += aSubDir; //Get RND sub directory
+
+#ifdef WIN32
+  if(aTmpDir.Value(aTmpDir.Length()) != '\\') aTmpDir+='\\';
+#else
+  if(aTmpDir.Value(aTmpDir.Length()) != '/') aTmpDir+='/';
+#endif
+
+  OSD_Path aPath(aTmpDir);
+  OSD_Directory aDir(aPath);
+
+  for(aRND = 0; aDir.Exists(); aRND++) {
+    aTmpDir.Insert((aTmpDir.Length() - 1), TCollection_AsciiString(aRND));  //Build a unique directory name
+    aPath = OSD_Path(aTmpDir);
+    aDir = OSD_Directory(aPath);
+  }
+
+  OSD_Protection aProtection(OSD_RW, OSD_RWX, OSD_RX, OSD_RX);
+  aDir.Build(aProtection);
+
+  int length = strlen(aTmpDir.ToCString());
+  char *new_str = new char[ 1+length ];
+  strcpy(new_str , aTmpDir.ToCString());
+
+  return new_str;
+}
+
+char* makeName(char* name)
+{
+  TCollection_AsciiString aName(name), aNewName;
+  Standard_Integer i, length = aName.Length();
+  char replace = (char)19;
+
+  for(i=1; i<=length; i++) {
+    if(aName.Value(i) == ' ') aNewName+=replace;
+    else aNewName += aName.Value(i);
+  }
+
+  length = strlen(aNewName.ToCString());
+  char *new_str = new char[ 1+length ];
+  strcpy(new_str , aNewName.ToCString()) ;
+  return new_str;
+}
+
+char* restoreName(char* name)
+{
+  TCollection_AsciiString aName(name), aNewName;
+  Standard_Integer i, length = aName.Length();
+  char replace = (char)19;
+
+  for(i=1; i<=length; i++) {
+    if(aName.Value(i) == replace) aNewName+=' ';
+    else aNewName += aName.Value(i);
+  }
+
+  length = strlen(aNewName.ToCString());
+  char *new_str = new char[ 1+length ];
+  strcpy(new_str , aNewName.ToCString()) ;
+  return new_str;
+}
+
+void write_float64(FILE* fp, hdf_float64* value)
+{
+  unsigned char* array = (unsigned char*)value;
+  for(int i = 0; i < sizeof(hdf_float64); i++) {
+    unsigned tmp = (unsigned short)array[i];
+    fprintf(fp, " %2x", tmp);
+  }
+}
+
+void read_float64(FILE* fp, hdf_float64* value)
+{
+  unsigned char* array = (unsigned char*)value;
+  for(int i = 0; i < sizeof(hdf_float64); i++) {
+    unsigned tmp;
+    fscanf(fp, " %x", &tmp); 
+    array[i] = (unsigned char)tmp;
+  }
+}
diff --git a/src/HDFPersist/HDFascii.hxx b/src/HDFPersist/HDFascii.hxx
new file mode 100644 (file)
index 0000000..5ae7e58
--- /dev/null
@@ -0,0 +1,28 @@
+//  File      : HDFascii.hxx
+//  Created   : Mon Jun 10 16:24:50 2003
+//  Author    : Sergey RUIN
+
+//  Project   : SALOME
+//  Module    : HDFPersist
+//  Copyright : Open CASCADE
+
+
+#ifndef __HDFascii_H__
+#define __HDFascii_H__
+
+
+
+
+class HDFascii                                
+{
+public:
+  static char* ConvertFromHDFToASCII(const char* thePath, 
+                                    bool isReplaced = true, 
+                                    const char* theExtension = NULL);
+                                    
+  static char* ConvertFromASCIIToHDF(const char* thePath);
+  
+  static bool isASCII(const char* thePath);
+};
+#endif
index df23b9392a4bd0480cf765033c9e17ff5f401cbf..fa4c5c8575bc8a678e27f433a66fe299475e199b 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrClose.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 4d7a29015401b6285f64a7af85b0e83c153df961..9d4b3dc5410c27eb3995b3bdc4647fb91871d3ed 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrCreate.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
@@ -11,7 +39,7 @@
  *     - if success : attribute ID 
  *     - if failure : -1
  */
-hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type)
+hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type, size_t size)
 {
   hdf_idt aid,attr;
   hdf_err ret;
@@ -19,21 +47,25 @@ hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type)
 
   switch(type) {
   case HDF_FLOAT64 :
+#ifdef PCLINUX
+    type_hdf = H5T_IEEE_F64BE;
+#else 
     type_hdf = H5T_IEEE_F64LE;
+#endif
     break;
     
   case HDF_INT32 :
-    type_hdf = H5T_STD_I32LE;
+    type_hdf = H5T_NATIVE_INT;
     break;
     
   case HDF_INT64 :
-    type_hdf = H5T_STD_I64LE;
+    type_hdf = H5T_NATIVE_LONG;
     break;
 
   case HDF_STRING :           
     if((type_hdf = H5Tcopy(H5T_C_S1)) < 0)
       return -1;
-    if((ret = H5Tset_size(type_hdf,1)) < 0)
+    if((ret = H5Tset_size(type_hdf, size)) < 0)
       return -1;
     break;
     
diff --git a/src/HDFPersist/HDFattrGetSize.c b/src/HDFPersist/HDFattrGetSize.c
new file mode 100644 (file)
index 0000000..0d08093
--- /dev/null
@@ -0,0 +1,46 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrGetSize.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
+#include "hdfi.h"
+#include <hdf5.h>
+
+hdf_type
+HDFattrGetSize(hdf_idt id)
+{
+  hdf_idt type_id;
+  int ret; 
+
+  if ((type_id = H5Aget_type(id)) < 0)
+    return HDF_NONE;
+
+  ret = H5Tget_size(type_id);
+
+  H5Tclose(type_id);
+
+  return ret;
+}
diff --git a/src/HDFPersist/HDFattrGetType.c b/src/HDFPersist/HDFattrGetType.c
new file mode 100644 (file)
index 0000000..9dc6e85
--- /dev/null
@@ -0,0 +1,70 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrGetType.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
+#include "hdfi.h"
+#include <hdf5.h>
+
+hdf_type
+HDFattrGetType(hdf_idt id)
+{
+  hdf_idt type_id;
+  hdf_type type;
+  hdf_class_type hdf_type;
+  hdf_size_type size;
+
+  if ((type_id = H5Aget_type(id)) < 0)
+    return HDF_NONE;
+
+  hdf_type = H5Tget_class(type_id);
+
+  switch (hdf_type)
+    {
+    case H5T_INTEGER :
+      size = H5Tget_size(type_id);
+      if (size == 4)
+       type = HDF_INT32;
+      else
+       type = HDF_INT64;
+      break;
+
+    case H5T_FLOAT :
+      type = HDF_FLOAT64;
+      break;
+
+    case H5T_STRING :
+      type = HDF_STRING;
+      break;
+
+    default :
+      type = HDF_NONE;
+    }
+
+  H5Tclose(type_id);
+
+  return type;
+}
index bc4b5fba9e9cb5f1a3cda7253d40af4d34f3195c..2832acf3645adc625480fc07b97eab87a17db6ea 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrOpen.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 5c8e108bff6eb38017b41ed3a860244162be772d..464e9c2a96d351b6658f37f4779b2a1521d346b8 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrRead.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
  */
 hdf_err HDFattrRead(hdf_idt id,void *val)
 {
-  hdf_err ret;
-  int type_hdf;
-
-  if ((type_hdf = H5Aget_type(id)) < 0)
-    return -1;
+  hdf_err ret = -1;
+  hdf_idt type_hdf;
 
-  if ((ret = H5Aread(id,type_hdf,val)) < 0)
-    return -1;
+  if ((type_hdf = H5Aget_type(id)) >= 0) {
+    ret = H5Aread(id, type_hdf, val);
+  }
 
-  return 0;
+  H5Tclose(type_hdf);
+  return ret;
 }
index cb588c9025dc604ab863bb33f3fdfaf3a27238c7..b1dbea58844e473d2f53616106f2d5a81ae2c1e9 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFattrWrite.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
  *     - if success : 0
  *     - if failure : -1
  */
-hdf_err HDFattrWrite(hdf_idt id,void *val)
+hdf_err HDFattrWrite(hdf_idt id, void *val)
 {
-  hdf_err ret;
-  int type_hdf;
+  hdf_idt type_id;
+  hdf_type type;
+  hdf_class_type hdf_type;
+  int ret = 0;
 
-  if ((type_hdf = H5Aget_type(id)) < 0)
+  if ((type_id = H5Aget_type(id)) < 0)
     return -1;
 
-  if ((ret = H5Awrite(id,type_hdf,val)) < 0)
-    return ret;
+  ret = H5Awrite(id,type_id, val);
+
+  H5Tclose(type_id);
 
-  return 0;
+  return ret;
 }
index 5187463f3dda19a966968db253d053ebadee8695..b87cb0799e2c6be3fb0529b682bb1542fe047b22 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFattribute.cc
+//  Module : SALOME
+
 using namespace std;
 extern "C"
 {
@@ -7,17 +33,27 @@ extern "C"
 #include "HDFattribute.hxx"
 #include "HDFinternalObject.hxx"
 
-HDFattribute::HDFattribute(char *name,HDFinternalObject *father,hdf_type type)
+HDFattribute::HDFattribute(char *name,HDFinternalObject *father,hdf_type type, size_t size)
   : HDFobject(name)
 {
   _father = father;
   _fid = _father->GetId();
   _type = type;
+  _size = size;
+}
+
+HDFattribute::HDFattribute(char *name,HDFinternalObject *father)
+  : HDFobject(name)
+{
+  _father = father;
+  _fid = _father->GetId();
+  _type = HDF_NONE;
+  _size = 0;
 }
 
 void HDFattribute::CreateOnDisk()
 {
-  if ((_id = HDFattrCreate(_fid,_name,_type)) < 0)
+  if ((_id = HDFattrCreate(_fid,_name, _type, _size)) < 0)
     throw HDFexception("Can't create attribute");
 }
 void HDFattribute::OpenOnDisk()
@@ -30,7 +66,7 @@ void HDFattribute::CloseOnDisk()
   hdf_err ret;
 
   if ((ret = HDFattrClose(_id)) < 0)
-      throw HDFexception("Can't close dataset");
+      throw HDFexception("Can't close attribute");
 }
 
 void HDFattribute::WriteOnDisk(void *values)
@@ -38,7 +74,7 @@ void HDFattribute::WriteOnDisk(void *values)
   hdf_err ret;
 
   if ((ret = HDFattrWrite(_id,values)) < 0)
-    throw HDFexception("Can't create group");
+    throw HDFexception("Can't write attribute");
 }
 
 void HDFattribute::ReadFromDisk(void *values)
@@ -56,5 +92,18 @@ HDFinternalObject * HDFattribute::GetFather()
 
 hdf_type HDFattribute::GetType()
 {
+ if (_type == HDF_NONE)
+    if ((_type = HDFattrGetType(_id)) == HDF_NONE)
+      throw HDFexception("Can't determine the type of data in the attribute");
+
   return _type;
 }
+
+size_t HDFattribute::GetSize()
+{
+  if(_size == 0) {
+    if((_size = HDFattrGetSize(_id)) < 0)
+      throw HDFexception("Can't determine the size of data in the attribute");
+  }
+  return _size;
+}
index d23d7b6f6c22e145339491f33d5c2680942a6bbd..fb84a893e16bd549a3c23fe71db851eb4f1f9cae 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFattribute.hxx
+//  Module : SALOME
+
 #ifndef HDFATTRIBUTE_HXX
 #define HDFATTRIBUTE_HXX
 
@@ -14,8 +40,10 @@ private :
   HDFinternalObject *_father;
   hdf_idt _fid;
   hdf_type _type;
+  size_t _size;
 public :
-  HDFattribute(char *name,HDFinternalObject *father,hdf_type type);
+  HDFattribute(char *name,HDFinternalObject *father,hdf_type type, size_t size);
+  HDFattribute(char *name,HDFinternalObject *father);
 
   void CreateOnDisk();
   void OpenOnDisk();
@@ -26,6 +54,7 @@ public :
 
   HDFinternalObject *GetFather();
   hdf_type GetType();
+  size_t GetSize();
 };
 
 #endif
index 2ef6a68d9f7c447bd47dc7c95d6104bb4a0e7e19..2f5398bd7a85734f936c19256831be9d44de4487 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFcontainerObject.cc
+//  Module : SALOME
+
 using namespace std;
 extern "C"
 {
index 63c304a42d5684cde2b8182d132802ae850b5a6e..b95bef33cdfc75b701f8f80fbf33e87083201a8f 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFcontainerObject.hxx
+//  Module : SALOME
+
 #ifndef HDFCONTAINEROBJECT_HXX
 #define HDFCONTAINEROBJECT_HXX
 
index 970404c7d47a6194cb2469784e100069dc1d1df1..2a6fe9b760a19a62fc65ef8ce57dd7d8cd2fb9ef 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFconvert.cc
+//  Module : SALOME
+
 using namespace std;
 #include "HDFconvert.hxx"
 
index 1160dd4a91f0fadb39d586ce8bb1ec0c27537324..1e3b9c8966ee083ff60f68c103e9b43ff67b617e 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFconvert.hxx
+//  Module : SALOME
+
 #ifndef HDFCONVERT_HXX
 #define HDFCONVERT_HXX
 
index a59c04ecc482325903128c3ccf19f60e10c41712..07d75e11c7c5a200294eadd09d3738fed92307c2 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFdataset.cc
+//  Module : SALOME
+
 using namespace std;
 extern "C"
 {
@@ -10,6 +36,13 @@ extern "C"
 
 #include <iostream.h>
 
+herr_t dataset_attr(hid_t loc_id, const char *attr_name, void *operator_data)
+{
+  *(char**)operator_data = new char[strlen(attr_name)+1];
+  strcpy(*(char**)operator_data, attr_name);
+  return 1;
+}
+
 HDFdataset::HDFdataset(char *name, HDFcontainerObject *father,hdf_type type, 
                       hdf_size dim[], int dimsize)
   : HDFinternalObject(name)
@@ -23,6 +56,7 @@ HDFdataset::HDFdataset(char *name, HDFcontainerObject *father,hdf_type type,
   _ndim = dimsize;
   _dim = new hdf_size[dimsize];
   _size = 1;
+  _attribute = NULL;
   for (i=0;i<dimsize;i++)
     {
       _dim[i] = dim[i];
@@ -30,6 +64,7 @@ HDFdataset::HDFdataset(char *name, HDFcontainerObject *father,hdf_type type,
     }
 }
 
+
 HDFdataset::HDFdataset(char *name,HDFcontainerObject *father)
   : HDFinternalObject(name)
 {
@@ -40,6 +75,7 @@ HDFdataset::HDFdataset(char *name,HDFcontainerObject *father)
   _ndim = -1;
   _dim = 0;
   _size = -1;
+  _attribute = NULL;
 }
 
 HDFdataset::~HDFdataset()
@@ -166,3 +202,21 @@ hdf_object_type HDFdataset::GetObjectType()
 {
   return HDF_DATASET;
 }
+
+
+int HDFdataset::nAttributes()
+{
+  int nbAttrs = H5Aget_num_attrs(_id);
+  if(nbAttrs <= 0) nbAttrs = 0;
+  return nbAttrs; 
+}
+
+
+char* HDFdataset::GetAttributeName(unsigned idx)
+{
+  int nbAttrs = nAttributes();
+  if(nbAttrs == 0) return NULL;
+  H5Aiterate(_id, &idx, dataset_attr, &_attribute);
+  return _attribute;
+}
+
index cc49878d91af472c9b2925a4ecee67712b439353..58afc6510d54233015d2b0d4aabecdcf99459cd2 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFdataset.hxx
+//  Module : SALOME
+
 #ifndef HDFDATASET_HXX
 #define HDFDATASET_HXX
 
@@ -17,10 +43,12 @@ private :
   hdf_size *_dim;
   int _size;
   int _ndim;
+  char* _attribute;
 
 public:
   HDFdataset(char *name, HDFcontainerObject *father,hdf_type type, 
             hdf_size dim[],int dimsize);
+
   HDFdataset(char *name,HDFcontainerObject *father);
   virtual ~HDFdataset();
 
@@ -37,6 +65,9 @@ public:
   void GetDim(hdf_size dim[]);
   int GetSize();
   hdf_object_type GetObjectType();
+
+  int nAttributes();
+  char* GetAttributeName(unsigned idx);
 };
 
 #endif
index e66a67d774096790d65c35a535e0cde15cf4a32e..049b05a4fd5445c2e94716c77f6d2043bfce2b80 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetClose.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 0deb8fe0a83f8e1916eb073bd49d330493867601..dd4772525973d5ff4f1a85ef35d73b2aeafd0714 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetCreate.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
@@ -12,6 +40,7 @@
  *     - if success : returns dataset ID
  *     - if failure : -1
  */ 
+
 hdf_idt HDFdatasetCreate(hdf_idt pid,char *name,hdf_type type,
                         hdf_size *dimd, int ndim)
 {
@@ -22,15 +51,19 @@ hdf_idt HDFdatasetCreate(hdf_idt pid,char *name,hdf_type type,
   switch(type)
     {
     case HDF_FLOAT64 :
+#ifdef PCLINUX
+      type_hdf = H5T_IEEE_F64BE;
+#else 
       type_hdf = H5T_IEEE_F64LE;
+#endif
       break;
 
     case HDF_INT32 :
-      type_hdf = H5T_STD_I32LE;
+      type_hdf = H5T_NATIVE_INT;
       break;
  
     case HDF_INT64 :
-      type_hdf = H5T_STD_I64LE;
+      type_hdf = H5T_NATIVE_LONG;
       break;
 
     case HDF_STRING :           
@@ -44,13 +77,11 @@ hdf_idt HDFdatasetCreate(hdf_idt pid,char *name,hdf_type type,
       return -1;
     }
 
-if ((dataset = H5Dopen(pid,name)) < 0)
+  if ((dataset = H5Dopen(pid,name)) < 0)
     {
-
-     if ((dataspace = H5Screate_simple(ndim,dimd,NULL)) < 0)
+      if ((dataspace = H5Screate_simple(ndim, dimd, NULL)) < 0)                                                                
        return -1;
-     if ((dataset = H5Dcreate(pid,name,type_hdf,dataspace,
-                              H5P_DEFAULT)) < 0)
+      if ((dataset = H5Dcreate(pid,name,type_hdf,dataspace, H5P_DEFAULT)) < 0)
        return -1;
     }
   else
index 1b4dfe809f10785dd9a268119ca2e330f02a9b33..21b8e23eff9ce726afb924eac809291f2ec4b7a3 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetGetDim.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include <hdf5.h>
 #include "hdfi.h"
 #include <stdlib.h>
index 161e74762bdb2a2adebeacb65d08c73e1c0a9c4c..ec8b7d8ab1a8cf21ab8bcae12a95ae3a3a3bfd68 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetGetSize.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include <hdf5.h>
 #include "hdfi.h"
 
index dfee7019afb2e9696bd171c3074e78d0ad23ee03..9cc4bbd6a8c53e571777813d7fac9b86631bc19a 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetGetType.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 #include <hdf5.h>
 
@@ -35,5 +63,7 @@ HDFdatasetGetType(hdf_idt id)
       type = HDF_NONE;
     }
 
+  H5Tclose(type_id);
+
   return type;
 }
index d0e9cf50547bcc079eba891636a6f3d3c2ce7f0c..8b5977e9268916c75f12766e284bbedcbc5b7cdc 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetGetnDim.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 #include <hdf5.h>
 
index 8aeeffc7d1c27f2d9c1713a7406472036394d92d..e6e21a5bf35c77f06c1b501759467463c216072b 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetOpen.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 86e01f16d292baf8ae3e733fa9c20eff1be0c095..7cb951b8d6dfc533f7842a32e56e061d79f56f42 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetRead.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 18261b23541293eec540f93b1b3159a5a13d4039..f48c6a27c10df14346bf4e4f9bdf322d96b09004 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFdatasetWrite.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index d698ec822b3e01e5cfa522e4871d25f5ca3c2707..9ebc763b543867ecce517a127ba5cae3b092c74d 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFerrorModeLock.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index be0f6095be8aa604f1307ce95ca83b85d9addcc0..b23d321017c6aed7f7e762cd537509d800a80aec 100644 (file)
@@ -1,5 +1,31 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFexception.hxx
+//  Module : SALOME
+
 /* Exception */
-#include <iostream.h>
+#include <iostream>
 
 class HDFexception
 {
index 825406f83f6a5d62128392099869a08a9ab98d69..2e86f820e0120dadc53334941a94b21fc2e95b7f 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFexplorer.cc
+//  Module : SALOME
+
 using namespace std;
 #include "HDFcontainerObject.hxx"
 #include "HDFexception.hxx"
index f107c24201952aab909fa0b1efd970b296e269d8..8c1523576246e8318d578afd06c544087756f29f 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFexplorer.hxx
+//  Module : SALOME
+
 #ifndef HDFEXPLORER_HXX
 #define HDFEXPLORER_HXX
 
index 7c7307ab97d79bf1b648c11fe04bc0dc29e39ea3..469430a3405cd85e536937ad3c45a9e7ddcbbd43 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFfile.cc
+//  Module : SALOME
+
 using namespace std;
 extern "C"
 {
@@ -9,9 +35,18 @@ extern "C"
 #include "HDFfile.hxx"
 #include "HDFexception.hxx"
 
+herr_t file_attr(hid_t loc_id, const char *attr_name, void *operator_data)
+{
+   *(char**)operator_data = new char[strlen(attr_name)+1];
+   strcpy(*(char**)operator_data, attr_name);
+   return 1;
+}
+
 HDFfile::HDFfile(char *name)
   : HDFcontainerObject(name) 
-{}
+{
+  _attribute = NULL;
+}
 
 void HDFfile::CreateOnDisk()
 {
@@ -114,3 +149,18 @@ hdf_object_type HDFfile::InternalObjectType(char *object_name)
 
   return type;
 }
+
+int HDFfile::nAttributes()
+{
+  int nbAttrs = H5Aget_num_attrs(_id);
+  if(nbAttrs <= 0) nbAttrs = 0;
+  return nbAttrs; 
+}
+
+char* HDFfile::GetAttributeName(unsigned idx)
+{
+  int nbAttrs = nAttributes();
+  if(nbAttrs == 0) return NULL;
+  H5Aiterate(_id, &idx, file_attr, &_attribute);
+  return _attribute;
+}
index c8ddfbb71d0cce93ec0b4d317384b63d9a512087..4194fdbbeb7616d3e749f5910b3a59bfdd3440ff 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFfile.hxx
+//  Module : SALOME
+
 #ifndef HDFFILE_HXX
 #define HDFFILE_HXX
 
@@ -11,6 +37,7 @@ class HDFfile : public HDFcontainerObject
 {
 private :
   hdf_access_mode _access_mode;
+  char* _attribute;
 public :
   HDFfile(char *name);
 
@@ -25,6 +52,9 @@ public :
   void InternalObjectIndentify(int rank, char *object_name);
   int ExistInternalObject(char *object_name);
   hdf_object_type InternalObjectType(char *object_name);
+
+  int nAttributes();
+  char* GetAttributeName(unsigned idx);
 };
 
 #endif /* HDFFILE_HXX */ 
index 450b9d67f3ecc8d54cd2552b409eec4f60718716..36d750662740cd9d9676e9adaf685d4c4327550d 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFfileClose.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 23ed25418c2583601d57c22178324e0d3bc6adb0..dcf0f9ccf76e2b214e7a553bcf8d3a0bdb28991b 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFfileCreate.c
+  Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index e210e463e6504e83235d4d1b7181739660fdd653..bb059f246721b9f473fd00ed59f6bbfe8624f7b6 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFfileMount.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include <hdf5.h>
 #include "hdfi.h"
 
index ca80dfb964fcf0ce976adb0d1e558d0c822c4e9b..7f83cffeeba8c49248449e0abb9c899258f7f0a2 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFfileOpen.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 /*
  * - Name : HDFfileOpen
index 7c79b46300b63a04c34366ee2317b1fe36fdfa9e..9ef3d4d2d6b681baf80241dff8112e60b773ee3f 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFfileUmount.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include <hdf5.h>
 #include "hdfi.h"
 
index 9acf628368ee0d9f90400d7df512bfb312128987..b08f4de6eab4675d0b0590f648c62552ed017e90 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFgroup.cc
+//  Module : SALOME
+
 using namespace std;
 extern "C"
 {
@@ -7,6 +33,13 @@ extern "C"
 #include "HDFgroup.hxx"
 #include "HDFexception.hxx"
 
+herr_t group_attr(hid_t loc_id, const char *attr_name, void *operator_data)
+{
+   *(char**)operator_data = new char[strlen(attr_name)+1];
+   strcpy(*(char**)operator_data, attr_name);
+   return 1;
+}
+
 HDFgroup::HDFgroup(char *name, HDFcontainerObject *father)
   : HDFcontainerObject(name)
 {
@@ -14,11 +47,12 @@ HDFgroup::HDFgroup(char *name, HDFcontainerObject *father)
   _fid = _father->GetId();
   _father->AddSon(this);
   _mid = -1;
+  _attribute = NULL;
 };
 
 void HDFgroup::CreateOnDisk()
 {
-  if ((_id = HDFgroupCreate(_fid,_name)) < 0)
+  if ((_id = HDFgroupCreate(_fid,_name)) < 0) 
     throw HDFexception("Can't create group");
 }
   
@@ -122,3 +156,21 @@ void HDFgroup::FileUnMount()
 
   _mid = -1;
 }
+
+int HDFgroup::nAttributes()
+{
+  int nbAttrs = H5Aget_num_attrs(_id);
+  if(nbAttrs <= 0) nbAttrs = 0;
+  return nbAttrs; 
+}
+
+char* HDFgroup::GetAttributeName(unsigned idx)
+{
+  int nbAttrs = nAttributes();
+  if(nbAttrs == 0) return NULL;
+  H5Aiterate(_id, &idx, group_attr, &_attribute);
+  return _attribute;
+}
+
+
index 843ab0bd714e6d5da5f59cc289cbc9600f0bfc1f..cca0584488adc5016dc8cc66b05d0b25147728dd 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFgroup.hxx
+//  Module : SALOME
+
 #ifndef HDFGROUP_HXX
 #define HDFGROUP_HXX
 
@@ -13,6 +39,7 @@ private :
   HDFcontainerObject *_father;
   hdf_idt _fid;
   hdf_idt _mid;
+  char* _attribute;
 public :
   HDFgroup(char *name, HDFcontainerObject *father);
 
@@ -30,6 +57,9 @@ public :
   void InternalObjectIndentify(int rank, char *object_name);
   int ExistInternalObject(char *object_name);
   hdf_object_type InternalObjectType(char *object_name);
+
+  int nAttributes();
+  char* GetAttributeName(unsigned idx);
 };
 
 #endif /* HDFGROUP_HXX */ 
index 59578aedb19d574d3c45c301af1e971608700848..92d2f373c45182178c55dcb78aff5cd3abefd351 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFgroupClose.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 2458f47875ab20e71299eed7492d21b3c428c346..c1c6f01dca55fc59144df2fad6e4cc7140d6d4a7 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFgroupCreate.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index 98c49c89c246eec4aae3e1c319676f376761dc43..ff928bc8453621e37549fe5652121a906229ef30 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFgroupOpen.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index d384bfce3531ebce109e73da88f6fbb11cfd36b2..2cf6ed0117c1dc0e74427692cb45c181a14ed10a 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFinternalObject.cc
+//  Module : SALOME
+
 using namespace std;
 extern "C"
 {
index 0c6855988a240991f223210d20a9bbfd16c132e0..5e4acb81cae5bff67bbf89d0ec1322958ca36994 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFinternalObject.hxx
+//  Module : SALOME
+
 #ifndef HDFINTERNALOBJECT_HXX
 #define HDFINTERNALOBJECT_HXX
 
index 1015b4737fef44f692a513834b19b3699c804002..109d6cffaf8c71a083c714e0c32cff6e33713ead 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFnObjects.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 #include <stdlib.h>
 
index 7a40ccc8bfc8b2efdc759caee35be2e538677e17..81fc689c881c8a73abf2fa96dcb208352245ce0d 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFobject.cc
+//  Module : SALOME
+
 using namespace std;
 #include "HDFobject.hxx"
 extern "C"
index 19e39fa7f370b764558ea5e901903df973059a4f..e9264713076e68752af417cf07017f461128d3c2 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HDFobject.hxx
+//  Module : SALOME
+
 #ifndef HDFOBJECT_HXX
 #define HDFOBJECT_HXX
 
index e5446c69e19802a51ea144d15abaaad3b4e38eab..87de66c64f65edb9ee10054ae4d0ab86e5015513 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFobjectIdentify.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 /*
index e31234bf6e462474709f4dfb84658c5f74b56ade..a26c3f6faf64ce0db0bee8c498f5799c58086299 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFobjectType.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include "hdfi.h"
 
 hdf_err 
index 398b4d87c0e6721614c52281f9d990d78da67260..b1e54e2939fa33b146598a2720cf40e2310471c7 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------------
+  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+  This library is free software; you can redistribute it and/or 
+  modify it under the terms of the GNU Lesser General Public 
+  License as published by the Free Software Foundation; either 
+  version 2.1 of the License. 
+  This library is distributed in the hope that it will be useful, 
+  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+  Lesser General Public License for more details. 
+  You should have received a copy of the GNU Lesser General Public 
+  License along with this library; if not, write to the Free Software 
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : HDFtypes.h
+  Module : SALOME
+----------------------------------------------------------------------------------*/
+
 #ifndef HDFTYPES_H
 #define HDFTYPES_H
 
index f486da16552adbb18ea684aa6f0a441a548a5ad4..b00d8b2c9e8417d79a53d5b74a5f74e6dbef9555 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar aug  10 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -29,7 +47,8 @@ EXPORT_HEADERS = \
        HDFOI.hxx \
        HDFtypes.h \
        HDFconvert.hxx \
-       hdfi.h
+       hdfi.h \
+       HDFascii.hxx
 
 # Libraries targets
 
@@ -57,6 +76,8 @@ LIB_SRC =  \
        HDFattrWrite.c \
        HDFattrCreate.c \
        HDFattrRead.c \
+       HDFattrGetType.c \
+       HDFattrGetSize.c \
        HDFerrorModeLock.c \
        HDFnObjects.c \
        HDFobjectIdentify.c \
@@ -69,12 +90,13 @@ LIB_SRC =  \
        HDFfile.cc \
        HDFgroup.cc \
        HDFexplorer.cc \
-       HDFconvert.cc
+       HDFconvert.cc \
+       HDFascii.cc
 
 #BIN = test9 test8
 
-CPPFLAGS+=-c -ansi $(HDF5_INCLUDES)
-LDFLAGS+= $(HDF5_LIBS)
+CPPFLAGS+=$(OCC_INCLUDES) $(HDF5_INCLUDES) -DPCLINUX
+LDFLAGS+= $(OCC_LIBS) $(HDF5_LIBS)
 
 
 @CONCLUDE@
index ebd133e27e392b2ff4a7ae60c4066b8aa71cc6eb..e1810953d99bf6baf87b964b20852e73525f1911 100644 (file)
@@ -1,3 +1,30 @@
+/*----------------------------------------------------------------------
+  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+  This library is free software; you can redistribute it and/or 
+  modify it under the terms of the GNU Lesser General Public 
+  License as published by the Free Software Foundation; either 
+  version 2.1 of the License. 
+  This library is distributed in the hope that it will be useful, 
+  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+  Lesser General Public License for more details. 
+  You should have received a copy of the GNU Lesser General Public 
+  License along with this library; if not, write to the Free Software 
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+  File   : hdfi.h
+  Module : SALOME
+  ----------------------------------------------------------------------*/
+
 #ifndef HDFI_H
 #define HDFI_H
 
@@ -68,7 +95,7 @@ extern
 hdf_err HDFattrClose(hdf_idt id);
 
 extern
-hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type);
+hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type, size_t size);
 
 extern
 hdf_err HDFattrWrite(hdf_idt id,void *val);
@@ -76,6 +103,12 @@ hdf_err HDFattrWrite(hdf_idt id,void *val);
 extern
 hdf_err HDFattrRead(hdf_idt id,void *val);
 
+extern
+hdf_type HDFattrGetType(hdf_idt id);
+
+extern
+hdf_type HDFattrGetSize(hdf_idt id);
+
 /* HDF Tools */
 extern
 void HDFerrorModeLock();
index f89638b787ae81cae06ca559a29b6c0c189d3a4c..58493244771b4b58c8aa389cc6dd55de58b82d66 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : test1.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include"hdfi.h"
 #include<stdlib.h>
 
index e29a5557a6e87e1c56b87fc0cc58d175f026a88b..e2673e6db01ce9bfbfcce44e63eb6fb867590864 100644 (file)
@@ -1,3 +1,31 @@
+/*----------------------------------------------------------------------------
+SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+
+ Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+
+ This library is free software; you can redistribute it and/or 
+ modify it under the terms of the GNU Lesser General Public 
+ License as published by the Free Software Foundation; either 
+ version 2.1 of the License. 
+
+ This library is distributed in the hope that it will be useful, 
+ but WITHOUT ANY WARRANTY; without even the implied warranty of 
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+ Lesser General Public License for more details. 
+
+ You should have received a copy of the GNU Lesser General Public 
+ License along with this library; if not, write to the Free Software 
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+
+ See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+
+
+
+  File   : test2.c
+Module : SALOME
+----------------------------------------------------------------------------*/
+
 #include"hdfi.h"
 #include<stdlib.h>
 
index 2daacd250ea7a011a48a68a26141a250461569e4..9f28614af679a4135cc9d83a850c3555f8bb93cd 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test3.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
index bf4f24b71c3bcc4048924362b3f99d0889b23f57..9c85af23ff0d08bcd228e7e64d05421c20f3a6a6 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test4.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
index 0884e7f3fe143234dae3b3960312a3efb336f796..e025798ddf40a068b49b75fe0d612fe1f7e661aa 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test5.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
index e208ee1b2b4087827f6c760dd83261b0b2e2a021..8be92dec0e9005f6e6a743e14c52b2b5bf8fccb1 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test6.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
index 123d66b6313e5a2701662c21325a559bac679a7f..935834bd203f8142ee0279accca4f9afb4631c4b 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test7.cxx
+//  Module : SALOME
+
 using namespace std;
 #include "HDFIO.hxx"
 #include <iostream.h>
index 222d839eb3961c35dd86f03596b43b574d432825..c53e84d297b5e5bb441d7d7ee773e63e509a2a9b 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test8.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
index 3cd1a5e48c8bb7e52e7d5aecb661fecaacf5ede2..605eb07936ad7b6c572ab719d27e1f0442f10c97 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : test9.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
index b7784156c5efc16a6bb187694b03fe79100cf949..9c683e51fa762d32d7564980b78354e0d0ba8f75 100644 (file)
@@ -1,11 +1,30 @@
-#==============================================================================
-#  File      : LifeCycleCORBA.py
-#  Created   : mer oct 17 08:42:01 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME LifeCycleC RBA : implementation of containers and engines life cycle both in Python and C++
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : LifeCycleCORBA.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
 import os
 import sys
@@ -60,6 +79,7 @@ class LifeCycleCORBA:
     #-------------------------------------------------------------------------
 
     def ContainerName(self, containerName):
+        theComputer = ""
         try:
             theComputer , theContainer = containerName.split('/')
         except:
@@ -120,14 +140,13 @@ class LifeCycleCORBA:
                 if path != "" :
                     rshstr = rshstr + path + "/../bin/"
                 else :
-                    rshstr = rshstr + os.getenv( "PWD" ) + "/"
+                    rshstr = rshstr + os.getenv( "SALOME_ROOT_DIR" ) + "/bin/"
                 if theContainer == "FactoryServer" :
                     rshstr = rshstr + "./runSession ./SALOME_Container "
                 else :
                     rshstr = rshstr + "./runSession ./SALOME_ContainerPy.py '"
                 rshstr = rshstr + theContainer + " -"
-                omniORBcfg = os.getenv( "HOME" ) + "/omniORB.cfg"
-#                omniORBcfg = os.getenv( "HOME" ) + "/.omniORB.cfg"
+               omniORBcfg = os.getenv( "OMNIORB_CONFIG" )
                 file = os.open( omniORBcfg , os.O_RDONLY )
                 ORBInitRef = os.read(file,132)
                 if ORBInitRef[len(ORBInitRef)-1] == '\n' :
@@ -152,7 +171,7 @@ class LifeCycleCORBA:
             while aContainer is None :
                 time.sleep(1)
                 count = count - 1
-                MESSAGE( count + ". Waiting for " + theComputer + "/" + theContainer )
+                MESSAGE( str(count) + ". Waiting for " + theComputer + "/" + theContainer )
                 aContainer = self.FindContainer( theComputer + "/" + theContainer )
                 if count == 0 :
                     return aContainer
index 14acc36d348a4b47616d852c5b89fe5674464c42..788d83ef2ac6a80ead92f1bef275d9fb9b554ca0 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : lun jui  2 20:32:24 CEST 2001
-#  Author    : Paul RASCLE, EDF - Marc Tajchman, CEA
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME LifeCycleCORBA : implementation of containers and engines life cycle both in Python and C++
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF - Marc Tajchman, CEA
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -34,7 +52,6 @@ BIN_CLIENT_IDL = SALOME_Component.idl SALOME_TestComponent.idl \
                 SALOME_ModuleCatalog.idl
 
 LDFLAGS += -lSalomeNS -lOpUtil -lSalomeLoggerServer
-CPPFLAGS += -I ../Logger
 
 @CONCLUDE@
 
index bf562002bc2846d5fec2857e23d5bc7ced36cb6d..844d024481f9133f89a0fd2891b6365c9d5d44d0 100644 (file)
@@ -1,16 +1,35 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_LifeCycleCORBA.cxx
-// Created   : jeu jui 12 14:55:50 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME LifeCycleCORBA : implementation of containers and engines life cycle both in Python and C++
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_LifeCycleCORBA.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include <iostream>
 #include <fstream>
-#include <strstream>
+#include <sstream>
 #include <iomanip>
 
 #include "OpUtil.hxx"
@@ -165,8 +184,7 @@ Engines::Container_var SALOME_LifeCycleCORBA::FindOrStartContainer(
         rsh += "SALOME_Container " ;
         rsh += "FactoryServer -" ;
       }
-      string omniORBcfg( getenv( "HOME" ) ) ;
-      omniORBcfg += "/.omniORB.cfg" ;
+      string omniORBcfg( getenv( "OMNIORB_CONFIG" ) ) ;
       ifstream omniORBfile( omniORBcfg.c_str() ) ;
       char ORBInitRef[12] ;
       char nameservice[132] ;
index beeed25b0c4e6342d6736615ebaddfd1bc8b3716..2338fe34c690ebc4cfe4abadd25768b7af09f321 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOME_LifeCycleCORBA.hxx
-// Created   : jeu jui 12 14:55:45 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME LifeCycleCORBA : implementation of containers and engines life cycle both in Python and C++
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_LifeCycleCORBA.hxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOME_LIFECYCLECORBA_HXX_
 #define _SALOME_LIFECYCLECORBA_HXX_
@@ -37,13 +56,13 @@ protected:
   Engines::Container_var _FactoryServer ;
 
 private:
-  string ContainerName( const char * aComputerContainer ,
-                        string * theComputer ,
-                        string * theContainer ) ;
-  string ComputerPath( const char * theComputer ) ;
-  Engines::Container_var FindOrStartContainer(const string aComputerContainer ,
-                                              const string theComputer ,
-                                              const string theContainer ) ;
+  std::string ContainerName( const char * aComputerContainer ,
+                        std::string * theComputer ,
+                        std::string * theContainer ) ;
+  std::string ComputerPath( const char * theComputer ) ;
+  Engines::Container_var FindOrStartContainer(const std::string aComputerContainer ,
+                                              const std::string theComputer ,
+                                              const std::string theContainer ) ;
 
 } ;
 
index 24b6142165ebd1f940e09ff9050c4c85cf427cd8..b67b988b63932908d394774f5e7e2026e57340c7 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : TestLifeCycleCORBA.cxx
-// Created   : jeu jui 12 13:11:27 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME LifeCycleCORBA : implementation of containers and engines life cycle both in Python and C++
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : TestLifeCycleCORBA.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "utilities.h"
 #include <iostream>
 #include <unistd.h>
index 1102aa39a957287a199858ebd4579fee37e531ca..846e405c763f41c2363f60b1bd9103de25989286 100644 (file)
@@ -1,14 +1,13 @@
-//=============================================================================
-// File      : InquireServersQThread.cxx
-// Created   : Mon Oct 21 17:26:42 2002
-// Author    : Vasily RUSYAEV
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : InquireServersQThread.cxx
+//  Author : Vasily RUSYAEV
+//  Module : SALOME
+//  $Header$
 
 using namespace std;
-
 #include "InquireServersQThread.h"
 
 #include <qlabel.h>
@@ -214,24 +213,15 @@ InquireServersQThread::InquireServersQThread( InquireServersGUI* r )
   QString str = "Loading: ";
   myMessages[0] = "Checking naming service...";
   myMessages[1] = str + "SALOME_Registry_Server" + "...";
-  myMessages[2] = str + "SALOMEDS_Server" + "...";
+  myMessages[2] = str + "SALOME_Container SuperVisionContainer" + "...";
   myMessages[3] = str + "SALOME_ModuleCatalog_Server" + "...";
-  myMessages[4] = str + "SALOME_Session_Server" + "...";
-  myMessages[5] = "";
-  myMessages[6] = "";
-  myMessages[7] = "";
+  myMessages[4] = str + "SALOME_ContainerPy.py FactoryServerPy" + "...";
+  myMessages[5] = str + "SALOME_Container FactoryServer" + "...";
+  myMessages[6] = str + "SALOMEDS_Server" + "...";
+  myMessages[7] = str + "SALOME_Session_Server" + "...";
 
   r->getArgs( _argc, &_argv);
 
-  // NRI : Temporary solution for SuperVisionContainer
-  for ( int i=1; i<=_argc; i++) {
-    if (strcmp(_argv[i],"CPP")==0)
-      myMessages[5] = str + "SALOME_Container FactoryServer" + "...";
-    if (strcmp(_argv[i],"PYTHON")==0)
-      myMessages[6] = str + "SALOME_ContainerPy.py FactoryServerPy" + "...";
-    if (strcmp(_argv[i],"SUPERV")==0)
-      myMessages[7] = str + "SALOME_Container SuperVisionContainer" + "...";
-  }
 }
 
 void InquireServersQThread::run()
@@ -240,7 +230,6 @@ while (IsChecking)
   {
     for (int i=1; i<=myServersCount; i++)
       {
-       if ( myMessages[i-1].isEmpty() ) continue;
        QString *message = new QString(myMessages[i-1]);
        QThread::postEvent( receiver, new InquireEvent( ( QEvent::Type )InquireEvent::ProgressEventLabel, message ) );
        QThread::usleep(200000);
@@ -308,17 +297,19 @@ bool InquireServersQThread::AskServer(int iteration, QString ** errMessage)
     case 2:
       //checking - existence of SALOME_Registry_Server
     case 3:
-      //checking - existence of SALOMEDS_Server
+      //checking - existence of SALOME_Container SuperVisionContainer
     case 4:
       //checking - existence of SALOME_ModuleCatalog_Server
     case 5:
-      //checking - existence of SALOME_Session_Server
+      //checking - existence of SALOME_ContainerPy.py FactoryServerPy
     case 6:
       //checking - existence of SALOME_Container FactoryServer
     case 7:
-      //checking - existence of SALOME_ContainerPy.py FactoryServerPy
+      //checking - existence of SALOMEDS_Server
     case 8:
-      //checking - existence of SALOME_Container SuperVisionContainer
+      //checking - existence of SALOME_Session_Server
+      
+
       IsPassed = pingServer(iteration, errDescription);
       if (!IsPassed)
        *errMessage = new QString(errDescription);
@@ -356,16 +347,20 @@ bool InquireServersQThread::pingServer(int iteration, QString& errMessage)
                  }
              }
              break;
-           case 3:
-             {
-               CORBA::Object_var obj = NS.Resolve("/myStudyManager");
-               SALOMEDS::StudyManager_var studyManager = SALOMEDS::StudyManager::_narrow(obj) ;
-               if (!CORBA::is_nil(studyManager))
+           case 3:     
+              {
+               string hostname = GetHostname();
+               string containerName = "/Containers/";
+               containerName += hostname;
+               containerName += "/SuperVisionContainer";
+               
+               CORBA::Object_var obj = NS.Resolve(containerName.c_str());
+               Engines::Container_var SVcontainer = Engines::Container::_narrow(obj) ;
+               if (!CORBA::is_nil(SVcontainer))
                  {
-                   MESSAGE("/myStudyManager is found");
-                   studyManager->ping();
+                   SVcontainer->ping();
                    result = true;
-                   MESSAGE("StudyManager was activated");
+                   MESSAGE("SuperVisionContainer container was activated");
                    return result;
                  }
              }
@@ -384,7 +379,7 @@ bool InquireServersQThread::pingServer(int iteration, QString& errMessage)
                  }
              }
              break;
-           case 5:
+           case 8:
              {
                CORBA::Object_var obj = NS.Resolve("Kernel/Session");
                SALOME::Session_var session = SALOME::Session::_narrow(obj) ;
@@ -416,7 +411,7 @@ bool InquireServersQThread::pingServer(int iteration, QString& errMessage)
                  }
              }
              break;
-           case 7:
+           case 5:
              {
                string hostname = GetHostname();
                string containerName = "/Containers/";
@@ -434,20 +429,16 @@ bool InquireServersQThread::pingServer(int iteration, QString& errMessage)
                  }
              }
              break;
-           case 8:
-             {
-               string hostname = GetHostname();
-               string containerName = "/Containers/";
-               containerName += hostname;
-               containerName += "/SuperVisionContainer";
-               
-               CORBA::Object_var obj = NS.Resolve(containerName.c_str());
-               Engines::Container_var SVcontainer = Engines::Container::_narrow(obj) ;
-               if (!CORBA::is_nil(SVcontainer))
+           case 7:
+              {
+               CORBA::Object_var obj = NS.Resolve("/myStudyManager");
+               SALOMEDS::StudyManager_var studyManager = SALOMEDS::StudyManager::_narrow(obj) ;
+               if (!CORBA::is_nil(studyManager))
                  {
-                   SVcontainer->ping();
+                   MESSAGE("/myStudyManager is found");
+                   studyManager->ping();
                    result = true;
-                   MESSAGE("SuperVisionContainer container was activated");
+                   MESSAGE("StudyManager was activated");
                    return result;
                  }
              }
@@ -489,22 +480,22 @@ bool InquireServersQThread::pingServer(int iteration, QString& errMessage)
        case 2:
          serverName = "SALOME_Registry_Server is not loaded. ";
          break;
-       case 3:
+       case 7:
          serverName = "SALOMEDS_Server is not loaded. ";
          break;
        case 4:
          serverName = "SALOME_ModuleCatalog_Server is not loaded. ";
          break;
-       case 5:
+       case 8:
          serverName = "SALOME_Session_Server is not loaded. ";
          break;
        case 6:
          serverName = "SALOME_Container FactoryServer is not loaded. ";
          break;
-       case 7:
+       case 5:
          serverName = "SALOME_ContainerPy.py FactoryServerPy is not loaded. ";
          break;
-       case 8:
+       case 3:
          serverName = "SALOME_Container SuperVisionContainer is not loaded. ";
          break;
        }
@@ -520,23 +511,6 @@ QString findFile( QString filename )
   QString dir;
   char* cenv;
   
-  // Try ${SALOME_ROOT_DIR}/share/salome/resources directory
-  cenv = getenv( "KERNEL_ROOT_DIR" );
-  if ( cenv ) {
-    dir.sprintf( "%s", cenv );
-    if ( !dir.isEmpty() ) {
-      dir = addSlash(dir) ;
-      dir = dir + "share" ;
-      dir = addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = addSlash(dir) ;
-      dir = dir + "resources" ;
-      dir = addSlash(dir) ;
-      QFileInfo fileInfo( dir + filename );
-      if ( fileInfo.isFile() && fileInfo.exists() )
-       return fileInfo.filePath();
-    }
-  }
   // Try CSF_ResourcesDefaults env.var directory ( or directory list )
   cenv = getenv( "CSF_ResourcesDefaults" );
   if ( cenv ) {
index b67983b760284f4107aabc0fcd77f0e314736f1b..89927d1449cddf5af1856ad54329c709c62fa43d 100644 (file)
@@ -1,11 +1,11 @@
-//=============================================================================
-// File      : InquireServersQThread.h
-// Created   : Mon Oct 21 17:26:42 2002
-// Author    : Vasily RUSYAEV
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : InquireServersQThread.h
+//  Author : Vasily RUSYAEV
+//  Module : SALOME
+//  $Header$
 
 #include <qapplication.h>
 #include <qthread.h> 
index ec05f0465c4881d8dc6245ccf40db6709abcc05e..412118e71ac409ca0b4af5b2d21e0ef2fa5a7853 100644 (file)
@@ -1,15 +1,14 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:59:20 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -17,7 +16,7 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 @COMMENCE@
 
 # Executables targets
-BIN = SALOME_Session_Loader
+BIN = SALOME_Session_loader
 
 BIN_MOC = InquireServersQThread.h
 BIN_SRC = InquireServersQThread.cxx
@@ -28,8 +27,7 @@ BIN_CLIENT_IDL = SALOME_Session.idl \
                 SALOME_Component.idl \
                 SALOME_ModuleCatalog.idl \
                 SALOME_Registry.idl \
-                 SALOME_Exception.idl 
-
+                 SALOME_Exception.idl
 
 CPPFLAGS+=$(QT_MT_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
diff --git a/src/Loader/SALOME_Session_loader.cxx b/src/Loader/SALOME_Session_loader.cxx
new file mode 100644 (file)
index 0000000..825fd04
--- /dev/null
@@ -0,0 +1,89 @@
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOME_Session_loader.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
+
+using namespace std;
+/*! \file SALOME_Session_loader.cxx
+ */
+
+#include <SALOMEconfig.h>
+#include CORBA_CLIENT_HEADER(SALOME_Session)
+
+#include "Utils_ORB_INIT.hxx"
+#include "Utils_SINGLETON.hxx"
+#include "SALOME_NamingService.hxx"
+#include "utilities.h"
+
+//! CORBA client for SALOME Session server : launch GUI
+/*!
+ *  SALOME_Session Loader launches a SALOME GUI on the SALOME session servant process
+ */
+
+#include <qapplication.h>
+#include "InquireServersQThread.h"
+
+int main(int argc, char **argv)
+{
+//VRV: T2.4 - Trace management improvement
+  QApplication myQApp(argc, argv) ;
+  InquireServersGUI myIS;
+  myQApp.setMainWidget(&myIS);
+  ASSERT(QObject::connect(&myQApp, SIGNAL(lastWindowClosed()), &myQApp, SLOT(quit()) ) );
+  myIS.show();
+  myQApp.exec();
+
+  if (myIS.getExitStatus())
+    exit(1);
+//VRV: T2.4 - Trace management improvement
+  try
+    {
+      CORBA::ORB_ptr orb = CORBA::ORB_init(argc,argv) ;
+
+      SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance() ;
+      ASSERT(SINGLETON_<SALOME_NamingService>::IsAlreadyExisting()) ;
+      NS.init_orb( orb ) ;
+
+      CORBA::Object_var obj = NS.Resolve("/Kernel/Session");
+
+      SALOME::Session_var session = SALOME::Session::_narrow(obj) ;
+      ASSERT(! CORBA::is_nil(session));
+      MESSAGE("SALOME::Session::_narrow(obj)");
+      INFOS("Corba initialisation, Distant server");
+
+      // -------------------------------------------------------------
+
+      session->GetInterface() ;
+
+      // -------------------------------------------------------------
+
+      orb->destroy() ;
+    }
+   catch (ServiceUnreachable&)
+     {
+       INFOS("Caught exception: Naming Service Unreachable");
+     }
+  catch (CORBA::COMM_FAILURE&)
+    {
+      INFOS("Caught CORBA::SystemException CommFailure.");
+    }
+  catch (CORBA::SystemException&)
+    {
+      INFOS("Caught CORBA::SystemException.");
+    }
+  catch (CORBA::Exception&)
+    {
+      INFOS("Caught CORBA::Exception.");
+    }
+  catch (...)
+    {
+      INFOS("Caught unknown exception.");
+    }
+  return 0 ;
+}
+
+
index 9d7e48553345488f3453ef7c862059e1fbffc1a3..1d51437b87377b853f3a352d47cc05a1d289acab 100644 (file)
@@ -1,15 +1,16 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:59:20 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME Logger : CORBA server managing trace output
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 3f5cc115295d6fb991a01f92b3c957e81eab6a37..3d40b45f72d2633d6d28059cf6d57e7b678198d1 100644 (file)
@@ -1,15 +1,14 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Logger_Server.cxx
-// Created   : nov 18 10:28:17 2002
-// Author    : Vasily Rusyaev
-// Project   : SALOME/PRO
-//=============================================================================
-
-// SALOME_Logger_Server.cxx: implementation of the SALOME_Logger_Server class.
+//  SALOME Logger : CORBA server managing trace output
 //
-//////////////////////////////////////////////////////////////////////
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOME_Logger_Server.cxx
+//  Author : Vasily Rusyaev
+//  Module : SALOME
 
+using namespace std;
 #include <iostream>
 #include "SALOME_Logger_Server.hxx"
 
index 08f33cff04780ca3e5ff0ed34f96609830f6e040..4b000c50ca742362ab66eb6a3e5b165dce61bf2e 100644 (file)
@@ -1,13 +1,12 @@
-//=============================================================================
-// File      : SALOME_Logger_Server.hxx
-// Created   : nov 18 10:28:17 2002
-// Author    : Vasily Rusyaev
-// Project   : SALOME/PRO
-//=============================================================================
-
-// SALOME_Logger_Server.hxx: interface for the SALOME_Logger_Server class.
+//  SALOME Logger : CORBA server managing trace output
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
 //
-//////////////////////////////////////////////////////////////////////
+//  File   : SALOME_Logger_Server.hxx
+//  Author : Vasily Rusyaev
+//  Module : SALOME
 
 #if !defined SALOME_Logger_Server_include
 #define SALOME_Logger_Server_include
index f07b9e57812279bd769304388dfe91f9d4bd7a69..ab5abd2b2e747a1049813193ab9121e7b7e2170d 100644 (file)
@@ -1,15 +1,14 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Logger.cxx
-// Created   : nov 18 10:28:17 2002
-// Author    : Vasily Rusyaev
-// Project   : SALOME/PRO
-//=============================================================================
-
-// SALOME_Trace.cxx: implementation of the SALOME_Logger class.
+//  SALOME Logger : CORBA server managing trace output
 //
-//////////////////////////////////////////////////////////////////////
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOME_Logger.cxx
+//  Author : Vasily Rusyaev
+//  Module : SALOME
 
+using namespace std;
 #include "SALOME_Trace.hxx"
 #include <memory.h>
 #include <string>
index 0ba300e681aacc517e99c0b2feb891c9bb17bc90..e24239e8dd3a6ac107669f1c4c6c7d8945b06684 100644 (file)
@@ -1,13 +1,12 @@
-//=============================================================================
-// File      : SALOME_Trace.cxx
-// Created   : nov 18 10:28:17 2002
-// Author    : Vasily Rusyaev
-// Project   : SALOME/PRO
-//=============================================================================
-
-// SALOME_Trace.hxx: interface for the SALOME_Trace class.
+//  SALOME Logger : CORBA server managing trace output
 //
-//////////////////////////////////////////////////////////////////////
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOME_Trace.cxx
+//  Author : Vasily Rusyaev
+//  Module : SALOME
 
 #if !defined(AFX_LOGGER_H__96F2A3AB_F6F8_11D6_BFA6_000476A0958C__INCLUDED_)
 #define AFX_LOGGER_H__96F2A3AB_F6F8_11D6_BFA6_000476A0958C__INCLUDED_
@@ -43,6 +42,8 @@
 
 # endif  /* WNT */
 
+using namespace std;
+
 #include <strstream.h>
 #include "Logger.hh"
 
@@ -51,7 +52,7 @@ class SALOME_Trace : public ostrstream
 public:
        virtual ~SALOME_Trace();
         static Standard_EXPORT SALOME_Trace& Instance();
-       Standard_EXPORT void putMessage(ostream& msg);
+       Standard_EXPORT void putMessage(std::ostream& msg);
 protected:
        //disable creation of instances. It's necessary to use static SALOME_Logger& Instance()
        SALOME_Trace();
index 9bc87074401a9c22cbf26e3a98e8229972fad713..04dbcc35c92262642fc20ca1aed111279449556d 100644 (file)
@@ -1,3 +1,12 @@
+#  SALOME Logger : CORBA server managing trace output
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : SALOME_Trace.py
+#  Module : SALOME
+
 import sys
 import CosNaming
 from omniORB import CORBA
index 17c0d12e71619d3ebe3944d6bdcb6b9025c0682e..8201d24f0bccedbf96587b27031907cca51d6d47 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME MPIContainer : implemenation of container based on MPI libraries
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : MPIContainer_i.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream.h>
 #include <dlfcn.h>
index b5430134d2b5fcde89c4656c8c86a7e4c430c9f6..390f6ce738cc8495a260b001136b4e84cb3e0cf2 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME MPIContainer : implemenation of container based on MPI libraries
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : MPIContainer_i.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_PCONTAINER_
 #define _SALOME_PCONTAINER_ 
 
index 431b5142a9a08707b3bac69460d1ff1238150012..218c01c9db9326679fd7824f88a1b76188ac9236 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME MPIContainer : implemenation of container based on MPI libraries
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : MPIObject_i.cxx
+//  Module : SALOME
+
 using namespace std;
 #include "MPIObject_i.hxx"
 #include "utilities.h"
index fb59d9e8c75e427370db814864fcd763dbc6781c..e504bb829843cea777f4925570724690ff2f451e 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME MPIContainer : implemenation of container based on MPI libraries
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : MPIObject_i.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_POBJECT_I_H_
 #define _SALOME_POBJECT_I_H_ 
 
index 66034c6944f6c74bfa2255037126b92d0cc593e1..229107d91f0097a9ae312426df2c754936fd9edb 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME MPIContainer : implemenation of container based on MPI libraries
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 518849e26f574a0f120ab83d791db3db1b13ad24..f11dbb26de5c146920ba84a0d79eeca8d6a5f9dc 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME MPIContainer : implemenation of container based on MPI libraries
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_MPIContainer.cxx
+//  Module : SALOME
+
 using namespace std;
 #include <iostream>
 #include "MPIContainer_i.hxx"
index 07bf2ed64d044b7e41060b2f640f1ca04d419bc0..544bfb6b0322fe5fd67c056cef07faf254e927a0 100644 (file)
@@ -1,6 +1,31 @@
-# source path
+#  SALOME MSG2QM : duplication of Qt tool
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index e36cd1cdfcd596e36901956344c186a25c7cf767..097947db2d6068d7859d54bf8353286d123329c4 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME MSG2QM : duplication of Qt tool
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : msg2qm.cxx
+//  Module : SALOME
+
 using namespace std;
 /****************************************************************************
 ** $Id$
index db35cc85f41b9a1ecb22f8f4f014c6e80d39d95a..e3694451242e9dee870c0cca7e3c16b4a5e2e9f7 100644 (file)
@@ -1,13 +1,31 @@
-# -* Makefile *- 
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
 #
-# Author : Patrick GOLDBRONN (CEA)
-# Date : 28/06/2001
-# $Header$
 #
+#  File   : Makefile.in
+#  Author : Patrick GOLDBRONN (CEA)
+#  Module : SALOME
+# $Header$
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@
 
@@ -16,9 +34,9 @@ VPATH=.:@srcdir@
 
 SUBDIRS = MSG2QM Logger Utils PatchQt NamingService Registry ModuleCatalog DataTypeCatalog \
          RessourcesCatalog Notification NOTIFICATION_SWIG Container TestContainer LifeCycleCORBA \
-          HDFPersist OBJECT SALOMEDS SALOMEGUI Plot2d VTKViewer OCCViewer SUPERVGraph Session \
+          HDFPersist OBJECT TOOLSDS SALOMEDS SALOMEGUI Plot2d VTKViewer OCCViewer SUPERVGraph Session \
          SALOME_SWIG TOOLSGUI SALOME_PY RegistryDisplay ModuleGenerator \
-         SALOME_PYQT
+         SALOME_PYQT Loader
 
 ifeq (@WITHMPICH@,yes)
   SUBDIRS+= MPIContainer
index c45684e34c025803694466bd2f2ac63b3884d0e9..18b89b3fcb9b12eaddd559fb0087556462a7c404 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mer jui 11 06:50:44 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -39,6 +57,6 @@ BIN_SERVER_IDL = SALOME_ModuleCatalog.idl
 
 CPPFLAGS+= $(QT_MT_INCLUDES) 
 CXXFLAGS+= -ftemplate-depth-42
-LDFLAGS+= $(QT_MT_LIBS) $(OGL_LIBS) -lSalomeNS -lOpUtil -lSalomeLoggerServer
+LDFLAGS+= $(QT_MT_LIBS) -lSalomeNS -lOpUtil -lSalomeLoggerServer
 
 @CONCLUDE@
index d2ed608d33d01e7f79310ecf14370715f26261c1..fb6346afa0bfc13dacbebe66164d23ce9d3f9f64 100644 (file)
@@ -1,9 +1,30 @@
-// File: PathPrefix.hxx
-// Created: Thu Jul 05 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : PathPrefix.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef PATH_PREFIX_H
 #define PATH_PREFIX_H
index 8ba33793a1eadf408009c692fc6c9626b0dd08a2..66672f7a0e85dbc03b8d6dc4a2694d65aa2a2511 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-// File: SALOME_ModuleCatalog_Acomponent_impl.cxx
-// Created: Tue June 28 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
-
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Acomponent_impl.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOME_ModuleCatalog_Acomponent_impl.hxx"
 
 //----------------------------------------------------------------------
index 3d9fe1fa1ec157071b799f9c4f38b6fd3cd73fbd..7c64ee719a6303df3758ec6bcd8f4baa8df46bc7 100644 (file)
@@ -1,10 +1,30 @@
-// File: SALOME_ModuleCatalog_Acomponent_impl.hxx
-// Created: Tue June 28 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
-
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Acomponent_impl.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef ACOMPONENT_IMPL_H
 #define ACOMPONENT_IMPL_H
index edba3fe03913330313be026eea8bb038e8aac71a..c590b4b102855ed925f0890877682318a7004712 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Client.cxx
+//  Module : SALOME
+
 using namespace std;
 /* $Header$ */
 
index 77b9d298d9364f7062bc3da759b4f9ee9a7933eb..41b444c97be08b0c8bec790ec3777b765572c182 100644 (file)
@@ -1,11 +1,32 @@
-using namespace std;
-// File: SALOME_ModuleCatalog_Handler.cxx
-// Created: Tue June 27 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Handler.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #define WRITE_CATA_COMPONENT
 #include "SALOME_ModuleCatalog_Handler.hxx"
 
@@ -292,7 +313,7 @@ bool SALOME_ModuleCatalog_Handler::endElement(const QString&,
 //----------------------------------------------------------------------
 bool SALOME_ModuleCatalog_Handler::characters(const QString& chars)
 {
-  content = chars ;
+  content = (const char*)chars ;
   return true;
 }
 
index 3efd158260e1eaac996318e446baf152f1893a98..2363b07a7b904532fbf55e18c447d7ecc0b7f923 100644 (file)
@@ -1,9 +1,30 @@
-// File: SALOME_ModuleCatalog_Handler.hxx
-// Created: Tue June 27 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Handler.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef SALOME_CATALOG_HANDLER_H
 #define SALOME_CATALOG_HANDLER_H
index 050ecfdeea6f6133d82f4fb3df07a884138d5b6f..fd2eebacf523a11bdfab701aa57473d58b413750 100644 (file)
@@ -1,9 +1,30 @@
-// File: SALOME_ModuleCatalog_Parser.hxx
-// Created: Tue June 25 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Parser.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef SALOME_CATALOG_PARSER_H
 #define SALOME_CATALOG_PARSER_H
index 32ebd948964568fc2c24c4f7b14d8687e3e8567f..817f31b9357c0e0199afe00955dd6843e0e5b43b 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_Server.cxx
+//  Module : SALOME
+
 using namespace std;
 /* $Header$ */
 #include <iostream.h>
@@ -5,6 +31,11 @@ using namespace std;
 #include "SALOME_ModuleCatalog_impl.hxx"
 #include "utilities.h"
 
+//#define CHECKTIME
+#ifdef CHECKTIME
+#include <Utils_Timer.hxx>
+#endif
+
 int main(int argc,char **argv)
 {
   try {
@@ -37,8 +68,15 @@ int main(int argc,char **argv)
   // register Catalog in Naming Service
   _NS->Register(myCata ,"/Kernel/ModulCatalog");
 
-  MESSAGE("Running CatalogServer.")
+  MESSAGE("Running CatalogServer.");
 
+#ifdef CHECKTIME
+  Utils_Timer timer;
+  timer.Start();
+  timer.Stop();
+  MESSAGE("SALOME_Registry_Server.cxx - orb->run()");
+  timer.ShowAbsolute();
+#endif
   orb->run();
  
   poa->destroy(1,1);
index 9cf8efc5b2de494c6caf8cb6de2955f4a60ec250..b6533ad5040e6d5b5e500fc30cabe69917765016 100644 (file)
@@ -1,11 +1,32 @@
-using namespace std;
-// File: SALOME_ModuleCatalog_impl.cxx
-// Created: Tue June 28 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_impl.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOME_ModuleCatalog_impl.hxx"
 #include "SALOME_ModuleCatalog_Acomponent_impl.hxx"
 #include <fstream>
index ff3f71df991f4460da1464c1a7c94d117c948f6c..91938842b95634424ec6704a5a88762ab4b125cd 100644 (file)
@@ -1,10 +1,30 @@
-// File: SALOME_ModuleCatalog_impl.hxx
-// Created: Tue June 28 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
-
+//  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ModuleCatalog_impl.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef MODULECATALOG_IMPL_H
 #define MODULECATALOG_IMPL_H
index 8900a9f9abd443b2048e5d5f0056f0f8eefe8478..44af77590f11cde21699c1ccba33ea0b0617bc59 100644 (file)
@@ -1,3 +1,27 @@
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : IDLparser.py
+#  Module : SALOME
+
 import string, sys, fpformat, re, os
 import xml.sax
 import pdb
index 6c9a11abf58f3222ebcdc59f5b468c4d2fe7d82a..9944da580a94afc1035da686c44dd3ccf7cba8fd 100644 (file)
@@ -1,15 +1,31 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : 24 apr 2002
-#  Author    : Marc Tajchman
-#  Project   : SALOME
-#  Copyright : CEA
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Marc Tajchman
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 4e919d804c9bf56ffaa93a32029fcf29491880ca..0e23a254a8006593a3a49a63d6eb84f1c8c83008 100644 (file)
@@ -1,10 +1,27 @@
-//=============================================================================
-// File      : AddComponent.idl
-// Created   : jeu jui 12 12:08:17 CEST 2001
-// Author    : 
-// Project   : SALOME
-// /export/home/CVS/SALOME_ROOT/idl/AddComponent.idl,v 1.2 2001/12/11 16:27:31 rahuel Exp
-//=============================================================================
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : AddComponent.idl
+//  Author : 
+//  Module : SALOME
 
 #ifndef _ADDCOMPONENT_IDL
 #define _ADDCOMPONENT_IDL
index b63efad9b672c39cdf199ad929bcb6ec09a65f5b..0465eff6665c2199d6a94b15a7497de7143e576e 100644 (file)
@@ -1,10 +1,27 @@
-//=============================================================================
-// File      : AddComponent.idl
-// Created   : jeu jui 12 12:08:17 CEST 2001
-// Author    : 
-// Project   : SALOME
-// /export/home/CVS/SALOME_ROOT/idl/AddComponent.idl,v 1.2 2001/12/11 16:27:31 rahuel Exp
-//=============================================================================
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : AddComponent.idl
+//  Author : 
+//  Module : SALOME
 
 #ifndef _ADDCOMPONENT_IDL
 #define _ADDCOMPONENT_IDL
index 25e5451ecad2b48aad45b59139e16f5d0475a2b5..6b659696ee96a30b44aecc736efb1eb53c563855 100755 (executable)
@@ -1,4 +1,28 @@
 #!/bin/bash
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : test1.sh
+#  Module : SALOME
 
 echo   "test1:
 
index 53825f7a2ce7af68ff7175e74c588f404b537ff0..e3e41193dce7393298a6a5f9d75096c870c67de5 100755 (executable)
@@ -1,4 +1,28 @@
 #!/bin/bash
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : test1b.sh
+#  Module : SALOME
 
 echo   "test6:
 
index 6ff0261d9d7c00cf1bbc0e9a643d41d5b1416443..d534140fb7886da10f932a5dc520d99951f2e635 100755 (executable)
@@ -1,4 +1,28 @@
 #!/bin/bash
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : test2.sh
+#  Module : SALOME
 
 echo   "test2:
 
index 15faa9581020c3286f48ce628ee03a4e86dd4ab3..3689eb1624efa41cfc4f4ccfa6cdb32b3db840be 100755 (executable)
@@ -1,4 +1,28 @@
 #!/bin/bash
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : test3.sh
+#  Module : SALOME
 
 echo   "test3:
 
index 4d8051a99668d87687c2821c06a5fdf0262dee50..d7a0bb83def79909b2de83cbbf7bd109ac08ba03 100755 (executable)
@@ -1,4 +1,28 @@
 #!/bin/bash
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : test4.sh
+#  Module : SALOME
 
 echo   "test4:
 
index 1e03700472d0fecfb65adef701f0d55974a5caa9..41b76c091589d47654d4b4b24d60444779677b7d 100755 (executable)
@@ -1,4 +1,28 @@
 #!/bin/bash
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : test5.sh
+#  Module : SALOME
 
 echo   "test4:
 
index 8a1202359f1bec5620a6b070a970a66a6d460543..4be86c5cceb9c2dec59c628e49280de6d7781ba7 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME NOTIFICATION_SWIG : wrapping of Notification sevices in order to be available in Python
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 6145ba02319a4ff25825510594d13a7befa25c28..d48342a7fc2692dfe53d3121841d9cb48d6b110d 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : NOTIFICATION.i
-//  Created   : 10 Juin 2002
-//  Author    : Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification
-//  Copyright : Open CASCADE
+//  SALOME NOTIFICATION_SWIG : wrapping of Notification sevices in order to be available in Python
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION.i
+//  Author : Francis KLOSS
+//  Module : SALOME
 
 %module libNOTIFICATION
 
index f7a8ea54e8f0340977b360a915bdbc7c11c79994..6e36d52a9c58bca6da59c1dd73e5002cd810b5b7 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-//  File      : NOTIFICATION_Swig.cxx
-//  Created   : 10 Juin 2002
-//  Author    : Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification Swig
-//  Copyright : Open CASCADE
+//  SALOME NOTIFICATION_SWIG : wrapping of Notification sevices in order to be available in Python
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION_Swig.cxx
+//  Author : Francis KLOSS
+//  Module : SALOME
 
+using namespace std;
 #include "NOTIFICATION_Swig.hxx"
 
 // Swig notification supplier
index f554d7eef0448bd40db71b4c53ede49fdc7f3ac5..f2361808c029f47256dadd6d298abf869e56b1db 100644 (file)
@@ -1,11 +1,31 @@
-//  File      : NOTIFICATION_Swig.hxx
-//  Created   : 10 Juin 2002
-//  Author    : Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification Swig
-//  Copyright : Open CASCADE
-using namespace std;
+//  SALOME NOTIFICATION_SWIG : wrapping of Notification sevices in order to be available in Python
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION_Swig.hxx
+//  Author : Francis KLOSS
+//  Module : SALOME
 
+using namespace std;
 #include "NOTIFICATION.hxx"
 
 class NOTIFICATION_Supplier_Swig {
index ab8cc086e1da014b63cbdf36f4631ba7034cc2b0..5aae16804baf8696d0901a53ad7a0ce248c95398 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME NamingService : wrapping NamingService services
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index b4a4ebb2ed6d7d07e31b6afc2eb52aba67b5aa52..c4865c196ba759a4d4f49d11eaed14b22d7cf323 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-// File: SALOME_NamingService.cxx
-// Created: Tue June 12 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME NamingService : wrapping NamingService services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_NamingService.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
-//----------------------------------------------------------------------
+using namespace std;
 #include "SALOME_NamingService.hxx"
 #include "ServiceUnreachable.hxx"
 #include <iostream>
@@ -698,6 +718,7 @@ vector<string> SALOME_NamingService::list_directory()
   CosNaming::Binding_var _binding ;
   CosNaming::NamingContext_var _ref_context = _current_context;
   _current_context->list(nb, _binding_list, _binding_iterator) ;
+  if (_binding_iterator->_is_nil()) return _list;
 
   while (_binding_iterator->next_one(_binding)) {
     CosNaming::Name _bindingName = _binding->binding_name;
index 72cbd47278aadf30c7599bf5a7674bf3cb838474..e22bf2d169a65f3fb79bbcb8e64e63b6d188ea5f 100644 (file)
@@ -1,14 +1,36 @@
-// File: SALOME_NamingService.hxx
-// Created: Tue June 12 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
+//  SALOME NamingService : wrapping NamingService services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_NamingService.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef SALOME_NAMINGSERVICE_H
 #define SALOME_NAMINGSERVICE_H
 
 #include "utilities.h"
+//#include <omniORB4/CORBA.h>
 #include <omniORB3/CORBA.h>
 #include <vector>
 #include <string>
index 67fe8623a89a437fed5b38a1999dab4dddbb177b..6e91d9b38e2a967789a9159d7a4b2bd35d76f822 100644 (file)
@@ -1,15 +1,34 @@
-//=============================================================================
-// File      : SALOME_NamingService.i
-// Created   : mer aoû 29 11:26:49 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME NamingService : wrapping NamingService services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_NamingService.i
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
-//%module SALOME_NamingService
 %{
 #include "SALOME_NamingService.hxx"
+//#include <omniORB4/CORBA.h>
 #include <omniORB3/CORBA.h>
 #include "ServiceUnreachable.hxx"
 %}
index 9b46f5c2f06c645e13cd8d9656706b2799985946..db2d7563314cce3fbed3d706f1c853dd3c7613c8 100644 (file)
@@ -1,13 +1,32 @@
 #! /usr/bin/env python
-
-#=============================================================================
-# File      : SALOME_NamingServicePy.py
-# Created   : lun oct  15 14:55 CEST 2001
-# Author    : Estelle Deville, CEA
-# Project   : SALOME
-# Copyright : CEA 2001
-# $Header$
-#=============================================================================
+#
+#  SALOME NamingService : wrapping NamingService services
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOME_NamingServicePy.py
+#  Author : Estelle Deville, CEA
+#  Module : SALOME
+#  $Header$
 
 import sys
 from omniORB import CORBA
index 32b459dffb3f7b6ea512a34b55529f926341a649..4b03e8d163474579e8d375ab797c9b18bb1daa40 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME NamingService : wrapping NamingService services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : ServiceUnreachable.cxx
+//  Module : SALOME
+
 using namespace std;
 #include "ServiceUnreachable.hxx"
 
index 10caf5edd249906ad659f6513be9324b5cdffd4f..2124c76fed75a7b5c455609742d264fdedd733bc 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : ServiceUnreachable.hxx
-// Created   : mer jun 27 16:20:39 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME NamingService : wrapping NamingService services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : ServiceUnreachable.hxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #if !defined ( SERVICEUNREACHABLE_H )
 #define SERVICEUNREACHABLE_H
index 508bf3435291986ab83c2e459bf9a30cdc87acbe..7956ed317fe0ec7af9c38f4aaf2041a6657822a6 100644 (file)
@@ -1,11 +1,28 @@
-// -*- Mode: C++; -*-
-
-// This file includes the four relevant .hh files and shorthands
-// for the 4 module names and the elts of the modules.
-
-// The shortdhands allow us to avoid the use of M::x to name elt
-// x of module M (we use M_x instead).  This is needed to deal with
-// compilers that do not support namespaces. 
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : CosNotifyShorthands.h
+//  Module : SALOME
 
 #ifndef _COS_NOTIFY_H_
 #define _COS_NOTIFY_H_
index fe1c271ffd6dc1a699f1ea64a971c8150fdb1385..42c5ac12e0934d9133995114dfa798b35922f716 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME Notification : wrapping of Notification service services
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 2923c4bf72ffea0d01430937dd740c2a3844a13a..1058d706edc3bfa88b84d54984ff83c7b79413e5 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-//  File      : NOTIFICATION.cxx
-//  Created   : 1 Avril 2002
-//  Author    : Laurent DADA / Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification General
-//  Copyright : CEA / Open CASCADE
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION.cxx
+//  Author : Laurent DADA / Francis KLOSS
+//  Module : SALOME
 
+using namespace std;
 #include "NOTIFICATION.hxx"
 
 using namespace std;
index 964f76c059856c5d750f7832b9e487583b6eedc0..4e8a08e069a6e3ea7818e15291b0b48a38d03cd7 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : NOTIFICATION.hxx
-//  Created   : 1 Avril 2002
-//  Author    : Laurent DADA / Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification
-//  Copyright : CEA / Open CASCADE
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION.hxx
+//  Author : Laurent DADA / Francis KLOSS
+//  Module : SALOME
 
 #ifndef NOTIFICATION_HXX
 #define NOTIFICATION_HXX
index 17e379910ac9c654fc2ecbffd8331ebba870b397..809d328eca5e8f4e3899f0b603229a6b357b4246 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-//  File      : NOTIFICATION_Consumer.cxx
-//  Created   : 1 Avril 2002
-//  Author    : Laurent DADA / Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification Consumer
-//  Copyright : CEA / Open CASCADE
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION_Consumer.cxx
+//  Author : Laurent DADA / Francis KLOSS
+//  Module : SALOME
 
+using namespace std;
 #include "NOTIFICATION.hxx"
 
 NOTIFICATION_Consumer::NOTIFICATION_Consumer():
index 3beec8add4f28dcdf1dbd4f2e172301a5b1c954f..26470597c0bb4611936d0b3c88e1a168745ba8ef 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : NOTIFICATION_Consumer.hxx
-//  Created   : 1 Avril 2002
-//  Author    : Laurent DADA / Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification Consumer
-//  Copyright : CEA / Open CASCADE
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION_Consumer.hxx
+//  Author : Laurent DADA / Francis KLOSS
+//  Module : SALOME
 
 #ifndef NOTIFICATION_Consumer_HXX
 #define NOTIFICATION_Consumer_HXX
index 0171b3e3a86691093d86114970ba03df1f93eb38..b572539a449b2c751c4c38a0ef0ee34ceb5421ca 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-//  File      : NOTIFICATION_Supplier.cxx
-//  Created   : 1 Avril 2002
-//  Author    : Laurent DADA / Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification Supplier
-//  Copyright : CEA / Open CASCADE
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION_Supplier.cxx
+//  Author : Laurent DADA / Francis KLOSS
+//  Module : SALOME
 
+using namespace std;
 #include "NOTIFICATION.hxx"
 
 long NOTIFICATION_Supplier::_stamp = 0;
index a35b8179dc41873d6668427c0c44e58d117a712b..77f44d07bcfdb03d49e6a3aaf0b335cfdede9e64 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : NOTIFICATION_Supplier.hxx
-//  Created   : 1 Avril 2002
-//  Author    : Laurent DADA / Francis KLOSS
-//  Project   : SALOME
-//  Module    : Notification Supplier
-//  Copyright : CEA / Open CASCADE
+//  SALOME Notification : wrapping of Notification service services
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : NOTIFICATION_Supplier.hxx
+//  Author : Laurent DADA / Francis KLOSS
+//  Module : SALOME
 
 #ifndef NOTIFICATION_Supplier_HXX
 #define NOTIFICATION_Supplier_HXX
index 8e96f0032396f40ece6d79765235cfbe37d9426a..98dede911c8370b7e48f5428ca98825d8467d253 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_AISObject.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_AISObject_HeaderFile
 #define _Handle_SALOME_AISObject_HeaderFile
index 9d6a94128a6745a5f55d2b8221f4ffe44bc906ea..65a1bc6d931bb2a838fe7df53870cb4d1be2d3e8 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_AISShape.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_AISShape_HeaderFile
 #define _Handle_SALOME_AISShape_HeaderFile
index 838d57417bde5e5933643607c98072986531ead9..767dfec3f5f51687e3ff952fd159e5e4ffe9ee4e 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_InteractiveObject.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
 #define _Handle_SALOME_InteractiveObject_HeaderFile
index 841fd6fb0a8fa817e4cac17e202b2edc92465baa..45d8270d7c53c053f68ae7fcf3f34f1e063073e8 100644 (file)
@@ -1,6 +1,31 @@
-# source path
+#  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -10,16 +35,19 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 EXPORT_HEADERS = SALOME_InteractiveObject.hxx \
                 Handle_SALOME_InteractiveObject.hxx \
                 SALOME_Actor.h \
+                SALOME_Transform.h \
                 SALOME_AISShape.hxx \
                 Handle_SALOME_AISShape.hxx \
                 SALOME_AISObject.hxx \
-                Handle_SALOME_AISObject.hxx
+                Handle_SALOME_AISObject.hxx \
+                VTKViewer_Common.h
 
 # Libraries targets
 
 LIB = libSalomeObject.la
 LIB_SRC =       SALOME_InteractiveObject.cxx \
                 SALOME_Actor.cxx \
+                SALOME_Transform.cxx \
                 SALOME_AISShape.cxx\
                 SALOME_AISObject.cxx
 
index d1c9d799b624976afc0076299b3460a13f0cd6e4..2d34b31a2095bed8eb89dbc7f1ccbb53ff34981b 100644 (file)
@@ -1,10 +1,30 @@
-using namespace std;
-//  File      : SALOME_AISObject.hxx
-//  Created   : Thu Feb 21 14:37:54 CET 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOME
-//  Copyright : Open CASCADE 2002
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_AISObject.hxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOME_AISObject.ixx"
index d19376bc820f0a1ad9dec60f1b2e702f8af573d2..148e1574b986d07181e57dd4d91913385f5b5ec8 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_AISObject.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_AISObject_HeaderFile
 #define _SALOME_AISObject_HeaderFile
 
index 1dab9124a849587497507fb7d34ecb955a5a9aa8..e1fef4c888996e1f7455d653e845b293de60f274 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_AISObject.ixx
+//  Module : SALOME
+
 #include "SALOME_AISObject.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 5687948225bb701b47b6eac3f1dd541c4feb36f6..7fd42edaf642f833aebe035e93b83c969ae1a3e1 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_AISObject.jxx
+//  Module : SALOME
+
 #ifndef _SALOME_InteractiveObject_HeaderFile
 #include "SALOME_InteractiveObject.hxx"
 #endif
index fe707e5ddb105028f619f186b0d6b7497eb620d8..117738ffac3948e23079e47a8390b706dd251614 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOME_AISShape.hxx
-//  Created   : Thu Feb 21 14:37:54 CET 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOME
-//  Copyright : Open CASCADE 2002
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_AISShape.hxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOME_AISShape.ixx"
 
 SALOME_AISShape::SALOME_AISShape(const TopoDS_Shape& shape): AIS_Shape(shape) {
index bcaf964676d6c664a289eb4ae3a69367d09e72ae..137e0d9b9e0bd1e289cc05196e897da769c62993 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_AISShape.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_AISShape_HeaderFile
 #define _SALOME_AISShape_HeaderFile
 
index 10bd7e052ef71b860abbec7956a83fda3e6e01e0..37012c36e4b6a0f4dd789e9cb35d50c9bca2e515 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_AISShape.ixx
+//  Module : SALOME
+
 #include "SALOME_AISShape.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 2b25db37ae532c8c73c7c5f3e5b92a50bf36a0f7..6ac28f17bbe3efe9728f5ae73bccd1971ba5734b 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_AISShape.jxx
+//  Module : SALOME
+
 #ifndef _SALOME_InteractiveObject_HeaderFile
 #include "SALOME_InteractiveObject.hxx"
 #endif
index 2d84787bc18beac552130d2bd1170edfda9b2760..38f46f8be3b9b39fb10ccd603151919f242efafb 100644 (file)
@@ -1,32 +1,48 @@
-using namespace std;
-//  File      : SALOME_Actor.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OBJECT
-//  Copyright : Open CASCADE 2002
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Actor.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class SALOME_Actor SALOME_Actor.h
   \brief Abstract class of SALOME Objects in VTK.
 */
 
 #include "SALOME_Actor.h"
-
 // SALOME Includes
 #include "utilities.h"
 
 // VTK Includes
 #include <vtkObjectFactory.h>
-#include <vtkMergePoints.h>
-
-
-void SALOME_Actor::ShallowCopy(vtkProp *prop)
-{
-  // Now do superclass
-  this->vtkActor::ShallowCopy(prop);
-}
+#include <vtkDataSetMapper.h>
+#include <vtkPolyDataMapper.h>
+#include <vtkGeometryFilter.h>
+#include <vtkTransformPolyDataFilter.h>
 
 void SALOME_Actor::Render(vtkRenderer *ren, vtkMapper *Mapper )
 {
@@ -106,39 +122,54 @@ void SALOME_Actor::ReleaseGraphicsResources(vtkWindow *renWin)
   this->Mapper->ReleaseGraphicsResources(renWin);
 }
 
-// void SALOME_Actor::ApplyScaling ( vtkMapper*  newMapper, bool recover = false )
-// {
-//   if ( recover && m_Isometric )
-//     {
-//       SetMapper ( m_Isometric );
-//       m_Isometric = NULL;
-//     }
-//   else
-//     if ( m_Isometric == NULL )
-//       {
-//      m_Isometric = GetMapper();
-//      SetMapper(newMapper);
-//       }
-// }
-
-void SALOME_Actor::SetMapper ( vtkMapper*  newMapper )
-{
-  if ( m_Initial == NULL && Mapper != NULL )
-    {
-      m_Initial = GetMapper();
-    }
-  vtkLODActor::SetMapper(newMapper);
+void SALOME_Actor::AddToRender(vtkRenderer* theRenderer){
+  theRenderer->AddActor(this);
 }
 
-SALOME_Actor::SALOME_Actor()
-{
-  m_Initial = NULL;
+void SALOME_Actor::RemoveFromRender(vtkRenderer* theRenderer){
+  theRenderer->RemoveActor(this);
+}
+
+vtkPolyData* SALOME_Actor::GetPolyDataInput(){
+  return myPassFilter[3]->GetPolyDataOutput();
+}
+
+void SALOME_Actor::SetMapper(vtkMapper* theMapper){
+  if(theMapper){
+    myPassFilter[0]->SetInput(theMapper->GetInput());
+    myPassFilter[0]->Update();
+    myPassFilter[1]->SetInput(myPassFilter[0]->GetPolyDataOutput());
+    myPassFilter[1]->Update();
+    myTransformFilter->SetInput(myPassFilter[1]->GetPolyDataOutput());
+    myPassFilter[2]->SetInput(myTransformFilter->GetOutput());
+    myPassFilter[2]->Update();
+    myPassFilter[3]->SetInput(myPassFilter[2]->GetPolyDataOutput());
+    myPassFilter[3]->Update();
+    if(vtkDataSetMapper* aMapper = dynamic_cast<vtkDataSetMapper*>(theMapper))
+      aMapper->SetInput(myPassFilter[3]->GetOutput());
+    else if(vtkPolyDataMapper* aMapper = dynamic_cast<vtkPolyDataMapper*>(theMapper))
+      aMapper->SetInput(myPassFilter[3]->GetPolyDataOutput());
+  }
+  vtkLODActor::SetMapper(theMapper);
+}
+
+void SALOME_Actor::SetTransform(SALOME_Transform* theTransform){
+  myTransformFilter->SetTransform(theTransform);
+  myTransformFilter->Modified();
+}
+
+SALOME_Actor::SALOME_Actor(){
   PreviewProperty = NULL;
+  myTransformFilter = SALOME_TransformFilter::New();
+  myPassFilter.push_back(SALOME_PassThroughFilter::New());
+  myPassFilter.push_back(SALOME_PassThroughFilter::New());
+  myPassFilter.push_back(SALOME_PassThroughFilter::New());
+  myPassFilter.push_back(SALOME_PassThroughFilter::New());
 }
-SALOME_Actor::~SALOME_Actor()
-{
-  if ( m_Initial != NULL )
-     m_Initial->Delete();
-  if ( PreviewProperty != NULL )
-     PreviewProperty->Delete();
+
+SALOME_Actor::~SALOME_Actor(){
+  SetPreviewProperty(NULL);
+  for(int i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
+    if(myPassFilter[i] != NULL) 
+      myPassFilter[i]->Delete();
 }
index 47971b53d1a3eb5079ff60f9dd4adf2915b4b874..0a994e6160239a947201ed1cf227e3fd044cff8e 100644 (file)
@@ -1,23 +1,43 @@
-//  File      : SALOME_Actor.h
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOME
-//  Copyright : Open CASCADE 2002
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Actor.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOME_ACTOR_H
 #define SALOME_ACTOR_H
 
 // SALOME Includes
+#include "SALOME_Transform.h"
+#include "SALOME_InteractiveObject.hxx"
 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
-#include <Handle_SALOME_InteractiveObject.hxx>
+#include "Handle_SALOME_InteractiveObject.hxx"
 #endif
-#include "SALOME_InteractiveObject.hxx"
 
-//VTK Includes
-#include <vtkLODActor.h>
+#include <vector.h>
+#include "VTKViewer_Common.h"
 
 class SALOME_Actor : public vtkLODActor 
 {
@@ -45,19 +65,15 @@ class SALOME_Actor : public vtkLODActor
   // resources to release.
   virtual void ReleaseGraphicsResources(vtkWindow *);
 
-  virtual void ShallowCopy(vtkProp *prop);
-
   virtual Standard_Boolean hasIO() { return !myIO.IsNull(); }
   virtual Handle_SALOME_InteractiveObject getIO() { return myIO; } 
-  void setIO(const Handle(SALOME_InteractiveObject)& io) { myIO = io; }
+  virtual void setIO(const Handle(SALOME_InteractiveObject)& io) { myIO = io; }
 
   virtual Standard_CString getName()     { return myName; }
-  virtual void setName(Standard_CString aName)
-    {
-      myName = aName;
-      if ( hasIO() )
-       myIO->setName(aName);
-    }
+  virtual void setName(Standard_CString aName){
+    myName = aName;
+    if(hasIO())        myIO->setName(aName);
+  }
 
   virtual int getDisplayMode() { return myDisplayMode; }
   virtual void setDisplayMode(int mode) { myDisplayMode = mode; }
@@ -72,16 +88,19 @@ class SALOME_Actor : public vtkLODActor
   virtual void SetColor(float r,float g,float b) {};
   virtual void GetColor(float& r,float& g,float& b) {};
 
-  virtual void SetPreviewProperty(vtkProperty* Prop) { PreviewProperty = Prop; }
+  vtkSetObjectMacro(PreviewProperty,vtkProperty);
 
   virtual void SetPreSelected(Standard_Boolean presel = Standard_False)   { ispreselected = presel; }
 
   // Used to obtain all dependent actors
   virtual void GetChildActors(vtkActorCollection*) {};
   
-  //virtual void ApplyScaling ( vtkMapper*  newMapper, bool recover = false ); 
-  virtual void SetMapper ( vtkMapper*  newMapper ); 
-  virtual vtkMapper* GetInitialMapper() { return m_Initial; } 
+  virtual void AddToRender(vtkRenderer* theRenderer); 
+  virtual void RemoveFromRender(vtkRenderer* theRenderer);
+
+  virtual vtkPolyData* GetPolyDataInput(); 
+  virtual void SetMapper(vtkMapper* theMapper); 
+  virtual void SetTransform(SALOME_Transform* theTransform); 
 
  protected:
   vtkProperty         *PreviewProperty;
@@ -94,6 +113,8 @@ class SALOME_Actor : public vtkLODActor
   Standard_Boolean    ishighlighted;
   int myDisplayMode;
 
-  vtkMapper*   m_Initial;
+  SALOME_Transform *myTransform;
+  std::vector<SALOME_PassThroughFilter*> myPassFilter;
+  SALOME_TransformFilter *myTransformFilter;
 };
 #endif // SALOME_ACTOR_H
index 252a21a1a4f5e8efedc6367cadb969ec5f463bfa..36a977af643c4f24f0f3435dac86f915884c30db 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOME_InteractiveObject.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOME
-//  Copyright : Open CASCADE 2002
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_InteractiveObject.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class SALOME_InteractiveObject SALOME_InteractiveObject.hxx
   \brief ...
index e2c3544fc94add130ad159bf17f4fbb8d4aef0b6..4c22120c31de15e1054e8d74ccb602d51f8336af 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_InteractiveObject.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_InteractiveObject_HeaderFile
 #define _SALOME_InteractiveObject_HeaderFile
 
index db85d8332c44280d5190b0e02bac0d006041f1a8..39be2411a5181252b88165b40691724521f4def4 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_InteractiveObject.ixx
+//  Module : SALOME
+
 #include "SALOME_InteractiveObject.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 4d3dd36bb9a3d30c96c97db8d95f41d03b761fa2..19aba4c63f1a70e7d656db61adb693079dd2fab7 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_InteractiveObject.jxx
+//  Module : SALOME
+
 #ifndef _SALOME_InteractiveObject_HeaderFile
 #include "SALOME_InteractiveObject.hxx"
 #endif
diff --git a/src/OBJECT/SALOME_Transform.cxx b/src/OBJECT/SALOME_Transform.cxx
new file mode 100644 (file)
index 0000000..d55c5fb
--- /dev/null
@@ -0,0 +1,123 @@
+// File:       SALOME_Transform.cxx
+// Created:    Wed Jun  4 09:46:59 2003
+// Author:     Alexey PETROV
+//             <apo@ivanox.nnov.matra-dtv.fr>
+
+
+#include "SALOME_Transform.h"
+#include "VTKViewer_Common.h"
+#include <vtkObjectFactory.h>
+#include <vtkGeometryFilter.h>
+#include <vtkMatrix4x4.h>
+using namespace std;
+
+//=======================================================================
+
+SALOME_Transform* SALOME_Transform::New(){
+  vtkObject* ret = vtkObjectFactory::CreateInstance("SALOME_Transform");
+  if(ret) return (SALOME_Transform*)ret;
+  return new SALOME_Transform;
+}
+
+void SALOME_Transform::SetScale(float theScaleX, float theScaleY, float theScaleZ){ 
+  double aMatrix[16] = {theScaleX,0,0,0, 
+                        0,theScaleY,0,0, 
+                        0,0,theScaleZ,0, 
+                        0,0,0,1.0000000};
+  vtkTransform::SetMatrix(aMatrix);
+  //vtkTransform::Pop();
+  //vtkTransform::Scale(theScale);
+}
+
+int SALOME_Transform::IsIdentity(){ 
+  float* aScale = GetScale();
+  return (aScale[0] == 1.0 && aScale[1] == 1.0 && aScale[2] == 1.0);
+}
+
+//=======================================================================
+
+SALOME_TransformFilter* SALOME_TransformFilter::New(){
+  vtkObject* ret = vtkObjectFactory::CreateInstance("SALOME_TransformFilter");
+  if(ret) return (SALOME_TransformFilter*)ret;
+  return new SALOME_TransformFilter;
+}
+
+void SALOME_TransformFilter::Execute(){
+  vtkPoints *inPts;
+  vtkPoints *newPts;
+  int numPts, numCells;
+  vtkPointSet *input = this->GetInput();
+  vtkPointSet *output = this->GetOutput();
+  vtkPointData *pd=input->GetPointData(), *outPD=output->GetPointData();
+  vtkCellData *cd=input->GetCellData(), *outCD=output->GetCellData();
+  output->CopyStructure( input );
+  int anIdentity = 0;
+  if(SALOME_Transform* aTransform = dynamic_cast<SALOME_Transform*>(this->Transform))
+    anIdentity = aTransform->IsIdentity();
+  if(!anIdentity && this->Transform != NULL){
+    inPts = input->GetPoints();
+    if(!inPts){
+      vtkErrorMacro(<<"No input data");
+      return;
+    }
+    numPts = inPts->GetNumberOfPoints();
+    numCells = input->GetNumberOfCells();
+    newPts = vtkPoints::New();
+    newPts->Allocate(numPts);
+    this->UpdateProgress(.2);
+    this->Transform->TransformPoints(inPts,newPts);
+    this->UpdateProgress(.8);
+    output->SetPoints(newPts);
+    newPts->Delete();
+  }
+  outPD->PassData(pd);
+  outCD->PassData(cd);
+}
+
+//=======================================================================
+
+SALOME_PassThroughFilter* SALOME_PassThroughFilter::New(){
+  vtkObject* ret = vtkObjectFactory::CreateInstance("SALOME_PassThroughFilter");
+  if(ret) return (SALOME_PassThroughFilter*)ret;
+  return new SALOME_PassThroughFilter;
+}
+
+SALOME_PassThroughFilter::SALOME_PassThroughFilter(){
+  myGeomFilter = vtkGeometryFilter::New();
+}
+
+SALOME_PassThroughFilter::~SALOME_PassThroughFilter(){
+  myGeomFilter->Delete();
+}
+
+void SALOME_PassThroughFilter::Execute(){
+  vtkDataSet *input = static_cast<vtkDataSet*>(this->GetInput());
+  vtkDataSet *output = static_cast<vtkDataSet*>(this->GetOutput());
+  output->CopyStructure( input );
+  output->GetPointData()->PassData( input->GetPointData() );
+  output->GetCellData()->PassData( input->GetCellData() );
+}
+
+void SALOME_PassThroughFilter::SetInput(vtkDataSet *input){
+  myGeomFilter->SetInput(input);
+  vtkDataSet *oldInput = this->GetInput();
+  if(oldInput != NULL)
+    if(input == NULL || oldInput->GetDataObjectType() != input->GetDataObjectType()){
+      vtkWarningMacro("Changing input type.  Deleting output");
+      this->SetOutput(NULL);
+    }
+  if (input != NULL && this->vtkSource::GetOutput(0) == NULL){
+    this->vtkSource::SetNthOutput(0, input->NewInstance());
+    this->Outputs[0]->ReleaseData();
+    this->Outputs[0]->Delete();
+  }
+  this->vtkProcessObject::SetNthInput(0, input);
+}
+
+vtkPolyData *SALOME_PassThroughFilter::GetPolyDataOutput() {
+  vtkDataSet *ds = this->GetOutput();
+  if(!ds) return NULL;
+  if(ds->GetDataObjectType() == VTK_POLY_DATA) return (vtkPolyData *)ds;
+  myGeomFilter->SetInput(this->GetOutput());
+  return myGeomFilter->GetOutput();
+}
diff --git a/src/OBJECT/SALOME_Transform.h b/src/OBJECT/SALOME_Transform.h
new file mode 100644 (file)
index 0000000..65fa0b4
--- /dev/null
@@ -0,0 +1,66 @@
+// File:       SALOME_Transformation.hxx
+// Created:    Wed Jun  4 09:39:09 2003
+// Author:     Alexey PETROV
+//             <apo@ivanox.nnov.matra-dtv.fr>
+
+
+#ifndef SALOME_Transform_HeaderFile
+#define SALOME_Transform_HeaderFile
+
+#include <math.h>
+
+#include <vtkTransform.h>
+#include <vtkTransformFilter.h>
+#include <vtkDataSetToDataSetFilter.h>
+class vtkGeometryFilter;
+
+//=======================================================================
+
+class VTK_EXPORT SALOME_Transform : public vtkTransform{
+ public:
+  static SALOME_Transform *New();
+  vtkTypeMacro(SALOME_Transform,vtkTransform);
+  void SetScale(float theScaleX, float theScaleY, float theScaleZ);
+  int IsIdentity();
+protected:
+  SALOME_Transform() {}
+  ~SALOME_Transform() {}
+  SALOME_Transform(const SALOME_Transform&) {}
+  void operator=(const SALOME_Transform&) {}
+};
+
+//=======================================================================
+
+class VTK_EXPORT SALOME_TransformFilter : public vtkTransformFilter{
+ public:
+  static SALOME_TransformFilter *New();
+  vtkTypeMacro(SALOME_TransformFilter,vtkTransformFilter);
+protected:
+  SALOME_TransformFilter() {}
+  ~SALOME_TransformFilter() {}
+  SALOME_TransformFilter(const SALOME_TransformFilter&) {}
+  void operator=(const SALOME_TransformFilter&) {}
+  void Execute();
+};
+
+//=======================================================================
+
+class SALOME_PassThroughFilter : public vtkDataSetToDataSetFilter{
+ public:
+  vtkTypeMacro(SALOME_PassThroughFilter,vtkDataSetToDataSetFilter);
+  static SALOME_PassThroughFilter *New();
+  void SetInput(vtkDataSet *input);
+  vtkPolyData *GetPolyDataOutput();
+ protected:
+  SALOME_PassThroughFilter();
+  virtual ~SALOME_PassThroughFilter();
+  void Execute();
+  vtkGeometryFilter* myGeomFilter;
+ private:
+  SALOME_PassThroughFilter(const SALOME_PassThroughFilter&);  // Not implemented.
+  void operator=(const SALOME_PassThroughFilter&);  // Not implemented.
+};
+
+//=======================================================================
+
+#endif
diff --git a/src/OBJECT/VTKViewer_Common.h b/src/OBJECT/VTKViewer_Common.h
new file mode 100755 (executable)
index 0000000..6f6eb4b
--- /dev/null
@@ -0,0 +1,70 @@
+//  File      : VTKViewer_Common.h
+//  Created   : Wed May 21 11:36:07 2003
+//  Author    : Michael PONIKAROV
+//  Project   : SALOME
+//  Module    : VTKViewer
+//  Copyright : Open CASCADE 2002
+//  $Header$
+
+#ifndef __VTKViewer_Common_h
+#define __VTKViewer_Common_h
+
+// common vtk include files
+#include <vtkLODActor.h>
+#include <vtkProperty.h>
+#include <vtkTexture.h>
+#include <vtkMapper.h>
+#include <vtkObjectFactory.h>
+#include <vtkPolyDataMapper.h>
+#include <vtkPolyDataNormals.h>
+#include <vtkMath.h>
+#include <vtkPolyData.h>
+#include <vtkTransform.h>
+#include <vtkRenderer.h>
+#include <vtkMatrix4x4.h>
+#include <vtkCamera.h>
+#include <vtkCell.h>
+#include <vtkCommand.h>
+#include <vtkAssemblyNode.h>
+#include <vtkPicker.h>
+#include <vtkPointPicker.h>
+#include <vtkCellPicker.h>
+#include <vtkLine.h> 
+#include <vtkUnstructuredGrid.h> 
+#include <vtkExtractEdges.h>
+#include <vtkDataSetCollection.h>
+#include <vtkRenderWindowInteractor.h>
+#include <vtkVolumeMapper.h>
+#include <vtkWarpTransform.h>
+#include <vtkVersion.h>
+#include <vtkTextSource.h>
+#include <vtkConeSource.h>
+#include <vtkTextMapper.h>
+#include <vtkMapper2D.h>
+#include <vtkActor2D.h>
+#include <vtkWindowToImageFilter.h>
+#include <vtkTIFFWriter.h>
+#include <vtkCellArray.h>
+#include <vtkTransformPolyDataFilter.h>
+#include <vtkDataSetMapper.h> 
+#include <vtkAxes.h>
+#include <vtkActor.h>
+#include <vtkInteractorStyle.h>
+#include <vtkActor2DCollection.h>
+//#include <vtkScalarBarActor.h>
+#include <vtkShrinkFilter.h>
+#include <vtkMaskPoints.h>
+#include <vtkCellCenters.h>
+#include <vtkSelectVisiblePoints.h>
+#include <vtkPointData.h>
+#include <vtkLabeledDataMapper.h>
+#include <vtkProperty2D.h>
+#include <vtkGeometryFilter.h>
+#include <vtkCellData.h>
+#include <vtkLookupTable.h>
+#include <vtkGlyphSource2D.h>
+#include <vtkFloatArray.h>
+#include <vtkWindow.h>
+#include <vtkTextProperty.h>
+
+#endif
index f287b3f0e66a3e1916de3edb6dc1a06fd568c67a..8295107ee4639fe6ae0de5b1d136830776548544 100644 (file)
@@ -1,6 +1,31 @@
-# source path
+#  SALOME OCCViewer : build OCC Viewer into Salome desktop
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index bbce76c569bfac3bc6abfcfb5cc9fd14cb9da128..d98bb2b1f7adaae19fa0b25e8320463abcb3e093 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : OCCViewer.cxx
-//  Created   : Wed Mar 20 11:56:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "OCCViewer.h"
 #include "OCCViewer_ViewFrame.h"
 
index a72d97a196616935ddd22db0f17de9edef688bc8..f936a55e798b12c3166cf3486104c65850ad2fd8 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : OCCViewer.h
-//  Created   : Wed Mar 20 11:56:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef OCCViewer_HeaderFile
index a74e00636b8d6790b16204b83fa095afdf44e2e3..6310f51c6c919748a3b3b0285d33296f2e49fe02 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_AISSelector.cxx
-//  Created   : Wed Mar 20 10:58:50 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_AISSelector.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class OCCViewer_AISSelector OCCViewer_AISSelector.h
   \brief Selector for AIS interactive context.
index d1b17c15be1f991e59bf223e9c20fca973e3f875..e51a7bca5bed79962389e809443eb8be090dabf6 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : OCCViewer_AISSelector.h
-//  Created   : Wed Mar 20 10:58:22 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_AISSelector.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef OCCViewer_AISSELECTOR_H
 #define OCCViewer_AISSELECTOR_H
 
index 7b3d9480b194a234a77bcbb476c60f94497e6220..e037b6b35281027e3cbc7932752d048db12035e6 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_Selector.cxx
-//  Created   : Wed Mar 20 10:57:47 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_Selector.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 /*!
   \class OCCViewer_Selector OCCViewer_Selector.h
   \brief Base class for object selection in Open CASCADE Viewer.
index 3322d75ac66935c01c1d59bf5bf97a847aae2927..96c9600343c4109de3bbb3e07e8d87d8a784cf7f 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : OCCViewer_Selector.h
-//  Created   : Wed Mar 20 10:56:53 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_Selector.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef OCCViewer_SELECTOR_H
index be23a846e884ba53615eb0c45a5dd51fba457b37..e0ed072a642204b10ea07161e9203e582ec69473 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_VService.cxx
-//  Created   : Wed Mar 20 10:36:38 2002
-//  Author    : GG, FMN, Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_VService.cxx
+//  Author : GG, FMN, Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "OCCViewer_VService.h"
 
 // Open CASCADE Includes
index 5c133d8d1b73469383b4443fbb38b1ac48ecd365..6ee738f24054ed01760ff5888c0fa39211db3893 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_VService.h
+//  Module : SALOME
 
 #ifndef _OCCViewer_VService_HeaderFile
 #define _OCCViewer_VService_HeaderFile
index ac6aca857369f9893b8906192daca0b02edc2211..c15abf390ed31448c5e9776ca63b95e4f6240079 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_ViewFrame.cxx
-//  Created   : Wed Mar 20 10:50:22 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_ViewFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "OCCViewer_ViewFrame.h"
 #include "OCCViewer_Viewer3d.h"
 #include "OCCViewer_ViewPort.h"
index 6c156bc6dddac7f8fce7fd8b7c3428aac3cb1ded..918c9e117ce42a6d723b3d1475903b26bce00eae 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : OCCViewer_ViewFrame.h
-//  Created   : Wed Mar 20 10:53:24 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_ViewFrame.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef OCCViewer_ViewFrame_H
index b03f3c18bc83baa8e9b4376d883a87a723e65fa4..1d6d410baba945ae175913993824eed26d61cfbc 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_ViewPort.cxx
-//  Created   : Wed Mar 20 10:44:24 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_ViewPort.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include <stdlib.h>
 
 #if !defined WNT
index 77f8bb136a6e30521a22d133335348c767ffa51e..7b7a6552c8147ec079ed9fd45f9e25ba50cefe44 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : OCCViewer_ViewPort.h
-//  Created   : Wed Mar 20 10:41:50 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_ViewPort.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef OCCViewer_ViewPort_H
 #define OCCViewer_ViewPort_H
 
index c01680b6c99992ec8e0485c08761c5debb955f1f..88601ea0bfc73307fdd147b6d4ccf9886589ac3c 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_ViewPort3d.cxx
-//  Created   : Wed Mar 20 10:47:09 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_ViewPort3d.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "OCCViewer_ViewPort3d.h"
 
 #include "QAD.h"
index 93b0f0c5a5ba34328f0e8c1bb5ffb64307af9a97..446cb65cad2dfa0e5117b8381cd38b57d921f0f1 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : OCCViewer_ViewPort3d.h
-//  Created   : Wed Mar 20 10:48:51 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_ViewPort3d.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef OCCViewer_ViewPort3d_H
index 6bcf15e54b5e0dbb29d9f5f7db0797be3959d2b5..8d4a1331aef7589de27f25b87b090713a99df4f6 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : OCCViewer_Viewer3d.cxx
-//  Created   : Wed Mar 20 10:54:35 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_Viewer3d.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 /*!
   \class OCCViewer_Viewer3d OCCViewer_Viewer3d.h
   \brief Open CASCADE Viewer 3D with viewport 3D and selection.
index ca33a84fb4a32433e68faabd90c492159d9447bb..9cfed35a2aff35b4246000b29cb230516819adc6 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : OCCViewer_Viewer3d.h
-//  Created   : Wed Mar 20 11:00:02 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME OCCViewer : build OCC Viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OCCViewer_Viewer3d.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef OCCVIEWER_VIEWER3D_H
 #define OCCVIEWER_VIEWER3D_H
 
index c57f9bac21f86ef034064063e1bd00fc35911800..6fa7f5dd4b7d343f9bf7064d97109036691f75b8 100644 (file)
@@ -1,7 +1,31 @@
+#  SALOME PatchQt : patch for Qt
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -9,18 +33,22 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 
 EXPORT_HEADERS = \
        qsplitterP.h \
-       qworkspaceP.h
+       qworkspaceP.h \
+       qactionP.h
 
 # Libraries targets
 
 LIB = libqsplitterP.la 
-LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx qworkspaceP.cxx qworkspaceP_moc.cxx
+LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx qworkspaceP.cxx qworkspaceP_moc.cxx qactionP.cxx qactionP_moc.cxx
 qsplitterP_moc.cxx: $(inc_builddir)/qsplitterP.h
        $(MOC) $(inc_builddir)/qsplitterP.h -o qsplitterP_moc.cxx
 
 qworkspaceP_moc.cxx: $(inc_builddir)/qworkspaceP.h
        $(MOC) $(inc_builddir)/qworkspaceP.h -o qworkspaceP_moc.cxx
 
+qactionP_moc.cxx: $(inc_builddir)/qactionP.h
+       $(MOC) $(inc_builddir)/qactionP.h -o qactionP_moc.cxx
+
 CPPFLAGS+=$(QT_INCLUDES) -I${QTDIR}/src/kernel -I$(QTDIR)/mkspecs/linux-g++
 CXXFLAGS+=
 LDFLAGS+=$(QT_MT_LIBS) 
diff --git a/src/PatchQt/qactionP.cxx b/src/PatchQt/qactionP.cxx
new file mode 100644 (file)
index 0000000..4779d37
--- /dev/null
@@ -0,0 +1,1748 @@
+//  SALOME PatchQt : patch for Qt
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : qactionP.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
+//  $Header$
+
+#include "qactionP.h"
+
+#ifndef QT_NO_ACTION
+
+#include <qtoolbar.h>
+#include <qptrlist.h>
+#include <qpopupmenu.h>
+#include <qaccel.h>
+#include <qtoolbutton.h>
+#include <qcombobox.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include <qstatusbar.h>
+#include <qobjectlist.h>
+
+
+/*!
+  \class QActionP qaction.h
+  \ingroup basic
+  \ingroup application
+  \mainclass
+  \brief The QActionP class provides an abstract user interface
+  action that can appear both in menus and tool bars.
+
+  In GUI applications many commands can be invoked via a menu option, a
+  toolbar button and a keyboard accelerator. Since the same action must
+  be performed regardless of how the action was invoked, and since the
+  menu and toolbar should be kept in sync, it is useful to represent a
+  command as an \e action. An action can be added to a menu and a
+  toolbar and will automatically keep them in sync. For example, if the
+  user presses a Bold toolbar button the Bold menu item will
+  automatically be checked.
+
+  A QActionP may contain an icon, a menu text, an accelerator, a status
+  text, a whats this text and a tool tip. Most of these can be set in
+  the constructor. They can also be set independently with setIconSet(),
+  setText(), setMenuText(), setToolTip(), setStatusTip(), setWhatsThis()
+  and setAccel(), respectively.
+
+  An action may be a toggle action e.g. a Bold toolbar button, or a
+  command action, e.g. 'Open File' to invoke an open file dialog.
+  Toggle actions emit the toggled() signal when their state changes.
+  Both command and toggle actions emit the activated() signal when they
+  are invoked. Use setToggleAction() to set an action's toggled status.
+  To see if an action is a toggle action use isToggleAction(). A toggle
+  action may be "on", isOn() returns TRUE, or "off", isOn() returns
+  FALSE.
+
+  Actions are added to widgets (menus or toolbars) using addTo(), and
+  removed using removeFrom().
+
+  Once a QActionP has been created it should be added to the relevant
+  menu and toolbar and then connected to the slot which will perform
+  the action. For example:
+
+  \quotefile action/application.cpp
+  \skipto Save File
+  \printuntil connect
+
+  We create a "File Save" action with a menu text of "&Save" and
+  \e{Ctrl+S} as the keyboard accelerator. We connect the
+  fileSaveAction's activated() signal to our own save() slot. Note that at
+  this point there is no menu or toolbar action, we'll add them next:
+
+  \skipto new QToolBar
+  \printline
+  \skipto fileSaveAction->addTo
+  \printline
+  \skipto new QPopupMenu
+  \printuntil insertItem
+  \skipto fileSaveAction->addTo
+  \printline
+
+  We create a toolbar and add our fileSaveAction to it. Similarly we
+  create a menu, add a top-level menu item, and add our
+  fileSaveAction.
+
+  (See the \link simple-application-action.html Simple Application
+  Walkthrough featuring QActionP \endlink for a detailed example.)
+
+  We recommend that actions are created as children of the window that
+  they are used in. In most cases actions will be children of the
+  application's main window.
+
+  To prevent recursion, don't create an action as a child of a widget
+  that the action is later added to.
+*/
+
+
+class QActionPPrivate
+{
+public:
+    QActionPPrivate();
+    ~QActionPPrivate();
+    QIconSet *iconset;
+    QString text;
+    QString menutext;
+    QString tooltip;
+    QString statustip;
+    QString whatsthis;
+    QKeySequence key;
+#ifndef QT_NO_ACCEL
+    QAccel* accel;
+    int accelid;
+#endif
+    uint enabled : 1;
+    uint toggleaction :1;
+    uint on : 1;
+#ifndef QT_NO_TOOLTIP
+    QToolTipGroup* tipGroup;
+#endif
+
+    struct MenuItem {
+       MenuItem():popup(0),id(0){}
+       QPopupMenu* popup;
+       int id;
+    };
+    // ComboItem is only necessary for actions that are
+    // in dropdown/exclusive actiongroups. The actiongroup
+    // will clean this up
+    struct ComboItem {
+       ComboItem():combo(0), id(0) {}
+       QComboBox *combo;
+       int id;
+    };
+    QPtrList<MenuItem> menuitems;
+    QPtrList<QToolButton> toolbuttons;
+    QPtrList<ComboItem> comboitems;
+
+    enum Update { Everything, Icons, State }; // Everything means everything but icons and state
+    void update( Update upd = Everything );
+
+    QString menuText() const;
+    QString toolTip() const;
+    QString statusTip() const;
+};
+
+QActionPPrivate::QActionPPrivate()
+{
+    iconset = 0;
+#ifndef QT_NO_ACCEL
+    accel = 0;
+    accelid = 0;
+#endif
+    key = 0;
+    enabled = 1;
+    toggleaction  = 0;
+    on = 0;
+    menuitems.setAutoDelete( TRUE );
+    comboitems.setAutoDelete( TRUE );
+#ifndef QT_NO_TOOLTIP
+    tipGroup = new QToolTipGroup( 0 );
+#endif
+}
+
+QActionPPrivate::~QActionPPrivate()
+{
+    QPtrListIterator<QToolButton> ittb( toolbuttons );
+    QToolButton *tb;
+
+    while ( ( tb = ittb.current() ) ) {
+       ++ittb;
+       delete tb;
+    }
+
+    QPtrListIterator<QActionPPrivate::MenuItem> itmi( menuitems);
+    QActionPPrivate::MenuItem* mi;
+    while ( ( mi = itmi.current() ) ) {
+       ++itmi;
+       QPopupMenu* menu = mi->popup;
+       if ( menu->findItem( mi->id ) )
+           menu->removeItem( mi->id );
+    }
+
+#ifndef QT_NO_ACCEL
+    delete accel;
+#endif
+    delete iconset;
+#ifndef QT_NO_TOOLTIP
+    delete tipGroup;
+#endif
+}
+
+void QActionPPrivate::update( Update upd )
+{
+    for ( QPtrListIterator<MenuItem> it( menuitems); it.current(); ++it ) {
+       MenuItem* mi = it.current();
+       QString t = menuText();
+#ifndef QT_NO_ACCEL
+       if ( key )
+           t += '\t' + QAccel::keyToString( key );
+#endif
+       switch ( upd ) {
+       case State:
+           mi->popup->setItemEnabled( mi->id, enabled );
+           if ( toggleaction )
+               mi->popup->setItemChecked( mi->id, on );
+           break;
+       case Icons:
+           if ( iconset )
+               mi->popup->changeItem( mi->id, *iconset, t );
+           break;
+       default:
+           mi->popup->changeItem( mi->id, t );
+           if ( !whatsthis.isEmpty() )
+               mi->popup->setWhatsThis( mi->id, whatsthis );
+           if ( toggleaction ) {
+               mi->popup->setCheckable( TRUE );
+               mi->popup->setItemChecked( mi->id, on );
+           }
+       }
+    }
+    for ( QPtrListIterator<QToolButton> it2( toolbuttons); it2.current(); ++it2 ) {
+       QToolButton* btn = it2.current();
+       switch ( upd ) {
+       case State:
+           btn->setEnabled( enabled );
+           if ( toggleaction )
+               btn->setOn( on );
+           break;
+       case Icons:
+           if ( iconset )
+               btn->setIconSet( *iconset );
+           break;
+       default:
+           btn->setToggleButton( toggleaction );
+           if ( !text.isEmpty() )
+               btn->setTextLabel( text, FALSE );
+#ifndef QT_NO_TOOLTIP
+           QToolTip::remove( btn );
+           QToolTip::add( btn, toolTip(), tipGroup, statusTip() );
+#endif
+#ifndef QT_NO_WHATSTHIS
+           QWhatsThis::remove( btn );
+           if ( !whatsthis.isEmpty() )
+               QWhatsThis::add( btn, whatsthis );
+#endif
+       }
+    }
+    // Only used by actiongroup
+    for ( QPtrListIterator<ComboItem> it3( comboitems ); it3.current(); ++it3 ) {
+       ComboItem *ci = it3.current();
+       if ( !ci->combo )
+           return;
+       if ( iconset )
+           ci->combo->changeItem( iconset->pixmap(), text, ci->id );
+       else
+           ci->combo->changeItem( text, ci->id );
+    }
+    // VSR : enable/disable accel according to action state
+#ifndef QT_NO_ACCEL
+    if ( upd == State && accel )
+      accel->setItemEnabled( key, enabled );
+#endif
+}
+
+QString QActionPPrivate::menuText() const
+{
+    if ( menutext.isNull() )
+       return text;
+    return menutext;
+}
+
+QString QActionPPrivate::toolTip() const
+{
+    if ( tooltip.isNull() ) {
+#ifndef QT_NO_ACCEL
+       if ( accel )
+           return text + " (" + QAccel::keyToString( accel->key( accelid )) + ")";
+#endif
+       return text;
+    }
+    return tooltip;
+}
+
+QString QActionPPrivate::statusTip() const
+{
+    if ( statustip.isNull() )
+       return toolTip();
+    return statustip;
+}
+
+
+
+/*!
+  Constructs an action with parent \a parent and name \a name.
+
+  If \a toggle is TRUE the action will be a toggle action, otherwise it
+  will be a command action.
+
+  If \a parent is a QActionPGroup, the new action inserts itself into \a parent.
+
+  For accelerators and status tips to work, \a parent must either be a
+  widget, or an action group whose parent is a widget.
+*/
+QActionP::QActionP( QObject* parent, const char* name, bool toggle )
+    : QObject( parent, name )
+{
+    d = new QActionPPrivate;
+    d->toggleaction = toggle;
+    init();
+}
+
+
+/*!
+  This constructor creates an action with the following properties:
+  the description \a text, the icon or iconset \a icon, the menu text
+  \a menuText and keyboard accelerator \a accel. It is a child of \a parent
+  and named \a name. If \a toggle is TRUE the action will be a toggle
+  action, otherwise it will be a command action.
+
+  If  \a parent is a QActionPGroup, the action automatically becomes a
+  member of it.
+
+  For accelerators and status tips to work, \a parent must either be a
+  widget, or an action group whose parent is a widget.
+
+  The \a text and \a accel will be used for tool tips and status tips
+  unless you provide specific text for these using setToolTip() and
+  setStatusTip().
+*/
+QActionP::QActionP( const QString& text, const QIconSet& icon, const QString& menuText, QKeySequence accel, QObject* parent, const char* name, bool toggle )
+    : QObject( parent, name )
+{
+    d = new QActionPPrivate;
+    d->toggleaction = toggle;
+    if ( !icon.isNull() )
+       setIconSet( icon );
+
+    d->text = text;
+    d->menutext = menuText;
+    setAccel( accel );
+    init();
+}
+
+/*! This constructor results in an iconless action with the description
+  \a text, the menu text \a menuText and the keyboard accelerator \a accel.
+  Its parent is \a parent and its name \a
+  name. If \a toggle is TRUE the action will be a toggle
+  action, otherwise it will be a command action.
+
+  The action automatically becomes a member of \a parent if \a parent
+  is a QActionPGroup.
+
+  For accelerators and status tips to work, \a parent must either be a
+  widget, or an action group whose parent is a widget.
+
+  The \a text and \a accel will be used for tool tips and status tips
+  unless you provide specific text for these using setToolTip() and
+  setStatusTip().
+*/
+QActionP::QActionP( const QString& text, const QString& menuText, QKeySequence accel, QObject* parent, const char* name, bool toggle )
+    : QObject( parent, name )
+{
+    d = new QActionPPrivate;
+    d->toggleaction = toggle;
+    d->text = text;
+    d->menutext = menuText;
+    setAccel( accel );
+    init();
+}
+
+/*!
+  \internal
+*/
+void QActionP::init()
+{
+    if ( parent() && parent()->inherits("QActionPGroup") ) {
+       ((QActionPGroup*) parent())->add( this );               // insert into action group
+    }
+}
+
+/*! Destroys the object and frees allocated resources. */
+
+QActionP::~QActionP()
+{
+    delete d;
+}
+
+/*! \property QActionP::iconSet
+  \brief  the action's icon
+
+  The icon is used as the tool button icon and in the menu to the left
+  of the menu text. There is no default icon.
+
+  (See the action/toggleaction/toggleaction.cpp example.)
+
+*/
+void QActionP::setIconSet( const QIconSet& icon )
+{
+    if ( icon.isNull() )
+       return;
+
+    register QIconSet *i = d->iconset;
+    d->iconset = new QIconSet( icon );
+    delete i;
+    d->update( QActionPPrivate::Icons );
+}
+
+QIconSet QActionP::iconSet() const
+{
+    if ( d->iconset )
+       return *d->iconset;
+    return QIconSet();
+}
+
+/*! \property QActionP::text
+  \brief the action's descriptive text
+
+  If \l QMainWindow::usesTextLabel is TRUE, the text appears as a
+  label in the relevant tool button. It also serves as the default text
+  in menus and tool tips if these have not been specifically defined. There
+  is no default text.
+
+  \sa setMenuText() setToolTip() setStatusTip()
+*/
+void QActionP::setText( const QString& text )
+{
+    d->text = text;
+    d->update();
+}
+
+QString QActionP::text() const
+{
+    return d->text;
+}
+
+
+/*! \property QActionP::menuText
+  \brief the action's menu text
+
+    If the action is added to a menu the menu option will consist of
+    the icon (if there is one), the menu text and the accelerator (if
+    there is one). If the menu text is not explicitly set in the
+    constructor or by using setMenuText() the action's description
+    text will be used as the menu text. There is no default menu text.
+
+  \sa text
+*/
+void QActionP::setMenuText( const QString& text ) { d->menutext = text;
+    d->update(); }
+
+QString QActionP::menuText() const { return d->menuText(); }
+
+/*!
+  \property QActionP::toolTip \brief the action's tool tip
+
+  This text is used for the tool tip. If no status tip has been set
+  the tool tip will be used for the status tip.
+
+  If no tool tip is specified the action's text is used, and if that
+  hasn't been specified the description text is used as the tool tip
+  text.
+
+  There is no default tool tip text.
+
+  \sa setStatusTip() setAccel()
+*/
+void QActionP::setToolTip( const QString& tip )
+{
+    d->tooltip = tip;
+    d->update();
+}
+
+QString QActionP::toolTip() const
+{
+    return d->toolTip();
+}
+
+/*! \property QActionP::statusTip
+  \brief the action's status tip
+
+  The statusTip is displayed on all status bars that this action's
+  toplevel parent widget provides.
+
+  If no status tip is defined, the action uses the tool tip text.
+
+  There is no default tooltip text.
+
+  \sa setStatusTip() setToolTip()
+*/
+//#### Please reimp for QActionPGroup!
+//#### For consistency reasons even action groups should show
+//#### status tips (as they already do with tool tips)
+//#### Please change QActionPGroup class doc appropriately after
+//#### reimplementation.
+void QActionP::setStatusTip( const QString& tip )
+{
+    d->statustip = tip;
+    d->update();
+}
+
+QString QActionP::statusTip() const
+{
+    return d->statusTip();
+}
+
+/*!\property QActionP::whatsThis
+  \brief the action's "What's This?" help text
+
+  The whats this text is used to provide a brief description of the
+  action. The text may contain rich text (i.e. HTML tags -- see
+  QStyleSheet for the list of supported tags). There is no default
+  "What's This" text.
+
+  \sa QWhatsThis
+*/
+void QActionP::setWhatsThis( const QString& whatsThis )
+{
+    if ( d->whatsthis == whatsThis )
+       return;
+    d->whatsthis = whatsThis;
+#ifndef QT_NO_ACCEL
+    if ( !d->whatsthis.isEmpty() && d->accel )
+       d->accel->setWhatsThis( d->accelid, d->whatsthis );
+#endif
+    d->update();
+}
+
+QString QActionP::whatsThis() const
+{
+    return d->whatsthis;
+}
+
+
+/*! \property QActionP::accel
+  \brief the action's accelerator key
+
+  The keycodes can be found in \l Qt::Key and \l
+  Qt::Modifier. There is no default accelerator key.
+
+
+*/
+//#### Please reimp for QActionPGroup!
+//#### For consistency reasons even QActionPGroups should respond to
+//#### their accelerators and e.g. open the relevant submenu.
+//#### Please change appropriate QActionPGroup class doc after
+//#### reimplementation.
+void QActionP::setAccel( const QKeySequence& key )
+{
+    d->key = key;
+#ifndef QT_NO_ACCEL
+    delete d->accel;
+    d->accel = 0;
+#endif
+
+    if ( !(int)key ) {
+       d->update();
+       return;
+    }
+
+#ifndef QT_NO_ACCEL
+    QObject* p = parent();
+    while ( p && !p->isWidgetType() ) {
+       p = p->parent();
+    }
+    if ( p ) {
+       d->accel = new QAccel( (QWidget*)p, this, "qt_action_accel" );
+       d->accelid = d->accel->insertItem( d->key );
+       d->accel->connectItem( d->accelid, this, SLOT( internalActivation() ) );
+       if ( !d->whatsthis.isEmpty() )
+           d->accel->setWhatsThis( d->accelid, d->whatsthis );
+    }
+#if defined(QT_CHECK_STATE)
+    else
+       qWarning( "QActionP::setAccel()  (%s) requires widget in parent chain.", name( "unnamed" ) );
+#endif
+#endif
+    d->update();
+}
+
+
+QKeySequence QActionP::accel() const
+{
+    return d->key;
+}
+
+
+/*!
+  \property QActionP::toggleAction
+  \brief whether the action is a toggle action
+
+  A toggle action is one which has an on/off state. For example a Bold
+  toolbar button is either on or off. An action which is not a toggle
+  action is a command action; a command action is simply executed.
+  This property's default is FALSE.
+
+  In some situations, the state of one toggle action should depend on
+  the state of others. For example, "Left Align", "Center" and "Right
+  Align" toggle actions are mutually exclusive. To achieve exclusive
+  toggling, add the relevant toggle actions to a QActionPGroup with the
+  \l QActionPGroup::exclusive property set to TRUE.
+
+*/
+void QActionP::setToggleAction( bool enable )
+{
+    if ( enable == (bool)d->toggleaction )
+       return;
+
+    if ( !enable )
+       d->on = FALSE;
+
+    d->toggleaction = enable;
+    d->update();
+}
+
+bool QActionP::isToggleAction() const
+{
+    return d->toggleaction;
+}
+
+/*!
+  Toggles the state of a toggle action.
+
+  \sa on, toggled(), isToggleAction()
+*/
+void QActionP::toggle()
+{
+    if ( !isToggleAction() ) {
+#if defined(QT_CHECK_STATE)
+       qWarning( "QActionP::toggle() (%s) Only toggle actions "
+                 "may be switched", name( "unnamed" ) );
+#endif
+       return;
+    }
+    setOn( !isOn() );
+}
+
+/*!
+  \property QActionP::on
+  \brief whether a toggle action is on
+
+  This property is always on (TRUE) for command actions and
+  \l{QActionPGroup}s; setOn() has no effect on them. For action's where
+  isToggleAction() is TRUE, this property's default value is off
+  (FALSE).
+
+  \sa toggleAction
+*/
+void QActionP::setOn( bool enable )
+{
+    if ( !isToggleAction() ) {
+#if defined(QT_CHECK_STATE)
+       qWarning( "QActionP::setOn() (%s) Only toggle actions "
+                 "may be switched", name( "unnamed" ) );
+#endif
+       return;
+    }
+    if ( enable == (bool)d->on )
+       return;
+    d->on = enable;
+    d->update( QActionPPrivate::State );
+    emit toggled( enable );
+}
+
+bool QActionP::isOn() const
+{
+    return d->on;
+}
+
+/*! \property QActionP::enabled
+  \brief whether the action is enabled
+
+  Disabled actions can't be chosen by the user. They don't
+  disappear from the menu/tool bar but are displayed in a way which
+  indicates that they are unavailable, e.g. they might be displayed
+  greyed out.
+
+  What's this? help on disabled actions is still available
+  provided the \l QActionP::whatsThis property is set.
+
+*/
+void QActionP::setEnabled( bool enable )
+{
+    d->enabled = enable;
+#ifndef QT_NO_ACCEL
+    if ( d->accel )
+       d->accel->setEnabled( enable );
+#endif
+    d->update( QActionPPrivate::State );
+}
+
+bool QActionP::isEnabled() const
+{
+    return d->enabled;
+}
+
+/*! \internal
+*/
+void QActionP::internalActivation()
+{
+    if ( isToggleAction() )
+       setOn( !isOn() );
+    emit activated();
+}
+
+/*! \internal
+*/
+void QActionP::toolButtonToggled( bool on )
+{
+    if ( !isToggleAction() )
+       return;
+    setOn( on );
+}
+
+/*! Adds this action to widget \a w.
+
+  Currently actions may be added to QToolBar and QPopupMenu widgets.
+
+  An action added to a tool bar is automatically displayed
+  as a tool button; an action added to a pop up menu appears
+  as a menu option.
+
+  addTo() returns TRUE if the action was added successfully and FALSE
+  otherwise. (If \a w is not a QToolBar or QPopupMenu the action will
+  not be added and FALSE will be returned.)
+
+  \sa removeFrom()
+*/
+bool QActionP::addTo( QWidget* w )
+{
+#ifndef QT_NO_TOOLBAR
+    if ( w->inherits( "QToolBar" ) ) {
+       if ( !qstrcmp( name(), "qt_separator_action" ) ) {
+           ((QToolBar*)w)->addSeparator();
+       } else {
+           QCString bname = name() + QCString( "_action_button" );
+           QToolButton* btn = new QToolButton( (QToolBar*) w, bname );
+           addedTo( btn, w );
+           btn->setToggleButton( d->toggleaction );
+           d->toolbuttons.append( btn );
+           if ( d->iconset )
+               btn->setIconSet( *d->iconset );
+           d->update( QActionPPrivate::State );
+           d->update( QActionPPrivate::Everything );
+           connect( btn, SIGNAL( clicked() ), this, SIGNAL( activated() ) );
+           connect( btn, SIGNAL( toggled(bool) ), this, SLOT( toolButtonToggled(bool) ) );
+           connect( btn, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
+#ifndef QT_NO_TOOLTIP
+           connect( d->tipGroup, SIGNAL(showTip(const QString&)), this, SLOT(showStatusText(const QString&)) );
+           connect( d->tipGroup, SIGNAL(removeTip()), this, SLOT(clearStatusText()) );
+#endif
+       }
+    } else
+#endif
+    if ( w->inherits( "QPopupMenu" ) ) {
+       if ( !qstrcmp( name(), "qt_separator_action" ) ) {
+           ((QPopupMenu*)w)->insertSeparator();
+       } else {
+           QActionPPrivate::MenuItem* mi = new QActionPPrivate::MenuItem;
+           mi->popup = (QPopupMenu*) w;
+           QIconSet* diconset = d->iconset;
+           if ( diconset )
+               mi->id = mi->popup->insertItem( *diconset, QString::fromLatin1("") );
+           else
+               mi->id = mi->popup->insertItem( QString::fromLatin1("") );
+           addedTo( mi->popup->indexOf( mi->id ), mi->popup );
+           mi->popup->connectItem( mi->id, this, SLOT(internalActivation()) );
+           d->menuitems.append( mi );
+           d->update( QActionPPrivate::State );
+           d->update( QActionPPrivate::Everything );
+           w->topLevelWidget()->className();
+           connect( mi->popup, SIGNAL(highlighted( int )), this, SLOT(menuStatusText( int )) );
+           connect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );
+           connect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
+       }
+    // Makes only sense when called by QActionPGroup::addTo
+    } else if ( w->inherits( "QComboBox" ) ) {
+       if ( qstrcmp( name(), "qt_separator_action" ) ) {
+           QActionPPrivate::ComboItem *ci = new QActionPPrivate::ComboItem;
+           ci->combo = (QComboBox*)w;
+           connect( ci->combo, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
+           ci->id = ci->combo->count();
+           if ( d->iconset )
+               ci->combo->insertItem( d->iconset->pixmap(), text() );
+           else
+               ci->combo->insertItem( text() );
+           d->comboitems.append( ci );
+       }
+    } else {
+       qWarning( "QActionP::addTo(), unknown object" );
+       return FALSE;
+    }
+    return TRUE;
+}
+
+/*! This function is called from the addTo() function when it created
+  a widget (\a actionWidget) for the action in the \a container.
+*/
+
+void QActionP::addedTo( QWidget *actionWidget, QWidget *container )
+{
+    Q_UNUSED( actionWidget );
+    Q_UNUSED( container );
+}
+
+/*! \overload
+
+  This function is called from the addTo() function when it created
+  a menu item at the index \a index in the popup menu \a menu.
+*/
+
+void QActionP::addedTo( int index, QPopupMenu *menu )
+{
+    Q_UNUSED( index );
+    Q_UNUSED( menu );
+}
+
+/*! Sets the status message to \a text */
+void QActionP::showStatusText( const QString& text )
+{
+#ifndef QT_NO_STATUSBAR
+    // find out whether we are clearing the status bar by the popup that actually set the text
+    static QPopupMenu *lastmenu = 0;
+    QObject *s = (QObject*)sender();
+    if ( s ) {
+       QPopupMenu *menu = (QPopupMenu*)s->qt_cast( "QPopupMenu" );
+       if ( menu && !!text )
+           lastmenu = menu;
+       else if ( menu && text.isEmpty() ) {
+           if ( lastmenu && menu != lastmenu )
+               return;
+           lastmenu = 0;
+       }
+    }
+
+    QObject* par = parent();
+    QObject* lpar = 0;
+    QStatusBar *bar = 0;
+    while ( par && !bar ) {
+       lpar = par;
+       bar = (QStatusBar*)par->child( 0, "QStatusBar", FALSE );
+       par = par->parent();
+    }
+    if ( !bar && lpar ) {
+       QObjectList *l = lpar->queryList( "QStatusBar" );
+       if ( !l )
+           return;
+       // #### hopefully the last one is the one of the mainwindow...
+       bar = (QStatusBar*)l->last();
+       delete l;
+    }
+    if ( bar ) {
+       if ( text.isEmpty() )
+           bar->clear();
+       else
+           bar->message( text );
+    }
+#endif
+}
+
+/*! Sets the status message to the menu item's status text, or
+  to the tooltip, if there is no status text.
+*/
+void QActionP::menuStatusText( int id )
+{
+    QString text;
+    QPtrListIterator<QActionPPrivate::MenuItem> it( d->menuitems);
+    QActionPPrivate::MenuItem* mi;
+    while ( ( mi = it.current() ) ) {
+       ++it;
+       if ( mi->id == id ) {
+           text = statusTip();
+           break;
+       }
+    }
+
+    if ( !text.isEmpty() )
+       showStatusText( text );
+}
+
+/*! Clears the status text.
+*/
+void QActionP::clearStatusText()
+{
+    showStatusText( QString::null );
+}
+
+/*!
+  Removes the action from widget \a w.
+
+  Returns TRUE if the action was removed successfully; otherwise
+  returns FALSE.
+
+  \sa addTo()
+*/
+bool QActionP::removeFrom( QWidget* w )
+{
+#ifndef QT_NO_TOOLBAR
+    if ( w->inherits( "QToolBar" ) ) {
+       QPtrListIterator<QToolButton> it( d->toolbuttons);
+       QToolButton* btn;
+       while ( ( btn = it.current() ) ) {
+           ++it;
+           if ( btn->parentWidget() == w ) {
+               d->toolbuttons.removeRef( btn );
+               disconnect( btn, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
+               delete btn;
+               // no need to disconnect from statusbar
+           }
+       }
+    } else
+#endif
+    if ( w->inherits( "QPopupMenu" ) ) {
+       QPtrListIterator<QActionPPrivate::MenuItem> it( d->menuitems);
+       QActionPPrivate::MenuItem* mi;
+       while ( ( mi = it.current() ) ) {
+           ++it;
+           if ( mi->popup == w ) {
+               disconnect( mi->popup, SIGNAL(highlighted( int )), this, SLOT(menuStatusText(int)) );
+               disconnect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );
+               disconnect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
+               mi->popup->removeItem( mi->id );
+               d->menuitems.removeRef( mi );
+           }
+       }
+    } else if ( w->inherits( "QComboBox" ) ) {
+       QPtrListIterator<QActionPPrivate::ComboItem> it( d->comboitems );
+       QActionPPrivate::ComboItem *ci;
+       while ( ( ci = it.current() ) ) {
+           ++it;
+           if ( ci->combo == w ) {
+               disconnect( ci->combo, SIGNAL(destroyed()), this, SLOT(objectDestroyed()) );
+               d->comboitems.removeRef( ci );
+           }
+       }
+    } else {
+       qWarning( "QActionP::removeFrom(), unknown object" );
+       return FALSE;
+    }
+    return TRUE;
+}
+
+/*!
+  \internal
+*/
+void QActionP::objectDestroyed()
+{
+    const QObject* obj = sender();
+    QPtrListIterator<QActionPPrivate::MenuItem> it( d->menuitems );
+    QActionPPrivate::MenuItem* mi;
+    while ( ( mi = it.current() ) ) {
+       ++it;
+       if ( mi->popup == obj )
+           d->menuitems.removeRef( mi );
+    }
+    QActionPPrivate::ComboItem *ci;
+    QPtrListIterator<QActionPPrivate::ComboItem> it2( d->comboitems );
+    while ( ( ci = it2.current() ) ) {
+       ++it2;
+       if ( ci->combo == obj )
+           d->comboitems.removeRef( ci );
+    }
+    d->toolbuttons.removeRef( (QToolButton*) obj );
+}
+
+/*! \fn void QActionP::activated()
+
+  This signal is emitted when an action is activated by the user, i.e.
+  when the user clicks a menu option or a toolbar button or presses an
+  action's accelerator key combination.
+
+  Connect to this signal for command actions. Connect to the toggled()
+  signal for toggle actions.
+*/
+
+/*! \fn void QActionP::toggled(bool)
+
+  This signal is emitted when a toggle action changes state;
+  command actions and QActionPGroups don't emit toggled().
+
+  The argument denotes the new state; i.e. TRUE
+  if the toggle action was switched on and FALSE if
+  it was switched off.
+
+  To trigger a user command depending on whether a toggle action has
+  been switched on or off connect it to a slot that takes a bool to
+  indicate the state, e.g.
+
+  \quotefile action/toggleaction/toggleaction.cpp
+  \skipto QMainWindow * window
+  \printline QMainWindow * window
+  \skipto labelonoffaction
+  \printline labelonoffaction
+  \skipto connect
+  \printuntil setUsesTextLabel
+
+  \sa activated() setToggleAction() setOn()
+*/
+
+
+
+class QActionPGroupPrivate
+{
+public:
+    uint exclusive: 1;
+    uint dropdown: 1;
+    QPtrList<QActionP> actions;
+    QActionP* selected;
+    QActionP* separatorAction;
+
+    struct MenuItem {
+       MenuItem():popup(0),id(0){}
+       QPopupMenu* popup;
+       int id;
+    };
+
+    QPtrList<QComboBox> comboboxes;
+    QPtrList<QToolButton> menubuttons;
+    QPtrList<MenuItem> menuitems;
+    QPtrList<QPopupMenu> popupmenus;
+
+    void update( const QActionPGroup * );
+};
+
+void QActionPGroupPrivate::update( const QActionPGroup* that )
+{
+    for ( QPtrListIterator<QActionP> it( actions ); it.current(); ++it ) {
+       it.current()->setEnabled( that->isEnabled() );
+    }
+    for ( QPtrListIterator<QComboBox> cb( comboboxes ); cb.current(); ++cb ) {
+       cb.current()->setEnabled( that->isEnabled() );
+
+#ifndef QT_NO_TOOLTIP
+       QToolTip::remove( cb.current() );
+       if ( !!that->toolTip() )
+           QToolTip::add( cb.current(), that->toolTip() );
+#endif
+#ifndef QT_NO_WHATSTHIS
+       QWhatsThis::remove( cb.current() );
+       if ( !!that->whatsThis() )
+           QWhatsThis::add( cb.current(), that->whatsThis() );
+#endif
+    }
+    for ( QPtrListIterator<QToolButton> mb( menubuttons ); mb.current(); ++mb ) {
+       mb.current()->setEnabled( that->isEnabled() );
+
+       if ( !that->text().isNull() )
+           mb.current()->setTextLabel( that->text() );
+       if ( !that->iconSet().isNull() )
+           mb.current()->setIconSet( that->iconSet() );
+
+#ifndef QT_NO_TOOLTIP
+       QToolTip::remove( mb.current() );
+       if ( !!that->toolTip() )
+           QToolTip::add( mb.current(), that->toolTip() );
+#endif
+#ifndef QT_NO_WHATSTHIS
+       QWhatsThis::remove( mb.current() );
+       if ( !!that->whatsThis() )
+           QWhatsThis::add( mb.current(), that->whatsThis() );
+#endif
+    }
+    for ( QPtrListIterator<QActionPGroupPrivate::MenuItem> pu( menuitems ); pu.current(); ++pu ) {
+       QWidget* parent = pu.current()->popup->parentWidget();
+       if ( parent->inherits( "QPopupMenu" ) ) {
+           QPopupMenu* ppopup = (QPopupMenu*)parent;
+           ppopup->setItemEnabled( pu.current()->id, that->isEnabled() );
+       } else {
+           pu.current()->popup->setEnabled( that->isEnabled() );
+       }
+    }
+    for ( QPtrListIterator<QPopupMenu> pm( popupmenus ); pm.current(); ++pm ) {
+       QPopupMenu *popup = pm.current();
+       QPopupMenu *parent = popup->parentWidget()->inherits( "QPopupMenu" ) ? (QPopupMenu*)popup->parentWidget() : 0;
+       if ( !parent )
+           continue;
+
+       int index;
+       parent->findPopup( popup, &index );
+       int id = parent->idAt( index );
+       parent->changeItem( id, that->iconSet(), that->menuText() );
+       parent->setItemEnabled( id, that->isEnabled() );
+       parent->setAccel( that->accel(), id );
+    }
+}
+
+/*!
+  \class QActionPGroup qaction.h
+  \ingroup basic
+  \ingroup application
+
+  \brief The QActionPGroup class groups actions together.
+
+  In some situations it is useful to group actions together. For
+  example, if you have a left justify action, a right justify action
+  and a center action, only one of these actions should be active at
+  any one time, and one simple way of achieving this is to group the
+  actions together in an action group and call setExclusive(TRUE).
+
+  An action group can also be added to a menu or a toolbar as a single
+  unit, with all the actions within the action group appearing as
+  separate menu options and toolbar buttons.
+
+  Here's an example from examples/textedit:
+  \quotefile textedit/textedit.cpp
+  \skipto QActionPGroup
+  \printuntil connect
+
+  We create a new action  group and call setExclusive() to ensure that
+  only one of the actions in the group is ever active at any one time.
+  We then connect the group's selected() signal to our textAlign() slot.
+
+  \printuntil actionAlignLeft->setToggleAction
+
+  We create a left align action, add it to the toolbar and the menu
+  and make it a toggle action. We create center and right align
+  actions in exactly the same way.
+
+  \omit
+  A QActionPGroup emits an activated() signal when one of its actions
+  is activated.
+  \endomit
+  The actions in an action group emit their activated()
+  (and for toggle actions, toggled()) signals as usual.
+
+  The setExclusive() function is used to ensure that only one action
+  is active at any one time: it should be used with actions which have
+  their \c toggleAction set to TRUE.
+
+  Action group actions appear as individual menu options and toolbar
+  buttons. For exclusive action groups use setUsesDropDown() to
+  display the actions in a subwidget of any widget the action group is
+  added to. For example, the actions would appear in a combobox in a
+  toolbar or as a submenu in a menu.
+
+  Actions can be added to an action group using add(), but normally
+  they are added by creating the action with the action group as
+  parent. Actions can have separators dividing them using
+  addSeparator(). Action groups are added to widgets with addTo().
+
+*/
+
+/*! Constructs an action group with parent \a parent and name \a name.
+
+    If \a exclusive is TRUE only one toggle action in the group will
+    ever be active.
+
+*/
+QActionPGroup::QActionPGroup( QObject* parent, const char* name, bool exclusive )
+    : QActionP( parent, name )
+{
+    d = new QActionPGroupPrivate;
+    d->exclusive = exclusive;
+    d->dropdown = FALSE;
+    d->selected = 0;
+    d->separatorAction = 0;
+
+    connect( this, SIGNAL(selected(QActionP*)), SLOT(internalToggle(QActionP*)) );
+}
+
+/*! Destroys the object and frees allocated resources. */
+
+QActionPGroup::~QActionPGroup()
+{
+    QPtrListIterator<QActionPGroupPrivate::MenuItem> mit( d->menuitems );
+    while ( mit.current() ) {
+       QActionPGroupPrivate::MenuItem *mi = mit.current();
+       ++mit;
+       if ( mi->popup )
+           mi->popup->disconnect( SIGNAL(destroyed()), this, SLOT(objectDestroyed()) );
+    }
+
+    QPtrListIterator<QComboBox> cbit( d->comboboxes );
+    while ( cbit.current() ) {
+       QComboBox *cb = cbit.current();
+       ++cbit;
+       cb->disconnect(  SIGNAL(destroyed()), this, SLOT(objectDestroyed()) );
+    }
+    QPtrListIterator<QToolButton> mbit( d->menubuttons );
+    while ( mbit.current() ) {
+       QToolButton *mb = mbit.current();
+       ++mbit;
+       mb->disconnect(  SIGNAL(destroyed()), this, SLOT(objectDestroyed()) );
+    }
+    QPtrListIterator<QPopupMenu> pmit( d->popupmenus );
+    while ( pmit.current() ) {
+       QPopupMenu *pm = pmit.current();
+       ++pmit;
+       pm->disconnect(  SIGNAL(destroyed()), this, SLOT(objectDestroyed()) );
+    }
+
+    delete d->separatorAction;
+    d->menubuttons.setAutoDelete( TRUE );
+    d->comboboxes.setAutoDelete( TRUE );
+    d->menuitems.setAutoDelete( TRUE );
+    d->popupmenus.setAutoDelete( TRUE );
+    delete d;
+}
+
+/*! \property QActionPGroup::exclusive
+  \brief whether the action group does exclusive toggling
+
+    If exclusive is TRUE only one toggle action in the action group can
+    ever be active at any one time. If the user chooses another toggle
+    action in the group the one they chose becomes active and the one
+    that was active becomes inactive. By default this property is FALSE.
+
+  \sa QActionP::toggleAction
+*/
+void QActionPGroup::setExclusive( bool enable )
+{
+    d->exclusive = enable;
+}
+
+bool QActionPGroup::isExclusive() const
+{
+    return d->exclusive;
+}
+
+/*!  \property QActionPGroup::usesDropDown
+  \brief whether the group's actions are displayed in a
+  subwidget of the widgets the action group is added to
+
+  Exclusive action groups added to a toolbar display their actions in
+  a combobox with the action's \l QActionP::text and \l
+  QActionP::iconSet properties shown. Non-exclusive groups are
+  represented by a tool button showing their \l QActionP::iconSet and
+  -- depending on \l QMainWindow::usesTextLabel() -- text() property.
+
+  In a popup menu the member actions are displayed in a
+  submenu.
+
+  Changing usesDropDown only effects \e subsequent calls to addTo().
+
+  This property's default is FALSE.
+
+*/
+void QActionPGroup::setUsesDropDown( bool enable )
+{
+    d->dropdown = enable;
+}
+
+bool QActionPGroup::usesDropDown() const
+{
+    return d->dropdown;
+}
+
+/*! Adds action \a action to this group.
+
+    Normally an action is added to a group by creating it with the group
+    as parent, so this function is not usually used.
+
+  \sa addTo()
+*/
+void QActionPGroup::add( QActionP* action )
+{
+    if ( d->actions.containsRef( action ) )
+       return;
+
+    d->actions.append( action );
+
+    if ( action->whatsThis().isNull() )
+       action->setWhatsThis( whatsThis() );
+    if ( action->toolTip().isNull() )
+       action->setToolTip( toolTip() );
+    action->setEnabled( isEnabled() );
+
+    connect( action, SIGNAL( destroyed() ), this, SLOT( childDestroyed() ) );
+    connect( action, SIGNAL( activated() ), this, SIGNAL( activated() ) );
+    connect( action, SIGNAL( toggled( bool ) ), this, SLOT( childToggled( bool ) ) );
+
+    for ( QPtrListIterator<QComboBox> cb( d->comboboxes ); cb.current(); ++cb ) {
+       cb.current()->insertItem( action->iconSet().pixmap(), action->text() );
+    }
+    for ( QPtrListIterator<QToolButton> mb( d->menubuttons ); mb.current(); ++mb ) {
+       QPopupMenu* popup = mb.current()->popup();
+       if ( !popup )
+           continue;
+       action->addTo( popup );
+    }
+    for ( QPtrListIterator<QActionPGroupPrivate::MenuItem> mi( d->menuitems ); mi.current(); ++mi ) {
+       QPopupMenu* popup = mi.current()->popup;
+       if ( !popup )
+           continue;
+       action->addTo( popup );
+    }
+}
+
+/*! Adds a separator to the group. */
+void QActionPGroup::addSeparator()
+{
+    if ( !d->separatorAction )
+       d->separatorAction = new QActionP( 0, "qt_separator_action" );
+    d->actions.append( d->separatorAction );
+}
+
+
+/*! \fn void QActionPGroup::insert( QActionP* a )
+
+  \obsolete
+
+  Use add() instead, or better still create the action with the action
+  group as its parent.
+ */
+
+/*!
+  Adds this action group to the widget \a w.
+
+  If usesDropDown() is TRUE and exclusive is TRUE (see setExclusive())
+  the actions are presented in a combobox if \a w is a toolbar and as
+  a submenu if \a w is a menu. Otherwise (the default) the actions
+  within the group are added to the widget individually. For example
+  if the widget is a menu, the actions will appear as individual menu
+  options, and if the widget is a toolbar, the actions will appear as
+  toolbar buttons.
+
+  It is recommended that actions in action groups, especially where
+  usesDropDown() is TRUE, have their menuText() or text() property set.
+
+  All actions should be added to the action group \e before the action
+  group is added to the widget. If actions are added to the action
+  group \e after the action group has been added to the widget these
+  later actions will \e not appear.
+
+  \sa setExclusive() setUsesDropDown() removeFrom()
+*/
+bool QActionPGroup::addTo( QWidget* w )
+{
+#ifndef QT_NO_TOOLBAR
+    if ( w->inherits( "QToolBar" ) ) {
+       if ( d->dropdown ) {
+           if ( !d->exclusive ) {
+               QPtrListIterator<QActionP> it( d->actions);
+               if ( !it.current() )
+                   return TRUE;
+
+               QActionP *defAction = it.current();
+
+               QToolButton* btn = new QToolButton( (QToolBar*) w, "qt_actiongroup_btn" );
+               addedTo( btn, w );
+               connect( btn, SIGNAL(destroyed()), SLOT(objectDestroyed()) );
+               d->menubuttons.append( btn );
+
+               if ( !iconSet().isNull() )
+                   btn->setIconSet( iconSet() );
+               else if ( !defAction->iconSet().isNull() )
+                   btn->setIconSet( defAction->iconSet() );
+               if ( !!text() )
+                   btn->setTextLabel( text() );
+               else if ( !!defAction->text() )
+                   btn->setTextLabel( defAction->text() );
+#ifndef QT_NO_TOOLTIP
+               if ( !!toolTip() )
+                   QToolTip::add( btn, toolTip() );
+               else if ( !!defAction->toolTip() )
+                   QToolTip::add( btn, defAction->toolTip() );
+#endif
+#ifndef QT_NO_WHATSTHIS
+               if ( !!whatsThis() )
+                   QWhatsThis::add( btn, whatsThis() );
+               else if ( !!defAction->whatsThis() )
+                   QWhatsThis::add( btn, defAction->whatsThis() );
+#endif
+
+               connect( btn, SIGNAL( clicked() ), defAction, SIGNAL( activated() ) );
+               connect( btn, SIGNAL( toggled(bool) ), defAction, SLOT( toolButtonToggled(bool) ) );
+               connect( btn, SIGNAL( destroyed() ), defAction, SLOT( objectDestroyed() ) );
+
+               QPopupMenu *menu = new QPopupMenu( btn, "qt_actiongroup_menu" );
+               btn->setPopupDelay( 0 );
+               btn->setPopup( menu );
+
+               while( it.current() ) {
+                   it.current()->addTo( menu );
+                   ++it;
+               }
+               return TRUE;
+           } else {
+               QComboBox *box = new QComboBox( FALSE, w, "qt_actiongroup_combo" );
+               addedTo( box, w );
+               connect( box, SIGNAL(destroyed()), SLOT(objectDestroyed()) );
+               d->comboboxes.append( box );
+#ifndef QT_NO_TOOLTIP
+               if ( !!toolTip() )
+                   QToolTip::add( box, toolTip() );
+#endif
+#ifndef QT_NO_WHATSTHIS
+               if ( !!whatsThis() )
+                   QWhatsThis::add( box, whatsThis() );
+#endif
+
+               for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+                   it.current()->addTo( box );
+               }
+               connect( box, SIGNAL(activated(int)), this, SLOT( internalComboBoxActivated(int)) );
+               return TRUE;
+           }
+       }
+    } else
+#endif
+    if ( w->inherits( "QPopupMenu" ) ) {
+       QPopupMenu *popup;
+       if ( d->dropdown ) {
+           QPopupMenu *menu = (QPopupMenu*)w;
+           popup = new QPopupMenu( w, "qt_actiongroup_menu" );
+           d->popupmenus.append( popup );
+           connect( popup, SIGNAL(destroyed()), SLOT(objectDestroyed()) );
+
+           int id;
+           if ( !iconSet().isNull() ) {
+               if ( menuText().isEmpty() )
+                   id = menu->insertItem( iconSet(), text(), popup );
+               else
+                   id = menu->insertItem( iconSet(), menuText(), popup );
+           } else {
+               if ( menuText().isEmpty() )
+                   id = menu->insertItem( text(), popup );
+               else
+                   id = menu->insertItem( menuText(), popup );
+           }
+
+           addedTo( menu->indexOf( id ), menu );
+
+           QActionPGroupPrivate::MenuItem *item = new QActionPGroupPrivate::MenuItem;
+           item->id = id;
+           item->popup = popup;
+           d->menuitems.append( item );
+       } else {
+           popup = (QPopupMenu*)w;
+       }
+       for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+           // #### do an addedTo( index, popup, action), need to find out index
+           it.current()->addTo( popup );
+       }
+       return TRUE;
+    }
+
+    for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+       // #### do an addedTo( index, popup, action), need to find out index
+       it.current()->addTo( w );
+    }
+
+    return TRUE;
+}
+
+/*! \reimp
+*/
+bool QActionPGroup::removeFrom( QWidget* w )
+{
+    for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+       it.current()->removeFrom( w );
+    }
+
+#ifndef QT_NO_TOOLBAR
+    if ( w->inherits( "QToolBar" ) ) {
+       QPtrListIterator<QComboBox> cb( d->comboboxes );
+       while( cb.current() ) {
+           QComboBox *box = cb.current();
+           ++cb;
+           if ( box->parentWidget() == w )
+               delete box;
+       }
+       QPtrListIterator<QToolButton> mb( d->menubuttons );
+       while( mb.current() ) {
+           QToolButton *btn = mb.current();
+           ++mb;
+           if ( btn->parentWidget() == w )
+               delete btn;
+       }
+    } else
+#endif
+    if ( w->inherits( "QPopupMenu" ) ) {
+       QPtrListIterator<QActionPGroupPrivate::MenuItem> pu( d->menuitems );
+       while ( pu.current() ) {
+           QActionPGroupPrivate::MenuItem *mi = pu.current();
+           ++pu;
+           if ( d->dropdown && mi->popup )
+               ( (QPopupMenu*)w )->removeItem( mi->id );
+           delete mi->popup;
+       }
+    }
+
+    return TRUE;
+}
+
+/*! \internal
+*/
+void QActionPGroup::childToggled( bool b )
+{
+    if ( !isExclusive() )
+       return;
+    QActionP* s = (QActionP*) sender();
+    if ( b ) {
+       if ( s != d->selected ) {
+           d->selected = s;
+           for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+               if ( it.current()->isToggleAction() && it.current() != s )
+                   it.current()->setOn( FALSE );
+           }
+           emit activated();
+           emit selected( s );
+       }
+    } else {
+       if ( s == d->selected ) {
+           // at least one has to be selected
+           s->setOn( TRUE );
+       }
+    }
+}
+
+/*! \internal
+*/
+void QActionPGroup::childDestroyed()
+{
+    d->actions.removeRef( (QActionP*) sender() );
+    if ( d->selected == sender() )
+       d->selected = 0;
+}
+
+/*! \reimp
+*/
+void QActionPGroup::setEnabled( bool enable )
+{
+    if ( enable == isEnabled() )
+       return;
+
+    QActionP::setEnabled( enable );
+    d->update( this );
+}
+
+/*! \reimp
+*/
+void QActionPGroup::setIconSet( const QIconSet& icon )
+{
+    QActionP::setIconSet( icon );
+    d->update( this );
+}
+
+/*! \reimp
+*/
+void QActionPGroup::setText( const QString& txt )
+{
+    if ( txt == text() )
+       return;
+
+    QActionP::setText( txt );
+    d->update( this );
+}
+
+/*! \reimp
+*/
+void QActionPGroup::setMenuText( const QString& text )
+{
+    if ( text == menuText() )
+       return;
+
+    QActionP::setMenuText( text );
+    d->update( this );
+}
+
+/*! \reimp
+*/
+void QActionPGroup::setToolTip( const QString& text )
+{
+    if ( text == toolTip() )
+       return;
+    for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+       if ( it.current()->toolTip().isNull() )
+           it.current()->setToolTip( text );
+    }
+    QActionP::setToolTip( text );
+    d->update( this );
+}
+
+/*! \reimp
+*/
+void QActionPGroup::setWhatsThis( const QString& text )
+{
+    if ( text == whatsThis() )
+       return;
+    for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+       if ( it.current()->whatsThis().isNull() )
+           it.current()->setWhatsThis( text );
+    }
+    QActionP::setWhatsThis( text );
+    d->update( this );
+}
+
+/*! \reimp
+*/
+void QActionPGroup::childEvent( QChildEvent *e )
+{
+    if ( !e->child()->inherits( "QActionP" ) )
+       return;
+
+    QActionP *action = (QActionP*)e->child();
+
+    if ( !e->removed() )
+       return;
+
+    for ( QPtrListIterator<QComboBox> cb( d->comboboxes ); cb.current(); ++cb ) {
+       for ( int i = 0; i < cb.current()->count(); i++ ) {
+           if ( cb.current()->text( i ) == action->text() ) {
+               cb.current()->removeItem( i );
+               break;
+           }
+       }
+    }
+    for ( QPtrListIterator<QToolButton> mb( d->menubuttons ); mb.current(); ++mb ) {
+       QPopupMenu* popup = mb.current()->popup();
+       if ( !popup )
+           continue;
+       action->removeFrom( popup );
+    }
+    for ( QPtrListIterator<QActionPGroupPrivate::MenuItem> mi( d->menuitems ); mi.current(); ++mi ) {
+       QPopupMenu* popup = mi.current()->popup;
+       if ( !popup )
+           continue;
+       action->removeFrom( popup );
+    }
+}
+
+/*!
+  \fn void QActionPGroup::selected( QActionP* )
+
+  This signal is emitted from exclusive groups when toggle actions
+  change state.
+
+  The argument is the action whose state changed to "on".
+
+  \quotefile action/actiongroup/editor.cpp
+  \skipto QActionPGroup
+  \printline QActionPGroup
+  \skipto QObject::connect
+  \printuntil SLOT
+
+  In this example we connect the selected() signal to our own
+  setFontColor() slot, passing the QActionP so that we know which
+  action was chosen by the user.
+
+  (See the \link actiongroup.html QActionPGroup Walkthrough. \endlink)
+
+  \sa setExclusive(), isOn()
+*/
+
+/*! \internal
+*/
+void QActionPGroup::internalComboBoxActivated( int index )
+{
+    QActionP *a = d->actions.at( index );
+    if ( a ) {
+       if ( a != d->selected ) {
+           d->selected = a;
+           for ( QPtrListIterator<QActionP> it( d->actions); it.current(); ++it ) {
+               if ( it.current()->isToggleAction() && it.current() != a )
+                   it.current()->setOn( FALSE );
+           }
+           if ( a->isToggleAction() )
+               a->setOn( TRUE );
+
+           emit activated();
+           emit selected( d->selected );
+           emit ((QActionPGroup*)a)->activated();
+       }
+    }
+}
+
+/*! \internal
+*/
+void QActionPGroup::internalToggle( QActionP *a )
+{
+    for ( QPtrListIterator<QComboBox> it( d->comboboxes); it.current(); ++it ) {
+       int index = d->actions.find( a );
+       if ( index != -1 )
+           it.current()->setCurrentItem( index );
+    }
+}
+
+/*! \internal
+*/
+void QActionPGroup::objectDestroyed()
+{
+    const QObject* obj = sender();
+    d->menubuttons.removeRef( (QToolButton*)obj );
+    for ( QPtrListIterator<QActionPGroupPrivate::MenuItem> mi( d->menuitems ); mi.current(); ++mi ) {
+       if ( mi.current()->popup == obj ) {
+           d->menuitems.removeRef( mi.current() );
+           break;
+       }
+    }
+    d->popupmenus.removeRef( (QPopupMenu*)obj );
+    d->comboboxes.removeRef( (QComboBox*)obj );
+}
+
+/*! This function is called from the addTo() function when it created
+  a widget (\a actionWidget) for the child action \a a in the \a
+  container.
+*/
+
+void QActionPGroup::addedTo( QWidget *actionWidget, QWidget *container, QActionP *a )
+{
+    Q_UNUSED( actionWidget );
+    Q_UNUSED( container );
+    Q_UNUSED( a );
+}
+
+/*! \overload
+
+  This function is called from the addTo() function when it created a
+  menu item for the child action at the index \a index in the popup
+  menu \a menu.
+*/
+
+void QActionPGroup::addedTo( int index, QPopupMenu *menu, QActionP *a )
+{
+    Q_UNUSED( index );
+    Q_UNUSED( menu );
+    Q_UNUSED( a );
+}
+
+/*! \reimp
+    \overload
+  This function is called from the addTo() function when it created
+  a widget (\a actionWidget) in the \a container.
+*/
+
+void QActionPGroup::addedTo( QWidget *actionWidget, QWidget *container )
+{
+    Q_UNUSED( actionWidget );
+    Q_UNUSED( container );
+}
+
+/*! \reimp
+    \overload
+  This function is called from the addTo() function when it created a
+  menu item at the index \a index in the popup menu \a menu.
+
+*/
+
+void QActionPGroup::addedTo( int index, QPopupMenu *menu )
+{
+    Q_UNUSED( index );
+    Q_UNUSED( menu );
+}
+
+#endif
diff --git a/src/PatchQt/qactionP.h b/src/PatchQt/qactionP.h
new file mode 100644 (file)
index 0000000..ecca035
--- /dev/null
@@ -0,0 +1,155 @@
+//  SALOME PatchQt : patch for Qt
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : qactionP.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
+//  $Header$
+
+#ifndef QACTIONP_H
+#define QACTIONP_H
+
+#ifndef QT_H
+#include <qobject.h>
+#include <qiconset.h>
+#include <qstring.h>
+#include <qkeysequence.h>
+#endif // QT_H
+
+#ifndef QT_NO_ACTION
+
+class QActionPPrivate;
+class QActionPGroupPrivate;
+class QStatusBar;
+class QPopupMenu;
+
+class Q_EXPORT QActionP : public QObject
+{
+    Q_OBJECT
+    Q_PROPERTY( bool toggleAction READ isToggleAction WRITE setToggleAction)
+    Q_PROPERTY( bool on READ isOn WRITE setOn )
+    Q_PROPERTY( bool enabled READ isEnabled WRITE setEnabled )
+    Q_PROPERTY( QIconSet iconSet READ iconSet WRITE setIconSet )
+    Q_PROPERTY( QString text READ text WRITE setText )
+    Q_PROPERTY( QString menuText READ menuText WRITE setMenuText )
+    Q_PROPERTY( QString toolTip READ toolTip WRITE setToolTip )
+    Q_PROPERTY( QString statusTip READ statusTip WRITE setStatusTip )
+    Q_PROPERTY( QString whatsThis READ whatsThis WRITE setWhatsThis )
+    Q_PROPERTY( QKeySequence accel READ accel WRITE setAccel )
+
+public:
+    QActionP( QObject* parent, const char* name = 0, bool toggle = FALSE  );
+    QActionP( const QString& text, const QIconSet& icon, const QString& menuText, QKeySequence accel,
+            QObject* parent, const char* name = 0, bool toggle = FALSE );
+    QActionP( const QString& text, const QString& menuText, QKeySequence accel, QObject* parent,
+            const char* name = 0, bool toggle = FALSE );
+    ~QActionP();
+
+    virtual void setIconSet( const QIconSet& );
+    QIconSet iconSet() const;
+    virtual void setText( const QString& );
+    QString text() const;
+    virtual void setMenuText( const QString& );
+    QString menuText() const;
+    virtual void setToolTip( const QString& );
+    QString toolTip() const;
+    virtual void setStatusTip( const QString& );
+    QString statusTip() const;
+    virtual void setWhatsThis( const QString& );
+    QString whatsThis() const;
+    virtual void setAccel( const QKeySequence& key );
+    QKeySequence accel() const;
+    virtual void setToggleAction( bool );
+    bool isToggleAction() const;
+    bool isOn() const;
+    bool isEnabled() const;
+    virtual bool addTo( QWidget* );
+    virtual bool removeFrom( QWidget* );
+
+protected:
+    virtual void addedTo( QWidget *actionWidget, QWidget *container );
+    virtual void addedTo( int index, QPopupMenu *menu );
+
+public slots:
+    void toggle();
+    virtual void setOn( bool );
+    virtual void setEnabled( bool );
+
+signals:
+    void activated();
+    void toggled( bool );
+
+private slots:
+    void internalActivation();
+    void toolButtonToggled( bool );
+    void objectDestroyed();
+    void menuStatusText( int id );
+    void showStatusText( const QString& );
+    void clearStatusText();
+
+private:
+    void init();
+
+    QActionPPrivate* d;
+
+};
+
+class Q_EXPORT QActionPGroup : public QActionP
+{
+    Q_OBJECT
+    Q_PROPERTY( bool exclusive READ isExclusive WRITE setExclusive )
+    Q_PROPERTY( bool usesDropDown READ usesDropDown WRITE setUsesDropDown )
+
+public:
+    QActionPGroup( QObject* parent, const char* name = 0, bool exclusive = TRUE );
+    ~QActionPGroup();
+    void setExclusive( bool );
+    bool isExclusive() const;
+    void add( QActionP* a);
+    void addSeparator();
+    bool addTo( QWidget* );
+    bool removeFrom( QWidget* );
+    void setEnabled( bool );
+
+    void setUsesDropDown( bool enable );
+    bool usesDropDown() const;
+
+    void setIconSet( const QIconSet& );
+    void setText( const QString& );
+    void setMenuText( const QString& );
+    void setToolTip( const QString& );
+    void setWhatsThis( const QString& );
+
+protected:
+    void childEvent( QChildEvent* );
+    virtual void addedTo( QWidget *actionWidget, QWidget *container, QActionP *a );
+    virtual void addedTo( int index, QPopupMenu *menu, QActionP *a );
+    virtual void addedTo( QWidget *actionWidget, QWidget *container );
+    virtual void addedTo( int index, QPopupMenu *menu );
+
+signals:
+    void selected( QActionP* );
+
+private slots:
+    void childToggled( bool );
+    void childDestroyed();
+    void internalComboBoxActivated( int );
+    void internalToggle( QActionP* );
+    void objectDestroyed();
+
+private:
+    QActionPGroupPrivate* d;
+
+#ifndef QT_NO_COMPAT
+public:
+    void insert( QActionP* a ) { add( a ); }
+#endif
+
+};
+
+#endif
+
+#endif
index 49decad82d1b9eb6caa4b74bd71bd15573a4a494..4b8268af90164280f6447e480547db41c7ca31ca 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME PatchQt : patch for Qt
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : qsplitterP.cxx
+//  Module : SALOME
+
 using namespace std;
 /****************************************************************************
 ** $Id$
index 56a2770109ab35b55692e0b91b5393585275d0c5..70d9a72ecb6d152c6a5d37c2bf1ca4902eedf19d 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME PatchQt : patch for Qt
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : qsplitterP.h
+//  Module : SALOME
+
 /****************************************************************************
 ** $Id$
 **
index 993119b36fa22d58760b6882bbd754c60254c4da..0d4d618f751574db9d1cc7dd940d2c9d4cbd7936 100644 (file)
@@ -1,15 +1,15 @@
-using namespace std;
-//  File      : qworkspaceP.cxx
-//  Created   : UI team, 21.11.02
-//  Descr     : Patch for QWorkspace class (Qt 3.0.5)
-
-//  Modified  : Mon Nov 25 09:35:34 2002
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : PatchQt
-//  Copyright : Open CASCADE 2002
+//  SALOME PatchQt : patch for Qt
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : qworkspaceP.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "qworkspaceP.h"
 
 #include <qapplication.h>
@@ -3180,8 +3180,9 @@ void QTitleBarP::paintEvent(QPaintEvent *)
        ctrls ^= under_mouse;
     }
 
-    QSharedDoubleBuffer buffer( (bool)FALSE, (bool)FALSE );
-    buffer.begin( this, rect() );
+    // QSharedDoubleBuffer buffer( (bool)FALSE, (bool)FALSE );
+    // buffer.begin( this, rect() );
+    QSharedDoubleBuffer buffer( this, rect() );
     style().drawComplexControl(QStyle::CC_TitleBar, buffer.painter(), this, rect(),
                               colorGroup(),
                               isEnabled() ? QStyle::Style_Enabled :
index f037a3e502041f7d36f0956f4943e28c14a95e3a..fd70401172c4b50ea72ad9c2c4c2549bac68664e 100644 (file)
@@ -1,12 +1,12 @@
-//  File      : qworkspaceP.h
-//  Created   : UI team, 21.11.02
-//  Descr     : Patch for QWorkspace class (Qt 3.0.5)
-
-//  Modified  : Mon Nov 25 09:30:11 2002
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : PatchQt
-//  Copyright : Open CASCADE 2002
+//  SALOME PatchQt : patch for Qt
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : qworkspaceP.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef QWORKSPACEP_H
index ca9ee3debcf3c8e5677db7a8308354f7d2420069..c13d335c50d1dd072a9f6eaa6c9bcecc1f9ef3f4 100644 (file)
@@ -1,6 +1,12 @@
-# source path
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -13,7 +19,8 @@ EXPORT_HEADERS = \
            Plot2d_CurveContainer.h \
            Plot2d_ViewFrame.h \
            Plot2d_SetupViewDlg.h \
-           Plot2d_SetupPlot2dDlg.h
+           Plot2d_SetupPlot2dDlg.h \
+           Plot2d_FitDataDlg.h
           
 # .po files to transform in .qm
 #PO_FILES = \
@@ -27,15 +34,18 @@ LIB_SRC =     \
            Plot2d_CurveContainer.cxx \
            Plot2d_ViewFrame.cxx \
            Plot2d_SetupViewDlg.cxx \
-           Plot2d_SetupPlot2dDlg.cxx
+           Plot2d_SetupPlot2dDlg.cxx \
+           Plot2d_FitDataDlg.cxx
 
 LIB_MOC = \
            Plot2d.h \
            Plot2d_ViewFrame.h \
            Plot2d_SetupViewDlg.h \
-           Plot2d_SetupPlot2dDlg.h
+           Plot2d_SetupPlot2dDlg.h \
+           Plot2d_FitDataDlg.h
 
 LIB_CLIENT_IDL = SALOMEDS.idl \
+                 SALOMEDS_Attributes.idl \
                 SALOME_ModuleCatalog.idl \
                 SALOME_Component.idl \
                 SALOME_Exception.idl
index 07f33f4b3292fabee4f832f95af4e962af77a381..9aa2f06d3f6a1cc5d8fd708f5ab9590a1a579be2 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d.cxx
-//  Created   : Wed Mar 20 11:56:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #include "Plot2d.h"
index dc61b815ed1a33969b9a4c6a191da8d78a24ac55..c05af67f391b40041b440fec090791e14d180bdf 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d.h
-//  Created   : Wed Mar 20 11:56:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : OCCViewer
-//  Copyright : Open CASCADE 2002
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef Plot2d_HeaderFile
index 1db1bf34550b2c31b3a4ad7ccd04b215e1800718..8d15c56ae847f298bad7cb097614a7396fa7e5ad 100644 (file)
@@ -1,15 +1,13 @@
-using namespace std;
-//  File      : Plot2d_Curve.cxx
-//  Created   : UI team, 05.09.00
-//  Descrip   : Curve class
-
-//  Modified  : Mon Dec 03 15:37:21 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : Plot2d
-//  Copyright : Open CASCADE 2001
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_Curve.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "Plot2d_Curve.h"
 #include "utilities.h"
 
index e000cf8023386aeba45ad996933fe1f0305014f2..5cc959483c5e0db0f40bacac9727b5fc5071c1b8 100644 (file)
@@ -1,12 +1,10 @@
-//  File      : Plot2d_Curve.h
-//  Created   : UI team, 05.09.00
-//  Descrip   : Curve class
-
-//  Modified  : Mon Dec 03 15:37:21 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : Plot2d
-//  Copyright : Open CASCADE 2001
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_Curve.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef Plot2d_Curve_h
@@ -62,9 +60,14 @@ public:
   virtual bool                             hasIO() { return !myIO.IsNull(); }
   virtual Handle(SALOME_InteractiveObject) getIO() { return myIO; }
   virtual void                             setIO( const Handle(SALOME_InteractiveObject)& io ) { myIO = io; }
+
+  virtual bool                             hasTableIO() { return !myTableIO.IsNull(); }
+  virtual Handle(SALOME_InteractiveObject) getTableIO() { return myTableIO; }
+  virtual void                             setTableIO( const Handle(SALOME_InteractiveObject)& io ) { myTableIO = io; }
   
 private:
   Handle(SALOME_InteractiveObject) myIO;
+  Handle(SALOME_InteractiveObject) myTableIO;
 
   bool        myAutoAssign;
   QString     myHorTitle;
index 12d4966aa17b3ce853d244cd8bf47957882c96b8..f55104645e12add265756be029f9185a04ee65a1 100644 (file)
@@ -1,15 +1,13 @@
-using namespace std;
-//  File      : Plot2d_CurveContainer.cxx
-//  Created   : UI team, 05.09.00
-//  Descrip   : Curve container class
-
-//  Modified  : Mon Dec 03 15:37:21 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : Plot2d
-//  Copyright : Open CASCADE 2001
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_CurveContainer.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "Plot2d_CurveContainer.h"
 
 /*!
index c018f430d3d19285eae4f27fb0f7b457f778bd00..7cbf58f856824e186df7423b403b387fec593e68 100644 (file)
@@ -1,12 +1,10 @@
-//  File      : Plot2d_CurveContainer.h
-//  Created   : UI team, 05.09.00
-//  Descrip   : Curve container class
-
-//  Modified  : Mon Dec 03 15:37:21 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : Plot2d
-//  Copyright : Open CASCADE 2001
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_CurveContainer.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef Plot2d_CurveContainer_h
diff --git a/src/Plot2d/Plot2d_FitDataDlg.cxx b/src/Plot2d/Plot2d_FitDataDlg.cxx
new file mode 100644 (file)
index 0000000..07c77fc
--- /dev/null
@@ -0,0 +1,217 @@
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_FitDataDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
+//  $Header$
+
+#include "Plot2d_FitDataDlg.h"
+#include <qlabel.h>
+#include <qlayout.h>
+#include <qvalidator.h>
+#include "QAD_Tools.h"
+#include "QAD_Application.h"
+#include "QAD_Desktop.h"
+
+#define SPACING_SIZE      6
+#define MARGIN_SIZE       11
+#define MIN_EDIT_SIZE     100
+
+/*!
+  Constructor 
+*/
+Plot2d_FitDataDlg::Plot2d_FitDataDlg( QWidget* parent )
+     : QDialog( parent ? parent : QAD_Application::getDesktop(), 
+              "Plot2d_FitDataDlg", 
+              true, 
+              WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
+{
+  setCaption( tr( "FIT_DATA_TLT" ) );
+  setSizeGripEnabled( TRUE );
+  QGridLayout* topLayout = new QGridLayout( this ); 
+  topLayout->setSpacing( SPACING_SIZE );
+  topLayout->setMargin( MARGIN_SIZE );
+
+  // 'Range' group
+  myRangeGrp = new QButtonGroup( this );
+  myRangeGrp->setColumnLayout( 0, Qt::Vertical );
+  myRangeGrp->layout()->setSpacing( 0 );
+  myRangeGrp->layout()->setMargin( 0 );
+  QGridLayout* aGridLayout = new QGridLayout( myRangeGrp->layout() );
+  aGridLayout->setAlignment( Qt::AlignTop );
+  aGridLayout->setMargin( MARGIN_SIZE );
+  aGridLayout->setSpacing( SPACING_SIZE );
+
+  myModeAllRB  = new QRadioButton( tr( "FIT_ALL" ),        myRangeGrp );
+  myModeHorRB  = new QRadioButton( tr( "FIT_HORIZONTAL" ), myRangeGrp );
+  myModeVerRB  = new QRadioButton( tr( "FIT_VERTICAL" ),   myRangeGrp );
+
+  QDoubleValidator* aValidator = new QDoubleValidator( this );
+  myXMinEdit = new QLineEdit( myRangeGrp );
+  myXMinEdit->setValidator( aValidator );
+  myXMinEdit->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  myXMinEdit->setMinimumSize( MIN_EDIT_SIZE, 0 );
+  myXMinEdit->setText( "0.0" );
+
+  myYMinEdit = new QLineEdit( myRangeGrp );
+  myYMinEdit->setValidator( aValidator );
+  myYMinEdit->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  myYMinEdit->setMinimumSize( MIN_EDIT_SIZE, 0 );
+  myYMinEdit->setText( "0.0" );
+
+  myXMaxEdit = new QLineEdit( myRangeGrp );
+  myXMaxEdit->setValidator( aValidator );
+  myXMaxEdit->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  myXMaxEdit->setMinimumSize( MIN_EDIT_SIZE, 0 );
+  myXMaxEdit->setText( "0.0" );
+
+  myYMaxEdit = new QLineEdit( myRangeGrp );
+  myYMaxEdit->setValidator( aValidator );
+  myYMaxEdit->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  myYMaxEdit->setMinimumSize( MIN_EDIT_SIZE, 0 );
+  myYMaxEdit->setText( "0.0" );
+
+  QFrame* aHLine = new QFrame( myRangeGrp );
+  aHLine->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+
+  QHBoxLayout* aModeLayout = new QHBoxLayout;
+  aModeLayout->setMargin( 0 );
+  aModeLayout->setSpacing( SPACING_SIZE );
+  aModeLayout->addWidget( myModeAllRB );
+  aModeLayout->addWidget( myModeHorRB );
+  aModeLayout->addWidget( myModeVerRB );
+
+  QLabel* horLab = new QLabel( tr( "HORIZONTAL_AXIS" ), myRangeGrp );
+  QLabel* verLab = new QLabel( tr( "VERTICAL_AXIS" ), myRangeGrp );
+  QFont font = horLab->font(); font.setBold( true );
+  horLab->setFont( font ); verLab->setFont( font );
+
+  aGridLayout->addMultiCellLayout( aModeLayout,    0, 0, 0, 4 );
+  aGridLayout->addMultiCellWidget( aHLine,         1, 1, 0, 4 );
+  aGridLayout->addWidget         ( horLab,         2,    0 );
+  aGridLayout->addWidget         ( new QLabel( tr( "MIN_VALUE_LAB" ), myRangeGrp ), 
+                                                   2,    1 );
+  aGridLayout->addWidget         ( myXMinEdit,     2,    2 );
+  aGridLayout->addWidget         ( new QLabel( tr( "MAX_VALUE_LAB" ), myRangeGrp ), 
+                                                   2,    3 );
+  aGridLayout->addWidget         ( myXMaxEdit,     2,    4 );
+  aGridLayout->addWidget         ( verLab,         3,    0 );
+  aGridLayout->addWidget         ( new QLabel( tr( "MIN_VALUE_LAB" ), myRangeGrp ), 
+                                                   3,    1 );
+  aGridLayout->addWidget         ( myYMinEdit,     3,    2 );
+  aGridLayout->addWidget         ( new QLabel( tr( "MAX_VALUE_LAB" ), myRangeGrp ), 
+                                                   3,    3 );
+  aGridLayout->addWidget         ( myYMaxEdit,     3,    4 );
+  
+  // OK/Cancel buttons
+  myOkBtn = new QPushButton( tr( "BUT_OK" ), this, "buttonOk" );
+  myOkBtn->setAutoDefault( TRUE );
+  myOkBtn->setDefault( TRUE );
+  myCancelBtn = new QPushButton( tr( "BUT_CANCEL" ), this, "buttonCancel" );
+  myCancelBtn->setAutoDefault( TRUE );
+
+  topLayout->addMultiCellWidget( myRangeGrp, 0, 0, 0, 2 );
+  topLayout->addWidget( myOkBtn, 1, 0 );
+  topLayout->setColStretch( 1, 5 );
+  topLayout->addWidget( myCancelBtn, 1, 2 );
+
+  // connect signals
+  connect( myOkBtn,      SIGNAL( clicked() ),      this, SLOT( accept() ) );
+  connect( myCancelBtn,  SIGNAL( clicked() ),      this, SLOT( reject() ) );
+  connect( myRangeGrp,   SIGNAL( clicked( int ) ), this, SLOT( onModeChanged( int ) ) );
+
+  // initial state
+  myModeAllRB->setChecked( true );
+  onModeChanged( 0 );
+
+  /* Center widget inside it's parent widget */
+  QAD_Tools::centerWidget( this, parentWidget() );
+}
+
+/*!
+  Sets range
+*/
+void Plot2d_FitDataDlg::setRange( const double xMin, 
+                                  const double xMax,
+                                  const double yMin,
+                                  const double yMax ) 
+{
+  myXMinEdit->setText( QString::number( xMin ) );
+  myXMaxEdit->setText( QString::number( xMax ) );
+  myYMinEdit->setText( QString::number( yMin ) );
+  myYMaxEdit->setText( QString::number( yMax ) );
+}
+
+/*!
+  Gets range, returns mode (see getMode())
+*/
+int Plot2d_FitDataDlg::getRange( double& xMin, 
+                                 double& xMax,
+                                 double& yMin,
+                                 double& yMax ) 
+{
+  xMin = myXMinEdit->text().toDouble();
+  xMax = myXMaxEdit->text().toDouble();
+  yMin = myYMinEdit->text().toDouble();
+  yMax = myYMaxEdit->text().toDouble();
+  int myMode = 0;
+  if ( myModeAllRB->isChecked() )
+    myMode = 0;
+  if ( myModeHorRB->isChecked() )
+    myMode = 1;
+  if ( myModeVerRB->isChecked() )
+    myMode = 2;
+  return myMode;
+}
+
+/*!
+  Gets mode : 0 - Fit all; 1 - Fit horizontal, 2 - Fit vertical
+*/
+int Plot2d_FitDataDlg::getMode() 
+{
+  int myMode = 0;
+  if ( myModeAllRB->isChecked() )
+    myMode = 0;
+  if ( myModeHorRB->isChecked() )
+    myMode = 1;
+  if ( myModeVerRB->isChecked() )
+    myMode = 2;
+  return myMode;
+}
+
+/*!
+  Called when range mode changed
+*/
+void Plot2d_FitDataDlg::onModeChanged(int mode) 
+{
+  bool badFocus;
+  switch( mode ) {
+  case 0: // fit all mode
+    myXMinEdit->setEnabled(true);
+    myXMaxEdit->setEnabled(true);
+    myYMinEdit->setEnabled(true);
+    myYMaxEdit->setEnabled(true);
+    break;
+  case 1: // fit horizontal mode
+    badFocus = myYMinEdit->hasFocus() || myYMaxEdit->hasFocus();
+    myXMinEdit->setEnabled(true);
+    myXMaxEdit->setEnabled(true);
+    myYMinEdit->setEnabled(false);
+    myYMaxEdit->setEnabled(false);
+    if (badFocus)
+      myXMinEdit->setFocus();
+    break;
+  case 2: // fit vertical mode
+    badFocus = myXMinEdit->hasFocus() || myXMaxEdit->hasFocus();
+    myXMinEdit->setEnabled(false);
+    myXMaxEdit->setEnabled(false);
+    myYMinEdit->setEnabled(true);
+    myYMaxEdit->setEnabled(true);
+    if (badFocus)
+      myYMinEdit->setFocus();
+    break;
+  }
+}
+
diff --git a/src/Plot2d/Plot2d_FitDataDlg.h b/src/Plot2d/Plot2d_FitDataDlg.h
new file mode 100644 (file)
index 0000000..ad8bbad
--- /dev/null
@@ -0,0 +1,62 @@
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_FitDataDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
+//  $Header$
+
+#if !defined(Plot2d_FitDataDlg_H)
+#define Plot2d_FitDataDlg_H
+
+#include <qdialog.h>
+
+#include <qspinbox.h>
+#include <qbuttongroup.h>
+#include <qradiobutton.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+
+//================================================================
+// Class        : Plot2d_FitDataDlg
+// Description  : Dialog to fit view for given data area
+//================================================================
+class Plot2d_FitDataDlg : public QDialog
+{
+  Q_OBJECT
+public:
+// constuctor
+  Plot2d_FitDataDlg(QWidget* parent);
+
+// sets range
+  void setRange(const double xMin, 
+                const double xMax,
+                const double yMin,
+                const double yMax);
+// gets range, returns mode (see getMode())
+  int getRange(double& xMin, 
+               double& xMax,
+               double& yMin,
+               double& yMax);
+// gets mode : 0 - Fit all; 1 - Fit horizontal, 2 - Fit vertical
+  int getMode();
+
+protected slots:
+// called when range mode changed
+  void onModeChanged(int);
+
+private:
+  QButtonGroup*           myRangeGrp;
+  QRadioButton*           myModeAllRB;
+  QRadioButton*           myModeHorRB;
+  QRadioButton*           myModeVerRB;
+  QLineEdit*              myXMinEdit;
+  QLineEdit*              myYMinEdit;
+  QLineEdit*              myXMaxEdit;
+  QLineEdit*              myYMaxEdit;
+  QPushButton*            myOkBtn;
+  QPushButton*            myCancelBtn;
+};
+
+#endif // !defined(Plot2d_FitDataDlg_H)
index e393db76cd81befe465c13e669333c172195f8c3..89d8a738a3925b4c7ee4a3a2556188d0310314f3 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d_SetupPlot2dDlg.cxx
-//  Created   : Wed Jun 27 16:39:06 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_SetupPlot2dDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #include "Plot2d_SetupPlot2dDlg.h"
index c135a6f966404b1682e554ad6028d067fd593a2a..ad4b4523dc99ea919db29c030b1cd69b4502640c 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d_SetupPlot2dDlg.h
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_SetupPlot2dDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef Plot2d_SetupPlot2dDlg_H
index 6cf1aaba6a427124a2428765dae4f494db493e52..bc80cd164b76516b1c4d9364cc0303fc282fa5c9 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d_SetupViewDlg.cxx
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_SetupViewDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #include "Plot2d_SetupViewDlg.h"
index 78c9ad4828ddd6f1b76319510dff8cdec09c271e..9958e8479f4a6fb31f17b5a8545e2cbecb9f2f8a 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d_SetupViewDlg.h
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_SetupViewDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef Plot2d_SetupViewDlg_H
index a5a5cb127e35eadaa7289717f596f924fa5ecd62..2c9c8d7488d950e4e10ae735602376d28eeb2891 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d_ViewFrame.cxx
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_ViewFrame.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #include "Plot2d_ViewFrame.h"
@@ -17,6 +18,7 @@
 #include "SALOME_Selection.h"
 #include "Plot2d_CurveContainer.h"
 #include "Plot2d_Curve.h"
+#include "Plot2d_FitDataDlg.h"
 #include "utilities.h"
 #include "qapplication.h"
 #include <qtoolbar.h>
 #include <qcursor.h>
 #include <qwt_math.h>
 #include <qwt_plot_canvas.h>
+#include <stdlib.h>
+#include "utilities.h"
+
+// IDL headers
+#include <SALOMEconfig.h>
+#include CORBA_SERVER_HEADER(SALOMEDS)
+#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
 
 #define DEFAULT_LINE_WIDTH     0     // (default) line width
 #define DEFAULT_MARKER_SIZE    9     // default marker size
@@ -91,9 +100,6 @@ Plot2d_ViewFrame::Plot2d_ViewFrame( QWidget* parent, const QString& title )
        myXMode( 0 ), myYMode( 0 )
        
 {
-  setCaption( tr( "PLOT_2D_TLT" ) );
-  setDockMenuEnabled( false );
-
   myCurves.setAutoDelete( true );
   /* Plot 2d View */
   myPlot = new Plot2d_Plot2d( this );
@@ -128,7 +134,7 @@ Plot2d_ViewFrame::Plot2d_ViewFrame( QWidget* parent, const QString& title )
   myPlot->replot();
 
   if ( parent ) {
-    resize( 0.8 * parent->width(), 0.8 * parent->height() );
+    resize( (int)(0.8 * parent->width()), (int)(0.8 * parent->height()) );
   }
 }
 /*!
@@ -136,6 +142,7 @@ Plot2d_ViewFrame::Plot2d_ViewFrame( QWidget* parent, const QString& title )
 */
 Plot2d_ViewFrame::~Plot2d_ViewFrame()
 {
+  myActions.clear();
   qApp->removeEventFilter( this );
 }
 /*!
@@ -146,41 +153,41 @@ void Plot2d_ViewFrame::createActions()
   QAD_ResourceMgr* rmgr = QAD_Desktop::getResourceManager();
   /* Linear/logarithmic mode */
   // Horizontal axis
-  QActionGroup* modeHorGrp = new QActionGroup( this );
+  QActionPGroup* modeHorGrp = new QActionPGroup( this );
   modeHorGrp->setExclusive( TRUE );
-  QAction* linearXAction = new QAction ( tr( "TOT_PLOT2D_MODE_LINEAR_HOR"),
+  QActionP* linearXAction = new QActionP ( tr( "TOT_PLOT2D_MODE_LINEAR_HOR"),
                                         rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_MODE_LINEAR_HOR") ) ,
                                         tr( "MEN_PLOT2D_MODE_LINEAR_HOR" ), 0, modeHorGrp );
   linearXAction->setStatusTip ( tr( "PRP_PLOT2D_MODE_LINEAR_HOR" ) );
   linearXAction->setToggleAction( true );
   myActions.insert( ModeXLinearId, linearXAction );
-  QAction* logXAction = new QAction ( tr( "TOT_PLOT2D_MODE_LOGARITHMIC_HOR"),
+  QActionP* logXAction = new QActionP ( tr( "TOT_PLOT2D_MODE_LOGARITHMIC_HOR"),
                                      rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_MODE_LOGARITHMIC_HOR") ) ,
                                      tr( "MEN_PLOT2D_MODE_LOGARITHMIC_HOR" ), 0, modeHorGrp );
   logXAction->setStatusTip ( tr( "PRP_PLOT2D_MODE_LOGARITHMIC_HOR" ) );
   logXAction->setToggleAction( true );
   myActions.insert( ModeXLogarithmicId, logXAction );
-  connect( modeHorGrp, SIGNAL( selected( QAction* ) ), this, SLOT( onHorMode() ) );
+  connect( modeHorGrp, SIGNAL( selected( QActionP* ) ), this, SLOT( onHorMode() ) );
 
   // Vertical axis
-  QActionGroup* modeVerGrp = new QActionGroup( this );
+  QActionPGroup* modeVerGrp = new QActionPGroup( this );
   modeVerGrp->setExclusive( TRUE );
-  QAction* linearYAction = new QAction ( tr( "TOT_PLOT2D_MODE_LINEAR_VER"),
+  QActionP* linearYAction = new QActionP ( tr( "TOT_PLOT2D_MODE_LINEAR_VER"),
                                         rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_MODE_LINEAR_VER") ) ,
                                         tr( "MEN_PLOT2D_MODE_LINEAR_VER" ), 0, modeVerGrp );
   linearYAction->setStatusTip ( tr( "PRP_PLOT2D_MODE_LINEAR_VER" ) );
   linearYAction->setToggleAction( true );
   myActions.insert( ModeYLinearId, linearYAction );
-  QAction* logYAction = new QAction ( tr( "TOT_PLOT2D_MODE_LOGARITHMIC_VER"),
+  QActionP* logYAction = new QActionP ( tr( "TOT_PLOT2D_MODE_LOGARITHMIC_VER"),
                                      rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_MODE_LOGARITHMIC_VER") ) ,
                                      tr( "MEN_PLOT2D_MODE_LOGARITHMIC_VER" ), 0, modeVerGrp );
   logYAction->setStatusTip ( tr( "PRP_PLOT2D_MODE_LOGARITHMIC_VER" ) );
   logYAction->setToggleAction( true );
   myActions.insert( ModeYLogarithmicId, logYAction );
-  connect( modeVerGrp, SIGNAL( selected( QAction* ) ), this, SLOT( onVerMode() ) );
+  connect( modeVerGrp, SIGNAL( selected( QActionP* ) ), this, SLOT( onVerMode() ) );
 
   /* Legend */
-  QAction* legendAction = new QAction ( tr( "TOT_PLOT2D_SHOW_LEGEND"),
+  QActionP* legendAction = new QActionP ( tr( "TOT_PLOT2D_SHOW_LEGEND"),
                                        rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_SHOW_LEGEND") ) ,
                                        tr( "MEN_PLOT2D_SHOW_LEGEND" ), 0, this );
   legendAction->setStatusTip ( tr( "PRP_PLOT2D_SHOW_LEGEND" ) );
@@ -189,35 +196,43 @@ void Plot2d_ViewFrame::createActions()
   connect( legendAction, SIGNAL( activated() ), this, SLOT( onLegend() ) );
 
   /* Curve type */
-  QActionGroup* curveGrp = new QActionGroup( this );
+  QActionPGroup* curveGrp = new QActionPGroup( this );
   curveGrp->setExclusive( TRUE );
-  QAction* pointsAction = new QAction ( tr( "TOT_PLOT2D_CURVES_POINTS"),
+  QActionP* pointsAction = new QActionP ( tr( "TOT_PLOT2D_CURVES_POINTS"),
                                        rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_CURVES_POINTS") ) ,
                                        tr( "MEN_PLOT2D_CURVES_POINTS" ), 0, curveGrp );
   pointsAction->setStatusTip ( tr( "PRP_PLOT2D_CURVES_POINTS" ) );
   pointsAction->setToggleAction( true );
   myActions.insert( CurvePointsId, pointsAction );
-  QAction* linesAction = new QAction ( tr( "TOT_PLOT2D_CURVES_LINES"),
+  QActionP* linesAction = new QActionP ( tr( "TOT_PLOT2D_CURVES_LINES"),
                                       rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_CURVES_LINES") ) ,
                                       tr( "MEN_PLOT2D_CURVES_LINES" ), 0, curveGrp );
   linesAction->setStatusTip ( tr( "PRP_PLOT2D_CURVES_LINES" ) );
   linesAction->setToggleAction( true );
   myActions.insert( CurveLinesId, linesAction );
-  QAction* splinesAction = new QAction ( tr( "TOT_PLOT2D_CURVES_SPLINES"),
+  QActionP* splinesAction = new QActionP ( tr( "TOT_PLOT2D_CURVES_SPLINES"),
                                         rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_CURVES_SPLINES") ) ,
                                         tr( "MEN_PLOT2D_CURVES_SPLINES" ), 0, curveGrp );
   splinesAction->setStatusTip ( tr( "PRP_PLOT2D_CURVES_SPLINES" ) );
   splinesAction->setToggleAction( true );
   myActions.insert( CurveSplinesId, splinesAction );
-  connect( curveGrp, SIGNAL( selected( QAction* ) ), this, SLOT( onCurves() ) );
+  connect( curveGrp, SIGNAL( selected( QActionP* ) ), this, SLOT( onCurves() ) );
 
   // Settings
-  QAction* settingsAction = new QAction ( tr( "TOT_PLOT2D_SETTINGS"),
+  QActionP* settingsAction = new QActionP ( tr( "TOT_PLOT2D_SETTINGS"),
                                          rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_SETTINGS") ) ,
                                          tr( "MEN_PLOT2D_SETTINGS" ), 0, this );
   settingsAction->setStatusTip ( tr( "PRP_PLOT2D_SETTINGS" ) );
   myActions.insert( SettingsId, settingsAction );
   connect( settingsAction, SIGNAL( activated() ), this, SLOT( onSettings() ) );
+
+  // Fit Data
+  QActionP* fitDataAction = new QActionP ( tr( "TOT_PLOT2D_FITDATA"),
+                                        rmgr->loadPixmap( "SALOMEGUI", tr("ICON_PLOT2D_FITDATA") ) ,
+                                        tr( "MEN_PLOT2D_FITDATA" ), 0, this );
+  fitDataAction->setStatusTip ( tr( "PRP_PLOT2D_FITDATA" ) );
+  myActions.insert( FitDataId, fitDataAction );
+  connect( fitDataAction, SIGNAL( activated() ), this, SLOT( onFitData() ) );
 }
 /*!
   Gets window's central widget
@@ -245,6 +260,7 @@ void Plot2d_ViewFrame::onCreatePopup()
     scalingPopup->insertSeparator();
     myActions[ ModeYLinearId ]->addTo( scalingPopup );
     myActions[ ModeYLogarithmicId ]->addTo( scalingPopup );
+    myActions[ FitDataId ]->addTo( myPopup );
     myPopup->insertItem( tr( "SCALING_POPUP" ), scalingPopup );
     // curve type
     QPopupMenu* curTypePopup = new QPopupMenu( myPopup );
@@ -276,6 +292,7 @@ void Plot2d_ViewFrame::rename( const Handle(SALOME_InteractiveObject)& IObject,
 //     myPlot->getLegend()->setText( legendIndex, aSymbol );
     }
   }
+  updateTitles();
 }
 /*!
   Returns true if interactive object is presented in the viewer
@@ -497,12 +514,120 @@ void Plot2d_ViewFrame::writePreferences()
 QString Plot2d_ViewFrame::getInfo( const QPoint& pnt ) 
 {
   QString info;
-  info.sprintf( "%g - %g",
+  info.sprintf( "X : %g\tY : %g",
                myPlot->invTransform( QwtPlot::xBottom, pnt.x() ),
                myPlot->invTransform( QwtPlot::yLeft,   pnt.y() ) );
   info = tr( "INF_COORDINATES" ) + " : " + info;
   return info;
 }
+/*!
+  Converts Plot2d_Curve's marker style to Qwt marker style [ static ]
+*/
+static QwtSymbol::Style plot2qwtMarker( Plot2d_Curve::MarkerType m )
+{
+  QwtSymbol::Style ms = QwtSymbol::None;  
+  switch ( m ) {
+  case Plot2d_Curve::Circle:
+    ms = QwtSymbol::Ellipse;   break;
+  case Plot2d_Curve::Rectangle:
+    ms = QwtSymbol::Rect;      break;
+  case Plot2d_Curve::Diamond:
+    ms = QwtSymbol::Diamond;   break;
+  case Plot2d_Curve::DTriangle:
+    ms = QwtSymbol::DTriangle; break;
+  case Plot2d_Curve::UTriangle:
+    ms = QwtSymbol::UTriangle; break;
+  case Plot2d_Curve::LTriangle: // Qwt confuses LTriangle and RTriangle :(((
+    ms = QwtSymbol::RTriangle; break;
+  case Plot2d_Curve::RTriangle: // Qwt confuses LTriangle and RTriangle :(((
+    ms = QwtSymbol::LTriangle; break;
+  case Plot2d_Curve::Cross:
+    ms = QwtSymbol::Cross;     break;
+  case Plot2d_Curve::XCross:
+    ms = QwtSymbol::XCross;    break;
+  case Plot2d_Curve::None:
+  default:
+    ms = QwtSymbol::None;      break;
+  }
+  return ms;
+}
+/*!
+  Converts Qwt marker style to Plot2d_Curve's marker style [ static ]
+*/
+static Plot2d_Curve::MarkerType qwt2plotMarker( QwtSymbol::Style m )
+{
+  Plot2d_Curve::MarkerType ms = Plot2d_Curve::None;  
+  switch ( m ) {
+  case QwtSymbol::Ellipse:
+    ms = Plot2d_Curve::Circle;    break;
+  case QwtSymbol::Rect:
+    ms = Plot2d_Curve::Rectangle; break;
+  case QwtSymbol::Diamond:
+    ms = Plot2d_Curve::Diamond;   break;
+  case QwtSymbol::DTriangle:
+    ms = Plot2d_Curve::DTriangle; break;
+  case QwtSymbol::UTriangle:
+    ms = Plot2d_Curve::UTriangle; break;
+  case QwtSymbol::RTriangle: // Qwt confuses LTriangle and RTriangle :(((
+    ms = Plot2d_Curve::LTriangle; break;
+  case QwtSymbol::LTriangle: // Qwt confuses LTriangle and RTriangle :(((
+    ms = Plot2d_Curve::RTriangle; break;
+  case QwtSymbol::Cross:
+    ms = Plot2d_Curve::Cross;     break;
+  case QwtSymbol::XCross:
+    ms = Plot2d_Curve::XCross;    break;
+  case QwtSymbol::None:
+  default:
+    ms = Plot2d_Curve::None;      break;
+  }
+  return ms;
+}
+/*!
+  Converts Plot2d_Curve's line style to Qwt line style [ static ]
+*/
+static Qt::PenStyle plot2qwtLine( Plot2d_Curve::LineType p )
+{
+  Qt::PenStyle ps = Qt::NoPen;
+  switch ( p ) {
+  case Plot2d_Curve::Solid:
+    ps = Qt::SolidLine;      break;
+  case Plot2d_Curve::Dash:
+    ps = Qt::DashLine;       break;
+  case Plot2d_Curve::Dot:
+    ps = Qt::DotLine;        break;
+  case Plot2d_Curve::DashDot:
+    ps = Qt::DashDotLine;    break;
+  case Plot2d_Curve::DashDotDot:
+    ps = Qt::DashDotDotLine; break;
+  case Plot2d_Curve::NoPen:
+  default:
+    ps = Qt::NoPen;          break;
+  }
+  return ps;
+}
+/*!
+  Converts Qwt line style to Plot2d_Curve's line style [ static ]
+*/
+static Plot2d_Curve::LineType qwt2plotLine( Qt::PenStyle p )
+{
+  Plot2d_Curve::LineType ps = Plot2d_Curve::NoPen;
+  switch ( p ) {
+  case Qt::SolidLine:
+    ps = Plot2d_Curve::Solid;      break;
+  case Qt::DashLine:
+    ps = Plot2d_Curve::Dash;       break;
+  case Qt::DotLine:
+    ps = Plot2d_Curve::Dot;        break;
+  case Qt::DashDotLine:
+    ps = Plot2d_Curve::DashDot;    break;
+  case Qt::DashDotDotLine:
+    ps = Plot2d_Curve::DashDotDot; break;
+  case Qt::NoPen:
+  default:
+    ps = Plot2d_Curve::NoPen;      break;
+  }
+  return ps;
+}
 /*!
   Adds curve into view
 */
@@ -526,48 +651,13 @@ void Plot2d_ViewFrame::displayCurve( Plot2d_Curve* curve, bool update )
                                                   QBrush( color ), 
                                                   QPen( color ), 
                                                   QSize( myMarkerSize, myMarkerSize ) ) );
+      curve->setColor( color );
+      curve->setLine( qwt2plotLine( typeLine ) );
+      curve->setMarker( qwt2plotMarker( typeMarker ) );
     }
     else {
-      Qt::PenStyle     ps = Qt::NoPen;
-      QwtSymbol::Style ms = QwtSymbol::None;
-      switch ( curve->getLine() ) {
-      case Plot2d_Curve::Solid:
-       ps = Qt::SolidLine;      break;
-      case Plot2d_Curve::Dash:
-       ps = Qt::DashLine;       break;
-      case Plot2d_Curve::Dot:
-       ps = Qt::DotLine;        break;
-      case Plot2d_Curve::DashDot:
-       ps = Qt::DashDotLine;    break;
-      case Plot2d_Curve::DashDotDot:
-       ps = Qt::DashDotDotLine; break;
-      case Plot2d_Curve::NoPen:
-      default:
-       ps = Qt::NoPen;          break;
-      }
-      switch ( curve->getMarker() ) {
-      case Plot2d_Curve::Circle:
-       ms = QwtSymbol::Ellipse;   break;
-      case Plot2d_Curve::Rectangle:
-       ms = QwtSymbol::Rect;      break;
-      case Plot2d_Curve::Diamond:
-       ms = QwtSymbol::Diamond;   break;
-      case Plot2d_Curve::DTriangle:
-       ms = QwtSymbol::DTriangle; break;
-      case Plot2d_Curve::UTriangle:
-       ms = QwtSymbol::UTriangle; break;
-      case Plot2d_Curve::LTriangle: // Qwt confuses LTriangle and RTriangle :(((
-       ms = QwtSymbol::RTriangle; break;
-      case Plot2d_Curve::RTriangle: // Qwt confuses LTriangle and RTriangle :(((
-       ms = QwtSymbol::LTriangle; break;
-      case Plot2d_Curve::Cross:
-       ms = QwtSymbol::Cross;     break;
-      case Plot2d_Curve::XCross:
-       ms = QwtSymbol::XCross;    break;
-      case Plot2d_Curve::None:
-      default:
-       ms = QwtSymbol::None;      break;
-      }
+      Qt::PenStyle     ps = plot2qwtLine( curve->getLine() );
+      QwtSymbol::Style ms = plot2qwtMarker( curve->getMarker() );
       myPlot->setCurvePen( curveKey, QPen( curve->getColor(), curve->getLineWidth(), ps ) );
       myPlot->setCurveSymbol( curveKey, QwtSymbol( ms, 
                                                   QBrush( curve->getColor() ), 
@@ -582,7 +672,7 @@ void Plot2d_ViewFrame::displayCurve( Plot2d_Curve* curve, bool update )
       myPlot->setCurveStyle( curveKey, QwtCurve::Spline );
     myPlot->setCurveData( curveKey, curve->horData(), curve->verData(), curve->nbPoints() );
   }
-//  updateTitles();
+  updateTitles();
   if ( update )
     myPlot->replot();
 }
@@ -591,10 +681,12 @@ void Plot2d_ViewFrame::displayCurve( Plot2d_Curve* curve, bool update )
 */
 void Plot2d_ViewFrame::displayCurves( Plot2d_CurveContainer& curves, bool update )
 {
+  myPlot->setUpdatesEnabled( false );
   for ( int i = 0; i < curves.count(); i++ ) {
     displayCurve( curves.curve( i ), false );
   }
 //  fitAll();
+  myPlot->setUpdatesEnabled( true );
   if ( update )
     myPlot->replot();
 }
@@ -609,6 +701,7 @@ void Plot2d_ViewFrame::eraseCurve( Plot2d_Curve* curve, bool update )
   if ( curveKey ) {
     myPlot->removeCurve( curveKey );
     myCurves.remove( curveKey );
+    updateTitles();
     if ( update )
       myPlot->replot();
   }
@@ -626,7 +719,7 @@ void Plot2d_ViewFrame::eraseCurves( Plot2d_CurveContainer& curves, bool update )
     myPlot->replot();
 }
 /*!
-  Udpates curves attributes
+  Updates curves attributes
 */
 void Plot2d_ViewFrame::updateCurve( Plot2d_Curve* curve, bool update )
 {
@@ -635,54 +728,17 @@ void Plot2d_ViewFrame::updateCurve( Plot2d_Curve* curve, bool update )
   int curveKey = hasCurve( curve );
   if ( curveKey ) {
     if ( !curve->isAutoAssign() ) {
-      Qt::PenStyle     ps = Qt::NoPen;
-      QwtSymbol::Style ms = QwtSymbol::None;
-      switch ( curve->getLine() ) {
-      case Plot2d_Curve::Solid:
-       ps = Qt::SolidLine;      break;
-      case Plot2d_Curve::Dash:
-       ps = Qt::DashLine;       break;
-      case Plot2d_Curve::Dot:
-       ps = Qt::DotLine;        break;
-      case Plot2d_Curve::DashDot:
-       ps = Qt::DashDotLine;    break;
-      case Plot2d_Curve::DashDotDot:
-       ps = Qt::DashDotDotLine; break;
-      case Plot2d_Curve::NoPen:
-      default:
-       ps = Qt::NoPen;          break;
-      }
-      switch ( curve->getMarker() ) {
-      case Plot2d_Curve::Circle:
-       ms = QwtSymbol::Ellipse;   break;
-      case Plot2d_Curve::Rectangle:
-       ms = QwtSymbol::Rect;      break;
-      case Plot2d_Curve::Diamond:
-       ms = QwtSymbol::Diamond;   break;
-      case Plot2d_Curve::DTriangle:
-       ms = QwtSymbol::DTriangle; break;
-      case Plot2d_Curve::UTriangle:
-       ms = QwtSymbol::UTriangle; break;
-      case Plot2d_Curve::LTriangle: // Qwt confuses LTriangle and RTriangle :(((
-       ms = QwtSymbol::RTriangle; break;
-      case Plot2d_Curve::RTriangle: // Qwt confuses LTriangle and RTriangle :(((
-       ms = QwtSymbol::LTriangle; break;
-      case Plot2d_Curve::Cross:
-       ms = QwtSymbol::Cross;     break;
-      case Plot2d_Curve::XCross:
-       ms = QwtSymbol::XCross;    break;
-      case Plot2d_Curve::None:
-      default:
-       ms = QwtSymbol::None;      break;
-      }
-       myPlot->setCurvePen( curveKey, QPen( curve->getColor(), curve->getLineWidth(), ps ) );
-       myPlot->setCurveSymbol( curveKey, QwtSymbol( ms, 
-                                                    QBrush( curve->getColor() ), 
-                                                    QPen( curve->getColor() ), 
-                                                    QSize( myMarkerSize, myMarkerSize ) ) );
+      Qt::PenStyle     ps = plot2qwtLine( curve->getLine() );
+      QwtSymbol::Style ms = plot2qwtMarker( curve->getMarker() );
+      myPlot->setCurvePen( curveKey, QPen( curve->getColor(), curve->getLineWidth(), ps ) );
+      myPlot->setCurveSymbol( curveKey, QwtSymbol( ms, 
+                                                  QBrush( curve->getColor() ), 
+                                                  QPen( curve->getColor() ), 
+                                                  QSize( myMarkerSize, myMarkerSize ) ) );
     }
     myPlot->setCurveTitle( curveKey, curve->getVerTitle() );
     myPlot->curve( curveKey )->setEnabled( true );
+    updateTitles();
     if ( update )
       myPlot->replot();
   }
@@ -723,32 +779,72 @@ int Plot2d_ViewFrame::getCurves( QList<Plot2d_Curve>& clist )
   }
   return clist.count();
 }
+
 /*!
   Updates titles according to curves
 */
+#define BRACKETIZE(x) QString( "[ " ) + x + QString( " ]" )
 void Plot2d_ViewFrame::updateTitles() 
 {
+  QAD_Study* activeStudy = QAD_Application::getDesktop()->getActiveStudy();
   QIntDictIterator<Plot2d_Curve> it( myCurves );
-  if ( it.current() ) {
-    // update axes title
-    QString xTitle = it.current()->getHorTitle();
-    QString yTitle = it.current()->getVerTitle();
-    QString xUnits = it.current()->getHorUnits();
-    QString yUnits = it.current()->getVerUnits();
+  QStringList aXTitles;
+  QStringList aYTitles;
+  QStringList aXUnits;
+  QStringList aYUnits;
+  QStringList aTables;
+  int i = 0;
+  while ( it.current() ) {
+    // collect titles and units from all curves...
+    QString xTitle = it.current()->getHorTitle().stripWhiteSpace();
+    QString yTitle = it.current()->getVerTitle().stripWhiteSpace();
+    QString xUnits = it.current()->getHorUnits().stripWhiteSpace();
+    QString yUnits = it.current()->getVerUnits().stripWhiteSpace();
     
-    xUnits = QString( "[ " ) + xUnits + QString( " ]" );
-    xTitle = xTitle + ( xTitle.isEmpty() ? QString("") : QString(" ") ) + xUnits;
-    yUnits = QString( "[ " ) + yUnits + QString( " ]" );
-    yTitle = yTitle + ( yTitle.isEmpty() ? QString("") : QString(" ") ) + yUnits;
-    setXTitle( myXTitleEnabled, xTitle );
-    if ( myCurves.count() == 1 ) {
-      setYTitle( myYTitleEnabled, yTitle );
-    }
-    else {
-      setYTitle( myYTitleEnabled, yUnits );
+    aYTitles.append( yTitle );
+    if ( aXTitles.find( xTitle ) == aXTitles.end() )
+      aXTitles.append( xTitle );
+    if ( aXUnits.find( xUnits ) == aXUnits.end() )
+      aXUnits.append( xUnits );
+    if ( aYUnits.find( yUnits ) == aYUnits.end() )
+      aYUnits.append( yUnits );
+
+    if ( activeStudy && it.current()->hasTableIO() ) { 
+      SALOMEDS::SObject_var SO = activeStudy->getStudyDocument()->FindObjectID( it.current()->getTableIO()->getEntry() );
+      if ( !SO->_is_nil() ) {
+       SALOMEDS::GenericAttribute_var anAttr;
+       if ( SO->FindAttribute( anAttr, "AttributeName" ) ) {
+         SALOMEDS::AttributeName_var aNameAttr = SALOMEDS::AttributeName::_narrow( anAttr );
+         QString aName = aNameAttr->Value();
+         if ( !aName.isEmpty() && aTables.find( aName ) == aTables.end() )
+           aTables.append( aName );
+       }
+      }
     }
-    setTitle( "" );
+
+    ++it;
+    ++i;
   }
+  // ... and update plot 2d view
+  QString xUnits, yUnits;
+  if ( aXUnits.count() == 1 && !aXUnits[0].isEmpty() )
+    xUnits = BRACKETIZE( aXUnits[0] );
+  if ( aYUnits.count() == 1 && !aYUnits[0].isEmpty())
+    yUnits = BRACKETIZE( aYUnits[0] );
+  QString xTitle, yTitle;
+  if ( aXTitles.count() == 1 && aXUnits.count() == 1 )
+    xTitle = aXTitles[0];
+  if ( aYTitles.count() == 1 )
+    yTitle = aYTitles[0];
+
+  if ( !xTitle.isEmpty() && !xUnits.isEmpty() )
+    xTitle += " ";
+  if ( !yTitle.isEmpty() && !yUnits.isEmpty() )
+    yTitle += " ";
+
+  setXTitle( myXTitleEnabled, xTitle + xUnits );
+  setYTitle( myYTitleEnabled, yTitle + yUnits );
+  setTitle( aTables.join("; ") );
 }
 /*!
   Fits the view to see all data
@@ -843,6 +939,51 @@ void Plot2d_ViewFrame::onCurves()
 */
 void Plot2d_ViewFrame::onSettings()
 {
+#ifdef TEST_AUTOASSIGN
+  typedef QMap<int,int> IList;
+  typedef QMap<QString,int> SList;
+  IList mars, lins;
+  SList cols;
+  cols[ "red-min" ]   = 1000;
+  cols[ "red-max" ]   = -1;
+  cols[ "green-min" ] = 1000;
+  cols[ "green-max" ] = -1;
+  cols[ "blue-min" ]  = 1000;
+  cols[ "blue-max" ]  = -1;
+  for ( unsigned i = 0; i < 10000; i++ ) {
+    QwtSymbol::Style typeMarker;
+    QColor           color;
+    Qt::PenStyle     typeLine;
+    myPlot->getNextMarker( typeMarker, color, typeLine );
+    if ( mars.contains(typeMarker) )
+      mars[ typeMarker ] = mars[ typeMarker ]+1;
+    else
+      mars[ typeMarker ] = 0;
+    if ( lins.contains(typeLine) )
+      lins[ typeLine ] = lins[ typeLine ]+1;
+    else
+      lins[ typeLine ] = 0;
+    if ( cols[ "red-max" ] < color.red() )
+      cols[ "red-max" ] = color.red();
+    if ( cols[ "red-min" ] > color.red() )
+      cols[ "red-min" ] = color.red();
+    if ( cols[ "green-max" ] < color.green() )
+      cols[ "green-max" ] = color.green();
+    if ( cols[ "green-min" ] > color.green() )
+      cols[ "green-min" ] = color.green();
+    if ( cols[ "blue-max" ] < color.blue() )
+      cols[ "blue-max" ] = color.blue();
+    if ( cols[ "blue-min" ] > color.blue() )
+      cols[ "blue-min" ] = color.blue();
+  }
+  for (IList::Iterator it = mars.begin();  it != mars.end(); ++it)
+    MESSAGE("markers( " << it.key() << ") = " << it.data() );
+  for (IList::Iterator it = lins.begin();  it != lins.end(); ++it)
+    MESSAGE("lines( " << it.key() << ") = " << it.data() );
+  for (SList::Iterator it = cols.begin();  it != cols.end(); ++it)
+    MESSAGE("colors( " << it.key() << ") = " << it.data() );
+#endif
+  
   Plot2d_SetupViewDlg* dlg = new Plot2d_SetupViewDlg( this, true );
   dlg->setMainTitle( myTitleEnabled, myTitle );
   dlg->setXTitle( myXTitleEnabled, myXTitle );
@@ -905,6 +1046,32 @@ void Plot2d_ViewFrame::onSettings()
   }
   delete dlg;
 }
+/*!
+  "Fit Data" command slot
+*/
+void Plot2d_ViewFrame::onFitData()
+{
+  Plot2d_FitDataDlg* dlg = new Plot2d_FitDataDlg( this );
+  int ixMin = myPlot->canvasMap( QwtPlot::xBottom ).i1();
+  int ixMax = myPlot->canvasMap( QwtPlot::xBottom ).i2();
+  int iyMin = myPlot->canvasMap( QwtPlot::yLeft ).i1();
+  int iyMax = myPlot->canvasMap( QwtPlot::yLeft ).i2();
+  double xMin = myPlot->invTransform(QwtPlot::xBottom, ixMin);
+  double xMax = myPlot->invTransform(QwtPlot::xBottom, ixMax);
+  double yMin = myPlot->invTransform(QwtPlot::yLeft, iyMin);
+  double yMax = myPlot->invTransform(QwtPlot::yLeft, iyMax);
+  
+  dlg->setRange( xMin, xMax, yMin, yMax );
+  if ( dlg->exec() == QDialog::Accepted ) {
+    int mode = dlg->getRange( xMin, xMax, yMin, yMax );
+    if ( mode == 0 || mode == 2 ) 
+      myPlot->setAxisScale( QwtPlot::yLeft, yMax, yMin );
+    if ( mode == 0 || mode == 1 ) 
+      myPlot->setAxisScale( QwtPlot::xBottom, xMin, xMax ); 
+    myPlot->replot();
+  }
+  delete dlg;
+}
 /*!
   Sets curve type
 */
@@ -994,7 +1161,16 @@ void Plot2d_ViewFrame::setMarkerSize( const int size, bool update )
 void Plot2d_ViewFrame::setBackgroundColor( const QColor& color )
 {
   myBackground = color;
-  myPlot->setCanvasBackground( myBackground );
+  //myPlot->setCanvasBackground( myBackground );
+  myPlot->canvas()->setPalette( myBackground );
+  myPlot->setPalette( myBackground );
+  QPalette aPal = myPlot->getLegend()->palette();
+  for ( int i = 0; i < QPalette::NColorGroups; i++ ) {
+    QPalette::ColorGroup cg = (QPalette::ColorGroup)i;
+    aPal.setColor( cg, QColorGroup::Base, myBackground );
+    aPal.setColor( cg, QColorGroup::Background, myBackground );
+  }
+  myPlot->getLegend()->setPalette( aPal );
 }
 /*!
   Gets background color
@@ -1335,11 +1511,45 @@ void Plot2d_Plot2d::replot()
   updateLayout();  // to fix bug(?) of Qwt - view is not updated when title is changed
   QwtPlot::replot(); 
 }
+/*!
+  Checks if two colors are close to each other [ static ]
+  uses COLOR_DISTANCE variable as max tolerance for comparing of colors
+*/
+const long COLOR_DISTANCE = 100;
+const int  MAX_ATTEMPTS   = 10;
+static bool closeColors( const QColor& color1, const QColor& color2 )
+{
+  long tol = abs( color2.red()   - color1.red() ) + 
+             abs( color2.green() - color1.green() ) +
+            abs( color2.blue()  - color1.blue() );
+
+  return ( tol <= COLOR_DISTANCE );
+}
 /*!
   Gets new unique marker for item if possible
 */
 void Plot2d_Plot2d::getNextMarker( QwtSymbol::Style& typeMarker, QColor& color, Qt::PenStyle& typeLine ) 
 {
+  bool bOk = false;
+  int cnt = 1;
+  while ( !bOk ) {
+    int aRed    = (int)( 256.0 * random() / RAND_MAX);    // generate random color
+    int aGreen  = (int)( 256.0 * random() / RAND_MAX);    // ...
+    int aBlue   = (int)( 256.0 * random() / RAND_MAX);    // ...
+    int aMarker = (int)( 9.0 * random() / RAND_MAX) + 1;  // 9 markers types ( not including empty )
+    int aLine   = (int)( 5.0 * random() / RAND_MAX) + 1;  // 5 line types ( not including empty )
+
+    typeMarker = ( QwtSymbol::Style )aMarker;
+    color      = QColor( aRed, aGreen, aBlue );
+    typeLine   = ( Qt::PenStyle )aLine;
+
+    cnt++;
+    if ( cnt == MAX_ATTEMPTS )
+      bOk = true;
+    else
+      bOk = !existMarker( typeMarker, color, typeLine );
+  }
+/*
   static int aMarker = -1;
   static int aColor  = -1;
   static int aLine   = -1;
@@ -1398,6 +1608,7 @@ void Plot2d_Plot2d::getNextMarker( QwtSymbol::Style& typeMarker, QColor& color,
       }
     }
   }
+*/
 }
 /*!
   Checks if marker belongs to any enitity
@@ -1408,16 +1619,18 @@ bool Plot2d_Plot2d::existMarker( const QwtSymbol::Style typeMarker, const QColor
   QArray<long> keys = curveKeys();
   QColor aRgbColor;
 
+  if ( closeColors( color, backgroundColor() ) )
+      return true;
   for ( int i = 0; i < keys.count(); i++ ) {
     QwtPlotCurve* crv = curve( keys[i] );
     if ( crv ) {
       QwtSymbol::Style aStyle = crv->symbol().style();
       QColor           aColor = crv->pen().color();
       Qt::PenStyle     aLine  = crv->pen().style();
-      if ( aStyle == typeMarker && aColor == color && aLine == typeLine )
+//      if ( aStyle == typeMarker && aColor == color && aLine == typeLine )
+      if ( aStyle == typeMarker && closeColors( aColor,color ) && aLine == typeLine )
        return true;
     }
   }
   return false;
 }
-
index 9b611874fef48445450857f1220296d8ab99fdce..5dddcc5dfa85b02deaf47f7c01b9d65e64739e84 100644 (file)
@@ -1,9 +1,10 @@
-//  File      : Plot2d_ViewFrame.h
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Plot2d_ViewFrame.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef Plot2d_ViewFrame_H
 
 #include "QAD_ViewFrame.h"
 #include "QAD_Popup.h"
+#include "QAD_Action.h"
 #include "Plot2d_Curve.h"
 #include "Plot2d_CurveContainer.h"
 #include <qmainwindow.h>
-#include <qaction.h>
 #include <qmap.h>
 #include <qintdict.h>
 #include <qwt_plot.h>
@@ -33,7 +34,7 @@ class QAD_EXPORT Plot2d_ViewFrame : public QAD_ViewFrame, public QAD_PopupClient
 
   enum { NoOpId, FitAllId, FitAreaId, ZoomId, PanId, DumpId, 
         ModeXLinearId, ModeXLogarithmicId, ModeYLinearId, ModeYLogarithmicId,
-        LegendId, CurvePointsId, CurveLinesId, CurveSplinesId, SettingsId };
+        LegendId, CurvePointsId, CurveLinesId, CurveSplinesId, SettingsId, FitDataId };
 public:
   /* Construction/destruction */
   Plot2d_ViewFrame( QWidget* parent, const QString& title = "" );
@@ -143,6 +144,7 @@ public slots:
   void    onLegend();
   void    onCurves();
   void    onSettings();
+  void    onFitData();
 
 protected slots:
   void    onLegendClicked( long key );
@@ -152,7 +154,7 @@ protected slots:
 
 private:
   Plot2d_Plot2d*               myPlot;
-  QMap<int, QAction*>          myActions;
+  ActionMap                    myActions;
   int                          myOperation;
   QPoint                       myPnt;
   CurveDict                    myCurves;
index 8741408488592c90e94260407b6e27907516aacf..84293466eb077e1acc9394cc41e3aa8550c7e69a 100644 (file)
@@ -1,17 +1,35 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME Registry : Registry server implementation
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
-VPATH=.:@srcdir@:@top_srcdir@/idl:../Logger
+VPATH=.:@srcdir@:@top_srcdir@/idl
 
 
 @COMMENCE@
@@ -33,6 +51,5 @@ BIN_SRC = RegistryService.cxx
 BIN_SERVER_IDL = SALOME_Registry.idl
 
 LDFLAGS+= -lSalomeNS -lOpUtil -lSalomeLoggerServer
-CPPFLAGS+= -I../Logger
 
 @CONCLUDE@
index 59073d9cdc20ba55e3e6a40dde3f9d6b13873ba3..e11f5a2218f15016877378cb954d0ad1c9cc52cf 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : RegistryConnexion.cxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegistryConnexion.cxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 using namespace std;
 # include "Utils_ORB_INIT.hxx"
 # include "RegistryConnexion.hxx"
index da87c4bae60fa9cc5d86cde7d8cbff01079a01b6..6f2509258fafd95c6843b07487182d8e86163ad0 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : RegistryConnexion.hxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegistryConnexion.hxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 /*
        RegistryConnexion should be used by an engine to add or to remove a component.
index ff216e7515261abb7529778407e551f93954c0e5..94dfa3034bdebf27ec451f515e6baa6d8ca54a4e 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : RegistryService.cxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegistryService.cxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 using namespace std;
 # include "RegistryService.hxx"
 # include "OpUtil.hxx"
index d90fa46527048f6e26a10884ab1021593f5ef219..0144b59b36797a446f62a71580fd41c28468cf00 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : RegistryService.hxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegistryService.hxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 # ifndef __RegistryService_h__
 # define __RegistryService_h__
index b917ec29f1ccf53ba5133995b5b1e0b3d2ce7170..6cba1c7d8c2374c90d80cc302a21ca43862864e3 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Registry_Server.cxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Registry_Server.cxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 # include <stdlib.h>
 # include <iostream.h>
 # include <fstream.h>
@@ -26,6 +45,11 @@ extern "C"
 # include "SALOME_NamingService.hxx"
 # include "RegistryService.hxx"
 
+//#define CHECKTIME
+#ifdef CHECKTIME
+#include <Utils_Timer.hxx>
+#endif
+
 int main( int argc , char **argv )
 {
        BEGIN_OF( argv[0] )
@@ -98,6 +122,13 @@ int main( int argc , char **argv )
 
                        // Lancement de l'ORB
                        MESSAGE("Lancement de l'ORB") ;
+#ifdef CHECKTIME
+                       Utils_Timer timer;
+                       timer.Start();
+                       timer.Stop();
+                       MESSAGE("SALOME_Registry_Server.cxx - orb->run()");
+                       timer.ShowAbsolute();
+#endif
                        orb->run() ;
                }
                catch( const CORBA::Exception &ex )
index 200d622410342495d8f9a14ef05954cab17eb030..3d8b682cc3014e739e7588d20c382ffae544426f 100644 (file)
@@ -1,12 +1,32 @@
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HelpWindow.cxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
+
 using namespace std;
-//=============================================================================
-// File      : HelpWindow.cxx
-// Created   : Thu Dec 20 17:28:49 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
 # include "HelpWindow.hxx"
 # include "utilities.h"
 
index 3656385a22956bed23049c76f2af6cf88944f191..6f7a9d4aefa13c06f59161ae5ab08cb84237077d 100644 (file)
@@ -1,11 +1,31 @@
-//=============================================================================
-// File      : HelpWindow.hxx
-// Created   : Thu Dec 20 17:28:41 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : HelpWindow.hxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
+
 # ifndef __HELPWINDOW_H__
 # define __HELPWINDOW_H__
 
index 14a0255a6cf2814e56a6d94978d677d86939e736..9f1a5d212f3b70997bc0e7f6b1b90962c4e66d30 100644 (file)
@@ -1,8 +1,12 @@
-// File:       IntervalWindow.cxx
-// Created:    Thu Apr  3 10:55:19 2003
-// Author:     Oksana TCHEBANOVA
-//             <ota@parcex.nnov.matra-dtv.fr>
-
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : IntervalWindow.cxx
+//  Author : Oksana TCHEBANOVA
+//  Module : SALOME
 
 #include <IntervalWindow.hxx>
 
index 63384403c91ca7c56ae429031d4e1f461ea5f739..c5a2b0f79e5932e6a01897680aff26d023105805 100644 (file)
@@ -1,8 +1,12 @@
-// File:       IntervalWindow.hxx
-// Created:    Thu Apr  3 10:31:10 2003
-// Author:     Oksana TCHEBANOVA
-//             <ota@parcex.nnov.matra-dtv.fr>
-
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : IntervalWindow.hxx
+//  Author : Oksana TCHEBANOVA
+//  Module : SALOME
 
 #ifndef IntervalWindow_HeaderFile
 #define IntervalWindow_HeaderFile
index 13d2baaf567a4904575992288e5da52c9819b802..bc6e2ee584e157a792769260799760bea8235a9f 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : ven déc  7 15:16:49 CET 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME RegistryDisplay : GUI for Registry server implementation
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index fd1371b2949a93b510f6f05fb022978ab062b3a5..9d02d2f8cb0fec1f12c7240e1cdfafece9e2d0f0 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : RegWidget.cxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
-
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegWidget.cxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 # include <qpushbutton.h>
 # include <qlistview.h>
 # include <qtabwidget.h> 
index a1149f8c47bad83facf84c4d6fec44fcf6c3f17e..556d267271a6dcb5e24a98ae74526c593a7b91a0 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : RegWidget.hxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegWidget.hxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
 
 # ifndef __REGWIDGET_H__
 # define __REGWIDGET_H__
index 0c92d2dcbfe47d34af12c1e172267caf083fbf11..dcd0a27592c537811f26282495243064919f5bbc 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : RegWidgetFactory.cxx
-// Created   : Tue Nov 13 17:16:01 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME RegistryDisplay : GUI for Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : RegWidgetFactory.cxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 # include "RegWidget.hxx"
 # include "utilities.h"
 
index b6193a6f2ea2442db6a7107876f53e42d2eb1606..78694d0d0dd3778f088b46e7e4fceeb2f45188e6 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mer jui 11 06:50:44 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 1d3ce6129fd8fcbbb4efa98a0693301a85f4b683..c6a524cde0c5a6b02905ad3282a3ecfb060b654c 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_Client.cxx
+//  Module : SALOME
+
 using namespace std;
 /* $Header$ */
 
index 0a0937af0d359925a6efdf80edec3d953b90af7d..e82e54a2326d5fd20c6073262c1397a09ee8c834 100755 (executable)
@@ -1,11 +1,32 @@
-using namespace std;
-//File SALOME_RessourcesCatalog_Handler.cxx
-//Created: Fri Sept 07 2001
-//Author: Estelle Deville
-//Project: SALOME
-//Copyright: CEA/DEN/DM2S/LGLS
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_Handler.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //$Header$
 
+using namespace std;
 #define WRITE_RESSOURCES_TYPE
 #include "SALOME_RessourcesCatalog_Handler.hxx"
 
@@ -183,7 +204,7 @@ SALOME_RessourcesCatalog_Handler::endElement(const QString&, const QString&,
 //----------------------------------------------------------------------
 bool SALOME_RessourcesCatalog_Handler::characters(const QString& chars)
 {
-  content = chars ;
+  content = (const char *)chars ;
   return true;
 }
 
index 8a40f09f9ef50ee1571f03a0feffe68be386790b..eaae9def9e903b7924109a52d89c7d31b6b30f17 100755 (executable)
@@ -1,8 +1,29 @@
-//File SALOME_RessourcesCatalog_Handler.hxx
-//Created: Fri Sept 07 2001
-//Author: Estelle Deville
-//Project: SALOME
-//Copyright: CEA/DEN/DM2S/LGLS
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_Handler.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //$Header$
 
 #ifndef SALOME_RESSOURCES_CATALOG_HANDLER
index e0ab101560c98a704a34a9542b9d6b8d3f02883a..b32e4c31204634a1418113ce6c0b5ba1f4c6aea1 100755 (executable)
@@ -1,8 +1,29 @@
-//File SALOME_RessourcesCatalog_Parser.hxx
-//Created: Fri Sept 07 2001
-//Author: Estelle Deville
-//Project: SALOME
-//Copyright: CEA/DEN/DM2S/LGLS
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_Parser.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //$Header$
 
 #ifndef SALOME_RESSOURCES_CATALOG_PARSER
index 6208f0d62329034a8205c59d7bab9948e9c76017..519f0b8453835f1b42505d28ce5424fcf9750fc9 100644 (file)
@@ -1,10 +1,32 @@
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_Server.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
+
 using namespace std;
-// File: SALOME_RessourcesCatalog_Server.cxx
-// Created: Mon Sep 10 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
 #include <iostream.h>
 #include "SALOME_NamingService.hxx"
 #include "SALOME_RessourcesCatalog_impl.hxx"
index 2d9806ba96d6e0b447d1daa4e389363281837f48..d0d27774964a6d7cdb9f8b34bc293bef25081a88 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-// File: SALOME_RessourcesCatalog_impl.cxx
-// Created: Mon Sep 10 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header $
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_impl.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
 
+using namespace std;
 #include "SALOME_RessourcesCatalog_impl.hxx"
 #include <fstream>
 
index 8b6e8d090ca4d303cd43fa245dc90c26e1185bb9..4b8c5228ad3b70fad66a47a28f3c2025b6d3a2ce 100644 (file)
@@ -1,10 +1,30 @@
-// File: SALOME_RessourcesCatalog_impl.hxx
-// Created: Mon Sep 10 2001
-// Author: Estelle Deville
-// Project: SALOME
-// Copyright : CEA/DEN/DMSS/LGLS
-// $Header$
-
+//  SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_RessourcesCatalog_impl.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
+//  $Header$
 
 #ifndef RESSOURCESCATALOG_IMPL_H
 #define RESSOURCESCATALOG_IMPL_H
index 80b11fdbe2c24ed939fb9ad22f230b263a1f78b6..602b7cd9cf6ac9a9984300902c0acd9c504388a6 100644 (file)
@@ -1,10 +1,12 @@
-//  File      : Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
 #define _Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
index 9ce140860cf22f611ccd9146544ddf2ce3de74a8..911d848a248126098cae363f1987cb94bf352807 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
index bbc921bc1a20c31cbdd4ef91962abc3608eb43c0..4dda1d7498b32fa339f9f9790d1091a8a03ac5db 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_DrawableAttribute.hxx
-//  Created   : Tue Jul 09 16:42:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_DrawableAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_DrawableAttribute_HeaderFile
index c4f0cdad10a65e092e0d3b7b4e84afa96403a7d2..53a6737fe1232f5cfa339462888c8ec7b1d931f8 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_ExpandableAttribute.hxx
-//  Created   : Tue Jul 09 16:42:12 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_ExpandableAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_ExpandableAttribute_HeaderFile
index 1a8f9876a4045c2674e8fe535937af7dede6b19a..f6aa0d25fda6237bda4f9fea09da41ae729c5df1 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_IORAttribute.hxx
-//  Created   : Thu Nov 29 20:59:28 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_IORAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_IORAttribute_HeaderFile
index 9afd1b12c932f4adc6d44786e5c80beb667c0ad6..dd2c6f14af97607c035f2c69c524101f2988b75f 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_LocalIDAttribute.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_LocalIDAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _Handle_SALOMEDS_LocalIDAttribute_HeaderFile
index 49ff8f33f1d0579f21ef3011860cb24f4a0f3d01..d7d0266463dcfaf69331bf829b5eeb27e916b696 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_OCAFApplication.hxx
-//  Created   : Thu Nov 29 20:59:51 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_OCAFApplication.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_OCAFApplication_HeaderFile
index 4894b204f13be8f5f77c8e1d1b4b19b14c7a9659..bde4cdda28246a8a2ca45320fd4ee7cfd2bbff1c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_OpenedAttribute.hxx
-//  Created   : Tue Jul 09 16:42:38 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_OpenedAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_OpenedAttribute_HeaderFile
index a0bbeabe5a7c953a53f38ae082a22d52a166e232..8747c1b186cb0bdf4fe1f5b24a6241e50b71ad9a 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_PersRefAttribute.hxx
-//  Created   : Thu Nov 29 21:00:10 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_PersRefAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_PersRefAttribute_HeaderFile
index 27eba74a525a35f468ec1435d25c3b3267425ab6..98ee57daaadde0b7b6133d51aab5dce587120305 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_PixMapAttribute.hxx
-//  Created   : Tue Jul 09 16:42:46 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_PixMapAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_PixMapAttribute_HeaderFile
index 9e724507bc8f4d49b7780cdc08bd23928b1b678e..44e07140872d5844ed59aafc689e8e040b03cdbf 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : Handle_SALOMEDS_PythonObjectAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Handle_SALOMEDS_PythonObjectAttribute.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_PythonObjectAttribute_HeaderFile
index fa7df67efa3f344e64f920c9da0e612826357559..a4ef0836fb4cf11dd37a56b2f06bdd563ffc1aca 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_SelectableAttribute.hxx
-//  Created   : Tue Jul 09 16:42:58 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_SelectableAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_SelectableAttribute_HeaderFile
index fa99d980ade64700c7f6045892188913a59c6877..05bc01b55f752980505ccb7eb202db379d5366c9 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx
-//  Created   : Fri Jul 05 10:55:49 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
index e7a9fb3a758ae2161379e20ee855c65dd2ee1f8c..b465e5b169db0752d537f033121f6a37d3992af1 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_SequenceOfRealAttribute.hxx
-//  Created   : Fri Jul 05 10:55:39 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_SequenceOfRealAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_SequenceOfRealAttribute_HeaderFile
index da160d92c620f9630b3bad0881f14db328764adb..58b445c21cab7cc25f262ff8637771613e40ad98 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : Handle_SALOMEDS_StudyPropertiesAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Handle_SALOMEDS_StudyPropertiesAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_StudyPropertiesAttribute_HeaderFile
index 49d2daa05b6e1c97a795c9df14a12fad97ebd9bc..7d4c4f46d70061c12f1af9b1ab0947ae6896a605 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : Handle_SALOMEDS_TableOfIntegerAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Handle_SALOMEDS_TableOfIntegerAttribute.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_TableOfIntegerAttribute_HeaderFile
index 19d01c16b60a1444fad35d14c0d3d8716f81e740..57433e13828a25dc41528615e245206379bcd5d9 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : Handle_SALOMEDS_TableOfRealAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Handle_SALOMEDS_TableOfRealAttribute.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_TableOfRealAttribute_HeaderFile
index 6c60e3c9393fe9981d65f760dbf97cfa51c36001..6b7b99dcaf060c73b0f6b4fc82ce7794224bbcf0 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : Handle_SALOMEDS_TableOfStringAttribute.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Handle_SALOMEDS_TableOfStringAttribute.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _Handle_SALOMEDS_TableOfStringAttribute_HeaderFile
 #define _Handle_SALOMEDS_TableOfStringAttribute_HeaderFile
index 79ddb45d2f65e50d688ea46a3b20b5701952989b..0c6eee09e407e3d3df08a7aca9e5a8b60c6910da 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_TargetAttribute.hxx
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_TargetAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _Handle_SALOMEDS_TargetAttribute_HeaderFile
index 9e879e4edb9924ebcd94509688f6e24f3cd87fe8..ce1dde253cd5fc907756dcddd56fb3a6c1f3c236 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_TextColorAttribute.hxx
-//  Created   : Wed Jul 10 12:52:50 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_TextColorAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_TextColorAttribute_HeaderFile
index 1ca7c5fe8a32c6d14e00b9694485c417df5ac9cc..d1574fc85fa916d4236b552ebb45f51059e1c41b 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : Handle_SALOMEDS_TextHighlightColorAttribute.hxx
-//  Created   : Wed Jul 10 12:52:57 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_TextHighlightColorAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Handle_SALOMEDS_TextHighlightColorAttribute_HeaderFile
index 523e9ed2cdc419a5c65e8676a3fc892e2a0dfa50..b8eebee5bd9fe1d50718544e617fedfa4017ce41 100644 (file)
@@ -1,18 +1,38 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Author    : Marc Tajchman
-#==============================================================================
+#  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Marc Tajchman
+#  Module : SALOME
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl:$(top_srcdir)/idl
 
 
 @COMMENCE@
 
-EXPORT_HEADERS = SALOMEDS_Tool.hxx 
 
 # Libraries targets
 
@@ -21,7 +41,6 @@ LIB_SRC =     \
                  SALOMEDS_StudyManager_i.cxx \
                  SALOMEDS_UseCaseBuilder_i.cxx \
                  SALOMEDS_UseCaseIterator_i.cxx \
-                 SALOMEDS_Tool.cxx \
                  SALOMEDS_ChildIterator_i.cxx \
                  SALOMEDS_SComponentIterator_i.cxx \
                  SALOMEDS_Study_i.cxx \
@@ -77,7 +96,7 @@ LIB_SRC =     \
                  SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx \
                  SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx \
                  SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx \
-                 SALOMEDS_DataMapStringLabel_0.cxx
+                 SALOMEDS_DataMapStringLabel_0.cxx 
 
 # Executables targets
 BIN = SALOMEDS_Server SALOMEDS_Client
@@ -88,7 +107,7 @@ BIN_CLIENT_IDL =
 
 CPPFLAGS+=$(OCC_INCLUDES) $(HDF5_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
-LDFLAGS+=$(OCC_LIBS) $(OGL_LIBS) $(HDF5_LIBS) -lSalomeNS -lSalomeHDFPersist -lOpUtil -lSalomeLoggerServer
+LDFLAGS+=$(CAS_KERNEL) $(CAS_OCAF) $(CAS_VIEWER) $(CAS_MODELER) $(HDF5_LIBS) -lTOOLSDS -lSalomeNS -lSalomeHDFPersist -lOpUtil -lSalomeLoggerServer
 # -L/opt/ccmalloc/lib -lccmalloc -ldl
 # -L/opt/efence/lib -lefence
 
index 5da7d7a0b041462c1945fa04603474373918257e..7c9d556336c9b0d2bdd55ba075c1b40b8e408dcc 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : SALOMEDS.cdl
-//  Created   : Wed Nov 28 12:08:48 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-//  $Header$
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 package SALOMEDS
 
index 23d13f4b10b6b51ec64bc82de765dde5ce7bd878..7bb09d0a9b1d101ac17a1841543f14b83d2d6de3 100644 (file)
@@ -1,15 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttLong_i.cxx
-//  Created   : Mon Jun 10 10:54:58 CEST 2002 
-//  Author    : Estelle Deville
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : CEA 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttLong_i.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //  $Header$
 
-
-
+using namespace std;
 #include "SALOMEDS_AttLong_i.hxx"
 #include "utilities.h"
 #include <TDF_Tool.hxx>
index fa46abd24cb8214082872b3da510acc773038ec4..27d6b5faf7267a8ba1164356e8f93394d39875ed 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_AttLong_i.hxx
-//  Created   : Mon Jun 10 10:54:50 CEST 2002 
-//  Author    : Estelle Deville
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : CEA 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttLong_i.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_ATTLONG_I_H__
index 2e2f920cf13d70e0554d24232eed033aed3f9c95..e144805466b1206e69775dd691ead6722398ecc8 100644 (file)
@@ -1,15 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttReal_i.cxx
-//  Created   : Mon Jun 10 10:54:58 CEST 2002 
-//  Author    : Estelle Deville
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : CEA 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttReal_i.cxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //  $Header$
 
-
-
+using namespace std;
 #include "SALOMEDS_AttReal_i.hxx"
 #include "utilities.h"
 #include <TDF_Tool.hxx>
index 35029f40a769c2250b6d596770ec21c3f7e63ba1..8e8eeeadef3e498d739f8921377302a42f9aec8f 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_AttReal_i.hxx
-//  Created   : Mon Jun 10 10:54:50 CEST 2002 
-//  Author    : Estelle Deville
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : CEA 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttReal_i.hxx
+//  Author : Estelle Deville
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_ATTREAL_I_H__
index e9de8eb4cf7199ba0e2410ba49ccac3d05be5ab5..f967482d801243435675aa8878be2fc7ba18c3b0 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeComment_i.cxx
-//  Created   : Fri Jul 05 14:55:07 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeComment_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeComment_i.hxx"
 
 #include <TCollection_ExtendedString.hxx>
index f2f1933c7b91dacb0484e1efd7d30e7b7ea25522..9ebeb45fd0e78a88760af204eae8d9976a2144e3 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : SALOMEDS_AttributeComment_i.hxx
-//  Created   : Fri Jul 05 10:57:20 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeComment_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeComment_i_HeaderFile
 #define SALOMEDS_AttributeComment_i_HeaderFile
 
index e439db0c83a76a16c86612752c6ee7fa57a5c957..903d1ead7163d02572bceb3ba467bcca14773885 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeDrawable_i.cxx
-//  Created   : Fri Jul 05 14:25:13 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeDrawable_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeDrawable_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index b91b8ac50a33e17d541ac806bc16bcbdfae7287f..80c71284faefe8c2727441c4f0af124a66e46c81 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeDrawable_i.hxx
-// Created:    Fri Jul  5 10:21:01 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeDrawable_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeDrawable_i_HeaderFile
 #define SALOMEDS_AttributeDrawable_i_HeaderFile
 
index c468b0660186e625e699e05d39c37ac0850f1bdc..1560deeaa55dd5795ce94a4447a8a057624592cb 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeExpandable_i.cxx
-//  Created   : Fri Jul 05 14:25:13 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeExpandable_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeExpandable_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index 2fcc43064f9d1a36cde2fbf44f33435b66ce1658..4ac190956316e03813fb48595c16fd87be7f81a1 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeExpandable_i.hxx
-// Created:    Fri Jul  5 10:21:01 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeExpandable_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeExpandable_i_HeaderFile
 #define SALOMEDS_AttributeExpandable_i_HeaderFile
 
index 60d55ad5b950b3b75f5282403b3057bae9629766..fd338ac711296ec816d9edf27f37af1b18a0fccb 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeIOR_i.cxx
-//  Created   : Fri Jul 05 15:17:19 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeIOR_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeIOR_i.hxx"
 
 
index bc5744edca405d4d07862bc0da5472826a88b2de..895ff7076662ae47af39a67e09527b87f017d6aa 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : SALOMEDS_AttributeIOR_i.hxx
-//  Created   : Fri Jul 05 10:57:09 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeIOR_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeIOR_i_HeaderFile
 #define SALOMEDS_AttributeIOR_i_HeaderFile
 
index 3a6932cd9bd2ceb7801f41fcd906f2aa297af668..d9f013db76ce4b7e51e874d561647b9b00ad2ca4 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeInteger_i.cxx
-//  Created   : Fri Jul 05 14:25:13 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeInteger_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeInteger_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index 2b24dcdc106c2b57c727105954a050abfac5709d..8e2a12f84058f76aa2174b51321f54573adf1d92 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeInteger_i.hxx
-// Created:    Fri Jul  5 10:21:01 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeInteger_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeInteger_i_HeaderFile
 #define SALOMEDS_AttributeInteger_i_HeaderFile
 
index 539f912fca2aed9235665501a6e2a818c6d2e878..0ed4628b837102fe5e497fdf727001f46652ee9d 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeLocalID_i.cxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeLocalID_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
+using namespace std;
 #include "SALOMEDS_AttributeLocalID_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index f5534d812d094fd191eb41a84fbf29809736773d..6340696db5c34df7fb6162d3526890b79ecbc365 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeLocalID_i.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeLocalID_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeLocalID_i_HeaderFile
 #define SALOMEDS_AttributeLocalID_i_HeaderFile
 
index 377559280310755b2ab7104e4c6625dd1c5c0758..415f71af3fe41d290c388819e22d1982ac559110 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeName_i.cxx
-//  Created   : Fri Jul 05 14:40:12 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeName_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeName_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
index 8e9c580e59576313ff0a63a213ac04ecf5d4d76e..c4c46509d915d28a5a7cd399971f875b6d1b0a9f 100644 (file)
@@ -1,10 +1,29 @@
-// File:       SALOMEDS_AttributeName_i.hxx
-// Created:    Fri Jul  5 10:21:51 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeName_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
 #ifndef SALOMEDS_AttributeName_i_HeaderFile
index ac20e1b6e1c7c5298260b32353ec1db69f6cd3a5..c202cb0431c6bc5608589c0dbdee4c290e27ceb5 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeOpened_i.cxx
-//  Created   : Fri Jul 05 14:25:13 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeOpened_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeOpened_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index 92028209704f4d7562251f7c0c7ccc8fd3eaea57..a5b08df3e57a99a20c2a639cb61daf9e7dbd64e9 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeOpened_i.hxx
-// Created:    Fri Jul  5 10:21:01 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeOpened_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeOpened_i_HeaderFile
 #define SALOMEDS_AttributeOpened_i_HeaderFile
 
index cc3b19ed32c42e6b3de307a74923901941701737..626ad9711e7130e340be59bb225bd03ca823a34b 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributePersistentRef_i.cxx
-//  Created   : Fri Jul 05 15:12:57 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributePersistentRef_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributePersistentRef_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
index 58131c54dbb389b378060af9b296c35b7e7addd9..0173a5e46b36b9cbd4553fde09132d22a428b5c8 100644 (file)
@@ -1,10 +1,29 @@
-// File:       SALOMEDS_AttributePersistentRef_i.hxx
-// Created:    Fri Jul  5 10:22:28 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributePersistentRef_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef SALOMEDS_AttributePersistentRef_i_HeaderFile
index b2dd7f6fe474e2476c4bf4207fe93c84aebde829..5015f16977adc6782f6def36e3a95f021a9df3c0 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributePixMap_i.cxx
-//  Created   : Fri Jul 05 14:38:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributePixMap_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributePixMap_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TCollection_AsciiString.hxx>
index 5a4d9af6aad8596809aca2d304b6e64245429bd6..3058b356a01d479d884d13e5867f94547fd0271b 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributePixMap_i.hxx
-// Created:    Fri Jul  5 10:21:15 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributePixMap_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
 #ifndef SALOMEDS_AttributePixMap_i_HeaderFile
 #define SALOMEDS_AttributePixMap_i_HeaderFile
 
index 83fec99bdcc1fa7e7eb2d4daed1db3486b710362..86f7a1ca49edff7386a51a68a8ffcaebc0256bc1 100644 (file)
@@ -1,12 +1,15 @@
-using namespace std;
-// File:       SALOMEDS_AttributePythonObject_i.cxx
-// Created:    Tue Oct  8 10:13:30 2002
-// Author:     Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributePythonObject_i.cxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_AttributePythonObject_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include <TColStd_HArray1OfCharacter.hxx>
index 16031ba177bedd7d6438ce5b0f3a22bf409f2362..d15d36649989c9e0a171a3b44a648f177264bbd5 100644 (file)
@@ -1,9 +1,12 @@
-// File:       SALOMEDS_AttributePythonObject_i.hxx
-// Created:    Tue Oct  8 10:13:30 2002
-// Author:     Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributePythonObject_i.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEDS_AttributePythonObject_i_HeaderFile
index ce3a90bf2bb3baaad202954da45d6f15890aefc3..fc5611c8e3a9ea28bb8dc1bd37e0f03f2423837b 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeReal_i.cxx
-//  Created   : Fri Jul 05 14:38:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeReal_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeReal_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index a5c1826744b662e6a2a748ce86dbe27ff3dc0206..a4399c9f7cc47b535c0823fc8bae8955b0c333cf 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeReal_i.hxx
-// Created:    Fri Jul  5 10:21:15 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeReal_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
 #ifndef SALOMEDS_AttributeReal_i_HeaderFile
 #define SALOMEDS_AttributeReal_i_HeaderFile
 
index 5630aaa1d026ef2bba1ff1b69ec42f8ff1ccd393..b526f3c997e3c23a0578e7b8b21ff936523e1589 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeSelectable_i.cxx
-//  Created   : Fri Jul 05 14:25:13 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeSelectable_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeSelectable_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
index 074c8ccf1b2a0ff269e8cbd4917de5101351e258..b9936d47b222ef8405df98a8bc5fc35e899a3eff 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeSelectable_i.hxx
-// Created:    Fri Jul  5 10:21:01 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeSelectable_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeSelectable_i_HeaderFile
 #define SALOMEDS_AttributeSelectable_i_HeaderFile
 
index b0e6ce2845447c67b84c3981cb5c3c51427201d0..61e08b1bd06b2a31e79a59a3522ed4e7c427c361 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeSequenceOfInteger_i.cxx
-//  Created   : Fri Jul 05 18:09:47 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeSequenceOfInteger_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeSequenceOfInteger_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfInteger.hxx>
index 256d89672901b77e1716f8b7f54aa9542f31cff3..ee0b71eefed7b1c41371b446b5cd70fe8bd2c9c9 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : SALOMEDS_AttributeSequenceOfInteger_i.hxx
-//  Created   : Fri Jul 05 10:57:25 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeSequenceOfInteger_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeSequenceOfInteger_i_HeaderFile
 #define SALOMEDS_AttributeSequenceOfInteger_i_HeaderFile
 
index caf8cfa7cffff314029330348130cc8083934b9b..8b48632b28472d113bb83b701a2ced6fe7f1ffbe 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeSequenceOfReal_i.cxx
-//  Created   : Fri Jul 05 17:28:29 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeSequenceOfReal_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeSequenceOfReal_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfReal.hxx>
index a7143d8b3df7542bd7caa2ef13923f9f7357b811..ded1a3584cab7711e927367cfd58fb907d3142b5 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : SALOMEDS_AttributeSequenceOfSequenceOfReal_i.hxx
-//  Created   : Fri Jul 05 10:57:32 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeSequenceOfSequenceOfReal_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeSequenceOfSequenceOfReal_i_HeaderFile
 #define SALOMEDS_AttributeSequenceOfSequenceOfReal_i_HeaderFile
 
index 074bd3c7f270af4f613854d2dc3fa977ace3eed1..1646f3db4398b0cda7098434d0d828cfd116f1be 100644 (file)
@@ -1,14 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeStudyProperties_i.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeStudyProperties_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeStudyProperties_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfExtendedString.hxx>
index c67a278a49b93329727cdc4c59056561dcc0c53f..95d30cb658a1936fdfb3fb5ae152e244c08d3cb8 100644 (file)
@@ -1,13 +1,14 @@
-// File:       SALOMEDS_AttributeStudyProperties_i.hxx
-// Created:    Tue Oct  8 10:13:30 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeStudyProperties_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeStudyProperties_i_HeaderFile
 #define SALOMEDS_AttributeStudyProperties_i_HeaderFile
 
index ffa2450528966a25bd081e6c0dbe0f8c9b64741e..f80457bb6614ff91ce1c41d689e8a0333d0037e1 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTableOfInteger_i.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeTableOfInteger_i.cxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeTableOfInteger_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfInteger.hxx>
index ff4ceba2d5cc0a55fafc37ff2f480f053a110fd5..c26bf5d9f98ecdf49917bb5bba94379153f93c88 100644 (file)
@@ -1,12 +1,14 @@
-//  File      : SALOMEDS_AttributeTableOfInteger_i.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeTableOfInteger_i.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeTableOfInteger_i_HeaderFile
 #define SALOMEDS_AttributeTableOfInteger_i_HeaderFile
 
index b44309dde58163be57a8a85528012d2c0ff4bcb2..432f42e5e4d54e09bde487c2e6fc478deef7045f 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTableOfReal_i.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeTableOfReal_i.cxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeTableOfReal_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfReal.hxx>
index 6f90f0552868d1be503aafb78fca93643789a9dd..63ba28ccb05354d8161abee9aff72527eba4fffe 100644 (file)
@@ -1,12 +1,14 @@
-//  File      : SALOMEDS_AttributeTableOfReal_i.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeTableOfReal_i.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEDS_AttributeTableOfReal_i_HeaderFile
 #define SALOMEDS_AttributeTableOfReal_i_HeaderFile
 
index 6b8a1f4f72d4f023d569eb1d565448d7e46e0678..262cdce8d479a8fef833ed3f8834f9ee686a81e0 100644 (file)
@@ -1,12 +1,14 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTableOfString_i.cxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeTableOfString_i.cxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
+using namespace std;
 #include <TCollection_ExtendedString.hxx>
 #include <TCollection_AsciiString.hxx>
 
@@ -307,22 +309,10 @@ SALOMEDS::TMPFile*  SALOMEDS_AttributeTableOfString_i::SaveToFile()
   Handle(SALOMEDS_TableOfStringAttribute) aTable = Handle(SALOMEDS_TableOfStringAttribute)::DownCast(_myAttr);
 
   ostrstream ostr;
-  string aString;
   aTable->ConvertToString(ostr);
-
-  aString = ostr.rdbuf()->str();
-
-  cout << " ######## STRLEN " << aString.size() << endl;
-
-  char* aBuffer = (char*)CORBA::string_dup(aString.c_str());
-  int aBufferSize = strlen((char*)aBuffer);
-
-  cout << " ####### STRLEN " << aBufferSize  << endl;
-
-  CORBA::Octet* anOctetBuf =  (CORBA::Octet*)aBuffer;
-
-  SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(aBufferSize, aBufferSize, anOctetBuf, 1);
-
+  CORBA::Octet* anOctetBuf =  (CORBA::Octet*)ostr.rdbuf()->str();
+  unsigned long aSize = ostr.pcount();
+  SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(aSize, aSize, anOctetBuf, 1);
   return aStreamFile._retn();
 }
 
index 74f1713b31c407e07916e5e25061ab949bc90630..0368c59c5fdd92cb8030ccdecdda347e6cfcc072 100644 (file)
@@ -1,10 +1,12 @@
-//  File      : SALOMEDS_AttributeTableOfString_i.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_AttributeTableOfString_i.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef SALOMEDS_AttributeTableOfString_i_HeaderFile
 #define SALOMEDS_AttributeTableOfString_i_HeaderFile
index f2a89990d9c041547b6c20f72a0d4ed49aad5ac9..f5f35cc7ba1bc9da8f08015e65503781370ba99b 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTarget_i.cxx
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTarget_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
+using namespace std;
 #include "SALOMEDS_AttributeTarget_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TDF_LabelList.hxx>
@@ -24,6 +42,8 @@ SALOMEDS::Study::ListOfSObject* SALOMEDS_AttributeTarget_i::Get() {
   TDF_LabelList aLList;
   SALOMEDS::Study::ListOfSObject_var aSList = new SALOMEDS::Study::ListOfSObject;
   (Handle(SALOMEDS_TargetAttribute)::DownCast(_myAttr))->Get(aLList);
+  if (aLList.Extent() == 0) 
+    return aSList._retn();
   aSList->length(aLList.Extent());
   TDF_ListIteratorOfLabelList anIter(aLList);
   int index;
index 9a9f0d476711d67cf69cf4166930ed81c5a15aa2..14228b4d819597f6e81428d766e48af4e06a0b97 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeTarget_i.hxx
-//  Created   : Fri Aug 16 10:20:05 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTarget_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeTarget_i_HeaderFile
 #define SALOMEDS_AttributeTarget_i_HeaderFile
 
index 247669f6b1a08b14b32bc5793da7d72bf8174ce8..0f040990c55162ec8d56487ac0c23841b07729ee 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTextColor_i.cxx
-//  Created   : Fri Jul 05 14:38:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTextColor_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeTextColor_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HArray1OfReal.hxx>
index 536058e45bbe6909ba5ce9fd232bd6b979623a2e..f03c98b9e9ddf4f74e204e88a7666e7a900e7149 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeTextColor_i.hxx
-// Created:    Fri Jul  5 10:21:15 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTextColor_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
 #ifndef SALOMEDS_AttributeTextColor_i_HeaderFile
 #define SALOMEDS_AttributeTextColor_i_HeaderFile
 
index ea12dac63dd32d07648fef4e32b7cb1c3044138a..9ba430ba897524b118378b059a0ffab0b703f4f5 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTextHighlightColor_i.cxx
-//  Created   : Fri Jul 05 14:38:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTextHighlightColor_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_AttributeTextHighlightColor_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HArray1OfReal.hxx>
index 194fd0d98137f5ccb995ed4cf70bae3e521d7154..2b7e487dcc2140af489159292f24f2f6fb5266f6 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeTextHighlightColor_i.hxx
-// Created:    Fri Jul  5 10:21:15 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTextHighlightColor_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
 #ifndef SALOMEDS_AttributeTextHighlightColor_i_HeaderFile
 #define SALOMEDS_AttributeTextHighlightColor_i_HeaderFile
 
index cb589bb5da2665da2121d520053171bed969f7d9..11d326b5c7b4b73550a7e002a59586981a8dd480 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeTreeNode_i.cxx
-//  Created   : Fri Aug 02 14:25:13 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTreeNode_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
+using namespace std;
 #include "SALOMEDS_AttributeTreeNode_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include "utilities.h"
index 10b3ef378a967cb55cb1114a273d0c2f1178dad5..c8bda02dc64c312f9b277745a0f5d2d7a3b9c365 100644 (file)
@@ -1,13 +1,31 @@
-// File:       SALOMEDS_AttributeTreeNode_i.hxx
-// Created:    Fri Aug  2 10:21:01 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeTreeNode_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
-
 #ifndef SALOMEDS_AttributeTreeNode_i_HeaderFile
 #define SALOMEDS_AttributeTreeNode_i_HeaderFile
 
index 8aa84f8ab79b9362222f7962e94d0cca63a86186..632d95beb9e6a3317e475200ca4fab4a9d1d9c21 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_AttributeName_i.cxx
-//  Created   : Tue Aug 13 15:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeName_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
-
+using namespace std;
 #include "SALOMEDS_AttributeUserID_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
index 85360295367885919ff031423473df7672aba4f8..662d21ecad3adadcea79b709fc479fd15e4ac23f 100644 (file)
@@ -1,10 +1,29 @@
-// File:       SALOMEDS_AttributeUserID_i.hxx
-//  Created   : Tue Aug 13 15:05:03 2002
-// Author:     Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_AttributeUserID_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:
 
 #ifndef SALOMEDS_AttributeUserID_i_HeaderFile
index d110bfe4a433025332bac4daafb1fe2fa1b54521..bd83af147d6b99f0b659e487c85428da0e4d2e0b 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOMEDS_BasicAttributeFactory.cxx
-// Created   : ven mai 31 13:45:47 CEST 2002
-// Author    : Estelle Deville, CEA
-// Project   : SALOME
-// Copyright : CEA 2002
-// $Header$
-//=============================================================================
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_BasicAttributeFactory.cxx
+//  Author : Estelle Deville, CEA
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOMEDS_BasicAttributeFactory.hxx"
 #include "utilities.h"
 
index 1f78de676a12a2996496301d078cdd07ff80a30e..9ae6f0ea34fbcc37460993d73596eb50a34614bc 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOMEDS_BasicAttributeFactory.hxx
-// Created   : ven mai 31 13:45:47 CEST 2002
-// Author    : Estelle Deville, CEA
-// Project   : SALOME
-// Copyright : CEA 2002
-// $Header$
-//=============================================================================
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_BasicAttributeFactory.hxx
+//  Author : Estelle Deville, CEA
+//  Module : SALOME
+//  $Header$
 
 #ifndef _BASIC_ATTRIBUTEFACTORY_HXX_
 #define _BASIC_ATTRIBUTEFACTORY_HXX_
index 8f0e67fb3fdd5e3e51664415b9cd4e2a3f72cf6f..cedaec93afe9b6e93e168c11c6ead32a0699e1b5 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOMEDS_BasicAttribute_i.cxx
-// Created   : ven mai 31 13:45:47 CEST 2002
-// Author    : Estelle Deville, CEA
-// Project   : SALOME
-// Copyright : CEA 2002
-// $Header$
-//=============================================================================
-
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_BasicAttribute_i.cxx
+//  Author : Estelle Deville, CEA
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOMEDS_BasicAttribute_i.hxx"
 
 //============================================================================
index dad4c6dd803d0914b564f55bd63e0e4b691dd101..9d1ffedc02ec8b7cbe8a0cd3168be09c87f3637d 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOMEDS_BasicAttribute_i.hxx
-// Created   : ven mai 31 13:45:47 CEST 2002
-// Author    : Estelle Deville, CEA
-// Project   : SALOME
-// Copyright : CEA 2002
-// $Header$
-//=============================================================================
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_BasicAttribute_i.hxx
+//  Author : Estelle Deville, CEA
+//  Module : SALOME
+//  $Header$
 
 #ifndef _BASIC_ATTRIBUTE_I_HXX_
 #define _BASIC_ATTRIBUTE_I_HXX_
index 29569168cf0460375953cc4bfd290ca93bdebdc1..572ba5b401fbb12c22c0195baf02d9be95d86398 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_Study_i.hxx
-//  Created   : Wed Feb 26 11:27:37 2003
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2003
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_Study_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 
 #ifndef __SALOMEDS_CALLBACK_I_H__
 #define __SALOMEDS_CALLBACK_I_H__
index 7feabbddd4d8e8943b4ef6b710aac53e14c1c84c..9475797213a13086dc890bd2011a2ffd3ff25743 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_ChildIterator_i.cxx
-//  Created   : Wed Nov 28 16:15:25 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_ChildIterator_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_ChildIterator_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include "utilities.h"
index af35c73b62fb224620fdb43454b3d00a60850a2f..d7bdcac51ed84d04365e162550f3b6e543872f2c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_ChildIterator_i.hxx
-//  Created   : Wed Nov 28 16:20:12 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_ChildIterator_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_CHILDITERATOR_I_H__
index 94d5ad1b6ed2599c22c0f9775d469fe0669c82ec..aa39a9f526eb935fa043f095df9f9168077e65bd 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_Client.cxx
-//  Created   : Wed Nov 28 16:20:25 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_Client.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOMEDS)
 #include "SALOMEDS_StudyManager_i.hxx"
@@ -261,8 +280,7 @@ int main(int argc, char** argv)
   try {
     // Initialise the ORB.
     CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "omniORB3");
-
-
+    omniORB::MaxMessageSize(100 * 1024 * 1024);
     
     // Obtain a reference to the root POA.
     CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
@@ -302,4 +320,3 @@ int main(int argc, char** argv)
   }
   return 0;
 }
-
index 51e787c384bb8ac9e3a31671b6f22975fade76fc..89eb9b96d5096cf53584acbba198ef083691efb5 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_HeaderFile
 #define _SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_HeaderFile
index 43061996b2a69943166705ce88812165e4207fb1..93812ac4e73b7f1b5120e472af024968dc1d5226 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #include <SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx>
 
index e4c551ae3d0af7cd121443052fd8bcdc06635619..21605525382911de6e10c5fe812464310d0d153e 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _SALOMEDS_DataMapIteratorOfDataMapStringLabel_HeaderFile
index 38e9a2964a34b55cc466e4ce2954500cc7b2fda3..080f4b79d48ca2d9c19fda6e563738ff0876019f 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx"
 
 #ifndef _Standard_NoSuchObject_HeaderFile
index f7a391f13d059f851aa39cd73558deccfb1e9265..bf2c70ce54696dc8f46d4a97eba691e302cea0ce 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
 #define _SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
index baae0cd2cea3a790cf79e780ed7d71bfb9b64e63..c40761b053a74e63427b0e4c972303534de0e6be 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #include <SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx>
 
index 54907ccaa931d9d9c6102d98f6feed9e783f6151..175205a6ebb186c114952dc615c8a2d1b1119fbe 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
index 00ab73f8aeba6fe4e41185bf1af249f651b3f789..2b063d4793412ae9152bd3678bedea9b7ae49af8 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index ab1a4242ff9e6d5b72d3e6d4744f7b868e13f5eb..d26c6d37629663130d9135bd9e96c2d1988afc61 100644 (file)
@@ -1,10 +1,12 @@
-//  File      : SALOMEDS_DataMapOfIntegerString.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_DataMapOfIntegerString.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _SALOMEDS_DataMapOfIntegerString_HeaderFile
 #define _SALOMEDS_DataMapOfIntegerString_HeaderFile
index a228fb154031ac1406de1b78aab7fdc92242f1d8..b14e2d8971b65b5ff47d49069b00da1b258fe61c 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_DataMapOfIntegerString_0.cxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_DataMapOfIntegerString_0.cxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #include <SALOMEDS_DataMapOfIntegerString.hxx>
 
index 9f3f6bd224713b2edc0a5c0882eb492ea24964b3..ef2ddbdffe60254561173ba612f0650972ea9e4d 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_DataMapStringLabel.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DataMapStringLabel.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _SALOMEDS_DataMapStringLabel_HeaderFile
index ae180416db88e107838c2fd5f0925a8d30ed85c8..4befe2030eebd461e8fa95577b2e31ef0ccbea46 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_DataMapStringLabel_0.cxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DataMapStringLabel_0.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_DataMapStringLabel.hxx"
 
 #ifndef _Standard_DomainError_HeaderFile
index 0f2d2de6929cf1600c751d1c3e0f6a212ca73390..dd8b2539682d60a0e2a2d1175931987025b44450 100644 (file)
@@ -1,14 +1,29 @@
-//  File      : SALOMEDS_DrawableAttribute.cdl
-//  Created   : Tue Jul 09 16:20:05 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
-//  $Header$
-
-
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_DrawableAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class DrawableAttribute from SALOMEDS inherits Integer from TDataStd
 
index 17aa0b1e3e381272a0cd280870680f52283b1e58..62bed2f1b9f3afdce81220e2f7338d3b2912f80c 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_DrawableAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DrawableAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:  
 
+using namespace std;
 #include "SALOMEDS_DrawableAttribute.ixx"
 #include <TDataStd_Integer.hxx>
 
index cd1ebf22cd6b162ed69a7057a7e2e38fb76b80fe..6bffe9e41458978ad918deae0a5b46b7adb36fcb 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_DrawableAttribute.hxx
-//  Created   : Tue Jul 09 16:44:15 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DrawableAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_DrawableAttribute_HeaderFile
index 8ad12ab52989b05dec2d15309dbcedcf33781e64..1a7b4047af3b492347d8eb6685212bc09940de07 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_DrawableAttribute.ixx
-//  Created   : Tue Jul 09 16:44:26 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DrawableAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_DrawableAttribute.jxx"
index d1e2ca053a52f87a3d5208e0f7a97aa9d8e84087..fbdf20b9ae3dafa7d75b3f0e66fc1d75c57e5ae4 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_DrawableAttribute.jxx
-//  Created   : Tue Jul 09 16:44:32 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_DrawableAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index fd9aa2c3970118635c85e590ceba813ee73ae60a..7b325db3db67742926b3bb98719cb4bdde731af7 100644 (file)
@@ -1,14 +1,29 @@
-//  File      : SALOMEDS_ExpandableAttribute.cdl
-//  Created   : Tue Jul 09 16:20:05 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
-//  $Header$
-
-
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_ExpandableAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class ExpandableAttribute from SALOMEDS inherits Integer from TDataStd
 
index 0431d819ceb0599c7bf304adb8bcf4adfc96f00d..ad3cc3c5d409bcab830503c3fb5b282415149c5a 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_ExpandableAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_ExpandableAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:  
 
+using namespace std;
 #include "SALOMEDS_ExpandableAttribute.ixx"
 #include <TDataStd_Integer.hxx>
 
index b9032d919e8a5624f7d610ad8d5f951164fc6439..118f356b43bd22dc61f5853c9d01d42985b59bba 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_ExpandableAttribute.hxx
-//  Created   : Tue Jul 09 16:44:57 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_ExpandableAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_ExpandableAttribute_HeaderFile
index 6ac5b2abdad0290624db295a073905373456a8bd..7000b202a853cbdff713680ab95e6a8b5daef351 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_ExpandableAttribute.ixx
-//  Created   : Tue Jul 09 16:45:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_ExpandableAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_ExpandableAttribute.jxx"
index c14cf6c92d8629b3059813fd4537b77c3b289862..8e7ac5daaf7689154b180a9721b84e7b830b5931 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_ExpandableAttribute.jxx
-//  Created   : Tue Jul 09 16:45:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_ExpandableAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index bbd790db6fa78f2d83f77b9500c04acc00e5a820..d3fc65e30d6ba44b0549b9106819195b67a3836c 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_GenericAttribute_i.cxx
-//  Created   : Fri Jul 05 15:49:37 2002
-//  Author    : Mikhail PONIKAROV
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_GenericAttribute_i.cxx
+//  Author : Mikhail PONIKAROV
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_StudyBuilder_i.hxx"
 
 void SALOMEDS_GenericAttribute_i::CheckLocked() throw (SALOMEDS::GenericAttribute::LockProtection) {
index 7fec24e58e88b765ec1ef5b41221000c7160eeb8..6d404b71942d8590f927665a9d94742a9d746be1 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_GenericAttribute_i.hxx
-//  Created   : Fri Jul 05 15:49:37 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_GenericAttribute_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _GENERIC_ATTRIBUTE_I_HXX_
index f3ac9146d8003b31fcabeebdb2fb9f0a0686e5ea..2f155a2baa7aad0cd93642eeb0c46c50dcca820e 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : SALOMEDS_IORAttribute.cdl
-//  Created   : Wed Nov 28 16:20:40 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header$
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_IORAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class IORAttribute from SALOMEDS inherits Comment from TDataStd
 
index 433da4a53e7fb31f45442c061be0523f7501dafe..c305641a4bdf3e533f876914d19d34a93298db3d 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_IORAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_IORAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_IORAttribute.ixx"
 #include <TDataStd_Comment.hxx>
 #include <TCollection_ExtendedString.hxx>
index fc5ae01e7897629a31ea5add4a21147a684687cd..5bd63c9add9fbe119b88ef808afab952c4095c8c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_IORAttribute.hxx
-//  Created   : Thu Nov 29 21:00:34 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_IORAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_IORAttribute_HeaderFile
index 2e7512e59fb619fda925b447c135d83383a8d90c..33b6734ff48de0aea8b20ddb8a4a2ace072fe43e 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_IORAttribute.ixx
-//  Created   : Thu Nov 29 21:00:52 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_IORAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_IORAttribute.jxx"
index b408ac969cc6c630dafacd92c67ee13975396cb7..d2799cba7b4e5a44477caa46fb429d5db8553913 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_IORAttribute.jxx
+//  Module : SALOME
+
 #ifndef _Standard_GUID_HeaderFile
 #include <Standard_GUID.hxx>
 #endif
index f7dd9130c6996600ba0bde3640902790118c83c7..ed2eb6c2ae51d84a4329ca34e89da73253f9e069 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_LocalIDAttribute.cdl
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
-//  $Header: 
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_LocalIDAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class LocalIDAttribute from SALOMEDS inherits Integer from TDataStd
 
index 6721670b85c748edba020c1b04a6c061f88ef2a4..9f8ece15c4a1e6324e68abc4aa80820457071875 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_LocalIDAttribute.cxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_LocalIDAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:  
 
+using namespace std;
 #include "SALOMEDS_LocalIDAttribute.ixx"
 #include <TDataStd_Integer.hxx>
 
index 34528430098f7031410447d75b9bfcd3666b6de1..6729106edc10fe923d471cbb3ad59b0d33599378 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_LocalIDAttribute.hxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_LocalIDAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _SALOMEDS_LocalIDAttribute_HeaderFile
index d754fe3f59f0ab3535df498a443f272700c7178e..f50e7b9c30eecabb022f517bd83f9ba8eb279218 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_LocalIDAttribute.ixx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_LocalIDAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #include "SALOMEDS_LocalIDAttribute.jxx"
index 7f33b3b4ad1a5a6cf47d270f14a26b751faf4de5..aa12fd1080c707bfe6fcbe805c1eeb5d6c43ddca 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_LocalIDAttribute.jxx
-//  Created   : Tue Aug 13 14:05:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_LocalIDAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _Standard_GUID_HeaderFile
index f303fc6ac4ce97adef2e97e8c127b45e544b01c9..118c2988c75a40c14039318648d1b7d6b9413b75 100644 (file)
@@ -1,9 +1,29 @@
--- File:       SALOMEDS_OCAFApplication.cdl
--- Created:    Fri Jun 29 12:19:49 2001
--- Author:     Yves FRICAUD
---             <yfr@claquox.paris1.matra-dtv.fr>
----Copyright:   OPEN CASCADE 2001
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_OCAFApplication.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class OCAFApplication from SALOMEDS  inherits Application from TDocStd
 
index 29afbcdd005dc4b95c323f0591f2438c5f7f73c3..e0c7ad35f595e60d809d4f1d7a139f1b72aa75e9 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_OCAFApplication.cxx
-//  Created   : Wed Nov 28 16:22:26 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OCAFApplication.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEDS_OCAFApplication.ixx"
 
 //=======================================================================
index 49201ec44825b8f36a3dc8400ce76a3d1020503a..57273253f695d1c461001bf133649f73a86e0a50 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_OCAFApplication.hxx
-//  Created   : Thu Nov 29 21:05:19 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OCAFApplication.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_OCAFApplication_HeaderFile
index e07ae8ad25041e170f9acc38afefb623706f39c3..272651bf4d8d4d46d9dc6d1da79957990ddf41ff 100644 (file)
@@ -1,11 +1,31 @@
-//  File      : SALOMEDS_OCAFApplication.ixx
-//  Created   : Thu Nov 29 21:01:58 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OCAFApplication.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
+
 #include "SALOMEDS_OCAFApplication.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 415a966ce5d92a52b773e8b090f61064dde75915..226dad19b326943d399f798c1f8770a1573c45a6 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OCAFApplication.jxx
+//  Module : SALOME
+
 #ifndef _TColStd_SequenceOfExtendedString_HeaderFile
 #include <TColStd_SequenceOfExtendedString.hxx>
 #endif
index 800556db81a08e1193dd6a5c539e8959c2c86012..f845a3423c8d17b031ffb4a332471b53e03bfda2 100644 (file)
@@ -1,14 +1,29 @@
-//  File      : SALOMEDS_OpenedAttribute.cdl
-//  Created   : Tue Jul 09 16:20:05 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
-//  $Header$
-
-
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_OpenedAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class OpenedAttribute from SALOMEDS inherits Integer from TDataStd
 
index e2648ce67680adf72701ecadbc2bd13576f754fa..d59512cdf8a52ed98b6254477056a7b088921100 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_OpenedAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OpenedAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:  
 
+using namespace std;
 #include "SALOMEDS_OpenedAttribute.ixx"
 #include <TDataStd_Integer.hxx>
 
index fc89f975dcc51657a297647e925c6286821b46d2..43fd81aac522f297fa6ba368272622987dfcc28f 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_OpenedAttribute.hxx
-//  Created   : Tue Jul 09 16:45:33 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OpenedAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_OpenedAttribute_HeaderFile
index 9cedd160557399798dded44fd4ea021fc13b58ee..175708b8479b074f2c44b490c5ab879343e86e8c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_OpenedAttribute.ixx
-//  Created   : Tue Jul 09 16:45:40 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OpenedAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_OpenedAttribute.jxx"
index 21d551e6d889ed4f351013caba1612a5dfa4ec42..fa0e2007db28345eb2c193be3a800b9d348f4110 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_OpenedAttribute.jxx
-//  Created   : Tue Jul 09 16:45:45 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_OpenedAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index 512b450b7f239b558faa0f73761a8ec32ebeb372..6807993f5b9964b6386358bccc97d32355e191ec 100644 (file)
@@ -1,11 +1,29 @@
-//  File      : SALOMEDS_PersRefAttribute.cdl
-//  Created   : Wed Nov 28 16:23:00 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header$
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_PersRefAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class PersRefAttribute from SALOMEDS inherits Comment from TDataStd
 
index c3025e6d79755b9a71dd7059f92e1b4d44b58e76..8e313831c5faf559f8b04404b553586968e34040 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_PersRefAttribute.cxx
-//  Created   : Wed Nov 28 16:23:19 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PersRefAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_PersRefAttribute.ixx"
 #include <TDataStd_Comment.hxx>
 #include <TCollection_ExtendedString.hxx>
index 9ed9968d1a4e6b00aadfc3891fd20e7262c5bc3f..786cdb09bceef5cb235e96b47828552e561bd120 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_PersRefAttribute.hxx
-//  Created   : Thu Nov 29 21:01:34 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PersRefAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_PersRefAttribute_HeaderFile
index 35d1622cb7f5538e6154a713f227443f32864742..7f993a153db5c308232edfd471c4e8ab2eda6564 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_PersRefAttribute.ixx
-//  Created   : Thu Nov 29 21:02:22 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PersRefAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_PersRefAttribute.jxx"
index 28557dc824e3d52b878153c0549bc7ed57e389ad..abd04a554a19d6ca63b1f8630f5d9a349d9442bd 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PersRefAttribute.jxx
+//  Module : SALOME
+
 #ifndef _Standard_GUID_HeaderFile
 #include <Standard_GUID.hxx>
 #endif
index e38db2890a58cdc8ef1b0da06999e14882f682a4..58491d14db1e8f539055f6fac2d8da0b322b4e7a 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : SALOMEDS_PixMapAttribute.cdl
-//  Created   : Wed Nov 28 16:20:40 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header:
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_PixMapAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class PixMapAttribute from SALOMEDS inherits Comment from TDataStd
 
index 13cdfc997282d4c4492c513b6ec18bb5338bbe3d..3fde4f60e595d279b96e94ace14e8866c9ccbdf2 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_PixMapAttribute.cxx
-//  Created   : Wed Nov 28 16:23:19 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PixMapAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_PixMapAttribute.ixx"
 #include <TDataStd_Comment.hxx>
 #include <TCollection_ExtendedString.hxx>
index 4186216be141b44360bf3ba1885b69677873bb27..d9f425f483d2326fdbb0b1698fe41185be1cd5c4 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_PixMapAttribute.hxx
-//  Created   : Tue Jul 09 16:46:08 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PixMapAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_PixMapAttribute_HeaderFile
index 69098369aef3bd0a60167b1aad326889f8b1a295..3848133af6c8d2464a1b88eed000d87123570d3a 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_PixMapAttribute.ixx
-//  Created   : Tue Jul 09 16:50:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PixMapAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_PixMapAttribute.jxx"
index 929fb03893ec18ffb08592a41a62424907e058d0..3eaadbffcbbc652e1498509ab52f79ca8750491e 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_PixMapAttribute.jxx
-//  Created   : Tue Jul 09 16:50:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_PixMapAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index 08833e57d418e20327863318a4ad66d8096f6327..145cd8c958cecb456a2213306f104521c20dc02c 100644 (file)
@@ -1,10 +1,12 @@
---  File      : SALOMEDS_PythonObjectAttribute.cdl
---  Created   : Tue Oct  8 10:13:30 2002
---  Author    : Michael Ponikarov
---  Project   : SALOME
---  Module    : SALOMEDS
---  Copyright : Open CASCADE
---  $Header$
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  CEA/DEN, EDF R&D
+--
+--
+--
+--  File   : SALOMEDS_PythonObjectAttribute.cdl
+--  Author : Michael Ponikarov
+--  Module : SALOME
 
 class PythonObjectAttribute from SALOMEDS inherits Attribute from TDF
 
index c84b4ecf9bf0c8acaefe1f65ab1066e6f6f4dd91..fd0538e0ed5aaf37ca0b2432033171209903b36e 100644 (file)
@@ -1,12 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_PythonObjectAttribute.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_PythonObjectAttribute.cxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_PythonObjectAttribute.ixx"
 #include <string>
 
index 4ec505f9ee7a2ee0c92036f956f9007048fdb72b..353c14763e72da788355d87d132fa77e50059a83 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_PythonObjectAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_PythonObjectAttribute.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_PythonObjectAttribute_HeaderFile
index ce6485efdc81d2440d17e5c11ab66471690eb5d0..fcb6d59a205bf9d4676558b29ed129fe57dd994b 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_PythonObjectAttribute.ixx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_PythonObjectAttribute.ixx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_PythonObjectAttribute.jxx"
index 09c06996865cfed484f5059b2b945ffe3cbaa183..1fefc3ef57b963b252d0d30b92a3fe743e9dc2e8 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_PythonObjectAttribute.jxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_PythonObjectAttribute.jxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _TColStd_HArray1OfCharacter_HeaderFile
index 848f7f34accd606c07d2b47af7d40cab9657ff78..d7c739be5be95ba2b846f0ec131b8d2b13037ce7 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SAttribute_i.hxx
-//  Created   : Thu Nov 29 21:02:46 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SAttribute_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_SATTRIBUTE_I_H__
index f757e29006e5462cec495f5d6d4c0a308c980af8..77b0b46554e7b8b02b1ee85f889af812839a028e 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_SComponentIterator_i.cxx
-//  Created   : Wed Nov 28 16:23:49 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SComponentIterator_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_SComponentIterator_i.hxx"
 
 
index 35a821d93fe4bc837bf87746074deb4b95ebc08b..7d3d29249885f2520a82b2b26bca1fe48a40b734 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SComponentIterator_i.hxx
-//  Created   : Wed Nov 28 16:24:22 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SComponentIterator_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_SCOMPONENTITERATOR_I_H__
index de76b6155d07198e3d93843cd150665f21fa134c..896859cca1bd7bb366e8d213a7dbe9aa3113bd20 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_SComponent_i.cxx
-//  Created   : Wed Nov 28 16:24:34 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SComponent_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEDS_SComponent_i.hxx"
 #include "utilities.h"
 
index 0d1f0a0d103237178a1c7b96b755d10772983895..9695e22507d7e4a0b3a848076bf812fc373dbf14 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SComponent_i.hxx
-//  Created   : Wed Nov 28 16:24:50 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SComponent_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_SCOMPONENT_I_H__
index 71b4c7bc07dea43da672ad81c8efa8ea98de2d3f..f9c00984eded0c70bf0307679b2198716a5a5cd2 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_SObject_i.cxx
-//  Created   : Thu Nov 29 21:03:39 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SObject_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "utilities.h"
 #include "SALOMEDS_SObject_i.hxx"
 //SALOMEDS Headers
@@ -472,7 +491,10 @@ SALOMEDS::ListOfAttributes* SALOMEDS_SObject_i::GetAllAttributes()
       else if (!Handle(TDataStd_TreeNode)::DownCast(anAttr).IsNull()) {
         SALOMEDS_AttributeTreeNode_i* Attr= new SALOMEDS_AttributeTreeNode_i(Handle(TDataStd_TreeNode)::DownCast(anAttr), _orb);
         anAttribute = Attr->AttributeTreeNode::_this();
-      } 
+      } else {
+       // references attributes, for an example, never returns
+       continue;
+      }
 
       SeqOfAttr[i] =  anAttribute;
       i++;
index e652be1f486e0b7b7bdf9863b0b412f410851fd3..be22a90b20bfa83b0911ec66342572cf51fea67f 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SObject_i.hxx
-//  Created   : Wed Nov 28 16:25:50 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SObject_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_SOBJECT_I_H__
index 4f052be1b54725eccd4f0fc54fce6ef1caa2f762..245b19b4fe4a6da1cbd497505dc7235eb93ccb7a 100644 (file)
@@ -1,14 +1,29 @@
-//  File      : SALOMEDS_SelectableAttribute.cdl
-//  Created   : Tue Jul 09 16:20:05 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
-//  $Header$
-
-
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_SelectableAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class SelectableAttribute from SALOMEDS inherits Integer from TDataStd
 
index 8f9d1992f0014da3d2a0730c0bbef9500d5d4912..241792584449218b9e0e6c8b7b2f84354cd29311 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_SelectableAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SelectableAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:  
 
+using namespace std;
 #include "SALOMEDS_SelectableAttribute.ixx"
 #include <TDataStd_Integer.hxx>
 
index a31f6f659147a80ad9abb9b8b4fb36767ebeaea7..0a5d5dcf7d4736b5f20c61f4d7caed98f14f9489 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SelectableAttribute.hxx
-//  Created   : Tue Jul 09 16:51:46 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SelectableAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_SelectableAttribute_HeaderFile
index b191249a2259b546ec0c5ddc8ba11589884d024f..52fa3f9e9b26c0d94e005c47ba77d490ecaf0b2c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SelectableAttribute.ixx
-//  Created   : Tue Jul 09 16:51:55 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SelectableAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_SelectableAttribute.jxx"
index 053dd0f44e506057f8821f77207baba726be8fdf..0e83b06bec5f3cd8cd765ff7b4dba7b175f9a30d 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SelectableAttribute.jxx
-//  Created   : Tue Jul 09 16:52:00 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SelectableAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index c252fe69161482f4a59531abf85b33feb381feff..4cd5b50effb9a2cd6c12bbdac7dfdf6fbd1842c6 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : SALOMEDS_SequenceOfIntegerAttribute.cdl
-//  Created   : Wed Nov 28 16:20:40 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header:
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_SequenceOfIntegerAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class SequenceOfIntegerAttribute from SALOMEDS inherits Attribute from TDF
 
index 01e19e1849bf37e64dfa48de05ba9a6e0243391b..51bdda48ae24530cf037643bd21759c0255f754b 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_SequenceOfIntegerAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfIntegerAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_SequenceOfIntegerAttribute.ixx"
 
 //=======================================================================
index 0326b9149b42d6a77d0c715261022edafcf6c6e1..85e265638cbb8e435310a2a7b424715d2f44cc00 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SequenceOfIntegerAttribute.hxx
-//  Created   : Fri Jul 05 12:59:44 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfIntegerAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
index c521234cfd2a8f85d1859712b4e5d705feaae8a3..c8feebedd67c7262b0991af8d4d7e8441ba28ea1 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SequenceOfIntegerAttribute.ixx
-//  Created   : Fri Jul 05 12:59:55 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfIntegerAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_SequenceOfIntegerAttribute.jxx"
index 71f03df69979d09d66c4cfc37b41c203cfa82255..71586ee7e1e5d940955d785dee5df9266d22ced5 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SequenceOfIntegerAttribute.jxx
-//  Created   : Fri Jul 05 13:00:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfIntegerAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _TColStd_HSequenceOfInteger_HeaderFile
index 3b0fd26ead96fd571a458dde81854786525cc35a..35f6948f36b0e34fdab11502e3fea8111854854b 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : SALOMEDS_SequenceOfRealAttribute.cdl
-//  Created   : Wed Nov 28 16:20:40 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header:
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_SequenceOfRealAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class SequenceOfRealAttribute from SALOMEDS inherits Attribute from TDF
 
index 0aeff2e91b80fa01d2b678c940972c372f951768..9e3cf84e9289a1c3f28d715161597ff6c258a6d1 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_SequenceOfRealAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfRealAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_SequenceOfRealAttribute.ixx"
 #include <TDataStd_Real.hxx>
 
index ca74e7451b0976a57e6e6de64b43a1f74038cfec..79cda424f99bad61a3f4d3439dc39c4beebf971a 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SequenceOfRealAttribute.hxx
-//  Created   : Fri Jul 05 13:00:41 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfRealAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_SequenceOfRealAttribute_HeaderFile
index 64b5b68cdb41cf5503d9dd1b83318fc9f361eac8..5e4b09818f618d79cbcb93f8ba15439c4d8c1760 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : SALOMEDS_SequenceOfRealAttribute.ixx
-//  Created   : Fri Jul 05 13:00:55 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfRealAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
-
 #include "SALOMEDS_SequenceOfRealAttribute.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 15caad6da34f35b4c4a6345b5267e19377527952..ec639c8468579ff69a46a46671cd77961c1d5b62 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_SequenceOfRealAttribute.jxx
-//  Created   : Fri Jul 05 13:01:03 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_SequenceOfRealAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _TColStd_HSequenceOfReal_HeaderFile
index 2b41f0efe0d72247fa29552d0dc924fb20854296..087ef8ff5a06ac52e0ab1665fcad202977879394 100644 (file)
@@ -1,18 +1,42 @@
-using namespace std;
-//  File      : SALOMEDS_Server.cxx
-//  Created   : Wed Nov 28 16:26:15 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_Server.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOMEDS)
 #include "SALOMEDS_StudyManager_i.hxx"
 #include "utilities.h"
 
+//#define CHECKTIME
+#ifdef CHECKTIME
+#include <Utils_Timer.hxx>
+#endif
+
 // extern "C"
 // { // for ccmalloc memory debug
 // void ccmalloc_static_initialization(void);
@@ -28,6 +52,7 @@ int main(int argc, char** argv)
   try {
     // Initialise the ORB.
     CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "omniORB3");
+    omniORB::MaxMessageSize(100 * 1024 * 1024);
     
     // Obtain a reference to the root POA.
     CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
@@ -49,6 +74,13 @@ int main(int argc, char** argv)
     PortableServer::POAManager_var pman = poa->the_POAManager();
     pman->activate();
 
+#ifdef CHECKTIME
+    Utils_Timer timer;
+    timer.Start();
+    timer.Stop();
+    MESSAGE("SALOME_Registry_Server.cxx - orb->run()");
+    timer.ShowAbsolute();
+#endif
     orb->run();
     orb->destroy();
   }
@@ -69,4 +101,3 @@ int main(int argc, char** argv)
   }
   return 0;
 }
-
index 3ffd884b9974b03d8d5d875e034c3d692ec172d4..93eaa48bc39ba59c30d43c35be25ac43f126ef90 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_StudyBuilder_i.cxx
-//  Created   : Wed Nov 28 16:26:28 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_StudyBuilder_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "utilities.h"
 #include "SALOMEDS_StudyBuilder_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
@@ -52,13 +71,15 @@ using namespace std;
 #include "SALOMEDS_AttributeUserID_i.hxx"
 #include "SALOMEDS_AttributeStudyProperties_i.hxx"
 #include "SALOMEDS_AttributePythonObject_i.hxx"
+#include "SALOMEDS_Tool.hxx"
 #include "Utils_CorbaException.hxx"
 
 #include <HDFOI.hxx>
 #include <stdlib.h> 
 
 #define USE_CASE_LABEL_TAG            2
-#define DIRECTORYID "DIRECTORY:"
+#define DIRECTORYID 16661
+#define FILELOCALID 26662 
 
 //============================================================================
 /*! Function : constructor
@@ -219,6 +240,14 @@ void SALOMEDS_StudyBuilder_i::RemoveObject(SALOMEDS::SObject_ptr anObject)
   TDF_Label Lab;
   ASSERT(!CORBA::is_nil(anObject));
   TDF_Tool::Label(_doc->GetData(),anObject->GetID(),Lab);
+
+  Handle(TDF_Reference) aReference;
+  if (Lab.FindAttribute(TDF_Reference::GetID(), aReference)) {
+    Handle(SALOMEDS_TargetAttribute) aTarget;
+    if (aReference->Get().FindAttribute(SALOMEDS_TargetAttribute::GetID(),aTarget))
+      aTarget->Remove(Lab);
+  }
+
   Lab.ForgetAllAttributes();
 }
 
@@ -234,6 +263,24 @@ void SALOMEDS_StudyBuilder_i::RemoveObjectWithChildren(SALOMEDS::SObject_ptr anO
   TDF_Label Lab;
   ASSERT(!CORBA::is_nil(anObject));
   TDF_Tool::Label(_doc->GetData(),anObject->GetID(),Lab);
+
+  Handle(TDF_Reference) aReference;
+  if (Lab.FindAttribute(TDF_Reference::GetID(), aReference)) {
+    Handle(SALOMEDS_TargetAttribute) aTarget;
+    if (aReference->Get().FindAttribute(SALOMEDS_TargetAttribute::GetID(),aTarget))
+      aTarget->Remove(Lab);
+  }
+
+  TDF_ChildIterator it(Lab);
+  for(;it.More();it.Next()) {
+    TDF_Label aLabel = it.Value();
+    if (aLabel.FindAttribute(TDF_Reference::GetID(), aReference)) {
+      Handle(SALOMEDS_TargetAttribute) aTarget;
+      if (aReference->Get().FindAttribute(SALOMEDS_TargetAttribute::GetID(),aTarget))
+       aTarget->Remove(aLabel);
+    }
+  }
+
   Lab.ForgetAllAttributes(Standard_True);
 }
 
@@ -245,7 +292,8 @@ void SALOMEDS_StudyBuilder_i::RemoveObjectWithChildren(SALOMEDS::SObject_ptr anO
 static void  Translate_persistentID_to_IOR(TDF_Label                  Lab,
                                           SALOMEDS::Driver_ptr       driver,
                                           CORBA::ORB_ptr             orb,
-                                          CORBA::Boolean             isMultiFile)
+                                          CORBA::Boolean             isMultiFile,
+                                          CORBA::Boolean             isASCII)
 {
   TDF_ChildIterator  itchild (Lab);
   
@@ -253,6 +301,11 @@ static void  Translate_persistentID_to_IOR(TDF_Label                  Lab,
     TDF_Label current = itchild.Value();
     Handle(TDF_Attribute) Att;
     if (current.FindAttribute(SALOMEDS_PersRefAttribute::GetID(),Att)) {  
+
+      Handle(SALOMEDS_LocalIDAttribute) anID;
+      if (current.FindAttribute(SALOMEDS_LocalIDAttribute::GetID(), anID)) 
+       if (anID->Get() == FILELOCALID) continue;        //SRN: This attribute store a file name, skip it 
+
       TCollection_ExtendedString res;   
       res = Handle(TDataStd_Comment)::DownCast(Att)->Get();
       TCollection_AsciiString ch(res);
@@ -262,17 +315,16 @@ static void  Translate_persistentID_to_IOR(TDF_Label                  Lab,
       SALOMEDS_SObject_i *  so_servant = new SALOMEDS_SObject_i (current,orb);
       SALOMEDS::SObject_var so = SALOMEDS::SObject::_narrow(so_servant->_this()); 
 
-      CORBA::String_var ior_string = driver->LocalPersistentIDToIOR(so, persistent_string, isMultiFile);
+      CORBA::String_var ior_string = driver->LocalPersistentIDToIOR(so, persistent_string, isMultiFile, isASCII);
 
       TCollection_ExtendedString value(strdup(ior_string )); 
       SALOMEDS_IORAttribute::Set (current,value,orb); 
       
-      TCollection_AsciiString anEntry;TDF_Tool::Entry (current,anEntry);
-      
+      //TCollection_AsciiString anEntry;TDF_Tool::Entry (current,anEntry); //SRN: No use here
       //delete persistent_string;
       //delete ior_string;
     }
-    Translate_persistentID_to_IOR (current,driver,orb,isMultiFile);
+    Translate_persistentID_to_IOR (current,driver,orb,isMultiFile, isASCII);
   }
 }
 
@@ -315,11 +367,25 @@ void SALOMEDS_StudyBuilder_i::LoadWith(SALOMEDS::SComponent_ptr anSCO,
     }
     DefineComponentInstance (anSCO, aDriver);
 
-    //Open the Study HDF file 
     TCollection_AsciiString aHDFPath(Res);
-    HDFfile *hdf_file = new HDFfile(aHDFPath.ToCString()); 
+
+    char* aHDFUrl;
+    bool isASCII = false;
+    if (HDFascii::isASCII(aHDFPath.ToCString())) {
+      isASCII = true;
+      char* aResultPath = HDFascii::ConvertFromASCIIToHDF(aHDFPath.ToCString());
+      aHDFUrl = new char[strlen(aResultPath) + 19];
+      sprintf(aHDFUrl, "%shdf_from_ascii.hdf", aResultPath);
+      delete(aResultPath);
+    } else {
+      aHDFUrl = strdup(aHDFPath.ToCString());
+    }
+
+    //Open the Study HDF file 
+    HDFfile *hdf_file = new HDFfile(aHDFUrl); 
 
     char aMultifileState[2];
+    char ASCIIfileState[2];
     try {
       CORBA::String_var scoid = anSCO->GetID();
       hdf_file->OpenOnDisk(HDF_RDONLY);
@@ -345,6 +411,9 @@ void SALOMEDS_StudyBuilder_i::LoadWith(SALOMEDS::SComponent_ptr anSCO,
       multifile_hdf_dataset->OpenOnDisk();
       multifile_hdf_dataset->ReadFromDisk(aMultifileState);
 
+      HDFdataset *ascii_hdf_dataset = new HDFdataset("ASCII_STATE", hdf_sco_group);
+      ascii_hdf_dataset->OpenOnDisk();
+      ascii_hdf_dataset->ReadFromDisk(ASCIIfileState);
 
       // set path without file name from URL 
       int aFileNameSize = Res.Length();
@@ -356,7 +425,18 @@ void SALOMEDS_StudyBuilder_i::LoadWith(SALOMEDS::SComponent_ptr anSCO,
          break;
        }
 
-      if(!aDriver->Load(anSCO, aStreamFile.in(), aDir, aMultifileState[0]=='M')) {
+      CORBA::Boolean aResult = (ASCIIfileState[0]=='A')?
+       aDriver->LoadASCII(anSCO, aStreamFile.in(), aDir, aMultifileState[0]=='M'):
+       aDriver->Load(anSCO, aStreamFile.in(), aDir, aMultifileState[0]=='M');
+      if(!aResult) {
+       RemoveAttribute( anSCO, "AttributeIOR" );
+       if (isASCII) {
+         SALOMEDS::ListOfFileNames_var aFilesToRemove = new SALOMEDS::ListOfFileNames;
+         aFilesToRemove->length(1);
+         aFilesToRemove[0] = strdup(&(aHDFUrl[strlen(SALOMEDS_Tool::GetDirFromPath(aHDFUrl))]));
+         SALOMEDS_Tool::RemoveTemporaryFiles(SALOMEDS_Tool::GetDirFromPath(aHDFUrl), aFilesToRemove, true);
+       }
+       delete aHDFUrl;
        MESSAGE("Can't load component");
        THROW_SALOME_CORBA_EXCEPTION("Unable to load component data",SALOME::BAD_PARAM);
 //     throw HDFexception("Unable to load component");
@@ -366,22 +446,39 @@ void SALOMEDS_StudyBuilder_i::LoadWith(SALOMEDS::SComponent_ptr anSCO,
 
       multifile_hdf_dataset->CloseOnDisk();
       multifile_hdf_dataset = 0;
+      ascii_hdf_dataset->CloseOnDisk();
+      ascii_hdf_dataset = 0;
       hdf_sco_group->CloseOnDisk();
       hdf_sco_group = 0;
       hdf_group->CloseOnDisk();
       hdf_group = 0;
       hdf_file->CloseOnDisk();
       delete hdf_file;
+
+      if (isASCII) {
+       SALOMEDS::ListOfFileNames_var aFilesToRemove = new SALOMEDS::ListOfFileNames;
+       aFilesToRemove->length(1);
+       aFilesToRemove[0] = strdup(&(aHDFUrl[strlen(SALOMEDS_Tool::GetDirFromPath(aHDFUrl))]));
+       SALOMEDS_Tool::RemoveTemporaryFiles(SALOMEDS_Tool::GetDirFromPath(aHDFUrl), aFilesToRemove, true);
+      }
+      delete aHDFUrl;
     }
     catch (HDFexception) {
       MESSAGE("No persistent file Name");
       delete hdf_file;
+      if (isASCII) {
+       SALOMEDS::ListOfFileNames_var aFilesToRemove = new SALOMEDS::ListOfFileNames;
+       aFilesToRemove->length(1);
+       aFilesToRemove[0] = strdup(&(aHDFUrl[strlen(SALOMEDS_Tool::GetDirFromPath(aHDFUrl))]));
+       SALOMEDS_Tool::RemoveTemporaryFiles(SALOMEDS_Tool::GetDirFromPath(aHDFUrl), aFilesToRemove, true);
+      }
+      delete aHDFUrl;
       if (aLocked) anSCO->GetStudy()->GetProperties()->SetLocked(true);
       return;
     }
     
     try {
-      Translate_persistentID_to_IOR (Lab,aDriver,_orb, aMultifileState[0]=='M');
+      Translate_persistentID_to_IOR (Lab,aDriver,_orb, aMultifileState[0]=='M', ASCIIfileState[0] == 'A');
     } catch (SALOME::SALOME_Exception) {
       MESSAGE("Can't translate PersRef to IOR");
       if (aLocked) anSCO->GetStudy()->GetProperties()->SetLocked(true);
@@ -930,9 +1027,9 @@ void SALOMEDS_StudyBuilder_i::AddDirectory(const char* thePath)
 
   TDataStd_Name::Set(aLabel, aPath.Token("/", i-1));
 
-  //Set PersistentRef attribute to identify the directory object
-  SALOMEDS::GenericAttribute_var anAttr = FindOrCreateAttribute(aNewObject, "AttributePersistentRef");
-  SALOMEDS::AttributePersistentRef_var aPersRef = SALOMEDS::AttributePersistentRef::_narrow(anAttr);
+  //Set LocalID attribute to identify the directory object
+  SALOMEDS::GenericAttribute_var anAttr = FindOrCreateAttribute(aNewObject, "AttributeLocalID");
+  SALOMEDS::AttributeLocalID_var aPersRef = SALOMEDS::AttributeLocalID::_narrow(anAttr);
   if(aPersRef->_is_nil()) throw SALOMEDS::Study::StudyInvalidDirectory();
 
   aPersRef->SetValue(DIRECTORYID);
index fcad36f063ee4a8909bd097f9958b2b8a5a10b30..14313fac61f9aab509b7ab0b2f947f26a10e4a8a 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_StudyBuilder_i.hxx
-//  Created   : Wed Nov 28 16:26:50 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_StudyBuilder_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_STUDYBUIlDER_I_H__
index 2ed289228add2f8ee9f4962ad2221a2d959d52b2..4d12d2379154387ca9d96bfcc4fb28102f85a030 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_StudyManager_i.cxx
-//  Created   : Wed Nov 28 13:45:43 2001
-//  Author    : Yves FRICAUD 
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_StudyManager_i.cxx
+//  Author : Yves FRICAUD 
+//  Module : SALOME
 //  $Header$
-//  Modified by : Estelle DEVILLE : Implementation of Save methods
 
+using namespace std;
 #include "utilities.h"
 #include "SALOMEDS_StudyManager_i.hxx"
 #include "SALOMEDS_Study_i.hxx"
@@ -103,7 +121,7 @@ static void ReadAttributes(Handle(TDF_Data)& DF,
     } else {
 
       int size =  hdf_dataset->GetSize();
-      char current_string[size];
+      char* current_string = new char[size];
       hdf_dataset->ReadFromDisk(current_string);
 
       if (!strcmp(hdf_dataset->GetName(),"COMPONENTDATATYPE")) {      
@@ -352,7 +370,8 @@ static void Translate_IOR_to_persistentID (SALOMEDS::Study_ptr        study,
                                           SALOMEDS::StudyBuilder_ptr SB,
                                           SALOMEDS::SObject_ptr      so,
                                           SALOMEDS::Driver_ptr       engine,
-                                          CORBA::Boolean             isMultiFile)
+                                          CORBA::Boolean             isMultiFile,
+                                          CORBA::Boolean             isASCII)
 {
   MESSAGE("In Translate_IOR_to_persistentID");
   SALOMEDS::ChildIterator_var itchild = study->NewChildIterator(so);
@@ -363,14 +382,13 @@ static void Translate_IOR_to_persistentID (SALOMEDS::Study_ptr        study,
   for (; itchild->More(); itchild->Next()) {
     SALOMEDS::SObject_var current = itchild->Value();
     SCRUTE(current->GetID());
-    SCRUTE(ior_string);
     SALOMEDS::GenericAttribute_var SObj;
     if (current->FindAttribute(SObj, "AttributeIOR")) {
       SALOMEDS::AttributeIOR_var IOR = SALOMEDS::AttributeIOR::_narrow(SObj);
       ior_string = IOR->Value();
       SCRUTE(ior_string);
       
-      persistent_string = engine->IORToLocalPersistentID (current,ior_string,isMultiFile);
+      persistent_string = engine->IORToLocalPersistentID (current,ior_string,isMultiFile, isASCII);
       
 //       SB->AddAttribute (current, SALOMEDS::PersistentRef,persistent_string);
       SALOMEDS::AttributePersistentRef_var Pers = SALOMEDS::AttributePersistentRef::_narrow(SB->FindOrCreateAttribute (current, "AttributePersistentRef"));
@@ -382,7 +400,7 @@ static void Translate_IOR_to_persistentID (SALOMEDS::Study_ptr        study,
       persistent_string = 0;
       curid = 0;
     }
-    Translate_IOR_to_persistentID (study,SB,current,engine,isMultiFile);
+    Translate_IOR_to_persistentID (study,SB,current,engine,isMultiFile, isASCII);
   }
   CORBA::string_free(persistent_string);
   CORBA::string_free(curid);
@@ -526,7 +544,19 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
   HDFfile *hdf_file =0;         
   HDFgroup *hdf_group_study_structure =0;
 
-  hdf_file = new HDFfile((char *)aUrl);
+  char* aHDFUrl;
+  bool isASCII = false;
+  if (HDFascii::isASCII(aUrl)) {
+    isASCII = true;
+    char* aResultPath = HDFascii::ConvertFromASCIIToHDF(aUrl);
+    aHDFUrl = new char[strlen(aResultPath) + 19];
+    sprintf(aHDFUrl, "%shdf_from_ascii.hdf", aResultPath);
+    delete(aResultPath);
+  } else {
+    aHDFUrl = strdup(aUrl);
+  }
+
+  hdf_file = new HDFfile(aHDFUrl);
   try {
     hdf_file->OpenOnDisk(HDF_RDONLY);// mpv: was RDWR, but opened file can be write-protected too
   }
@@ -534,6 +564,7 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
     {
 //        MESSAGE( "HDFexception ! " );
 //        cerr << "HDFexception ! " << endl;
+      delete aHDFUrl;
       char eStr[strlen(aUrl)+17];
       sprintf(eStr,"Can't open file %s",aUrl);
       THROW_SALOME_CORBA_EXCEPTION(CORBA::string_dup(eStr),SALOME::BAD_PARAM);
@@ -584,6 +615,7 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
   SALOMEDS_PersRefAttribute::Set(Doc->Main(),strdup(aUrl)); 
 
   if (!hdf_file->ExistInternalObject("STUDY_STRUCTURE")) {
+    delete aHDFUrl;
     MESSAGE("SALOMEDS_StudyManager::Open : the study is empty");
     return Study;
   }
@@ -600,14 +632,22 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
     {
 //        MESSAGE( "HDFexception ! " );
 //        cerr << "HDFexception ! " << endl;
+      delete aHDFUrl;
       char eStr[strlen(aUrl)+17];
       sprintf(eStr,"Can't open file %s",aUrl);
       THROW_SALOME_CORBA_EXCEPTION(CORBA::string_dup(eStr),SALOME::BAD_PARAM);
     } 
   
   hdf_file->CloseOnDisk();
-  delete hdf_file; // all related hdf objects will be deleted
 
+  if (isASCII) {
+    SALOMEDS::ListOfFileNames_var aFilesToRemove = new SALOMEDS::ListOfFileNames;
+    aFilesToRemove->length(1);
+    aFilesToRemove[0] = strdup(&(aHDFUrl[strlen(SALOMEDS_Tool::GetDirFromPath(aHDFUrl))]));
+    SALOMEDS_Tool::RemoveTemporaryFiles(SALOMEDS_Tool::GetDirFromPath(aHDFUrl), aFilesToRemove, true);
+  }
+  delete aHDFUrl;
+  delete hdf_file; // all related hdf objects will be deleted
   return Study;
 }
 
@@ -643,10 +683,20 @@ void SALOMEDS_StudyManager_i::Save(SALOMEDS::Study_ptr aStudy, CORBA::Boolean th
     MESSAGE( "No path specified to save the study. Nothing done")
   else
     {
-      _SaveAs(url,aStudy, theMultiFile);
+      _SaveAs(url,aStudy, theMultiFile, false);
     }
 }
 
+void SALOMEDS_StudyManager_i::SaveASCII(SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile)
+{
+  CORBA::String_var url = aStudy->URL();
+  if (url==NULL)
+    MESSAGE( "No path specified to save the study. Nothing done")
+  else
+    {
+      _SaveAs(url,aStudy, theMultiFile, true);
+    }
+}
 
 //=============================================================================
 /*! Function : SaveAs
@@ -658,7 +708,16 @@ void SALOMEDS_StudyManager_i::SaveAs(const char* aUrl, SALOMEDS::Study_ptr aStud
   // Save the URL of the Study => to be used with the function "Save"
   aStudy->URL(aUrl);
   
-  _SaveAs(aUrl,aStudy,theMultiFile);
+  _SaveAs(aUrl,aStudy,theMultiFile, false);
+
+}
+
+void SALOMEDS_StudyManager_i::SaveAsASCII(const char* aUrl, SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile)
+{
+  // Save the URL of the Study => to be used with the function "Save"
+  aStudy->URL(aUrl);
+  
+  _SaveAs(aUrl,aStudy,theMultiFile, true);
 }
 
 //============================================================================
@@ -1120,7 +1179,10 @@ static void SaveAttributes(SALOMEDS::SObject_ptr SO, HDFgroup *hdf_group_sobject
       TNsize[0]=5;
       TNsize[1]=maxSize+1;
       char Data[5][maxSize+1];
-      for(index=0;index<5;index++) strcpy(Data[index],Val[index]);
+      for(index=0;index<5;index++) {
+       strcpy(Data[index],Val[index]);
+       for(int a = strlen(Data[index]) + 1; a < maxSize; a++) Data[index][a] = ' '; // mpv: for ASCII format
+      }
       
       char* aDataSetName = new char[60];
       sprintf(aDataSetName, "AttributeTreeNodeGUID%s",TNRef->GetTreeID());
@@ -1209,7 +1271,8 @@ void SALOMEDS_StudyManager_i::_SaveProperties(SALOMEDS::Study_ptr aStudy, HDFgro
 //============================================================================
 void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl, 
                                      SALOMEDS::Study_ptr aStudy,
-                                     CORBA::Boolean theMultiFile)
+                                     CORBA::Boolean theMultiFile,
+                                     CORBA::Boolean theASCII)
 {
   // HDF File will be composed of differents part :
   // * For each ComponentDataType, all data created by the component
@@ -1280,9 +1343,10 @@ void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl,
                  MESSAGE ( "Save the data of type:"<< componentDataType);
                  MESSAGE("Engine :"<<Engine->ComponentDataType());
 
-                  SALOMEDS::TMPFile_var aStream = Engine->Save(sco,
-                                                              SALOMEDS_Tool::GetDirFromPath(aUrl),
-                                                              theMultiFile);
+                 SALOMEDS::TMPFile_var aStream;
+                  if (theASCII) aStream = Engine->SaveASCII(sco,SALOMEDS_Tool::GetDirFromPath(aUrl),theMultiFile);
+                 else aStream = Engine->Save(sco,SALOMEDS_Tool::GetDirFromPath(aUrl),theMultiFile);
+
                  HDFdataset *hdf_dataset;
                  hdf_size aHDFSize[1];
                  if(aStream->length() > 0) {  //The component saved some auxiliary files, then put them into HDF file 
@@ -1302,7 +1366,15 @@ void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl,
                  hdf_dataset->CloseOnDisk();
                  hdf_dataset=0; //will be deleted by hdf_sco_AuxFiles destructor                
 
-                 Translate_IOR_to_persistentID (aStudy,SB,sco,Engine,theMultiFile);
+                 // store ASCII state
+                 aHDFSize[0] = 2;
+                 hdf_dataset = new HDFdataset("ASCII_STATE", hdf_sco_group, HDF_STRING, aHDFSize, 1);
+                 hdf_dataset->CreateOnDisk();
+                 hdf_dataset->WriteOnDisk((void*)(theASCII?"A":"B")); // save: ASCII or BINARY
+                 hdf_dataset->CloseOnDisk();
+                 hdf_dataset=0; //will be deleted by hdf_sco_AuxFiles destructor                
+
+                 Translate_IOR_to_persistentID (aStudy,SB,sco,Engine,theMultiFile, theASCII);
                  MESSAGE("After Translate_IOR_to_persistentID");
                  
                  // Creation of the persistance reference  attribute
@@ -1387,7 +1459,10 @@ void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl,
   catch (HDFexception)
     {
       MESSAGE( "HDFexception ! " )
-    } 
+    }
+  if (theASCII) { // save file in ASCII format
+    HDFascii::ConvertFromHDFToASCII(aUrl, true);
+  }
 }
 
 //============================================================================
@@ -1481,17 +1556,20 @@ CORBA::Boolean SALOMEDS_StudyManager_i::CanCopy(SALOMEDS::SObject_ptr theObject)
 //============================================================================
 Handle(TDocStd_Document) SALOMEDS_StudyManager_i::GetDocumentOfStudy(SALOMEDS::Study_ptr theStudy) {
   int a;
-  int aNbDocs = _OCAFApp->NbDocuments();
-  Handle(TDocStd_Document) aDocument;
+  int aNbDocs = _OCAFApp->NbDocuments(); 
+  Handle(TDocStd_Document) aDocument;  
   for(a = 1; a <= aNbDocs ; a++) {
     _OCAFApp->GetDocument(a, aDocument);
     if (!aDocument.IsNull()) {
       SALOMEDS_SObject_i *  aSOServant = new SALOMEDS_SObject_i (aDocument->Main(),_orb);
       SALOMEDS::SObject_var aSO = SALOMEDS::SObject::_narrow(aSOServant->_this()); 
-      if (aSO->GetStudy() == theStudy) break;
+      SALOMEDS::Study_var aStudy = aSO->GetStudy();
+      if(CORBA::is_nil(aStudy)) continue;  //The clipboard document ( hopefully :) )
+      if (aStudy->StudyId() == theStudy->StudyId()) break;
       aDocument.Nullify();
     }
   }
+
   return aDocument;
 }
 
@@ -1660,6 +1738,7 @@ TDF_Label SALOMEDS_StudyManager_i::PasteLabel(const SALOMEDS::Study_ptr theDesti
                                              const TDF_Label& theDestinationStart,
                                              const int theCopiedStudyID,
                                              const bool isFirstElement) {
+
   // get corresponding source, target and auxiliary labels
   TDF_Label aTargetLabel = theDestinationStart;
   TDF_Label aAuxSourceLabel = theSource.Root().FindChild(2);
@@ -1725,7 +1804,7 @@ TDF_Label SALOMEDS_StudyManager_i::PasteLabel(const SALOMEDS::Study_ptr theDesti
   // check auxiliary label for Comment => reference or name attribute of the referenced object
   Handle(TDataStd_Comment) aCommentAttribute;
   if (aAuxSourceLabel.FindAttribute(TDataStd_Comment::GetID(), aCommentAttribute)) {
-    char * anEntry = new char[aCommentAttribute->Get().Length()];
+    char * anEntry = new char[aCommentAttribute->Get().Length() + 1];
     strcpy(anEntry, TCollection_AsciiString(aCommentAttribute->Get()).ToCString());
     char* aNameStart = strchr(anEntry, ' ');
     if (aNameStart) {
@@ -1743,6 +1822,7 @@ TDF_Label SALOMEDS_StudyManager_i::PasteLabel(const SALOMEDS::Study_ptr theDesti
     }
     delete(anEntry);
   }
+
   return aTargetLabel;
 }
 //============================================================================
@@ -1754,32 +1834,35 @@ SALOMEDS::SObject_ptr SALOMEDS_StudyManager_i::Paste(SALOMEDS::SObject_ptr theOb
      throw(SALOMEDS::StudyBuilder::LockProtection)
 {
   SALOMEDS::Study_var aStudy = theObject->GetStudy();
+
   // if study is locked, then paste can't be done
   if (aStudy->GetProperties()->IsLocked())
     throw SALOMEDS::StudyBuilder::LockProtection();
+
   // if there is no component name, then paste only SObjects and attributes: without component help
   Handle(TDataStd_Comment) aComponentName;
   bool aStructureOnly = !_clipboard->Main().Root().FindAttribute(TDataStd_Comment::GetID(), aComponentName);
 
   // get copied study ID
   Handle(TDataStd_Integer) aStudyIDAttribute;
-  if (!_clipboard->Main().Root().FindAttribute(TDataStd_Integer::GetID(), aStudyIDAttribute)) return NULL;
+  if (!_clipboard->Main().Root().FindAttribute(TDataStd_Integer::GetID(), aStudyIDAttribute))
+    return SALOMEDS::SObject::_nil();
   int aCStudyID = aStudyIDAttribute->Get();
 
   // get component-engine
-
   SALOMEDS::Driver_var Engine;
   SALOMEDS::SComponent_var aComponent;
   if (!aStructureOnly) {
     aComponent = theObject->GetFatherComponent();
     CORBA::String_var IOREngine;
-    if (!aComponent->ComponentIOR(IOREngine)) return NULL;
+    if (!aComponent->ComponentIOR(IOREngine)) return SALOMEDS::SObject::_nil();
     CORBA::Object_var obj = _orb->string_to_object(IOREngine);
     Engine = SALOMEDS::Driver::_narrow(obj) ;
   }
+
   // CAF document of current study usage
   Handle(TDocStd_Document) aDocument = GetDocumentOfStudy(aStudy);
-  if (aDocument.IsNull()) return NULL; 
+  if (aDocument.IsNull()) return SALOMEDS::SObject::_nil();
   // fill root inserted SObject
   TDF_Label aStartLabel;
   if (aStructureOnly) {
@@ -1791,6 +1874,7 @@ SALOMEDS::SObject_ptr SALOMEDS_StudyManager_i::Paste(SALOMEDS::SObject_ptr theOb
     TDF_Tool::Label(aDocument->GetData(), aComponent->GetID(), aComponentLabel);
     aStartLabel = PasteLabel(aStudy, Engine, _clipboard->Main(), aComponentLabel, aCStudyID, true);
   }
+
   // paste all sublebels
   TDF_ChildIterator anIterator(_clipboard->Main(), Standard_True);
   for(; anIterator.More(); anIterator.Next()) {
@@ -1799,5 +1883,6 @@ SALOMEDS::SObject_ptr SALOMEDS_StudyManager_i::Paste(SALOMEDS::SObject_ptr theOb
 
   SALOMEDS_SObject_i *  so_servant = new SALOMEDS_SObject_i (aStartLabel, _orb);
   SALOMEDS::SObject_var so = SALOMEDS::SObject::_narrow(so_servant->_this()); 
-  return so;
+
+  return so._retn();
 }
index de061a44d1e512a8f948c19b7323adc4c2ea8157..2c45ce203061f643c6d8b06ee17aeaaa0ce0c57e 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_StudyManager_i.hxx
-//  Created   : Wed Nov 28 16:27:08 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_StudyManager_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_STUDYMANAGER_I_H__
@@ -48,7 +67,10 @@ private:
   Handle(TDocStd_Document) _clipboard;
 
   // _SaveAs private function called by Save and SaveAs
-  virtual void _SaveAs(const char* aUrl,  SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
+  virtual void _SaveAs(const char* aUrl,
+                      SALOMEDS::Study_ptr aStudy,
+                      CORBA::Boolean theMultiFile,
+                      CORBA::Boolean theASCII);
   // _SaveObject private function called by _SaveAs
   virtual void _SaveObject(SALOMEDS::Study_ptr aStudy, 
                           SALOMEDS::SObject_ptr SC, 
@@ -99,12 +121,15 @@ public:
   */
   virtual void Save( SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
 
+  virtual void SaveASCII( SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
+
   //! method to save a Study to the persistent reference aUrl
   /*!
     \param char* arguments, the new URL of the study
     \param Study_ptr arguments
   */
   virtual void SaveAs(const char* aUrl,  SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
+  virtual void SaveAsASCII(const char* aUrl,  SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
 
  //! method to Get name list of open studies in the session
   /*!
index 0eee0588777c637454de4b99e1b8a7223ccbee55..2e07a07ecb118ad4cc56a5f301045f74bd9e87a0 100644 (file)
@@ -1,11 +1,12 @@
---  File      : SALOMEDS_StudyPropertiesAttribute.cdl
---  Created   : Tue Oct  8 10:13:30 2002
---  Author    : Yves FRICAUD
-
---  Project   : SALOME
---  Module    : SALOMEDS
---  Copyright : Open CASCADE 2001
---  $Header$
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  CEA/DEN, EDF R&D
+--
+--
+--
+--  File   : SALOMEDS_StudyPropertiesAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class StudyPropertiesAttribute from SALOMEDS inherits Attribute from TDF
 
index 9cebecc221d058150e1b6231052edbe881073b27..4f83613beefcdbd307b29742e21b8fd4a4797d03 100644 (file)
@@ -1,12 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_StudyPropertiesAttribute.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_StudyPropertiesAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <SALOMEDS_StudyPropertiesAttribute.ixx>
 
 const Standard_GUID& SALOMEDS_StudyPropertiesAttribute::GetID() 
index 0fbddb4be4132cb93292de7d46eb299e131d62c4..d9139f7303e476004544d9cc592087675c4d0868 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_StudyPropertiesAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_StudyPropertiesAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_StudyPropertiesAttribute_HeaderFile
index 630d3f4715dcfb95fc228c3faa4206bc3044a700..6dedfff9f9074e85c1584d002361b74fdfd92ed5 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_StudyPropertiesAttribute.ixx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_StudyPropertiesAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include <SALOMEDS_StudyPropertiesAttribute.jxx>
index 2f174087aeb60a7659f316545a247ed52de21b54..b1e91888ccca1831d7ee88133837e8af89c2628f 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_StudyPropertiesAttribute.jxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_StudyPropertiesAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _TColStd_HSequenceOfExtendedString_HeaderFile
index ae4a1f0768fa1f9cebb1f5044b27831fea7bcdbb..c282ab096f431937c5ce1fade24b8f2ef130ca52 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_Study_i.cxx
-//  Created   : Wed Nov 28 16:27:23 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_Study_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "utilities.h"
 #include "SALOMEDS_Study_i.hxx"
 
@@ -21,11 +40,13 @@ using namespace std;
 #include <CDM_Document.hxx>
 #include <CDM_Application.hxx>
 #include "SALOMEDS_LocalIDAttribute.hxx"
+#include "SALOMEDS_PersRefAttribute.hxx"
 #include "SALOMEDS_UseCaseIterator_i.hxx"
 
 
-#define DIRECTORYID "DIRECTORY:"
+#define DIRECTORYID 16661
 #define FILEID "FILE: "
+#define FILELOCALID 26662 
 
 //============================================================================
 /*! Function : SALOMEDS_Study_i
@@ -530,19 +551,15 @@ SALOMEDS::ListOfStrings* SALOMEDS_Study_i::GetDirectoryNames(const char* theCont
   TDF_ChildIterator anIter(aLabel, Standard_False); // iterate first-level children at all sublevels
   for(; anIter.More(); anIter.Next()) {
     TDF_Label aLabel = anIter.Value();
-//      Handle(TDF_Attribute) anAttribute;
-//      if (!aLabel.FindAttribute(SALOMEDS_IORAttribute::GetID(), anAttribute) &&
-//     !aLabel.FindAttribute(SALOMEDS_LocalIDAttribute::GetID(), anAttribute)) {
-    Handle(SALOMEDS_PersRefAttribute) anID;
-    if (aLabel.FindAttribute(SALOMEDS_PersRefAttribute::GetID(), anID)) {
-      if (anID->Get().Search(TCollection_ExtendedString(DIRECTORYID)) == 1) {
+    Handle(SALOMEDS_LocalIDAttribute) anID;
+    if (aLabel.FindAttribute(SALOMEDS_LocalIDAttribute::GetID(), anID)) {
+      if (anID->Get() == DIRECTORYID) {
        Handle(TDataStd_Name) aName;
        if (aLabel.FindAttribute(TDataStd_Name::GetID(), aName)) {
          aResultSeq.Append(aName->Get());
        }
       }
     }
-//      }
   }
   // fill the result table
   int anIndex, aLength = aResultSeq.Length();
@@ -574,13 +591,15 @@ SALOMEDS::ListOfStrings* SALOMEDS_Study_i::GetFileNames(const char* theContext)
   TDF_ChildIterator anIter(aLabel, Standard_False); // iterate all subchildren at all sublevels
   for(; anIter.More(); anIter.Next()) {
     TDF_Label aLabel = anIter.Value();
-//      Handle(TDF_Attribute) anAttribute;
-//      if (aLabel.FindAttribute(SALOMEDS_IORAttribute::GetID(), anAttribute) ||
-//     aLabel.FindAttribute(SALOMEDS_LocalIDAttribute::GetID(), anAttribute)) {
-    Handle(SALOMEDS_PersRefAttribute) aName;
-    if (aLabel.FindAttribute(SALOMEDS_PersRefAttribute::GetID(), aName)) {
-      if (aName->Get().Search(TCollection_ExtendedString(FILEID)) == 1) {
-       aResultSeq.Append(aName->Get().Split(strlen(FILEID)));
+    Handle(SALOMEDS_LocalIDAttribute) anID;
+    if (aLabel.FindAttribute(SALOMEDS_LocalIDAttribute::GetID(), anID)) {
+      if (anID->Get() == FILELOCALID) {
+       Handle(SALOMEDS_PersRefAttribute) aName;
+       if(aLabel.FindAttribute(SALOMEDS_PersRefAttribute::GetID(), aName)) {
+         TCollection_ExtendedString aFileName = aName->Get();
+         if(aFileName.Length() > 0)
+           aResultSeq.Append(aFileName.Split(strlen(FILEID)));
+       }
       }
     }
 //      }
@@ -733,6 +752,10 @@ CORBA::Boolean  SALOMEDS_Study_i::IsModified()
 //============================================================================
 char* SALOMEDS_Study_i::URL()
 {
+  if(!_URL) {
+    _URL = new char[1];
+    _URL[0] = (char)0;
+  }
   return CORBA::string_dup(_URL);
 }
 
index cbee5f615ce5b3cd128e83a046f2d269cd09db27..fa5cffabaf3e427eb06574f7ff7a549d8d55a87c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_Study_i.hxx
-//  Created   : Wed Nov 28 16:27:37 2001
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_Study_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef __SALOMEDS_STUDY_I_H__
index b5f3e43cf26a7480721145240dcf9d9a7a84e55c..7eb9b5545d549059e0fad11cf9e502f6e5c12b24 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_TableOfIntegerAttribute.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-//  Modified by: Sergey Ruin 
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfIntegerAttribute.cxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <SALOMEDS_TableOfIntegerAttribute.ixx>
 #include <Standard_Failure.hxx>
 #include <TColStd_DataMapIteratorOfDataMapOfIntegerInteger.hxx>
index 0b5fef30b1ca7789b4c008199de05be7ad2416d8..f524bad983397065bf87b9dcaf864d20ad3eff0c 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfIntegerAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfIntegerAttribute.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_TableOfIntegerAttribute_HeaderFile
index c39ac5111f5995809b1c7a35508957bfeac12f32..493f1202826b56f467dcdd281f6b6a9926b960e9 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfIntegerAttribute.ixx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfIntegerAttribute.ixx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #include <SALOMEDS_TableOfIntegerAttribute.jxx>
index c3618907feadbf91c3a87f3a66232a54352225fa..ac68dcd1a3284fcab2ad2333306056252e303301 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfIntegerAttribute.jxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfIntegerAttribute.jxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _TColStd_HSequenceOfExtendedString_HeaderFile
index 13646bf2c5a7bbaa605a98f464aaac12f93be519..4d6ae31c1c9aff560d106ab4f4550703c00b2030 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//  File      : SALOMEDS_TableOfRealAttribute.cxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-//  Modified by: Sergey Ruin 
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfRealAttribute.cxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <SALOMEDS_TableOfRealAttribute.ixx>
 #include <Standard_Failure.hxx>
 #include <TColStd_DataMapIteratorOfDataMapOfIntegerReal.hxx>
index 19e3a6c4638593fc9999e160102ecd7f6f516396..a3d35069ffdb795345b587181130579a1f2bdbfd 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfRealAttribute.hxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfRealAttribute.hxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_TableOfRealAttribute_HeaderFile
index ab7e75f07f1f7e264575796098bc3085a6d87df1..3aa72a1075db6cf9cc17d3bef141bf18f946b378 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfRealAttribute.ixx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfRealAttribute.ixx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #include <SALOMEDS_TableOfRealAttribute.jxx>
index 447541e212f4a92fe95e598fe563caebd3361424..3c068b7e3879b150228697a15e71a925cdb0c5cc 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfRealAttribute.jxx
-//  Created   : Tue Oct  8 10:13:30 2002
-//  Author    : Michael Ponikarov
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfRealAttribute.jxx
+//  Author : Michael Ponikarov
+//  Module : SALOME
 //  $Header$
 
 #ifndef _TColStd_HSequenceOfExtendedString_HeaderFile
index 827dbef5aa364de84e242dde2a007e8db794b7e9..486cee1927df79580701cd39c8ea510cc0b5f931 100644 (file)
@@ -1,11 +1,14 @@
-using namespace std;
-//  File      : SALOMEDS_TableOfStringAttribute.cxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfStringAttribute.cxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
+using namespace std;
 #include <SALOMEDS_TableOfStringAttribute.ixx>
 #include <Standard_Failure.hxx>
 #include <SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx>
@@ -293,7 +296,6 @@ Handle_TColStd_HSequenceOfInteger SALOMEDS_TableOfStringAttribute::GetSetColumnI
 void SALOMEDS_TableOfStringAttribute::ConvertToString(ostrstream& theStream)
 {
   int i, j, l;
-cout << "########## ConvertToString BEGIN " << endl;
   
   //Title
   l = myTitle.Length();
@@ -328,14 +330,15 @@ cout << "########## ConvertToString BEGIN " << endl;
   theStream << l << "\n";
   SALOMEDS_DataMapIteratorOfDataMapOfIntegerString anIterator(myTable);
   for(; anIterator.More(); anIterator.Next()) {
-    theStream << anIterator.Key() << "\n";
-    theStream << anIterator.Value() << "\n";
-//    l = anIterator.Value().Length();
-//    theStream << l << "\n";
-//    for(j=1; j<=l; j++)
-//      theStream << anIterator.Value().Value(j) << "\n";
+    if (anIterator.Value().Length()) { // check empty string in the value table
+      theStream << anIterator.Key() << "\n";
+      unsigned long aValueSize = anIterator.Value().Length();
+      theStream.write((char*)&aValueSize, sizeof(unsigned long));
+      theStream.write((TCollection_AsciiString(anIterator.Value()).ToCString()),aValueSize);
+    } else { // write index only of kind: "0key"; "05", for an example
+      theStream << "0" << anIterator.Key() << "\n";
+    }
   }
-cout << "########## ConvertToString END " << endl;  
   return;
 }
 
@@ -343,7 +346,12 @@ bool SALOMEDS_TableOfStringAttribute::RestoreFromString(istrstream& theStream)
 {
   Backup();
 
+  theStream.seekg(0, ios::end);
+  long aSize = theStream.tellg();
+  theStream.seekg(0, ios::beg);
+
   int i, j, l;
+  char *aValueString = new char[aSize];
 
   Standard_ExtCharacter anExtChar;
   TCollection_ExtendedString aStr;
@@ -391,19 +399,23 @@ bool SALOMEDS_TableOfStringAttribute::RestoreFromString(istrstream& theStream)
   TCollection_AsciiString aValue;
   theStream >> l;
   myTable.Clear();
+  theStream.getline(aValueString,aSize,'\n');
   for(i=1; i<=l; i++) {
     Standard_Integer aKey;
-    theStream >> aKey;
-    theStream >> aValue;
+
+    theStream.getline(aValueString,aSize,'\n');
+    aValue = aValueString;
+    aKey = aValue.IntegerValue();
+    if (aValue.Value(1) == '0')
+      aValue = "";
+    else {
+      unsigned long aValueSize;
+      theStream.read((char*)&aValueSize, sizeof(unsigned long));
+      theStream.read(aValueString, aValueSize);
+      aValue = aValueString;
+    }
     myTable.Bind(aKey, aValue);
-//    theStream >> l;
-//    aStr = TCollection_ExtendedString(l,0);
-//    for(j=1; j<=l; j++) {
-//      theStream >> anExtChar;
-//      aStr.SetValue(j, anExtChar);
-//    }
-//    myTable.Bind(aKey, aStr);
   }
-
+  delete(aValueString);
   return true;
 }
index b63323d1129682cb44cb8300fd2cd065419f9e47..ce835f6bdd39555e2a21d48d8a019075fa7b9ad4 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfStringAttribute.hxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfStringAttribute.hxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _SALOMEDS_TableOfStringAttribute_HeaderFile
 #define _SALOMEDS_TableOfStringAttribute_HeaderFile
index cc6da37520bd2af1daafbf6c5426041d686e2282..487845fb37397c58fa1931348ace65091ab3ad57 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfStringAttribute.ixx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfStringAttribute.ixx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #include <SALOMEDS_TableOfStringAttribute.jxx>
 
index 9e241043c646e95adfc7af13b2afa43ad0453fda..dfee582c3d83b3e0b81ba87af4ab9ea630cf4d8c 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEDS_TableOfStringAttribute.jxx
-//  Created   : Mon Apr  7 10:13:30 2003
-//  Author    : Sergey Ruin
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_TableOfStringAttribute.jxx
+//  Author : Sergey Ruin
+//  Module : SALOME
 
 #ifndef _TColStd_HSequenceOfExtendedString_HeaderFile
 #include <TColStd_HSequenceOfExtendedString.hxx>
index 933c6125229176e95d869679a4e5be1dd577f604..85191eed620cc7a30a85fff56d89924defed1ccb 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TargetAttribute.cdl
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
-//  $Header: 
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_TargetAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class TargetAttribute from SALOMEDS inherits Relation from TDataStd
 
index 5116c5a3bfd3b671681f52995e7d7526ba286f75..a043b9610a2483fa6068879ae07db2a7984dd9ff 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_TargetAttribute.cxx
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TargetAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header:  
 
+using namespace std;
 #include "SALOMEDS_TargetAttribute.ixx"
 #include <TDF_Reference.hxx>
 #include <TDF_ListIteratorOfAttributeList.hxx>
index 867ccfa63f41cff19dd303417d084f0443952da3..ef6af76261d6bb29645c00bbfecb0d3648b270c6 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TargetAttribute.hxx
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TargetAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _SALOMEDS_TargetAttribute_HeaderFile
index 4b01a5e14eb71790e30783966ee0c47b75c9cf48..a777e0f53ee7eec660c057430555b0143c5c173c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TargetAttribute.ixx
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TargetAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #include "SALOMEDS_TargetAttribute.jxx"
index b316dee1c52c69897e79c5723f01434cb692d06d..56d2fb15457dab616241161d383ceb4d38128e87 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TargetAttribute.jxx
-//  Created   : Fri Aug 16 10:20:05 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TargetAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
 #ifndef _Standard_GUID_HeaderFile
index 95ae157dce0d75ad37e2ed422a62b7ec21493952..aa8059d0309dfa1a9d03ce6fec0928701f31a0c3 100644 (file)
@@ -1,13 +1,29 @@
-//  File      : SALOMEDS_TextColorAttribute.cdl
-//  Created   : Wed Nov 28 16:20:40 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header:
-
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_TextColorAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class TextColorAttribute from SALOMEDS inherits RealArray from TDataStd
 
index 22b50d252ea1ab900025bd9af5e4e2d83df56ea3..c264f94b3a577a09349709fef0014543184b79aa 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_TextColorAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextColorAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_TextColorAttribute.ixx"
 
 //=======================================================================
index f1a7c3de3dd252d9e2d9e1e87ead20408debf0db..9478017d971cf31d37ce21db841eebc233bca749 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TextColorAttribute.hxx
-//  Created   : Wed Jul 10 16:42:01 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextColorAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_TextColorAttribute_HeaderFile
index 5db5e680210de2fac705737fcb084235b550ba28..850605f71d07cc6693416d5f506e29a0f74bf24c 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TextColorAttribute.ixx
-//  Created   : Wed Jul 10 16:42:10 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextColorAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_TextColorAttribute.jxx"
index 7c08a81b17f24df7002f952b6cfe2cad835310aa..8155e888359bc4b48a5f57666f38753abaa9dcbe 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TextColorAttribute.jxx
-//  Created   : Wed Jul 10 16:42:16 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextColorAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index 42f0fcb67c94af713e8de898a53549d2e6d335e0..278c820a3b0097d4b1d80c28565966398b1da949 100644 (file)
@@ -1,13 +1,29 @@
-//  File      : SALOMEDS_TextHighlightColorAttribute.cdl
-//  Created   : Wed Nov 28 16:20:40 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
-//  $Header:
-
-
-
+--  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : SALOMEDS_TextHighlightColorAttribute.cdl
+--  Author : Yves FRICAUD
+--  Module : SALOME
 
 class TextHighlightColorAttribute from SALOMEDS inherits RealArray from TDataStd
 
index 2d670a4e300670eb2786654f38b160533a4458d4..4194d1353272ec2e1c808a7449e311b24c0f5b2d 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEDS_TextHighlightColorAttribute.cxx
-//  Created   : Wed Nov 28 16:09:35 2001
-//  Author    : Yves FRICAUD
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextHighlightColorAttribute.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header: 
 
+using namespace std;
 #include "SALOMEDS_TextHighlightColorAttribute.ixx"
 
 //=======================================================================
index 8416e326884a7f87be417002f81feb4ce11567a0..54790e15d84c1555e36bdfb241412a0f4c8b7b98 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TextHighlightColorAttribute.hxx
-//  Created   : Wed Jul 10 16:42:47 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextHighlightColorAttribute.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _SALOMEDS_TextHighlightColorAttribute_HeaderFile
index 46666d6e0c14090d3c0b2eeeaf8b79e074ec0c7c..2132a29b9b4c44c8ae912da07db86d7485465c05 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TextHighlightColorAttribute.ixx
-//  Created   : Wed Jul 10 16:44:31 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextHighlightColorAttribute.ixx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #include "SALOMEDS_TextHighlightColorAttribute.jxx"
index 13a333508d311ae5ad79141792d31d25c1037ed5..676a2b8b9439cbd5622e099a627f4a9308a8cba9 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEDS_TextHighlightColorAttribute.jxx
-//  Created   : Wed Jul 10 16:44:36 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEDS_TextHighlightColorAttribute.jxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 //  $Header$
 
 #ifndef _Standard_GUID_HeaderFile
index 79c436f312fd836ed30e1f55204fc7a145bbad59..341ba99a531bfb0cab4215e379b81e6c3ff84843 100644 (file)
@@ -1,12 +1,14 @@
-using namespace std;
-//  File      : SALOMEDS_Tool.cxx
-//  Created   : Mon Oct 21 16:24:34 2002
-//  Author    : Sergey RUIN
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_Tool.cxx
+//  Author : Sergey RUIN
+//  Module : SALOME
 
+using namespace std;
 #include "SALOMEDS_Tool.hxx"
 
 #include "utilities.h"
@@ -239,6 +241,7 @@ SALOMEDS_Tool::PutStreamToFiles(const SALOMEDS::TMPFile& theStream,
 
   unsigned char *aBuffer = (unsigned char*)theStream.NP_data();
 
+  if(aBuffer == NULL) return NULL;
 
   long aBufferSize = theStream.length();
   long aFileSize, aCurrentPos = 4;
@@ -287,7 +290,7 @@ char* SALOMEDS_Tool::GetNameFromPath(const char* thePath) {
   if (thePath == NULL) return strdup("");
   OSD_Path aPath = OSD_Path(TCollection_AsciiString(strdup(thePath)));
   TCollection_AsciiString aNameString(aPath.Name());
-  return aNameString.ToCString();
+  return CORBA::string_dup(aNameString.ToCString());
 }
 
 //============================================================================
@@ -299,5 +302,5 @@ char* SALOMEDS_Tool::GetDirFromPath(const char* thePath) {
   OSD_Path aPath = OSD_Path(TCollection_AsciiString(strdup(thePath)));
   TCollection_AsciiString aDirString(aPath.Trek());
   aDirString.ChangeAll('|','/');
-  return aDirString.ToCString();
+  return CORBA::string_dup(aDirString.ToCString());
 }
index c5f8e2260fecd64e31abc38b000cc4c40d2cf460..85557372dcea6415a087d70f189e4a6e389b4cb0 100644 (file)
@@ -1,11 +1,12 @@
-//  File      : SALOMEDS_Tool.hxx
-//  Created   : Mon Oct 21 16:24:50 2002
-//  Author    : Sergey RUIN
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE
-
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_Tool.hxx
+//  Author : Sergey RUIN
+//  Module : SALOME
 
 #ifndef __SALOMEDS_Tool_H__
 #define __SALOMEDS_Tool_H__
index f83e3e7e368bdb8b638ef99c2b5f179657bccb44..698fbb1c6cb3de72b48c8a807e7584c4b2effac8 100644 (file)
@@ -1,12 +1,14 @@
-using namespace std;
-//  File      : SALOMEDS_UseCaseBuilder_i.cxx
-//  Created   : Mon Oct 7 16:15:25 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_UseCaseBuilder_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 
+using namespace std;
 #include "SALOMEDS_UseCaseBuilder_i.hxx"
 #include "SALOMEDS_AttributeComment_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
index 8abda02b0b5ff0bccf2cb29fd7e6e8d4e7d02db9..f245aa7264781017456110ded591e097b4171353 100644 (file)
@@ -1,10 +1,12 @@
-//  File      : SALOMEDS_UseCaseBuilder_i.hxx
-//  Created   : Mon Oct 7 16:20:12 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_UseCaseBuilder_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 
 #ifndef __SALOMEDS_USECaseBuilder_I_H__
 #define __SALOMEDS_USECaseBuilder_I_H__
index 490a24acf1acd3742d436d94491bc2bd2988029c..69e7d39ecc165e46b3f0b402906f8bd4c90df405 100644 (file)
@@ -1,12 +1,14 @@
-using namespace std;
-//  File      : SALOMEDS_UseCaseIterator_i.cxx
-//  Created   : Mon Oct 7 16:15:25 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_UseCaseIterator_i.cxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 
+using namespace std;
 #include "SALOMEDS_UseCaseIterator_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include "utilities.h"
index 8fe55d905c7dde229e5c5426e0839d9989115e5c..f936a222fc3c32591ab9b8123b2d226423d55a1b 100644 (file)
@@ -1,10 +1,12 @@
-//  File      : SALOMEDS_UseCaseIterator_i.hxx
-//  Created   : Mon Oct 7 16:20:12 2002
-//  Author    : Yves FRICAUD
-
-//  Project   : SALOME
-//  Module    : SALOMEDS
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEDS_UseCaseIterator_i.hxx
+//  Author : Yves FRICAUD
+//  Module : SALOME
 
 #ifndef __SALOMEDS_USECASEITERATOR_I_H__
 #define __SALOMEDS_USECASEITERATOR_I_H__
index 333a02fa109c9b8de73424f19661840ddc0c647c..3cd768ba35e9dec38fb5c46da576e568edf14e62 100644 (file)
@@ -1,6 +1,12 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : CLIENT_icons.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
index 0a1a5735b176808f56e319fac98f15bcd982319f..2fd8dacdf8c4b765b2cc99ea785df98cafb86edf 100644 (file)
@@ -1,6 +1,12 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : CLIENT_msg_en.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
@@ -14,7 +20,7 @@ msgstr ""
 #---------------
 
 msgid "INF_VERSION"
-msgstr "Version 1.1a"
+msgstr "Version 1.2"
 
 msgid "INF_COPYRIGHT"
 msgstr "Copyright (C) 2002, OPEN CASCADE"
@@ -32,8 +38,8 @@ msgstr "salome"
 
 #: QAD_Application.cxx:133
 msgid "QAD_Application::APP_DEFAULTTITLE"
-msgstr "SALOME Professional 1.1a"
+msgstr "SALOME Professional 1.2"
 
 #: QAD_Desktop.cxx:424
 msgid "QAD_Desktop::DESK_DEFAULTTITLE"
-msgstr "SALOME Professional 1.1a"
\ No newline at end of file
+msgstr "SALOME Professional 1.2"
\ No newline at end of file
index de8d1438ca2a4423afdd747b1ac4adcb1e1ce282..4caa5b2d5c7f0a970c31c2f4dd942452900b9800 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
 #define _Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
index aba41d8aa91e10da138b5a72270d5c8319ea9230..49eb7b877239f5fa57a8aed861f4f1493b1e3888 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_Filter.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_Filter_HeaderFile
 #define _Handle_SALOME_Filter_HeaderFile
index e0aebcbcbcc56b73a870d963e1f02aa7b8385cd1..0df5e98bee064b21ce6a649d977250103cc64f34 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_ListNodeOfListIO.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_ListNodeOfListIO_HeaderFile
 #define _Handle_SALOME_ListNodeOfListIO_HeaderFile
index b7358368a79bba559675740bd06b38ddb739c420..07d7fd81fd8c7be9c4ecd0dd665e5b7e92c8f0ed 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_ListNodeOfListOfFilter.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_ListNodeOfListOfFilter_HeaderFile
 #define _Handle_SALOME_ListNodeOfListOfFilter_HeaderFile
index bd775fd59c4e72a62e10fa20451be344e4457d84..efdfc177c1cff7af5afbe2718fceedbed8e45ee2 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_NumberFilter.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_NumberFilter_HeaderFile
 #define _Handle_SALOME_NumberFilter_HeaderFile
index 1bdcd31d7e44217506315992229ade809806fcf7..4fdd91368589352074ec12ab7d7b5d57c5c2ddbf 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_SALOME_TypeFilter.hxx
+//  Module : SALOME
 
 #ifndef _Handle_SALOME_TypeFilter_HeaderFile
 #define _Handle_SALOME_TypeFilter_HeaderFile
index 721761660263a0f97798334dacedf9163a182e9e..dcc2aa67af1cac3d910703d31e2d11cf316a82cb 100644 (file)
@@ -1,6 +1,31 @@
-# source path
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -9,6 +34,7 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 
 EXPORT_HEADERS = \
                  QAD.h \
+                  QAD_Action.h \
                  QAD_Application.h \
                  QAD_Config.h \
                  QAD_Desktop.h \
@@ -160,6 +186,7 @@ LIB_MOC = \
                  SALOMEGUI_Application.h \
                  SALOMEGUI_Desktop.h \
                  QAD_Application.h \
+                  QAD_Action.h \
                  QAD_Desktop.h \
                   QAD_DirListDlg.h \
                   QAD_FileDlg.h \
@@ -191,8 +218,8 @@ LIB_CLIENT_IDL = SALOMEDS.idl \
                 SALOME_Component.idl \
                 SALOME_Exception.idl
 
-CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(QWT_INCLUDES)
-LDFLAGS+=$(QT_MT_LIBS) $(OCC_LIBS) $(VTK_LIBS) $(QWT_LIBS) -lSalomeNS -lqsplitterP -lSalomeLifeCycleCORBA -lOpUtil -lSalomeObject
+CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES)
+LDFLAGS+=$(QT_MT_LIBS) $(OCC_LIBS) -lSalomeNS -lqsplitterP -lSalomeLifeCycleCORBA -lOpUtil -lSalomeObject
 
 LIBS+= $(PYTHON_LIBS)
 
index 05c0c4834a062f9fb86c75f2d8515c49171e0855..ecd145c4b035953ebb43b2c453b201da81d83f44 100644 (file)
@@ -1,14 +1,16 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : PyInterp_PyQt.cxx
+//  Author : Christian CAREMOLI, Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
+
 using namespace std;
 using namespace std;
-//=============================================================================
-// File      : PyInterp_PyQt.cxx
-// Created   : ven fév  7 10:01:36 CET 2003
-// Author    : Christian CAREMOLI, Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2003
-// $Header$
-//=============================================================================
-
 #include "PyInterp_PyQt.h"
 
 #include "utilities.h"
index 3c8b18465cd899698337cb74e256e7d17b7d8144..bc6a29849da2e0a20ee6fbe3a0c1e9992c1c79d1 100644 (file)
@@ -1,11 +1,13 @@
-//=============================================================================
-// File      : PyInterp_PyQt.h
-// Created   : ven fév  7 10:01:36 CET 2003
-// Author    : Christian CAREMOLI, Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2003
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : PyInterp_PyQt.h
+//  Author : Christian CAREMOLI, Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _PYINTERP_PYQT_H_
 #define _PYINTERP_PYQT_H_
index 52aa2c19f0a78cc49c6527c54c9f0ea694f1f6fa..2faadca512aca7289cf257cfdcd6835863d2fc76 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//=============================================================================
-// File      : PyInterp_base.cxx
-// Created   : ven fév  7 10:01:36 CET 2003
-// Author    : Christian CAREMOLI, Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2003
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : PyInterp_base.cxx
+//  Author : Christian CAREMOLI, Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "PyInterp_base.h"
 #include "utilities.h"
 #include <string>
index 81a76c5e68c8eeb8b21e83cc0cfbf3f97747cb57..48781e85f815407638cb4cdefcbf7cc4bfab31ea 100644 (file)
@@ -1,11 +1,13 @@
-//=============================================================================
-// File      : PyInterp_base.h
-// Created   : ven fév  7 10:01:36 CET 2003
-// Author    : Christian CAREMOLI, Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2003
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : PyInterp_base.h
+//  Author : Christian CAREMOLI, Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _PYINTERP_BASE_H_
 #define _PYINTERP_BASE_H_
index c0d237219d19ec0653a74f3b7887c9b026c7b4fd..b5d542e1eb1f75dde97a9c6456b233c154782af4 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD.h
+//  Module : SALOME
+
 /***********************************************************
 **  File:    QAD.h
 **  Descr:   General definitions for QAD
diff --git a/src/SALOMEGUI/QAD_Action.h b/src/SALOMEGUI/QAD_Action.h
new file mode 100644 (file)
index 0000000..0a82f62
--- /dev/null
@@ -0,0 +1,77 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Action.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
+//  $Header$
+
+#ifndef QAD_ACTION_H
+#define QAD_ACTION_H
+
+#include "qactionP.h"
+#include <qmap.h>
+
+class ActionMap {
+ public:
+     ActionMap() {}
+     ~ActionMap() 
+     { 
+       QMapIterator<unsigned int, QActionP*> it;
+       for ( it = myMap.begin(); it != myMap.end(); it++ ) delete (QActionP*)it.data();
+       myMap.clear();
+     }
+     bool isEmpty()                                           { return myMap.isEmpty(); }
+     void insert( const unsigned int id, QActionP* action )   { myMap[id] = action;     }
+     QActionP* at( const unsigned int id )                    { return myMap[id];       }
+     void clear()                                             { myMap.clear();          }
+     QActionP*& operator[] (const unsigned int id)            { return myMap[id];       }
+     bool hasAction( const unsigned int id )                  { return myMap.contains(id); }
+
+ private:
+     QMap<unsigned int, QActionP*> myMap;
+
+};
+
+class ToggleAction : public QActionP {
+  Q_OBJECT
+ public:
+  ToggleAction( const QString& text,     const QString& menuText, 
+               QKeySequence   accel,    QObject*       parent, 
+               const char*    name = 0, bool           toggle = FALSE)
+    : QActionP( text, menuText, accel, parent, name, toggle ) 
+      {
+       connect( this, SIGNAL(toggled(bool)), this, SLOT(onToggled(bool)));
+      }
+ private slots:
+  void onToggled( bool on)
+    {
+      on ? emit( toggledOn() ) : emit( toggledOff() );
+    }
+  
+ signals:
+  void toggledOn();
+  void toggledOff();
+};
+
+#endif
index 96b49170ba06410e0fbd1ae1754f0912222c01db..935f2c4e7751e8259280bbe2d07360fc70db32c8 100644 (file)
@@ -1,15 +1,32 @@
-using namespace std;
-//  File      : QAD_Application.cxx
-//  Created   : UI team, 22.09.00
-//  Descr     : Study manager of QAD-based application
-
-//  Modified  : Mon Dec 03 13:21:50 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Application.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_Application QAD_Application.h
   \brief Study manager for QAD-based application.
@@ -37,7 +54,6 @@ using namespace std;
 #include <qdialog.h>
 #include <qstring.h>
 #include <qpixmap.h>
-#include <qaction.h>
 #include <qfile.h>
 #include <qfileinfo.h>
 #include <qmessagebox.h> 
@@ -207,9 +223,6 @@ myStudyExtension( extension ),
 myStudyDescription( description )
 {        
   /* actions are stored in vectors only */
-  myEditActions.setAutoDelete ( true );
-  myViewActions.setAutoDelete ( true );
-  myHelpActions.setAutoDelete ( true );    
   
   /* studies are managed by me */
   myStudies.setAutoDelete( true );   
@@ -270,7 +283,7 @@ void QAD_Application::createActions()
   // Undo
   if ( !myEditActions.at( EditUndoId ) )
     {        
-      QAction* editUndo = new QAction ( tr("TOT_APP_EDIT_UNDO"), 
+      QActionP* editUndo = new QActionP( tr("TOT_APP_EDIT_UNDO"), 
                                        rmgr->loadPixmap( "QAD",
                                                          tr("ICON_APP_EDIT_UNDO") ), 
                                        tr("MEN_APP_EDIT_UNDO"),
@@ -282,7 +295,7 @@ void QAD_Application::createActions()
   // Redo
   if ( !myEditActions.at( EditRedoId ) )
     {               
-      QAction* editRedo = new QAction ( tr("TOT_APP_EDIT_REDO"), 
+      QActionP* editRedo = new QActionP ( tr("TOT_APP_EDIT_REDO"), 
                                        rmgr->loadPixmap( "QAD",  tr("ICON_APP_EDIT_REDO") ), 
                                        tr("MEN_APP_EDIT_REDO"), CTRL+Key_Y, desktop );
       editRedo->setStatusTip ( tr("PRP_APP_EDIT_REDO") );
@@ -292,7 +305,7 @@ void QAD_Application::createActions()
   // Copy
   if ( !myEditActions.at( EditCopyId ) )
     {        
-      QAction* editCopy = new QAction ( tr("TOT_APP_EDIT_COPY"), 
+      QActionP* editCopy = new QActionP ( tr("TOT_APP_EDIT_COPY"), 
                                        rmgr->loadPixmap( "QAD",
                                                          tr("ICON_APP_EDIT_COPY") ), 
                                        tr("MEN_APP_EDIT_COPY"),
@@ -304,7 +317,7 @@ void QAD_Application::createActions()
   // Paste
   if ( !myEditActions.at( EditPasteId ) )
     {        
-      QAction* editPaste = new QAction ( tr("TOT_APP_EDIT_PASTE"), 
+      QActionP* editPaste = new QActionP ( tr("TOT_APP_EDIT_PASTE"), 
                                        rmgr->loadPixmap( "QAD",
                                                          tr("ICON_APP_EDIT_PASTE") ), 
                                        tr("MEN_APP_EDIT_PASTE"),
@@ -663,10 +676,10 @@ int QAD_Application::onUpdateEditActions ( QPopupMenu* popup, bool add, int inde
 {
     QAD_ASSERT_DEBUG_ONLY( !myEditActions.isEmpty() );
     QToolBar* tb = getDesktop()->getStdToolBar();
-    QAction* undo  = myEditActions.at( EditUndoId );
-    QAction* redo  = myEditActions.at( EditRedoId );
-    QAction* copy  = myEditActions.at( EditCopyId );
-    QAction* paste = myEditActions.at( EditPasteId );
+    QActionP* undo  = myEditActions.at( EditUndoId );
+    QActionP* redo  = myEditActions.at( EditRedoId );
+    QActionP* copy  = myEditActions.at( EditCopyId );
+    QActionP* paste = myEditActions.at( EditPasteId );
     if ( add ) 
     {         
       undo->addTo( popup );    
@@ -852,22 +865,22 @@ QAD_Study* QAD_Application::loadStudy( const QString& fileName )
   QAD_Study* loadStudy = 0;
   QApplication::setOverrideCursor( Qt::waitCursor );
   try {        
-    /* create QAD study */            
+    /* create QAD study */  
     loadStudy = new QAD_Study( this, aStudy, aStudy->Name() );
     
     if ( loadStudy->getResult() ) {
       addStudy( loadStudy );
       
-      /* activate */
+     /* activate */
       onStudyActivated( loadStudy );
       
       /* customisation on load ( called only once ) */
       onStudyOpened( loadStudy );       
       
-      /* show */
+     /* show */
       loadStudy->show();
       
-      /* customization on show ( called only once ) */
+     /* customization on show ( called only once ) */
       onStudyShown( loadStudy );        
     }
 
@@ -945,11 +958,13 @@ QAD_Study* QAD_Application::openStudy( const QString& fileName )
 bool QAD_Application::saveStudy( QAD_Study* study )
 {
     bool MultiSave = QAD_CONFIG->getSetting("Desktop:MultiFileSave") == "true";
+    bool ASCIISave = QAD_CONFIG->getSetting("Desktop:ASCIISave") == "true";
     bool success = true;
     QApplication::setOverrideCursor( Qt::waitCursor );
     try {
       /* save StudyDS */
-      myStudyMgr->Save(study->getStudyDocument(), MultiSave);
+      if (ASCIISave) myStudyMgr->SaveASCII(study->getStudyDocument(), MultiSave);
+      else myStudyMgr->Save(study->getStudyDocument(), MultiSave);
       study->updateCaptions();
     } 
     catch ( Standard_Failure ) {        
@@ -966,6 +981,7 @@ bool QAD_Application::saveStudy( QAD_Study* study )
 bool QAD_Application::saveAsStudy( QAD_Study* study, const QString& fileName )
 {   
     bool MultiSave = QAD_CONFIG->getSetting("Desktop:MultiFileSave") == "true";
+    bool ASCIISave = QAD_CONFIG->getSetting("Desktop:ASCIISave") == "true";
     bool success = false;
 #ifdef WNT
     /*  Qt uses UNIX-like slashes even on WIN platform */        
@@ -982,7 +998,8 @@ bool QAD_Application::saveAsStudy( QAD_Study* study, const QString& fileName )
         TCollection_ExtendedString fileNameExt ( (char*) name.latin1() );
         try {
          /* save as StudyDS */
-         myStudyMgr->SaveAs(name.latin1(), study->getStudyDocument(), MultiSave);
+         if (ASCIISave) myStudyMgr->SaveAsASCII(name.latin1(), study->getStudyDocument(), MultiSave);
+         else myStudyMgr->SaveAs(name.latin1(), study->getStudyDocument(), MultiSave);
 
          study->setTitle( fileName );
          study->updateCaptions();
index aeee89532993d3e56e9814f55156406fe57a8b1a..cd6985ae69a3a0039de1925d163744cd8b1c634d 100644 (file)
@@ -1,27 +1,43 @@
-//  File      : QAD_Application.h
-//  Created   : UI team, 22.09.00
-//  Descr     : Study manager of QAD-based application
-
-//  Modified  : Mon Dec 03 13:21:50 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Application.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef QAD_Application_H
 #define QAD_Application_H
 
 #include "QAD.h"
 #include "QAD_Popup.h"
 #include "QAD_Study.h"
+#include "QAD_Action.h"
 
 #include "SALOME_NamingService.hxx"
 
 // QT Includes
 #include <qlist.h>
-#include <qaction.h>
 #include <qpixmap.h>
 #include <qstringlist.h>
 #include <qtranslator.h>
@@ -174,9 +190,9 @@ private:
     void                removeStudy( QAD_Study* study );    
 
 private :
-    QList<QAction>       myEditActions;
-    QList<QAction>       myViewActions;
-    QList<QAction>       myHelpActions;
+    ActionMap            myEditActions;
+    ActionMap            myViewActions;
+    ActionMap            myHelpActions;
     QMap<int, QToolBar*> myToolBars;
 };
 
index 511c2ed3a64c19884afb4849428a5a7bfd57b35b..b9d734f16a14647cf49f7d0358bea404c61912e2 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_Config.cxx
-//  Created   : Tue Sep 04 09:58:34 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Config.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 /*!
   \class QAD_Config QAD_Config.h
   \brief Settings file management for QAD-based application.
index 8a7138f323ae7bd0a83271f6a094e63ab5c92196..24baa207bf1eeb21518c20f7add1d2c0bd5a9724 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_Config.h
-//  Created   : Tue Sep 04 09:54:37 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Config.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_CONFIG_H
index fc6cd157ce628de24d62d35e08be62f108bbf967..c4d0c8cad4886c885a4550b6408c2c7bdc3612d7 100644 (file)
@@ -1,13 +1,29 @@
-using namespace std;
-//  File      : QAD_Desktop.cxx
-//  Created   : UI team, 02.10.00
-//  Descr     : Main desktop of QAD-based application
-
-//  Modified  : Mon Dec 03 13:40:28 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Desktop.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 /*!
@@ -70,6 +86,7 @@ using namespace std;
 #include <qiconset.h>
 #include <qfontdialog.h>
 #include <qlineedit.h>
+#include <qdatetime.h>
 
 #if QT_VERSION > 300
   #include <qlistbox.h>
@@ -171,7 +188,7 @@ myQueryClose( true )
   /* default background icon */
   QPixmap backgroundicon ( QAD_Desktop::getResourceManager()->loadPixmap( "CLIENT",
                                                                          tr("ICON_DESK_BACKGROUNDICON") ));
-  myToolBarAction.setAutoDelete( true );
+//myToolBarAction.setAutoDelete( true );
 
   /* default icon and title */
   QPixmap icon ( QAD_Desktop::getResourceManager()->loadPixmap( "CLIENT",
@@ -278,6 +295,11 @@ myQueryClose( true )
   
   /* VSR 13/01/03 : installing global event filter for the application */
   qApp->installEventFilter( this );
+
+  /* init pseudo random numbers generator */
+  QTime cTime = QTime::currentTime();
+  int secs = cTime.second() + 1;
+  for ( int s = 0; s < secs; s++ ) random();
 }
 
 /*!
@@ -435,7 +457,7 @@ void QAD_Desktop::createActions()
     /* 'File' actions */
     /* new */
     QAD_ResourceMgr* rmgr = QAD_Desktop::getResourceManager();
-    QAction* fileNewAction = new QAction ( tr("TOT_DESK_FILE_NEW"),
+    QActionP* fileNewAction = new QActionP ( tr("TOT_DESK_FILE_NEW"),
                                           rmgr->loadPixmap( "QAD", tr("ICON_FILE_NEW") ) ,
                                           tr("MEN_DESK_FILE_NEW"), CTRL+Key_N, this );
     fileNewAction->setStatusTip ( tr("PRP_DESK_FILE_NEW") );
@@ -446,7 +468,7 @@ void QAD_Desktop::createActions()
     myStdActions.insert ( FileNewId, fileNewAction );
 
     /* open */
-    QAction* fileOpenAction = new QAction( tr("TOT_DESK_FILE_OPEN"), rmgr->loadPixmap( "QAD", tr("ICON_FILE_OPEN") ),
+    QActionP* fileOpenAction = new QActionP( tr("TOT_DESK_FILE_OPEN"), rmgr->loadPixmap( "QAD", tr("ICON_FILE_OPEN") ),
                                           tr("MEN_DESK_FILE_OPEN"), CTRL+Key_O, this );
     fileOpenAction->setStatusTip ( tr("PRP_DESK_FILE_OPEN") );
     fileOpenAction->setEnabled ( true );
@@ -456,7 +478,7 @@ void QAD_Desktop::createActions()
     myStdActions.insert ( FileOpenId, fileOpenAction );
 
     /* load */
-    QAction* fileLoadAction = new QAction( tr("TOT_DESK_FILE_LOAD"), rmgr->loadPixmap( "QAD", tr("ICON_FILE_LOAD") ),
+    QActionP* fileLoadAction = new QActionP( tr("TOT_DESK_FILE_LOAD"), rmgr->loadPixmap( "QAD", tr("ICON_FILE_LOAD") ),
                                           tr("MEN_DESK_FILE_LOAD"), CTRL+Key_L, this );
     fileLoadAction->setStatusTip ( tr("PRP_DESK_FILE_LOAD") );
     fileLoadAction->setEnabled ( true );
@@ -465,7 +487,7 @@ void QAD_Desktop::createActions()
     myStdActions.insert ( FileLoadId, fileLoadAction );
 
     /* close */
-    QAction* fileCloseAction = new QAction( "", rmgr->loadPixmap( "QAD", tr("ICON_FILE_CLOSE") ),
+    QActionP* fileCloseAction = new QActionP( "", rmgr->loadPixmap( "QAD", tr("ICON_FILE_CLOSE") ),
                                            tr("MEN_DESK_FILE_CLOSE"), CTRL+Key_W, this );
     fileCloseAction->setStatusTip ( tr("PRP_DESK_FILE_CLOSE") );
     QAD_ASSERT ( connect( fileCloseAction, SIGNAL( activated() ), this, SLOT( onCloseStudy() )));
@@ -476,7 +498,7 @@ void QAD_Desktop::createActions()
     myFilePopup.insertSeparator();
 
     /* save */
-    QAction* fileSaveAction = new QAction( tr("TOT_DESK_FILE_SAVE"), rmgr->loadPixmap( "QAD", tr("ICON_FILE_SAVE") ),
+    QActionP* fileSaveAction = new QActionP( tr("TOT_DESK_FILE_SAVE"), rmgr->loadPixmap( "QAD", tr("ICON_FILE_SAVE") ),
                                           tr("MEN_DESK_FILE_SAVE"), CTRL+Key_S, this );
     fileSaveAction->setStatusTip ( tr("PRP_DESK_FILE_SAVE") );
     QAD_ASSERT ( connect( fileSaveAction, SIGNAL( activated() ), this, SLOT( onSaveStudy() )));
@@ -485,7 +507,7 @@ void QAD_Desktop::createActions()
     myStdActions.insert ( FileSaveId, fileSaveAction );
 
     /* save as */
-    QAction* fileSaveAsAction = new QAction( "", tr("MEN_DESK_FILE_SAVEAS"), 0, this );
+    QActionP* fileSaveAsAction = new QActionP( "", tr("MEN_DESK_FILE_SAVEAS"), 0, this );
     fileSaveAsAction->setStatusTip ( tr("PRP_DESK_FILE_SAVEAS") );
     QAD_ASSERT ( connect( fileSaveAsAction, SIGNAL( activated() ),
                          this, SLOT( onSaveAsStudy() )));
@@ -497,7 +519,7 @@ void QAD_Desktop::createActions()
     myFilePopup.insertSeparator();
 
     // Study properties
-    QAction* filePropsAction = new QAction( "", QPixmap(), tr("MEN_DESK_FILE_PROPERTIES"), 0, this );
+    QActionP* filePropsAction = new QActionP( "", QPixmap(), tr("MEN_DESK_FILE_PROPERTIES"), 0, this );
     filePropsAction->setStatusTip ( tr("PRP_DESK_FILE_PROPERTIES") );
     filePropsAction->setEnabled(false);
     QAD_ASSERT ( connect( filePropsAction, SIGNAL( activated() ), this, SLOT( onStudyProperties() )));
@@ -512,7 +534,7 @@ void QAD_Desktop::createActions()
     myFilePos = myFilePopup.indexOf( id ) + 1;
 
     /* exit application */
-    QAction* exitAction = new QAction( "", tr("MEN_DESK_FILE_EXIT"),
+    QActionP* exitAction = new QActionP( "", tr("MEN_DESK_FILE_EXIT"),
                                       CTRL+Key_X, this );
     exitAction->setStatusTip ( tr("PRP_DESK_FILE_EXIT") );
     QAD_ASSERT ( connect( exitAction, SIGNAL( activated() ),
@@ -530,7 +552,7 @@ void QAD_Desktop::createActions()
                          this, SLOT(onToolBarPopupAboutToShow()) ));
 
     /* status bar */
-    QAction* viewStatusBarAction = new QAction( "",
+    QActionP* viewStatusBarAction = new QActionP( "",
                                                tr("MEN_DESK_VIEW_STATUSBAR"),
                                                0, this, 0, true );
     viewStatusBarAction->setStatusTip ( tr("PRP_DESK_VIEW_STATUSBAR") );
@@ -541,22 +563,22 @@ void QAD_Desktop::createActions()
 
 //    myViewPopup.insertItem( tr("MEN_DESK_SELECTION_MODE"), &mySelectionModePopup );
 
-    QAction* SelectionPointAction = new QAction( "", tr("MEN_DESK_SELECTION_POINT"), 0, this, 0, true  );
+    QActionP* SelectionPointAction = new QActionP( "", tr("MEN_DESK_SELECTION_POINT"), 0, this, 0, true  );
     QAD_ASSERT(connect( SelectionPointAction, SIGNAL(activated()), this, SLOT(onSelectionMode() )));
     SelectionPointAction->addTo( &mySelectionModePopup );
     myStdActions.insert( SelectionPointId, SelectionPointAction );
 
-    QAction* SelectionEdgeAction = new QAction( "", tr("MEN_DESK_SELECTION_EDGE"), 0, this, 0, true  );
+    QActionP* SelectionEdgeAction = new QActionP( "", tr("MEN_DESK_SELECTION_EDGE"), 0, this, 0, true  );
     QAD_ASSERT(connect( SelectionEdgeAction, SIGNAL(activated()), this, SLOT(onSelectionMode() )));
     SelectionEdgeAction->addTo( &mySelectionModePopup );
     myStdActions.insert( SelectionEdgeId, SelectionEdgeAction );
 
-    QAction* SelectionCellAction = new QAction( "", tr("MEN_DESK_SELECTION_CELL"), 0, this, 0, true  );
+    QActionP* SelectionCellAction = new QActionP( "", tr("MEN_DESK_SELECTION_CELL"), 0, this, 0, true  );
     QAD_ASSERT(connect( SelectionCellAction, SIGNAL(activated()), this, SLOT(onSelectionMode() )));
     SelectionCellAction->addTo( &mySelectionModePopup );
     myStdActions.insert( SelectionCellId, SelectionCellAction );
 
-    QAction* SelectionActorAction = new QAction( "", tr("MEN_DESK_SELECTION_ACTOR"), 0, this, 0, true );
+    QActionP* SelectionActorAction = new QActionP( "", tr("MEN_DESK_SELECTION_ACTOR"), 0, this, 0, true );
     QAD_ASSERT(connect( SelectionActorAction, SIGNAL(activated()), this, SLOT(onSelectionMode() )));
     SelectionActorAction->addTo( &mySelectionModePopup );
     myStdActions.insert( SelectionActorId, SelectionActorAction );
@@ -620,22 +642,22 @@ void QAD_Desktop::createActions()
     /* Viewer BackgroundColor */
     myPrefPopup.insertItem( tr("MEN_DESK_PREF_VIEWER"), &myViewerPopup );
     
-    QAction* viewerOCCAction = new QAction( "", tr("MEN_DESK_PREF_VIEWER_OCC"), 0, this );
+    QActionP* viewerOCCAction = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_OCC"), 0, this );
     QAD_ASSERT(connect( viewerOCCAction, SIGNAL(activated()), this, SLOT(onViewerOCC() )));
     viewerOCCAction->addTo( &myViewerPopup );
     myStdActions.insert( PrefViewerOCCId, viewerOCCAction );
 
-    QAction* viewerVTKAction = new QAction( "", tr("MEN_DESK_PREF_VIEWER_VTK"), 0, this );
+    QActionP* viewerVTKAction = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_VTK"), 0, this );
     QAD_ASSERT(connect( viewerVTKAction, SIGNAL(activated()), this, SLOT(onViewerVTK() )));
     viewerVTKAction->addTo( &myViewerPopup );
     myStdActions.insert( PrefViewerVTKId, viewerVTKAction );
 
-    QAction* graphSupervisorAction = new QAction( "", tr("MEN_DESK_PREF_GRAPH_SUPERVISOR"), 0, this );
+    QActionP* graphSupervisorAction = new QActionP( "", tr("MEN_DESK_PREF_GRAPH_SUPERVISOR"), 0, this );
     QAD_ASSERT(connect( graphSupervisorAction, SIGNAL(activated()), this, SLOT(onGraphSupervisor() )));
     graphSupervisorAction->addTo( &myViewerPopup );
     myStdActions.insert( PrefGraphSupervisorId, graphSupervisorAction );
 
-    QAction* viewerPlot2dAction = new QAction( "", tr("MEN_DESK_PREF_VIEWER_PLOT2D"), 0, this );
+    QActionP* viewerPlot2dAction = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_PLOT2D"), 0, this );
     QAD_ASSERT(connect( viewerPlot2dAction, SIGNAL(activated()), this, SLOT(onPlot2d() )));
     viewerPlot2dAction->addTo( &myViewerPopup );
     myStdActions.insert( PrefViewerPlot2dId, viewerPlot2dAction );
@@ -648,48 +670,48 @@ void QAD_Desktop::createActions()
       aViewerValue = VIEW_VTK;
 
     myPrefPopup.insertItem( tr("MEN_DESK_PREF_DEFAULT_VIEWER"), &myDefaultViewer );
-    QActionGroup* myQAG = new QActionGroup ( this);
-    QAction* viewerOCCAction1 = new QAction( "", tr("MEN_DESK_PREF_VIEWER_OCC"), 0, this );
+    QActionPGroup* myQAG = new QActionPGroup ( this);
+    QActionP* viewerOCCAction1 = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_OCC"), 0, this );
     viewerOCCAction1->setToggleAction ( true);
     viewerOCCAction1->setOn ( aViewerValue == VIEW_OCC );
     myQAG->insert( viewerOCCAction1 );
     myStdActions.insert( DefaultViewerOCCId, viewerOCCAction1 );
 
-    QAction* viewerVTKAction1 = new QAction( "", tr("MEN_DESK_PREF_VIEWER_VTK"), 0, this );
+    QActionP* viewerVTKAction1 = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_VTK"), 0, this );
     viewerVTKAction1->setToggleAction ( true);
     viewerVTKAction1->setOn ( aViewerValue == VIEW_VTK );
     myQAG->insert( viewerVTKAction1 );
     myStdActions.insert( DefaultViewerVTKId, viewerVTKAction1 );
 
 /*    Remove Supervisor viewer from setting the background */
-//    QAction* graphSupervisorAction1 = new QAction( "", tr("MEN_DESK_PREF_GRAPH_SUPERVISOR"), 0, this );
+//    QActionP* graphSupervisorAction1 = new QActionP( "", tr("MEN_DESK_PREF_GRAPH_SUPERVISOR"), 0, this );
 //    graphSupervisorAction1->setToggleAction ( true);
 //    graphSupervisorAction1->setOn ( aViewerValue == VIEW_GRAPHSUPERV );
 //    myQAG->insert( graphSupervisorAction1 );
 //    myStdActions.insert( DefaultGraphSupervisorId, graphSupervisorAction1 );
 
-    QAction* viewerPlot2dAction1 = new QAction( "", tr("MEN_DESK_PREF_VIEWER_PLOT2D"), 0, this );
+    QActionP* viewerPlot2dAction1 = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_PLOT2D"), 0, this );
     viewerPlot2dAction1->setToggleAction ( true);
     viewerPlot2dAction1->setOn ( aViewerValue == VIEW_PLOT2D );
     myQAG->insert( viewerPlot2dAction1 );
     myStdActions.insert( DefaultPlot2dId, viewerPlot2dAction1 );
 
     myQAG->addTo( &myDefaultViewer );
-    QAD_ASSERT(connect( myQAG, SIGNAL(selected(QAction * )), this, SLOT(onDefaultViewer(QAction *) )));
+    QAD_ASSERT(connect( myQAG, SIGNAL(selected(QActionP * )), this, SLOT(onDefaultViewer(QActionP *) )));
     //VRV: T2.5 - add default viewer
 
-    QAction* viewerTrihedronAction = new QAction( "", tr("MEN_DESK_PREF_VIEWER_TRIHEDRON"), 0, this );
+    QActionP* viewerTrihedronAction = new QActionP( "", tr("MEN_DESK_PREF_VIEWER_TRIHEDRON"), 0, this );
     QAD_ASSERT(connect( viewerTrihedronAction, SIGNAL(activated()), this, SLOT(onViewerTrihedron() )));
     viewerTrihedronAction->addTo( &myPrefPopup );
     myStdActions.insert( PrefViewerTrihedronId, viewerTrihedronAction );
 
-    QAction* consoleFontAction = new QAction( "", tr("MEN_DESK_PREF_CONSOLE_FONT"), 0, this );
+    QActionP* consoleFontAction = new QActionP( "", tr("MEN_DESK_PREF_CONSOLE_FONT"), 0, this );
     QAD_ASSERT(connect( consoleFontAction, SIGNAL(activated()), this, SLOT(onConsoleFontAction() )));
     consoleFontAction->addTo( &myPrefPopup );
     myStdActions.insert( PrefConsoleFontId, consoleFontAction );
 
     /* MultiFile save */
-    QAction* multiFileSaveAction = new QAction( "", tr("MEN_DESK_PREF_MULTI_FILE_SAVE"), 0, this, 0, true );
+    QActionP* multiFileSaveAction = new QActionP( "", tr("MEN_DESK_PREF_MULTI_FILE_SAVE"), 0, this, 0, true );
     QAD_ASSERT(connect( multiFileSaveAction, SIGNAL(activated()), this, SLOT(onMultiFileSave() )));
     multiFileSaveAction->setToggleAction( true );
     QString MultiSave = QAD_CONFIG->getSetting("Desktop:MultiFileSave");
@@ -697,12 +719,21 @@ void QAD_Desktop::createActions()
     multiFileSaveAction->addTo( &myPrefPopup );
     myStdActions.insert( PrefMultiFileSave, multiFileSaveAction );
 
+    /* ASCII save */
+    QActionP* ASCIISaveAction = new QActionP( "", tr("MEN_DESK_PREF_ASCII_SAVE"), 0, this, 0, true );
+    QAD_ASSERT(connect( ASCIISaveAction, SIGNAL(activated()), this, SLOT(onASCIISave() )));
+    ASCIISaveAction->setToggleAction( true );
+    QString ASCIISave = QAD_CONFIG->getSetting("Desktop:ASCIISave");
+    ASCIISaveAction->setOn( ASCIISave.compare( aTrueQString ) == 0 );
+    ASCIISaveAction->addTo( &myPrefPopup );
+    myStdActions.insert( PrefASCIISave, ASCIISaveAction );
+
     myPrefPopup.insertSeparator();
     
     /* BrowserPopup */
     myPrefPopup.insertItem( tr("MEN_DESK_PREF_OBJECTBROWSER"), &myObjBrowserPopup );
     
-    QAction* objectBrowserEntryAction = new QAction( "", tr("MEN_DESK_PREF_OBJECTBROWSER_ENTRY"), 0, this, 0, true );
+    QActionP* objectBrowserEntryAction = new QActionP( "", tr("MEN_DESK_PREF_OBJECTBROWSER_ENTRY"), 0, this, 0, true );
     QAD_ASSERT(connect( objectBrowserEntryAction, SIGNAL(activated()), this, SLOT(onObjectBrowser() )));
     objectBrowserEntryAction->setToggleAction(true);
     QString AddColumn = QAD_CONFIG->getSetting("ObjectBrowser:AddColumn");
@@ -715,7 +746,7 @@ void QAD_Desktop::createActions()
     objectBrowserEntryAction->addTo( &myObjBrowserPopup );
     myStdActions.insert( PrefObjectBrowserEntryId, objectBrowserEntryAction );
 
-    QAction* objectBrowserValueAction = new QAction( "", tr("MEN_DESK_PREF_OBJECTBROWSER_VALUE"), 0, this, 0, true );
+    QActionP* objectBrowserValueAction = new QActionP( "", tr("MEN_DESK_PREF_OBJECTBROWSER_VALUE"), 0, this, 0, true );
     QAD_ASSERT(connect( objectBrowserValueAction, SIGNAL(activated()), this, SLOT(onObjectBrowser() )));
     objectBrowserValueAction->setToggleAction(true);
     QString ValueColumn = QAD_CONFIG->getSetting("ObjectBrowser:ValueColumn");
@@ -728,7 +759,7 @@ void QAD_Desktop::createActions()
     objectBrowserValueAction->addTo( &myObjBrowserPopup );
     myStdActions.insert( PrefObjectBrowserValueId, objectBrowserValueAction );
 
-    QAction* objectBrowserIAPPAction = new QAction( "", tr("MEN_DESK_PREF_OBJECTBROWSER_IAPP"), 0, this, 0, true );
+    QActionP* objectBrowserIAPPAction = new QActionP( "", tr("MEN_DESK_PREF_OBJECTBROWSER_IAPP"), 0, this, 0, true );
     QAD_ASSERT(connect( objectBrowserIAPPAction, SIGNAL(activated()), this, SLOT(onObjectBrowser() )));
     objectBrowserIAPPAction->setToggleAction(true);
     QString showIAPP = QAD_CONFIG->getSetting("ObjectBrowser:IAPP");
@@ -742,7 +773,7 @@ void QAD_Desktop::createActions()
     myStdActions.insert( PrefObjectBrowserIAPPId, objectBrowserIAPPAction );
     
     /* Chronological sorting of shapes on the entry creation */
-    QAction* objectBrowserCHRONO_SORTAction = new QAction( "", tr("MEN_DESK_PREF_OBJECTBROWSER_CHRONO_SORT"), 0, this, 0, true );
+    QActionP* objectBrowserCHRONO_SORTAction = new QActionP( "", tr("MEN_DESK_PREF_OBJECTBROWSER_CHRONO_SORT"), 0, this, 0, true );
     QAD_ASSERT(connect( objectBrowserCHRONO_SORTAction, SIGNAL(activated()), this, SLOT(onObjectBrowser() )));
     objectBrowserCHRONO_SORTAction->setToggleAction(true);
     QString showSORT = QAD_CONFIG->getSetting("ObjectBrowser:CHRONO_SORT");
@@ -757,14 +788,14 @@ void QAD_Desktop::createActions()
     
     myPrefPopup.insertSeparator();
 
-    QAction* dirAction = new QAction( "", tr("MEN_DESK_PREF_DIRICTORIES"), 0, this );
+    QActionP* dirAction = new QActionP( "", tr("MEN_DESK_PREF_DIRICTORIES"), ALT+Key_D, this );
     QAD_ASSERT(connect( dirAction, SIGNAL(activated()), this, SLOT(onDirList() )));
     dirAction->addTo( &myPrefPopup );
     myStdActions.insert( PrefDirsId, dirAction );
     
     myPrefPopup.insertSeparator();
 
-    QAction* saveAction = new QAction( "", tr("MEN_DESK_PREF_SAVE"), 0, this );
+    QActionP* saveAction = new QActionP( "", tr("MEN_DESK_PREF_SAVE"), 0, this );
     QAD_ASSERT(connect( saveAction, SIGNAL(activated()), this, SLOT(onSavePref() )));
     saveAction->addTo( &myPrefPopup );
     myStdActions.insert( PrefSaveId, saveAction );
@@ -774,22 +805,22 @@ void QAD_Desktop::createActions()
     //NRI : SAL2214
     myWindowPopup.insertItem( tr("MEN_DESK_WINDOW_NEW3D"), &myNewViewPopup, WindowNew3dId );
     
-    QAction* viewOCCAction = new QAction( "", tr("MEN_DESK_VIEW_OCC"), 0, this );
+    QActionP* viewOCCAction = new QActionP( "", tr("MEN_DESK_VIEW_OCC"), ALT+Key_O, this );
     QAD_ASSERT(connect( viewOCCAction, SIGNAL(activated()), this, SLOT(onNewWindow3d() )));
     viewOCCAction->addTo( &myNewViewPopup );
     myStdActions.insert( ViewOCCId, viewOCCAction );
 
-    QAction* viewVTKAction = new QAction( "", tr("MEN_DESK_VIEW_VTK"), 0, this );
+    QActionP* viewVTKAction = new QActionP( "", tr("MEN_DESK_VIEW_VTK"), ALT+Key_K, this );
     QAD_ASSERT(connect( viewVTKAction, SIGNAL(activated()), this, SLOT(onNewWindow3d() )));
     viewVTKAction->addTo( &myNewViewPopup );
     myStdActions.insert( ViewVTKId, viewVTKAction );
 
-    QAction* viewPlot2dAction = new QAction( "", tr("MEN_DESK_VIEW_PLOT2D"), 0, this );
+    QActionP* viewPlot2dAction = new QActionP( "", tr("MEN_DESK_VIEW_PLOT2D"), ALT+Key_P, this );
     QAD_ASSERT(connect( viewPlot2dAction, SIGNAL(activated()), this, SLOT(onNewWindow3d() )));
     viewPlot2dAction->addTo( &myNewViewPopup );
     myStdActions.insert( ViewPlot2dId, viewPlot2dAction );
     
-    //  QAction* windowNew3dAction = new QAction( "",/* rmgr->loadPixmap( "QAD", tr("ICON_DESK_WINDOW_NEW3D") ), */
+    //  QActionP* windowNew3dAction = new QActionP( "",/* rmgr->loadPixmap( "QAD", tr("ICON_DESK_WINDOW_NEW3D") ), */
     /*tr("MEN_DESK_WINDOW_NEW3D"), 0, this );
       windowNew3dAction->addTo( &myWindowPopup );
       QAD_ASSERT( connect( windowNew3dAction, SIGNAL(activated()), this ,
@@ -800,7 +831,7 @@ void QAD_Desktop::createActions()
     //NRI : SAL2214
 
     /* cascaded */
-    QAction* windowCascadeAction = new QAction( "", rmgr->loadPixmap( "QAD", tr("ICON_DESK_WINDOW_CASCADE") ),
+    QActionP* windowCascadeAction = new QActionP( "", rmgr->loadPixmap( "QAD", tr("ICON_DESK_WINDOW_CASCADE") ),
                                                tr("MEN_DESK_WINDOW_CASCADE"), 0, this );
     windowCascadeAction->setStatusTip ( tr("PRP_DESK_WINDOW_CASCADE") );
     QAD_ASSERT( connect( windowCascadeAction, SIGNAL(activated()), this,
@@ -808,7 +839,7 @@ void QAD_Desktop::createActions()
     myStdActions.insert( WindowCascadeId, windowCascadeAction );
 
     /* tiled */
-    QAction* windowTileAction = new QAction( "", rmgr->loadPixmap( "QAD", tr("ICON_DESK_WINDOW_TILE") ),
+    QActionP* windowTileAction = new QActionP( "", rmgr->loadPixmap( "QAD", tr("ICON_DESK_WINDOW_TILE") ),
                                             tr("MEN_DESK_WINDOW_TILE"), 0, this );
     windowTileAction->setStatusTip ( tr("PRP_DESK_WINDOW_TILE") );
     QAD_ASSERT( connect( windowTileAction, SIGNAL(activated()), myWorkspace, SLOT( tile() )));
@@ -819,7 +850,7 @@ void QAD_Desktop::createActions()
     /* 'Help' actions
      */
     /* contents */
-    QAction* helpContentsAction = new QAction( "", tr("MEN_DESK_HELP_CONTENTS"), 0, this );
+    QActionP* helpContentsAction = new QActionP( "", tr("MEN_DESK_HELP_CONTENTS"), Key_F1, this );
     helpContentsAction->setStatusTip ( tr("PRP_DESK_HELP_CONTENTS") );
     QAD_ASSERT(connect( helpContentsAction, SIGNAL(activated()),
                        this, SLOT( onHelpContents() )));
@@ -827,14 +858,14 @@ void QAD_Desktop::createActions()
     myStdActions.insert( HelpContentsId , helpContentsAction );
 
     /* search */
-//    QAction* helpSearchAction = new QAction( "", tr("MEN_DESK_HELP_SEARCH"), 0, this );
+//    QActionP* helpSearchAction = new QActionP( "", tr("MEN_DESK_HELP_SEARCH"), 0, this );
 //    helpSearchAction->setStatusTip ( tr("PRP_DESK_HELP_SEARCH") );
 //    QAD_ASSERT( connect( helpSearchAction, SIGNAL(activated()), this, SLOT( onHelpSearch() )));
 //    helpSearchAction->addTo( &myHelpPopup );
 //    myStdActions.insert( HelpSearchId, helpSearchAction );
 
     /* What's This */
-//    QAction* helpWhatsThisAction = new QAction( "", tr("MEN_DESK_HELP_WHATSTHIS"), SHIFT+Key_F1, this );
+//    QActionP* helpWhatsThisAction = new QActionP( "", tr("MEN_DESK_HELP_WHATSTHIS"), SHIFT+Key_F1, this );
 //    helpWhatsThisAction->setStatusTip ( tr("PRP_DESK_HELP_WHATSTHIS" ));
 //    QAD_ASSERT( connect( helpWhatsThisAction, SIGNAL(activated()), this, SLOT( whatsThis() )));
 //    helpWhatsThisAction->addTo( &myHelpPopup );
@@ -845,7 +876,7 @@ void QAD_Desktop::createActions()
     myHelpPos = myHelpPopup.indexOf( id );
 
     /* about */
-    QAction* helpAboutAction = new QAction( "", tr("MEN_DESK_HELP_ABOUT"), 0, this );
+    QActionP* helpAboutAction = new QActionP( "", tr("MEN_DESK_HELP_ABOUT"), 0, this );
     helpAboutAction->setStatusTip ( tr("PRP_DESK_HELP_ABOUT") );
     QAD_ASSERT( connect( helpAboutAction, SIGNAL(activated()), this, SLOT( onHelpAbout() )));
     helpAboutAction->addTo( &myHelpPopup );
@@ -898,7 +929,8 @@ void QAD_Desktop::closeDesktop( bool forceClose )
 void QAD_Desktop::putInfo ( const QString& msg )
 {
   if ( myStatusBar )
-    myStatusBar->message ( msg );
+    //NRI : bug 1209. message is now displayed during 3000 ms
+    myStatusBar->message ( msg, 3000 );
 }
 
 /*!
@@ -1325,6 +1357,40 @@ void QAD_Desktop::onLoadStudy()
   putInfo ( tr("INF_READY") );
 }
 
+
+
+QAD_Study* QAD_Desktop::loadStudy(QString theStudyName) {
+  QString studyname("");
+
+  CORBA::Object_var obj = myNameService->Resolve("/myStudyManager");
+  SALOMEDS::StudyManager_var myStudyMgr = SALOMEDS::StudyManager::_narrow(obj);
+  ASSERT(! CORBA::is_nil(myStudyMgr));
+
+  SALOMEDS::ListOfOpenStudies_var List = myStudyMgr->GetOpenStudies();
+  for (unsigned int ind = 0; ind < List->length();ind++) {
+    if (theStudyName == QString(List[ind])) {
+      studyname = theStudyName;
+      break;
+    }
+  }
+  if (studyname == "") {
+    return NULL;
+  }
+  bool appFound = false;
+  for ( QAD_Application* app = myApps.first(); app; app = myApps.next() ) {
+    appFound = true;
+    QAD_Study* openStudy = app->loadStudy( studyname );
+    if (openStudy) {
+      //      if (myActiveApp == 0)
+      //myActiveApp = app;
+      return openStudy;
+    }
+    break;
+  }
+  return NULL;
+}
+
+
 /*!
     Opens the existing study.
     Displays select file dialog and calls corresponding function of
@@ -1675,7 +1741,7 @@ void QAD_Desktop::onCascade()
   QWidgetListIt it(wList);
 
   for(;it.current(); ++it)
-      it.current()->resize(0.8*w, 0.8*h);
+      it.current()->resize((int)(0.8*w), (int)(0.8*h));
 }
 
 /*!
@@ -1730,7 +1796,7 @@ void QAD_Desktop::onToolBarPopupAboutToShow()
 */
 void QAD_Desktop::onSelectionMode()
 {
-  const QAction* obj = (QAction*) sender();
+  const QActionP* obj = (QActionP*) sender();
   
   int SelectionMode = 4;
 
@@ -1844,7 +1910,7 @@ void QAD_Desktop::onNewWindow3d()
     }
     //VRV: T2.5 - add default viewer
   */
-  const QAction* obj = (QAction*) sender();
+  const QActionP* obj = (QActionP*) sender();
   if ( obj == myStdActions.at(ViewOCCId) ) {
     myActiveApp->getActiveStudy()->newWindow3d(QString(""),(ViewType)(0));
   } else if ( obj == myStdActions.at(ViewVTKId) ) {
@@ -1946,6 +2012,12 @@ void QAD_Desktop::updateActions()
 //    myPrefPopup.setEnabled ( myActiveStudy != NULL );
 
     mySelectionModePopup.setEnabled ( myActiveStudy != NULL );
+
+    // VSR ==> SAL2982
+    myStdActions.at( ViewOCCId )->setEnabled( myActiveStudy != NULL );
+    myStdActions.at( ViewVTKId )->setEnabled( myActiveStudy != NULL );
+    myStdActions.at( ViewPlot2dId )->setEnabled( myActiveStudy != NULL );
+    // VSR <== SAL2982
 }
 
 /*!
@@ -2924,7 +2996,7 @@ void QAD_Desktop::onViewerTrihedron()
       for ( QAD_Study* study = studies.first(); study; study = studies.next() )  {
        int nbSf = study->getStudyFramesCount();
        for ( int i = 0; i < nbSf; i++ ) {
-         study->getStudyFrame(i)->getRightFrame()->getViewFrame()->SetTrihedronSize(dim);
+         study->getStudyFrame(i)->getRightFrame()->getViewFrame()->SetTrihedronSize((int)dim);
        }
       }
     }
@@ -2974,7 +3046,7 @@ void QAD_Desktop::onSavePref()
 }
 
 //VRV: T2.5 - add default viewer
-void QAD_Desktop::onDefaultViewer(QAction * theAction)
+void QAD_Desktop::onDefaultViewer(QActionP * theAction)
 {
   int type = VIEW_TYPE_MAX;
   
@@ -3178,6 +3250,15 @@ void QAD_Desktop::onMultiFileSave()
     QAD_CONFIG->addSetting( "Desktop:MultiFileSave", "false");
 }
 
+/* Preferences/ASCII Save */
+void QAD_Desktop::onASCIISave()
+{
+  if ( myStdActions.at( PrefASCIISave )->isOn() )
+    QAD_CONFIG->addSetting( "Desktop:ASCIISave", "true");
+  else
+    QAD_CONFIG->addSetting( "Desktop:ASCIISave", "false");
+}
+
 /*********************************************************************
 ** Class: AppSelectionDlg
 ** Descr: Dialog for the selection of the application when several
index 9b577de96a8ffafe6a94b10ad2fd76bec3076819..f283e1c86de9c79d8ec25338b430a4062eac872c 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : QAD_Desktop.h
-//  Created   : UI team, 02.10.00
-//  Descr     : Main desktop of QAD-based application
-
-//  Modified  : Mon Dec 03 13:40:28 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Desktop.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_DESKTOP_H
@@ -18,6 +35,7 @@
 #include "QAD_OperatorMenus.h"
 #include "QAD_Menus.h"
 #include "QAD_HelpWindow.h"
+#include "QAD_Action.h"
 
 #include "SALOME_NamingService.hxx"
 #include "SALOME_LifeCycleCORBA.hxx"
@@ -30,7 +48,6 @@
 
 // QT Includes
 #include <qlist.h>
-#include <qaction.h>
 #include <qmap.h>
 #include <qmenubar.h>
 #include <qtoolbar.h>
 // Open CASCADE Includes
 #include <OSD_SharedLibrary.hxx>
 
-class ActionMap {
- public:
-     ActionMap() {}
-     ~ActionMap() 
-     { 
-       QMapIterator<unsigned int, QAction*> it;
-       for ( it = myMap.begin(); it != myMap.end(); it++ ) delete (QAction*)it.data();
-       myMap.clear();
-     }
-     bool isEmpty()                                           { return myMap.isEmpty(); }
-     void insert( const unsigned int id, QAction* action )    { myMap[id] = action;     }
-     QAction* at( const unsigned int id )                     { return myMap[id];       }
-     void clear()                                             { myMap.clear();          }
-     QAction*& operator[] (const unsigned int id)             { return myMap[id];       }
-
- private:
-     QMap<unsigned int, QAction*> myMap;
-
-};
-
-class ToggleAction : public QAction {
-  Q_OBJECT
- public:
-  ToggleAction( const QString& text,     const QString& menuText, 
-               QKeySequence   accel,    QObject*       parent, 
-               const char*    name = 0, bool           toggle = FALSE)
-    : QAction( text, menuText, accel, parent, name, toggle ) 
-      {
-       connect( this, SIGNAL(toggled(bool)), this, SLOT(onToggled(bool)));
-      }
- private slots:
-  void onToggled( bool on)
-    {
-      on ? emit( toggledOn() ) : emit( toggledOff() );
-    }
-  
- signals:
-  void toggledOn();
-  void toggledOff();
-};
-
 class QAD_XmlHandler;
 
 class QAD_EXPORT QAD_Desktop : public QMainWindow
@@ -104,7 +80,7 @@ protected:
          //VRV: T2.5 - add default viewer
          PrefViewerTrihedronId, PrefConsoleFontId, PrefObjectBrowserEntryId, 
          PrefObjectBrowserIAPPId, PrefObjectBrowserValueId, PrefObjectBrowserCHRONO_SORTId, 
-         PrefDirsId, PrefMultiFileSave, PrefSaveId,
+         PrefDirsId, PrefMultiFileSave, PrefASCIISave, PrefSaveId,
          //NRI : SAL2214
          WindowNew3dId, ViewOCCId, ViewVTKId, ViewPlot2dId,
          //NRI : SAL2214
@@ -198,6 +174,8 @@ public:
     bool             onMousePress(QMouseEvent*);
     void             onKeyPress(QKeyEvent*);
 
+    virtual QAD_Study* loadStudy(QString theStudyName);
+
 protected:
     bool             closeAllStudies( QAD_Application* );
     void             closeEvent( QCloseEvent* );
@@ -248,12 +226,13 @@ protected slots:
     void              onPlot2d();
     void              onConsoleFontAction();
   //VRV: T2.5 - add default viewer
-    void             onDefaultViewer( QAction * theAction);
+    void             onDefaultViewer( QActionP * theAction);
   //VRV: T2.5 - add default viewer
 
     void             onViewerTrihedron();
     void             onObjectBrowser();
     void              onMultiFileSave();
+    void              onASCIISave();
 
     void             onActivateApp(QAD_Application* app);
     void             onDeactivateApp(QAD_Application* app);
index 5605f1b5f3197b66dd3de42550d3df3737c248f2..a45638cd539f3fb928485727d869f8508bed902b 100644 (file)
@@ -1,14 +1,15 @@
-using namespace std;
-//  File      : QAD_DirListDlg.cxx
-//  Created   : 10/10/2002
-//  Descr     : Dialog box for editing of directory list
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_DirListDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_DirListDlg.h"
 #include "QAD_Desktop.h"
 #include "QAD_FileDlg.h"
index f6f462dc324573d85a1bcd46fbd04313c3fb8be7..369d5ea2483f64e67ba77ebb28b20b760c8bdfe5 100644 (file)
@@ -1,11 +1,12 @@
-//  File      : QAD_DirListDlg.h
-//  Created   : 10/10/2002
-//  Descr     : Dialog box for editing of directory list
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_DirListDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #if !defined(QAD_DirListDlg_h)
index 94295f1e867172979e87ae19309342d5cb6d0275..2d626eb9650659b1ceb477666fb38ab3cf5885dc 100644 (file)
@@ -1,15 +1,15 @@
-using namespace std;
-//  File      : QAD_FileDlg.cxx
-//  Created   : UI team, 17.09.02
-//  Descr     : Open/Save File dialog
-
-//  Modified  : Tue Sep 17 11:15:23 2002
-//  Author    : 
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_FileDlg.cxx
+//  Author : 
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <qapplication.h>
 #include <qdir.h>
 #include <qlabel.h>
index 451c1a975cd756d05cc9f9efb30f56e3b2cf842d..a38dc8861511817372f4db7c30751c22ba680ca1 100644 (file)
@@ -1,12 +1,12 @@
-//  File      : QAD_FileDlg.h
-//  Created   : UI team, 17.09.02
-//  Descr     : Open/Save File dialog
-
-//  Modified  : Tue Sep 17 11:02:12 2002
-//  Author    : 
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_FileDlg.h
+//  Author : 
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_FILEDIALOG_H
index 68215dee84bb985ca6b58549fb200d072ba5f233..f12915a41fe7090d1be3e887ab42698141bae907 100644 (file)
@@ -1,15 +1,15 @@
-using namespace std;
-//  File      : QAD_FileValidator.cxx
-//  Created   : UI team, 17.09.02
-//  Descr     : File validator for QFileDlg class
-
-//  Modified  : Tue Sep 17 10:47:01 2002
-//  Author    : 
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_FileValidator.cxx
+//  Author : 
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_FileValidator.h"
 #include "QAD_Application.h"
 #include "QAD_Desktop.h"
index a28c4caa21f7d252931aa0c10d6ee74dd7980b68..6bb6ef8675cbe658dda96cff51fb7a3c51b6bcae 100644 (file)
@@ -1,12 +1,12 @@
-//  File      : QAD_FileValidator.h
-//  Created   : UI team, 17.09.02
-//  Descr     : File validator for QFileDlg class
-
-//  Modified  : Tue Sep 17 10:40:50 2002
-//  Author    : 
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_FileValidator.h
+//  Author : 
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_FILEVALIDATOR_H
index d6aca1a2ecd2234868925aec13eb5c9d6f99b32d..ad66970368b1e7144564e1cb24d322633ee6fa72 100644 (file)
@@ -1,16 +1,32 @@
-using namespace std;
-//  File      : QAD_Help.cxx
-//  Created   : UI team, 03.11.00
-//  Descrip   : Shows help in QAD-based applications
-
-//  Modified  : Mon Dec 03 13:40:28 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Help.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD_Help.h"
 
 /*!
index 3b20b7f99cf2b1a4e5d37ea85516f876ef58b2bb..b5c1d94372d6ac8d633015e47df169c49844f07f 100644 (file)
@@ -1,15 +1,31 @@
-//  File      : QAD_Help.cxx
-//  Created   : UI team, 03.11.00
-//  Descrip   : Shows help in QAD-based applications
-
-//  Modified  : Mon Dec 03 13:40:28 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Help.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef QAD_HELP_H
 #define QAD_HELP_H
 
index c1302c27f507fe78b41e38261a93da54514ed233..5237e75ececd44bb18604c4f65be9fc3311cb422 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_HelpWindow.cxx
-//  Created   : Thu Jun 14 16:12:49 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_HelpWindow.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_HelpWindow QAD_HelpWindow.h
   \brief Html browser for help.
index f052d296d1745b842c72d67289947aab4af850b9..33f44d2fe7f4f73fe5ef559d2fb2a44af61aaaea 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_HelpWindow.h
-//  Created   : Thu Jun 14 16:11:33 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_HelpWindow.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_HELPWINDOW_H
index 2f8aff41c48a3d3d72852d29d28eb64c948d21d9..c3a021d26aa860ba7f956da2af5ed9c41563e922 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_LeftFrame.cxx
-//  Created   : Thu Jun 14 14:53:30 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_LeftFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_LeftFrame.h"
 #include "QAD_ObjectBrowser.h"
 #include <qlayout.h>
index b0a018740490698d5c8eab16646db0eb024fbe92..f8db981e97b7c998f183a46c99fbc7200965055a 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_LeftFrame.h
-//  Created   : Thu Jun 14 14:51:17 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_LeftFrame.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_LeftFrame_H
index 445a8f371a7d4ee0688fee4ba635019fa0ee5bbd..04c8d041dcda7c4b6c28db430e5212cd5cfd29e6 100644 (file)
@@ -1,17 +1,37 @@
-using namespace std;
-//  File      : QAD_ListMenuIdAction.cxx
-//  Created   : Thu Jun 14 13:54:44 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ListMenuIdAction.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_ListMenuIdAction.h"
 
 QAD_ListMenuIdAction::QAD_ListMenuIdAction(QPopupMenu* theMenu,
                                           int id,
-                                          QAction* theAction)
+                                          QActionP* theAction)
 {
   myMenu   = theMenu;
   myId     = id;
index 5fe1417e8c45504c13abb5c2609aeb5f741fa801..7fec3677535f77f08e79008533da5b1385ea3840 100644 (file)
@@ -1,32 +1,52 @@
-//  File      : QAD_ListMenuIdAction.h
-//  Created   : Thu Jun 14 13:55:29 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ListMenuIdAction.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_LISTMENUIDACTION_H
 #define QAD_LISTMENUIDACTION_H
 
 #include <qpopupmenu.h>
-#include <qaction.h>
+#include "qactionP.h"
 
 class QAD_ListMenuIdAction
 { 
 
 public:
-  QAD_ListMenuIdAction(QPopupMenu*,int,QAction*);
+  QAD_ListMenuIdAction(QPopupMenu*,int,QActionP*);
   virtual ~QAD_ListMenuIdAction();
 
   int         getId()     {return myId;}
   QPopupMenu* getMenu()   {return myMenu;}
-  QAction*    getAction() {return myAction;}
+  QActionP*    getAction() {return myAction;}
 
 private:
   QPopupMenu*  myMenu;
   int          myId;
-  QAction*     myAction;
+  QActionP*     myAction;
 };
 
 #endif
index 2ddc2452256bdc80fbb2d78c03c35fe36a1c6f83..e5a5d134fcc50accd40e81ff1f46d0bf766c528b 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_ListPopupMenu.cxx
-//  Created   : Thu Jun 14 13:53:41 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ListPopupMenu.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD_ListPopupMenu.h"
 
 /*!
index 4d3f16fb9c3f2a220e267aaa74fe52983e385201..a86e6bc5b910dbeb5a2e54103b1c8d02c7c1ad0c 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_ListPopupMenu.h
-//  Created   : Thu Jun 14 13:52:42 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ListPopupMenu.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_LISTPOPUPMENU_H
index 6b226f619d0a13c9ca68e8e1fb4367b5937d0509..d555fd378d308a0faed878c0e36b14e15b0042b3 100644 (file)
@@ -1,14 +1,15 @@
-using namespace std;
-//  File      : QAD_ListView.cxx
-//  Created   : 24/10/2002
-//  Descr     : List view for editing of properties
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_ListView.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_ListView.h"
 
 #include <qheader.h>
index 95b9c1b631479a50b0b12319e05173b18cc29866..6bbe343786759485e5470de78dede1deda47166e 100644 (file)
@@ -1,11 +1,12 @@
-//  File      : QAD_ListView.h
-//  Created   : 24/10/2002
-//  Descr     : List view for editing of properties
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_ListView.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #if !defined(_QAD_ListView_HeaderFile)
index ad7dacb30dd1b203c92a3f96e79957d6ff2ec4e8..904ee271386e42d523e7f556949c4d2fe2cf9661 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_Menus.cxx
-//  Created   : Thu Jun 14 13:56:16 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Menus.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD_Menus.h"
 
 /*!
index 5d73d720fd97da92f43421ffaa17f9ccc8375a88..f521cb57b854a40c321aca047862a38da02b9805 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_Menus.h
-//  Created   : Thu Jun 14 13:57:00 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Menus.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_MENUS_H
index b642fff14710f09b91ae03977748442f0b1996a4..a932028e29f0f370025fb58813ef5114c23a753f 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_Message.cxx
-//  Created   : Thu Jun 14 15:55:14 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Message.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_Message.h"
 #include "QAD_Application.h"
 #include "QAD_Config.h"
index f7180190a610dc859c4a6a3100f413033e6d760d..9b0c8dfa9b152e0b22774a78d923d82ca9330578 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_Message.h
-//  Created   : Thu Jun 14 15:54:52 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Message.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_Message_H
index dcf9445a4c8f77ebb5241cb955d817f68448eef9..c6aad0f760c66f44a6df9aad41e6d1e2a9902fb6 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_MessageBox.cxx
-//  Created   : 02.10.00
-//  Author    : UI team
-//  Descr     : Message dialog box for QAD-based application
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_MessageBox.cxx
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_MessageBox QAD_MessageBox.h
   \brief Message dialog box for QAD-based application.
index 68148d07b46e5579dfb7f994372b37e1fbb166d1..a94362ad906ac9822e2413c1d2792fa4fa3ee54c 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_MessageBox.h
+//  Module : SALOME
+
 /********************************************************************
 **  Class:   QAD_MessageBox
 **  Descr:   Message dialog box for QAD-based application
index 688a4507809a62c4cb600b63fd2c4ad38cbf5901..730a53bad740a620c9ec3cdf086688efd34e4bb1 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_NameBrowser.cxx
-//  Created   : Mon Nov 26 10:15:24 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_NameBrowser.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_NameBrowser.h"
 
 #include "QAD_Study.h"
index 276432b74ab18dc7698de327e8d2d4b78eabc211..79f66730ae06ff74363dc980dbed4fd1bf75fa39 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_NameBrowser.h
-//  Created   : Mon Nov 26 10:15:34 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_NameBrowser.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_NAMEBROWSER_H
index 9ed2eb23bd21ffaa92748c6de4083acb681a4435..9d992471aa17fe2ca39a4d3be01764fe0572a41e 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_ObjectBrowser.cxx
-//  Created   : Thu Jun 14 15:42:10 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ObjectBrowser.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD_ObjectBrowserItem.h"
 #include "QAD_ObjectBrowser.h"
 #include "QAD_Application.h"
@@ -646,15 +665,15 @@ void QAD_ObjectBrowser::Update( SALOMEDS::SObject_ptr SO,
        // TextColor
         if ( CSO->FindAttribute(anAttr, "AttributeTextColor") ) {
           aTextColor = SALOMEDS::AttributeTextColor::_narrow(anAttr);
-         QColor aColor(aTextColor->TextColor().R, aTextColor->TextColor().G, aTextColor->TextColor().B) ;
+         QColor aColor((int)(aTextColor->TextColor().R), (int)(aTextColor->TextColor().G), (int)(aTextColor->TextColor().B)) ;
           Item->setTextColor(aColor);
         }
        // TextHighlightColor
         if ( CSO->FindAttribute(anAttr, "AttributeTextHighlightColor") ) {
           aTextHighlightColor = SALOMEDS::AttributeTextHighlightColor::_narrow(anAttr);
-         QColor aColor(aTextHighlightColor->TextHighlightColor().R
-                       aTextHighlightColor->TextHighlightColor().G
-                       aTextHighlightColor->TextHighlightColor().B) ;
+         QColor aColor((int)(aTextHighlightColor->TextHighlightColor().R)
+                       (int)(aTextHighlightColor->TextHighlightColor().G)
+                       (int)(aTextHighlightColor->TextHighlightColor().B)) ;
           Item->setTextHighlightColor(aColor);
         }
        // Pixmap
@@ -783,15 +802,15 @@ void QAD_ObjectBrowser::Update()
       // TextColor
       if ( SC->FindAttribute(anAttr, "AttributeTextColor") ) {
        aTextColor = SALOMEDS::AttributeTextColor::_narrow(anAttr);
-       QColor aColor(aTextColor->TextColor().R, aTextColor->TextColor().G, aTextColor->TextColor().B) ;
+       QColor aColor((int)(aTextColor->TextColor().R), (int)(aTextColor->TextColor().G), (int)(aTextColor->TextColor().B)) ;
        Item->setTextColor(aColor);
       }
       // TextHighlightColor
       if ( SC->FindAttribute(anAttr, "AttributeTextHighlightColor") ) {
        aTextHighlightColor = SALOMEDS::AttributeTextHighlightColor::_narrow(anAttr);
-       QColor aColor(aTextHighlightColor->TextHighlightColor().R
-                     aTextHighlightColor->TextHighlightColor().G
-                     aTextHighlightColor->TextHighlightColor().B) ;
+       QColor aColor((int)(aTextHighlightColor->TextHighlightColor().R)
+                     (int)(aTextHighlightColor->TextHighlightColor().G)
+                     (int)(aTextHighlightColor->TextHighlightColor().B)) ;
        Item->setTextHighlightColor(aColor);
       }
       
@@ -1006,17 +1025,17 @@ void QAD_ObjectBrowser::UpdateUCItem( SALOMEDS::SObject_var UCObject, QAD_Object
 // TextColor
       if ( UCObject->FindAttribute(anAttr, "AttributeTextColor" ) ) {
        aTextColor = SALOMEDS::AttributeTextColor::_narrow( anAttr );
-       QColor aColor( aTextColor->TextColor().R
-                      aTextColor->TextColor().G
-                      aTextColor->TextColor().B );
+       QColor aColor( (int)(aTextColor->TextColor().R)
+                      (int)(aTextColor->TextColor().G)
+                      (int)(aTextColor->TextColor().B) );
        UCSubItem->setTextColor( aColor );
       }
       // TextHighlightColor
       if ( UCObject->FindAttribute( anAttr, "AttributeTextHighlightColor" ) ) {
        aTextHighlightColor = SALOMEDS::AttributeTextHighlightColor::_narrow( anAttr );
-       QColor aColor( aTextHighlightColor->TextHighlightColor().R
-                      aTextHighlightColor->TextHighlightColor().G
-                      aTextHighlightColor->TextHighlightColor().B );
+       QColor aColor( (int)(aTextHighlightColor->TextHighlightColor().R)
+                      (int)(aTextHighlightColor->TextHighlightColor().G)
+                      (int)(aTextHighlightColor->TextHighlightColor().B) );
        UCSubItem->setTextHighlightColor( aColor );
       }
       // Pixmap
index bfa849beda9dff5424e4433c9d321fd250f16d52..a03afac0af8bc4268c1bf993d8aed2ea0cd39920 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_ObjectBrowser.h
-//  Created   : Thu Jun 14 15:40:24 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ObjectBrowser.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_OBJECTBROWSER_H
index ff9b506bb1e63fc2027c300c382cf6607dee5c25..37035831748131e59405a7b7cebf411517bf4eb0 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_ObjectBrowserItem.cxx
-//  Created   : Thu Jun 14 17:07:42 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ObjectBrowserItem.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_ObjectBrowserItem.h"
 
 #include <qcolor.h>
@@ -206,8 +226,10 @@ void QAD_ObjectBrowserItem::paintCell( QPainter*          thePainter,
       }
     }
       
-  if (myTextColor.isValid())
-    aColorGroup.setColor(QColorGroup::Text,       myTextColor);
+  if (myTextColor.isValid()) {
+    aColorGroup.setColor(QColorGroup::Text,            myTextColor);
+    aColorGroup.setColor(QColorGroup::HighlightedText, myTextColor);
+  }
   if (myTextHighlightColor.isValid())
     aColorGroup.setColor(QColorGroup::Highlight,  myTextHighlightColor);
   if (myCurrent) { // UseCase's current entry 
index 057e9735d56ca46806eb14a81546a151298184a9..cb04d2e4d1c18dc8ebe604eb4e721d76dc632055 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_ObjectBrowserItem.h
-//  Created   : Thu Jun 14 17:06:54 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ObjectBrowserItem.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_OBJECTBROWSERITEM_H
index 66bc0ce5ed80ffddb30009132f3d43284a3f8992..87c99f194ef3486ae9564a554888681dfb140e5a 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_Operation.cxx
-//  Created   : UI team, 22.09.00
-//  Descrip   : Base class for operations in QAD-based application
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Operation.cxx
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_Operation QAD_Operation.h
   \brief Base class for OCAF operations in QAD-based application.
index 9a9e3dd39f222b171706c37d793e8f6acaf7a65c..8139990780ca9d887ec96a1c696ca6c70f8d495e 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : QAD_Operation.h
-//  Created   : UI team, 22.09.00
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Operation.h
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef QAD_Operation_H
 #define QAD_Operation_H
 
index ab7da0db3d065acd026f485459a0762959c31d72..8ad4e40d0cd6eb33b35d8c9893b457f874b0863c 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_OperatorMenus.cxx
-//  Created   : Thu Jun 14 14:37:17 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_OperatorMenus.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_OperatorMenus.h"
 #include "QAD_Desktop.h"
 
index 35197a8f665fdaf4ba4e8797914a4ef2738c7e94..e2ce210c50b64cef6e7b4cf276706046c47cf8f1 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_OperatorMenus.h
-//  Created   : Thu Jun 14 14:38:48 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_OperatorMenus.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_OPERATOR_MENUS_H
index 4735c68e2d2ecbc96adc744c7b1bdbaa00f10d33..b824dad2a3c988c37694b9a1bec6f946f9baf8d5 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_ParserSettings.cxx
-//  Created   : Sat Sep 08 22:00:08 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ParserSettings.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD_ParserSettings.h"
 
 #include <stdio.h>
index e495b33e7ba4a2d711c565ee4310686cb9778651..295851c4a77cc7596fe387fbd614f6f593ec9bfe 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_ParserSettings.h
-//  Created   : Sat Sep 08 21:58:39 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ParserSettings.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_PARSERSETTINGS_H
index 92771b403153a2e296dd3903a43ef69ba5a5d994..aa2c65a93d2cab66cd342be2db7967d2086d4e9d 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : QAD_Popup.cxx
-//  Created   : 22.09.00
-//  Descr     : Popup menu management
-
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Popup.cxx
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD.h"
 #include "QAD_Popup.h"
 #include "utilities.h"
index cf310c7d04802b76b8adf2613b77af148f28d4c3..20bd7ca9e70877a8fcd83c213b3a1eb5d38cb035 100644 (file)
@@ -1,11 +1,29 @@
-//  File      : QAD_Popup.h
-//  Created   : 22.09.00
-//  Descr     : Popup menu management
-
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Popup.h
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
 #ifndef        QAD_POPUP_H
index c91e969712b1cd853d07c0fb53d05706bc7351aa..58407f6a054a28425b0c21e8841b987d805ede98 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_PyEditor.cxx
-//  Created   : Thu Jun 14 16:04:59 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_PyEditor.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_PyEditor.h"
 #include "QAD_PyInterp.h"
 #include "QAD_Application.h"
index eb4629ab9e4e1398e83cdb976bcb16154f67f73e..5086b7d94c9698bbcaa6b11f41f59e7b8f5c61c4 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_PyEditor.h
-//  Created   : Thu Jun 14 16:05:46 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_PyEditor.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_PyEditor_H
index f4c0da963de2316bad8458c858a65a10aac17597..00faaa1b1b13b5073723a1af5e8990dd17160c7d 100644 (file)
@@ -1,18 +1,33 @@
-using namespace std;
-using namespace std;
-//=============================================================================
-//  File      : QAD_PyInterp.cxx
-//  Created   : Thu Jun 14 14:03:58 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_PyInterp.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
-//=============================================================================
-
-//    TODO: 
-//    control & limit history length 
 
+using namespace std;
+using namespace std;
 #include "QAD_PyInterp.h"
 #include "utilities.h"
 
index 47d0fc86d90d8981149e349821372f7adf6d9b1e..56b173b08e52af6021975840946cef3cfb4a0dbf 100644 (file)
@@ -1,12 +1,30 @@
-//=============================================================================
-//  File      : QAD_PyInterp.h
-//  Created   : Thu Jun 14 14:04:27 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_PyInterp.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
-//=============================================================================
 
 #ifndef _QAD_PYINTERP_H_
 #define _QAD_PYINTERP_H_
index 867f663e0eed098cebabefe2f29f56a0c60c6ccc..e1be19054f92ba2205469feca27772826fa0a78e 100644 (file)
@@ -1,14 +1,16 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_PyInterp_mono.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
+
 using namespace std;
 using namespace std;
-//=============================================================================
-// File      : QAD_PyInterp_mono.cxx
-// Created   : ven fév  7 10:01:36 CET 2003
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2003
-// $Header$
-//=============================================================================
-
 #include "QAD_PyInterp_mono.h"
 #include "utilities.h"
 
index 73af633038d7caaaff7a8a7c1b3cfb8d0c3ea46c..b822c1004c5b2a730b9a24a5ccadadf5e75a8d56 100644 (file)
@@ -1,11 +1,13 @@
-//=============================================================================
-// File      : QAD_PyInterp_mono.h
-// Created   : ven fév  7 10:01:36 CET 2003
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2003
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_PyInterp_mono.h
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _QAD_PYINTERP_MONO_H_
 #define _QAD_PYINTERP_MONO_H_
index ff1fffd03acb36cb4fb0c1b8c9b0807d06274de9..03907badccd46b90970dc827de68874e4ffffa18 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_Resource.h
-//  Created   : Fri Aug 23 12:01:23 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Resource.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_RESOURCE_H
index 19ce185d33ba9e676a5cf81f75270d3c4e5ef193..4dbfcd003381222a7c2cf6ec9564701f710378c9 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_ResourceMgr.cxx
-//  Created   : UI team, 22.10.00
-//  Descr     : ResourceMgr QAD-based application
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ResourceMgr.cxx
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_ResourceMgr QAD_ResourceMgr.h
   \brief ResourceMgr QAD-based application.
index 83ccdfe26d7a6f21fac64e088ce34b1e738b8d0d..8aaaceb8a6d3be7d3e4716fcd02ab897b5613b11 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : QAD_ResourceMgr.cxx
-//  Created   : UI team, 22.10.00
-//  Descr     : ResourceMgr QAD-based application
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ResourceMgr.cxx
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef QAD_RESOURCEMGR_H
 #define QAD_RESOURCEMGR_H
 
index feb272649d9596166bdfc382afffd354cc0ff0b4..477473451a64c0a5527f2c6318e017901d62aa83 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_RightFrame.cxx
-//  Created   : Thu Jun 14 14:51:52 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_RightFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_RightFrame.h"
 #include "QAD_Application.h"
 #include "QAD_Desktop.h"
@@ -54,8 +74,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libOCCViewer.dll" ;
 #else
@@ -75,8 +93,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libOCCViewer.dll" ;
 #else
@@ -97,8 +113,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libVTKViewer.dll" ;
 #else
@@ -118,8 +132,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libVTKViewer.dll" ;
 #else
@@ -139,8 +151,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libSUPERVGraph.dll" ;
 #else
@@ -160,8 +170,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libSUPERVGraph.dll" ;
 #else
@@ -181,8 +189,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libPlot2d.dll" ;
 #else
@@ -202,8 +208,6 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;
-      dir = dir + "salome" ;
-      dir = QAD_Tools::addSlash(dir) ;
 #ifdef WNT
       dir = dir + "libPlot2d.dll" ;
 #else
@@ -257,12 +261,12 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
   myMessage  = new QAD_Message( vsplitter ,"Message");  
   myMessage->setMinimumSize( 1, 1 );
 
-  sizes.append( 0.48 * DesktopHeight );
-  sizes.append( 0.16 * DesktopHeight );
+  sizes.append( (int)(0.48 * DesktopHeight) );
+  sizes.append( (int)(0.16 * DesktopHeight) );
   setSizes( sizes );
   sizes.clear();
-  sizes.append( 0.25 * DesktopWidth );
-  sizes.append( 0.25 * DesktopWidth );
+  sizes.append( (int)(0.25 * DesktopWidth) );
+  sizes.append( (int)(0.25 * DesktopWidth) );
   vsplitter->setSizes( sizes );
 }
 
index 7896dee7db263b47085d2cab0599463f95344d6e..1b454310aa6dbd4486e7e28b398a32f1b7962903 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_RightFrame.h
-//  Created   : Thu Jun 14 14:52:28 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_RightFrame.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_RightFrame_H
index 346955796472fc38f4bf0169f84813fbc0c127f0..14df2e8f37d09355301193aa98655fef949c1fef 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : QAD_Settings.cxx
-//  Created   : Tue Sep 04 09:28:02 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Settings.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD_Settings.h"
 
 #include <stdio.h>
index ee0555a44069528b345c5cbbc055ea1a4a7d0073..03b17d479a996b575710c5a25e0ece43d1e8685b 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_Settings.h
-//  Created   : Tue Sep 04 09:30:33 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Settings.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_SETTINGS_H
index ddcde43d249b84755445789e219fab7ba7bab7e8..6bf31664c1c2057d63450545835622c911d22f60 100644 (file)
@@ -1,15 +1,15 @@
-using namespace std;
-//  File      : QAD_SpinBoxDbl.cxx
-//  Created   : UI team, 21.11.02
-//  Descr     : Spin box for double values
-
-//  Modified  : Fri Nov 22 09:30:11 2002
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_SpinBoxDbl.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_SpinBoxDbl.h"
 #include <qpushbutton.h>
 #include <qpainter.h>
index c592ada7b0731d5ca5cb3a3ebaaed29c3593287d..87c55f7e2cc8828baa2b15e81fa55848302163a4 100644 (file)
@@ -1,12 +1,12 @@
-//  File      : QAD_SpinBoxDbl.h
-//  Created   : UI team, 21.11.02
-//  Descr     : Spin box for double values
-
-//  Modified  : Fri Nov 22 09:30:11 2002
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_SpinBoxDbl.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_SPINBOXDBL_H
@@ -23,7 +23,7 @@ public:
                     double lineStep, double pageStep, 
                     double value,
                    int    precision = 6, 
-                   double dblPrecision = 10e-6,
+                   double dblPrecision = 1e-6,
                    char   cFlag = 'g');
   virtual       ~QDblRangeControl();
   double        value() const;
@@ -92,7 +92,7 @@ public:
                   double      maxValue, 
                   double      step, 
                  int         precision = 6, 
-                 double      dblPrecision = 10e-6,
+                 double      dblPrecision = 1e-6,
                  char        cFlag = 'g',
                   const char* name = 0 );
   ~QAD_SpinBoxDbl();
index dd2ac2678dc61ccd87d80ba97b57586686914735..cb472ea714eae5e537fa46c9ffc183a592a16a8c 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_Splitter.cxx
-//  Created   : Thu Jun 14 16:36:01 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Splitter.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_Splitter.h"
 
 /*!
index 5c5825a2e6e818d18ba120e013fd9cce674b0e45..cab61251e7c8d26cc37908b618ca9c96c972dcdd 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_Splitter.h
-//  Created   : Thu Jun 14 16:35:23 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Splitter.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_SPLITTER_H
index 113237997e442cd768758c2f9d0694e9b3ae0c3f..10d381eaa1e460d92934a74d7ea500df169a2f3e 100644 (file)
@@ -1,15 +1,32 @@
-using namespace std;
-//  File      : QAD_Study.cxx
-//  Created   : UI team, 05.09.00
-//  Descr     : Study for QAD-based application
-
-//  Modified  : Mon Dec 03 14:20:05 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Study.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_Study QAD_Study.h
   \brief Study for QAD-based application.
@@ -95,6 +112,8 @@ myPath( path )
 QAD_Study::~QAD_Study ()
 {
   close();
+  //SRN: added - clear selection in case the study will be loaded again so the title will coincide
+  SALOME_Selection::RemoveSelection( QString(myTitle + "_" + mySelection) );
 }
 
 /*!
@@ -940,8 +959,8 @@ QAD_StudyFrame* QAD_Study::newWindow3d(QString name, ViewType theViewType, bool
 }
 
 void QAD_Study::showFrame(QAD_StudyFrame* theFrame){
-  theFrame->resize(0.64*QAD_Application::getDesktop()->getMainFrame()->width(),
-            0.64*QAD_Application::getDesktop()->getMainFrame()->height());
+  theFrame->resize( (int)(0.64*QAD_Application::getDesktop()->getMainFrame()->width()),
+                   (int)(0.64*QAD_Application::getDesktop()->getMainFrame()->height()));
   theFrame->show();
 
 }
index 136e0702c836a5124cdc87ba021c0ffce935844c..2d650058df1716fbe4b6fe429a55fc3d14d7d232 100644 (file)
@@ -1,12 +1,29 @@
-//  File      : QAD_Study.cxx
-//  Created   : UI team, 05.09.00
-//  Descrip   : Study for QAD-based application
-
-//  Modified  : Mon Dec 03 15:37:21 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2001
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Study.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_STUDY_H
index 2148c9b71c7345e45f8614916afbd80620528370..194aaa516395eaf45a21bf3533dd05e2473a0ce8 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_StudyFrame.cxx
-//  Created   : Sun Jul 22 15:31:59 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_StudyFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class QAD_StudyFrame QAD_StudyFrame.h
   \brief Frame window which contains QAD_LeftFrame and QAD_RightFrame.
@@ -46,8 +66,8 @@ QAD_StudyFrame::QAD_StudyFrame(QAD_Study* study, QWidget* parent, const QString&
   myRightFrm = new QAD_RightFrame( s1, title, _interp, myTypeView);
 
   QValueList<int> sizes;
-  sizes.append( 0.30*QAD_Application::getDesktop()->getMainFrame()->width() );
-  sizes.append( 0.50*QAD_Application::getDesktop()->getMainFrame()->width() );
+  sizes.append( (int)(0.30*QAD_Application::getDesktop()->getMainFrame()->width()) );
+  sizes.append( (int)(0.50*QAD_Application::getDesktop()->getMainFrame()->width()) );
   s1->setSizes( sizes );
 
   QAD_ASSERT_DEBUG_ONLY ( parent->inherits("QWorkspaceP") );
index 7f48b7b38e8fbd109157b9237d96a9faea9bc2bb..b16822dacd646419604f6489e70ba66ab9d4ccd0 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : QAD_StudyFrame.h
-//  Created   : Wed Mar 20 11:10:03 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_StudyFrame.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_StudyFrame_H
index dac82d7f732364e9d908a9db19defc7f7d056d23..0b9ab52d31802f8aca52b3ad3ed208e920bfbd07 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : QAD_Tools.cxx
-//  Created   : UI team, 22.09.00
-//  Descr     : Helpful functions for QAD
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Tools.cxx
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 /*!
   \class QAD_Tools QAD_Tools.h
   \brief Helpful functions for QAD.
index 389ed9459282d4098438ae8c817f2909f623eeaa..ef9e7cd07fd0c41a4973aa43d7909aa0aa9477b0 100644 (file)
@@ -1,11 +1,29 @@
-//  File      : QAD_Tools.h
-//  Created   : 22.09.00
-//  Descr     : Helpful functions for QAD
-
-//  Author    : UI team
-//  Project   : SALOME
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_Tools.h
+//  Author : UI team
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_TOOLS_H
index 334fa751aadd7a7ffe731643c520a6222793189b..6fa9053717f09079fc3c6c83bba10b92a28766ca 100644 (file)
@@ -1,16 +1,32 @@
-using namespace std;
-//  File      : QAD_ViewFrame.cxx
-//  Created   : UI team, 05.09.00
-//  Descrip   : Frame window for viewport in QAD-based application
-
-//  Modified  : Mon Dec 03 15:41:43 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ViewFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "QAD.h"
 #include "QAD_ViewFrame.h"
 #include "QAD_Application.h"
@@ -68,11 +84,14 @@ bool QAD_ViewFrame::isInViewer(SALOMEDS::Study_var aStudy,
   return 0;
 }
 
+//san:T3.13 - it's up to VTKViewer_ViewFrame to implement (or not implement) getRenderer() method. Be careful!
+/*
 vtkRenderer* QAD_ViewFrame::getRenderer()
 {
   MESSAGE ( "Only redefined  VTKViewer")
   return NULL;
 }
+*/
 
 /*
    Dumps 3d-Viewer contents into image file
index 2f190d492b13bbfd602bb35b0db4778ccbadda69..04a78ddcd7cfe72c397525fab74561180e68b820 100644 (file)
@@ -1,15 +1,31 @@
-//  File      : QAD_ViewFrame.cxx
-//  Created   : UI team, 05.09.00
-//  Descrip   : Frame window for viewport in QAD-based application
-
-//  Modified  : Mon Dec 03 15:41:43 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_ViewFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef QAD_ViewFrame_H
 #define QAD_ViewFrame_H
 
@@ -21,7 +37,7 @@
 // QT Include
 #include <qmainwindow.h>
 
-class vtkRenderer;
+//class vtkRenderer;
 
 class QAD_EXPORT QAD_ViewFrame : public QMainWindow
 {
@@ -36,7 +52,7 @@ public:
 
   virtual ViewType       getTypeView() const = 0; 
   virtual QWidget*       getViewWidget() = 0;
-  virtual vtkRenderer*   getRenderer();
+//  virtual vtkRenderer*   getRenderer();
 
   virtual void           setBackgroundColor( const QColor& ) = 0;
   virtual QColor         backgroundColor() const = 0;
index f3acd9a6638ca4dbbe5a80f66411dff6d962743b..3d33a2f7083ea8728bc87de3e7a8887b27aeb72d 100644 (file)
@@ -1,11 +1,12 @@
-//  File      : QAD_WaitCursor.h
-//  Created   : 02/10/2002
-//  Descr     : Use this class to set wait cursor on long operatins
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI 
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : QAD_WaitCursor.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef QAD_WAITCURSOR_H
index 53d5697778e503f32dfd2a7559ca910086257100..2226782d4581071129b3a1092aefab5d77f0edbb 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_XmlHandler.cxx
-//  Created   : Thu Jun 14 13:59:36 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_XmlHandler.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #define  INCLUDE_MENUITEM_DEF 
 
 #include "QAD_Desktop.h"
@@ -240,8 +260,8 @@ bool QAD_XmlHandler::startElement( const QString&, const QString&,
     myMenus->myActiveToolBar->hide();
   } else if ( qName == "toolbutton-item" ) {   //TOOL BUTTON
     QString aQStringToolButtonItemId(atts.value( "item-id" ));
-    QAction* anAction=
-      new QAction
+    QActionP* anAction=
+      new QActionP
       (QObject::tr(atts.value( "label-id" )),
        QPixmap( findFile( myPathResources, atts.value( "icon-id") ) ),
        QObject::tr(atts.value( "label-id" )),
index 91c18f2033cd43a97a45aefb575069bb1a815cb8..1cc9f4f16de28c8bbfda398187393dc34003467d 100644 (file)
@@ -1,14 +1,33 @@
-//  File      : QAD_XmlHandler.h
-//  Created   : Thu Jun 14 14:02:23 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_XmlHandler.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #include <qxml.h>
 #include <qstringlist.h>
-#include <qaction.h>
 #include <qlist.h>
 #include <qstack.h>
 #include <map>
index 089044e1a5fc2cd1eae34e608997723af3879233..5b1e636f7e276c20e11d9f69a7580ba49c1a304f 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : QAD_icons.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
index 55fab246509e99cd32743a03c7a5bdeeea075da3..0d8180117c468ff4d4b839a2073b68ce0d015f0b 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : QAD_msg_en.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
@@ -174,7 +197,7 @@ msgstr "Save"
 
 #: QAD_Config.cxx:376
 msgid "MEN_DESK_PREF_VIEWER"
-msgstr "3D View background"
+msgstr "Viewer background"
 
 #: QAD_Config.cxx:376
 msgid "MEN_DESK_PREF_VIEWER_TRIHEDRON"
@@ -718,6 +741,9 @@ msgstr "Clears use case"
 msgid "MEN_DESK_PREF_MULTI_FILE_SAVE"
 msgstr "MultiFile Save"
 
+msgid "MEN_DESK_PREF_ASCII_SAVE"
+msgstr "ASCII Save"
+
 msgid "TOT_APP_EDIT_COPY"
 msgstr "Copy"
 
index 83dad7cdcf08f377719abc7dde99d6e09f9c9520..0d2bf1a0f6b7a77f36984167bbf382419750d966 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : QAD_msg_fr.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
index 50e3b389f9dce06301a1b511f97aae582f70d0ed..69a3b241b0b3eb828c6db3550dd1330c26f96d16 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI.cxx
-//  Created   : Thu Jun 14 12:00:40 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOMEDS)
 
@@ -29,6 +49,7 @@ int main(int argc, char* argv[])
     SALOME_NamingService * name_service;
     CORBA::ORB_var orb;
 
+    //    orb = CORBA::ORB_init(argc, argv, "omniORB4");
     orb = CORBA::ORB_init(argc, argv, "omniORB3");
     
     // Get the reference the server.
index 3370f5d05af24a338ffbe038678229d4a00f6e2d..7ae5111de37ffbb4198f42d1caec31f4f1dd7511 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_AboutDlg.cxx
-//  Created   : Fri Sep 14 09:56:23 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_AboutDlg.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_AboutDlg.h"
 #include "QAD_Desktop.h"
 #include "QAD_Tools.h"
index cb772cc492a2686bf313b2cced96697fef61df5d..ea869812e2c1dbd866fa725860a11973c58b6348 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOMEGUI_AboutDlg.h
-//  Created   : Fri Sep 14 09:56:08 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_AboutDlg.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_ABOUTDLG_H
index 437d6f05420a6a23ee57531ec9f7df9abd84f742..17b7f88ecd8f1c563b92e4b8fa69d5960bad3a1a 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_Application.cxx
-//  Created   : Thu Jun 14 12:01:00 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Application.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_Application.h"
 #include "SALOMEGUI_Desktop.h"
 #include "SALOMEGUI_ImportOperation.h"
@@ -50,7 +70,7 @@ QAD_Application( format, description, filters )
     if ( !palette) palette = QAD_Desktop::createPalette();
     //   if ( !palette) palette->loadPalette();
 
-    myViewActions.setAutoDelete( true );
+  //myViewActions.setAutoDelete( true );
 
     /* We need to know that the desktop is created to have
        some additional internal initialization */
@@ -83,7 +103,7 @@ void SALOMEGUI_Application::createActions()
     QAD_ResourceMgr* rmgr = QAD_Desktop::getResourceManager();
 #define CREATE_ACTION(ID,NAME) \
     if(!myViewActions.at(ID)){ \
-      QAction* action = new QAction(tr("TOT_APP_VIEW_" #NAME), \
+      QActionP* action = new QActionP(tr("TOT_APP_VIEW_" #NAME), \
                            rmgr->loadPixmap("SALOMEGUI", tr("ICON_APP_VIEW_" #NAME)), \
                            tr("MEN_APP_VIEW_" #NAME), 0, QAD_Application::getDesktop()); \
       action->setStatusTip(tr("PRP_APP_VIEW_" #NAME)); \
@@ -266,9 +286,9 @@ void SALOMEGUI_Application::connectToViewer( QAD_ViewFrame* vf )
 
   if ( vf ) {
     QToolBar* tbView = getToolBar( ViewToolBarId );
-    QListIterator<QAction> it( myViewActions );
-    for( ; it.current(); ++it )
-      it.current()->removeFrom( tbView );
+    for ( int cmd = ViewDumpId; cmd <= ViewResetId; cmd++ )
+      if ( myViewActions.at( cmd ) )
+       myViewActions.at( cmd )->removeFrom(tbView);
     if( vf->getTypeView() == VIEW_GRAPHSUPERV ) {
       //myViewActions.at(ViewDumpId)->addTo(tbView);
       //myViewActions.at(ViewFitAllId)->addTo(tbView);
@@ -288,9 +308,9 @@ void SALOMEGUI_Application::connectToViewer( QAD_ViewFrame* vf )
       //myViewActions.at(ViewResetId)->addTo(tbView);
     }
     else {
-      it.toFirst();
-      for( ; it.current(); ++it )
-       it.current()->addTo(tbView);
+      for ( int cmd = ViewDumpId; cmd <= ViewResetId; cmd++ )
+       if ( myViewActions.at( cmd ) )
+         myViewActions.at( cmd )->addTo(tbView);
     }
     //CONNECT_ACTION(Mu4Id)
     CONNECT_ACTION(Dump);
index ced55c5b1ff7066392a5f77e3376efc4a10b8c20..91e5ab142a341baea2418da1af2b299df4f3c064 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOMEGUI_Application.h
-//  Created   : Thu Jun 14 12:01:23 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Application.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_APPLICATION_H
@@ -11,6 +31,7 @@
 
 #include "QAD_Application.h"
 #include "QAD_ViewFrame.h"
+#include "QAD_Action.h"
 
 // IDL headers
 #include <SALOMEconfig.h>
@@ -19,7 +40,6 @@
 
 // QT Includes
 #include <qlist.h>
-#include <qaction.h>
 #include <qstring.h>
 #include <qtoolbar.h>
 #include <qpopupmenu.h>
@@ -71,8 +91,8 @@ private:
     void    updateActions();
 
 private:
-    QList<QAction>         myViewActions;
-    QAD_Operation*         myCurOperation;
+    ActionMap           myViewActions;
+    QAD_Operation*     myCurOperation;
 };
 
 #endif
index b2e04c1e4c6bc8eab14f2c775132863103c82169..090d66ad2764035484cbaab991facbf46a6a491c 100644 (file)
@@ -1,9 +1,14 @@
-using namespace std;
-// File      : SALOMEGUI_CloseDlg.cxx
-// Created   : Wed Feb 26 11:40:52 2003
-// Author    : Vasily RUSYAEV (vrv)
-// Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_CloseDlg.cxx
+//  Author : Vasily RUSYAEV (vrv)
+//  Module : SALOME
 
+using namespace std;
 #include "SALOMEGUI_CloseDlg.h"
 
 #include <qpushbutton.h>
index f593860c8b837e07a67d2f0400731cd5e6b1ddbd..2816303eac25d2c382762db4760fc98f2e31295c 100644 (file)
@@ -1,7 +1,12 @@
-// File      : SALOMEGUI_CloseDlg.h
-// Created   : Wed Feb 26 11:40:52 2003
-// Author    : Vasily RUSYAEV (vrv)
-// Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_CloseDlg.h
+//  Author : Vasily RUSYAEV (vrv)
+//  Module : SALOME
 
 #ifndef SALOMEGUI_CloseDlg_H
 #define SALOMEGUI_CloseDlg_H
index a78a4d92650951a7020baf31a52f209b4ed5e424..63ce9dbe806d8dfe62bb09cd13fbb44fd7e8d17a 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_Desktop.cxx
-//  Created   : Thu Jun 14 12:02:58 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Desktop.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_Desktop.h"
 #include "SALOME_Selection.h"
 #include "SALOME_ListIteratorOfListIO.hxx"
index a6419765a939af2bff318cddf75e57ddb1bb69d6..fcb82d31cc4a29a3d9e593daf5ce9d66e87e29fd 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOMEGUI_Desktop.h
-//  Created   : Thu Jun 14 12:02:21 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Desktop.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_DESKTOP_H
index dc0f67004541bd4b8b3b29aa79693cfc18c033c7..36c535e8339d4075ec06aef4fc70b6c4ddb041fc 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_ImportOperation.cxx
-//  Created   : Thu Jun 14 12:07:10 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_ImportOperation.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_ImportOperation.h"
 
 SALOMEGUI_ImportOperation::SALOMEGUI_ImportOperation( QAD_Study* study ) :
index 2164ce17d2b845bf4c58a191dac837d7200cd4ef..54f37fed4ca4305ad1430b1a8d6a65f7be65b6cf 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOMEGUI_ImportOperation.h
-//  Created   : Thu Jun 14 12:07:26 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_ImportOperation.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #if !defined SALOMEGUI_IMPORTOPERATION
index bdd5a6fcc6ce7badc2876e670a0f13383791cb69..de3343aff21c3f655aba9a520684fd6476370f64 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_LoadStudiesDlg.cxx
-//  Created   : Wed Apr 03 13:37:13 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_LoadStudiesDlg.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_LoadStudiesDlg.h"
 
 #include <qlabel.h>
index 279f3d84d4e41e92e57f354f1fea704a5ab89a3b..b3dfde6fd8a80a82a540a5933ad81dd7c6155ce1 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOMEGUI_LoadStudiesDlg.h
-//  Created   : Wed Apr 03 13:36:09 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_LoadStudiesDlg.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_LOADSTUDIESDLG_H
index 63ab69eb24a209e4e52cd1e6350d9533f5fdc865..35d4b476fc1e6a541d03af5a735b441bdd50e672 100644 (file)
@@ -1,12 +1,15 @@
-using namespace std;
-//  File      : SALOMEGUI_NameDlg.cxx
-//  Created   : Wed Jun 27 16:39:06 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_NameDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_NameDlg.h"
 #include "QAD_Application.h"
 #include "QAD_Desktop.h"
index 9556adde79cf5765b75d6afdd2566aa639c320a8..42ec8382db7d616452af02068036bc18015f82b5 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEGUI_NameDlg.h
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_NameDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_NAMEDLG_H
index 5359d9341574bfd917fbee554c39fe874a63caf6..77cde23402ba8829a9286926e38601b6e94580e1 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_OpenWith.cxx
-//  Created   : Wed Oct 24 12:19:34 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_OpenWith.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SALOMEGUI_OpenWith.h"
 
 #include <qlabel.h>
index 3d10ac03ecc82edab5a0c22b2c20bff849c81837..961dcb8d417931b8ba67daf91a024f2e5ff5a85c 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : SALOMEGUI_OpenWith.cxx
-//  Created   : Wed Oct 24 12:19:34 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_OpenWith.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SALOMEGUI_OPENWITH_H
 #define SALOMEGUI_OPENWITH_H
 
index 676822a2aa7c9088e00beca6f3cd409660ce75e4..971433632b17e01179674112426ccfe18124d108 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOMEGUI_QtCatchCorbaException.cxx
-// Created   : mer déc 19 14:52:07 CET 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_QtCatchCorbaException.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "SALOMEGUI_QtCatchCorbaException.hxx"
 #include "utilities.h"
 
index 3ab56735193e3d7104e1d6166182631a67113360..ade9ad95d732146fca40e310fa7e49f2f69d88ce 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOMEGUI_QtCatchCorbaException.hxx
-// Created   : mer déc 19 14:31:42 CET 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_QtCatchCorbaException.hxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOMEGUI__QTCATCHCORBAEXCEPTION_HXX_
 #define _SALOMEGUI__QTCATCHCORBAEXCEPTION_HXX_
index 71be7de2081c92e6e38a205bb01cba29d4ebf2d8..2573f3ff9cbcfaf5b38bf0b90c1001e4bdc289c3 100644 (file)
@@ -1,12 +1,15 @@
-using namespace std;
-//  File      : SALOMEGUI_SetValueDlg.cxx
-//  Created   : Wed Jun 27 16:39:06 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_SetValueDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_SetValueDlg.h"
 #include "QAD_Tools.h"
 
index 428b1900865ad89739f7d5fd8f8a919f48680920..bcd845838f641beb8a84a5f386a9171add464cad 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEGUI_SetValueDlg.h
-//  Created   : Wed Jan 21 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_SetValueDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_SETVALUEDLG_H
index cf6d5e3a4c69cc18a486a9bb09352bbda6bcaf62..15e5b4cb6099ea5c7d6eb95b3e24069efcf9c60e 100644 (file)
@@ -1,12 +1,15 @@
-using namespace std;
-//  File      : SALOMEGUI_SetupCurveDlg.cxx
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_SetupCurveDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_SetupCurveDlg.h"
 #include "QAD_Tools.h"
 #include <qlayout.h>
index 7f526f5aed337e5a687b1be844633bd868d8d6c1..876e6ecf74c742297d4eec86ee5903f48a897f7c 100644 (file)
@@ -1,9 +1,12 @@
-//  File      : SALOMEGUI_SetupCurveDlg.h
-//  Created   : Wed Jun 27 16:38:42 2001
-//  Author    : Vadim SANDLER
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_SetupCurveDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_SetupCurveDlg_H
index d2c662efe4fe5a3fe92afc4e9940aeb19c1a8dbf..0019a14ddcc66e81a149da4a24afdb1aa26e1f0f 100644 (file)
@@ -1,14 +1,15 @@
-using namespace std;
-//  File      : SALOMEGUI_StudyPropertiesDlg.cxx
-//  Created   : Tue Oct 22 12:28:23 2002
-//  Descr     : Dialog box for editing of study properties
-
-//  Author    : Sergey ANIKIN
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_StudyPropertiesDlg.cxx
+//  Author : Sergey ANIKIN
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_StudyPropertiesDlg.h"
 
 #include "QAD_Desktop.h"
index de67fdce66a6caab1e260ba37ed70d2e99733086..6aa05338e4f4d9db31abe6ee1f10cb8410cc2610 100644 (file)
@@ -1,11 +1,12 @@
-//  File      : SALOMEGUI_StudyPropertiesDlg.h
-//  Created   : Tue Oct 22 12:28:23 2002
-//  Descr     : Dialog box for editing of study properties
-
-//  Author    : Sergey ANIKIN
-//  Project   : SALOME Pro
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_StudyPropertiesDlg.h
+//  Author : Sergey ANIKIN
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_STUDY_PROPERTIES_DLG_H
index c97025c01d10d9bc91a166b9deae8f5b259fb02b..e5df0ffbecb1e95595cb8d8922ca575f694027c1 100644 (file)
@@ -1,17 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOMEGUI_Swig.cxx
-// Created   : ven oct 12 15:44:16 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-
-// Modified  : Mon Jul 29 21:38:07 2002
-// Author    : Nicolas REJNERI
-// Copyright : OPEN CASCADE 2002
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Swig.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "QAD_Application.h"
 #include "QAD_Desktop.h"
 #include "QAD_Study.h"
@@ -28,7 +43,8 @@ using namespace std;
 /*!
   Constructor
 */
-SALOMEGUI_Swig::SALOMEGUI_Swig(): _studyId(0)
+SALOMEGUI_Swig::SALOMEGUI_Swig()
+// VSR 06-05-03 : _studyId(0)
 {
   //  MESSAGE("Constructeur");
 }
@@ -41,12 +57,26 @@ SALOMEGUI_Swig::~SALOMEGUI_Swig()
   //  MESSAGE("Destructeur");
 }
 
+/*!
+  Gets active study or 0 if no study opened
+*/
+QAD_Study* SALOMEGUI_Swig::getActiveStudy()
+{
+  QAD_Application* app = QAD_Application::getDesktop()->getActiveApp();
+  if ( app ) return app->getActiveStudy();
+  return 0;
+}
+
 /*!
   Call when updated object browser.
 */
 void SALOMEGUI_Swig::updateObjBrowser( bool updateSelection )
 {
-  QAD_Study* myActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myActiveStudy = getActiveStudy();
+  if ( !myActiveStudy) return;
+  // end of VSR 06-05-03 =====================================================
   myActiveStudy->updateObjBrowser( updateSelection );
 }
 
@@ -60,8 +90,14 @@ int SALOMEGUI_Swig::getActiveStudyId()
   //    {
   //  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
   //  _name = myStudy->getTitle();
-  _studyId = QAD_Application::getDesktop()->getActiveStudy()->getStudyId();
-  SCRUTE(_studyId);
+
+  // VSR 06-05-03 ============================================================
+  // _studyId = QAD_Application::getDesktop()->getActiveStudy()->getStudyId();
+  int _studyId = 0;
+  QAD_Study* myActiveStudy = getActiveStudy();
+  if ( myActiveStudy) _studyId = myActiveStudy->getStudyId();
+  // SCRUTE(_studyId);
+  // end of VSR 06-05-03 =====================================================
   //    }
   return _studyId;
 }
@@ -71,8 +107,14 @@ int SALOMEGUI_Swig::getActiveStudyId()
 */
 const char *SALOMEGUI_Swig::getActiveStudyName()
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
-  _name = myStudy->getTitle();
+  // VSR 06-05-03 ============================================================
+  // QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // _name = myStudy->getTitle();
+  QString _name = QString::null;
+  QAD_Study* myActiveStudy = getActiveStudy();
+  if ( myActiveStudy) _name = myActiveStudy->getTitle();
+  // end of VSR 06-05-03 =====================================================
+
   // NRI 24-02-03 :
   //if (_studyId ==0) 
   //  getActiveStudyId();
@@ -84,7 +126,11 @@ const char *SALOMEGUI_Swig::getActiveStudyName()
 */
 int SALOMEGUI_Swig::SelectedCount()
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return 0;
+  // end of VSR 06-05-03 =====================================================
   SALOME_Selection* Sel
     = SALOME_Selection::Selection( myStudy->getSelection() );
   return Sel->IObjectCount();
@@ -95,7 +141,11 @@ int SALOMEGUI_Swig::SelectedCount()
 */
 const char* SALOMEGUI_Swig::getSelected(int i)
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return "";
+  // end of VSR 06-05-03 =====================================================
   SALOME_Selection* Sel
     = SALOME_Selection::Selection( myStudy->getSelection() );
   SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
@@ -117,11 +167,15 @@ const char* SALOMEGUI_Swig::getSelected(int i)
 */
 void SALOMEGUI_Swig::AddIObject(const char *Entry)
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
   SALOME_Selection* Sel
     = SALOME_Selection::Selection( myStudy->getSelection() );
 
-  if ( !SALOMEGUI_Swig::IsInCurrentView( Entry ) )
+  if ( !IsInCurrentView( Entry ) )
     return;
   
   Handle(SALOME_InteractiveObject) IO = 
@@ -135,12 +189,15 @@ void SALOMEGUI_Swig::AddIObject(const char *Entry)
 */
 void SALOMEGUI_Swig::RemoveIObject(const char *Entry)
 {
-  QAD_Study* myStudy
-    = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
   SALOME_Selection* Sel
     = SALOME_Selection::Selection( myStudy->getSelection() );
 
-  if ( !SALOMEGUI_Swig::IsInCurrentView( Entry ) )
+  if ( !IsInCurrentView( Entry ) )
     return;
 
   Handle(SALOME_InteractiveObject) IO = 
@@ -154,7 +211,11 @@ void SALOMEGUI_Swig::RemoveIObject(const char *Entry)
 */
 void SALOMEGUI_Swig::ClearIObjects()
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
   SALOME_Selection* Sel
     = SALOME_Selection::Selection( myStudy->getSelection() );
   Sel->ClearIObjects();
@@ -165,9 +226,13 @@ void SALOMEGUI_Swig::ClearIObjects()
 */             
 void SALOMEGUI_Swig::Display(const char *Entry)
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
 
-  if ( !SALOMEGUI_Swig::IsInCurrentView( Entry ) )
+  if ( !IsInCurrentView( Entry ) )
     return;
 
   Handle(SALOME_InteractiveObject) IO = 
@@ -181,10 +246,14 @@ void SALOMEGUI_Swig::Display(const char *Entry)
 */
 void SALOMEGUI_Swig::DisplayOnly(const char *Entry)
 {
-  if ( !SALOMEGUI_Swig::IsInCurrentView( Entry ) )
-    return;
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
 
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  if ( !IsInCurrentView( Entry ) )
+    return;
 
   Handle(SALOME_InteractiveObject) IO = 
     myStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame()->FindIObject( Entry );
@@ -199,10 +268,14 @@ void SALOMEGUI_Swig::DisplayOnly(const char *Entry)
 */
 void SALOMEGUI_Swig::Erase(const char *Entry)
 {
-  if ( !SALOMEGUI_Swig::IsInCurrentView( Entry ) )
-    return;
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
 
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  if ( !IsInCurrentView( Entry ) )
+    return;
 
   Handle(SALOME_InteractiveObject) IO = 
     myStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame()->FindIObject( Entry );
@@ -215,16 +288,24 @@ void SALOMEGUI_Swig::Erase(const char *Entry)
 */
 void SALOMEGUI_Swig::DisplayAll()
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
   myStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame()->DisplayAll();
 }
 
 /*!
-  Erse only
+  Erase only
 */
 void SALOMEGUI_Swig::EraseAll()
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return;
+  // end of VSR 06-05-03 =====================================================
   SALOME_Selection* Sel 
     = SALOME_Selection::Selection( myStudy->getSelection() );
   
@@ -233,17 +314,31 @@ void SALOMEGUI_Swig::EraseAll()
 }
 
 /*!
-  Check
+  Checks if object is displayed in current viewer
 */
 bool SALOMEGUI_Swig::IsInCurrentView(const char *Entry)
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Study* myStudy = getActiveStudy();
+  if ( !myStudy) return false;
+  // end of VSR 06-05-03 =====================================================
   return myStudy->isInViewer( Entry, myStudy->getActiveStudyFrame()->entry() );
 }
 
-vtkRenderer *SALOMEGUI_Swig::getRenderer(int viewId)
+/*!
+  Gets VTK renderer if available
+*/
+//san:T3.13 - move getRenderer() implementation from here to SalomePy.cxx
+/*vtkRenderer *SALOMEGUI_Swig::getRenderer(int viewId)
 {
-  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  // VSR 06-05-03 ============================================================
+  //QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  QAD_Application* app = QAD_Application::getDesktop()->getActiveApp();
+  if ( !app ) return NULL;
+  QAD_Study* myStudy = app->getActiveStudy();
+  if ( !myStudy) return NULL;
+  // end of VSR 06-05-03 =====================================================
   int nbStudyFrames = myStudy->getStudyFramesCount();
   vtkRenderer *myRenderer = NULL;
   if (viewId == -1) // find the first frame with VTK viewer & get renderer
@@ -267,3 +362,5 @@ vtkRenderer *SALOMEGUI_Swig::getRenderer(int viewId)
   if (myRenderer == NULL) INFOS("No VTK Renderer available !");
   return myRenderer;
 }
+*/
+
index a3e6fd95112b522126216c4a24a1dedfb2314d4c..5c0875d66d2980b2b213c82a015f503da4ba19ed 100644 (file)
@@ -1,15 +1,30 @@
-//=============================================================================
-// File      : SALOMEGUI_Swig.hxx
-// Created   : ven oct 12 15:44:16 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-
-// Modified  : Mon Jul 29 21:38:07 2002
-// Author    : Nicolas REJNERI
-// Copyright : OPEN CASCADE 2002
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Swig.hxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOMEGUI_SWIG_HXX_
 #define _SALOMEGUI_SWIG_HXX_
@@ -20,6 +35,7 @@
 #include <Standard.hxx>
 
 class vtkRenderer;
+class QAD_Study;
 
 class SALOMEGUI_Swig
 {
@@ -27,15 +43,17 @@ public:
   SALOMEGUI_Swig();
   ~SALOMEGUI_Swig();
 
-  static vtkRenderer* getRenderer(int viewId = -1);
+  //san:T3.13 - move getRenderer() implementation from here to SalomePy.cxx
+  //static vtkRenderer* getRenderer(int viewId = -1);
 
-  void        updateObjBrowser( bool updateSelection );
-  int         getActiveStudyId();
-  const char* getActiveStudyName();
+  void         updateObjBrowser( bool updateSelection );
+  QAD_Study*   getActiveStudy();
+  int          getActiveStudyId();
+  const char*  getActiveStudyName();
 
 /* selection */
-  int         SelectedCount();
-  const char* getSelected(int i);
+  int          SelectedCount();
+  const char*  getSelected(int i);
 
   void AddIObject(const char *Entry);
   void RemoveIObject(const char *Entry);
@@ -50,10 +68,6 @@ public:
 
 /* check */
   bool IsInCurrentView(const char *Entry);
-
-protected:
-  int _studyId;
-  QString _name;
 };
 
 
index 65db3148930cd8e395039829b82a3ab92395f444..bf7794169ed93233d28fcbe7398e6a36bf678f5b 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOMEGUI_Swig.i
-// Created   : ven oct 12 15:44:16 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_Swig.i
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 %{
 #include "SALOMEGUI_Swig.hxx"
index 37caa1204981fe9dc1d4434a469ac6fda6e636d7..07c1b7bdbb322f022944a049cb4285cb8d4506bd 100644 (file)
@@ -1,14 +1,15 @@
-using namespace std;
-//  File      : SALOMEGUI_TableDlg.cxx
-//  Created   : Wed Dec 25 12:00:00 2002
-//  Descr     : Dialog box for displaying/editing of table
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME for ALLIANCES
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_TableDlg.cxx
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_TableDlg.h"
 #include "QAD_Tools.h"
 #include "QAD_MessageBox.h"
index e66462c721a113ba1e9b4df1add9aa9e32aa91cc..e195a12e007f0bbdf0ee2e974532b5d101e6ca6b 100644 (file)
@@ -1,11 +1,12 @@
-//  File      : SALOMEGUI_TableDlg.h
-//  Created   : Wed Dec 25 12:00:00 2002
-//  Descr     : Dialog box for displaying/editing of table
-
-//  Author    : Vadim SANDLER
-//  Project   : SALOME for ALLIANCES
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOMEGUI_TableDlg.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_TABLE_DLG_H
index 4f77e1b214b0d91d162004f4f6bea5be729b3a12..ed31165c36a013e438158a2e677e8436e6864a8b 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_TrihedronSizeDlg.cxx
-//  Created   : Fri Mar 22 16:34:27 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_TrihedronSizeDlg.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_TrihedronSizeDlg.h"
 
 #include <qbuttongroup.h>
index 3e06dc4d3ccfabe8a98def84a65f6847d0194a3c..cce230195750781e57d7241823aa26f4737088f7 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOMEGUI_TrihedronSizeDlg.h
-//  Created   : Fri Mar 22 16:33:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_TrihedronSizeDlg.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_TRIHEDRON_SIZE_DLG_H
index b3d6c6b29ce3ffb79ae40055a9784cc4269db293..d091d18dad083b0f4a783eedd7b128f866dc4299 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SALOMEGUI_ViewChoiceDlg.cxx
-//  Created   : Mon Jul 29 22:16:49 2002
-//  Author    : Nicolas REJNERI
-
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_ViewChoiceDlg.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOMEGUI_ViewChoiceDlg.h"
 #include "QAD_Config.h"
 #include "QAD_StudyFrame.h"
index 29b228f6d012fbde9a369ece244a31c7d2a040be..59b942ae4f201e93b52b6ea688dc2cc18006e932 100644 (file)
@@ -1,10 +1,29 @@
-//  File      : SALOMEGUI_ViewChoiceDlg.h
-//  Created   : Mon Jul 29 22:17:24 2002
-//  Author    : Nicolas REJNERI
-
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOMEGUI_ViewChoiceDlg.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOMEGUI_VIEWCHOICEDLG_H
index 9020b0525c54f1301d08f8e59b7185b5566cfc92..04cad02b25717f244ae174b97089110b8bbd3082 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOMEGUI_icons.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
index 11fef07986fa6f82c72fb409d9b2cdc6422fd0ff..4a15b95a31a971c9480bf848e2f48f686b9324dd 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOMEGUI_msg_en.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
@@ -631,3 +654,34 @@ msgstr "Do you want to close or only unload the study ?"
 
 msgid "SALOMEGUI_HELP_TITLE"
 msgstr "SALOME Professional Help"
+
+msgid "TOT_PLOT2D_FITDATA"
+msgstr "Fit range"
+msgid "MEN_PLOT2D_FITDATA"
+msgstr "Fit &Range"
+msgid "PRP_PLOT2D_FITDATA"
+msgstr "Fits view to the given data range"
+
+msgid "FIT_DATA_TLT"
+msgstr "Fit Data Range"
+
+msgid "Plot2d_FitDataDlg::FIT_ALL"
+msgstr "Fit both"
+
+msgid "Plot2d_FitDataDlg::FIT_HORIZONTAL"
+msgstr "Fit horizontally"
+
+msgid "Plot2d_FitDataDlg::FIT_VERTICAL"
+msgstr "Fit vertically"
+
+msgid "Plot2d_FitDataDlg::HORIZONTAL_AXIS"
+msgstr "Horizontal axis"
+
+msgid "Plot2d_FitDataDlg::VERTICAL_AXIS"
+msgstr "Vertical axis"
+
+msgid "Plot2d_FitDataDlg::MIN_VALUE_LAB"
+msgstr "Min:"
+
+msgid "Plot2d_FitDataDlg::MAX_VALUE_LAB"
+msgstr "Max:"
index f2c33bb512901e6253fc40643033aa88cc4c3b43..e7cabbe45998f933c2d8948a00834e5c5e093094 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOMEGUI_msg_fr.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: example-Qt-message-extraction\n"
index 604840740ab9683fea99bb1cecd2ae3088f61e45..e118f219db0e788e3f3008768a04c20a80d65d99 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx
+//  Module : SALOME
 
 #ifndef _SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_HeaderFile
 #define _SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_HeaderFile
index 06564d69b98d1ef6df3484e252194445d0c592d2..1fca36e3ebe63a334e502df902dbe5bc7dbe9d89 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx"
 
 #ifndef _Standard_NoSuchObject_HeaderFile
index 209c96872c24e135c5a4ab41197e9e3fa92e1fac..dc0cbd32d3850ccbe65bf84b496723b60b07ee99 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
 #define _SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
 
index 4d7b1fdda6c2bc90fd11e03ef89b275258c9e0df..7fefc9c062f0d7a2d6a8c1432c2c72493324540f 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index dc17b84e51c01ff927662793b566a2407f43398a..6617df7e0faa870abc9a18471e69318b2e5f273b 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_DataMapOfIOMapOfInteger.hxx
+//  Module : SALOME
 
 #ifndef _SALOME_DataMapOfIOMapOfInteger_HeaderFile
 #define _SALOME_DataMapOfIOMapOfInteger_HeaderFile
index 915af9c34ff98849f23907e25691964ea0b1e753..990e1bad6b83ce5dd2d29cf106357a2f9615bc4a 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_DataMapOfIOMapOfInteger_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_DataMapOfIOMapOfInteger.hxx"
 
 #ifndef _Standard_DomainError_HeaderFile
index 17b9c599243fb6c3dc7c46f0fd76944d3971564c..2a095e50a7195d57555b807add0d358157eab3ee 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-//  File      : SALOME_Filter.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Filter.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOME_Filter.ixx"
 
index ec8f831e8148e8c5725df1dc53c85027735a4209..9c7ed2c6d7a0ae3fea3feb111db4afa4405bd7f0 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_Filter.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_Filter_HeaderFile
 #define _SALOME_Filter_HeaderFile
 
index 71639eeb9e2ef1a474c2c8ec7f9f63ce34eb2395..850317496a9201b6c2aaf0af4bcef3a368d30622 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Filter.ixx
+//  Module : SALOME
+
 #include "SALOME_Filter.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 61a179f4731aa851c6e26cc4d7c7d4eab52d5312..1928c441f60b6c9fe8dc231625c6e70656bc2a51 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Filter.jxx
+//  Module : SALOME
+
 #ifndef _SALOME_Filter_HeaderFile
 #include "SALOME_Filter.hxx"
 #endif
index 498241daf74d5eabdbd071a3c809ae011162f00f..861a7ac6340b3907fa51ef9bc2c3263005e414a3 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ListIO.hxx
+//  Module : SALOME
 
 #ifndef _SALOME_ListIO_HeaderFile
 #define _SALOME_ListIO_HeaderFile
index e93ad65fe61e934243edb584fec4afecbe36ec20..0c5ee6097ec270daa61f1dc48e3720371b16baf3 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_ListIO_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_ListIO.hxx"
 
 #ifndef _Standard_NoSuchObject_HeaderFile
index 2d7c88b3f98ba6c89f2a115daa392c1d60e491b8..c479e6ca8a660838dca607c959ca96c1ed0eb892 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ListIteratorOfListIO.hxx
+//  Module : SALOME
 
 #ifndef _SALOME_ListIteratorOfListIO_HeaderFile
 #define _SALOME_ListIteratorOfListIO_HeaderFile
index cc981e80b405325d3ce52235bcf833e3d9bcd6b0..928d94559013eb89775e41c8c202a88b6c7835ec 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_ListIteratorOfListIO_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_ListIteratorOfListIO.hxx"
 
 #ifndef _Standard_NoMoreObject_HeaderFile
index 42a2389f3a0532a14f6e744d669e08e0f893c0b2..21c9662a055c0d39cbc3548bbc48c66ba6a9dd56 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ListIteratorOfListOfFilter.hxx
+//  Module : SALOME
 
 #ifndef _SALOME_ListIteratorOfListOfFilter_HeaderFile
 #define _SALOME_ListIteratorOfListOfFilter_HeaderFile
index cf39dcb06c7539a3773937ed51bbda551332482a..95cba8a29729f1d14f18eee863959ec643d294f5 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_ListIteratorOfListOfFilter_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_ListIteratorOfListOfFilter.hxx"
 
 #ifndef _Standard_NoMoreObject_HeaderFile
index 50e127a4cba37596494fbffe28a516eb06e1d368..9aed956f8060d55a13ebb5e25225b8419b82e35d 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_ListNodeOfListIO.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_ListNodeOfListIO_HeaderFile
 #define _SALOME_ListNodeOfListIO_HeaderFile
 
index 8d36545955a9b6ebd24c2b91d60f913bd96eb745..95147d20debcec7c1997814cd1a9c5523f6fc4ef 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_ListNodeOfListIO_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_ListNodeOfListIO.hxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index cb3fcafb07603f6ccb77572ba5c9d0b66246883f..1fab567491dbd85b69aa97d16ca539f07b1f3674 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_ListNodeOfListOfFilter.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_ListNodeOfListOfFilter_HeaderFile
 #define _SALOME_ListNodeOfListOfFilter_HeaderFile
 
index 4b729c28a4d548c877e63a82c64917d43e2f1756..b89c9d1e71fe18e790be7ad3e3e228d11c3f5843 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_ListNodeOfListOfFilter_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_ListNodeOfListOfFilter.hxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 1f2296b6b4f0292f49d75dbb235cac0c1137fe10..7b4b9c2ac1727a2c4fe42779ccd1751db44b352c 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_ListOfFilter.hxx
+//  Module : SALOME
 
 #ifndef _SALOME_ListOfFilter_HeaderFile
 #define _SALOME_ListOfFilter_HeaderFile
index 6f95521fd642ec4de3815b9c99f328cac7651b4d..6dbbdaacf68abb96cfafcf51de9f3fd727fb8f65 100644 (file)
@@ -1,18 +1,30 @@
-using namespace std;
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
 //
+//
+//  File   : SALOME_ListOfFilter_0.cxx
+//  Module : SALOME
+
+using namespace std;
 #include "SALOME_ListOfFilter.hxx"
 
 #ifndef _Standard_NoSuchObject_HeaderFile
index dd32400d175e4f113d634b0121ddabecf1d4a1df..3574d8d6412b8220c22bc68b2ca134822c12d1a9 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOME_NumberFilter.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_NumberFilter.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOME_NumberFilter.ixx"
 #include "SALOME_Selection.h"
 #include "SALOME_InteractiveObject.hxx"
index ed722d1655d9196c7a48103982985d8e6f4b8271..1f30f67e4940ced217ff7c2ba15b64391b37b68f 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_NumberFilter.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_NumberFilter_HeaderFile
 #define _SALOME_NumberFilter_HeaderFile
 
index 327ff5295fa75ee6e5c63b308534995ce5832ab5..4a3990e4dc99d193ad811926e2b01e039862aee2 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_NumberFilter.ixx
+//  Module : SALOME
+
 #include "SALOME_NumberFilter.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 071a0e3a3f13c00a241e0e67a2cf6a4749f54012..51893094a2bf350417dfb72f784ef81f1cb4d7ce 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_NumberFilter.jxx
+//  Module : SALOME
+
 #ifndef _SALOME_NumberFilter_HeaderFile
 #include "SALOME_NumberFilter.hxx"
 #endif
index 0634aa4de407360fe33ed9c6674198b4cd253ae8..3e79a6c6d99060ac9b45703810c97e832cbac06a 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOME_Selection.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Selection.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 /*!
   \class SALOME_Selection SALOME_Selection.h
   \brief Selection Mechanism of Interactive Object.
index 95d1fd4b3d6ac747b7597a83ee6dbeb7c5efad07..6c0eca8a65ece1dc62978323bb5d93fb7c1c6e01 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SALOME_Selection.h
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Selection.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SALOME_SELECTION_H
index 246906ba26c13953c220dc5b0e08e53c025aed82..4bc2a52464c934d241843dc372330995505269b7 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SALOME_TypeFilter.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_TypeFilter.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SALOME_TypeFilter.ixx"
 #include "SALOME_InteractiveObject.hxx"
 
index b5346a837c22508990af83669640579ec476af6b..3e0ea4bce1eb038c26f4b443aa6ed08f39f0f9f5 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : SALOME_TypeFilter.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_TypeFilter_HeaderFile
 #define _SALOME_TypeFilter_HeaderFile
 
index f806b74b7a4b4e0a4a82212f37fd283da4ddbaad..d9e4152bfdfc21e4b9a4a700e2c00fca2e177b48 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_TypeFilter.ixx
+//  Module : SALOME
+
 #include "SALOME_TypeFilter.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 420415f6a61c9a7a36109ada25e087b030967297..8dcc1216bb5620f3ec25a45b91607c42e8ca98ca 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_TypeFilter.jxx
+//  Module : SALOME
+
 #ifndef _SALOME_TypeFilter_HeaderFile
 #include "SALOME_TypeFilter.hxx"
 #endif
index 3a558d579903d8f6662905e895e164453cbb83a0..8e0989d5d74ae26909155682240d090e3a073909 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : ven nov 16 18:12:41 CET 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME SALOME_PY : binding of VTK graphics and Python
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -26,8 +44,7 @@ LIB_CLIENT_IDL = SALOMEDS.idl \
                 SALOME_Exception.idl
 
 CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(OCC_INCLUDES) -DHAVE_CONFIG_H
-LDFLAGS+= $(PYTHON_LIBS) $(QT_MT_LIBS) $(OCC_LIBS) $(VTK_LIBS) $(OGL_LIBS) -lSALOME_Swigcmodule -lSalomeGUI -lVTKCommonPython -lVTKGraphicsPython -lVTKContribPython -lVTKImagingPython
-#LDFLAGS+= $(PYTHON_LIBS) $(QT_MT_LIBS) $(OCC_LIBS) $(VTK_LIBS) $(OGL_LIBS) -lSalomeGUI -lVTKCommonPython -lVTKGraphicsPython -lVTKContribPython -lVTKImagingPython
+LDFLAGS+= $(PYTHON_LIBS) $(QT_MT_LIBS) $(OCC_LIBS) $(VTK_LIBS) $(OGL_LIBS) -lSalomeGUI -lvtkCommonPython -lvtkGraphicsPython -lvtkImagingPython -lVTKViewer
 
 
 @CONCLUDE@
index 05a889cd8a95c13cd1c6d2124a4c3ce4cc8ce963..4946923240b74d38e2457de8306bc9f3e227723d 100644 (file)
@@ -1,19 +1,43 @@
-using namespace std;
-//=============================================================================
-//  File      : SalomePy.cxx
-//  Created   : ven nov 16 17:29:20 CET 2001
-//  Author    : Paul RASCLE, EDF
-//  Project   : SALOME
-//  Copyright : EDF 2001
+//  SALOME SALOME_PY : binding of VTK graphics and Python
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SalomePy.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
 //  $Header$
-//=============================================================================
 
-#include "SALOMEGUI_Swig.hxx"
+using namespace std;
 #include <Python.h>
 #include <vtkRenderer.h>
 #include <vtkRenderWindowInteractor.h>
 #include <vtkPythonUtil.h>
+#include <vtkVersion.h>
 #include "utilities.h"
+#include "QAD_Study.h"
+#include "QAD_RightFrame.h"
+#include "QAD_Application.h"
+#include "QAD_Desktop.h"
+#include "VTKViewer_ViewFrame.h"
 
 extern "C"
 { 
@@ -54,7 +78,11 @@ void initlibSalomePy()
       return;
     }
 
-  m=PyImport_ImportModule("libVTKGraphicsPython"); // import module if not already imported (new ref)
+  if (VTK_MAJOR_VERSION > 3)
+    m=PyImport_ImportModule("libvtkRenderingPython"); // import module if not already imported (new ref)
+  else
+    m=PyImport_ImportModule("libVTKGraphicsPython"); // import module if not already imported (new ref)
+    
   MESSAGE("---");
 
   if (PyErr_Occurred())
@@ -65,7 +93,7 @@ void initlibSalomePy()
     }
 
   if ( m ) {
-    md = PyModule_GetDict(m);                        // dict of libVTKGraphicsPython (borrowed ref ; not decref)
+    md = PyModule_GetDict(m);                        // dict of libvtkGraphicsPython (borrowed ref ; not decref)
     MESSAGE("---");
 
     vtkclass=PyDict_GetItemString(md,"vtkRenderer"); // (borrowed ref ; not decref)
@@ -73,7 +101,32 @@ void initlibSalomePy()
     MESSAGE("---");
   }
 //NRI
-  vtkRenderer *renderer = SALOMEGUI_Swig::getRenderer();
+  //san:T3.13 - move getRenderer() implementation here
+  //vtkRenderer *renderer = SALOMEGUI_Swig::getRenderer();
+  QAD_Study* myStudy = QAD_Application::getDesktop()->getActiveStudy();
+  int nbStudyFrames = myStudy->getStudyFramesCount();
+  vtkRenderer *renderer = NULL;
+  int viewId = -1;
+  if (viewId == -1) // find the first frame with VTK viewer & get renderer
+    {
+      int i=0;
+      for(i=0; i<nbStudyFrames; i++)
+       {
+         if ( myStudy->getStudyFrame(i)->getTypeView() == VIEW_VTK )
+           {
+             renderer = ((VTKViewer_ViewFrame*)myStudy->getStudyFrame(i)->getRightFrame()->getViewFrame())->getRenderer();
+             break;
+           }
+       }
+    }
+  else     // get the VTK renderer of a given frame
+    {
+      SCRUTE(viewId);
+      if ((viewId >=0) && (viewId <nbStudyFrames))
+       renderer = ((VTKViewer_ViewFrame*)myStudy->getStudyFrame(viewId)->getRightFrame()->getViewFrame())->getRenderer();
+    }
+  if (renderer == NULL) INFOS("No VTK Renderer available !");
+  //san:T3.13 - move getRenderer() implementation here
 
   MESSAGE("---");
   obj = PyVTKObject_New(vtkclass,renderer);        // (new ref)
index 3f343b5871bef9f8135585cfa3389b889a56a74d..ed6bcf93c52c5213e89e493fe8ab26dd9da98598 100644 (file)
@@ -1,15 +1,14 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : ven sep 28 17:32:46 CEST 2001
-#  Author    : Nicolas REJNERI
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Nicolas REJNERI
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -51,7 +50,7 @@ LIB_CLIENT_IDL = SALOME_Exception.idl
 
 CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES)
 LIBS+= $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(OCC_LIBS) $(VTK_LIBS) $(OGL_LIBS)
-LDFLAGS+= -lSalomeGUI
+LDFLAGS+= -lSalomeGUI -lqtcmodule
 
 
 # Custom build step: generate C++ wrapping according to $(SIP_FILES)
index 8ea6026e286c3cd44d739c5e81fcd9fddbdf5751..9f7c1afa25a550a8e2719b0349d988011f079e44 100644 (file)
@@ -1,9 +1,17 @@
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SalomePyQt.cxx
+//  Module : SALOME
+
 using namespace std;
 #include "SalomePyQt.hxx"
 
 #include "QAD_Application.h"
 #include "QAD_Desktop.h"
 #include "QAD_Study.h"
+#include "QAD_FileDlg.h"
 
 #include "QAD_Config.h"
 #include "QAD_Settings.h"
@@ -25,12 +33,12 @@ QMenuBar* SalomePyQt::getMainMenuBar()
 
 int SalomePyQt::getStudyId()
 {
-  return QAD_Application::getDesktop()->getActiveStudy()->getStudyId();
+  return QAD_Application::getDesktop()->getActiveApp()->getActiveStudy()->getStudyId();
 }
 
 SALOME_Selection* SalomePyQt::getSelection()
 {
-  return SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+  return SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveApp()->getActiveStudy()->getSelection());
 }
 
 void SalomePyQt::putInfo( const QString& msg )
@@ -83,3 +91,19 @@ QString SalomePyQt::getSetting(QString name)
 {
   return QAD_CONFIG->getSetting(name);
 }
+
+QString SalomePyQt::getFileName(QWidget*           parent, 
+                               const QString&     initial, 
+                               const QStringList& filters, 
+                               const QString&     caption,
+                               bool               open)
+{
+  return QAD_FileDlg::getFileName(parent, initial, filters, caption, open);
+}
+
+QString SalomePyQt::getExistingDirectory(QWidget*       parent,
+                                        const QString& initial,
+                                        const QString& caption)
+{
+  return QAD_FileDlg::getExistingDirectory(parent, initial, caption);
+}
index 8d835ac12dd20e1d7b0ffe198f0376140dd35345..c79a1d97ef4e1eedb713e8295fbaaeb0ed75322d 100644 (file)
@@ -1,3 +1,10 @@
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SalomePyQt.hxx
+//  Module : SALOME
+
 #ifndef _SALOME_PYQT_H
 #define _SALOME_PYQT_H
 
@@ -28,6 +35,15 @@ public:
   static void addDoubleSetting(QString _name, double _value, bool _autoValue);
   static bool removeSettings(QString name);
   static QString getSetting(QString name);
+
+  static QString getFileName(QWidget*           parent, 
+                             const QString&     initial, 
+                             const QStringList& filters, 
+                             const QString&     caption,
+                             bool               open);
+  static QString getExistingDirectory(QWidget*       parent,
+                                      const QString& initial,
+                                      const QString& caption);
 };
 
 #endif
index 02b9e4465c8b304b7da8724659ccde797da40945..51ab6d7728525a78459f49086fbb662acdedc953 100644 (file)
@@ -42,4 +42,7 @@ public:
   static void addStringSetting(QString, QString, bool);
   static void addIntSetting(QString, int, bool);
   static void addDoubleSetting(QString, double, bool);
+
+  static QString getFileName(QWidget*, const QString&, const QStringList&, const QString&, bool);
+  static QString getExistingDirectory(QWidget*, const QString&, const QString&);
 };
index 46af5616a15889642cb37265c9c25355496cff1a..404ee4dfc8b1c2166bd8e634c2edf7a4490ee6fa 100644 (file)
@@ -1,11 +1,28 @@
-#==============================================================================
-#  File      : Help.py
-#  Created   : sam nov 10 16:51:38 CET 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Help.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
 class SalomeDoc:
     def __init__(self, aDoc):
index 3475d77dc4052661f9d56584db1eea7c5508555f..3b2432bc999135d86779bcbf6e540ff18b592393 100644 (file)
@@ -1,15 +1,31 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : ven sep 28 17:32:46 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -22,7 +38,7 @@ LIB = libSALOME_Swigcmodule.la
 LIB_SRC = 
 
 SWIG_DEF = libSALOME_Swig.i
-EXPORT_PYSCRIPTS = libSALOME_Swig.py Help.py PyInterp.py salome.py examplevtk1.py supervisionexample.py supervisiongeomexample.py salome_shared_modules.py batchmode_salome.py test_table.py test_big_table.py test_many_objects.py
+EXPORT_PYSCRIPTS = libSALOME_Swig.py Help.py PyInterp.py salome.py examplevtk1.py supervisionexample.py supervisiongeomexample.py salome_shared_modules.py batchmode_salome.py test_table.py test_big_table.py test_many_objects.py salome_test.py
 
 LIB_CLIENT_IDL = SALOMEDS.idl \
                 SALOME_Exception.idl
index 35c999175a7cd3b43963a18698a9090bee2a5ccb..3e0133d894efee6120f6bd7969dccefb6a906ca6 100644 (file)
@@ -1,11 +1,28 @@
-#==============================================================================
-#  File      : PyInterp.py
-#  Created   : mer oct 17 08:42:01 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : PyInterp.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
 import sys
 from omniORB import CORBA
index 050ebeaea5851d41037b577f94fbb0854640c079..f3a61bc760addae0414bdad473f0d146785577c2 100644 (file)
@@ -1,3 +1,10 @@
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : batchmode_salome.py
+#  Module : SALOME
+
 import salome_shared_modules
 
 from omniORB import CORBA
@@ -26,6 +33,14 @@ def SalomeGUIgetAllSelected(self):
     return listSelected
     #--------------------------------------------------------------------------
 
+def generateName(prefix = None):
+    import whrandom;
+    int = whrandom.randint(1,1000);
+    if prefix is None:
+        return "Study" + str(int)
+    else :
+        return prefix + str(int)
+
 from libSALOME_Swig import *
 ###from SalomePyQt import *
 class SalomeGUI(SALOMEGUI_Swig):
index 4d1be6306631d416039dd84eab823ccd647dc6ad..58a49bec3c51da78d90ec1806bef720a7c8040ea 100644 (file)
@@ -1,3 +1,27 @@
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : examplevtk1.py
+#  Module : SALOME
+
 import libSalomePy
 ren=libSalomePy.renderer
 #iren=libSalomePy.interactor
index 8c8c40fe9a9ca63f0797a63d226fa31721f6131e..988ad4cbc96c7a86311902b7d506ab7081ef7bc3 100644 (file)
@@ -1,11 +1,28 @@
-//=============================================================================
-// File      : libSALOME_Swig.i
-// Created   : ven sep 28 17:39:35 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : libSALOME_Swig.i
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 %module libSALOME_Swig
 
index 70e706dfb1696fd974ac66f1ab3541721195faed..ad7b34700ee485ed361b826c2350a0908ceb95ca 100644 (file)
@@ -1,11 +1,28 @@
-#==============================================================================
-#  File      : salome.py
-#  Created   : sam nov 10 00:49:00 CET 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : salome.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
 from omniORB import CORBA
 from LifeCycleCORBA import *
index 8b3fa2e82ed314e9b92293777f8392abd339faf3..062f1d4506bad0124c2b337fd99bbd16391f2875 100644 (file)
@@ -1,3 +1,27 @@
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : salome_shared_modules.py
+#  Module : SALOME
+
 from SALOME_utilities import *
 
 """
diff --git a/src/SALOME_SWIG/salome_test.py b/src/SALOME_SWIG/salome_test.py
new file mode 100644 (file)
index 0000000..8550a19
--- /dev/null
@@ -0,0 +1,469 @@
+#  SALOME SALOME_SWIG : binding of C++ implementation and Python
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : salome_test.py
+#  Module : SALOME
+
+print "Test the application loading  GEOM, SMESH, VISU, MED, components and doing some"
+print "operation within the components."
+
+import salome
+from salome import sg
+import SALOMEDS
+import os
+
+print "======================================================================"
+print "           Create Study "
+print "======================================================================"
+
+import geompy
+
+print "================================="
+print "       create AttributeReal      "
+print "================================="
+A = geompy.myBuilder.FindOrCreateAttribute(geompy.father, "AttributeReal")
+if A == None :
+       raise  RuntimeError, "Can't create AttributeReal attribute"
+A = A._narrow(SALOMEDS.AttributeReal)
+A.SetValue(0.0001)
+if A.Value() != 0.0001:
+       raise  RuntimeError, "Error : wrong value of  AttributeReal"
+
+print
+print " ===========  Test Geometry  =========================="
+print
+
+print "==================================="
+print "     define a box"
+print "==================================="
+
+box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
+idbox = geompy.addToStudy(box,"box")
+
+print
+print "=============  Test SMESH  ============================="
+print
+
+import SMESH
+import smeshpy
+
+geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
+myBuilder = salome.myStudy.NewBuilder()
+
+smeshgui = salome.ImportComponentGUI("SMESH")
+smeshgui.Init(salome.myStudyId);
+
+ShapeTypeCompSolid = 1
+ShapeTypeSolid = 2
+ShapeTypeShell = 3
+ShapeTypeFace = 4
+ShapeTypeWire = 5
+ShapeTypeEdge = 6
+ShapeTypeVertex = 7
+
+# ---- define a box
+
+box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
+idbox = geompy.addToStudy(box,"box")
+
+# ---- add first face of box in study
+
+subShapeList=geompy.SubShapeAll(box,ShapeTypeFace)
+face=subShapeList[0]
+name = geompy.SubShapeName( face._get_Name(), box._get_Name() )
+print name
+idface=geompy.addToStudyInFather(box,face,name)
+
+# ---- add shell from box  in study
+
+subShellList=geompy.SubShapeAll(box,ShapeTypeShell)
+shell = subShellList[0]
+name = geompy.SubShapeName( shell._get_Name(), box._get_Name() )
+print name
+idshell=geompy.addToStudyInFather(box,shell,name)
+
+# ---- add first edge of face in study
+
+edgeList = geompy.SubShapeAll(face,ShapeTypeEdge)
+edge=edgeList[0];
+name = geompy.SubShapeName( edge._get_Name(), face._get_Name() )
+print name
+idedge=geompy.addToStudyInFather(face,edge,name)
+
+# ---- launch SMESH, init a Mesh with the box
+gen=smeshpy.smeshpy()
+mesh=gen.Init(idbox)
+
+idmesh = smeshgui.AddNewMesh( salome.orb.object_to_string(mesh) )
+smeshgui.SetName(idmesh, "Meshbox");
+smeshgui.SetShape(idbox, idmesh);
+
+# ---- create Hypothesis
+
+print "-------------------------- create Hypothesis"
+print "-------------------------- LocalLength"
+hyp1=gen.CreateHypothesis("LocalLength")
+hypLen1 = hyp1._narrow(SMESH.SMESH_LocalLength)
+hypLen1.SetLength(100)
+print hypLen1.GetName()
+print hypLen1.GetId()
+print hypLen1.GetLength()
+
+idlength = smeshgui.AddNewHypothesis( salome.orb.object_to_string(hypLen1) );
+smeshgui.SetName(idlength, "Local_Length_100");
+
+print "-------------------------- NumberOfSegments"
+hyp2=gen.CreateHypothesis("NumberOfSegments")
+hypNbSeg1=hyp2._narrow(SMESH.SMESH_NumberOfSegments)
+hypNbSeg1.SetNumberOfSegments(7)
+print hypNbSeg1.GetName()
+print hypNbSeg1.GetId()
+print hypNbSeg1.GetNumberOfSegments()
+
+idseg = smeshgui.AddNewHypothesis( salome.orb.object_to_string(hypNbSeg1) );
+smeshgui.SetName(idseg, "NumberOfSegments_7");
+
+print "-------------------------- MaxElementArea"
+hyp3=gen.CreateHypothesis("MaxElementArea")
+hypArea1=hyp3._narrow(SMESH.SMESH_MaxElementArea)
+hypArea1.SetMaxElementArea(2500)
+print hypArea1.GetName()
+print hypArea1.GetId()
+print hypArea1.GetMaxElementArea()
+
+idarea1 = smeshgui.AddNewHypothesis( salome.orb.object_to_string(hypArea1) );
+smeshgui.SetName(idarea1, "MaxElementArea_2500");
+
+print "-------------------------- MaxElementArea"
+hyp3=gen.CreateHypothesis("MaxElementArea")
+hypArea2=hyp3._narrow(SMESH.SMESH_MaxElementArea)
+hypArea2.SetMaxElementArea(500)
+print hypArea2.GetName()
+print hypArea2.GetId()
+print hypArea2.GetMaxElementArea()
+
+idarea2 = smeshgui.AddNewHypothesis( salome.orb.object_to_string(hypArea2) );
+smeshgui.SetName(idarea2, "MaxElementArea_500");
+
+print "-------------------------- Regular_1D"
+alg1=gen.CreateHypothesis("Regular_1D")
+algo1=alg1._narrow(SMESH.SMESH_Algo)
+listHyp=algo1.GetCompatibleHypothesis()
+for hyp in listHyp:
+    print hyp
+algoReg=alg1._narrow(SMESH.SMESH_Regular_1D)
+print algoReg.GetName()
+print algoReg.GetId()
+
+idreg = smeshgui.AddNewAlgorithms( salome.orb.object_to_string(algoReg) );
+smeshgui.SetName(idreg, "Regular_1D");
+
+print "-------------------------- MEFISTO_2D"
+alg2=gen.CreateHypothesis("MEFISTO_2D")
+algo2=alg2._narrow(SMESH.SMESH_Algo)
+listHyp=algo2.GetCompatibleHypothesis()
+for hyp in listHyp:
+    print hyp
+algoMef=alg2._narrow(SMESH.SMESH_MEFISTO_2D)
+print algoMef.GetName()
+print algoMef.GetId()
+
+idmef = smeshgui.AddNewAlgorithms( salome.orb.object_to_string(algoMef) );
+smeshgui.SetName(idmef, "MEFISTO_2D");
+
+# ---- add hypothesis to edge
+
+print "-------------------------- add hypothesis to edge"
+edge=salome.IDToObject(idedge)
+submesh=mesh.GetElementsOnShape(edge)
+ret=mesh.AddHypothesis(edge,algoReg)
+print ret
+ret=mesh.AddHypothesis(edge,hypLen1)
+print ret
+
+idsm1 = smeshgui.AddSubMeshOnShape( idmesh,
+                                    idedge,
+                                    salome.orb.object_to_string(submesh),
+                                    ShapeTypeEdge )
+smeshgui.SetName(idsm1, "SubMeshEdge")
+smeshgui.SetAlgorithms( idsm1, idreg );
+smeshgui.SetHypothesis( idsm1, idlength );
+
+print "-------------------------- add hypothesis to face"
+face=salome.IDToObject(idface)
+submesh=mesh.GetElementsOnShape(face)
+ret=mesh.AddHypothesis(face,hypArea2)
+print ret
+
+idsm2 = smeshgui.AddSubMeshOnShape( idmesh,
+                                    idface,
+                                    salome.orb.object_to_string(submesh),
+                                    ShapeTypeFace )
+smeshgui.SetName(idsm2, "SubMeshFace")
+smeshgui.SetHypothesis( idsm2, idarea2 );
+
+# ---- add hypothesis to box
+
+print "-------------------------- add hypothesis to box"
+box=salome.IDToObject(idbox)
+submesh=mesh.GetElementsOnShape(box)
+ret=mesh.AddHypothesis(box,algoReg)
+print ret
+ret=mesh.AddHypothesis(box,hypNbSeg1)
+print ret
+ret=mesh.AddHypothesis(box,algoMef)
+print ret
+ret=mesh.AddHypothesis(box,hypArea1)
+print ret
+
+smeshgui.SetAlgorithms( idmesh, idreg );
+smeshgui.SetHypothesis( idmesh, idseg );
+smeshgui.SetAlgorithms( idmesh, idmef );
+smeshgui.SetHypothesis( idmesh, idarea1 );
+
+gen.Compute(mesh, idbox)
+sg.updateObjBrowser(1);
+
+print
+print "=============  Test  Supervisor  ============================="
+print
+
+from SuperV import *
+import SALOMEDS
+myStudy = salome.myStudy
+myBuilder = myStudy.NewBuilder()
+
+SuperVision = lcc.FindOrLoadComponent("SuperVisionContainer","Supervision")
+father = myStudy.FindComponent("SUPERV")
+if father is None:
+        father = myBuilder.NewComponent("SUPERV")
+        A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName");
+        FName = A1._narrow(SALOMEDS.AttributeName)
+        FName.SetValue("Supervision")
+       A2 = myBuilder.FindOrCreateAttribute(father, "AttributePixMap");
+       aPixmap = A2._narrow(SALOMEDS.AttributePixMap);
+       aPixmap.SetPixMap( "ICON_OBJBROWSER_Supervision" );
+       myBuilder.DefineComponentInstance(father,SuperVision)
+
+def addStudy(ior):
+    dataflow = SuperVision.getGraph(ior)
+    name=dataflow.Name()
+    itr = myStudy.NewChildIterator(father)
+    while itr.More():
+        item=itr.Value()
+        res,A=item.FindAttribute("AttributeName")
+        if res:
+            aName = A._narrow(SALOMEDS.AttributeName)
+            if aName.Value() == name :
+               print myBuilder.FindOrCreateAttribute(item, "AttributeIOR")
+               A  = myBuilder.FindOrCreateAttribute(item, "AttributeIOR")
+               print "A = ", A
+               if A is not None :
+                   #res,A = myBuilder.FindOrCreateAttribute(item, "AttributeIOR")
+                   anIOR  = A._narrow(SALOMEDS.AttributeIOR);
+                  print "anIOR.SetValue(dataflow.getIOR())"
+                  anIOR.SetValue(dataflow.getIOR()) 
+                return
+        itr.Next()
+    obj = myBuilder.NewObject(father)
+    A=myBuilder.FindOrCreateAttribute(obj, "AttributeName")
+    aName=A._narrow(SALOMEDS.AttributeName)
+    aName.SetValue(name)
+    A=myBuilder.FindOrCreateAttribute(obj, "AttributeIOR")
+    anIOR  = A._narrow(SALOMEDS.AttributeIOR)
+    anIOR.SetValue(dataflow.getIOR())
+
+import os
+dir= os.getenv("SALOME_ROOT_DIR")
+if dir == None:
+       raise RuntimeError, "SALOME_ROOT_DIR is not defined"
+xmlfile = dir +"/../SALOME_ROOT/SuperVisionTest/resources/GraphEssai.xml"
+print "Load dataflow from the file : "
+print xmlfile
+print
+
+myGraph = Graph ( xmlfile )
+
+# This DataFlow is "valid" : no loop, correct links between Nodes etc...
+print "myGraph.IsValid() = ", myGraph.IsValid()
+
+# Get Nodes
+myGraph.PrintNodes()
+Add,Sub,Mul,Div = myGraph.Nodes()
+
+# Load Datas
+Addx = Add.Input("x",3.)
+Addy = Add.Input("y",4.5)
+Subx = Sub.Input("x",1.5)
+
+# Get Output Port
+Addz = Add.Port('z')
+Subz = Sub.Port('z')
+Mulz = Mul.Port('z')
+Divz = Div.Port('z')
+
+# This DataFlow is "executable" : all pending Ports are defined with Datas
+print myGraph.IsExecutable()
+
+# Starts only execution of that DataFlow and gets control immediatly
+print myGraph.Run()
+
+# That DataFlow is running ==> 0 (false)
+print myGraph.IsDone()
+
+# Events of execution :
+aStatus,aNode,anEvent,aState = myGraph.Event()
+while aStatus :
+    print aNode.Thread(),aNode.SubGraph(),aNode.Name(),anEvent,aState
+    aStatus,aNode,anEvent,aState = myGraph.Event()
+print "myGraph.IsDone() = ",myGraph.IsDone()
+
+# Wait for Completion (but it is already done after event loop ...)
+print "Done : ",myGraph.DoneW()
+
+# Get result
+print "Result : ",Divz.ToString()
+
+# Intermediate results :
+print "Intermediate Result Add\z : ",Addz.ToString()
+print "Intermediate Result Sub\z : ",Subz.ToString()
+print "Intermediate Result Mul\z : ",Mulz.ToString()
+
+print " "
+#print "Type : print myGraph.IsDone()"
+#print "       If execution is finished ==> 1 (true)"
+res=myGraph.IsDone()
+if res != 1:
+       raise RuntimeError, "myGraph.Run() is not done"
+
+print " "
+print "Type : print Divz.ToString()"
+print "       You will get the result"
+Divz.ToString()
+
+print " "
+print "Type : myGraph.PrintPorts()"
+print "       to see input and output values of the graph"
+myGraph.PrintPorts()
+
+print " "
+print "Type : Add.PrintPorts()"
+Add.PrintPorts()
+
+print "Type : Sub.PrintPorts()"
+Sub.PrintPorts()
+
+print "Type : Mul.PrintPorts()"
+Mul.PrintPorts()
+
+print "Type : Div.PrintPorts()"
+print "       to see input and output values of nodes"
+Div.PrintPorts()
+
+# Export will create newsupervisionexample.xml and the corresponding .py file
+tmpdir=os.getenv("TmpDir")
+if tmpdir is None:
+       tmpdir="/tmp"
+file = tmpdir + "/newsupervisionexample"
+print "--------------\n"+file+"\n--------------\n"
+myGraph.Export(file)
+
+ior = salome.orb.object_to_string(myGraph.G)
+addStudy(ior)
+
+GraphName = myGraph.Name()
+print "Befor save ",
+#nodes = myGraph.Nodes()
+nodes = myGraph.G.Nodes().FNodes
+length_bs = len(nodes)
+print "ListOfNodes length = ", length_bs
+names=[]
+for node in nodes:
+       names.append(node.Name())
+print names
+
+print "Load FactorialComponent component, create dataflow using its services and run execution"
+myPy = Graph('myPy')
+
+eval = myPy.Node('FactorialComponent','FactorialComponent','eval')
+eval.SetContainer('FactoryServerPy')
+
+myPy.IsValid()
+
+myPy.PrintPorts()
+
+myPy.Run( 3 )
+
+myPy.DoneW()
+
+myPy.State()
+
+myPy.PrintPorts()
+
+
+sg.updateObjBrowser(1);
+
+print
+print "=============  Test  VISU  and MED ============================="
+print
+import sys
+import SALOMEDS
+import SALOME
+import SALOME_MED
+import VISU
+
+import visu_gui
+
+medFile = "pointe.med"
+medFile = os.getenv('SALOME_ROOT_DIR') + '/../SALOME_ROOT/data/' + medFile
+print "Load ", medFile
+
+studyCurrent = salome.myStudyName
+
+med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "Med")
+myVisu = salome.lcc.FindOrLoadComponent("FactoryServer", "Visu")
+
+try:
+    if os.access(medFile, os.R_OK) :
+       if os.access(medFile, os.W_OK) :
+           med_comp.readStructFileWithFieldType(medFile,studyCurrent)
+           med_obj = visu_gui.visu.getMedObjectFromStudy()
+           print "med_obj - ", med_obj
+
+           myField = visu_gui.visu.getFieldObjectFromStudy(2,1)
+           aMeshName = "FILED_DOUBLE_MESH"
+           anEntity = VISU.NODE
+           aTimeStampId = 0
+           
+           myResult1 = myVisu.ImportMedField(myField)
+           aMesh1 = myVisu.MeshOnEntity(myResult1, aMeshName, anEntity);
+           
+           aScalarMap1= myVisu.ScalarMapOnField(myResult1, aMeshName, anEntity, myField.getName(), aTimeStampId)
+           if(myField.getNumberOfComponents() > 1) :
+               aVectors = myVisu.VectorsOnField(myResult1, aMeshName, anEntity, myField.getName(), aTimeStampId)
+
+           myResult2 = myVisu.ImportFile(medFile)
+           aMeshName = "maa1"
+           anEntity = VISU.NODE
+           aMesh2 = myVisu.MeshOnEntity(myResult2, aMeshName, anEntity)
+
+           aScalarMap2 = myVisu.ScalarMapOnField(myResult2, aMeshName, anEntity, myField.getName(), aTimeStampId)
+           if(myField.getNumberOfComponents() > 1) :
+             aCutPlanes = myVisu.CutPlanesOnField(myResult2, aMeshName, anEntity, myField.getName(), aTimeStampId)
+
+           sg.updateObjBrowser(0)
+       else :  print "We have no permission to rewrite medFile, so readStructFileWithFieldType can't open this file";
+    else :  print  "We have no permission to read medFile, it will not be opened"; 
+
+except:
+    if sys.exc_type == SALOME.SALOME_Exception :
+        print "There is no permission to read " + medFile
+    else :
+        print sys.exc_type 
+        print sys.exc_value
+        print sys.exc_traceback
+
+sg.updateObjBrowser(1);
index b451bfcf737c47d3263b3892395569af3b993863..689567e2c2c73709e11b3b90527a18c54c6b6a71 100644 (file)
@@ -1,15 +1,12 @@
-#==============================================================================
-#  File      : test_big_table.py
-#  Created   : 20/01/03
-#  Author    : Vadim SANDLER
-#  Project   : SALOME
-#  Copyright : Open CASCADE
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : test_big_table.py
+#  Author : Vadim SANDLER
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# ============================================================================
-# Test large tables : ~200 curves ( 100 points in each )
-# ============================================================================
 import salome
 import math
 import SALOMEDS
index 410c9929df4da379422228eb97da8fa0bffa111e..e7023e470e17164998a0291cd8b93f085ef53d8b 100644 (file)
@@ -1,15 +1,12 @@
-#==============================================================================
-#  File      : visu_many_objects.py
-#  Created   : 28/02/03
-#  Author    : Vadim SANDLER
-#  Project   : SALOME
-#  Copyright : Open CASCADE
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : visu_many_objects.py
+#  Author : Vadim SANDLER
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# ============================================================================
-# Check performance for many objects creations
-# ============================================================================
 import salome
 import SALOMEDS
 
index d33636838d351afc35122233c854ec4b23a15b2a..c1d58d997f7c01c9048afa5534b78547d22fbe69 100644 (file)
@@ -1,15 +1,12 @@
-#==============================================================================
-#  File      : test_table.py
-#  Created   : 20/01/03
-#  Author    : Vadim SANDLER
-#  Project   : SALOME
-#  Copyright : Open CASCADE
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : test_table.py
+#  Author : Vadim SANDLER
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# ============================================================================
-# Check attributes creation : Integer, Real, Comment, Tables
-# ============================================================================
 import salome
 import math
 import SALOMEDS
index ae7fef1194624c250776c34c9a8151529f0dfb7d..ce3816891a8aab629371656aeda2b8ae9a1b37b5 100644 (file)
@@ -1,4 +1,27 @@
-# importing =====================================================
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : testattr.py
+#  Module : SALOME
+
 import SALOMEDS
 #import SALOMEDS_Attributes_idl
 import geompy
index 9678025067df98cb66bbdf2e95e624c04f92676b..52d9231a2a41300c553540cdc902726761ad8a01 100644 (file)
@@ -1,6 +1,31 @@
-# source path
+#  SALOME SUPERVGraph : build Supervisor viewer into desktop
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : SALOME
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 904aa3fcd443fc962d7b792441d3da50b33c0a67..140853bb9302c7901a5c924bc02b047119a45efb 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : SUPERVGraph.cxx
-//  Created   : Wed Mar 20 11:58:44 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SUPERVGraph
-//  Copyright : Open CASCADE 2002
+//  SALOME SUPERVGraph : build Supervisor viewer into desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SUPERVGraph.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "SUPERVGraph.h"
 #include "SUPERVGraph_ViewFrame.h"
 
index d785039d8225ea83ae756400614782dacdc61658..929fc291d8e6bbfd29c7df7846ab2cce3dea74ba 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SUPERVGraph.h
-//  Created   : Wed Mar 20 11:56:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SUPERVGraph
-//  Copyright : Open CASCADE 2002
+//  SALOME SUPERVGraph : build Supervisor viewer into desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SUPERVGraph.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef SUPERVGraph_HeaderFile
index 11f3929db840ade2d5c11f09349116a356fc4721..f312dbcde23f3ef5044d214f2e570e7a88356570 100644 (file)
@@ -1,11 +1,31 @@
-using namespace std;
-//  File      : SUPERVGraph_Graph.cxx
-//  Created   : 17 / 10 / 2001
-//  Author    : Francis KLOSS
-//  Project   : SALOME
-//  Module    : SUPERVGraph
-//  Copyright : Open CASCADE
+//  SALOME SUPERVGraph : build Supervisor viewer into desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SUPERVGraph_Graph.cxx
+//  Author : Francis KLOSS
+//  Module : SALOME
 
+using namespace std;
 #include "SUPERVGraph_Graph.h"
 
 #include "QAD_Settings.h"
index 510682b598af08b6af1a6628016d69f12419589f..ccea5c69ab0edf1cf46c4964458c4b1880049860 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : SUPERVGraph_Graph.h
-//  Created   : 17 / 10 / 2001
-//  Author    : Francis KLOSS
-//  Project   : SALOME
-//  Module    : SUPERVGraph
-//  Copyright : Open CASCADE
+//  SALOME SUPERVGraph : build Supervisor viewer into desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SUPERVGraph_Graph.h
+//  Author : Francis KLOSS
+//  Module : SALOME
 
 #ifndef SUPERVGraph_Graph_HXX
 #define SUPERVGraph_Graph_HXX
index 2d60c2f94eaa220d56e1f2b7ff6a975dea42b16a..2fa21f44754e60685880a87e2a3039f49708d805 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : SUPERVGraph_ViewFrame.cxx
-//  Created   : Wed Mar 20 14:03:31 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SUPERVGraph
-//  Copyright : Open CASCADE 2002
+//  SALOME SUPERVGraph : build Supervisor viewer into desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SUPERVGraph_ViewFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
+using namespace std;
 #include "SUPERVGraph_ViewFrame.h"
 
 #include "QAD_Settings.h"
index d574bc4f174d3fffc29ac1187040628d34861feb..49c297a7a907406a7ee70ff1743d9c6346027d3e 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : SUPERVGraph_ViewFrame.h
-//  Created   : Wed Mar 20 14:22:27 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SUPERVGraph
-//  Copyright : Open CASCADE 2002
+//  SALOME SUPERVGraph : build Supervisor viewer into desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SUPERVGraph_ViewFrame.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef SUPERVGraph_ViewFrame_H
 #define SUPERVGraph_ViewFrame_H
 
index 1f451a6387433f09ccc99d30c18f1b74fb890222..2448c8e778ba200a29f9ad1fecd9a43a9937a6c6 100644 (file)
@@ -1,15 +1,34 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:59:20 CEST 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  SALOME Session : implementation of Session.idl
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
 # source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -17,27 +36,22 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 @COMMENCE@
 
 EXPORT_HEADERS= SALOME_Session_i.hxx
-LIB_MOC = \
-                 InquireServersQThread.h 
 
 # Libraries targets
 LIB = libSalomeSession.la
 LIB_SRC=\
-       InquireServersQThread.cxx \
        SALOME_Session_QThread.cxx \
        SALOME_Session_i.cxx
 
 # Executables targets
-BIN = SALOME_Session_Server SALOME_Session_loader
+BIN = SALOME_Session_Server
 BIN_SRC = 
-#***#BIN_SERVER_IDL = SALOME_Session.idl VISU_Gen.idl MED.idl
 BIN_SERVER_IDL = SALOME_Session.idl
-#***#BIN_CLIENT_IDL = SALOMEDS.idl SALOMEDS_Attributes.idl SALOME_Component.idl SALOME_Registry.idl SALOME_ModuleCatalog.idl SALOME_Component.idl SALOME_Exception.idl VISU_Gen.idl
-BIN_CLIENT_IDL = SALOMEDS.idl SALOMEDS_Attributes.idl SALOME_Component.idl SALOME_Registry.idl SALOME_ModuleCatalog.idl SALOME_Component.idl SALOME_Exception.idl
+BIN_CLIENT_IDL = SALOMEDS.idl SALOMEDS_Attributes.idl SALOME_Component.idl SALOME_Registry.idl SALOME_ModuleCatalog.idl SALOME_Exception.idl
 
 CPPFLAGS+=$(QT_MT_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
-LDFLAGS+=$(QT_MT_LIBS) $(OCC_LIBS) $(VTK_LIBS) -lSalomeNS -lSalomeGUI -lSalomeObject -lSalomeLifeCycleCORBA -lqsplitterP -lOpUtil -lSalomeLoggerServer -lPlot2d
+LDFLAGS+=$(QT_MT_LIBS) $(CAS_KERNEL) $(CAS_OCAF) $(CAS_VIEWER) $(CAS_MODELER) -lSalomeNS -lSalomeGUI -lSalomeObject -lSalomeLifeCycleCORBA -lqsplitterP -lOpUtil -lSalomeLoggerServer -lPlot2d
 
 
 @CONCLUDE@
index 1c763623dfc0ff253aeda74ca2c278bb045d2bd0..8531be10fc1e303a8a0adeb9e5bdf8f293d46a42 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Session_QThread.cxx
-// Created   : mar jun 19 15:18:31 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Session : implementation of Session.idl
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Session_QThread.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include <qapplication.h>
 #include <qlabel.h>
 
index 6a5eeb9a67b7b277639828a9b3afd6e46f3a1828..9e9941bd7814552fbc47286b31d00b2b4e4bd7b7 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOME_Session_QThread.hxx
-// Created   : mar jun 19 14:38:31 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Session : implementation of Session.idl
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Session_QThread.hxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOME_SESSION_QTHREAD_HXX_
 #define _SALOME_SESSION_QTHREAD_HXX_
index 0296ca61540c772aabbe63a3de07a31d2d1c2d2a..5701871995cdd764c84a903f13ec2f3e4532901f 100644 (file)
@@ -1,22 +1,37 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Session_Server.cxx
-// Created   : mar jun 19 13:26:24 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
-
-/*! \file SALOME_Session_Server.cxx
- */
+//  SALOME Session : implementation of Session.idl
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Session_Server.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
-using namespace std;
 # include "Utils_ORB_INIT.hxx"
 # include "Utils_SINGLETON.hxx"
 
-#include <iostream.h>
+#include <iostream>
 #include <unistd.h>
+using namespace std;
 
 // #include <qapplication.h>
 // #include "Qtappl_example.hxx"
index 49acc589706f46a6aa5d4610f47c813fff984036..414c850e9364c4e1353d39405fb5449a5a90fa99 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Session_i.cxx
-// Created   : mar jun 19 14:02:45 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Session : implementation of Session.idl
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Session_i.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "utilities.h"
 
 #include "SALOME_Session_i.hxx"
@@ -41,15 +60,16 @@ SALOME_Session_i::SALOME_Session_i(int argc, char ** argv, CORBA::ORB_ptr orb, P
   MESSAGE("constructor end");
 }
   
-//***//VISU::VISU_Gen_ptr SALOME_Session_i::GetVisuGen(){
-//***//  typedef VISU::VISU_Gen_ptr VisuGen(CORBA::ORB_var,PortableServer::POA_var,QMutex*);
-//***//  MESSAGE("SALOME_Session_i::GetVisuGen");
-//***//  OSD_SharedLibrary  visuSharedLibrary("libVisuEngine.so");
-//***//  if(visuSharedLibrary.DlOpen(OSD_RTLD_LAZY))
-//***//    if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen"))
-//***//      return ((VisuGen (*)) osdFun)(_orb,_poa,&_GUIMutex);
-//***//  return VISU::VISU_Gen::_nil();
-//***//} 
+Engines::Component_ptr SALOME_Session_i::GetVisuGen(){
+  typedef Engines::Component_ptr VisuGen(CORBA::ORB_ptr, PortableServer::POA_ptr,
+                                        SALOME_NamingService*, QMutex*);
+  MESSAGE("SALOME_Session_i::GetVisuGen");
+  OSD_SharedLibrary  visuSharedLibrary("libVisuEngine.so");
+  if(visuSharedLibrary.DlOpen(OSD_RTLD_LAZY))
+    if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen"))
+      return ((VisuGen (*)) osdFun)(_orb,_poa,_NS,&_GUIMutex);
+  return Engines::Component::_nil();
+}
 
 //=============================================================================
 /*! ~SALOME_Session_i
index 15ae3696c41dcad39700b609daf62c80bffb5c96..9ae94852728cda78388525d33253e3decb4812a7 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : SALOME_Session_i.hxx
-// Created   : mar jun 19 13:42:55 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Session : implementation of Session.idl
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Session_i.hxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOME_SESSION_I_HXX_
 #define _SALOME_SESSION_I_HXX_
 #include <qthread.h> 
 
 #include <SALOMEconfig.h>
-//***//#include CORBA_SERVER_HEADER(VISU_Gen)
 #include CORBA_SERVER_HEADER(SALOME_Session)
 class SALOME_NamingService;
 class SALOME_Session_QThread;
 
-//! CORBA SALOME Session Servant
-
-class SALOME_Session_i:  public POA_SALOME::Session,
-                        public PortableServer::RefCountServantBase
+class SALOME_Session_i:  public virtual POA_SALOME::Session,
+                        public virtual PortableServer::RefCountServantBase
 {
 public:
   SALOME_Session_i(int argc, char ** argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa) ;
@@ -29,7 +45,7 @@ public:
 
   //! Launch Graphical User Interface
   void GetInterface();
-  //***//VISU::VISU_Gen_ptr GetVisuGen();
+  Engines::Component_ptr GetVisuGen();
 
   //! Stop the Session (must be idle): kill servant & server
   void StopSession();
diff --git a/src/TOOLSDS/Makefile.in b/src/TOOLSDS/Makefile.in
new file mode 100644 (file)
index 0000000..e4e5fc0
--- /dev/null
@@ -0,0 +1,38 @@
+#==============================================================================
+#  File      : Makefile.in
+#  Author    : Marc Tajchman
+#==============================================================================
+
+# source path
+top_srcdir=@top_srcdir@
+top_builddir=../../..
+srcdir=@srcdir@
+VPATH=.:@srcdir@:@top_srcdir@/idl:$(top_srcdir)/idl
+
+
+@COMMENCE@
+
+EXPORT_HEADERS = SALOMEDS_Tool.hxx 
+
+# Libraries targets
+
+LIB = libTOOLSDS.la
+LIB_SRC =      \
+                 SALOMEDS_Tool.cxx \
+
+# Executables targets
+BIN = 
+BIN_SRC = 
+LIB_SERVER_IDL = SALOMEDS.idl SALOMEDS_Attributes.idl SALOME_Exception.idl
+BIN_SERVER_IDL = SALOMEDS.idl SALOMEDS_Attributes.idl
+BIN_CLIENT_IDL = 
+
+CPPFLAGS+=$(OCC_INCLUDES) $(HDF5_INCLUDES)
+CXXFLAGS+=$(OCC_CXXFLAGS)
+LDFLAGS+=$(CAS_KERNEL) -lOpUtil -lSalomeLoggerServer
+# -L/opt/ccmalloc/lib -lccmalloc -ldl
+# -L/opt/efence/lib -lefence
+
+@CONCLUDE@
+
+
diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx
new file mode 100644 (file)
index 0000000..210c427
--- /dev/null
@@ -0,0 +1,304 @@
+using namespace std;
+//  File      : SALOMEDS_Tool.cxx
+//  Created   : Mon Oct 21 16:24:34 2002
+//  Author    : Sergey RUIN
+
+//  Project   : SALOME
+//  Module    : SALOMEDS
+//  Copyright : Open CASCADE
+
+#include "SALOMEDS_Tool.hxx"
+
+#include "utilities.h"
+
+#include <TCollection_AsciiString.hxx> 
+#include <stdio.h>
+#include <iostream.h> 
+#include <fstream.h>
+#include <OSD_Path.hxx>
+#include <OSD_File.hxx>
+#include <OSD_Directory.hxx>
+#include <OSD_Process.hxx>
+#include <OSD_Directory.hxx>
+#include <OSD_Protection.hxx>
+#include <OSD_SingleProtection.hxx>
+#include <OSD_FileIterator.hxx>
+
+#include <sys/time.h>
+#include <stdlib.h>
+
+//============================================================================
+// function : GetTempDir
+// purpose  : Return a temp directory to store created files like "/tmp/sub_dir/" 
+//============================================================================ 
+char* SALOMEDS_Tool::GetTmpDir()
+{
+  //Find a temporary directory to store a file
+
+  TCollection_AsciiString aTmpDir;
+
+  char *Tmp_dir = getenv("SALOME_TMP_DIR");
+  if(Tmp_dir != NULL) {
+    aTmpDir = TCollection_AsciiString(Tmp_dir);
+#ifdef WIN32
+    if(aTmpDir.Value(aTmpDir.Length()) != '\\') aTmpDir+='\\';
+#else
+    if(aTmpDir.Value(aTmpDir.Length()) != '/') aTmpDir+='/';
+#endif      
+  }
+  else {
+#ifdef WIN32
+    aTmpDir = TCollection_AsciiString("C:\\");
+#else
+    aTmpDir = TCollection_AsciiString("/tmp/");
+#endif
+  }
+
+  srand((unsigned int)time(NULL));
+  int aRND = 999 + (int)(100000.0*rand()/(RAND_MAX+1.0)); //Get a random number to present a name of a sub directory
+  TCollection_AsciiString aSubDir(aRND);
+  if(aSubDir.Length() <= 1) aSubDir = TCollection_AsciiString("123409876");
+
+  MESSAGE("#### RND "  << aRND);
+
+  aTmpDir += aSubDir; //Get RND sub directory
+
+#ifdef WIN32
+  if(aTmpDir.Value(aTmpDir.Length()) != '\\') aTmpDir+='\\';
+#else
+  if(aTmpDir.Value(aTmpDir.Length()) != '/') aTmpDir+='/';
+#endif
+
+  OSD_Path aPath(aTmpDir);
+  OSD_Directory aDir(aPath);
+
+  for(aRND = 0; aDir.Exists(); aRND++) {
+    aTmpDir.Insert((aTmpDir.Length() - 1), TCollection_AsciiString(aRND));  //Build a unique directory name
+    aPath = OSD_Path(aTmpDir);
+    aDir = OSD_Directory(aPath);
+  }
+
+  MESSAGE("#### TMP" << aTmpDir.ToCString());
+
+  OSD_Protection aProtection(OSD_RW, OSD_RWX, OSD_RX, OSD_RX);
+  aDir.Build(aProtection);
+
+  return CORBA::string_dup(aTmpDir.ToCString());
+}
+
+//============================================================================
+// function : RemoveTemporaryFiles
+// purpose  : Removes files listed in theFileList
+//============================================================================
+void SALOMEDS_Tool::RemoveTemporaryFiles(const char* theDirectory, 
+                                        const SALOMEDS::ListOfFileNames& theFiles,
+                                        const bool IsDirDeleted)
+{
+  TCollection_AsciiString aDirName(const_cast<char*>(theDirectory));
+
+  int i, aLength = theFiles.length();
+  for(i=0; i<aLength; i++) {
+    TCollection_AsciiString aFile(aDirName);
+//     aFile += (char*)theFiles[i];
+    aFile += (char*)theFiles[i].in();
+    OSD_Path anOSDPath(aFile);
+    OSD_File anOSDFile(anOSDPath);
+    if(!anOSDFile.Exists()) continue;
+
+    anOSDFile.Remove();
+  }
+
+  if(IsDirDeleted) {
+    OSD_Path aPath(aDirName);
+    OSD_Directory aDir(aPath);
+    OSD_FileIterator anIterator(aPath, '*');
+
+    if(aDir.Exists() && !anIterator.More()) aDir.Remove();
+  }
+
+}
+
+//============================================================================
+// function : PutFilesToStream
+// purpose  : converts the files from a list 'theFiles' to the stream
+//============================================================================
+SALOMEDS::TMPFile* 
+SALOMEDS_Tool::PutFilesToStream(const char* theFromDirectory,
+                               const SALOMEDS::ListOfFileNames& theFiles,
+                               const int theNamesOnly)
+{
+  int i, aLength = theFiles.length();
+  if(aLength == 0) return NULL;
+
+  TCollection_AsciiString aTmpDir(const_cast<char*>(theFromDirectory)); //Get a temporary directory for saved a file
+
+  long aBufferSize = 0;
+  long aCurrentPos;
+
+  int aNbFiles = 0;
+  int* aFileNameSize= new int[aLength];
+  long* aFileSize= new long[aLength];
+
+  //Determine the required size of the buffer
+
+  for(i=0; i<aLength; i++) {
+
+    //Check if the file exists
+    
+    if (!theNamesOnly) { // mpv 15.01.2003: if only file names must be stroed, then size of files is zero
+      TCollection_AsciiString aFullPath = aTmpDir + strdup(theFiles[i]);   
+      OSD_Path anOSDPath(aFullPath);
+      OSD_File anOSDFile(anOSDPath);
+      if(!anOSDFile.Exists()) continue;
+#ifdef WNT
+      ifstream aFile(aFullPath.ToCString(), ios::binary);
+#else
+      ifstream aFile(aFullPath.ToCString());
+#endif
+      aFile.seekg(0, ios::end);
+      aFileSize[i] = aFile.tellg();
+      aBufferSize += aFileSize[i];              //Add a space to store the file
+    }
+    aFileNameSize[i] = strlen(theFiles[i])+1;
+    aBufferSize += aFileNameSize[i];          //Add a space to store the file name
+    aBufferSize += (theNamesOnly)?4:12;       //Add 4 bytes: a length of the file name,
+                                              //    8 bytes: length of the file itself
+    aNbFiles++;
+  } 
+
+  aBufferSize += 4;      //4 bytes for a number of the files that will be written to the stream;
+  unsigned char* aBuffer = new unsigned char[aBufferSize];  
+  if(aBuffer == NULL) return NULL; 
+
+  //Initialize 4 bytes of the buffer by 0
+  memset(aBuffer, 0, 4); 
+  //Copy the number of files that will be written to the stream
+  memcpy(aBuffer, &aNbFiles, ((sizeof(int) > 4) ? 4 : sizeof(int))); 
+
+
+  aCurrentPos = 4;
+
+  for(i=0; i<aLength; i++) {
+    ifstream *aFile;
+    if (!theNamesOnly) { // mpv 15.01.2003: we don't open any file if theNamesOnly = true
+      TCollection_AsciiString aFullPath = aTmpDir + strdup(theFiles[i]);
+      OSD_Path anOSDPath(aFullPath);
+      OSD_File anOSDFile(anOSDPath);
+      if(!anOSDFile.Exists()) continue;
+#ifdef WNT
+      aFile = new ifstream(aFullPath.ToCString(), ios::binary);
+#else
+      aFile = new ifstream(aFullPath.ToCString());
+#endif  
+    }
+    //Initialize 4 bytes of the buffer by 0
+    memset((aBuffer + aCurrentPos), 0, 4); 
+    //Copy the length of the file name to the buffer
+    memcpy((aBuffer + aCurrentPos), (aFileNameSize + i), ((sizeof(int) > 4) ? 4 : sizeof(int))); 
+    aCurrentPos += 4;
+
+    //Copy the file name to the buffer
+    memcpy((aBuffer + aCurrentPos), theFiles[i], aFileNameSize[i]);
+    aCurrentPos += aFileNameSize[i];
+    
+    if (!theNamesOnly) { // mpv 15.01.2003: we don't copy file content to the buffer if !theNamesOnly
+      //Initialize 8 bytes of the buffer by 0
+      memset((aBuffer + aCurrentPos), 0, 8); 
+      //Copy the length of the file to the buffer
+      memcpy((aBuffer + aCurrentPos), (aFileSize + i), ((sizeof(long) > 8) ? 8 : sizeof(long)));
+      aCurrentPos += 8;
+      
+      aFile->seekg(0, ios::beg);
+      aFile->read((char *)(aBuffer + aCurrentPos), aFileSize[i]);
+      aFile->close();
+      delete(aFile);
+      aCurrentPos += aFileSize[i];
+    }
+  }
+
+  delete[] aFileNameSize;
+  delete[] aFileSize;
+  
+  
+  CORBA::Octet* anOctetBuf =  (CORBA::Octet*)aBuffer;
+  
+  return (new SALOMEDS::TMPFile(aBufferSize, aBufferSize, anOctetBuf, 1));
+}
+
+//============================================================================
+// function : PutStreamToFile
+// purpose  : converts the stream "theStream" to the files
+//============================================================================
+SALOMEDS::ListOfFileNames* 
+SALOMEDS_Tool::PutStreamToFiles(const SALOMEDS::TMPFile& theStream,
+                               const char* theToDirectory,
+                               const int theNamesOnly)
+{
+  if(theStream.length() == 0) return NULL;
+  TCollection_AsciiString aTmpDir(const_cast<char*>(theToDirectory)); //Get a temporary directory for saving a file
+
+  unsigned char *aBuffer = (unsigned char*)theStream.NP_data();
+
+  if(aBuffer == NULL) return NULL;
+
+  long aBufferSize = theStream.length();
+  long aFileSize, aCurrentPos = 4;
+  int i, aFileNameSize, aNbFiles = 0;
+
+  //Copy the number of files in the stream
+  memcpy(&aNbFiles, aBuffer, sizeof(int)); 
+
+  SALOMEDS::ListOfFileNames_var aFiles = new SALOMEDS::ListOfFileNames;
+  aFiles->length(aNbFiles);
+
+  for(i=0; i<aNbFiles; i++) {
+
+    //Put a length of the file name to aFileNameSize
+    memcpy(&aFileNameSize, (aBuffer + aCurrentPos), ((sizeof(int) > 4) ? 4 : sizeof(int))); 
+    aCurrentPos += 4;
+
+    char *aFileName = new char[aFileNameSize];
+    //Put a file name to aFileName
+    memcpy(aFileName, (aBuffer + aCurrentPos), aFileNameSize); 
+    aCurrentPos += aFileNameSize;
+    //Put a length of the file to aFileSize
+    if (!theNamesOnly) {
+      memcpy(&aFileSize, (aBuffer + aCurrentPos), ((sizeof(long) > 8) ? 8 : sizeof(long)));
+      aCurrentPos += 8;    
+      
+      TCollection_AsciiString aFullPath = aTmpDir + aFileName;
+      ofstream aFile(aFullPath.ToCString());
+      aFile.write((char *)(aBuffer+aCurrentPos), aFileSize); 
+      aFile.close();  
+      aCurrentPos += aFileSize;
+    }
+    aFiles[i] = CORBA::string_dup(aFileName);
+    delete[] aFileName;
+  }
+
+  return aFiles._retn();
+}
+
+//============================================================================
+// function : GetNameFromPath
+// purpose  : Returns the name by the path
+//============================================================================
+char* SALOMEDS_Tool::GetNameFromPath(const char* thePath) {
+  if (thePath == NULL) return strdup("");
+  OSD_Path aPath = OSD_Path(TCollection_AsciiString(strdup(thePath)));
+  TCollection_AsciiString aNameString(aPath.Name());
+  return CORBA::string_dup(aNameString.ToCString());
+}
+
+//============================================================================
+// function : GetDirFromPath
+// purpose  : Returns the dir by the path
+//============================================================================
+char* SALOMEDS_Tool::GetDirFromPath(const char* thePath) {
+  if (thePath == NULL) return strdup("");
+  OSD_Path aPath = OSD_Path(TCollection_AsciiString(strdup(thePath)));
+  TCollection_AsciiString aDirString(aPath.Trek());
+  aDirString.ChangeAll('|','/');
+  return CORBA::string_dup(aDirString.ToCString());
+}
diff --git a/src/TOOLSDS/SALOMEDS_Tool.hxx b/src/TOOLSDS/SALOMEDS_Tool.hxx
new file mode 100644 (file)
index 0000000..c5f8e22
--- /dev/null
@@ -0,0 +1,52 @@
+//  File      : SALOMEDS_Tool.hxx
+//  Created   : Mon Oct 21 16:24:50 2002
+//  Author    : Sergey RUIN
+
+//  Project   : SALOME
+//  Module    : SALOMEDS
+//  Copyright : Open CASCADE
+
+
+#ifndef __SALOMEDS_Tool_H__
+#define __SALOMEDS_Tool_H__
+
+
+
+// IDL headers
+#include <SALOMEDS.hh> 
+
+class SALOMEDS_Tool                                
+{
+public:
+  // Returns the unique temporary directory, that is defined in SALOME_TMP_DIR if this variable is set
+  // otherwise return /tmp/something/ for Unix or c:\something\ for WNT
+  static char* GetTmpDir();
+
+  // Removes files which are in <theDirectory>, the files for deletion are listed in <theFiles>
+  // if <IsDirDeleted> is true <theDirectory> is also deleted if it is empty
+  static void RemoveTemporaryFiles(const char* theDirectory,
+                                  const SALOMEDS::ListOfFileNames& theFiles,
+                                  const bool IsDirDeleted);
+
+  // Converts files listed in <theFiles> which are in <theFromDirectory> into a byte sequence TMPFile
+  static SALOMEDS::TMPFile* PutFilesToStream(const char* theFromDirectory, 
+                                            const SALOMEDS::ListOfFileNames& theFiles,
+                                            const int theNamesOnly = 0);
+
+  // Converts a byte sequence <theStream> to files and places them in <theToDirectory>
+  static SALOMEDS::ListOfFileNames* PutStreamToFiles(const SALOMEDS::TMPFile& theStream,
+                                                     const char* theToDirectory,
+                                                    const int theNamesOnly = 0);
+
+  // Returns the name by the path
+  // for an example: if thePath = "/tmp/aaa/doc1.hdf" the function returns "doc1"
+  static char* GetNameFromPath(const char* thePath);
+
+  // Returns the directory by the path
+  // for an example: if thePath = "/tmp/aaa/doc1.hdf" the function returns "/tmp/aaa"
+  static char* GetDirFromPath(const char* thePath);
+
+};
+#endif
index 3d96cb3900f9ec849115b51a09f329e2453dcae5..9a7e68bebe05585f7e10bb7f0c4c8f3b4daa163f 100644 (file)
@@ -1,13 +1,33 @@
-# -* Makefile *- 
+#  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
 #
-# Author : Marc Tajchman (CEA)
-# Date : 5/07/2001
-# $Header$
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 #
+#
+#
+#  File   : Makefile.in
+#  Author : Marc Tajchman (CEA)
+#  Module : SALOME
+#  $Header$
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index d96bca7baeec3fa71348a9ef8f0b745b4183d178..4b2f470890a966e09e208406670ed9221d515a00 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : ToolsGUI.cxx
-//  Created   : Wed Nov 14 21:59:24 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : TOOLSGUI
-//  Copyright : Open CASCADE
+//  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : ToolsGUI.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "ToolsGUI.h"
 #include "ToolsGUI_CatalogGeneratorDlg.h"
 
index 7837e28373ed4a60e01a4f28cfbd91c96d450d6e..93f697881a59609b4da8d181d1b968d7a446908d 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : ToolsGUI.h
-//  Created   : Wed Nov 14 22:00:04 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : TOOLSGUI
-//  Copyright : Open CASCADE
+//  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : ToolsGUI.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef ToolsGUI_HeaderFile
index 30cb959eeb5c85b825793c8f3ab489271cd6aeb0..ddaa15f726f68ded30ac44998ea387afccc11629 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : ToolsGUI_CatalogGeneratorDlg.cxx
-//  Created   : Thu Apr 25 18:52:40 2002
-//  Author    : Nicolas REJNERI
-
-//  Project   : SALOME
-//  Module    : TOOLSGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : ToolsGUI_CatalogGeneratorDlg.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "ToolsGUI_CatalogGeneratorDlg.h"
 
 #include "QAD_Application.h"
index 608b9aa4d7564ada83985c97b0667daa84d56660..d0e593458e2c1fbf06db0a9ce0264e4f2db443bc 100644 (file)
@@ -1,13 +1,31 @@
-//  File      : ToolsGUI_CatalogGeneratorDlg.h
-//  Created   : Thu Apr 25 18:52:53 2002
-//  Author    : Nicolas REJNERI
-
-//  Project   : SALOME
-//  Module    : TOOLSGUI
-//  Copyright : Open CASCADE 2002
+//  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : ToolsGUI_CatalogGeneratorDlg.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef DIALOGBOX_TOOLSGUI_CATALOGGENERATORDLG_H
 #define DIALOGBOX_TOOLSGUI_CATALOGGENERATORDLG_H
 
index aece94c19f0965641bd4e5f5e0a07ad22cb982b5..9f0314326e5c232ca16719938816b96d73da5386 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : ToolsGUI_icons.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: SALOME VERSION 0.4\n"
index 6e5e0c1c9841acdb141957c76ed041025c21afb3..7859d5e12689a1e5ce52afca95f94429b2929321 100644 (file)
@@ -1,6 +1,29 @@
-# This is a Qt message file in .po format.  Each msgid starts with
-# a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
+#  SALOME TOOLSGUI : implementation of desktop "Tools" optioins
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : ToolsGUI_msg_en.po
+#  Module : SALOME
+
 msgid ""
 msgstr ""
 "Project-Id-Version: SALOME VERSION 0.4\n"
index 13c0c401da51e1ce2571c79b643323760ae74470..c6ec6b8c0a878f73f0913e2fa08aab945f38192c 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:58:13 CEST 2001
-#  Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-#  Project   : SALOME
-#  Copyright : EDF 2001 - CEA 2001
+#  SALOME TestContainer : test of container creation and its life cycle
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -24,10 +42,10 @@ LIB_SRC = SALOME_TestComponent_i.cxx
 LIB_CLIENT_IDL = SALOME_Component.idl SALOME_TestComponent.idl
 
 # Executables targets
-BIN = TestContainer
+BIN = TestContainer TestLogger
 BIN_SRC = 
 
 LDFLAGS+= -lSalomeNotification -lSalomeNS -lSalomeContainer -lRegistry -lOpUtil -lSalomeLoggerServer
-CPPFLAGS+= -I../Logger
+
 
 @CONCLUDE@
index 5dcf1673b97f42c2b2a56ea018cdcdbc47820323..eb9867ab357fb35cf54ac09fe457c76ea0571abd 100755 (executable)
@@ -1,13 +1,32 @@
 #! /usr/bin/env python
-
-#=============================================================================
-# File      : SALOME_TestComponentPy.py
-# Created   : lun sep  3 17:54:13 CEST 2001
-# Author    : Paul RASCLE, EDF
-# Project   : SALOME
-# Copyright : EDF 2001
-# $Header$
-#=============================================================================
+#
+#  SALOME TestContainer : test of container creation and its life cycle
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : SALOME_TestComponentPy.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
+#  $Header$
 
 import sys
 from omniORB import CORBA, PortableServer
index 0e981c5dcbd232f4802ac62c3f076f1ee1d4c13a..85f49d22bf56e789c81708eb6ea9df380d48c746 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_TestComponent_i.cxx
-// Created   : jeu jui 12 12:28:26 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME TestContainer : test of container creation and its life cycle
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_TestComponent_i.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "utilities.h"
 #include "SALOME_TestComponent_i.hxx"
 #include <stdio.h>
index 848e7439458b36329706d60f062f46572e9b70b0..b5bddc3dfd24dcd8ac6c4bcc3ae217c2e0e7882a 100644 (file)
@@ -1,16 +1,35 @@
-//=============================================================================
-// File      : SALOME_TestComponent_i.hxx
-// Created   : jeu jui 12 12:28:30 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME TestContainer : test of container creation and its life cycle
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_TestComponent_i.hxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
 #ifndef _SALOME_TESTCOMPONENT_I_HXX_
 #define _SALOME_TESTCOMPONENT_I_HXX_
 
-#include <iostream.h>
+#include <iostream>
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_TestComponent)
 #include "SALOME_Component_i.hxx"
index a2547ffa5c38b985100302e315f90b596b4fe971..2dacf6dbbd5e886165a12cbda5abebbef970e5d8 100755 (executable)
@@ -1,13 +1,32 @@
 #! /usr/bin/env python
-
-#=============================================================================
-# File      : TestComponentPy.py
-# Created   : lun sep  3 17:54:13 CEST 2001
-# Author    : Paul RASCLE, EDF
-# Project   : SALOME
-# Copyright : EDF 2001
-# $Header$
-#=============================================================================
+#
+#  SALOME TestContainer : test of container creation and its life cycle
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : TestComponentPy.py
+#  Author : Paul RASCLE, EDF
+#  Module : SALOME
+#  $Header$
 
 import os
 import sys
index 6e2723c1f6619c0e561c7d6c21e2e84c27974a3e..8e7ffe1bc930e52158c2c39a87c4c7f857e9de38 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : TestContainer.cxx
-// Created   : jeu jui 12 13:11:27 CEST 2001
-// Author    : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME TestContainer : test of container creation and its life cycle
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : TestContainer.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 #include "utilities.h"
 #include <iostream>
 #include <unistd.h>
@@ -39,7 +58,7 @@ int main (int argc, char * argv[])
       SALOME_NamingService _NS(orb) ;
       string containerName = "/Containers/" ;
       string hostName = GetHostname();
-      containerName += hostName;
+      containerName += hostName + "/FactoryServer";
 
       obj = _NS.Resolve(containerName.c_str()) ;
       Engines::Container_var iGenFact = Engines::Container::_narrow(obj);
@@ -48,14 +67,14 @@ int main (int argc, char * argv[])
     
       for (int iter = 0; iter < 3 ; iter++)
        {
-         MESSAGE("----------------------------------------------------" << iter);   
-    
-         obj = iGenFact->load_impl("SalomeTestComponent",
-                                   "../lib/libSalomeTestComponentEngine.so");
+         INFOS("----------------------------------------------------" << iter);   
+          string dirn = getenv("SALOME_ROOT_DIR");
+          dirn += "/lib/libSalomeTestComponentEngine.so";
+          obj = iGenFact->load_impl("SalomeTestComponent",dirn.c_str());
          m1 = Engines::TestComponent::_narrow(obj);
-         MESSAGE("recup m1");
+         INFOS("recup m1");
          SCRUTE(m1->instanceName());
-         MESSAGE("Coucou " << m1->Coucou(1L));
+         INFOS("Coucou " << m1->Coucou(1L));
          iGenFact->remove_impl(m1) ;
          //iGenFact->finalize_removal() ; // unpredictable results ...
           sleep(5);
diff --git a/src/TestContainer/TestLogger.cxx b/src/TestContainer/TestLogger.cxx
new file mode 100644 (file)
index 0000000..a844dc7
--- /dev/null
@@ -0,0 +1,42 @@
+//  SALOME TestContainer : test of container creation and its life cycle
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : TestContainer.cxx
+//  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
+//  Module : SALOME
+//  $Header$
+
+using namespace std;
+#include "utilities.h"
+#include <iostream>
+#include <unistd.h>
+#include <SALOMEconfig.h>
+#include "SALOME_NamingService.hxx"
+#include "OpUtil.hxx"
+
+int main (int argc, char * argv[])
+{
+  INFOS("It's OK");
+  return 0;
+}
+
index e0769df77f81b1e5b44a47585172be2e85a8cfb5..0ccfe041ffd03286f3d94677478b5caf083ca68c 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:12:54 CEST 2001
-#  Author    : Marc Tajchman (CEA)
-#  Project   : SALOME
-#  Copyright : CEA 2001
+#  SALOME Utils : general SALOME's definitions and tools
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Marc Tajchman (CEA)
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
@@ -20,6 +38,7 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 EXPORT_HEADERS= \
        utilities.h \
        OpUtil.hxx \
+       Utils_Timer.hxx \
        Utils_CorbaException.hxx \
        Utils_CommException.hxx \
        Utils_SALOME_Exception.hxx \
@@ -31,10 +50,8 @@ EXPORT_HEADERS= \
 EXPORT_PYSCRIPTS = Utils_Identity.py SALOME_utilities.py
 # Libraries targets
 
-BIN_CLIENT_IDL = 
-
 LIB = libOpUtil.la 
-LIB_SRC = OpUtil.cxx duplicate.cxx \
+LIB_SRC = OpUtil.cxx Utils_Timer.cxx duplicate.cxx \
        Utils_CommException.cxx \
        Utils_SALOME_Exception.cxx \
        Utils_Identity.cxx Utils_ORB_INIT.cxx \
index 72c53a60cfdefac9a2e6fd67b10f67501526388f..00ed5a66da050e9e762631262bc50db09706acbf 100644 (file)
@@ -1,9 +1,35 @@
-using namespace std;
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OpUtil.cxx
+//  Module : SALOME
+
 #include "utilities.h" 
 #include "OpUtil.hxx"
 #include <unistd.h>
 #include <errno.h>
 #include <string.h>
+using namespace std;
 
 int gethostname(char *name, size_t len);
 
index 306d7fd91b1569cb875a558d93ad8b5ebc57feba..086aa00405144aa49fe1b9a327f2de22fe065481 100644 (file)
@@ -1,9 +1,35 @@
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : OpUtil.hxx
+//  Module : SALOME
+
 #ifndef _OPUTIL_HXX
 #define _OPUTIL_HXX
 
 #include <string>
 
-string GetHostname();
+std::string GetHostname();
 const char *duplicate(const char * const);
 
 #endif
index 0911df2d8a845d4d12952ae119e1ce399aa39704..b86dbd587cb8fcf3150305eb88125645580bc8f6 100644 (file)
@@ -1,3 +1,12 @@
+#  SALOME Utils : general SALOME's definitions and tools
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : SALOME_utilities.py
+#  Module : SALOME
+
 import SALOME_Trace
 GLogger = SALOME_Trace.SALOME_Trace()
 
index 6a9c18f6d2bc45a0dfc04532d5872caf6b8f390b..2f724aeb8b2cff95a7104256bedf26fe31a87b5b 100644 (file)
@@ -1,3 +1,29 @@
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SalomeString.hxx
+//  Module : SALOME
+
 # ifndef SALOME_STRING
 # define SALOME_STRING
 
index 2e81c9da1ca097ed86f16b2efeb4568850c4aa8e..d4e953d863a94632d0bfe03015068f4845ac4e2d 100644 (file)
@@ -1,12 +1,30 @@
-using namespace std;
-//=============================================================================
-// File      : Utils_CommException.cxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_CommException.cxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 using namespace std;
 # include "Utils_CommException.hxx"
index 7d75040b9d8f89ff14d196960b452e73d6872cca..c559355d4580f3bd24c9add25d3d52465ffb3f9f 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : Utils_CommException.hxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_CommException.hxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 # if  !defined ( __Utils_CommException_H__ )
 # define __Utils_CommException_H__ )
index dff27eb08b2a32be236f36769008a512631667d6..8bffa2d18f4fdbbf3914c68530d8b68757d53476 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : Utils_CorbaException.hxx
-// Created   : mer déc 19 14:12:19 CET 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_CorbaException.hxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 #ifndef _UTILS_CORBAEXCEPTION_HXX_
 #define _UTILS_CORBAEXCEPTION_HXX_
index 0e102b10cdabfbc724656a6db402e0a251c1ea8a..07b70adfe0a4cf2c4209e3a135041895c5099fbf 100644 (file)
@@ -1,15 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : Utils_DESTRUCTEUR_GENERIQUE.cxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_DESTRUCTEUR_GENERIQUE.cxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 using namespace std;
-
 void Nettoyage( void ) ;
 
 # include <iostream>
index 73d27ddd88ca1b3719429337ba86bb99179be540..5962e8e994729705dae67713fca8fea7747a07be 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : Utils_DESTRUCTEUR_GENERIQUE.hxx
-// Created   : Mon Nov  5 17:01:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_DESTRUCTEUR_GENERIQUE.hxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 # if !defined( __DESTRUCTEUR_GENERIQUE__H__ )
 # define __DESTRUCTEUR_GENERIQUE__H__
index 7d80073cd2bd6bd8ece452b9cac3acb8a371a1d6..f30cdb03d2dfd1098e3076c823cea605c8e174fb 100644 (file)
@@ -1,20 +1,39 @@
-using namespace std;
-//=============================================================================
-// File      : Utils_Identity.cxx
-// Created   : Mon Nov  5 17:02:37 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
-
-# include <iostream.h>
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_Identity.cxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
+
+# include <iostream>
 # include <arpa/inet.h>
 # include <netinet/in.h>
 # include <sys/types.h>
 # include <netdb.h>
 # include "utilities.h"
 # include "Utils_Identity.hxx"
+using namespace std;
 extern "C"
 {
 # include <string.h>
index 69a77ecef579773511ba679aec246cf56b118a45..78d4ab8e2f35511aadfadc677111d3f19d023efb 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : Utils_Identity.hxx
-// Created   : Mon Nov  5 17:02:37 CET 2001
-// Author    : Pascale NOYRET, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_Identity.hxx
+//  Author : Pascale NOYRET, EDF
+//  Module : SALOME
+//  $Header$
 
 # if !defined(  __IDENTITE_H__ )
 # define __IDENTITE_H__
@@ -41,7 +60,7 @@ private :
 public :
        Identity(const char *name);
        ~Identity();
-       friend ostream & operator<< ( ostream& os , const Identity& monid );
+       friend std::ostream & operator<< ( std::ostream& os , const Identity& monid );
 
        const char* const       name( void ) const;
        const pid_t&            pid(void) const;
index cc194d09a9c53f33bb30d9ea03fbd9e92b3b296a..42dac4f3a7ea14b7848f4e26b159492f62e3048b 100644 (file)
@@ -1,13 +1,32 @@
 #! /usr/bin/env python
-
-#==============================================================================
-#  File      : Utils_Identity.py
-#  Created   : thur 02 May 2002
-#  Author    : Estelle Deville, CEA
-#  Project   : SALOME
-#  Copyright : CEA 2002
+#
+#  SALOME Utils : general SALOME's definitions and tools
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Utils_Identity.py
+#  Author : Estelle Deville, CEA
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
 import sys
 import os
index b1561e912d1d272458540f460cf35913a33f5a96..0da127b344b0d6dc5b776e0feff7cc261f1d4a8f 100644 (file)
@@ -1,12 +1,30 @@
-using namespace std;
-//=============================================================================
-// File      : Utils_ORB_INIT.cxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_ORB_INIT.cxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 using namespace std;
 # include "Utils_ORB_INIT.hxx" 
@@ -35,10 +53,12 @@ CORBA::ORB_var &ORB_INIT::operator() ( int argc , char **argv ) throw( CommExcep
        {
                try
                {
-                       _orb = CORBA::ORB_init( argc , argv ) ;
-                       //set GIOP message size equal to 50Mb for transferring brep shapes as 
-                       //sequence of bytes using C++ streams
-                       omniORB::MaxMessageSize(100*1024*1024);
+                 //              const char* options[][2] = { { "giopMaxMsgSize", "104857600" }, { 0, 0 } };
+                 //              _orb = CORBA::ORB_init( argc , argv , "omniORB4", options) ;
+                 _orb = CORBA::ORB_init( argc , argv ) ;
+                 //set GIOP message size equal to 50Mb for transferring brep shapes as 
+                 //sequence of bytes using C++ streams
+                 omniORB::MaxMessageSize(100*1024*1024);
                }
                catch( const CORBA::Exception &ex )
                {
index 1354f780972624704bfd3fab61ef48811247f431..2bcccf0a77399dd55e2ea3bae00a408d1a91c193 100644 (file)
@@ -1,12 +1,30 @@
-//=============================================================================
-// File      : Utils_ORB_INIT.hxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
-
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_ORB_INIT.hxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 # if ! defined( __ORB_INIT_HXX__ )
 # define __ORB_INIT_HXX__
index 3a2591bac062ae148a7d64d97e92126914b43970..59b79a7642611c014d5471c5c2612106b6d880f5 100644 (file)
@@ -1,12 +1,30 @@
-using namespace std;
-//=============================================================================
-// File      : Utils_SALOME_Exception.cxx
-// Created   : Mon Nov  5 17:01:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_SALOME_Exception.cxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 using namespace std;
 #include <iostream>
index 4956aecc025e0994e1f08353e421c1e34ff12f7c..f7e9a3a67c546a5ef96f434226c7fe8e60c53938 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : Utils_SALOME_Exception.hxx
-// Created   : Mon Nov  5 17:01:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_SALOME_Exception.hxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 #if !defined( __Utils_SALOME_Exception_hxx__ )
 #define __Utils_SALOME_Exception_hxx__
index 099b6e8a31a444357c81ced13aaadc652a2639ec..3d2e58cd341f1828cf99eddec26f9d7f5f0ec38d 100644 (file)
@@ -1,14 +1,30 @@
-//=============================================================================
-// File      : Utils_SINGLETON.hxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
-
-
-
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_SINGLETON.hxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 # if !defined( __SINGLETON__H__ )
 # define __SINGLETON__H__
diff --git a/src/Utils/Utils_Timer.cxx b/src/Utils/Utils_Timer.cxx
new file mode 100644 (file)
index 0000000..c2748f6
--- /dev/null
@@ -0,0 +1,94 @@
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_Timer.cxx
+//  Module : SALOME
+
+# include "Utils_Timer.hxx"
+# include <stream.h>
+using namespace std;
+
+static struct timezone *tz=(struct timezone*) malloc(sizeof(struct timezone));
+
+#ifndef CLK_TCK
+# define CLK_TCK      CLOCKS_PER_SEC
+#endif
+
+Utils_Timer::Utils_Timer() {
+  RefToInitialTMS = new tms;
+  RefToCurrentTMS = new tms;
+
+  RefToInitialTimeB = new timeval;
+  RefToCurrentTimeB = new timeval;
+
+  Cumul_user      = Cumul_sys = 0.;
+  Stopped         = 1;
+}
+
+Utils_Timer::~Utils_Timer() {
+  delete RefToInitialTMS ;
+  delete RefToCurrentTMS ;
+
+  delete RefToInitialTimeB ;
+  delete RefToCurrentTimeB ;
+}
+
+void Utils_Timer::Start() {
+  if (Stopped) {
+    Stopped = 0;
+    times(RefToInitialTMS);
+    gettimeofday(RefToInitialTimeB,tz);
+  }
+}
+
+void Utils_Timer::Stop() {
+  if (!Stopped) {
+    times(RefToCurrentTMS);
+    int diffr_user = RefToCurrentTMS->tms_utime - RefToInitialTMS->tms_utime;
+    int diffr_sys  = RefToCurrentTMS->tms_stime - RefToInitialTMS->tms_stime;
+    gettimeofday(RefToCurrentTimeB,tz);
+     
+    Cumul_user += (double) diffr_user / CLK_TCK ;
+    Cumul_sys  += (double) diffr_sys  / CLK_TCK ;
+    
+    Stopped = 1;
+  }
+}
+
+void Utils_Timer::Show() {
+  bool StopSav = Stopped;
+  if (!StopSav) Stop();
+  cout << "CPU user time: "   << Cumul_user  << " seconds " << endl;
+  cout << "CPU system time: " << Cumul_sys   << " seconds " << endl;
+  if (!StopSav) Start();
+}
+
+void Utils_Timer::Reset() {
+  Stopped     = 1;
+  Cumul_user  = Cumul_sys = 0. ;
+}
+
+void Utils_Timer::ShowAbsolute(){
+    unsigned long Absolute_user = (unsigned long) ((timeval*)RefToCurrentTimeB)->tv_sec ;
+    cout << "Absolute time: "   << Absolute_user  << " seconds " << endl;
+}
diff --git a/src/Utils/Utils_Timer.hxx b/src/Utils/Utils_Timer.hxx
new file mode 100644 (file)
index 0000000..a35afb6
--- /dev/null
@@ -0,0 +1,46 @@
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Utils_Timer.hxx
+//  Module : SALOME
+
+# include <sys/times.h>
+# include <sys/time.h>
+# include <unistd.h>
+
+class Utils_Timer {
+ public:
+  Utils_Timer();
+  virtual ~Utils_Timer();
+  void Start();
+  void Stop();
+  void Reset();
+  void Show();
+  void ShowAbsolute();
+ protected:
+  double Cumul_user;
+  double Cumul_sys;
+  bool Stopped;
+  tms *RefToCurrentTMS, *RefToInitialTMS;
+  timeval *RefToCurrentTimeB, *RefToInitialTimeB;
+};
index 2afac9248768eea8398e5df287bf27b357b2e84c..fd4b956338656262baee1bf60d4390986868382b 100644 (file)
@@ -1,12 +1,30 @@
-using namespace std;
-//=============================================================================
-// File      : duplicate.cxx
-// Created   : lun nov  5 16:04:47 CET 2001
-// Author    : Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : duplicate.cxx
+//  Author : Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
 /*!
  *     This function can be changed by strdup() if strdup() is ANSI.
index ffed24cb2e046216c34f573a051d82603b2dabb1..52256eae84b9acca53ee92f754b1d49eef509441 100644 (file)
@@ -1,11 +1,30 @@
-//=============================================================================
-// File      : utilities.h
-// Created   : mar jun 19 13:18:14 CEST 2001
-// Author    : Antoine YESSAYAN, Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Utils : general SALOME's definitions and tools
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : utilities.h
+//  Author : Antoine YESSAYAN, Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
 /* ---  Definition macros file to print informations if _DEBUG_ is defined --- */
 
@@ -15,6 +34,8 @@
 # include <stdlib.h>
 # include <iostream>
 
+
+
 //VRV: T2.4 - replacement macro for using special CORBA server
 #include "SALOME_Trace.hxx"
 //VRV: T2.4 - replacement macro for using special CORBA server
 # define ASSERT(condition) if (!(condition)){ HERE ; cerr << "CONDITION " << #condition << " NOT VERIFIED"<< endl ; INTERRUPTION(1) ;}
 # endif /* ASSERT */
 
+
+
+
+
+
+
 # else /* ifdef _DEBUG_*/
 
 #define HERE 
 # endif /* ASSERT */
 
 
-
 # endif /* ifdef _DEBUG_*/
 
 # endif /* ifndef UTILITIES_H */
index 0911df2d8a845d4d12952ae119e1ce399aa39704..295e4ccd6bc15127a7acac830bb1415684e76a88 100644 (file)
@@ -1,3 +1,12 @@
+#  SALOME Utils : general SALOME's definitions and tools
+#
+#  Copyright (C) 2003  CEA/DEN, EDF R&D
+#
+#
+#
+#  File   : utilities.py
+#  Module : SALOME
+
 import SALOME_Trace
 GLogger = SALOME_Trace.SALOME_Trace()
 
index baae6aa5f9bb6fbb7b2de411e879456878744f47..eef9d3fd77de962e4486871692eef7740cc28265 100644 (file)
@@ -1,15 +1,33 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : mar jui  3 12:12:54 CEST 2001
-#  Author    : Marc Tajchman (CEA)
-#  Project   : SALOME
-#  Copyright : CEA 2001
+#  SALOME VTKViewer : build VTK viewer into Salome desktop
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Marc Tajchman (CEA)
+#  Module : SALOME
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:$(top_builddir)/inc:$(top_builddir)/idl
 
@@ -18,9 +36,9 @@ VPATH=.:@srcdir@:$(top_builddir)/inc:$(top_builddir)/idl
 
 # header files 
 EXPORT_HEADERS=  VTKViewer_RenderWindow.h \
-                VTKViewer_RenderWindowInteractor.h \
                 VTKViewer_ViewFrame.h \
-                VTKViewer_NonIsometricTransform.h 
+                VTKViewer_RenderWindowInteractor.h \
+                VTKViewer_InteractorStyleSALOME.h
 
 # Libraries targets
 LIB = libVTKViewer.la
@@ -28,14 +46,14 @@ LIB_SRC= VTKViewer.cxx \
         VTKViewer_ViewFrame.cxx \
         VTKViewer_RenderWindow.cxx \
         VTKViewer_RenderWindowInteractor.cxx \
-        VTKViewer_InteractorStyleSALOME.cxx \
-         VTKViewer_NonIsometricTransform.cxx 
+        VTKViewer_InteractorStyleSALOME.cxx 
 
 LIB_MOC = \
         VTKViewer.h \
         VTKViewer_ViewFrame.h \
-        VTKViewer_RenderWindow.h \
-        VTKViewer_RenderWindowInteractor.h 
+        VTKViewer_RenderWindowInteractor.h \
+        VTKViewer_RenderWindow.h 
+
 
 LIB_CLIENT_IDL = SALOMEDS.idl \
                 SALOME_ModuleCatalog.idl \
index 626157e7cb90122d70773955ea508a14862fa347..79602806011070ee8c61eb1a38915424347ec11e 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : VTKViewer.cxx
-//  Created   : Wed Mar 20 11:58:44 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "VTKViewer.h"
 #include "VTKViewer_ViewFrame.h"
 
index 9bde43cff081e1e7091fcd38a618840401f93e79..122851f0f5afb1978848c56ef1128ed495a4bc32 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : VTKViewer.h
-//  Created   : Wed Mar 20 11:56:18 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef VTKViewer_HeaderFile
index 190a9f101b2c5c3b1acc2f5732d7a22c401d3e42..d9eb3a75c5b24879222f9f0b458514a4dbf8c951 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : VTKViewer_InteractorStyleSALOME.cxx
-//  Created   : Wed Mar 20 11:37:34 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_InteractorStyleSALOME.cxx
+//  Author : Christophe ATTANASIO
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "VTKViewer_InteractorStyleSALOME.h"
 #include "VTKViewer_RenderWindow.h"
 
@@ -30,6 +50,8 @@ using namespace std;
 #include <vtkExtractEdges.h>
 #include <vtkPolyDataMapper.h>
 #include <vtkDataSetCollection.h>
+#include <vtkImageData.h>
+
 
 //VRV: porting on Qt 3.0.5
 #if QT_VERSION >= 0x030005
@@ -98,12 +120,12 @@ void VTKViewer_InteractorStyleSALOME::RotateXY(int dx, int dy)
   cam->OrthogonalizeViewUp();
   this->CurrentRenderer->ResetCameraClippingRange();
   vtkRenderWindowInteractor *rwi = this->Interactor;
-  if (this->CurrentLight)
+  /* VSV Light follows camera: if (this->CurrentLight)
     {
       // get the first light
       this->CurrentLight->SetPosition(cam->GetPosition());
       this->CurrentLight->SetFocalPoint(cam->GetFocalPoint());
-    }  
+      }        */
   rwi->Render();
 }
 
@@ -111,24 +133,23 @@ void VTKViewer_InteractorStyleSALOME::RotateXY(int dx, int dy)
 void VTKViewer_InteractorStyleSALOME::PanXY(int x, int y, int oldX, int oldY)
 {
   TranslateView(x, y, oldX, oldY);   
-  vtkRenderWindowInteractor *rwi = this->Interactor;
-  if (this->CurrentLight)
+  //vtkRenderWindowInteractor *rwi = this->Interactor;
+  /* VSV Light follows camera: if (this->CurrentLight)
     {
-      /* get the first light */
       vtkCamera *cam = this->CurrentRenderer->GetActiveCamera();
       this->CurrentLight->SetPosition(cam->GetPosition());
       this->CurrentLight->SetFocalPoint(cam->GetFocalPoint());
-    }
+      }*/
     
-  rwi->Render();
+  this->Interactor->Render();
 }
 
 //----------------------------------------------------------------------------
 void VTKViewer_InteractorStyleSALOME::DollyXY(int dx, int dy)
 {
   vtkCamera *cam;
-  double dxf = this->MotionFactor * (double)(dx) / (double)(this->Center[1]);
-  double dyf = this->MotionFactor * (double)(dy) / (double)(this->Center[1]);
+  double dxf = this->MotionFactor * (double)(dx) / (double)(this->CurrentRenderer->GetCenter()[1]);
+  double dyf = this->MotionFactor * (double)(dy) / (double)(this->CurrentRenderer->GetCenter()[1]);
 
   double zoomFactor = pow((double)1.1, dxf + dyf);
   
@@ -148,12 +169,11 @@ void VTKViewer_InteractorStyleSALOME::DollyXY(int dx, int dy)
       this->CurrentRenderer->ResetCameraClippingRange();
     }
   
-  if (this->CurrentLight)
-    {
-      /* get the first light */
+  /* VSV Light follows camera: if (this->CurrentLight)
+    {      
       this->CurrentLight->SetPosition(cam->GetPosition());
       this->CurrentLight->SetFocalPoint(cam->GetFocalPoint());
-    }
+      }*/
   
   this->Interactor->Render();
 }
@@ -169,10 +189,10 @@ void VTKViewer_InteractorStyleSALOME::SpinXY(int x, int y, int oldX, int oldY)
       return;
     }
 
-  double newAngle = atan2((double)(y - this->Center[1]),
-                         (double)(x - this->Center[0]));
-  double oldAngle = atan2((double)(oldY -this->Center[1]),
-                         (double)(oldX - this->Center[0]));
+  double newAngle = atan2((double)(y - this->CurrentRenderer->GetCenter()[1]),
+                         (double)(x - this->CurrentRenderer->GetCenter()[0]));
+  double oldAngle = atan2((double)(oldY -this->CurrentRenderer->GetCenter()[1]),
+                         (double)(oldX - this->CurrentRenderer->GetCenter()[0]));
   
   newAngle *= this->RadianToDegree;
   oldAngle *= this->RadianToDegree;
@@ -202,16 +222,14 @@ void VTKViewer_InteractorStyleSALOME::OnMouseMove(int vtkNotUsed(ctrl),
 void VTKViewer_InteractorStyleSALOME::OnLeftButtonDown(int ctrl, int shift, 
                                                       int x, int y) 
 {
-  if (this->HasObserver(vtkCommand::LeftButtonPressEvent)) 
-    {
+  if (this->HasObserver(vtkCommand::LeftButtonPressEvent)) {
     this->InvokeEvent(vtkCommand::LeftButtonPressEvent,NULL);
     return;
-    }
+  }
   this->FindPokedRenderer(x, y);
-  if (this->CurrentRenderer == NULL)
-    {
+  if (this->CurrentRenderer == NULL) {
     return;
-    }
+  }
   myShiftState = shift;
   // finishing current viewer operation
   if (State != VTK_INTERACTOR_STYLE_CAMERA_NONE) {
@@ -221,8 +239,7 @@ void VTKViewer_InteractorStyleSALOME::OnLeftButtonDown(int ctrl, int shift,
   myOtherPoint = myPoint = QPoint(x, y);
   if (ForcedState != VTK_INTERACTOR_STYLE_CAMERA_NONE) {
     startOperation(ForcedState);
-  }
-  else {
+  } else {
     if (ctrl)
       startOperation(VTK_INTERACTOR_STYLE_CAMERA_ZOOM);
     else
@@ -433,8 +450,8 @@ void VTKViewer_InteractorStyleSALOME::loadCursors()
 // event filter - controls mouse and keyboard events during viewer operations
 bool VTKViewer_InteractorStyleSALOME::eventFilter(QObject* object, QEvent* event)
 {
-  VTKViewer_RenderWindow* wnd = dynamic_cast<VTKViewer_RenderWindow*>(GetInteractor()->GetRenderWindow());
-  if ( (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::KeyPress) && object != wnd)
+  if (!myGUIWindow) return false;
+  if ( (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::KeyPress) && object != myGUIWindow)
   {
     qApp->removeEventFilter(this);
     startOperation(VTK_INTERACTOR_STYLE_CAMERA_NONE);
@@ -546,8 +563,8 @@ void VTKViewer_InteractorStyleSALOME::startGlobalPan()
       ac = m_Triedron->GetNextActor();
     }
   }
-  VTKViewer_RenderWindow* aRW = dynamic_cast<VTKViewer_RenderWindow*>(this->Interactor->GetRenderWindow());
-  if (aRW) aRW->updateGL();
+  //VTKViewer_RenderWindow* aRW = dynamic_cast<VTKViewer_RenderWindow*>(this->Interactor->GetRenderWindow());
+  if (myGUIWindow) myGUIWindow->update();
   
   qApp->installEventFilter(this);
 }
@@ -572,7 +589,7 @@ void VTKViewer_InteractorStyleSALOME::fitRect(const int left,
     return;
   }
   vtkCamera *cam = this->CurrentRenderer->GetActiveCamera();
-
   // move camera
   int x = (left + right)/2;
   int y = (top + bottom)/2;
@@ -580,6 +597,7 @@ void VTKViewer_InteractorStyleSALOME::fitRect(const int left,
   int oldX = aSize[0]/2;
   int oldY = aSize[1]/2;
   TranslateView(oldX, oldY, x, y);
+
       
   // zoom camera
   double dxf = (double)(aSize[0]) / (double)(abs(right - left));
@@ -593,15 +611,14 @@ void VTKViewer_InteractorStyleSALOME::fitRect(const int left,
     this->CurrentRenderer->ResetCameraClippingRange();
   }
   
-  vtkRenderWindowInteractor *rwi = this->Interactor;
-  if (this->CurrentLight) {
-    /* get the first light */
+  //vtkRenderWindowInteractor *rwi = this->Interactor;
+  /* VSV Light follows camera: if (this->CurrentLight) {
     this->CurrentLight->SetPosition(cam->GetPosition());
     this->CurrentLight->SetFocalPoint(cam->GetFocalPoint());
-  }
+    }*/
   //  rwi->Render();
-  VTKViewer_RenderWindow* aRW = dynamic_cast<VTKViewer_RenderWindow*>(rwi->GetRenderWindow());
-  if (aRW) aRW->updateGL();
+  //VTKViewer_RenderWindow* aRW = dynamic_cast<VTKViewer_RenderWindow*>(rwi->GetRenderWindow());
+  myGUIWindow->update();
 }
 
 
@@ -636,37 +653,37 @@ void VTKViewer_InteractorStyleSALOME::startOperation(int operation)
 // sets proper cursor for window when viewer operation is activated
 void VTKViewer_InteractorStyleSALOME::setCursor(const int operation)
 {
-   VTKViewer_RenderWindow* wnd = dynamic_cast< VTKViewer_RenderWindow*>(GetInteractor()->GetRenderWindow());
+  if (!myGUIWindow) return;
   switch (operation)
   {
     case VTK_INTERACTOR_STYLE_CAMERA_ZOOM:
-      wnd->setCursor(myZoomCursor); 
+      myGUIWindow->setCursor(myZoomCursor); 
       myCursorState = true;
       break;
     case VTK_INTERACTOR_STYLE_CAMERA_PAN:
-      wnd->setCursor(myPanCursor); 
+      myGUIWindow->setCursor(myPanCursor); 
       myCursorState = true;
       break;
     case VTK_INTERACTOR_STYLE_CAMERA_ROTATE:
-      wnd->setCursor(myRotateCursor); 
+      myGUIWindow->setCursor(myRotateCursor); 
       myCursorState = true;
       break;
     case VTK_INTERACTOR_STYLE_CAMERA_SPIN:
-      wnd->setCursor(mySpinCursor); 
+      myGUIWindow->setCursor(mySpinCursor); 
       myCursorState = true;
       break;
     case VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN:
-      wnd->setCursor(myGlobalPanCursor); 
+      myGUIWindow->setCursor(myGlobalPanCursor); 
       myCursorState = true;
       break;
     case VTK_INTERACTOR_STYLE_CAMERA_FIT:
     case VTK_INTERACTOR_STYLE_CAMERA_SELECT:
-      wnd->setCursor(myHandCursor); 
+      myGUIWindow->setCursor(myHandCursor); 
       myCursorState = true;
       break;
     case VTK_INTERACTOR_STYLE_CAMERA_NONE:
     default:
-      wnd->setCursor(myDefCursor); 
+      myGUIWindow->setCursor(myDefCursor); 
       myCursorState = false;
       break;
   }
@@ -675,12 +692,12 @@ void VTKViewer_InteractorStyleSALOME::setCursor(const int operation)
 // called when viewer operation started (!put necessary initialization here!)
 void VTKViewer_InteractorStyleSALOME::onStartOperation()
 {
-   VTKViewer_RenderWindow* wnd = dynamic_cast< VTKViewer_RenderWindow*>(GetInteractor()->GetRenderWindow());
+  if (!myGUIWindow) return;
   switch (State) {
     case VTK_INTERACTOR_STYLE_CAMERA_SELECT:
     case VTK_INTERACTOR_STYLE_CAMERA_FIT:
     {
-      QPainter p(wnd);
+      QPainter p(myGUIWindow);
       p.setPen(Qt::lightGray);
       p.setRasterOp(Qt::XorROP);
       p.drawRect(QRect(myPoint, myOtherPoint));
@@ -698,9 +715,10 @@ void VTKViewer_InteractorStyleSALOME::onStartOperation()
 // called when viewer operation finished (!put necessary post-processing here!)
 void VTKViewer_InteractorStyleSALOME::onFinishOperation() 
 {
+  if (!myGUIWindow) return;
+
   QAD_Study* aActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
   SALOME_Selection* aSel    = SALOME_Selection::Selection( aActiveStudy->getSelection() );
-  VTKViewer_RenderWindow* wnd = dynamic_cast< VTKViewer_RenderWindow*>(GetInteractor()->GetRenderWindow());
   vtkRenderWindowInteractor *rwi = this->Interactor;
 
   int aSelectionMode = aSel->SelectionMode();
@@ -712,7 +730,7 @@ void VTKViewer_InteractorStyleSALOME::onFinishOperation()
     case VTK_INTERACTOR_STYLE_CAMERA_SELECT:
     case VTK_INTERACTOR_STYLE_CAMERA_FIT:
     {
-      QPainter p(wnd);
+      QPainter p(myGUIWindow);
       p.setPen(Qt::lightGray);
       p.setRasterOp(Qt::XorROP);
       QRect rect(myPoint, myOtherPoint);
@@ -784,55 +802,50 @@ void VTKViewer_InteractorStyleSALOME::onFinishOperation()
                  }
                   //Edge selection ////////////////////////// NB
                   else if ( aSelectionMode == 2 ) {
-                    if ( SActor->hasIO() ) {
+                    if(SActor->hasIO()){
                       Handle(SALOME_InteractiveObject) IO = SActor->getIO();
                       float pickPosition[3],pcoords[3],closestPoint[3],weights[3],dist1=1000000.0,dist2=0;
-                      int subId,edgeId,pickedID,result;
+                      int subId,edgeId=-10,pickedID,result;
                       pickedID = picker->GetCellId();
                       picker->GetPickPosition(pickPosition);
-                       MESSAGE("Position = "<<pickPosition[0]<<" "<<pickPosition[1]<<" "<<pickPosition[2]);
-                      vtkUnstructuredGrid* UGrid = vtkUnstructuredGrid::SafeDownCast( SActor->GetMapper()->GetInput());
-                     if (!UGrid) break;
-                      vtkCell* pickedCell = UGrid->GetCell(pickedID);
-                     if (!pickedCell) break;
-                      vtkCell* edge;
-                      vtkLine* line;
-                      for (int i=0;i<pickedCell->GetNumberOfEdges();i++) {
-                        edge = pickedCell->GetEdge(i);
-                        if (edge->GetCellType() == 3) { //3 for VTK_LINE
-                          line = (vtkLine*)edge;
-                          result = line->EvaluatePosition(pickPosition,closestPoint,subId,pcoords,dist2,weights);
-                          MESSAGE("edge "<< i <<" dist = " << dist2);
-                          if (dist2 < dist1) {
-                            dist1  = dist2;
-                            edgeId = i;
-                          }
-                        }
-                      }
-                      MESSAGE("edgeID transformed = "<<edgeId);
-                      // Look in the current selection
-                      SALOME_ListIteratorOfListIO It(aSel->StoredIObjects());
-                      Standard_Boolean IsSelected = false;
-                      for(;It.More();It.Next()) {
-                        Handle(SALOME_InteractiveObject) IOS = It.Value();
-                        if(IO->isSame(IOS)) {
-                         IO = IOS; //Added by SRN, fix SAL1307
-                          IsSelected = true;
-                          break;
-                        }
-                      }
-                      if(!myShiftState) {
-                        this->HighlightProp( NULL );
-                        aSel->ClearIObjects();
-                      }
-                      aSel->SetSelectionMode(3, true);
-                      bool add = aSel->AddOrRemoveIndex( IO, pickedID, 0 );
-                      aSel->SetSelectionMode(2, true);
-                     edgeId = -edgeId;
-                      add = aSel->AddOrRemoveIndex( IO, edgeId, 0, false );
-                      aSel->AddIObject( IO, false );
-                    }
-                  }
+                     if (vtkDataSet* UGrid = SActor->GetMapper()->GetInput()){
+                       if (vtkCell* pickedCell = UGrid->GetCell(pickedID)){
+                         edgeId = -1;
+                         for (int i = 0, iEnd = pickedCell->GetNumberOfEdges(); i < iEnd; i++){
+                           vtkCell* edge = pickedCell->GetEdge(i);
+                           if(vtkLine* line = vtkLine::SafeDownCast(edge)){
+                             result = line->EvaluatePosition(pickPosition,closestPoint,subId,pcoords,dist2,weights);
+                             if (dist2 < dist1) {
+                               dist1  = dist2;
+                               edgeId = i;
+                             }
+                           }
+                         }
+                         MESSAGE("edgeID transformed = "<<edgeId);
+                         // Look in the current selection
+                         SALOME_ListIteratorOfListIO It(aSel->StoredIObjects());
+                         Standard_Boolean IsSelected = false;
+                         for(;It.More();It.Next()) {
+                           Handle(SALOME_InteractiveObject) IOS = It.Value();
+                           if(IO->isSame(IOS)) {
+                             IO = IOS; //Added by SRN, fix SAL1307
+                             IsSelected = true;
+                             break;
+                           }
+                         }
+                         if(!myShiftState) {
+                           this->HighlightProp( NULL );
+                           aSel->ClearIObjects();
+                         }
+                         aSel->SetSelectionMode(2, true);
+                         bool add = aSel->AddOrRemoveIndex( IO, pickedID, true, false);
+                         if(edgeId >= 0)
+                           add = aSel->AddOrRemoveIndex( IO, -edgeId-1, true, true );
+                         aSel->AddIObject( IO, false );
+                       }
+                     }
+                   }
+                 }
                 } else {
                   this->HighlightProp( NULL );
                   aSel->ClearIObjects();
@@ -1018,72 +1031,37 @@ void VTKViewer_InteractorStyleSALOME::onFinishOperation()
          case 2: // edges selection
          case 3: // triangles selection
            {
-             if (! rwi->GetPicker()->IsA("vtkCellPicker") ) break;
+             aSel->SetSelectionMode(aSelectionMode,true);
+             if (!rwi->GetPicker()->IsA("vtkCellPicker") ) break;
              vtkCellPicker* aCellPicker = vtkCellPicker::SafeDownCast(rwi->GetPicker());
              vtkActorCollection* aListActors = this->CurrentRenderer->GetActors();
              aListActors->InitTraversal();
              vtkActor* aActor;
-             for (int k = 0; k < aListActors->GetNumberOfItems(); k++) {
-               aActor = aListActors->GetNextActor();
-               if (aActor != NULL) {
-                 if (aActor->GetVisibility() == 0) 
-                   continue;
-                 vtkAbstractMapper3D* aMapper3D = aActor->GetMapper();
-                 if ((aMapper3D != NULL) && (aActor->IsA("SALOME_Actor"))) {
-                   SALOME_Actor* SActor = SALOME_Actor::SafeDownCast(aActor);
-
-                   if ((SActor != NULL) && (SActor->hasIO())) {
+             for (int k = 0, kEnd = aListActors->GetNumberOfItems(); k < kEnd; k++){
+               vtkActor* aActor = aListActors->GetNextActor();
+               if (vtkActor* aActor = aListActors->GetNextActor()){
+                 if (aActor->GetVisibility() == 0) continue;
+                 if(SALOME_Actor* SActor = SALOME_Actor::SafeDownCast(aActor)) {
+                   if(SActor->hasIO()) {
                      Handle(SALOME_InteractiveObject) IO = SActor->getIO();
-                     if (IO.IsNull()) 
-                       continue;
-                     if (aSelActiveCompOnly && 
-                              strcmp(aActiveComponent->ComponentDataType(), IO->getComponentDataType()) != 0) {
-                       continue;
-                     }
-
-                     vtkMapper*       aMapper;
-                     vtkVolumeMapper* aVolumeMapper;
-                     vtkDataSet*      aDataSet;
-                     
-                     if ( (aMapper = vtkMapper::SafeDownCast(aMapper3D)) != NULL ) {
-                       aDataSet = aMapper->GetInput();
-                     } else if ((aVolumeMapper = vtkVolumeMapper::SafeDownCast(aMapper3D)) != NULL ){
-                       aDataSet = aVolumeMapper->GetInput();
-                     } else {
-                       continue;
-                     }
-                     if (aDataSet) {
-                       for (int i=0; i < aDataSet->GetNumberOfCells(); i++) {
-                         vtkCell* aCell = aDataSet->GetCell(i);
-                         if (aCell != NULL) {
-                           if (IsInRect(aCell,  x1, y1, x2, y2)) {
+                     if(IO.IsNull()) continue;
+                     if(aSelActiveCompOnly)
+                       if(strcmp(aActiveComponent->ComponentDataType(),IO->getComponentDataType()) != 0)
+                         continue;
+                     if(vtkDataSet* aDataSet = SActor->GetMapper()->GetInput()){
+                       for(int i = 0, iEnd = aDataSet->GetNumberOfCells(); i < iEnd; i++){
+                         if(vtkCell* aCell = aDataSet->GetCell(i)){
+                           if(IsInRect(aCell,  x1, y1, x2, y2)){
                              float* aBounds = aCell->GetBounds();
                              float aCenter[3];
                              aCenter[0] =(aBounds[0] + aBounds[1])/2; // Center X
                              aCenter[1] =(aBounds[2] + aBounds[3])/2; // Center Y
                              aCenter[2] =(aBounds[4] + aBounds[5])/2; // Center Z
                              float aDisp[3];
-                             ComputeWorldToDisplay(aCenter[0],
-                                                   aCenter[1],
-                                                   aCenter[2], aDisp);
+                             ComputeWorldToDisplay(aCenter[0],aCenter[1],aCenter[2],aDisp);
                              aCellPicker->Pick(aDisp[0], aDisp[1], 0.0, CurrentRenderer);
-                             if (aSelectionMode == 3) {
-                               if ( aCellPicker->GetCellId() >= 0 && 
-                                   (!aSel->IsIndexSelected(IO, aCellPicker->GetCellId()))) {
-                                 aSel->AddOrRemoveIndex( IO, aCellPicker->GetCellId(), true, false);
-                                 aSel->AddIObject( IO, false );
-                               }
-                             } else {
-                               vtkCell* aTriangleCell = aDataSet->GetCell(aCellPicker->GetCellId());
-                               vtkCell* aEdge;
-                               if (!aSel->IsIndexSelected(IO, aCellPicker->GetCellId())) {
-                                 aSel->SetSelectionMode(3, true);
-                                 aSel->AddOrRemoveIndex(IO, aCellPicker->GetCellId(), true, false);
-                               }
-                               aSel->SetSelectionMode(2, true);
-                               for (int i=0; i < aTriangleCell->GetNumberOfEdges(); i++) {
-                                 aSel->AddOrRemoveIndex( IO, i, true, false);
-                               }
+                             if(aCellPicker->GetCellId() >= 0 && !aSel->IsIndexSelected(IO,aCellPicker->GetCellId())){
+                               aSel->AddOrRemoveIndex( IO, aCellPicker->GetCellId(), true, false);
                                aSel->AddIObject( IO, false );
                              }
                            }
@@ -1173,14 +1151,14 @@ void VTKViewer_InteractorStyleSALOME::onFinishOperation()
 // called during viewer operation when user moves mouse (!put necessary processing here!)
 void VTKViewer_InteractorStyleSALOME::onOperation(QPoint mousePos) 
 {
+  if (!myGUIWindow) return;
   int w, h;
   GetInteractor()->GetSize(w, h);
-   VTKViewer_RenderWindow* wnd = dynamic_cast< VTKViewer_RenderWindow*>(GetInteractor()->GetRenderWindow());
   switch (State) {
   case VTK_INTERACTOR_STYLE_CAMERA_PAN: 
     {
       // processing panning
-      this->FindPokedCamera(mousePos.x(), mousePos.y());
+      //this->FindPokedCamera(mousePos.x(), mousePos.y());
       this->PanXY(mousePos.x(), myPoint.y(), myPoint.x(), mousePos.y());
       myPoint = mousePos;
       break;
@@ -1188,7 +1166,7 @@ void VTKViewer_InteractorStyleSALOME::onOperation(QPoint mousePos)
   case VTK_INTERACTOR_STYLE_CAMERA_ZOOM: 
     {    
       // processing zooming
-      this->FindPokedCamera(mousePos.x(), mousePos.y());
+      //this->FindPokedCamera(mousePos.x(), mousePos.y());
       this->DollyXY(mousePos.x() - myPoint.x(), mousePos.y() - myPoint.y());
       myPoint = mousePos;
       break;
@@ -1196,7 +1174,7 @@ void VTKViewer_InteractorStyleSALOME::onOperation(QPoint mousePos)
   case VTK_INTERACTOR_STYLE_CAMERA_ROTATE: 
     {
       // processing rotation
-      this->FindPokedCamera(mousePos.x(), mousePos.y());
+      //this->FindPokedCamera(mousePos.x(), mousePos.y());
       this->RotateXY(mousePos.x() - myPoint.x(), myPoint.y() - mousePos.y());
       myPoint = mousePos;
       break;
@@ -1204,7 +1182,7 @@ void VTKViewer_InteractorStyleSALOME::onOperation(QPoint mousePos)
   case VTK_INTERACTOR_STYLE_CAMERA_SPIN: 
     {
       // processing spinning
-      this->FindPokedCamera(mousePos.x(), mousePos.y());
+      //this->FindPokedCamera(mousePos.x(), mousePos.y());
       this->SpinXY(mousePos.x(), mousePos.y(), myPoint.x(), myPoint.y());
       myPoint = mousePos;
       break;
@@ -1220,7 +1198,7 @@ void VTKViewer_InteractorStyleSALOME::onOperation(QPoint mousePos)
     }
   case VTK_INTERACTOR_STYLE_CAMERA_FIT:
     {
-      QPainter p(wnd);
+      QPainter p(myGUIWindow);
       p.setPen(Qt::lightGray);
       p.setRasterOp(Qt::XorROP);
       p.drawRect(QRect(myPoint, myOtherPoint));
@@ -1334,12 +1312,12 @@ void VTKViewer_InteractorStyleSALOME::Place(const int theX, const int theY)
   cam->SetParallelScale(myScale);
   this->CurrentRenderer->ResetCameraClippingRange();
 
-  if (this->CurrentLight) {
+  /* VSV Light follows camera: if (this->CurrentLight) {
     this->CurrentLight->SetPosition(cam->GetPosition());
     this->CurrentLight->SetFocalPoint(cam->GetFocalPoint());
-  }
-  VTKViewer_RenderWindow* aRW = dynamic_cast<VTKViewer_RenderWindow*>(this->Interactor->GetRenderWindow());
-  if (aRW) aRW->updateGL();
+    }*/
+  //VTKViewer_RenderWindow* aRW = dynamic_cast<VTKViewer_RenderWindow*>(this->Interactor->GetRenderWindow());
+  if (myGUIWindow) myGUIWindow->update();
 }
 
 
index cc9b19e7eb4c5bac9be76e34acd4e7dd0c66de30..5102249979fe4e6a777cda5d189dae24e41e5c8a 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : VTKViewer_InteractorStyleSALOME.h
-//  Created   : Wed Mar 20 11:36:07 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_InteractorStyleSALOME.h
+//  Author : Christophe ATTANASIO
+//  Module : SALOME
 //  $Header$
 
-
 #ifndef __VTKViewer_InteractorStyleSALOME_h
 #define __VTKViewer_InteractorStyleSALOME_h
 
@@ -87,6 +106,8 @@ public:
   void startFitArea();
   void startSpin();
   bool needsRedrawing();
+  QWidget* getGUIWindow() {return myGUIWindow;}
+  void setGUIWindow(QWidget* theWin) { myGUIWindow = theWin;}
 
 protected:
   void loadCursors();
@@ -111,6 +132,13 @@ protected:
   bool         myShiftState;
   int ForcedState;
   vtkActorCollection* m_Triedron;  
+
+  QWidget*     myGUIWindow;
+
+  //  members from old version
+  double DeltaElevation;
+  double DeltaAzimuth;
+  int LastPos[2];
 };
 
 #endif
index 08c162b306ee1563a9fc69d5d2c6eb4d9b84e8ba..3ae42c55b30e9c1a6e1eecf4c0914030524a7e72 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : VTKViewer_RenderWindow.cxx
-//  Created   : Wed Mar 20 11:34:28 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_RenderWindow.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "VTKViewer_RenderWindow.h"
 #include "utilities.h"
 #include "QAD_Settings.h"
@@ -23,709 +43,51 @@ using namespace std;
 #include <iostream.h>
 
 #include <vtkRenderWindowInteractor.h>
+#include <vtkRendererCollection.h>
+#include <vtkXOpenGLRenderWindow.h>
 
-#include <GL/gl.h>
-#include <GL/glu.h>
-#include <qgl.h>
+//#include <GL/gl.h>
+//#include <GL/glu.h>
+//#include <qgl.h>
 
 #if QT_VERSION > 300
 #include <qcursor.h>
 #endif
 
 VTKViewer_RenderWindow::VTKViewer_RenderWindow(QWidget *parent, const char *name) :
-  QGLWidget(parent, name)
+  QWidget(parent, name, 
+         Qt::WStyle_NoBorder | Qt::WDestructiveClose | 
+         Qt::WResizeNoErase | Qt::WRepaintNoErase)
 {
-  mInitialized = false ;
-  //NRI - 22/02/2002  setFocusPolicy(QWidget::StrongFocus) ;
-  //NRI - comment rev 1.6 - setFocus();
+  myRW = vtkRenderWindow::New();
+  MESSAGE(QString("RenderWindow is ") + QString(myRW->GetClassName()));
+  myRW->SetDisplayId((void*)x11Display());
+  myRW->SetWindowId((void*)winId());
+  myRW->DoubleBufferOn();
 }
 
 VTKViewer_RenderWindow::~VTKViewer_RenderWindow() {
-  this->ReferenceCount-- ;
-}
-
-void VTKViewer_RenderWindow::PrintSelf(ostream& os, vtkIndent indent) {
-  this->vtkRenderWindow::PrintSelf(os, indent);
-
-  QGLFormat myFormat = this->format() ;
-  os << indent << "qGLVersion: " << qGLVersion() << endl ;
-  os << indent << "doubleBuffer: " << myFormat.doubleBuffer() << endl ;
-  os << indent << "depth: " << myFormat.depth() << endl ;
-  os << indent << "rgba: " << myFormat.rgba() << endl ;
-  os << indent << "alpha: " << myFormat.alpha() << endl ;
-  os << indent << "accum: " << myFormat.accum() << endl ;
-  os << indent << "stencil: " << myFormat.stencil() << endl ;
-  os << indent << "stereo: " << myFormat.stereo() << endl ;
-  os << indent << "directRendering: " << myFormat.directRendering() << endl ;
-}
-
-void VTKViewer_RenderWindow::Start(void) {
-  // 
-  // Initialize the QGLWidget part of the widget if it has not
-  // been initialized so far. 
-  //
-  if( ! this->mInitialized ) {
-    this->WindowInitialize() ;
-  }
-  this->MakeCurrent() ;
-}
-
-// End the rendering process and display the image. 
-void VTKViewer_RenderWindow::Frame(void) {
-  glFlush() ;
-  if( (! this->AbortRender) && // the render is not being aborted
-      (! autoBufferSwap() ) && // buffers are not switched automatically
-      doubleBuffer() &&        // double buffering is enabled on QGLWidget side
-      this->vtkRenderWindow::DoubleBuffer &&    // double buffering is enabled on VTK side
-      this->SwapBuffers ) {    // VTK wants us to swap buffers
-    QGLWidget::swapBuffers() ;
-  }
-}
-void* VTKViewer_RenderWindow::GetGenericDisplayId() {
-  return ((void*)x11Display());
-}
-
-void* VTKViewer_RenderWindow::GetGenericWindowId() {
-  return ((void*)winId());
-}
-
-void* VTKViewer_RenderWindow::GetGenericContext() {
-  return ((void*)(this->context())->currentContext());
-}
-
-// Initialize the window for rendering.
-void VTKViewer_RenderWindow::WindowInitialize(void) {
-  if( ! this->mInitialized ) {
-    this->initializeGL() ;
-    this->MakeCurrent() ;
-
-    vtkDebugMacro(<< " glMatrixMode ModelView\n");
-    glMatrixMode( GL_MODELVIEW );
-
-    vtkDebugMacro(<< " zbuffer enabled\n");
-    glDepthFunc( GL_LEQUAL );
-    glEnable( GL_DEPTH_TEST );
-
-    vtkDebugMacro(" texture stuff\n");
-    glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
-
-    // initialize blending for transparency
-    vtkDebugMacro(<< " blend func stuff\n");
-    glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
-    glEnable(GL_BLEND);
-  
-    if (this->PointSmoothing)
-      {
-       glEnable(GL_POINT_SMOOTH);
-      }
-    else
-      {
-       glDisable(GL_POINT_SMOOTH);
-      }
-
-    if (this->LineSmoothing)
-      {
-       glEnable(GL_LINE_SMOOTH);
-      }
-    else
-      {
-       glDisable(GL_LINE_SMOOTH);
-      }
-
-    if (this->PolygonSmoothing)
-      {
-       glEnable(GL_POLYGON_SMOOTH);
-      }
-    else
-      {
-       glDisable(GL_POLYGON_SMOOTH);
-      }
-
-    glEnable( GL_NORMALIZE );
-    glAlphaFunc(GL_GREATER,0);
-  
-    this->Mapped = 1;
-
-  }
+  //myRW->Delete(); //BUG SAL2954, Commented by SRN, to avoid problems when using rlogin
 }
 
-void VTKViewer_RenderWindow::SetFullScreen(int arg) {
-  //
-  // We do not need to do anything if the FullScreen mode
-  // is already set to the specified value. 
-  //
-  if( this->FullScreen == arg ) return ;
-
-  //
-  // :TODO: Fri Apr 21 16:41:06 2000 Pagey
-  // This is not implemented in QGLWidget yet. Hence, we
-  // will ignore it.
-  //
-  vtkDebugMacro(<< " QGLWidget::SetFullScreen() not supported by QGLWidget yet.\n") ;
+void VTKViewer_RenderWindow::paintEvent(QPaintEvent* theEvent) {
+  myRW->Render();
 }
 
-void VTKViewer_RenderWindow::WindowRemap(void) {
-  //
-  // :TODO: Fri Apr 21 16:44:35 2000 Pagey
-  // I am not sure why we would ever need to do this under Qt. 
-  // Hence, I have not done anything here yet. 
-  //
-  vtkDebugMacro(<< " QGLWidget::WindowRemap() not supported by QGLWidget yet.\n") ;
+void VTKViewer_RenderWindow::resizeEvent(QResizeEvent* theEvent) {
+  vtkRenderWindowInteractor* aRWI = myRW->GetInteractor();
+  if (aRWI != NULL)
+    aRWI->SetSize(width(), height());
+  myRW->SetSize(width(), height());
 }
 
-void VTKViewer_RenderWindow::PrefFullScreen(void) {
-  //
-  // :TODO: Fri Apr 21 16:46:30 2000 Pagey
-  // Since, SetFullScreen() is not supported yet, this is useless.
-  //
-  vtkDebugMacro(<< " QGLWidget::PrefFullScreen() not supported by QGLWidget yet.\n") ;
-}
-
-void VTKViewer_RenderWindow::SetSize(int w, int h) {
-  if ((this->Size[0] != w)||(this->Size[1] != h)) {
-    this->Modified();
-    this->Size[0] = w;
-    this->Size[1] = h;
-  }
-  
-  if( this->Interactor ) {
-    this->Interactor->SetSize(w, h) ;
-  }
-
-  // if we arent mappen then just set the ivars 
-  if (!this->Mapped) {
-    return;
-  }
-
-  glViewport( 0, 0, (GLint)w, (GLint)h ) ;
-}
-
-void VTKViewer_RenderWindow::StereoUpdate() {
-  //
-  // :NOTE: Fri Apr 21 16:55:32 2000 Pagey
-  // This routine is taken directly from vtkOpenGLRenderWindow.cxx. 
-  // I am not sure what it does. Hope it works. 
-  //
-  if (this->StereoRender && (!this->StereoStatus))
-    {
-      switch (this->StereoType) 
-       {
-       case VTK_STEREO_CRYSTAL_EYES:
-         {
-         }
-         break;
-       case VTK_STEREO_RED_BLUE:
-         {
-           this->StereoStatus = 1;
-         }
-       }
-    }
-  else if ((!this->StereoRender) && this->StereoStatus)
-    {
-      switch (this->StereoType) 
-       {
-       case VTK_STEREO_CRYSTAL_EYES:
-         {
-           this->StereoStatus = 0;
-         }
-         break;
-       case VTK_STEREO_RED_BLUE:
-         {
-           this->StereoStatus = 0;
-         }
-       }
-    }
-}
-
-unsigned char *VTKViewer_RenderWindow::GetPixelData(int x1, int y1, int x2, int y2, int front) {
-  //
-  // :NOTE: Fri Apr 21 16:58:53 2000 Pagey
-  // This routine is taken directly from vtkOpenGLRenderWindow.cxx. 
-  // I am not sure what it does. Hope it works. 
-  //
-  int     y_low, y_hi;
-  int     x_low, x_hi;
-  unsigned char   *data = NULL;
-
-  // set the current window 
-  this->MakeCurrent();
-
-  if (y1 < y2)
-    {
-      y_low = y1; 
-      y_hi  = y2;
-    }
-  else
-    {
-      y_low = y2; 
-      y_hi  = y1;
-    }
-
-  if (x1 < x2)
-    {
-      x_low = x1; 
-      x_hi  = x2;
-    }
-  else
-    {
-      x_low = x2; 
-      x_hi  = x1;
-    }
-
-  if (front)
-    {
-      glReadBuffer(GL_FRONT);
-    }
-  else
-    {
-      glReadBuffer(GL_BACK);
-    }
-
-  data = new unsigned char[(x_hi - x_low + 1)*(y_hi - y_low + 1)*3];
-
-#ifdef sparc
-  // We need to read the image data one row at a time and convert it
-  // from RGBA to RGB to get around a bug in Sun OpenGL 1.1
-  long    xloop, yloop;
-  unsigned char *buffer;
-  unsigned char *p_data = NULL;
-  
-  buffer = new unsigned char [4*(x_hi - x_low + 1)];
-  p_data = data;
-  for (yloop = y_low; yloop <= y_hi; yloop++)
-    {
-      // read in a row of pixels
-      glReadPixels(x_low,yloop,(x_hi-x_low+1),1,
-                  GL_RGBA, GL_UNSIGNED_BYTE, buffer);
-      for (xloop = 0; xloop <= x_hi-x_low; xloop++)
-       {
-         *p_data = buffer[xloop*4]; p_data++;
-         *p_data = buffer[xloop*4+1]; p_data++;
-         *p_data = buffer[xloop*4+2]; p_data++;
-       }
-    }
-  
-  delete [] buffer;  
-#else
-  // If the Sun bug is ever fixed, then we could use the following
-  // technique which provides a vast speed improvement on the SGI
-  
-  // Calling pack alignment ensures that we can grab the any size window
-  glPixelStorei( GL_PACK_ALIGNMENT, 1 );
-  glReadPixels(x_low, y_low, x_hi-x_low+1, y_hi-y_low+1, GL_RGB,
-               GL_UNSIGNED_BYTE, data);
-#endif
-  
-  return data;
-}
-
-void VTKViewer_RenderWindow::SetPixelData(int x1, int y1, int x2, int y2,
-                                         unsigned char *data, int front) {
-
-  //
-  // :NOTE: Fri Apr 21 17:00:16 2000 Pagey
-  // This routine is taken directly from vtkOpenGLRenderWindow.cxx. 
-  // I am not sure what it does. Hope it works. 
-  //
-  int     y_low, y_hi;
-  int     x_low, x_hi;
-
-  // set the current window 
-  this->MakeCurrent();
-
-  if (front)
-    {
-      glDrawBuffer(GL_FRONT);
-    }
-  else
-    {
-      glDrawBuffer(GL_BACK);
-    }
-
-  if (y1 < y2)
-    {
-
-      y_low = y1; 
-      y_hi  = y2;
-    }
-  else
-    {
-      y_low = y2; 
-      y_hi  = y1;
-    }
-  
-  if (x1 < x2)
-    {
-      x_low = x1; 
-      x_hi  = x2;
-    }
-  else
-    {
-      x_low = x2; 
-      x_hi  = x1;
-    }
-
-#ifdef sparc
-  // We need to read the image data one row at a time and convert it
-  // from RGBA to RGB to get around a bug in Sun OpenGL 1.1
-  long    xloop, yloop;
-  unsigned char *buffer;
-  unsigned char *p_data = NULL;
-  
-  buffer = new unsigned char [4*(x_hi - x_low + 1)];
-
-  // now write the binary info one row at a time
-  glDisable(GL_BLEND);
-  p_data = data;
-  for (yloop = y_low; yloop <= y_hi; yloop++)
-    {
-      for (xloop = 0; xloop <= x_hi - x_low; xloop++)
-       {
-         buffer[xloop*4] = *p_data; p_data++;
-         buffer[xloop*4+1] = *p_data; p_data++;
-         buffer[xloop*4+2] = *p_data; p_data++;
-         buffer[xloop*4+3] = 0xff;
-       }
-      /* write out a row of pixels */
-      glMatrixMode( GL_MODELVIEW );
-      glPushMatrix();
-      glLoadIdentity();
-      glMatrixMode( GL_PROJECTION );
-      glPushMatrix();
-      glLoadIdentity();
-      glRasterPos3f( (2.0 * (GLfloat)(x_low) / this->Size[0] - 1),
-                    (2.0 * (GLfloat)(yloop) / this->Size[1] - 1),
-                    -1.0 );
-      glMatrixMode( GL_PROJECTION );
-      glPopMatrix();
-      glMatrixMode( GL_MODELVIEW );
-      glPopMatrix();
-
-      glDrawPixels((x_hi-x_low+1),1, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
-    }
-  glEnable(GL_BLEND);
-#else
-  // If the Sun bug is ever fixed, then we could use the following
-  // technique which provides a vast speed improvement on the SGI
-  
-  // now write the binary info
-  glMatrixMode( GL_MODELVIEW );
-  glPushMatrix();
-  glLoadIdentity();
-  glMatrixMode( GL_PROJECTION );
-  glPushMatrix();
-  glLoadIdentity();
-  glRasterPos3f( (2.0 * (GLfloat)(x_low) / this->Size[0] - 1), 
-                 (2.0 * (GLfloat)(y_low) / this->Size[1] - 1),
-                 -1.0 );
-  glMatrixMode( GL_PROJECTION );
-  glPopMatrix();
-  glMatrixMode( GL_MODELVIEW );
-  glPopMatrix();
-
-  glPixelStorei( GL_UNPACK_ALIGNMENT, 1);
-  glDisable(GL_BLEND);
-  glDrawPixels((x_hi-x_low+1), (y_hi - y_low + 1),
-               GL_RGB, GL_UNSIGNED_BYTE, data);
-  glEnable(GL_BLEND);
-#endif
-}
-
-float *VTKViewer_RenderWindow::GetRGBAPixelData(int x1, int y1, int x2, int y2, int front)
-{
-  //
-  // :NOTE: Fri Apr 21 17:00:16 2000 Pagey
-  // This routine is taken directly from VTKViewer_RenderWindow.cxx. 
-  // I am not sure what it does. Hope it works. 
-  //
-  int     y_low, y_hi;
-  int     x_low, x_hi;
-  int     width, height;
-  float   *data = NULL;
-
-  // set the current window 
-  this->MakeCurrent();
-
-  if (y1 < y2)
-    {
-      y_low = y1; 
-      y_hi  = y2;
-    }
-  else
-    {
-      y_low = y2; 
-      y_hi  = y1;
-    }
-
-  if (x1 < x2)
-    {
-      x_low = x1; 
-      x_hi  = x2;
-    }
-  else
-    {
-      x_low = x2; 
-      x_hi  = x1;
-    }
-
-  if (front)
-    {
-      glReadBuffer(GL_FRONT);
-    }
-  else
-    {
-      glReadBuffer(GL_BACK);
-    }
-
-  width  = abs(x_hi - x_low) + 1;
-  height = abs(y_hi - y_low) + 1;
-
-  data = new float[ (width*height*4) ];
-
-  glReadPixels( x_low, y_low, width, height, GL_RGBA, GL_FLOAT, data);
-
-  return data;
-}
-
-void VTKViewer_RenderWindow::SetRGBAPixelData(int x1, int y1, int x2, int y2,
-                                             float *data, int front, int blend)
-{
-  //
-  // :NOTE: Fri Apr 21 17:00:16 2000 Pagey
-  // This routine is taken directly from VTKViewer_RenderWindow.cxx. 
-  // I am not sure what it does. Hope it works. 
-  //
-  int     y_low, y_hi;
-  int     x_low, x_hi;
-  int     width, height;
-
-  // set the current window 
-  this->MakeCurrent();
-
-  if (front)
-    {
-      glDrawBuffer(GL_FRONT);
-    }
-  else
-    {
-      glDrawBuffer(GL_BACK);
-    }
-
-  if (y1 < y2)
-    {
-      y_low = y1; 
-      y_hi  = y2;
-    }
-  else
-    {
-      y_low = y2; 
-      y_hi  = y1;
-    }
-  
-  if (x1 < x2)
-    {
-      x_low = x1; 
-      x_hi  = x2;
-    }
-  else
-    {
-      x_low = x2; 
-      x_hi  = x1;
-    }
-  
-  width  = abs(x_hi-x_low) + 1;
-  height = abs(y_hi-y_low) + 1;
-
-  /* write out a row of pixels */
-  glMatrixMode( GL_MODELVIEW );
-  glPushMatrix();
-  glLoadIdentity();
-  glMatrixMode( GL_PROJECTION );
-  glPushMatrix();
-  glLoadIdentity();
-  glRasterPos3f( (2.0 * (GLfloat)(x_low) / this->Size[0] - 1), 
-                 (2.0 * (GLfloat)(y_low) / this->Size[1] - 1),
-                -1.0 );
-  glMatrixMode( GL_PROJECTION );
-  glPopMatrix();
-  glMatrixMode( GL_MODELVIEW );
-  glPopMatrix();
-
-  if (!blend)
-    {
-      glDisable(GL_BLEND);
-      glDrawPixels( width, height, GL_RGBA, GL_FLOAT, data);
-      glEnable(GL_BLEND);
-    }
-  else
-    {
-      glDrawPixels( width, height, GL_RGBA, GL_FLOAT, data);
-    }
-}
-
-float *VTKViewer_RenderWindow::GetZbufferData( int x1, int y1, int x2, int y2  )
-{
-  int             y_low, y_hi;
-  int             x_low, x_hi;
-  int             width, height;
-  float           *z_data = NULL;
-
-  // set the current window 
-  this->MakeCurrent();
-
-  if (y1 < y2)
-    {
-      y_low = y1; 
-      y_hi  = y2;
-    }
-  else
-    {
-      y_low = y2; 
-      y_hi  = y1;
-    }
-
-  if (x1 < x2)
-    {
-      x_low = x1; 
-      x_hi  = x2;
-    }
-  else
-    {
-      x_low = x2; 
-      x_hi  = x1;
-    }
-
-  width =  abs(x2 - x1)+1;
-  height = abs(y2 - y1)+1;
-
-  z_data = new float[width*height];
-
-  glReadPixels( x_low, y_low, 
-               width, height,
-               GL_DEPTH_COMPONENT, GL_FLOAT,
-               z_data );
-
-  return z_data;
-}
-
-void VTKViewer_RenderWindow::SetZbufferData( int x1, int y1, int x2, int y2,
-                                            float *buffer )
-{
-  int             y_low, y_hi;
-  int             x_low, x_hi;
-  int             width, height;
-
-  // set the current window 
-  this->MakeCurrent();
-
-  if (y1 < y2)
-    {
-      y_low = y1; 
-      y_hi  = y2;
-    }
-  else
-    {
-      y_low = y2; 
-      y_hi  = y1;
-    }
-
-  if (x1 < x2)
-    {
-      x_low = x1; 
-      x_hi  = x2;
-    }
-  else
-    {
-      x_low = x2; 
-      x_hi  = x1;
-    }
-
-  width =  abs(x2 - x1)+1;
-  height = abs(y2 - y1)+1;
-
-  glMatrixMode( GL_MODELVIEW );
-  glPushMatrix();
-  glLoadIdentity();
-  glMatrixMode( GL_PROJECTION );
-  glPushMatrix();
-  glLoadIdentity();
-  glRasterPos2f( 2.0 * (GLfloat)(x_low) / this->Size[0] - 1, 
-                 2.0 * (GLfloat)(y_low) / this->Size[1] - 1);
-  glMatrixMode( GL_PROJECTION );
-  glPopMatrix();
-  glMatrixMode( GL_MODELVIEW );
-  glPopMatrix();
-
-  glDrawPixels( width, height, GL_DEPTH_COMPONENT, GL_FLOAT, buffer);
-
-}
-
-void VTKViewer_RenderWindow::MakeCurrent() {
-  if( this->mInitialized ) {
-    //const QGLContext* current = this->context()->currentContext();
-    //if(!current)
-    this->makeCurrent();
-  }
-}
-
-void VTKViewer_RenderWindow::initializeGL() {
-  if ( ! this->mInitialized ) {
-    //
-    // Construct a format which is similar to the
-    // format set by vtkOpenGLRenderWindow.cxx
-    //
-    QGLFormat myFormat ;
-    if( this->vtkRenderWindow::DoubleBuffer ) {
-      myFormat.setDoubleBuffer(true) ;
-    } else {
-      myFormat.setDoubleBuffer(false) ;
-    }
-    if( this->StereoCapableWindow ) {
-      myFormat.setStereo(true) ;
-    } else {
-      myFormat.setStereo(false) ;
-    }
-    myFormat.setRgba(true) ;
-    myFormat.setDepth(true) ;
-    myFormat.setDirectRendering(true) ;
-
-    setFormat(myFormat) ;
-
-    glClearColor(0.0, 0.0, 0.0, 0.0) ;
-    this->mInitialized = true ;
-
-    setMouseTracking(true);
-  }
-}
-
-void VTKViewer_RenderWindow::paintGL() {
-  Render() ;
-}
-
-void VTKViewer_RenderWindow::resizeGL(int w, int h) {
-  SetSize(w, h) ;
-}
-
-void VTKViewer_RenderWindow::setContext( QGLContext *context, 
-                                        const QGLContext *shareContext, 
-                                        bool deleteOldContex ) {
-  mInitialized = false ;
-  QGLWidget::setContext(context, shareContext, deleteOldContex) ;
-}
 
 void VTKViewer_RenderWindow::mouseMoveEvent( QMouseEvent *event ) {
   emit MouseMove(event) ;
 }
 
 void VTKViewer_RenderWindow::mousePressEvent( QMouseEvent *event ) {
-  //NRI - comment rev 1.6 - setFocus() ;
-  //
-  // Emit a ButtonPressed signal for all mouse presses.
-  //
   emit ButtonPressed(event) ;
-  //
-  // Emit a signal for the button which was pressed.
-  //
   switch(event->button()) {
   case LeftButton:
     emit LeftButtonPressed(event) ;
@@ -750,19 +112,11 @@ void VTKViewer_RenderWindow::mousePressEvent( QMouseEvent *event ) {
   default:
     break ;
   }
-  return ;
 }
 
 
 void VTKViewer_RenderWindow::mouseReleaseEvent( QMouseEvent *event ) {
-  //
-  // Emit a ButtonPressed signal for all mouse releases.
-  //
   emit ButtonReleased(event) ;
-  //
-  // Emit a signal for the the mouse button which was
-  // released.
-  //
   switch(event->button()) {
   case LeftButton:
     emit LeftButtonReleased(event) ;
@@ -776,13 +130,9 @@ void VTKViewer_RenderWindow::mouseReleaseEvent( QMouseEvent *event ) {
   default:
     break ;
   }
-  return ;
 }
 
 void VTKViewer_RenderWindow::keyPressEvent (QKeyEvent * event) {
-  //
-  // Let the interactor handle this.
-  //
   emit KeyPressed(event) ;
 }
 
@@ -820,7 +170,7 @@ void VTKViewer_RenderWindow::onChangeBackgroundColor()
   float red, green, blue;
   float backint[3];
 
-  vtkRendererCollection * theRenderers = GetRenderers();
+  vtkRendererCollection * theRenderers = myRW->GetRenderers();
   theRenderers->InitTraversal();
   vtkRenderer * theRenderer = theRenderers->GetNextItem();
   theRenderer->GetBackground(backint);
index 53f1593685fd3751162a63469c70ac9336f714e7..34fd61ff0aa51c79713a66da154eb13f897de19f 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : VTKViewer_RenderWindow.h
-//  Created   : Wed Mar 20 11:33:30 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_RenderWindow.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef VTKViewer_RenderWindow_h
 
 #include <stdlib.h>
 #include <vtkRenderWindow.h>
-#include <qgl.h>
+//#include <qgl.h>
+#include <vtkRenderWindow.h>
 
 #include "QAD_Popup.h"
 
-// ------------------------------------------------------------
-// :TRICKY: Fri Apr 21 22:19:27 2000 Pagey
-// The Signal/Slot mechanism used by Qt requires that QGLWidget 
-// appear as the first class when using multiple inheritance. 
-// Hence the order of the two classes QGLWidget and vtkRenderWindow
-// matters here. Be careful not to change it by accident. 
-// ------------------------------------------------------------
 class VTK_EXPORT VTKViewer_RenderWindow : 
-public QGLWidget, virtual public vtkRenderWindow, 
+public QWidget, /*virtual public vtkRenderWindow, */
   public QAD_PopupClientServer
 {
   Q_OBJECT 
@@ -31,128 +45,41 @@ public QGLWidget, virtual public vtkRenderWindow,
   /* popup management */
   void                           onCreatePopup();
 
-  /* ------------------------------------------------------------
-   * Methods from vtkRenderWindow class. 
-   */
-  static VTKViewer_RenderWindow *New(QWidget *parent=0, const char *name=0) {
-    return new VTKViewer_RenderWindow(parent,name) ;
-  };
   const char *GetClassName() {return "VTKViewer_RenderWindow";};
-  void PrintSelf(ostream& os, vtkIndent indent);
-  
-  virtual void Start(void);
-  virtual void Frame(void);
-  void WindowInitialize(void);
-  virtual void SetFullScreen(int);
-  virtual void WindowRemap(void);
-  void PrefFullScreen(void);
-  void SetSize(int,int);
-
-  virtual void *GetGenericDisplayId();
-  virtual void *GetGenericWindowId();
-  virtual void *GetGenericContext();
-
-  // stereo rendering stuff
-  virtual void StereoUpdate();
-
-  // Description:
-  // Set/Get the pixel data of an image, transmitted as RGBRGB... 
-  virtual unsigned char *GetPixelData(int x,int y,int x2,int y2,int front);
-  virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *,int front);
-
-  // Description:
-  // Set/Get the pixel data of an image, transmitted as RGBARGBA... 
-  virtual float *GetRGBAPixelData(int x,int y,int x2,int y2,int front);
-  virtual void SetRGBAPixelData(int x,int y,int x2,int y2,float *,int front,
-                                int blend=0);
-
-  // Description:
-  // Set/Get the zbuffer data from an image
-  virtual float *GetZbufferData( int x1, int y1, int x2, int y2 );
-  virtual void SetZbufferData( int x1, int y1, int x2, int y2, float *buffer );
-  virtual void MakeCurrent();
-
-  /* ------------------------------------------------------------
-   * Methods from QGLWidget class. 
-   */
-  virtual void setContext( QGLContext *context, 
-                          const QGLContext *shareContext=0, 
-                          bool deleteOldContex=TRUE ) ;
 
   protected slots:
     void onChangeBackgroundColor();
 
-  //NRIprotected:
  public:
-  bool mInitialized ;
   VTKViewer_RenderWindow(QWidget *parent, const char *name);
   ~VTKViewer_RenderWindow() ;
-  VTKViewer_RenderWindow(const VTKViewer_RenderWindow&) { } 
-  void operator=(const VTKViewer_RenderWindow&) { } 
 
-  /* ------------------------------------------------------------
-   * Methods from QGLWidget class. 
-   */
-  virtual void initializeGL() ;
-  virtual void paintGL() ;
-  virtual void resizeGL(int w, int h) ;
   virtual void mouseMoveEvent( QMouseEvent * ) ;
   virtual void mousePressEvent( QMouseEvent * ) ;
   virtual void mouseReleaseEvent( QMouseEvent * ) ;
   virtual void keyPressEvent( QKeyEvent * ) ;
-  //
-  // Every focus-in and focus-out event results in a repaint 
-  // through the default implementations of focusInEvent and
-  // focusOutEvent. This results in a flicker in the vtkQGLRenderWindow
-  // ever time the cursor moves in or out of the widget. We can 
-  // disble this by calling repaint(FALSE) in the implementation
-  // of these methods. 
-  //
-/*    virtual void focusInEvent( QFocusEvent * ) { repaint(FALSE) ; } */
-/*    virtual void focusOutEvent( QFocusEvent * ) { repaint(FALSE) ; } */
-  //
-  // If this widget is not the top level widget, it does not 
-  // get focus until it receives its first mouse click. By 
-  // overloading the enterEvent and leaveEvent methods, we 
-  // give keyboard focus to the widget when the mouse enters
-  // and remove the focus once the mouse leaves. 
-  //
- /*   virtual void enterEvent( QEvent * ) { setFocus() ; } */
-/*    virtual void leaveEvent( QEvent * ) { clearFocus() ; } */
 
-  /* ------------------------------------------------------------
-   * A few signals which will help us write an interactor for this
-   * render window. 
-   */
+  vtkRenderWindow* getRenderWindow() { return myRW; }
+
+ protected:
+  virtual void paintEvent (QPaintEvent* theEvent);
+  virtual void resizeEvent (QResizeEvent* theEvent);
+
+
  signals:
-  //
-  // Mouse moved. 
-  //
   void MouseMove(const QMouseEvent *event) ;
-  //
-  // Left button pressed/released at the specified location.
-  //
   void LeftButtonPressed(const QMouseEvent *event) ;
   void LeftButtonReleased(const QMouseEvent *event) ;
-  //
-  // Middle button pressed/released at the specified location.
-  //
   void MiddleButtonPressed(const QMouseEvent *event) ;
   void MiddleButtonReleased(const QMouseEvent *event) ;
-  //
-  // Right button pressed/released at the specified location.
-  //
   void RightButtonPressed(const QMouseEvent *event) ;
   void RightButtonReleased(const QMouseEvent *event) ;
-  //
-  // Any mouse button pressed.
-  //
   void ButtonPressed(const QMouseEvent *event) ;
   void ButtonReleased(const QMouseEvent *event) ;
-  //
-  // Any key pressed.
-  //
   void KeyPressed(QKeyEvent *event) ;
+
+ protected:
+  vtkRenderWindow* myRW;
 };
 
 #endif
index adb35fa05edbd9366891e4939b1793e35afbdbcd..6d049b67ecd2a5cfcbaaae353bce438362f8fefa 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : VTKViewer_RenderWindowInteractor.cxx
-//  Created   : Wed Mar 20 11:32:45 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_RenderWindowInteractor.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "VTKViewer_RenderWindowInteractor.h"
 #include "VTKViewer_RenderWindow.h"
 #include "VTKViewer_InteractorStyleSALOME.h"
@@ -30,13 +50,15 @@ using namespace std;
 #include <vtkPicker.h>
 #include <vtkCellPicker.h>
 #include <vtkPointPicker.h>
-#include <vtkDataSetMapper.h>
 #include <vtkUnstructuredGrid.h>
-#include <vtkUnstructuredGridReader.h>
+#include <vtkPolyDataMapper.h>
 #include <vtkSphereSource.h>
 #include <vtkDataSet.h>
 #include <vtkMaskPoints.h>
 #include <vtkVertex.h>
+#include <vtkRendererCollection.h>
+#include <vtkPolyDataWriter.h>
+
 
 // QT Includes
 #include <qkeycode.h>
@@ -53,7 +75,7 @@ VTKViewer_RenderWindowInteractor::VTKViewer_RenderWindowInteractor() {
   this->Enabled = 0 ;
   this->mTimer = new QTimer( this ) ;
   this->displaymode = 0;
-
+  myGUIWindow = 0;
   vtkPicker* thepicker = vtkPicker::New();
   thepicker->SetTolerance(0);
   this->SetPicker(thepicker);
@@ -96,8 +118,8 @@ void VTKViewer_RenderWindowInteractor::Initialize() {
   // it works. If the dynamic_cast does not work, we flag an error
   // and get the hell out.
   //
-  VTKViewer_RenderWindow *my_render_win = dynamic_cast<VTKViewer_RenderWindow *>(RenderWindow) ;
-  if( ! my_render_win ) {
+  vtkRenderWindow *my_render_win = dynamic_cast<vtkRenderWindow *>(RenderWindow) ;
+  if( !my_render_win ) {
     vtkErrorMacro(<< "VTKViewer_RenderWindowInteractor::Initialize() can only handle VTKViewer_RenderWindow.") ;
     return ;
   }
@@ -106,9 +128,9 @@ void VTKViewer_RenderWindowInteractor::Initialize() {
   // If the render window has zero size, then set it to a default 
   // value of 300x300.
   // 
-  int *size = my_render_win->GetSize() ;
-  size[0] = ((size[0] > 0) ? size[0] : 300);
-  size[1] = ((size[1] > 0) ? size[1] : 300);
+  int* aSize = my_render_win->GetSize();
+  this->Size[0] = ((aSize[0] > 0) ? aSize[0] : 300);
+  this->Size[1] = ((aSize[1] > 0) ? aSize[1] : 300);
 
   //
   // Enable the interactor. 
@@ -120,36 +142,28 @@ void VTKViewer_RenderWindowInteractor::Initialize() {
   //
   my_render_win->Start() ;
 
-  //
-  // Set our size to that of the render window. 
-  //
-  this->Size[0] = size[0] ;
-  this->Size[1] = size[1] ;
-
   //
   // The interactor has been initialized.
   //
   this->Initialized = 1 ;
 
-  VTKViewer_InteractorStyleSALOME* style = VTKViewer_InteractorStyleSALOME::New();
-  this->SetInteractorStyle(style); 
-
   Cell_Actor = vtkActor::New(); 
   Cell_Actor->PickableOff();
   Cell_Actor->GetProperty()->SetColor(1,1,0);
+  Cell_Actor->GetProperty()->SetLineWidth(5);
   Cell_Actor->GetProperty()->SetRepresentationToSurface();
 
   Edge_Actor = vtkActor::New(); 
   Edge_Actor->PickableOff();
   Edge_Actor->GetProperty()->SetColor(1,0,0);
   Edge_Actor->GetProperty()->SetRepresentationToSurface();
-  Edge_Actor->GetProperty()->SetLineWidth(20);
+  Edge_Actor->GetProperty()->SetLineWidth(5);
 
   Point_Actor = vtkActor::New(); 
   Point_Actor->PickableOff();
   Point_Actor->GetProperty()->SetColor(1,1,0);
   Point_Actor->GetProperty()->SetRepresentationToSurface();
-  Point_Actor->GetProperty()->SetPointSize(3);
+  Point_Actor->GetProperty()->SetPointSize(5);
 
   return ;
 }
@@ -257,7 +271,7 @@ void VTKViewer_RenderWindowInteractor::TimerFunc() {
     return ;
   }
 
-  this->InteractorStyle->OnTimer() ;
+  ((vtkInteractorStyle*)this->InteractorStyle)->OnTimer() ;
   emit RenderWindowModified() ;
 }
 
@@ -274,7 +288,7 @@ void VTKViewer_RenderWindowInteractor::ProcessSlotConnections(bool conn) {
   // We cannot do much unless there is a render window 
   // associated with this interactor. 
   //
-  if( ! RenderWindow ) {
+  if( ! myGUIWindow ) {
     vtkErrorMacro(<< "VTKViewer_RenderWindowInteractor::Initialize(): No render window attached!") ;
     return ;
   }
@@ -295,41 +309,40 @@ void VTKViewer_RenderWindowInteractor::ProcessSlotConnections(bool conn) {
   // it works. If the dynamic_cast does not work, we flag an error
   // and get the hell out.
   //
-  VTKViewer_RenderWindow *my_render_win = dynamic_cast<VTKViewer_RenderWindow *>(RenderWindow) ;
-  if( ! my_render_win ) {
+  if( ! myGUIWindow ) {
     vtkErrorMacro(<< "VTKViewer_RenderWindowInteractor::Initialize() can only handle VTKViewer_RenderWindow.") ;
     return ;
   }
 
-  slot_func ( my_render_win, SIGNAL(ButtonPressed(const QMouseEvent *)), 
+  slot_func ( myGUIWindow, SIGNAL(ButtonPressed(const QMouseEvent *)), 
              this,          SLOT(ButtonPressed(const QMouseEvent *)) ) ;
-  slot_func( my_render_win, SIGNAL(ButtonReleased(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(ButtonReleased(const QMouseEvent *)), 
             this,          SLOT(ButtonReleased(const QMouseEvent *)) ) ;
   
   
-  slot_func( my_render_win, SIGNAL(LeftButtonPressed(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(LeftButtonPressed(const QMouseEvent *)), 
             this,          SLOT(LeftButtonPressed(const QMouseEvent *)) ) ;
-  slot_func( my_render_win, SIGNAL(LeftButtonReleased(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(LeftButtonReleased(const QMouseEvent *)), 
             this,          SLOT(LeftButtonReleased(const QMouseEvent *)) ) ;
   
-  slot_func( my_render_win, SIGNAL(MiddleButtonPressed(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(MiddleButtonPressed(const QMouseEvent *)), 
             this,          SLOT(MiddleButtonPressed(const QMouseEvent *)) ) ;
-  slot_func( my_render_win, SIGNAL(MiddleButtonReleased(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(MiddleButtonReleased(const QMouseEvent *)), 
             this,          SLOT(MiddleButtonReleased(const QMouseEvent *)) ) ;
   
-  slot_func( my_render_win, SIGNAL(RightButtonPressed(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(RightButtonPressed(const QMouseEvent *)), 
             this,          SLOT(RightButtonPressed(const QMouseEvent *)) ) ;
-  slot_func( my_render_win, SIGNAL(RightButtonReleased(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(RightButtonReleased(const QMouseEvent *)), 
             this,          SLOT(RightButtonReleased(const QMouseEvent *)) ) ;
   
-  slot_func( my_render_win, SIGNAL(MouseMove(const QMouseEvent *)), 
+  slot_func( myGUIWindow, SIGNAL(MouseMove(const QMouseEvent *)), 
             this,          SLOT(MouseMove(const QMouseEvent *)) ) ;
   
-  slot_func( my_render_win, SIGNAL(KeyPressed(QKeyEvent *)),
+  slot_func( myGUIWindow, SIGNAL(KeyPressed(QKeyEvent *)),
             this,          SLOT(KeyPressed(QKeyEvent *)) ) ;
   
   slot_func( this,          SIGNAL(RenderWindowModified()), 
-            my_render_win, SLOT(updateGL()) ) ;
+            myGUIWindow, SLOT(update()) ) ;
 
 }
 
@@ -337,13 +350,15 @@ void VTKViewer_RenderWindowInteractor::MouseMove(const QMouseEvent *event) {
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnMouseMove(0, 0, 
-                                    event->x(), 
-                                    event->y()/*this->Size[1] - event->y() - 1*/) ;
   VTKViewer_InteractorStyleSALOME* Style = 0;
   if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
     Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
-  if (!Style || Style->needsRedrawing() )
+  else {
+    emit RenderWindowModified() ; 
+    return;
+  }
+  Style->OnMouseMove(0, 0, event->x(), event->y()/*this->Size[1] - event->y() - 1*/) ;
+  if (Style->needsRedrawing() )
     emit RenderWindowModified() ; 
 }
 
@@ -351,60 +366,84 @@ void VTKViewer_RenderWindowInteractor::LeftButtonPressed(const QMouseEvent *even
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnLeftButtonDown( (event->state() & ControlButton), 
-                                          (event->state() & ShiftButton), 
-                                          event->x(),
-                                          event->y()) ;
+  VTKViewer_InteractorStyleSALOME* Style = 0;
+  if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
+    Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  else 
+    return;
+  Style->OnLeftButtonDown((event->state() & ControlButton), 
+                         (event->state() & ShiftButton), 
+                         event->x(), event->y());
 }
 
 void VTKViewer_RenderWindowInteractor::LeftButtonReleased(const QMouseEvent *event) {
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnLeftButtonUp( (event->state() & ControlButton), 
-                                        (event->state() & ShiftButton), 
-                                        event->x(),
-                                        event->y() ) ;
+  VTKViewer_InteractorStyleSALOME* Style = 0;
+  if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
+    Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  else 
+    return;
+  Style->OnLeftButtonUp( (event->state() & ControlButton), 
+                        (event->state() & ShiftButton), 
+                        event->x(), event->y() ) ;
 }
 
 void VTKViewer_RenderWindowInteractor::MiddleButtonPressed(const QMouseEvent *event) {
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnMiddleButtonDown( (event->state() & ControlButton), 
-                                            (event->state() & ShiftButton), 
-                                            event->x(),
-                                            event->y() ) ;
+  VTKViewer_InteractorStyleSALOME* Style = 0;
+  if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
+    Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  else 
+    return;
+  Style->OnMiddleButtonDown((event->state() & ControlButton), 
+                           (event->state() & ShiftButton), 
+                           event->x(), event->y() ) ;
 }
 
 void VTKViewer_RenderWindowInteractor::MiddleButtonReleased(const QMouseEvent *event) {
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnMiddleButtonUp( (event->state() & ControlButton), 
-                                          (event->state() & ShiftButton), 
-                                          event->x(),
-                                          event->y() ) ;
+  VTKViewer_InteractorStyleSALOME* Style = 0;
+  if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
+    Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  else 
+    return;
+  Style->OnMiddleButtonUp( (event->state() & ControlButton), 
+                          (event->state() & ShiftButton), 
+                          event->x(), event->y() ) ;
 }
 
 void VTKViewer_RenderWindowInteractor::RightButtonPressed(const QMouseEvent *event) {
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnRightButtonDown( (event->state() & ControlButton), 
-                                           (event->state() & ShiftButton), 
-                                           event->x(),
-                                           event->y() ) ;
+  VTKViewer_InteractorStyleSALOME* Style = 0;
+  if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
+    Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  else 
+    return;
+  Style->OnRightButtonDown( (event->state() & ControlButton), 
+                           (event->state() & ShiftButton), 
+                           event->x(), event->y() ) ;
 }
 
 void VTKViewer_RenderWindowInteractor::RightButtonReleased(const QMouseEvent *event) {
   if( ! this->Enabled ) {
     return ;
   }
-  this->InteractorStyle->OnRightButtonUp( (event->state() & ControlButton), 
-                                         (event->state() & ShiftButton), 
-                                         event->x(),
-                                         event->y() ) ;
+  VTKViewer_InteractorStyleSALOME* Style = 0;
+  if (this->InteractorStyle->IsA("VTKViewer_InteractorStyleSALOME"))
+    Style = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  else 
+    return;
+  Style->OnRightButtonUp( (event->state() & ControlButton), 
+                         (event->state() & ShiftButton), 
+                         event->x(), event->y() ) ;
 }
 
 void VTKViewer_RenderWindowInteractor::ButtonPressed(const QMouseEvent *event) {
@@ -720,6 +759,9 @@ bool VTKViewer_RenderWindowInteractor::highlight( const Handle(SALOME_Interactiv
                                                  bool hilight, 
                                                  bool update)
 {
+  VTKViewer_InteractorStyleSALOME* aStyle = VTKViewer_InteractorStyleSALOME::SafeDownCast(this->InteractorStyle);
+  if (!aStyle) return false;
+
   vtkRenderer* aren;
   for (this->RenderWindow->GetRenderers()->InitTraversal(); 
        (aren = this->RenderWindow->GetRenderers()->GetNextItem()); ) {
@@ -743,14 +785,14 @@ bool VTKViewer_RenderWindowInteractor::highlight( const Handle(SALOME_Interactiv
                  vtkActor2D *actor2D;
                  vtkProp3D *prop3D;
                  if ( (prop3D=vtkProp3D::SafeDownCast(anActor)) != NULL ) {
-                   this->InteractorStyle->HighlightProp3D(prop3D);
+                   aStyle->HighlightProp3D(prop3D);
                  } else if ( (actor2D=vtkActor2D::SafeDownCast(anActor)) != NULL ) {
-                   this->InteractorStyle->HighlightActor2D(actor2D);
+                   aStyle->HighlightActor2D(actor2D);
                  }
                  //this->InteractorStyle->HighlightProp(anActor);
                } else {
-                 this->InteractorStyle->HighlightProp3D(NULL);
-                 this->InteractorStyle->HighlightActor2D(NULL);
+                 aStyle->HighlightProp3D(NULL);
+                 aStyle->HighlightActor2D(NULL);
                  //this->InteractorStyle->HighlightProp(NULL);
                }
              }
@@ -779,7 +821,7 @@ void VTKViewer_RenderWindowInteractor::Update() {
 
     while(!(ac==NULL)) {
       ac->ApplyProperties();
-      ac->Update();
+      //VSV: No in VTK: ac->Update();
       ac = theActors->GetNextActor();
     }
     aren->ResetCamera();
@@ -961,225 +1003,169 @@ void VTKViewer_RenderWindowInteractor::rename(const Handle(SALOME_InteractiveObj
   emit RenderWindowModified() ;
 }
 
-bool VTKViewer_RenderWindowInteractor::highlightCell( const Handle(SALOME_InteractiveObject)& IObject, 
-                                                     bool hilight
-                                                     const TColStd_MapOfInteger& MapIndex, 
-                                                     bool update )
+bool VTKViewer_RenderWindowInteractor::highlight(const Handle(SALOME_InteractiveObject)& IObject, 
+                                                const TColStd_MapOfInteger& MapIndex
+                                                VTKViewer_RenderWindowInteractor::TCreateMapperFun theFun,
+                                                vtkActor *theActor, bool hilight, bool update )
 {
-  vtkRenderer* aren;
-  for (this->RenderWindow->GetRenderers()->InitTraversal(); 
-       (aren = this->RenderWindow->GetRenderers()->GetNextItem()); ) {
-    vtkActorCollection* theActors = aren->GetActors();
-    
-    if ( theActors->IsItemPresent(Cell_Actor) != 0 ) 
-      aren->RemoveActor( Cell_Actor );
-    
-    theActors->InitTraversal();
-    vtkActor *ac = theActors->GetNextActor();
-    for ( ; ac; ac = theActors->GetNextActor() ) {
-      if ( ac->IsA("SALOME_Actor") ) {
-       SALOME_Actor* anActor = SALOME_Actor::SafeDownCast( ac );
-       if ( anActor->hasIO() ) {
-         if ( IObject->isSame( anActor->getIO() ) ) {
-           vtkUnstructuredGrid* Cell_UGrid = vtkUnstructuredGrid::New();
-           vtkUnstructuredGrid* UGrid = vtkUnstructuredGrid::SafeDownCast( ac->GetMapper()->GetInput() );
-           if (UGrid == 0) break;
-           vtkIdList *ptIds = vtkIdList::New(); ptIds->Allocate(12);
-           vtkDataSetMapper* Cell_Mapper = vtkDataSetMapper::New();
-           Cell_UGrid->SetPoints( UGrid->GetPoints() );
-           TColStd_MapIteratorOfMapOfInteger ite( MapIndex );
-           for ( ; ite.More(); ite.Next() ) {
-             UGrid->GetCellPoints( ite.Key(), ptIds );
-             Cell_UGrid->InsertNextCell(ac->GetMapper()->GetInput()->GetCellType( ite.Key() ), ptIds);
+  if(MapIndex.Extent() == 0) return false;
+  vtkRenderer* aRen;
+  this->RenderWindow->GetRenderers()->InitTraversal();
+  for (; aRen = this->RenderWindow->GetRenderers()->GetNextItem(); ) {
+    vtkActorCollection* anActorColl = aRen->GetActors();
+    if ( anActorColl->IsItemPresent(theActor) != 0 ) 
+      aRen->RemoveActor(theActor);
+    anActorColl->InitTraversal();
+    vtkActor *ac = NULL;
+    for(; (ac = anActorColl->GetNextActor()) != NULL; ){
+      if(ac->IsA("SALOME_Actor")){
+       SALOME_Actor* anActor = SALOME_Actor::SafeDownCast(ac);
+       if(anActor->hasIO()){
+         if(IObject->isSame(anActor->getIO())){
+           if(vtkPolyData* aSourcePolyData = anActor->GetPolyDataInput()){
+             vtkPolyDataMapper* aMapper = vtkPolyDataMapper::New();
+             (*theFun)(aSourcePolyData,aMapper,MapIndex);
+             theActor->SetMapper(aMapper);   
+             aMapper->Delete();
+             if(anActorColl->IsItemPresent(theActor) == 0) 
+               aRen->AddActor(theActor);             
+             if(hilight)
+               theActor->VisibilityOn();
+             else
+               theActor->VisibilityOff();
+             break;
            }
-           
-           
-           Cell_Mapper->SetInput(Cell_UGrid);
-           Cell_Actor->SetMapper(Cell_Mapper);
-           
-           if ( theActors->IsItemPresent(Cell_Actor) == 0 ) 
-             aren->AddActor( Cell_Actor );           
-           
-           if ( hilight )
-             Cell_Actor->VisibilityOn();
-           else
-             Cell_Actor->VisibilityOff();
-           break;
          }
        }
       }
     }
   }
-  if (update) {
+  if(update){
     this->RenderWindow->Render();  
     emit RenderWindowModified() ;
   }
-  return 0;
+  return false;
 }
 
-bool VTKViewer_RenderWindowInteractor::highlightEdge( const Handle(SALOME_InteractiveObject)& IObject, 
-                                                     bool hilight, 
-                                                     const TColStd_MapOfInteger& MapIndex, 
-                                                     bool update )
+static void CellCreateMapper(vtkPolyData *theSourcePolyData, vtkPolyDataMapper* theMapper, 
+                     const TColStd_MapOfInteger& theMapIndex)
 {
-  vtkRenderer* aren;
-  for (this->RenderWindow->GetRenderers()->InitTraversal(); 
-       (aren = this->RenderWindow->GetRenderers()->GetNextItem()); ) {
-    vtkActorCollection* theActors = aren->GetActors();
-    theActors->InitTraversal();
-    vtkActor *ac = theActors->GetNextActor();
-    for( ; ac; ac = theActors->GetNextActor() ) {
-      if ( ac->IsA("SALOME_Actor") ) {
-       SALOME_Actor* anActor = SALOME_Actor::SafeDownCast( ac );
-       if ( anActor->hasIO() ) {
-         if ( IObject->isSame( anActor->getIO() ) ) {
-           
-           vtkUnstructuredGrid* Edge_UGrid = vtkUnstructuredGrid::New();
-           vtkUnstructuredGrid* UGrid = vtkUnstructuredGrid::SafeDownCast( ac->GetMapper()->GetInput() );
-           if (UGrid == 0) break;
-           
-           vtkDataSetMapper* Edge_Mapper = vtkDataSetMapper::New();
-           vtkCell* pickedCell;
-           vtkCell* pickedEdge;
-           int cellId, edgeId;
-           Edge_UGrid->SetPoints( UGrid->GetPoints() );
-           TColStd_MapIteratorOfMapOfInteger ite( MapIndex );
-           int numberOfIndexes = MapIndex.Extent();
-           int i, j, npts, *pts, aLen;
-
-           if ( theActors->IsItemPresent(Cell_Actor) != 0 ) {
-             Cell_Actor->VisibilityOff();
-             if ( theActors->IsItemPresent(Edge_Actor) != 0 ) {
-               vtkUnstructuredGrid* EdgeGrid = vtkUnstructuredGrid::SafeDownCast( Edge_Actor->GetMapper()->GetInput() );
-               if (EdgeGrid) {
-                 aLen = EdgeGrid->GetNumberOfCells(); 
-                 //SRN: modified traversal of edge cells.  
-                 vtkCellArray* cells = EdgeGrid->GetCells();
-                 for (i=0, cells->InitTraversal(); cells->GetNextCell(npts,pts); i++) {
-                   if(MapIndex.Contains(i))
-                     Edge_UGrid->InsertNextCell(VTK_LINE, npts, pts);
-                 }
-               }
-             }
-             vtkUnstructuredGrid* CellGrid = vtkUnstructuredGrid::SafeDownCast( Cell_Actor->GetMapper()->GetInput() );
-
-             bool isOneEdge = (MapIndex.Extent() <= 2);
-             int edgeId;
-
-             //SRN: modified finding the selected edges
-             if (CellGrid) {
-               aLen = CellGrid->GetNumberOfCells();
-               for (i=0; i<aLen; i++) {
-                 pickedCell = CellGrid->GetCell(i);
-                 int aLen2 = pickedCell->GetNumberOfEdges();
-                 for(j=0; j<aLen2; j++) {
-                   edgeId = (isOneEdge)?(-j):j;
-                   if(MapIndex.Contains(edgeId))  {
-                     pickedEdge = pickedCell->GetEdge(j);
-                     Edge_UGrid->InsertNextCell(pickedEdge->GetCellType(), pickedEdge->GetPointIds());
-                   }
-                 }
-               }
-             } 
-
-             Edge_Mapper->SetInput(Edge_UGrid);
-             Edge_Actor->SetMapper(Edge_Mapper);
-             
-             if ( theActors->IsItemPresent(Edge_Actor) == 0 ) 
-               aren->AddActor( Edge_Actor );   
-             
-             if ( hilight )
-               Edge_Actor->VisibilityOn();
-             else
-               Edge_Actor->VisibilityOff();
-           }
-           
-           break;
-         }
-       }
-      }
-    }
+  vtkPolyData* aPolyData = vtkPolyData::New();
+  aPolyData->Allocate();
+
+  vtkIdList *ptIds = vtkIdList::New(); 
+  ptIds->Allocate(theSourcePolyData->GetMaxCellSize());
+  vtkPolyDataMapper* aMapper = vtkPolyDataMapper::New();
+  aPolyData->SetPoints(theSourcePolyData->GetPoints());
+  TColStd_MapIteratorOfMapOfInteger ite(theMapIndex);
+  int aNbOfParts = theSourcePolyData->GetNumberOfCells();
+  for(; ite.More(); ite.Next()){
+    int aPartId = ite.Key();
+    if(0 > aPartId || aPartId >= aNbOfParts) break;
+    theSourcePolyData->GetCellPoints(aPartId,ptIds);
+    aPolyData->InsertNextCell(theSourcePolyData->GetCellType(aPartId),ptIds);
   }
+  ptIds->Delete();
+  theMapper->SetInput(aPolyData);  
+  aPolyData->Delete();
+}
+  
+bool VTKViewer_RenderWindowInteractor::highlightCell(const Handle(SALOME_InteractiveObject)& IObject, 
+                                                    bool hilight, 
+                                                    const TColStd_MapOfInteger& MapIndex, 
+                                                    bool update )
+{
+  return highlight(IObject,MapIndex,&CellCreateMapper,Cell_Actor,hilight,update);
+}
 
-  if (update) {
-    this->RenderWindow->Render();
-    emit RenderWindowModified();
-  }
 
-  return 0;
+static void PointCreateMapper(vtkPolyData *theSourcePolyData, vtkPolyDataMapper* theMapper, 
+                      const TColStd_MapOfInteger& theMapIndex)
+{
+  vtkPolyData* aPolyData = vtkPolyData::New();
+  aPolyData->Allocate();
+
+  vtkPoints *aPoints = vtkPoints::New();
+  vtkMaskPoints* aMaskPoints = vtkMaskPoints::New();
+  TColStd_MapIteratorOfMapOfInteger ite(theMapIndex);
+  aPoints->SetNumberOfPoints(theMapIndex.Extent());
+  int aNbOfParts = theSourcePolyData->GetNumberOfPoints();
+  for(int i = 0; ite.More(); ite.Next(),i++){
+    int aPartId = ite.Key();
+    if(0 > aPartId || aPartId >= aNbOfParts) break;
+    aPoints->SetPoint(i,theSourcePolyData->GetPoint(aPartId));
+  }
+  aPolyData->SetPoints(aPoints);
+  aPoints->Delete();
+  aMaskPoints->SetInput(aPolyData);
+  aMaskPoints->SetGenerateVertices(1);
+  aMaskPoints->SetOnRatio(1);
+  theMapper->SetInput(aMaskPoints->GetOutput());  
+  aMaskPoints->Delete();
 }
-
+  
 bool VTKViewer_RenderWindowInteractor::highlightPoint(const Handle(SALOME_InteractiveObject)& IObject, 
                                                      bool hilight, const TColStd_MapOfInteger& MapIndex, 
                                                      bool update)
 {
-  vtkRenderer* aren;
-  for (this->RenderWindow->GetRenderers()->InitTraversal(); 
-       (aren = this->RenderWindow->GetRenderers()->GetNextItem()); ) {
-    vtkActorCollection* theActors = aren->GetActors();
-    
-    if ( theActors->IsItemPresent(Point_Actor) != 0 ) 
-      aren->RemoveActor( Point_Actor );
+  return highlight(IObject,MapIndex,&PointCreateMapper,Point_Actor,hilight,update);
+}
 
-    theActors->InitTraversal();
-    vtkActor *ac = theActors->GetNextActor();
-    for ( ; ac; ac = theActors->GetNextActor() ) {
-      if ( ac->IsA("SALOME_Actor") ) {
-       SALOME_Actor* anActor = SALOME_Actor::SafeDownCast( ac );
-       if ( anActor->hasIO() ) {
-         if ( IObject->isSame( anActor->getIO() ) ) {
-           vtkUnstructuredGrid* UGrid = vtkUnstructuredGrid::SafeDownCast( ac->GetMapper()->GetInput() );
-            if (UGrid == 0) break;
-           vtkUnstructuredGrid* Point_UGrid = vtkUnstructuredGrid::New();
-           float pts[3];
-
-           vtkPoints *Points = vtkPoints::New();
-           vtkMaskPoints* verts = vtkMaskPoints::New();
-           vtkPolyDataMapper* vertMapper = vtkPolyDataMapper::New();
-
-           TColStd_MapIteratorOfMapOfInteger ite( MapIndex );
-           int i = 0;
-           //              Points->SetNumberOfPoints( MapIndex.Extent() );
-           if ( MapIndex.Extent() == 1 )
-             Points->SetNumberOfPoints( MapIndex.Extent() + 1 );
-           else
-             Points->SetNumberOfPoints( MapIndex.Extent() );
-
-           for ( ; ite.More(); ite.Next() ) {
-             UGrid->GetPoint( ite.Key(), pts) ;
-             Points->SetPoint(i, pts );
-             i++;
-             // DEBUG : it's not possible to see only one point !!!!
-             if ( MapIndex.Extent() == 1 )
-               Points->SetPoint(i, 0., 0., 0. );
-           }
-           
-           Point_UGrid->SetPoints(Points);
-           verts->SetInput(Point_UGrid);
-           verts->SetGenerateVertices(1);
-           verts->SetOnRatio(1);
-           vertMapper->SetInput(verts->GetOutput());
-           Point_Actor->SetMapper(vertMapper);
-           
-           if ( theActors->IsItemPresent(Point_Actor) == 0 ) {
-             aren->AddActor( Point_Actor );
-           }
-           
-           if ( hilight )
-             Point_Actor->VisibilityOn();
-           else
-             Point_Actor->VisibilityOff();
-           
-           break;
-         }
+  
+static void EdgeCreateMapper(vtkPolyData *theSourcePolyData, vtkPolyDataMapper* theMapper, 
+                     const TColStd_MapOfInteger& theMapIndex)
+{
+  vtkPolyData* aPolyData = vtkPolyData::New();
+  aPolyData->Allocate();
+
+  vtkIdList *ptIds = vtkIdList::New(); 
+  ptIds->Allocate(theSourcePolyData->GetMaxCellSize());
+  vtkPolyDataMapper* aMapper = vtkPolyDataMapper::New();
+  aPolyData->SetPoints(theSourcePolyData->GetPoints());
+  int aCellId = -1, aCellCounter = 0;
+  for(TColStd_MapIteratorOfMapOfInteger ite(theMapIndex); ite.More(); ite.Next()){
+    if(ite.Key() > 0){
+      aCellId = ite.Key();
+      aCellCounter++;
+    }
+  }
+  if(aCellCounter == 1){
+    vtkCell* aCell = theSourcePolyData->GetCell(aCellId);
+    if(aCell->GetCellType() <= VTK_LINE){
+      aPolyData->InsertNextCell(aCell->GetCellType(),aCell->GetPointIds());
+    }else{
+      TColStd_MapIteratorOfMapOfInteger ite(theMapIndex);
+      int aNbOfParts = aCell->GetNumberOfEdges();
+      for(; ite.More(); ite.Next()){
+       if(ite.Key() < 0){
+         int aPartId = -ite.Key()-1;
+         if(0 > aPartId || aPartId >= aNbOfParts) break;
+         vtkCell* anEdgeCell = aCell->GetEdge(aPartId);
+         aPolyData->InsertNextCell(VTK_LINE,anEdgeCell->GetPointIds());
        }
       }
     }
+  }else{
+    int aNbOfParts = theSourcePolyData->GetNumberOfCells();
+    for(TColStd_MapIteratorOfMapOfInteger ite(theMapIndex); ite.More(); ite.Next()){
+      if(ite.Key() > 0){
+       int aPartId = ite.Key();
+       if(0 > aPartId || aPartId >= aNbOfParts) break;
+       vtkCell* aCell = theSourcePolyData->GetCell(aPartId);
+       aPolyData->InsertNextCell(aCell->GetCellType(),aCell->GetPointIds());
+      }
+    }
   }
+  ptIds->Delete();
+  theMapper->SetInput(aPolyData);  
+  aPolyData->Delete();
+}
   
-  if (update) {
-    this->RenderWindow->Render();
-    emit RenderWindowModified();
-  }
-  return 0;
+
+bool VTKViewer_RenderWindowInteractor::highlightEdge( const Handle(SALOME_InteractiveObject)& IObject, 
+                                                     bool hilight, 
+                                                     const TColStd_MapOfInteger& MapIndex, 
+                                                     bool update )
+{
+  return highlight(IObject,MapIndex,&EdgeCreateMapper,Edge_Actor,hilight,update);
 }
index 92284d85e9954232dfb18a0f35e178742c9a2613..24f7dd62262df5a0c6f15f992864eadf4e16626a 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : VTKViewer_RenderWindowInteractor.h
-//  Created   : Wed Mar 20 11:31:36 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_RenderWindowInteractor.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef VTKViewer_RenderWindowInteractor_h
 // VTK Includes
 #include <vtkVersion.h>
 #include <vtkRenderWindowInteractor.h>
-#include <vtkUnstructuredGrid.h>
 
 // Open CASCADE Includes
 #include <TColStd_MapOfInteger.hxx>
 #include <TColStd_MapIteratorOfMapOfInteger.hxx>
 
-class VTKViewer_RenderWindow ;
+class VTKViewer_RenderWindow;
+class vtkPolyData;
+class vtkPolyDataMapper;
 
 // ------------------------------------------------------------
 // :TRICKY: Fri Apr 21 22:19:27 2000 Pagey
@@ -152,10 +173,20 @@ public:
 
   vtkRenderer* GetRenderer();
 
+  QWidget* getGUIWindow() {return myGUIWindow;}
+  void setGUIWindow(QWidget* theWin) { myGUIWindow = theWin;}
+
+  typedef void (*TCreateMapperFun)(vtkPolyData *theSourcePolyData, 
+                                          vtkPolyDataMapper* theMapper, 
+                                          const TColStd_MapOfInteger& theMapIndex);
  protected:
 
   VTKViewer_RenderWindowInteractor();
   ~VTKViewer_RenderWindowInteractor();
+
+  bool highlight(const Handle(SALOME_InteractiveObject)& IObject, 
+                const TColStd_MapOfInteger& MapIndex, TCreateMapperFun theFun,
+                vtkActor *theActor, bool hilight, bool update );
   //
   // Timer used during various mouse events to figure 
   // out mouse movements. 
@@ -205,6 +236,9 @@ public:
     void TimerFunc() ;
  signals:
   void RenderWindowModified() ;
+
+ private:
+  QWidget*     myGUIWindow;  
 };
 
 #endif
index a6f7c7d6edf3d8bf2e6f4469f263b6c60977306e..ae35016b9deb87044fd24857003be06a02a6473b 100644 (file)
@@ -1,15 +1,35 @@
-using namespace std;
-//  File      : VTKViewer_ViewFrame.cxx
-//  Created   : Wed Mar 20 11:29:40 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_ViewFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "VTKViewer_ViewFrame.h"
 #include "VTKViewer_RenderWindow.h"
-#include "VTKViewer_InteractorStyleSALOME.h"
+//#include "VTKViewer_InteractorStyleSALOME.h"
 
 #include "QAD_Settings.h"
 #include "QAD_Config.h"
@@ -17,6 +37,7 @@ using namespace std;
 #include "QAD_Desktop.h"
 #include "SALOME_Selection.h"
 #include "SALOME_InteractiveObject.hxx"
+#include "VTKViewer_InteractorStyleSALOME.h"
 
 #include "utilities.h"
 
@@ -27,6 +48,11 @@ using namespace std;
 #include <qapplication.h>
 
 // VTK Includes
+#include <vtkActor.h>
+#include <vtkRenderer.h>
+#include <vtkTransform.h>
+#include <vtkPolyDataMapper.h> 
+
 #include <vtkMath.h>
 #include <vtkTextSource.h>
 #include <vtkLine.h>
@@ -36,9 +62,8 @@ using namespace std;
 #include <vtkActor2D.h>
 #include <vtkWindowToImageFilter.h>
 #include <vtkTIFFWriter.h>
-
-#include <vtkTransformPolyDataFilter.h>
-#include <vtkDataSetMapper.h> 
+#include <vtkVectorText.h>
+#include <vtkFollower.h>
 
 /*!
     Constructor
@@ -48,37 +73,26 @@ VTKViewer_ViewFrame::VTKViewer_ViewFrame(QWidget* parent, const char* name)
 {
   m_ViewUp[0] = 0; m_ViewUp[1] = 0; m_ViewUp[2] = -1;
   m_ViewNormal[0] = 0; m_ViewNormal[1] = 0; m_ViewNormal[2] = 1;
+  m_Transform = SALOME_Transform::New();
 
   //  m_InitialSetupDone = false ;
   InitialSetup();
-
-  m_NonIsometricTransform = NULL;
-
 }
 
 
-static vtkActor* CreateTextActor(char *text) {
-    
-  vtkTextSource* XLabel = vtkTextSource::New();
-  XLabel->SetForegroundColor(1,1,1);
-  XLabel->SetBackgroundColor(0,0,0);
-  XLabel->SetText(text);
-
-  vtkActor* XLabelActor =  vtkActor::New();
-  
-  vtkPolyDataMapper* text1Mapper = vtkPolyDataMapper::New();
-  text1Mapper->SetInput(XLabel->GetOutput());
-
-  XLabelActor->SetMapper(text1Mapper);
-  XLabelActor->SetScale(1,1,1);
-
-  return XLabelActor;
+vtkFollower* CreateTextActor(char *text, float aSize) {
+  vtkVectorText* aTxt = vtkVectorText::New();
+  aTxt->SetText(text);
+  vtkPolyDataMapper* textMapper = vtkPolyDataMapper::New();
+  textMapper->SetInput(aTxt->GetOutput());
+  vtkFollower* textActor = vtkFollower::New();
+  textActor->SetMapper(textMapper);
+  float aScale = 6 * aSize/100;
+  textActor->SetScale(aScale, aScale, aScale);
+  return textActor;
 }
 
-void VTKViewer_ViewFrame::AddVector(float* o,float* p,vtkRenderer* renderer) {
-  
-  // Create line
-
+void VTKViewer_ViewFrame::AddVector(float* o,float* p,vtkRenderer* renderer, float aSize) {
   vtkPoints* myPoints = vtkPoints::New();
   vtkLine* myLine = vtkLine::New();
 
@@ -109,13 +123,7 @@ void VTKViewer_ViewFrame::AddVector(float* o,float* p,vtkRenderer* renderer) {
 
   vtkConeSource* acone =  vtkConeSource::New();
 
-  float dim;
-  QString Size = QAD_CONFIG->getSetting("Viewer:TrihedronSize");
-  if( Size.isEmpty() ) {
-    dim = 100;
-  } else {
-    dim = Size.toFloat();
-  }
+  float dim = aSize;
 
   acone->SetResolution(2);
   //  acone->SetAngle(70);
@@ -131,28 +139,25 @@ void VTKViewer_ViewFrame::AddVector(float* o,float* p,vtkRenderer* renderer) {
   float rot[3];
   rot[0]=0; rot[1]=0; rot[2]=0;
 
+  vtkFollower* aTextActor;
+
+  coneActor->AddPosition(p);
   if(p[0]!=0) {
     // x
-    coneActor->AddPosition(p);
+    aTextActor = CreateTextActor("X", dim);
+  } else if(p[1]!=0) {
+    // y
+    rot[2]=90;
+    coneActor->AddOrientation(rot);
+    aTextActor = CreateTextActor("Y", dim);
+  } else if(p[2]!=0) {
+    // z
+    rot[1]=-90;
+    coneActor->AddOrientation(rot);
+    aTextActor = CreateTextActor("Z", dim);
   }
-  else {
-    if(p[1]!=0) {
-      // y
-      coneActor->AddPosition(p);
-      rot[2]=90;
-      coneActor->AddOrientation(rot);
-    }
-    else {
-      if(p[2]!=0) {
-       // z
-       coneActor->AddPosition(p);   
-       rot[1]=-90;
-       coneActor->AddOrientation(rot);
-      }
-    }
-  }
-
-  // Create 2d TEXT
+  aTextActor->AddPosition(p);
+  aTextActor->SetCamera(renderer->GetActiveCamera());
 
   coneActor->GetProperty()->SetInterpolation(1);
   coneActor->GetProperty()->SetRepresentationToSurface();
@@ -167,19 +172,26 @@ void VTKViewer_ViewFrame::AddVector(float* o,float* p,vtkRenderer* renderer) {
   lineActor->GetProperty()->SetAmbientColor(1,1,1);
   lineActor->GetProperty()->SetDiffuseColor(0.7,0.7,0.7);
   lineActor->GetProperty()->SetSpecularColor(0.7,0.7,0.7);
+
+  aTextActor->GetProperty()->SetAmbient(1);
+  aTextActor->GetProperty()->SetAmbientColor(1,1,1);
+  aTextActor->GetProperty()->SetDiffuseColor(0.7,0.7,0.7);
+  aTextActor->GetProperty()->SetSpecularColor(0.7,0.7,0.7);
      
   coneActor->PickableOff();
   lineActor->PickableOff();
+  aTextActor->PickableOff();
   
   m_Triedron->AddItem(coneActor);
   m_Triedron->AddItem(lineActor);
+  m_Triedron->AddItem(aTextActor);
 
   renderer->AddActor(coneActor);
   renderer->AddActor(lineActor);
+  renderer->AddActor(aTextActor);
 }  
 
-bool VTKViewer_ViewFrame::isTrihedronDisplayed()
-{
+bool VTKViewer_ViewFrame::isTrihedronDisplayed() {
   m_Triedron->InitTraversal();
   vtkActor *ac = m_Triedron->GetNextActor();
   while(!(ac==NULL)) {
@@ -200,12 +212,11 @@ void VTKViewer_ViewFrame::SetTrihedronSize(int size)
 
   m_Triedron->RemoveAllItems();
   AddAxis(m_Renderer);
-  m_RW->updateGL();
+  m_RW->update();
 }
 
 
-void VTKViewer_ViewFrame::AddAxis(vtkRenderer* renderer) {
-  
+void VTKViewer_ViewFrame::AddAxis(vtkRenderer* renderer) {  
   float origine[3];
   float X[3];
   float Y[3];
@@ -224,9 +235,9 @@ void VTKViewer_ViewFrame::AddAxis(vtkRenderer* renderer) {
   Y[0]=origine[0];     Y[1]=origine[0]+dim; Y[2]=origine[0];
   Z[0]=origine[0];     Z[1]=origine[0];     Z[2]=origine[0]+dim;
 
-  AddVector(origine,X,renderer);
-  AddVector(origine,Y,renderer);
-  AddVector(origine,Z,renderer);
+  AddVector(origine,X,renderer, dim);
+  AddVector(origine,Y,renderer, dim);
+  AddVector(origine,Z,renderer, dim);
  
 }
 
@@ -235,72 +246,49 @@ void VTKViewer_ViewFrame::AddAxis(vtkRenderer* renderer) {
 */
 QWidget* VTKViewer_ViewFrame::getViewWidget() 
 {
-  return (QWidget*)getRW();
-}
-
-
-void VTKViewer_ViewFrame::setRW(VTKViewer_RenderWindow* rw) {
-  m_RW = rw;
+  return m_RW;
 }
 
 
 void VTKViewer_ViewFrame::InitialSetup() {
-  //
-  // Create a render window.
-  //
-  m_RW = new VTKViewer_RenderWindow(this,"");
-  //
-  // Create a renderer for this widget.
-  //
   m_Renderer = vtkRenderer::New() ;
-  m_RW->AddRenderer(m_Renderer) ;
 
+  m_RW = new VTKViewer_RenderWindow(this, "RenderWindow");
+  m_RW->getRenderWindow()->AddRenderer(m_Renderer);
 
-  vtkCamera* camera = vtkCamera::New();
-  camera->SetPosition(1,-1,1);
-  camera->SetParallelProjection(true);
-  camera->SetRoll(-60);
+  m_Renderer->GetActiveCamera()->ParallelProjectionOn();
+  m_Renderer->LightFollowCameraOn();
+
+  // Set BackgroundColor
+  QString BgrColorRed   = QAD_CONFIG->getSetting("VTKViewer:BackgroundColorRed");
+  QString BgrColorGreen = QAD_CONFIG->getSetting("VTKViewer:BackgroundColorGreen");
+  QString BgrColorBlue  = QAD_CONFIG->getSetting("VTKViewer:BackgroundColorBlue");
 
+  if( !BgrColorRed.isEmpty() && !BgrColorGreen.isEmpty() && !BgrColorBlue.isEmpty() ) 
+    m_Renderer->SetBackground( BgrColorRed.toInt()/255., BgrColorGreen.toInt()/255., BgrColorBlue.toInt()/255. );
+  else
+    m_Renderer->SetBackground( 0, 0, 0 );
   // CREATE AXIS
   m_Triedron = vtkActorCollection::New();
   AddAxis(m_Renderer);
  
-  // Set BackgroundColor
-  QString BackgroundColorRed   = QAD_CONFIG->getSetting("VTKViewer:BackgroundColorRed");
-  QString BackgroundColorGreen = QAD_CONFIG->getSetting("VTKViewer:BackgroundColorGreen");
-  QString BackgroundColorBlue  = QAD_CONFIG->getSetting("VTKViewer:BackgroundColorBlue");
+  // Create an interactor.
+  m_RWInteractor = VTKViewer_RenderWindowInteractor::New();
+  m_RWInteractor->setGUIWindow(m_RW);
+  m_RWInteractor->SetRenderWindow(m_RW->getRenderWindow());
 
-  if( !BackgroundColorRed.isEmpty() && !BackgroundColorGreen.isEmpty() && !BackgroundColorBlue.isEmpty() ) 
-    m_Renderer->SetBackground( BackgroundColorRed.toInt()/255., BackgroundColorGreen.toInt()/255., BackgroundColorBlue.toInt()/255. );
-  else
-    m_Renderer->SetBackground( 0, 0 , 0 );
+  VTKViewer_InteractorStyleSALOME* RWS = VTKViewer_InteractorStyleSALOME::New();
+  RWS->setGUIWindow(m_RW);
+  m_RWInteractor->SetInteractorStyle(RWS); 
 
-  //
-  // Create an interactor.
-  //
-  m_RWInteractor = VTKViewer_RenderWindowInteractor::New() ;
-  m_RWInteractor->SetRenderWindow(m_RW) ;
-  //
-  // :TRICKY: Tue May  2 19:29:36 2000 Pagey
-  // The order of the next two statements is very 
-  // important. The interactor must be initialized
-  // before rendering. 
-  //
   m_RWInteractor->Initialize();
-  m_Renderer->Render() ;
-  m_Renderer->SetActiveCamera(camera);
-  m_Renderer->ResetCamera();  
-  camera->Zoom(0.3);
-  VTKViewer_InteractorStyleSALOME* RWS = dynamic_cast<VTKViewer_InteractorStyleSALOME*>(getRWInteractor()->GetInteractorStyle());
-  if (RWS) {
-    RWS->setTriedron( m_Triedron );
-    //SRN: additional initialization, to init CurrentRenderer of vtkInteractorStyle 
-    RWS->FindPokedRenderer(0, 0);
-  }
-
-  m_RW->updateGL() ;
+  RWS->setTriedron( m_Triedron );
+  //SRN: additional initialization, to init CurrentRenderer of vtkInteractorStyle 
+  RWS->FindPokedRenderer(0, 0);
 
   setCentralWidget( m_RW );
+  onViewReset();
 }
 
 VTKViewer_ViewFrame::~VTKViewer_ViewFrame() {
@@ -309,16 +297,14 @@ VTKViewer_ViewFrame::~VTKViewer_ViewFrame() {
   // this RenderWindow, we assign a NULL RenderWindow to 
   // it before deleting it.
   //
-  if ( m_NonIsometricTransform )
-    m_NonIsometricTransform->Delete() ;
+  m_Transform->Delete() ;
     
   m_RWInteractor->SetRenderWindow(NULL) ;
   m_RWInteractor->Delete() ;
   
-  m_RW->Delete() ;
+  //m_RW->Delete() ;
 
-  // NRI : BugID 1137.
-  //  m_Renderer->Delete() ;
+  // NRI : BugID 1137:  m_Renderer->Delete() ;
 }
 
 
@@ -344,20 +330,20 @@ void VTKViewer_ViewFrame::onViewTrihedron()
     }
     m_TriedronVisible = true;
   }  
-  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
   Provides top projection of the active view
 */
 void VTKViewer_ViewFrame::onViewTop() {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera();
+  camera->SetFocalPoint(0,0,0);
   camera->SetPosition(0,0,1);
-  camera->SetParallelProjection(true);
-  m_Renderer->SetActiveCamera(camera);
-//  m_Renderer->ResetCamera();  
+  camera->SetViewUp(0,1,0);
+  m_Renderer->ResetCamera();  
   onViewFitAll();
-//  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -365,13 +351,13 @@ void VTKViewer_ViewFrame::onViewTop() {
 */
 void VTKViewer_ViewFrame::onViewBottom()
 {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera();
+  camera->SetFocalPoint(0,0,0);
   camera->SetPosition(0,0,-1);
-  camera->SetParallelProjection(true);
-  m_Renderer->SetActiveCamera(camera);
-//  m_Renderer->ResetCamera();  
+  camera->SetViewUp(0,1,0);
+  m_Renderer->ResetCamera();  
   onViewFitAll();
-//  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -379,13 +365,13 @@ void VTKViewer_ViewFrame::onViewBottom()
 */
 void VTKViewer_ViewFrame::onViewLeft()    
 {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera(); 
+  camera->SetFocalPoint(0,0,0);
   camera->SetPosition(0,1,0);
-  camera->SetParallelProjection(true);
-  m_Renderer->SetActiveCamera(camera);
-//  m_Renderer->ResetCamera();  
+  camera->SetViewUp(0,0,1);
+  m_Renderer->ResetCamera();  
   onViewFitAll();
-//  m_RW->updateGL(); 
+  m_RW->update(); 
 }
 
 /*!
@@ -393,13 +379,13 @@ void VTKViewer_ViewFrame::onViewLeft()
 */
 void VTKViewer_ViewFrame::onViewRight()
 {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera();
+  camera->SetFocalPoint(0,0,0);
   camera->SetPosition(0,-1,0);
-  camera->SetParallelProjection(true);
-  m_Renderer->SetActiveCamera(camera);
-//  m_Renderer->ResetCamera();  
+  camera->SetViewUp(0,0,1);
+  m_Renderer->ResetCamera();  
   onViewFitAll();
-//  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -407,13 +393,13 @@ void VTKViewer_ViewFrame::onViewRight()
 */
 void VTKViewer_ViewFrame::onViewBack()
 {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera();
   camera->SetPosition(-1,0,0);
-  camera->SetParallelProjection(true);
-  m_Renderer->SetActiveCamera(camera);
-//  m_Renderer->ResetCamera();  
+  camera->SetFocalPoint(0,0,0);
+  camera->SetViewUp(0,0,1);
+  m_Renderer->ResetCamera();  
   onViewFitAll();
-//  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -421,13 +407,13 @@ void VTKViewer_ViewFrame::onViewBack()
 */
 void VTKViewer_ViewFrame::onViewFront()
 {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera();
   camera->SetPosition(1,0,0);
-  camera->SetParallelProjection(true);
-  m_Renderer->SetActiveCamera(camera);
-//  m_Renderer->ResetCamera();  
+  camera->SetFocalPoint(0,0,0);
+  camera->SetViewUp(0,0,1);
+  m_Renderer->ResetCamera();  
   onViewFitAll();
-//  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -435,15 +421,14 @@ void VTKViewer_ViewFrame::onViewFront()
 */
 void VTKViewer_ViewFrame::onViewReset()    
 {
-  vtkCamera* camera = vtkCamera::New();
+  vtkCamera* camera = m_Renderer->GetActiveCamera();
   camera->SetPosition(1,-1,1);
-  camera->SetParallelProjection(true);
-  camera->SetRoll(-60);
-  m_Renderer->SetActiveCamera(camera);
+  camera->SetFocalPoint(0,0,0);
+  camera->SetViewUp(0,0,1);
   m_Renderer->ResetCamera();  
+  camera->SetParallelScale(500);
   m_Renderer->ResetCameraClippingRange();
-  camera->Zoom(0.3);
-  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -491,7 +476,6 @@ void VTKViewer_ViewFrame::onViewPan()
 */
 void VTKViewer_ViewFrame::onViewFitArea()
 {
-
   VTKViewer_InteractorStyleSALOME* RWS = dynamic_cast<VTKViewer_InteractorStyleSALOME*>(getRWInteractor()->GetInteractorStyle());
   if (RWS)
     RWS->startFitArea();
@@ -627,7 +611,7 @@ static void ResetCamera(vtkRenderer* theRenderer){
 
   // update the camera
   theRenderer->GetActiveCamera()->SetFocalPoint(center[0],center[1],center[2]);
 theRenderer->GetActiveCamera()->SetPosition(center[0]+distance*vn[0],
+ theRenderer->GetActiveCamera()->SetPosition(center[0]+distance*vn[0],
                                   center[1]+distance*vn[1],
                                   center[2]+distance*vn[2]);
   // setup default parallel scale
@@ -663,7 +647,7 @@ void VTKViewer_ViewFrame::onViewFitAll()
       ResetCamera(m_Renderer); 
   }
   //m_Renderer->ResetCameraClippingRange();
-  m_RW->updateGL();
+  m_RW->update();
 }
 
 /*!
@@ -710,7 +694,6 @@ void VTKViewer_ViewFrame::highlight( const Handle(SALOME_InteractiveObject)& IOb
 {
   QAD_Study* ActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
   SALOME_Selection* Sel = SALOME_Selection::Selection( ActiveStudy->getSelection() );
-
   if ( Sel->SelectionMode() == 4 )
     m_RWInteractor->highlight(IObject, highlight, update);
   else if ( Sel->SelectionMode() == 3 ) {
@@ -766,9 +749,9 @@ void VTKViewer_ViewFrame::undo(SALOMEDS::Study_var aStudy,
       if ( anActor->hasIO() ) {
        Handle(SALOME_InteractiveObject) IO = anActor->getIO();
        if ( IO->hasEntry() ) { 
-         if (!QAD_ViewFrame::isInViewer(aStudy, IO->getEntry(), StudyFrameEntry)) {
+         /*if (!QAD_ViewFrame::isInViewer(aStudy, IO->getEntry(), StudyFrameEntry)) {
            m_RWInteractor->Erase(IO);
-         }
+           }*/
        }
       }
     }
@@ -794,8 +777,8 @@ void VTKViewer_ViewFrame::redo(SALOMEDS::Study_var aStudy,
          if ( anActor->hasIO() ) {
            Handle(SALOME_InteractiveObject) IO = anActor->getIO();
            if ( IO->hasEntry() ) { 
-             if ( strcmp(IO->getEntry(),RefSO->GetID()) == 0 )
-               m_RWInteractor->Display(IO);
+             /*if ( strcmp(IO->getEntry(),RefSO->GetID()) == 0 )
+               m_RWInteractor->Display(IO);*/
            }
          }
        }
@@ -936,51 +919,36 @@ void VTKViewer_ViewFrame::EraseAll()
 
 void VTKViewer_ViewFrame::Repaint()
 {
-  m_RWInteractor->Render();
-  m_RW->updateGL();
+  // m_RWInteractor->Render();
+  m_RW->update();
 }
 
-void VTKViewer_ViewFrame::AddActor( SALOME_Actor* theActor, bool update /*=false*/ )
-{
-  m_Renderer->AddActor( theActor );
-  if (m_NonIsometricTransform != NULL)
-    {
-      vtkPolyDataMapper* mapper = NULL;
-      vtkMapper* initialMapper = theActor->GetInitialMapper();
-      if ( initialMapper == NULL )
-       initialMapper =   theActor->GetMapper();
-      if ( initialMapper->IsA("vtkDataSetMapper") )
-       {
-         mapper = vtkDataSetMapper::SafeDownCast( initialMapper )->GetPolyDataMapper ();
-         if (!mapper)
-           {
-             initialMapper->Render(m_Renderer,theActor);
-             mapper = vtkDataSetMapper::SafeDownCast( initialMapper )->GetPolyDataMapper ();
-           }
-       }
-      else
-       mapper = vtkPolyDataMapper::SafeDownCast( initialMapper );
-      if (mapper)
-       {
-         //create Filter
-         vtkTransformPolyDataFilter *aTransformFilter = vtkTransformPolyDataFilter::New();
-         aTransformFilter->SetInput ( mapper->GetInput() );
-         aTransformFilter->SetTransform (m_NonIsometricTransform);
-
-         //create new mapper
-         vtkPolyDataMapper *aMapper = vtkPolyDataMapper::New();
-         aMapper->SetInput (aTransformFilter->GetOutput());
-         aMapper->ShallowCopy ( theActor->GetMapper());
-
-         //set new mapper
-         theActor->SetMapper (aMapper);
-                 
-         aTransformFilter->Delete();
-         aMapper->Delete();
-       }
-    } 
-  theActor->SetVisibility( true );
-  
-  if (update)
+void VTKViewer_ViewFrame::GetScale(double theScale[3]){
+  m_Transform->GetScale(theScale);
+}
+
+void VTKViewer_ViewFrame::SetScale(double theScale[3]){
+  m_Transform->SetScale(theScale[0], theScale[1], theScale[2]);
+  m_Transform->Modified();
+  Repaint();
+}
+
+void VTKViewer_ViewFrame::AddActor( SALOME_Actor* theActor, bool update /*=false*/ ){
+  theActor->SetVisibility(true);
+  theActor->AddToRender(m_Renderer);
+  theActor->SetTransform(m_Transform);
+  if(update){
+    m_Renderer->ResetCameraClippingRange();
+    m_RWInteractor->Render();
+  }
+}
+
+void VTKViewer_ViewFrame::RemoveActor( SALOME_Actor* theActor, bool update /*=false*/ ){
+  theActor->RemoveFromRender(m_Renderer);
+  if(update){
+    m_Renderer->ResetCameraClippingRange();
     m_RWInteractor->Render();
+  }
 }
+
+
index 36988eab2f9de6b6f9821dd4e9689d14147fe20c..64467faa64a600607bf222e67111cc996a9463ab 100644 (file)
@@ -1,42 +1,57 @@
-//  File      : VTKViewer_ViewFrame.h
-//  Created   : Wed Mar 20 11:27:26 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : VTKViewer
-//  Copyright : Open CASCADE 2002
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : VTKViewer_ViewFrame.h
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
 #ifndef VTKViewer_ViewFrame_H
 #define VTKViewer_ViewFrame_H
 
-#include "VTKViewer_RenderWindowInteractor.h"
-#include "VTKViewer_RenderWindow.h"
-#include "VTKViewer_NonIsometricTransform.h"
-
 #include "QAD.h"
 #include "QAD_ViewFrame.h"
 
-// VTK Includes
-#include <vtkAxes.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkActor.h>
-#include <vtkRenderer.h>
+#include "VTKViewer_RenderWindowInteractor.h"
+#include "VTKViewer_RenderWindow.h"
 
-class QAD_EXPORT VTKViewer_ViewFrame : public QAD_ViewFrame
-{
-  Q_OBJECT
+// VTK Includes
+class vtkRenderer;
+class vtkActorCollection;
+class vtkTransform;
 
-    public:
+class QAD_EXPORT VTKViewer_ViewFrame : public QAD_ViewFrame{
+  Q_OBJECT;
+ public:
   VTKViewer_ViewFrame(QWidget* parent, const char* name=0 );
   ~VTKViewer_ViewFrame();
-
+  
   ViewType                       getTypeView() const{ return VIEW_VTK;};
   QWidget*                       getViewWidget();
   vtkRenderer*                   getRenderer() {return m_Renderer;}
 
-  void                               setRW(VTKViewer_RenderWindow* rw);
-  VTKViewer_RenderWindow*           getRW() {return m_RW;}
-  VTKViewer_RenderWindowInteractor*  getRWInteractor() {return m_RWInteractor;}
+  VTKViewer_RenderWindow*       getRW() {return m_RW;}
+  VTKViewer_RenderWindowInteractor* getRWInteractor() {return m_RWInteractor;}
 
   bool                           isTrihedronDisplayed();
   void                           SetTrihedronSize( int dim );
@@ -76,22 +91,14 @@ class QAD_EXPORT VTKViewer_ViewFrame : public QAD_ViewFrame
   void           EraseAll();
   void           Repaint();
 
-  /* non-isometric transformation */
-  void setNonIsometricTransform (VTKViewer_NonIsometricTransform *NonIsometricTransform)
-    {
-      m_NonIsometricTransform = NonIsometricTransform;
-    }
-  VTKViewer_NonIsometricTransform * getNonIsometricTransform () 
-    { 
-      if ( m_NonIsometricTransform == NULL )
-       m_NonIsometricTransform = VTKViewer_NonIsometricTransform::New();
-      return m_NonIsometricTransform; 
-    }
   //apply existing transformation on adding SALOME_Actor
+  void SetScale(double theScale[3]);
+  void GetScale(double theScale[3]);
   void AddActor(SALOME_Actor*, bool update = false);
+  void RemoveActor(SALOME_Actor*, bool update = false);
 
  private:
-  void AddVector(float* o,float* p,vtkRenderer* renderer);
+  void AddVector(float* o,float* p,vtkRenderer* renderer, float aSize);
   void AddAxis(vtkRenderer* renderer);
  
  public slots:
@@ -123,7 +130,6 @@ class QAD_EXPORT VTKViewer_ViewFrame : public QAD_ViewFrame
   Standard_Boolean              m_TriedronVisible;
   vtkActorCollection*           m_Triedron;  
 
-  VTKViewer_NonIsometricTransform *m_NonIsometricTransform;
-
+  SALOME_Transform *m_Transform;
 };
 #endif