Xcos MVC: implement xx / yy / id / thick / ct
[scilab.git] / scilab / modules / scicos / src / cpp / Model_setObjectProperties.cpp
index 7c78411..d30e4d8 100644 (file)
@@ -122,6 +122,10 @@ update_status_t Model::setObjectProperty(ScicosID uid, kind_t k, object_properti
         model::Link* o = static_cast<model::Link*>(getObject(uid));
         switch (p)
         {
+            case COLOR:
+                return o->setColor(v);
+            case KIND:
+                return o->setKind(v);
             default:
                 break;
         }
@@ -236,6 +240,8 @@ update_status_t Model::setObjectProperty(ScicosID uid, kind_t k, object_properti
         model::Port* o = static_cast<model::Port*>(getObject(uid));
         switch (p)
         {
+            case SOURCE_BLOCK:
+                return o->setSourceBlock(v);
             default:
                 break;
         }
@@ -287,6 +293,8 @@ update_status_t Model::setObjectProperty(ScicosID uid, kind_t k, object_properti
         model::Link* o = static_cast<model::Link*>(getObject(uid));
         switch (p)
         {
+            case LABEL:
+                return o->setLabel(v);
             default:
                 break;
         }
@@ -354,6 +362,10 @@ update_status_t Model::setObjectProperty(ScicosID uid, kind_t k, object_properti
         model::Link* o = static_cast<model::Link*>(getObject(uid));
         switch (p)
         {
+            case CONTROL_POINTS:
+                return o->setControlPoints(v);
+            case THICK:
+                return o->setThick(v);
             default:
                 break;
         }