~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to src/gui/DateTimeDialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2009-03-13 20:07:22 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090313200722-l66s4zy2s3e8up0s
Tags: 0.10.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "StelApp.hpp"
24
24
#include "StelCore.hpp"
25
25
#include "StelLocaleMgr.hpp"
26
 
#include "Navigator.hpp"
 
26
#include "StelNavigator.hpp"
27
27
#include "ui_dateTimeDialogGui.h"
28
 
#include "TextEntryDateTimeValidator.hpp"
29
28
 
30
29
#include <QDebug>
31
30
#include <QFrame>
32
31
#include <QLineEdit>
33
 
#include <QValidator>
34
32
 
35
33
DateTimeDialog::DateTimeDialog() : 
36
34
  year(0),
52
50
void DateTimeDialog::createDialogContent()
53
51
{
54
52
        ui->setupUi(dialog);
55
 
        double jd = StelApp::getInstance().getCore()->getNavigation()->getJDay();
 
53
        double jd = StelApp::getInstance().getCore()->getNavigator()->getJDay();
56
54
        setDateTime(jd + (StelApp::getInstance().getLocaleMgr().getGMTShift(jd)/24.0)); // UTC -> local tz
57
55
 
58
56
        connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()));
64
62
        connect(ui->spinner_minute, SIGNAL(valueChanged(int)), this, SLOT(minuteChanged(int)));
65
63
        connect(ui->spinner_second, SIGNAL(valueChanged(int)), this, SLOT(secondChanged(int)));
66
64
 
67
 
        connect(this, SIGNAL(dateTimeChanged(double)), StelApp::getInstance().getCore()->getNavigation(), SLOT(setJDay(double)));
 
65
        connect(this, SIGNAL(dateTimeChanged(double)), StelApp::getInstance().getCore()->getNavigator(), SLOT(setJDay(double)));
68
66
}
69
67
 
70
68
//! take in values, adjust for calendrical correctness if needed, and push to