-
-
- // JGRR CM
- typedef std::map<int , GObjectController*>::iterator TIterator ;
- TIterator c_it = _controllers.begin( ) ;
- TIterator iter_end = _controllers.end( ) ;
- // Go through all componets
- for ( c_it ; c_it != iter_end ; c_it++ ) {
- GObjectController* obc = c_it->second ;
- int obc_type = obc->getModel( )->getGObjectType( ) ;
- int obc_state = obc->getView( )->getState( ) ;
- // if the component is a port and the type is the same of that selected
- if ( ( obc_type == GPORT ) && ( obc_state == POSSIBLE_CONNECTION )) {
- // Return element to neutral state if not selected
- obc->getView( )->setState( NOTHING_HAPPENS ) ;
- }
- if ( ( obc_type == GPORT ) && (obc_state == SELECTED_POSSIBLE_CONNECTION )) {
- // Change element to connected state
- obc->getView( )->setState( HIGHLIGHTED ) ;
-
- }
-
- }
- // EO JGRR CM
-
- _parent->saveTempDiagram();
- }