DateTimeDialog.cpp   DateTimeDialog.cpp 
skipping to change at line 35 skipping to change at line 35
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include "ui_dateTimeDialogGui.h" #include "ui_dateTimeDialogGui.h"
#include <QDebug> #include <QDebug>
#include <QFrame> #include <QFrame>
#include <QLineEdit> #include <QLineEdit>
DateTimeDialog::DateTimeDialog(QObject* parent) : DateTimeDialog::DateTimeDialog(QObject* parent) :
StelDialog(parent), StelDialog("DateTime", parent),
year(0), year(0),
month(0), month(0),
day(0), day(0),
hour(0), hour(0),
minute(0), minute(0),
second(0), second(0),
jd(0) jd(0)
{ {
ui = new Ui_dateTimeDialogForm; ui = new Ui_dateTimeDialogForm;
dialogName = "DateTime";
} }
DateTimeDialog::~DateTimeDialog() DateTimeDialog::~DateTimeDialog()
{ {
delete ui; delete ui;
ui=NULL; ui=NULL;
} }
void DateTimeDialog::createDialogContent() void DateTimeDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
StelCore *core = StelApp::getInstance().getCore(); StelCore *core = StelApp::getInstance().getCore();
double jd = core->getJD(); double jd = core->getJD();
// UTC -> local tz // UTC -> local tz
setDateTime(jd + (core->getUTCOffset(jd)/24.0)); setDateTime(jd + (core->getUTCOffset(jd)/24.0));
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMove dTo(QPoint))); connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMove dTo(QPoint)));
// Use ISO 8601 to date formatting
// See details: https://bugs.launchpad.net/stellarium/+bug/1655630
QString delimiter = QChar(0x2012);
ui->dateDelimiterLabel1->setText(delimiter);
ui->dateDelimiterLabel2->setText(delimiter);
connectSpinnerEvents(); connectSpinnerEvents();
} }
void DateTimeDialog::connectSpinnerEvents() const void DateTimeDialog::connectSpinnerEvents() const
{ {
connect(ui->spinner_year, SIGNAL(valueChanged(int)), this, SLOT(year Changed(int))); connect(ui->spinner_year, SIGNAL(valueChanged(int)), this, SLOT(year Changed(int)));
connect(ui->spinner_month, SIGNAL(valueChanged(int)), this, SLOT(mon thChanged(int))); connect(ui->spinner_month, SIGNAL(valueChanged(int)), this, SLOT(mon thChanged(int)));
connect(ui->spinner_day, SIGNAL(valueChanged(int)), this, SLOT(dayCh anged(int))); connect(ui->spinner_day, SIGNAL(valueChanged(int)), this, SLOT(dayCh anged(int)));
connect(ui->spinner_hour, SIGNAL(valueChanged(int)), this, SLOT(hour Changed(int))); connect(ui->spinner_hour, SIGNAL(valueChanged(int)), this, SLOT(hour Changed(int)));
connect(ui->spinner_minute, SIGNAL(valueChanged(int)), this, SLOT(mi nuteChanged(int))); connect(ui->spinner_minute, SIGNAL(valueChanged(int)), this, SLOT(mi nuteChanged(int)));
 End of changes. 3 change blocks. 
2 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/