digital_electricity: Move in the playArea

Authored by rudranilbasu on Aug 22 2017, 3:31 PM.

Description

digital_electricity: Move in the playArea

Implemented moving in the playArea using the arrow keys. On pressing the
arrow keys, we check on which side we should be moving and if they are
restricted to the given frame, the corresponding move is made.

The positioning of the components should also be relative to the current
zoom ratio, which is implemented by:

components[i].posX *= zoomRatio
components[i].posY *= zoomRatio

whenever there is zoom in or out.

Signed-off-by: Rudra Nil Basu <rudra.nil.basu.1996@gmail.com>

Details

Committed
rudranilbasuAug 22 2017, 3:31 PM
Parents
R2:d73ebd7b0fc9: digital_electricity: Moved level 6 to the end
Branches
Unknown
Tags
Unknown
Restricted Application added a subscriber: jjazeix. ยท View Herald TranscriptAug 22 2017, 5:06 PM
jjazeix added inline comments.Aug 22 2017, 7:26 PM
/src/activities/digital_electricity/DigitalElectricity.qml
59

we also need to have a visual way to move the view (for tablets/phones)