• 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
  • skyobjects
supernova.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  supernova.cpp - K Desktop Planetarium
3  -------------------
4  begin : Sunday, 19th June, 2011
5  copyright : (C) 2011 by Samikshan Bairagya
6  email : samikshan@gmail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "supernova.h"
19 #include "kspopupmenu.h"
20 
21 Supernova::Supernova(dms ra, dms dec, const QString& date ,float m, const QString& serialNo,
22  const QString& type, const QString& hostGalaxy, const QString& offset,
23  const QString& discoverer)
24  : SkyObject(SkyObject::SUPERNOVA,ra, dec, m, serialNo),
25  serialNumber(serialNo),
26  type(type),
27  hostGalaxy(hostGalaxy),
28  offset(offset),
29  discoverers(discoverer),
30  date(date),
31  RA(ra),
32  Dec(dec),
33  Magnitude(m)
34 {}
35 
36 
37 void Supernova::initPopupMenu(KSPopupMenu* pmenu)
38 {
39  pmenu->createSupernovaMenu(this);
40 }
supernova.h
KSPopupMenu
The KStars Popup Menu.
Definition: kspopupmenu.h:43
kspopupmenu.h
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
KSPopupMenu::createSupernovaMenu
void createSupernovaMenu(Supernova *supernova)
Create a popup menu for a supernova.
Definition: kspopupmenu.cpp:254
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
Supernova::Supernova
Supernova(dms ra, dms dec, const QString &date, float m=0.0, const QString &serialNo=QString(), const QString &type=QString(), const QString &hostGalaxy=QString(), const QString &offset=QString(), const QString &discoverer=QString())
Definition: supernova.cpp:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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