]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx
It saves the diagram and it was added the icon to open a file ..... Now it is necessa...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.cxx
index 326cbe2975f159b6d5c3f2d58ca0136da5065000..200a5f4b278d91ec1316fc04da66500b4b2083ca 100644 (file)
@@ -86,7 +86,7 @@ namespace bbtk
                }
 
                //Attribute '_posInBox' starts with value 0 and it represents the position of the port in the box from left to right
-               posX = xInic + PORT_WIDTH + _posInBox*2*PORT_WIDTH;
+               posX = xInic + (PORT_WIDTH/2) + _posInBox*1.6*PORT_WIDTH;
                
                setInicPoint(posX,posY,posZ);
 
@@ -177,6 +177,19 @@ namespace bbtk
 
        //=========================================================================
 
+       void GPortModel::save(std::string &content)
+       {
+               content+="PORT\n";
+
+               // Port value info
+               content+=_bbtkName;
+               content+=":";
+               content+=_value;
+               content+="\n";
+       }
+
+       //=========================================================================
+
 }  // EO namespace bbtk
 
 // EOF