X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGPortModel.h;h=474ebb3e109fe60cec33348411f498c66566d6a0;hb=62f479996c001d53a10c45e3ad6a3651b8007668;hp=5d12b911e2a18392b0ec96d87429de17b45fdac4;hpb=be7230c59a3a7d7aa5bfee591b35d31e5e7a93b3;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h index 5d12b91..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,25 +66,27 @@ 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(); - GBlackBoxModel* getParentBox(); + 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;