//=========================================================================
GPortModel::GPortModel( ) {
- _parentBox = NULL ;
- _portType = -1 ;
- _posInBox = 0 ;
- _isConnected = false ;
- _value = "" ;
- _isValueSet = false ;
+ _parentBox = NULL ;
+ _portType = -1 ;
+ _posInBox = 0 ;
+ _isConnected = false ;
+ _value = "" ;
+ _isValueSet = false ;
+
+
}
//=========================================================================
//=========================================================================
void GPortModel::registerInBox( GBoxModel *blackBox , int portType , int pos ) {
- _parentBox = blackBox ;
- _portType = portType ;
- _posInBox = pos ;
-
+ _parentBox = blackBox ;
+ _portType = portType ;
+ _posInBox = pos ;
updatePortPosition( ) ;
-
}
//=========================================================================
//=========================================================================
GBoxModel* GPortModel::getParentBox( ) {
- return _parentBox ;
+ return _parentBox;
}
//=========================================================================
//=========================================================================
void GPortModel::setValue( std::string value ) {
+
+ //Removing Colons JPRG
+ _parentBox->removeColons(value);
+
_value = value ;
if ( _value == "" ) {
_isValueSet = false ;
//=========================================================================
std::string GPortModel::getValue( ) {
- return _value ;
+ //JPRG::Adding Colons
+ std::string text = _value;
+ _parentBox->addColons(text);
+ return text;
+
}
//=========================================================================