TimeZoneConfigurationWindow.cpp   TimeZoneConfigurationWindow.cpp 
skipping to change at line 43 skipping to change at line 43
defineTimeZoneWindow = NULL; defineTimeZoneWindow = NULL;
} }
TimeZoneConfigurationWindow::~TimeZoneConfigurationWindow() TimeZoneConfigurationWindow::~TimeZoneConfigurationWindow()
{ {
delete ui; delete ui;
if (defineTimeZoneWindow) if (defineTimeZoneWindow)
delete defineTimeZoneWindow; delete defineTimeZoneWindow;
} }
void TimeZoneConfigurationWindow::languageChanged() void TimeZoneConfigurationWindow::retranslate()
{ {
if (dialog) if (dialog)
{
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
updateAboutText();
}
} }
void TimeZoneConfigurationWindow::createDialogContent() void TimeZoneConfigurationWindow::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(languageChanged())); 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->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveTimeZo neSettings())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveTimeZo neSettings()));
connect(ui->pushButtonEditTimeZone, SIGNAL(clicked()), this, SLOT(op enDefineTimeZoneWindow())); connect(ui->pushButtonEditTimeZone, SIGNAL(clicked()), this, SLOT(op enDefineTimeZoneWindow()));
connect(ui->radioButtonTimeDefault, SIGNAL(toggled(bool)), this, SLO T(setTimeFormat(bool))); connect(ui->radioButtonTimeDefault, SIGNAL(toggled(bool)), this, SLO T(setTimeFormat(bool)));
connect(ui->radioButtonTime12Hour, SIGNAL(toggled(bool)), this, SLOT (setTimeFormat(bool))); connect(ui->radioButtonTime12Hour, SIGNAL(toggled(bool)), this, SLOT (setTimeFormat(bool)));
connect(ui->radioButtonTime24Hour, SIGNAL(toggled(bool)), this, SLOT (setTimeFormat(bool))); connect(ui->radioButtonTime24Hour, SIGNAL(toggled(bool)), this, SLOT (setTimeFormat(bool)));
connect(ui->radioButtonDateDefault, SIGNAL(toggled(bool)), this, SLO T(setDateFormat(bool))); connect(ui->radioButtonDateDefault, SIGNAL(toggled(bool)), this, SLO T(setDateFormat(bool)));
connect(ui->radioButtonDateDMY, SIGNAL(toggled(bool)), this, SLOT(se tDateFormat(bool))); connect(ui->radioButtonDateDMY, SIGNAL(toggled(bool)), this, SLOT(se tDateFormat(bool)));
skipping to change at line 96 skipping to change at line 99
} }
else if (currentTimeZoneString == "system_default") else if (currentTimeZoneString == "system_default")
{ {
ui->radioButtonLocalSettings->setChecked(true); ui->radioButtonLocalSettings->setChecked(true);
} }
else else
{ {
ui->radioButtonUserDefined->setChecked(true); ui->radioButtonUserDefined->setChecked(true);
} }
QString version = QString("Time Zone plug-in (version %1)").arg(TIME updateAboutText();
_ZONE_CONFIGURATION_VERSION); }
ui->labelTitle->setText(version);
void TimeZoneConfigurationWindow::updateAboutText()
{
ui->labelTitle->setText(q_("Time Zone plug-in"));
QString version = QString(q_("Version %1")).arg(TIME_ZONE_CONFIGURAT
ION_VERSION);
ui->labelVersion->setText(version);
} }
void TimeZoneConfigurationWindow::saveTimeZoneSettings() void TimeZoneConfigurationWindow::saveTimeZoneSettings()
{ {
QString timeZoneString; QString timeZoneString;
if (ui->radioButtonUtc->isChecked()) if (ui->radioButtonUtc->isChecked())
{ {
timeZoneString = "SCT+0";//"Stellarium Custom Time" :) timeZoneString = "SCT+0";//"Stellarium Custom Time" :)
} }
else if (ui->radioButtonOffset->isChecked()) else if (ui->radioButtonOffset->isChecked())
 End of changes. 5 change blocks. 
5 lines changed or deleted 14 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/