Changed the way the zoom level is handled in the code. Previously, we had
author Jason Harris
()
committer Jason Harris
()
commit 7414da1c0c5d70a4d0c48b24c55fd46e564867cd
tree 0b4679632e9d86dcd29310256d765f89b1b4cc4e
parent 22c55909c9638e50066b2485c10a5cb2c2c4a7d9
Changed the way the zoom level is handled in the code. Previously, we had
a hard-coded array of doubles that set the pixel scale (called pixelScale[]),
and zooming in and out would [dec/inc]rement the index of the array. We now
simply store a double for the current pixelScale (called ZoomFactor), and
zooming in/out changes this value by multiplying/dividing by a preset factor
DZOOM.

At this point, DZOOM is #defined in kstarsdata.h to be 1.1; it could
conceivably be an Advanced view option. The smaller DZOOM is, the smoother
zooming will be (but there will also be more steps).

Doing Zoom this way will allow us to set the ZoomFactor arbitrarily, so that
a "Zoom-to-box" function can be implemented. It would also be nice to have
a DCOP function "setZoom( double )".

svn path=/trunk/kdeedu/kstars/; revision=239275
16 files changed:
kstars/kstars.h
kstars/kstars_options_handling.cpp
kstars/kstarsactions.cpp
kstars/kstarsdata.cpp
kstars/kstarsdata.h
kstars/kstarsdcop.cpp
kstars/kstarsinit.cpp
kstars/kstarsoptions.cpp
kstars/kstarsoptions.h
kstars/scriptbuilder.cpp
kstars/skymap.cpp
kstars/skymap.h
kstars/skymapdraw.cpp
kstars/skymapevents.cpp
kstars/starobject.cpp
kstars/starobject.h