[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sun Aug 22 21:21:19 CEST 2004


CVS commit by harris: 

Make it impossible to set the "zoomed out" mag limit to a fainter value 
than the "zoomed in" limit.  This way, higher zoom levels always show 
more stars than lower zoom levels.
(TO BE BACKPORTED)

CCMAIL: kstars-devel at kde.org


  M +8 -1      opscatalog.cpp   1.6


--- kdeedu/kstars/kstars/opscatalog.cpp  #1.5:1.6
@@ -44,4 +44,9 @@ OpsCatalog::OpsCatalog( QWidget *p, cons
         showMessier->setOn( Options::showMessier() );
 
+        kcfg_MagLimitDrawStar->setValue( Options::magLimitDrawStar() );
+        kcfg_MagLimitDrawStarZoomOut->setValue( Options::magLimitDrawStarZoomOut() );
+        kcfg_MagLimitDrawStar->setMinValue( Options::magLimitDrawStarZoomOut() );
+        kcfg_MagLimitDrawStarZoomOut->setMaxValue( Options::magLimitDrawStar() );
+        
         kcfg_MagLimitDrawDeepSky->setMaxValue( 16.0 );
         kcfg_MagLimitDrawDeepSkyZoomOut->setMaxValue( 16.0 );
@@ -143,9 +148,11 @@ void OpsCatalog::slotRemoveCatalog() {
 
 void OpsCatalog::slotSetDrawStarMagnitude(double newValue) {
+        kcfg_MagLimitDrawStarZoomOut->setMaxValue( newValue );
         ksw->data()->setMagnitude( newValue );
 }
 
 void OpsCatalog::slotSetDrawStarZoomOutMagnitude(double newValue) {
-        Options::setMagLimitDrawStarZoomOut(newValue);
+        kcfg_MagLimitDrawStar->setMinValue( newValue );
+        Options::setMagLimitDrawStarZoomOut( newValue );
         // force redraw
         ksw->map()->forceUpdate();




More information about the Kstars-devel mailing list