ExoplanetsDialog.cpp   ExoplanetsDialog.cpp 
skipping to change at line 75 skipping to change at line 75
// 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()));
// Settings tab / updates group // Settings tab / updates group
ui->displayAtStartupCheckBox->setChecked(GETSTELMODULE(Exoplanets)->
getEnableAtStartup());
connect(ui->displayAtStartupCheckBox, SIGNAL(stateChanged(int)), thi
s, SLOT(setDisplayAtStartupEnabled(int)));
ui->displayModeCheckBox->setChecked(GETSTELMODULE(Exoplanets)->getDi splayMode()); ui->displayModeCheckBox->setChecked(GETSTELMODULE(Exoplanets)->getDi splayMode());
connect(ui->displayModeCheckBox, SIGNAL(stateChanged(int)), this, SL OT(setDistributionEnabled(int))); connect(ui->displayModeCheckBox, SIGNAL(stateChanged(int)), this, SL OT(setDistributionEnabled(int)));
ui->displayShowExoplanetsButton->setChecked(GETSTELMODULE(Exoplanets
)->getFlagShowExoplanetsButton());
connect(ui->displayShowExoplanetsButton, SIGNAL(stateChanged(int)),
this, SLOT(setDisplayShowExoplanetsButton(int)));
ui->timelineModeCheckBox->setChecked(GETSTELMODULE(Exoplanets)->getT imelineMode()); ui->timelineModeCheckBox->setChecked(GETSTELMODULE(Exoplanets)->getT imelineMode());
connect(ui->timelineModeCheckBox, SIGNAL(stateChanged(int)), this, S LOT(setTimelineEnabled(int))); connect(ui->timelineModeCheckBox, SIGNAL(stateChanged(int)), this, S LOT(setTimelineEnabled(int)));
connect(ui->internetUpdatesCheckbox, SIGNAL(stateChanged(int)), this , SLOT(setUpdatesEnabled(int))); connect(ui->internetUpdatesCheckbox, SIGNAL(stateChanged(int)), this , SLOT(setUpdatesEnabled(int)));
connect(ui->updateButton, SIGNAL(clicked()), this, SLOT(updateJSON() )); connect(ui->updateButton, SIGNAL(clicked()), this, SLOT(updateJSON() ));
connect(GETSTELMODULE(Exoplanets), SIGNAL(updateStateChanged(Exoplan ets::UpdateState)), this, SLOT(updateStateReceiver(Exoplanets::UpdateState) )); connect(GETSTELMODULE(Exoplanets), SIGNAL(updateStateChanged(Exoplan ets::UpdateState)), this, SLOT(updateStateReceiver(Exoplanets::UpdateState) ));
connect(GETSTELMODULE(Exoplanets), SIGNAL(jsonUpdateComplete(void)), this, SLOT(updateCompleteReceiver(void))); connect(GETSTELMODULE(Exoplanets), SIGNAL(jsonUpdateComplete(void)), this, SLOT(updateCompleteReceiver(void)));
connect(ui->updateFrequencySpinBox, SIGNAL(valueChanged(int)), this, SLOT(setUpdateValues(int))); connect(ui->updateFrequencySpinBox, SIGNAL(valueChanged(int)), this, SLOT(setUpdateValues(int)));
refreshUpdateValues(); // fetch values for last updated and so on refreshUpdateValues(); // fetch values for last updated and so on
// if the state didn't change, setUpdatesEnabled will not be called, so we force it // if the state didn't change, setUpdatesEnabled will not be called, so we force it
setUpdatesEnabled(ui->internetUpdatesCheckbox->checkState()); setUpdatesEnabled(ui->internetUpdatesCheckbox->checkState());
skipping to change at line 114 skipping to change at line 118
} }
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>";
html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Alex ander Wolf &lt;alex.v.wolf@gmail.com&gt;</td></tr></table>"; html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Alex ander Wolf &lt;alex.v.wolf@gmail.com&gt;</td></tr></table>";
html += "<p>" + QString(q_("This plugin plots the position of stars with exoplanets. Exoplanets data is derived from \"%1The Extrasolar Planets Encyclopaedia%2\"")).arg("<a href=\"http://exoplanet.eu/\">").arg("</a>") + "</p>"; html += "<p>" + QString(q_("This plugin plots the position of stars with exoplanets. Exoplanets data is derived from \"%1The Extrasolar Planets Encyclopaedia%2\"")).arg("<a href=\"http://exoplanet.eu/\">").arg("</a>") + ".</p>";
html += "<h3>" + q_("Links") + "</h3>"; html += "<h3>" + q_("Links") + "</h3>";
html += "<p>" + QString(q_("Support is provided via the Launchpad we bsite. Be sure to put \"%1\" in the subject when posting.")).arg("Exoplane ts plugin") + "</p>"; html += "<p>" + QString(q_("Support is provided via the Launchpad we bsite. Be sure to put \"%1\" in the subject when posting.")).arg("Exoplane ts plugin") + "</p>";
html += "<p><ul>"; html += "<p><ul>";
// TRANSLATORS: The numbers contain the opening and closing tag of a n HTML link // TRANSLATORS: The numbers contain the opening and closing tag of a n HTML link
html += "<li>" + QString(q_("If you have a question, you can %1get a n answer here%2").arg("<a href=\"https://answers.launchpad.net/stellarium\" >")).arg("</a>") + "</li>"; html += "<li>" + QString(q_("If you have a question, you can %1get a n answer here%2").arg("<a href=\"https://answers.launchpad.net/stellarium\" >")).arg("</a>") + "</li>";
// TRANSLATORS: The numbers contain the opening and closing tag of a n HTML link // TRANSLATORS: The numbers contain the opening and closing tag of a n HTML link
html += "<li>" + QString(q_("Bug reports can be made %1here%2.")).ar g("<a href=\"https://bugs.launchpad.net/stellarium\">").arg("</a>") + "</li >"; html += "<li>" + QString(q_("Bug reports can be made %1here%2.")).ar g("<a href=\"https://bugs.launchpad.net/stellarium\">").arg("</a>") + "</li >";
// TRANSLATORS: The numbers contain the opening and closing tag of a n HTML link // TRANSLATORS: The numbers contain the opening and closing tag of a n HTML link
html += "<li>" + q_("If you would like to make a feature request, yo u can create a bug report, and set the severity to \"wishlist\".") + "</li> "; html += "<li>" + q_("If you would like to make a feature request, yo u can create a bug report, and set the severity to \"wishlist\".") + "</li> ";
skipping to change at line 172 skipping to change at line 176
bool b = checkState != Qt::Unchecked; bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Exoplanets)->setDisplayMode(b); GETSTELMODULE(Exoplanets)->setDisplayMode(b);
} }
void ExoplanetsDialog::setTimelineEnabled(int checkState) void ExoplanetsDialog::setTimelineEnabled(int checkState)
{ {
bool b = checkState != Qt::Unchecked; bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Exoplanets)->setTimelineMode(b); GETSTELMODULE(Exoplanets)->setTimelineMode(b);
} }
void ExoplanetsDialog::setDisplayAtStartupEnabled(int checkState)
{
bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Exoplanets)->setEnableAtStartup(b);
}
void ExoplanetsDialog::setDisplayShowExoplanetsButton(int checkState)
{
bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Exoplanets)->setFlagShowExoplanetsButton(b);
}
void ExoplanetsDialog::setUpdatesEnabled(int checkState) void ExoplanetsDialog::setUpdatesEnabled(int checkState)
{ {
bool b = checkState != Qt::Unchecked; bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Exoplanets)->setUpdatesEnabled(b); GETSTELMODULE(Exoplanets)->setUpdatesEnabled(b);
ui->updateFrequencySpinBox->setEnabled(b); ui->updateFrequencySpinBox->setEnabled(b);
if(b) if(b)
ui->updateButton->setText(q_("Update now")); ui->updateButton->setText(q_("Update now"));
else else
ui->updateButton->setText(q_("Update from files")); ui->updateButton->setText(q_("Update from files"));
 End of changes. 4 change blocks. 
1 lines changed or deleted 21 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/