summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos CARDINOT <mcardinot@gmail.com>2016-07-22 22:20:07 (GMT)
committerMarcos CARDINOT <mcardinot@gmail.com>2016-07-22 22:20:07 (GMT)
commit6179506a1cba6ca68ad4a1055a5b1fae25b669da (patch)
tree5fc831e81843c4ca686b17d8e8006637389f2722
parent2dff34982a95c73b8da2825244e4549c7cc43ef1 (diff)
opssupernovae - minor code cleanup - removing useless slots
-rw-r--r--kstars/options/opssupernovae.cpp52
-rw-r--r--kstars/options/opssupernovae.h10
2 files changed, 5 insertions, 57 deletions
diff --git a/kstars/options/opssupernovae.cpp b/kstars/options/opssupernovae.cpp
index 8ce35f6..0420710 100644
--- a/kstars/options/opssupernovae.cpp
+++ b/kstars/options/opssupernovae.cpp
@@ -22,55 +22,11 @@
#include "skymapcomposite.h"
#include "skycomponents/supernovaecomponent.h"
-
-OpsSupernovae::OpsSupernovae()
- : QFrame( KStars::Instance() )
+OpsSupernovae::OpsSupernovae() : QFrame(KStars::Instance())
{
- setupUi( this );
+ setupUi(this);
// Signals and slots connections
- connect( supUpdateButton, SIGNAL( clicked() ), this, SLOT( slotUpdateRecentSupernovae() ) );
- connect( kcfg_ShowSupernovae, SIGNAL( toggled( bool ) ), this, SLOT( slotShowSupernovae( bool ) ) );
- connect( kcfg_UpdateSupernovaeOnStartup, SIGNAL( toggled(bool) ), this, SLOT( slotUpdateOnStartup (bool)));
- connect( kcfg_ShowSupernovaAlerts, SIGNAL( toggled(bool) ),this, SLOT( slotShowSupernovaAlerts( bool ) ) );
- connect( kcfg_MagnitudeLimitShowSupernovae, SIGNAL( valueChanged(double) ), this, SLOT( slotSetShowMagnitudeLimit( double )));
- connect( kcfg_MagnitudeLimitAlertSupernovae, SIGNAL( valueChanged(double) ), this, SLOT( slotSetAlertMagnitudeLimit(double)));
+ connect(supUpdateButton, SIGNAL(clicked()),
+ KStarsData::Instance()->skyComposite()->supernovaeComponent(), SLOT(slotTriggerDataFileUpdate()));
}
-
-OpsSupernovae::~OpsSupernovae()
-{}
-
-void OpsSupernovae::slotUpdateRecentSupernovae()
-{
- KStarsData::Instance()->skyComposite()->supernovaeComponent()->slotTriggerDataFileUpdate();
-}
-
-void OpsSupernovae::slotShowSupernovae( bool on )
-{
- kcfg_ShowSupernovae->setChecked( on );
-}
-
-void OpsSupernovae::slotShowSupernovaAlerts(bool on)
-{
- kcfg_ShowSupernovaAlerts->setChecked(on);
-}
-
-void OpsSupernovae::slotUpdateOnStartup(bool on)
-{
- kcfg_UpdateSupernovaeOnStartup->setChecked(on);
-}
-
-void OpsSupernovae::slotSetShowMagnitudeLimit(double value)
-{
- kcfg_MagnitudeLimitShowSupernovae->setValue(value);
-}
-
-void OpsSupernovae::slotSetAlertMagnitudeLimit(double value)
-{
- kcfg_MagnitudeLimitAlertSupernovae->setValue(value);
-}
-
-
-
-
-
diff --git a/kstars/options/opssupernovae.h b/kstars/options/opssupernovae.h
index 425bd5b..6960a81 100644
--- a/kstars/options/opssupernovae.h
+++ b/kstars/options/opssupernovae.h
@@ -45,15 +45,7 @@ public:
/**
* Destructor
*/
- ~OpsSupernovae();
-
-private slots:
- void slotUpdateRecentSupernovae();
- void slotShowSupernovae( bool on );
- void slotUpdateOnStartup( bool on );
- void slotShowSupernovaAlerts( bool on );
- void slotSetShowMagnitudeLimit( double value );
- void slotSetAlertMagnitudeLimit( double value );
+ ~OpsSupernovae() {}
};
#endif //OPSSUPERNOVAE_H_