gerbilvis / gerbil

Gerbil Hyperspectral Visualization and Analysis Framework
http://gerbilvis.org
GNU General Public License v3.0
43 stars 15 forks source link

Issue14. Right-click popup menu in ScaledView/Bandview/ROIView. #21

Closed ajaskier closed 9 years ago

ypnos commented 9 years ago

Looks great so far!

  1. When selecting "zoom 1:1" the pixmap is dangling somewhere. Can we center it?
  2. Can the mode buttons also use the QActions that are introduced for the menu?
  3. Please introduce mode shortcuts: '1', '2', '3' for the modes in the bandview
  4. Please enable icons in the menus
  5. Please use theme icons for zoom best fit (zoom-fit-best) and zoom 1:1 (zoom-original)
  6. Please update shortcut list in the doc/. I think it might also miss other added shortcuts (toggle rubber mode)
ypnos commented 9 years ago

Zooming is a bit confusing now because of the 1:1 thing. You cannot zoom out from zoom=1 until 1:1, only zoom back in. This needs to change. Let's define that whenever zoom < 1 it means zoom is 1:1. So when zooming in from 1:1, we jump to zoom = 1. When scaling out, if zoom > 1 but new zoom would be <= 1, set to 1. If zoom == 1 but new zoom would be < 1, do 1:1.

Also when setting zoom to 1:1 and it does not fit, it should also be centered (right now it looks like it is centered on one axis, but not the other.