Xcos: fix bugs when loading XCOS or ZCOS files 75/17375/2
authorClément DAVID <clement.david@scilab-enterprises.com>
Thu, 22 Oct 2015 07:57:47 +0000 (09:57 +0200)
committerClément DAVID <clement.david@scilab-enterprises.com>
Thu, 22 Oct 2015 15:50:49 +0000 (17:50 +0200)
commitaca09d49c87bc788d7783ffdbcbb8766ac7341f8
tree2bf676eb62a0252be57bf87779e39941d8b93b7d
parent4300d2f471aaf609ec1df506212262caf8463a19
Xcos: fix bugs when loading XCOS or ZCOS files

* Add an UID for Annotation, Link and Port
* decode link's inner ports
* manage duplicated id element (are invalid xml) PARTIAL FIX
* Render blocks well (size and flip)

Change-Id: I416782be9c73744fe082d2932ca396bf543018d2
21 files changed:
scilab/modules/scicos/src/cpp/Model_getObjectProperties.cpp
scilab/modules/scicos/src/cpp/Model_setObjectProperties.cpp
scilab/modules/scicos/src/cpp/model/Annotation.hxx
scilab/modules/scicos/src/cpp/model/Block.hxx
scilab/modules/scicos/src/cpp/model/Link.hxx
scilab/modules/scicos/src/cpp/model/Port.hxx
scilab/modules/scicos/src/cpp/view_scilab/GraphicsAdapter.cpp
scilab/modules/xcos/src/java/org/scilab/modules/xcos/UpdateStyleFromInterfunctionAdapter.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/FlipAction.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/MirrorAction.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/RotateAction.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/model/XcosCell.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/model/XcosCellFactory.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/ScilabTypeCoder.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/XcosFileType.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/BlockHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/CustomHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/LinkHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/PortHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/RawDataHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/SAXHandler.java