[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Sat May 9 14:41:13 CEST 2009
SVN commit 965586 by prakash:
Updating the SunRise and SunSet times in the AVTPlot widget used, to the actual values instead of the default values used earlier.
CCMAIL: kstars-devel at kde.org
M +4 -2 observinglist.cpp
M +3 -2 observinglist.h
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #965585:965586
@@ -42,6 +42,7 @@
#include <kplotwidget.h>
#include <ksnumbers.h>
+#include "ksalmanac.h"
#include "obslistwizard.h"
#include "kstars.h"
#include "kstarsdata.h"
@@ -736,8 +737,9 @@
void ObservingList::plot( SkyObject *o ) {
if( !o ) return;
- KStarsDateTime ut = KStarsDateTime::currentDateTime().addSecs( (1.5)*86400. );
-
+ KStarsDateTime ut = KStarsDateTime::currentDateTime().addSecs( (1.5)*86400. );
+ ksal = KSAlmanac::Instance();
+ ui->View->setSunRiseSetTimes(ksal->getSunRise(),ksal->getSunSet());
double h1 = ks->LST()->Hours();
if ( h1 > 12.0 ) h1 -= 24.0;
double h2 = h1 + 24.0;
--- branches/kstars/summer/kstars/kstars/tools/observinglist.h #965585:965586
@@ -24,11 +24,11 @@
#include "skyobjects/skyobject.h"
#include "ui_observinglist.h"
-
+#include "ksalmanac.h"
+class KSAlmanac;
class QSortFilterProxyModel;
class QStandardItemModel;
class KStars;
-
class ObservingListUI : public QFrame, public Ui::ObservingList {
Q_OBJECT
@@ -186,6 +186,7 @@
private:
KStars *ks;
+ KSAlmanac *ksal;
ObservingListUI *ui;
QList<SkyObject*> m_ObservingList;
// QList<SkyObject*> m_SelectedObjects;
More information about the Kstars-devel
mailing list