]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h
The actual version works with complex box automatic generated from selected boxes...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.h
index 1d6fa3e47e0f52ac251d0a638b079a27d2208b8d..474ebb3e109fe60cec33348411f498c66566d6a0 100644 (file)
@@ -46,7 +46,7 @@ Version:   $Revision$
 //Includes same project
 #include "GlobalConstants.h"
 #include "GObjectModel.h"
-#include "GBlackBoxModel.h"
+#include "GBoxModel.h"
 
 //Includes creaMaracasVisu
 
@@ -57,7 +57,7 @@ Version:   $Revision$
 namespace bbtk
 {
 
-       class GBlackBoxModel;
+       class GBoxModel;
 
        class GPortModel : public GObjectModel 
        {
@@ -66,17 +66,33 @@ namespace bbtk
 
                //Constructors
                GPortModel();
-               ~GPortModel();
+               virtual ~GPortModel();
                
                //Public methods                
-               void registerInBox(GBlackBoxModel *blackBox,int portType);
+               void registerInBox(GBoxModel *blackBox,int portType, int pos);
+               void updatePortPosition();
+               int getPortType();
+               GBoxModel* getParentBox();
+               virtual std::string getStatusText();
+               bool isConnected();
+               void setConnected(bool value);
+               bool isValueSet();
+               void setValue(std::string value);
+               std::string getValue();
+               virtual void save(std::string &content);
+               int getPosInBox();
+
        private:
 
                //Attributes
                
-               GBlackBoxModel *_parentBox;
+               GBoxModel *_parentBox;
 
                int _portType;
+               int _posInBox;
+               bool _isConnected;
+               std::string _value;
+               bool _isValueSet;
 
                //Private Methods