• 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
altvstime.h
Go to the documentation of this file.
1 /***************************************************************************
2  altvstime.h - description
3  -------------------
4  begin : Mon Dec 23 2002
5  copyright : (C) 2002 by Pablo de Vicente
6  email : vicente@oan.es
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 #ifndef ALTVSTIME_H_
19 #define ALTVSTIME_H_
20 
21 #include <QList>
22 
23 #include "ui_altvstime.h"
24 
25 class KStarsDateTime;
26 class SkyObject;
27 class SkyPoint;
28 class GeoLocation;
29 
30 class AltVsTimeUI : public QFrame, public Ui::AltVsTime {
31  Q_OBJECT
32 public:
33  explicit AltVsTimeUI( QWidget *p=0 );
34 };
35 
43 class AltVsTime : public KDialog
44 {
45  Q_OBJECT
46 
47 public:
49  explicit AltVsTime( QWidget* parent = 0);
50 
52  ~AltVsTime();
53 
58  void setLSTLimits();
59 
64  void showCurrentDate ();
65 
69  KStarsDateTime getDate ();
70 
77  void computeSunRiseSetTimes();
78 
84  double getEpoch( const QString &eName );
85 
92  void processObject( SkyObject *o, bool forceAdd=false );
93 
103  double findAltitude( SkyPoint *p, double hour );
104 
105 public slots:
107  void slotUpdateDateLoc();
108 
110  void slotClear();
111 
113  void slotClearBoxes();
114 
118  void slotAddSource();
119 
123  void slotBrowseObject();
124 
126  void slotChooseCity();
127 
134  void slotAdvanceFocus();
135 
139  void slotHighlight(int);
140 
143  void slotPrint();
144 
145 private:
147  void setDawnDusk();
148 
149  AltVsTimeUI *avtUI;
150 
151  GeoLocation *geo;
152  QList<SkyObject*> pList;
153  QList<SkyObject*> deleteList;
154  int DayOffset;
155 };
156 
157 #endif // ALTVSTIME_H_
AltVsTimeUI::AltVsTimeUI
AltVsTimeUI(QWidget *p=0)
Definition: altvstime.cpp:48
AltVsTime::~AltVsTime
~AltVsTime()
Destructor.
Definition: altvstime.cpp:125
AltVsTime::getDate
KStarsDateTime getDate()
Definition: altvstime.cpp:461
AltVsTime::showCurrentDate
void showCurrentDate()
Set the AltVsTime Date according to the current Date in the KStars main window.
Definition: altvstime.cpp:453
AltVsTime::slotBrowseObject
void slotBrowseObject()
Launch the Find Object window to select a new object for the list of displayed objects.
Definition: altvstime.cpp:206
AltVsTime::slotClear
void slotClear()
Clear the list of displayed objects.
Definition: altvstime.cpp:329
QWidget
AltVsTime::slotClearBoxes
void slotClearBoxes()
Clear the edit boxes for specifying a new object.
Definition: altvstime.cpp:344
AltVsTime::findAltitude
double findAltitude(SkyPoint *p, double hour)
Determine the altitude coordinate of a SkyPoint, given an hour of the day.
Definition: altvstime.cpp:286
KDialog
AltVsTime::getEpoch
double getEpoch(const QString &eName)
Parse a string as an epoch number.
Definition: altvstime.cpp:468
AltVsTime::processObject
void processObject(SkyObject *o, bool forceAdd=false)
Add a SkyObject to the display.
Definition: altvstime.cpp:217
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
AltVsTime::slotPrint
void slotPrint()
Print plot widget.
Definition: altvstime.cpp:523
KStarsDateTime
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
AltVsTime
the Altitude vs.
Definition: altvstime.h:43
AltVsTimeUI
Definition: altvstime.h:30
AltVsTime::computeSunRiseSetTimes
void computeSunRiseSetTimes()
Determine the time of sunset and sunrise for the current date and location settings.
Definition: altvstime.cpp:351
AltVsTime::AltVsTime
AltVsTime(QWidget *parent=0)
Constructor.
Definition: altvstime.cpp:54
AltVsTime::slotAdvanceFocus
void slotAdvanceFocus()
Move input keyboard focus to the next logical widget.
Definition: altvstime.cpp:321
AltVsTime::slotHighlight
void slotHighlight(int)
Update the plot to highlight the altitude curve of the objects which is highlighted in the listbox...
Definition: altvstime.cpp:297
AltVsTime::slotUpdateDateLoc
void slotUpdateDateLoc()
Update the plot to reflec new Date and Location settings.
Definition: altvstime.cpp:363
AltVsTime::setLSTLimits
void setLSTLimits()
Determine the limits for the sideral time axis, using the sidereal time at midnight for the current d...
Definition: altvstime.cpp:441
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
AltVsTime::slotAddSource
void slotAddSource()
Add an object to the list of displayed objects, according to the data entered in the edit boxes...
Definition: altvstime.cpp:130
QList
AltVsTime::slotChooseCity
void slotChooseCity()
Launch the Location dialog to choose a new location.
Definition: altvstime.cpp:428
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