ExoplanetsDialog.cpp   ExoplanetsDialog.cpp 
skipping to change at line 63 skipping to change at line 63
delete ui; delete ui;
} }
void ExoplanetsDialog::retranslate() void ExoplanetsDialog::retranslate()
{ {
if (dialog) if (dialog)
{ {
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
refreshUpdateValues(); refreshUpdateValues();
setAboutHtml(); setAboutHtml();
setInfoHtml();
} }
} }
// Initialize the dialog widgets and connect the signals/slots // Initialize the dialog widgets and connect the signals/slots
void ExoplanetsDialog::createDialogContent() void ExoplanetsDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
ui->tabs->setCurrentIndex(0); ui->tabs->setCurrentIndex(0);
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), connect(&StelApp::getInstance(), SIGNAL(languageChanged()),
this, SLOT(retranslate())); this, SLOT(retranslate()));
skipping to change at line 101 skipping to change at line 102
updateTimer = new QTimer(this); updateTimer = new QTimer(this);
connect(updateTimer, SIGNAL(timeout()), this, SLOT(refreshUpdateValu es())); connect(updateTimer, SIGNAL(timeout()), this, SLOT(refreshUpdateValu es()));
updateTimer->start(7000); updateTimer->start(7000);
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->restoreDefaultsButton, SIGNAL(clicked()), this, SLOT(res toreDefaults())); connect(ui->restoreDefaultsButton, SIGNAL(clicked()), this, SLOT(res toreDefaults()));
connect(ui->saveSettingsButton, SIGNAL(clicked()), this, SLOT(saveSe ttings())); connect(ui->saveSettingsButton, SIGNAL(clicked()), this, SLOT(saveSe ttings()));
// About tab // About & Info tabs
setAboutHtml(); setAboutHtml();
setInfoHtml();
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
Q_ASSERT(gui); Q_ASSERT(gui);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(QString(gui-> getStelStyle().htmlStyleSheet)); ui->aboutTextBrowser->document()->setDefaultStyleSheet(QString(gui-> getStelStyle().htmlStyleSheet));
ui->infoTextBrowser->document()->setDefaultStyleSheet(QString(gui->g etStelStyle().htmlStyleSheet));
updateGuiFromSettings(); updateGuiFromSettings();
} }
void ExoplanetsDialog::setAboutHtml(void) void ExoplanetsDialog::setAboutHtml(void)
{ {
QString html = "<html><head></head><body>"; QString html = "<html><head></head><body>";
html += "<h2>" + q_("Exoplanets Plug-in") + "</h2><table width=\"90% \">"; html += "<h2>" + q_("Exoplanets Plug-in") + "</h2><table width=\"90% \">";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + EXOPLANETS_PLUGIN_VERSION + "</td></tr>"; html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + EXOPLANETS_PLUGIN_VERSION + "</td></tr>";
skipping to change at line 140 skipping to change at line 143
html += "<li>" + q_("If you want read full information about plugin, his history and format of catalog you can %1get info here%2.").arg("<a hre f=\"http://stellarium.org/wiki/index.php/Exoplanets_plugin\">").arg("</a>") + "</li>"; html += "<li>" + q_("If you want read full information about plugin, his history and format of catalog you can %1get info here%2.").arg("<a hre f=\"http://stellarium.org/wiki/index.php/Exoplanets_plugin\">").arg("</a>") + "</li>";
html += "</ul></p></body></html>"; html += "</ul></p></body></html>";
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
Q_ASSERT(gui); Q_ASSERT(gui);
QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet); QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlStyleShee t); ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlStyleShee t);
ui->aboutTextBrowser->setHtml(html); ui->aboutTextBrowser->setHtml(html);
} }
void ExoplanetsDialog::setInfoHtml(void)
{
QString html = "<html><head></head><body>";
html += "<h2>" + q_("General professional Web sites relevant to extr
asolar planets") + "</h2><ul>";
html += QString("<li><a href='%1'>%2</a></li>").arg("http://codement
um.org/exoplanets/").arg(q_("Exoplanets: an interactive version of XKCD 107
1"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.cfa.
harvard.edu/HEK/").arg(q_("HEK (The Hunt for Exomoons with Kepler)"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.univ
ie.ac.at/adg/schwarz/multiple.html").arg(q_("Exoplanets in binaries and mul
tiple systems (Richard Schwarz)"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.iau.
org/public/naming/#exoplanets").arg(q_("Naming exoplanets (IAU)"));
html += QString("<li><a href='%1'>%2</a> (<em>%3</em>)</li>").arg("h
ttp://voparis-exoplanet.obspm.fr/people.html").arg(q_("Some Astronomers and
Groups active in extrasolar planets studies")).arg(q_("update: 16 April 20
12"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://exoplane
ts.org/").arg(q_("The Exoplanet Data Explorer"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.phys
.unsw.edu.au/~cgt/planet/AAPS_Home.html").arg(q_("The Anglo-Australian Plan
et Search"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.exop
lanets.ch/").arg(q_("Geneva Extrasolar Planet Search Programmes"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://olbin.jp
l.nasa.gov/").arg(q_("OLBIN (Optical Long-Baseline Interferometry News)"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://exep.jpl
.nasa.gov/").arg(q_("NASA's Exoplanet Exploration Program"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.astr
o.psu.edu/users/alex/pulsar_planets.htm").arg(q_("Pulsar planets"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://exoplane
tarchive.ipac.caltech.edu/").arg(q_("The NASA Exoplanet Archive"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.dtm.
ciw.edu/boss/c53index.html").arg(q_("IAU Comission 53: Extrasolar Planets")
);
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.exom
ol.com/").arg(q_("ExoMol"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.hzga
llery.org/").arg(q_("The Habitable Zone Gallery"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://planetqu
est.jpl.nasa.gov/").arg(q_("PlanetQuest - The Search for Another Earth"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://www.open
exoplanetcatalogue.com/").arg(q_("Open Exoplanet Catalogue"));
html += QString("<li><a href='%1'>%2</a></li>").arg("http://phl.upr.
edu/projects/habitable-exoplanets-catalog").arg(q_("The Habitable Exoplanet
s Catalog"));
html += "</ul></body></html>";
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui(
));
Q_ASSERT(gui);
QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet);
ui->infoTextBrowser->document()->setDefaultStyleSheet(htmlStyleSheet
);
ui->infoTextBrowser->setHtml(html);
}
void ExoplanetsDialog::refreshUpdateValues(void) void ExoplanetsDialog::refreshUpdateValues(void)
{ {
ui->lastUpdateDateTimeEdit->setDateTime(GETSTELMODULE(Exoplanets)->g etLastUpdate()); ui->lastUpdateDateTimeEdit->setDateTime(GETSTELMODULE(Exoplanets)->g etLastUpdate());
ui->updateFrequencySpinBox->setValue(GETSTELMODULE(Exoplanets)->getU pdateFrequencyHours()); ui->updateFrequencySpinBox->setValue(GETSTELMODULE(Exoplanets)->getU pdateFrequencyHours());
int secondsToUpdate = GETSTELMODULE(Exoplanets)->getSecondsToUpdate( ); int secondsToUpdate = GETSTELMODULE(Exoplanets)->getSecondsToUpdate( );
ui->internetUpdatesCheckbox->setChecked(GETSTELMODULE(Exoplanets)->g etUpdatesEnabled()); ui->internetUpdatesCheckbox->setChecked(GETSTELMODULE(Exoplanets)->g etUpdatesEnabled());
if (!GETSTELMODULE(Exoplanets)->getUpdatesEnabled()) if (!GETSTELMODULE(Exoplanets)->getUpdatesEnabled())
ui->nextUpdateLabel->setText(q_("Internet updates disabled") ); ui->nextUpdateLabel->setText(q_("Internet updates disabled") );
else if (GETSTELMODULE(Exoplanets)->getUpdateState() == Exoplanets:: Updating) else if (GETSTELMODULE(Exoplanets)->getUpdateState() == Exoplanets:: Updating)
ui->nextUpdateLabel->setText(q_("Updating now...")); ui->nextUpdateLabel->setText(q_("Updating now..."));
 End of changes. 5 change blocks. 
1 lines changed or deleted 63 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/