Xcos MVC: implement firing / dep_ut / label / nzcross / nmode
[scilab.git] / scilab / modules / scicos / src / cpp / Model_getObjectProperties.cpp
index 0ef0b3c..e1effc0 100644 (file)
@@ -70,6 +70,9 @@ bool Model::getObjectProperty(ScicosID uid, kind_t k, object_properties_t p, dou
         model::Port* o = static_cast<model::Port*>(getObject(uid));
         switch (p)
         {
+            case FIRING:
+                o->getFiring(v);
+                return true;
             default:
                 break;
         }
@@ -100,6 +103,12 @@ bool Model::getObjectProperty(ScicosID uid, kind_t k, object_properties_t p, int
             case SIM_BLOCKTYPE:
                 o->getSimBlocktype(v);
                 return true;
+            case NZCROSS:
+                o->getNZcross(v);
+                return true;
+            case NMODE:
+                o->getNMode(v);
+                return true;
             default:
                 break;
         }
@@ -396,6 +405,9 @@ bool Model::getObjectProperty(ScicosID uid, kind_t k, object_properties_t p, std
         model::Block* o = static_cast<model::Block*>(getObject(uid));
         switch (p)
         {
+            case SIM_DEP_UT:
+                o->getSimDepUT(v);
+                return true;
             default:
                 break;
         }