• 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
  • tools
conjunctions.h
Go to the documentation of this file.
1 /***************************************************************************
2  conjunctions.h - Conjunctions Tool
3  -------------------
4  begin : Sun 20th Apr 2008
5  copyright : (C) 2008 Akarsh Simha
6  email : akarshsimha@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 /***************************************************************************
19  * *
20  * Much of the code here is taken from Pablo de Vicente's *
21  * modcalcplanets.h *
22  * *
23  ***************************************************************************/
24 
25 #ifndef CONJUNCTIONS_H_
26 #define CONJUNCTIONS_H_
27 
28 #include <QTextStream>
29 #include <QAbstractTableModel>
30 #include <QStandardItemModel>
31 #include <QSortFilterProxyModel>
32 
33 #include "ui_conjunctions.h"
34 #include "skyobjects/skyobject.h"
35 #include "skyobjects/ksplanetbase.h"
36 
37 class GeoLocation;
38 class KSPlanetBase;
39 class dms;
40 class QListWidgetItem;
41 
46 class ConjunctionsTool : public QFrame, public Ui::ConjunctionsDlg {
47 
48  Q_OBJECT
49 
50 public:
51  explicit ConjunctionsTool(QWidget *p);
52  ~ConjunctionsTool();
53 
54 public slots:
55 
56  void slotLocation();
57  void slotCompute();
58  void showProgress(int);
59  void slotFindObject();
60  void slotGoto();
61  void slotFilterType( int );
62  void slotClear();
63  void slotExport();
64  void slotFilterReg( const QString & );
65 
66 private:
67  SkyObject *Object1;
68  KSPlanetBase *Object2; // Second object is always a planet.
69 
70  QHash<int, QString> pNames; // To store the names of Planets vs. values expected by KSPlanetBase::createPlanet()
71  QMap<int, long double> outputJDList; // To store Julian Days corresponding to the row index in the output list widget
72 
73  void showConjunctions(const QMap<long double, dms> &conjunctionlist, QString object);
74 
75  GeoLocation *geoPlace;
76 
77  QStandardItemModel *m_Model;
78  QSortFilterProxyModel *m_SortModel;
79 
80  int m_index;
81 };
82 
83 #endif
ConjunctionsTool::slotFindObject
void slotFindObject()
Definition: conjunctions.cpp:157
ksplanetbase.h
ConjunctionsTool::slotFilterReg
void slotFilterReg(const QString &)
Definition: conjunctions.cpp:219
skyobject.h
ConjunctionsTool::slotGoto
void slotGoto()
Definition: conjunctions.cpp:140
ConjunctionsTool
Predicts conjunctions using KSConjunct in the background.
Definition: conjunctions.h:46
QWidget
ConjunctionsTool::~ConjunctionsTool
~ConjunctionsTool()
Definition: conjunctions.cpp:135
ConjunctionsTool::slotLocation
void slotLocation()
Definition: conjunctions.cpp:170
ConjunctionsTool::slotClear
void slotClear()
Definition: conjunctions.cpp:189
ConjunctionsTool::slotCompute
void slotCompute()
Definition: conjunctions.cpp:225
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
ConjunctionsTool::slotFilterType
void slotFilterType(int)
Definition: conjunctions.cpp:180
ConjunctionsTool::ConjunctionsTool
ConjunctionsTool(QWidget *p)
Definition: conjunctions.cpp:56
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
QSortFilterProxyModel
KSPlanetBase
A subclass of TrailObject that provides additional information needed for most solar system objects...
Definition: ksplanetbase.h:63
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
QFrame
ConjunctionsTool::slotExport
void slotExport()
Definition: conjunctions.cpp:196
ConjunctionsTool::showProgress
void showProgress(int)
Definition: conjunctions.cpp:367
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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