Xcos MVC: implement xx / yy / id / thick / ct
[scilab.git] / scilab / modules / scicos / src / cpp / model / Port.hxx
index 6c1fb4d..bea267a 100644 (file)
@@ -98,14 +98,19 @@ private:
         this->kind = kind;
     }
 
-    ScicosID getSourceBlock() const
+    void getSourceBlock(ScicosID& sb) const
     {
-        return sourceBlock;
+        sb = sourceBlock;
     }
 
-    void setSourceBlock(ScicosID sourceBlock)
+    update_status_t setSourceBlock(const ScicosID sb)
     {
-        this->sourceBlock = sourceBlock;
+        if (sb == this->sourceBlock)
+        {
+            return NO_CHANGES;
+        }
+        this->sourceBlock = sb;
+        return SUCCESS;
     }
 
     void getImplicit(bool& v) const