]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx
The actual version works with complex box automatic generated from selected boxes...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.cxx
index 200a5f4b278d91ec1316fc04da66500b4b2083ca..69c41e3a3d550be324a31b03128a7bd1cca5161c 100644 (file)
@@ -57,7 +57,7 @@ namespace bbtk
        }
        //=========================================================================
 
-       void GPortModel::registerInBox(GBlackBoxModel *blackBox,int portType, int pos)
+       void GPortModel::registerInBox(GBoxModel *blackBox,int portType, int pos)
        {
                _parentBox = blackBox;
                _portType = portType;
@@ -104,6 +104,13 @@ namespace bbtk
                return _portType;
        }
 
+       //=========================================================================
+
+       int GPortModel::getPosInBox()
+       {
+               return _posInBox;
+       }
+
        //=========================================================================
        
        std::string GPortModel::getStatusText()
@@ -125,7 +132,7 @@ namespace bbtk
 
        //=========================================================================
 
-       GBlackBoxModel* GPortModel::getParentBox()
+       GBoxModel* GPortModel::getParentBox()
        {
                return _parentBox;
        }