~alexwolf/stellarium/po-fix

« back to all changes in this revision

Viewing changes to src/gui/DateTimeDialog.cpp

  • Committer: Fabien Chéreau
  • Date: 2011-06-08 15:26:32 UTC
  • mfrom: (4821.1.50 refraction)
  • Revision ID: fabien.chereau@gmail.com-20110608152632-ufl8ly3l2hgk0zst
Merged atmosphere refraction support

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "StelApp.hpp"
23
23
#include "StelCore.hpp"
24
24
#include "StelLocaleMgr.hpp"
25
 
#include "StelNavigator.hpp"
 
25
 
26
26
#include "ui_dateTimeDialogGui.h"
27
27
 
28
28
#include <QDebug>
49
49
void DateTimeDialog::createDialogContent()
50
50
{
51
51
        ui->setupUi(dialog);
52
 
        double jd = StelApp::getInstance().getCore()->getNavigator()->getJDay();
 
52
        double jd = StelApp::getInstance().getCore()->getJDay();
53
53
        setDateTime(jd + (StelApp::getInstance().getLocaleMgr().getGMTShift(jd)/24.0)); // UTC -> local tz
54
54
 
55
55
        connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(languageChanged()));
62
62
        connect(ui->spinner_minute, SIGNAL(valueChanged(int)), this, SLOT(minuteChanged(int)));
63
63
        connect(ui->spinner_second, SIGNAL(valueChanged(int)), this, SLOT(secondChanged(int)));
64
64
 
65
 
        connect(this, SIGNAL(dateTimeChanged(double)), StelApp::getInstance().getCore()->getNavigator(), SLOT(setJDay(double)));
 
65
        connect(this, SIGNAL(dateTimeChanged(double)), StelApp::getInstance().getCore(), SLOT(setJDay(double)));
66
66
}
67
67
 
68
68
//! take in values, adjust for calendrical correctness if needed, and push to