The-OpenROAD-Project / OpenROAD

OpenROAD's unified application implementing an RTL-to-GDS Flow. Documentation at https://openroad.readthedocs.io/en/latest/
https://theopenroadproject.org/
BSD 3-Clause "New" or "Revised" License
1.6k stars 556 forks source link

Use gestures not only for zoom in, but also for fit and zoom out #4034

Open stefanottili opened 1 year ago

stefanottili commented 1 year ago

Description

Currently mouse click and move will zoom in, drawing a rectangle on which area to zoom into.

Klayout has move up right for fit and move up left for zoom out. This is very useful and convenient for navigating with the mouse. And it would be nice if the two OpenRoad flow gui”s would behave the same.

What klayout is missing is changing the cursor to make this behavior self explanatory. Nlview uses “fit” and “x2”, “x3” as cursor for the fit and zoom out gesture.

Suggested Solution

No response

Additional Context

No response

maliberty commented 8 months ago

You might look at https://doc.qt.io/qt-5/gestures-overview.html for a custom gesture.

stefanottili commented 8 months ago

OpenRoad already handles the “zoom in” gesture by drawing a rectangle, so implementing a fit if “move right up” and zoom out for “move left up” doesn’t need any more sophisticated gesture recognition.