Xcos MVC: Fixed objects content for compatibility between Scicos and Xcos 19/17119/8
authorPaul Bignier <paul.bignier@scilab-enterprises.com>
Tue, 25 Aug 2015 13:15:55 +0000 (15:15 +0200)
committerClément DAVID <clement.david@scilab-enterprises.com>
Wed, 28 Oct 2015 16:09:02 +0000 (17:09 +0100)
commit13c2c59168332dafdf1b00fcddf1814df7176bba
tree8b82473f5600bc5abf34c812504d193116962b40
parent4e475d31c7a472d876ae03aa42010cba0c529526
Xcos MVC: Fixed objects content for compatibility between Scicos and Xcos

 * A superblock still contains children information but not the whole diargam anymore: it is regenerated on demand

 * Example to show that all model elements are cleared (here with SuperBlock):
 grep "objectCreated" tests/unit_tests/model/SuperBlock.dia.ref | wc -l
  = 83
 grep "objectDeleted" tests/unit_tests/model/SuperBlock.dia.ref | wc -l
  = 83

Change-Id: I89c82e65d05cc838b0e270b87d9ba90717ae6878
26 files changed:
scilab/modules/scicos/src/cpp/Model_getObjectProperties.cpp
scilab/modules/scicos/src/cpp/Model_setObjectProperties.cpp
scilab/modules/scicos/src/cpp/model/Block.hxx
scilab/modules/scicos/src/cpp/model/Block.hxx.orig [new file with mode: 0644]
scilab/modules/scicos/src/cpp/view_scilab/BlockAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/BlockAdapter.hxx
scilab/modules/scicos/src/cpp/view_scilab/DiagramAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/DiagramAdapter.hxx
scilab/modules/scicos/src/cpp/view_scilab/LinkAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.cpp.orig [new file with mode: 0644]
scilab/modules/scicos/src/cpp/view_scilab/ports_management.hxx
scilab/modules/scicos/tests/unit_tests/model/Block.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Block_copy_list.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Consecutive_init.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Deep_cloning.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Delete_objects.dia.ref
scilab/modules/scicos/tests/unit_tests/model/Diagram.dia.ref
scilab/modules/scicos/tests/unit_tests/model/SubDiagram_context.dia.ref [new file with mode: 0644]
scilab/modules/scicos/tests/unit_tests/model/SubDiagram_context.tst [new file with mode: 0644]
scilab/modules/scicos/tests/unit_tests/model/SuperBlock.dia.ref
scilab/modules/scicos/tests/unit_tests/model/SuperBlock_in_SuperBlock.dia.ref
scilab/modules/scicos/tests/unit_tests/model/clone_extract.dia.ref
scilab/modules/scicos/tests/unit_tests/model/from_mlist.dia.ref
scilab/modules/scicos/tests/unit_tests/model/link_preservation.dia.ref
scilab/modules/scicos/tests/unit_tests/model/simple_delete.dia.ref