21 #include <kactioncollection.h>
28 connect( kcfg_ShowSolarSystem, SIGNAL( toggled(
bool) ), SLOT( slotAllWidgets(
bool) ) );
29 connect( kcfg_ShowAsteroids, SIGNAL( toggled(
bool) ), SLOT( slotAsteroidWidgets(
bool) ) );
30 connect( kcfg_ShowComets, SIGNAL( toggled(
bool) ), SLOT( slotCometWidgets(
bool) ) );
31 connect( ClearAllTrails, SIGNAL( clicked() ), ksw, SLOT( slotClearAllTrails() ) );
32 connect( showAllPlanets, SIGNAL( clicked() ),
this, SLOT( slotSelectPlanets() ) );
33 connect( showNonePlanets, SIGNAL( clicked() ),
this, SLOT( slotSelectPlanets() ) );
35 kcfg_MagLimitAsteroid->setMaximum( 30.0 );
36 kcfg_MaxRadCometName->setMaximum( 100.0 );
38 slotAsteroidWidgets( kcfg_ShowAsteroids->isChecked() );
39 slotCometWidgets( kcfg_ShowComets->isChecked() );
47 void OpsSolarSystem::slotAllWidgets(
bool on ) {
48 MajorBodiesBox->setEnabled( on );
49 MinorBodiesBox->setEnabled( on );
50 TrailsBox->setEnabled( on );
53 void OpsSolarSystem::slotAsteroidWidgets(
bool on ) {
54 kcfg_MagLimitAsteroid->setEnabled( on );
55 kcfg_ShowAsteroidNames->setEnabled( on );
56 kcfg_AsteroidLabelDensity->setEnabled( on );
57 textLabel3->setEnabled( on );
58 textLabel6->setEnabled( on );
59 LabelDensity->setEnabled( on );
62 void OpsSolarSystem::slotCometWidgets(
bool on ) {
63 kcfg_ShowCometNames->setEnabled( on );
64 kcfg_MaxRadCometName->setEnabled( on );
65 textLabel4->setEnabled( on );
68 void OpsSolarSystem::slotSelectPlanets() {
70 if ( QString(sender()->objectName()) ==
"showNonePlanets" )
73 kcfg_ShowSun->setChecked( b );
74 kcfg_ShowMoon->setChecked( b );
75 kcfg_ShowMercury->setChecked( b );
76 kcfg_ShowVenus->setChecked( b );
77 kcfg_ShowMars->setChecked( b );
78 kcfg_ShowJupiter->setChecked( b );
79 kcfg_ShowSaturn->setChecked( b );
80 kcfg_ShowUranus->setChecked( b );
81 kcfg_ShowNeptune->setChecked( b );
82 kcfg_ShowPluto->setChecked( b );
84 #include "opssolarsystem.moc"
This is the main window for KStars.
OpsSolarSystem(KStars *_ks)