void SRFlipFlop::updatePorts( ) { inputs( ).at( 0 )->setPos( topPosition( ), 13 ); /* S */ inputs( ).at( 1 )->setPos( topPosition( ), 29 ); /* Clk */ inputs( ).at( 2 )->setPos( topPosition( ), 45 ); /* R */ output( 0 )->setPos( bottomPosition( ), 15 ); /* Q */ output( 1 )->setPos( bottomPosition( ), 45 ); /* ~Q */ }
void TFlipFlop::updatePorts( ) { inputs( ).at( 0 )->setPos( topPosition( ), 13 ); /* T */ inputs( ).at( 1 )->setPos( topPosition( ), 45 ); /* Clock */ inputs( ).at( 2 )->setPos( 32, topPosition( ) ); /* Preset */ inputs( ).at( 3 )->setPos( 32, bottomPosition( ) ); /* Clear */ output( 0 )->setPos( bottomPosition( ), 15 ); /* Q */ output( 1 )->setPos( bottomPosition( ), 45 ); /* ~Q */ }
// ----------------------------------------------------------------------------- // CAknPhysicsRestrictor::ViewTopPosition() // ----------------------------------------------------------------------------- // TInt CAknPhysicsRestrictor::ViewTopPosition() const { TInt topPosition( 0 ); if ( iLandscape ) { topPosition = iViewSize.iWidth/2; } else { topPosition = iViewSize.iHeight/2; } return topPosition; }