]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h
It is possible to center the view to the original point
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.h
index 1d6fa3e47e0f52ac251d0a638b079a27d2208b8d..5d12b911e2a18392b0ec96d87429de17b45fdac4 100644 (file)
@@ -69,7 +69,17 @@ namespace bbtk
                ~GPortModel();
                
                //Public methods                
-               void registerInBox(GBlackBoxModel *blackBox,int portType);
+               void registerInBox(GBlackBoxModel *blackBox,int portType, int pos);
+               void updatePortPosition();
+               int getPortType();
+               GBlackBoxModel* getParentBox();
+               virtual std::string getStatusText();
+               bool isConnected();
+               void setConnected(bool value);
+               bool isValueSet();
+               void setValue(std::string value);
+               std::string getValue();
+
        private:
 
                //Attributes
@@ -77,6 +87,10 @@ namespace bbtk
                GBlackBoxModel *_parentBox;
 
                int _portType;
+               int _posInBox;
+               bool _isConnected;
+               std::string _value;
+               bool _isValueSet;
 
                //Private Methods