Xcos MVC: slight improvements in Adapters 72/15672/12
authorPaul Bignier <paul.bignier@scilab-enterprises.com>
Mon, 8 Dec 2014 15:17:47 +0000 (16:17 +0100)
committerClément DAVID <clement.david@scilab-enterprises.com>
Wed, 17 Dec 2014 17:04:32 +0000 (18:04 +0100)
commitbce872924efe5888ff7f1c09d8531dafadd4a088
tree5da2787a0223dcc21caecdbab5b0575097e59bd7
parente169e17e368ea8b0d78f4bcc29e3cd95eac70349
Xcos MVC: slight improvements in Adapters

 * Allow consecutive initialization thanks to data protection in DiagramAdapter.cpp
 * Allow negative values for 'from' and 'to' block field Link properties
 * Give dummy properties to Cpr and State Adapters to be able to use them, returned as TLists
 * Copy a Block's 'doc_content' field when inserting it in a diagram
 * is_valid() now logically treats link_t items
 * Regenerate ref test files

Change-Id: Id068c30d18e110b486ccbbcfd336335c623d28a7
17 files changed:
scilab/modules/scicos/includes/adapters_utilities.hxx
scilab/modules/scicos/macros/scicos_scicos/scicos_state.sci
scilab/modules/scicos/sci_gateway/cpp/sci_scicos_new.cpp
scilab/modules/scicos/src/cpp/view_scilab/BaseAdapter.hxx
scilab/modules/scicos/src/cpp/view_scilab/BlockAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/CprAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/DiagramAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/LinkAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/LinkAdapter.hxx
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.hxx
scilab/modules/scicos/src/cpp/view_scilab/StateAdapter.cpp
scilab/modules/scicos/src/cpp/view_scilab/ports_management.hxx
scilab/modules/scicos/tests/unit_tests/model/Consecutive_init.dia.ref [new file with mode: 0644]
scilab/modules/scicos/tests/unit_tests/model/Consecutive_init.tst [new file with mode: 0644]
scilab/modules/scicos/tests/unit_tests/model/Cpr_State.dia.ref [new file with mode: 0644]
scilab/modules/scicos/tests/unit_tests/model/Cpr_State.tst [new file with mode: 0644]