• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • options
opssupernovae.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  opssupernovae.cpp - K Desktop Planetarium
3  -------------------
4  begin : Thu, 25 Aug 2011
5  copyright : (C) 2011 by Samikshan Bairagya
6  email : samikshan@gmail.com
7  ***************************************************************************/
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #include "opssupernovae.h"
18 
19 #include "Options.h"
20 #include "kstars.h"
21 #include "kstarsdata.h"
22 #include "skymapcomposite.h"
23 #include "skycomponents/supernovaecomponent.h"
24 
25 
26 OpsSupernovae::OpsSupernovae(KStars* _ks)
27  : QFrame( _ks ), ksw(_ks)
28 {
29  setupUi( this );
30 
31  // Signals and slots connections
32  connect( supUpdateButton, SIGNAL( clicked() ), this, SLOT( slotUpdateRecentSupernovae() ) );
33  connect( kcfg_ShowSupernovae, SIGNAL( toggled( bool ) ), this, SLOT( slotShowSupernovae( bool ) ) );
34  connect( kcfg_UpdateSupernovaeOnStartup, SIGNAL( toggled(bool) ), this, SLOT( slotUpdateOnStartup (bool)));
35  connect( kcfg_ShowSupernovaAlerts, SIGNAL( toggled(bool) ),this, SLOT( slotShowSupernovaAlerts( bool ) ) );
36  connect( kcfg_MagnitudeLimitShowSupernovae, SIGNAL( valueChanged(double) ), this, SLOT( slotSetShowMagnitudeLimit( double )));
37  connect( kcfg_MagnitudeLimitAlertSupernovae, SIGNAL( valueChanged(double) ), this, SLOT( slotSetAlertMagnitudeLimit(double)));
38 }
39 
40 OpsSupernovae::~OpsSupernovae()
41 {}
42 
43 void OpsSupernovae::slotUpdateRecentSupernovae()
44 {
45  KStarsData::Instance()->skyComposite()->supernovaeComponent()->slotTriggerDataFileUpdate();
46 }
47 
48 void OpsSupernovae::slotShowSupernovae( bool on )
49 {
50  kcfg_ShowSupernovae->setChecked( on );
51 }
52 
53 void OpsSupernovae::slotShowSupernovaAlerts(bool on)
54 {
55  kcfg_ShowSupernovaAlerts->setChecked(on);
56 }
57 
58 void OpsSupernovae::slotUpdateOnStartup(bool on)
59 {
60  kcfg_UpdateSupernovaeOnStartup->setChecked(on);
61 }
62 
63 void OpsSupernovae::slotSetShowMagnitudeLimit(double value)
64 {
65  kcfg_MagnitudeLimitShowSupernovae->setValue(value);
66 }
67 
68 void OpsSupernovae::slotSetAlertMagnitudeLimit(double value)
69 {
70  kcfg_MagnitudeLimitAlertSupernovae->setValue(value);
71 }
72 
73 
74 
75 #include "opssupernovae.moc"
76 
KStarsData::Instance
static KStarsData * Instance()
Definition: kstarsdata.h:92
OpsSupernovae::~OpsSupernovae
~OpsSupernovae()
Destructor.
Definition: opssupernovae.cpp:40
KStars
This is the main window for KStars.
Definition: kstars.h:94
skymapcomposite.h
SupernovaeComponent::slotTriggerDataFileUpdate
void slotTriggerDataFileUpdate()
This initiates updating of the data file by using supernovae_updates_parser.py.
Definition: supernovaecomponent.cpp:228
SkyMapComposite::supernovaeComponent
SupernovaeComponent * supernovaeComponent()
Definition: skymapcomposite.cpp:618
KStarsData::skyComposite
SkyMapComposite * skyComposite()
Definition: kstarsdata.h:146
Options.h
opssupernovae.h
OpsSupernovae::OpsSupernovae
OpsSupernovae(KStars *_ks)
Constructor.
Definition: opssupernovae.cpp:26
kstarsdata.h
QFrame
kstars.h
supernovaecomponent.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal