Xcos MVC: implement state / dstate / blocktype
[scilab.git] / scilab / modules / scicos / src / cpp / Model_getObjectProperties.cpp
index 307c203..0ef0b3c 100644 (file)
@@ -97,6 +97,9 @@ bool Model::getObjectProperty(ScicosID uid, kind_t k, object_properties_t p, int
             case SIM_FUNCTION_API:
                 o->getSimFunctionApi(v);
                 return true;
+            case SIM_BLOCKTYPE:
+                o->getSimBlocktype(v);
+                return true;
             default:
                 break;
         }
@@ -348,6 +351,12 @@ bool Model::getObjectProperty(ScicosID uid, kind_t k, object_properties_t p, std
             case ANGLE:
                 o->getAngle(v);
                 return true;
+            case STATE:
+                o->getState(v);
+                return true;
+            case DSTATE:
+                o->getDState(v);
+                return true;
             default:
                 break;
         }