[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sun Oct 7 01:21:09 CEST 2007


SVN commit 722230 by harris:

Printing the sky map now works.

This is a pretty extensive change, but almost all of it was a simple
refactoring.  Namely, instead of passing a "scale" argument to dozens
of draw-related functions, the scale is now a member variable of SkyMap.

As a reminder, the scale factor is always 1.0, unless we are printing.
Then the scale factor is determined by the properties of the printer.
Essentially, it's the ratio of the width (or height) of the printer's
QPaintDevice to that of the SkyMap widget.

This is a nice change, because few people knew what scale was for, so
now we don't have to pass a mysterious argument all over the codebase.
Most of the changes in this commit involve the removal of the scale
argument from various functions.

Also, I am using QPrinter and QPrintDialog instead of KPrinter,
because from what I've read, KPrinter will probably not be ready for
KDE-4.0.

CCMAIL: kstars-devel at kde.org




 M  +20 -6     kstarsdcop.cpp  
 M  +4 -4      skycomponents/asteroidscomponent.cpp  
 M  +1 -2      skycomponents/asteroidscomponent.h  
 M  +5 -5      skycomponents/cometscomponent.cpp  
 M  +1 -2      skycomponents/cometscomponent.h  
 M  +3 -3      skycomponents/constellationnamescomponent.cpp  
 M  +1 -2      skycomponents/constellationnamescomponent.h  
 M  +10 -11    skycomponents/customcatalogcomponent.cpp  
 M  +1 -2      skycomponents/customcatalogcomponent.h  
 M  +7 -8      skycomponents/deepskycomponent.cpp  
 M  +1 -2      skycomponents/deepskycomponent.h  
 M  +6 -6      skycomponents/ecliptic.cpp  
 M  +2 -2      skycomponents/ecliptic.h  
 M  +5 -5      skycomponents/equator.cpp  
 M  +2 -2      skycomponents/equator.h  
 M  +17 -17    skycomponents/horizoncomponent.cpp  
 M  +2 -3      skycomponents/horizoncomponent.h  
 M  +7 -7      skycomponents/jupitermoonscomponent.cpp  
 M  +1 -2      skycomponents/jupitermoonscomponent.h  
 M  +12 -12    skycomponents/linelistcomponent.cpp  
 M  +4 -4      skycomponents/linelistcomponent.h  
 M  +20 -20    skycomponents/linelistindex.cpp  
 M  +4 -4      skycomponents/linelistindex.h  
 M  +5 -5      skycomponents/linelistlabel.cpp  
 M  +2 -2      skycomponents/linelistlabel.h  
 M  +1 -1      skycomponents/listcomponent.h  
 M  +4 -4      skycomponents/milkyway.cpp  
 M  +1 -2      skycomponents/milkyway.h  
 M  +3 -4      skycomponents/noprecessindex.cpp  
 M  +1 -1      skycomponents/noprecessindex.h  
 M  +2 -2      skycomponents/pointlistcomponent.h  
 M  +3 -3      skycomponents/satellitecomponent.cpp  
 M  +1 -1      skycomponents/satellitecomponent.h  
 M  +2 -4      skycomponents/singlecomponent.h  
 M  +3 -3      skycomponents/skycomponent.cpp  
 M  +5 -7      skycomponents/skycomponent.h  
 M  +10 -10    skycomponents/skycomposite.cpp  
 M  +2 -4      skycomponents/skycomposite.h  
 M  +2 -5      skycomponents/skylabeler.cpp  
 M  +1 -1      skycomponents/skylabeler.h  
 M  +20 -19    skycomponents/skymapcomposite.cpp  
 M  +1 -2      skycomponents/skymapcomposite.h  
 M  +4 -4      skycomponents/skymesh.cpp  
 M  +1 -1      skycomponents/skymesh.h  
 M  +4 -4      skycomponents/solarsystemcomposite.cpp  
 M  +2 -2      skycomponents/solarsystemcomposite.h  
 M  +5 -5      skycomponents/solarsystemlistcomponent.cpp  
 M  +1 -1      skycomponents/solarsystemlistcomponent.h  
 M  +12 -14    skycomponents/solarsystemsinglecomponent.cpp  
 M  +2 -2      skycomponents/solarsystemsinglecomponent.h  
 M  +7 -7      skycomponents/starcomponent.cpp  
 M  +2 -2      skycomponents/starcomponent.h  
 M  +45 -35    skymap.cpp  
 M  +23 -32    skymap.h  
 M  +30 -25    skymapdraw.cpp  
 M  +1 -1      starobject.cpp  
 M  +1 -2      starobject.h  




More information about the Kstars-devel mailing list