AngleMeasureDialog.cpp   AngleMeasureDialog.cpp 
/* /*
* Angle Measure plug-in for Stellarium * Angle Measure plug-in for Stellarium
* *
* Copyright (C) 2014 Alexander Wolf * Copyright (C) 2014 Alexander Wolf, Georg Zotti
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 56 skipping to change at line 56
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
setAboutHtml(); setAboutHtml();
} }
} }
void AngleMeasureDialog::createDialogContent() void AngleMeasureDialog::createDialogContent()
{ {
am = GETSTELMODULE(AngleMeasure); am = GETSTELMODULE(AngleMeasure);
ui->setupUi(dialog); ui->setupUi(dialog);
//Kinetic scrolling for tablet pc and pc
QList<QWidget *> addscroll;
addscroll << ui->aboutTextBrowser;
installKineticScrolling(addscroll);
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())) ;
ui->useDmsFormatCheckBox->setChecked(am->isDmsFormat()); ui->useDmsFormatCheckBox->setChecked(am->isDmsFormat());
connect(ui->useDmsFormatCheckBox, SIGNAL(toggled(bool)), am, SLOT(us eDmsFormat(bool))); connect(ui->useDmsFormatCheckBox, SIGNAL(toggled(bool)), am, SLOT(us eDmsFormat(bool)));
ui->showPositionAngleCheckBox->setChecked(am->isPaDisplayed()); ui->showPositionAngleCheckBox->setChecked(am->isPaDisplayed());
connect(ui->showPositionAngleCheckBox, SIGNAL(toggled(bool)), am, SL OT(showPositionAngle(bool))); connect(ui->showPositionAngleCheckBox, SIGNAL(toggled(bool)), am, SL OT(showPositionAngle(bool)));
ui->showPositionAngleHorizontalCheckBox->setChecked(am->isHorPaDispl
ayed());
connect(ui->showPositionAngleHorizontalCheckBox, SIGNAL(toggled(bool
)), am, SLOT(showPositionAngleHor(bool)));
ui->showEquatorial_GroupBox->setChecked(am->isEquatorial());
connect(ui->showEquatorial_GroupBox, SIGNAL(toggled(bool)), am, SLOT
(showEquatorial(bool)));
ui->showHorizontal_GroupBox->setChecked(am->isHorizontal());
connect(ui->showHorizontal_GroupBox, SIGNAL(toggled(bool)), am, SLOT
(showHorizontal(bool)));
ui->azAltStartOnSkyCheckBox->setChecked(am->isHorizontalStartSkylink
ed());
connect(ui->azAltStartOnSkyCheckBox, SIGNAL(toggled(bool)), am, SLOT
(showHorizontalStartSkylinked(bool)));
ui->azAltEndOnSkyCheckBox->setChecked(am->isHorizontalEndSkylinked()
);
connect(ui->azAltEndOnSkyCheckBox, SIGNAL(toggled(bool)), am, SLOT(s
howHorizontalEndSkylinked(bool)));
connect(ui->saveSettingsButton, SIGNAL(clicked()), this, SLOT(saveAn gleMeasureSettings())); connect(ui->saveSettingsButton, SIGNAL(clicked()), this, SLOT(saveAn gleMeasureSettings()));
connect(ui->restoreDefaultsButton, SIGNAL(clicked()), this, SLOT(res etAngleMeasureSettings())); connect(ui->restoreDefaultsButton, SIGNAL(clicked()), this, SLOT(res etAngleMeasureSettings()));
setAboutHtml(); setAboutHtml();
} }
void AngleMeasureDialog::setAboutHtml(void) void AngleMeasureDialog::setAboutHtml(void)
{ {
QString html = "<html><head></head><body>"; QString html = "<html><head></head><body>";
html += "<h2>" + q_("Angle Measure Plug-in") + "</h2><table width=\" 90%\">"; html += "<h2>" + q_("Angle Measure Plug-in") + "</h2><table width=\" 90%\">";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + ANGLEMEASURE_VERSION + "</td></tr>"; html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + ANGLEMEASURE_VERSION + "</td></tr>";
html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Matt hew Gates</td></tr>"; html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Matt hew Gates</td></tr>";
html += "<tr><td><strong>" + q_("Contributors") + ":</strong></td><t d>Bogdan Marinov<br />Alexander Wolf &lt;alex.v.wolf@gmail.com&gt;</td></tr >"; html += "<tr><td><strong>" + q_("Contributors") + ":</strong></td><t d>Bogdan Marinov<br />Alexander Wolf &lt;alex.v.wolf@gmail.com&gt; <br />Ge org Zotti</td></tr>";
html += "</table>"; html += "</table>";
html += "<p>" + q_("The Angle Measure plugin is a small tool which i s used to measure the angular distance between two points on the sky (and c alculation of position angle between those two points).") + "</p>"; html += "<p>" + q_("The Angle Measure plugin is a small tool which i s used to measure the angular distance between two points on the sky (and c alculation of position angle between those two points).") + "</p>";
html += "<p>" + q_("Start and end points in horizontal mode can be l inked to the rotating sky, which may be helpful to keep relations between l andscape and some celestial object or (with both linked) for Dobsonian star hopping.") + "</p>";
html += "<p>" + q_("*goes misty eyed* I recall measuring the size of the Cassini Division when I was a student. It was not the high academic gl amor one might expect... It was cloudy... It was rainy... The observatory l ab had some old scopes set up at one end, pointing at a <em>photograph</em> of Saturn at the other end of the lab. We measured. We calculated. We wish ed we were in Hawaii.") + "</p>"; html += "<p>" + q_("*goes misty eyed* I recall measuring the size of the Cassini Division when I was a student. It was not the high academic gl amor one might expect... It was cloudy... It was rainy... The observatory l ab had some old scopes set up at one end, pointing at a <em>photograph</em> of Saturn at the other end of the lab. We measured. We calculated. We wish ed we were in Hawaii.") + "</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("Angle Me asure 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("Angle Me asure 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
 End of changes. 5 change blocks. 
2 lines changed or deleted 26 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/