kstars
opsguides.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include <qbuttongroup.h>
00018 #include <qcheckbox.h>
00019 #include "opsguides.h"
00020
00021 OpsGuides::OpsGuides( QWidget* parent, const char* name, WFlags fl )
00022 : OpsGuidesUI( parent, name, fl )
00023 {
00024 connect( kcfg_ShowCNames, SIGNAL( clicked() ),
00025 this, SLOT( slotToggleConstellOptions() ) );
00026 connect( kcfg_ShowMilkyWay, SIGNAL( clicked() ),
00027 this, SLOT( slotToggleMilkyWayOptions() ) );
00028 }
00029
00030 OpsGuides::~OpsGuides()
00031 {}
00032
00033 void OpsGuides::slotToggleConstellOptions() {
00034 ConstellOptions->setEnabled( kcfg_ShowCNames->isChecked() );
00035 }
00036
00037 void OpsGuides::slotToggleMilkyWayOptions() {
00038 kcfg_FillMilkyWay->setEnabled( kcfg_ShowMilkyWay->isChecked() );
00039 }
00040
00041 #include "opsguides.moc"