From kde-i18n-doc Thu Jun 26 04:56:31 2008 From: Jason Harris Date: Thu, 26 Jun 2008 04:56:31 +0000 To: kde-i18n-doc Subject: KDE/kdeedu/kstars/kstars Message-Id: <1214456191.483613.1673.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=121445621102274 SVN commit 824546 by harris: Resolving an inconsistency between toolbar actions and the configuration window: the view toolbar provides an action to toggle all deep-sky objects on/off, but in the configuration window, there were only controls for individual catalogs (Messier, NGC, IC, etc). I added a Checkbox to the configuration window to toggle all deep-sky objects. Unchecking this box will disable all deep-sky related widgets in the window, like the "Hipparcos star catalog" checkbox does for stars. The checkbox and the toolbar button are properly synced with each other. No new string was added, but there will be a fuzzy: I adopted the "Deep-Sky Catalogs" string which was used as a group-box title. The group box now has no title. For consistency, I also removed the (redundant anyway) "Star catalog" title from the stars group box. So that string has disappeared. CCMAIL: kstars-devel@kde.org CCMAIL: kde-i18n-doc@kde.org M +3 -0 kstarsactions.cpp M +19 -0 opscatalog.cpp M +1 -0 opscatalog.h M +30 -95 opscatalog.ui --- trunk/KDE/kdeedu/kstars/kstars/kstarsactions.cpp #824545:824546 @@ -111,6 +111,9 @@ } } else if ( a == actionCollection()->action( "show_deepsky" ) ) { Options::setShowDeepSky( a->isChecked() ); + if ( kcd ) { + opcatalog->kcfg_ShowDeepSky->setChecked( a->isChecked() ); + } } else if ( a == actionCollection()->action( "show_planets" ) ) { Options::setShowSolarSystem( a->isChecked() ); if ( kcd ) { --- trunk/KDE/kdeedu/kstars/kstars/opscatalog.cpp #824545:824546 @@ -99,6 +99,7 @@ connect( kcfg_MagLimitDrawStarZoomOut, SIGNAL( valueChanged(double) ), SLOT( slotSetDrawStarZoomOutMagnitude(double) ) ); connect( kcfg_ShowStars, SIGNAL( toggled(bool) ), SLOT( slotStarWidgets(bool) ) ); + connect( kcfg_ShowDeepSky, SIGNAL( toggled(bool) ), SLOT( slotDeepSkyWidgets(bool) ) ); connect( m_ConfigDialog, SIGNAL( applyClicked() ), SLOT( slotApply() ) ); connect( m_ConfigDialog, SIGNAL( okClicked() ), SLOT( slotApply() ) ); connect( m_ConfigDialog, SIGNAL( cancelClicked() ), SLOT( slotCancel() ) ); @@ -272,6 +273,24 @@ kcfg_ShowStarMagnitudes->setEnabled(on); } +void OpsCatalog::slotDeepSkyWidgets(bool on) { + CatalogList->setEnabled( on ); + AddCatalog->setEnabled( on ); + LoadCatalog->setEnabled( on ); + LabelMagDeepSky->setEnabled( on ); + LabelMagDeepSkyZoomOut->setEnabled( on ); + kcfg_MagLimitDrawDeepSky->setEnabled( on ); + kcfg_MagLimitDrawDeepSkyZoomOut->setEnabled( on ); + LabelMag3->setEnabled( on ); + LabelMag4->setEnabled( on ); + if ( on ) { + //Enable RemoveCatalog if the selected catalog is custom + selectCatalog(); + } else { + RemoveCatalog->setEnabled( on ); + } +} + QString OpsCatalog::getCatalogName( const QString &filename ) { QString name = QString(); QFile f( filename ); --- trunk/KDE/kdeedu/kstars/kstars/opscatalog.h #824545:824546 @@ -53,6 +53,7 @@ void slotSetDrawStarMagnitude(double newValue); void slotSetDrawStarZoomOutMagnitude(double newValue); void slotStarWidgets(bool on); + void slotDeepSkyWidgets(bool on); void slotApply(); void slotCancel(); --- trunk/KDE/kdeedu/kstars/kstars/opscatalog.ui #824545:824546 @@ -13,7 +13,7 @@ - Stars + @@ -27,24 +27,12 @@ - + 0 - - 0 - - - 0 - - - 0 - - + 6 - - 6 - @@ -89,7 +77,7 @@ QSizePolicy::Fixed - + 20 16 @@ -99,24 +87,12 @@ - + 0 - - 0 - - - 0 - - - 0 - - + 6 - - 6 - @@ -139,7 +115,7 @@ QSizePolicy::Fixed - + 16 20 @@ -155,7 +131,7 @@ QSizePolicy::Fixed - + 16 20 @@ -175,7 +151,7 @@ QSizePolicy::Fixed - + 40 20 @@ -209,7 +185,7 @@ Qt::Horizontal - + 40 20 @@ -223,41 +199,30 @@ - Deep-Sky Catalogs + 6 - + 8 - - 8 - - - 8 - - - 8 - + + + Deep-Sky Catalogs + + + + 6 - + 0 - - 0 - - - 0 - - - 0 - @@ -270,18 +235,9 @@ 6 - + 0 - - 0 - - - 0 - - - 0 - @@ -311,7 +267,7 @@ Qt::Vertical - + 20 40 @@ -328,61 +284,40 @@ 6 - + 0 - - 0 - - - 0 - - - 0 - - + 0 - - 0 - - - 0 - - - 0 - - + 6 - - 6 - - + Faint limit zoomed out: - + mag - + mag - + Faint limit zoomed in: @@ -401,7 +336,7 @@ Qt::Horizontal - + 40 20