kstars
wutdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WUTDIALOG_H
00019 #define WUTDIALOG_H
00020
00021 #include <qwidget.h>
00022 #include <kdialogbase.h>
00023 #include "kstarsdatetime.h"
00024
00025 #define NCATEGORY 8
00026
00027 class KStars;
00028 class ObjectNameList;
00029 class GeoLocation;
00030 class SkyObject;
00031 class SkyObjectName;
00032 class WUTDialogUI;
00033 class QFrame;
00034
00042 class WUTDialog : public KDialogBase {
00043 Q_OBJECT
00044
00045 public:
00046
00048 WUTDialog(KStars *ks);
00050 ~WUTDialog();
00051
00052 private slots:
00053
00058 void slotLoadList(int type);
00059
00063 void init();
00064
00067 void slotDisplayObject(QListBoxItem *item);
00068
00075 void slotEveningMorning( int index );
00076
00080 void slotChangeDate();
00081
00085 void slotChangeLocation();
00086
00089 void slotDetails();
00090
00093 void slotCenter();
00094 private:
00095
00096 KStars *kstars;
00097 WUTDialogUI *WUT;
00098
00100 void makeConnections();
00101
00103 void initCategories();
00104
00109 bool checkVisibility(SkyObjectName *oname);
00110
00112 void splitObjectList();
00113
00115 void appendToList(SkyObjectName *o);
00116
00117 ObjectNameList *objectList;
00118
00119 QTime sunRiseTomorrow, sunSetToday, sunRiseToday, moonRise, moonSet;
00120 KStarsDateTime T0, UT0, Tomorrow, TomorrowUT, Evening, EveningUT;
00121
00122 GeoLocation *geo;
00123 int EveningFlag;
00124
00125 struct List {
00126 QPtrList <SkyObjectName> visibleList[NCATEGORY];
00127 bool initialized[NCATEGORY];
00128 } lists;
00129
00130 };
00131
00132 #endif