• 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
wutdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  wutdialog.h - K Desktop Planetarium
3  -------------------
4  begin : Die Feb 25 2003
5  copyright : (C) 2003 by Thomas Kabelmann
6  email : tk78@gmx.de
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 WUTDIALOG_H_
19 #define WUTDIALOG_H_
20 
21 #include <QFrame>
22 #include <kdialog.h>
23 #include "kstarsdatetime.h"
24 #include "kstarsdata.h"
25 #include "ui_wutdialog.h"
26 
27 #define NCATEGORY 8
28 
29 class GeoLocation;
30 class SkyObject;
31 
32 class WUTDialogUI : public QFrame, public Ui::WUTDialog {
33  Q_OBJECT
34 public:
35  WUTDialogUI( QWidget *p=0 );
36 };
37 
44 class WUTDialog : public KDialog {
45  Q_OBJECT
46 public:
48  WUTDialog( QWidget *ks,
49  bool session = false,
50  GeoLocation *geo = KStarsData::Instance()->geo(),
51  KStarsDateTime lt = KStarsData::Instance()->lt() );
53  ~WUTDialog();
54 
59  bool checkVisibility(SkyObject *o);
60 
61 public slots:
65  void init();
66 
67 private slots:
71  void slotLoadList(const QString &category);
72 
75  void slotDisplayObject(const QString &name);
76 
83  void slotEveningMorning( int flag );
84 
88  void slotChangeDate();
89 
93  void slotChangeLocation();
94 
97  void slotDetails();
98 
101  void slotCenter();
102 
105  void slotObslist();
106 
109  void slotChangeMagnitude();
110 
111  void updateMag();
112 
113 private:
114  QList<SkyObject*>& visibleObjects( const QString &category );
115  bool isCategoryInitialized( const QString &category );
117  void makeConnections();
119  void initCategories();
120 
121  WUTDialogUI *WUT;
122  bool session;
123 
124  QTime sunRiseTomorrow, sunSetToday, sunRiseToday, moonRise, moonSet;
125  KStarsDateTime T0, UT0, Tomorrow, TomorrowUT, Evening, EveningUT;
126 
127  GeoLocation *geo;
128  int EveningFlag;
129  double m_Mag;
130  QTimer *timer;
131 
132  QStringList m_Categories;
133  QHash< QString, QList< SkyObject* > > m_VisibleList;
134  QHash< QString, bool > m_CategoryInitialized;
135 
136 };
137 
138 #endif
WUTDialog::init
void init()
Determine which objects are visible, and store them in an array of lists, classified by object type...
Definition: wutdialog.cpp:122
QWidget
KStarsData::Instance
static KStarsData * Instance()
Definition: kstarsdata.h:92
KDialog
WUTDialogUI::WUTDialogUI
WUTDialogUI(QWidget *p=0)
Definition: wutdialog.cpp:42
WUTDialog::checkVisibility
bool checkVisibility(SkyObject *o)
Check visibility of object o the object to check.
Definition: wutdialog.cpp:338
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
WUTDialog::~WUTDialog
~WUTDialog()
Destructor.
Definition: wutdialog.cpp:93
KStarsDateTime
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
WUTDialog::WUTDialog
WUTDialog(QWidget *ks, bool session=false, GeoLocation *geo=KStarsData::Instance() ->geo(), KStarsDateTime lt=KStarsData::Instance() ->lt())
Constructor.
Definition: wutdialog.cpp:46
WUTDialogUI
Definition: wutdialog.h:32
kstarsdatetime.h
kstarsdata.h
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
QList
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