X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGPortModel.h;h=474ebb3e109fe60cec33348411f498c66566d6a0;hb=62f479996c001d53a10c45e3ad6a3651b8007668;hp=c18e225d0b277d63a0e1cb9d479e099bf5504b48;hpb=3babfd57a9b4b3cffba34415e928239592e7d4a1;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h index c18e225..474ebb3 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h @@ -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,22 +66,33 @@ namespace bbtk //Constructors GPortModel(); - ~GPortModel(); + virtual ~GPortModel(); //Public methods - void registerInBox(GBlackBoxModel *blackBox,int portType, int pos); + 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