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

Jason Harris kstars at 30doradus.org
Tue Sep 13 08:31:25 CEST 2005


SVN commit 460225 by harris:

Removed SortedList utility class from objectnamelist.h.  From reading
the Qt4 docs, I believe that this class isn't needed for QList; as
long as the contained class has defined the "<" operator (and
SkyObjectName has), QList should know how to sort them.  The only
potential issue is that technically, we aren't storing SkyObjectName
objects in the list, we're storing SkyObjectName pointers.  Hopefully,
QList is smart enough to handle it.  If not, there is a version of
qSort() that allows us to define a custom "lessThan" fucntion for the
list.

Added ConstellationBoundaryComponent to skycomponents

Fixed some typos in constellationlinescomponent (sometimes,
constellationnamescomponent was used)

TODO: the for-loop syntax in most of the component files needs to be
updated...

CCMAIL: kstars-devel at kde.org



 M  +4 -3      Makefile.am  
 A             constellationboundarycomponent.cpp   [License: GPL (v2+)]
 A             constellationboundarycomponent.h   [License: GPL (v2+)]
 M  +2 -2      constellationlinescomponent.cpp  
 M  +1 -1      constellationlinescomponent.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/Makefile.am #460224:460225
@@ -1,9 +1,10 @@
 noinst_LIBRARIES = libkstarscomponents.a
 
 libkstarscomponents_a_SOURCES = abstractplanetcomponent.cpp asteroidscomponent.cpp \
-			constellationlinescomponent.cpp constellationnamescomponent.cpp\
-			coordinategridcomponent.cpp customcatalogscomponent.cpp \
-			deepskycomponent.cpp equatorcomponent.cpp horizoncomponent.cpp \
+			constellationlinescomponent.cpp constellationnamescomponent.cpp \
+			constellationboundarycomponent.cpp coordinategridcomponent.cpp \
+			customcatalogscomponent.cpp deepskycomponent.cpp \
+			equatorcomponent.cpp horizoncomponent.cpp \
 			jupitermoonscomponent.cpp milkywaycomponent.cpp \
 			mooncomponent.cpp skycomponent.cpp skycomposite.cpp \
 			skymapcomposite.cpp solarsystemcomposite.cpp \
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/constellationlinescomponent.cpp #460224:460225
@@ -21,7 +21,7 @@
 }
 
 // bool KStarsData::readCLineData( void )
-void ConstellationNamesComponent::init(KStarsData *data)
+void ConstellationLinesComponent::init(KStarsData *data)
 {
 // TODO be sure that stars are already loaded
 
@@ -79,7 +79,7 @@
 	}
 }
 
-void ConstellationNamesComponent::draw(SkyMap *map, QPainter& psky, double scale)
+void ConstellationLinesComponent::draw(SkyMap *map, QPainter& psky, double scale)
 {
 	int Width = int( scale * map->width() );
 	int Height = int( scale * map->height() );
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/constellationlinescomponent.h #460224:460225
@@ -37,7 +37,7 @@
 #include <QChar>
 #include "skyobject.h"
 
-class ConstellationNamesComponent : public SkyComponent
+class ConstellationLinesComponent : public SkyComponent
 {
 	public:
 		


More information about the Kstars-devel mailing list