ObservabilityDialog.cpp   ObservabilityDialog.cpp 
skipping to change at line 21 skipping to change at line 21
* 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.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "config.h"
#include <QDebug> #include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include "StelApp.hpp" #include "StelApp.hpp"
#include "ui_ObservabilityDialog.h" #include "ui_ObservabilityDialog.h"
#include "ObservabilityDialog.hpp" #include "ObservabilityDialog.hpp"
#include "Observability.hpp" #include "Observability.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelObjectMgr.hpp" #include "StelObjectMgr.hpp"
#include "StelMovementMgr.hpp" #include "StelMovementMgr.hpp"
skipping to change at line 69 skipping to change at line 67
// Initialize the dialog widgets and connect the signals/slots // Initialize the dialog widgets and connect the signals/slots
void ObservabilityDialog::createDialogContent() void ObservabilityDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
ui->tabs->setCurrentIndex(0); ui->tabs->setCurrentIndex(0);
connect(&StelApp::getInstance(), connect(&StelApp::getInstance(),
SIGNAL(languageChanged()), this, SLOT(retranslate())); SIGNAL(languageChanged()), this, SLOT(retranslate()));
Observability* plugin = GETSTELMODULE(Observability); Observability* plugin = GETSTELMODULE(Observability);
#ifdef Q_OS_WIN
//Kinetic scrolling for tablet pc and pc //Kinetic scrolling for tablet pc and pc
QList<QWidget *> addscroll; QList<QWidget *> addscroll;
addscroll << ui->aboutTextBrowser; addscroll << ui->aboutTextBrowser;
installKineticScrolling(addscroll); installKineticScrolling(addscroll);
#endif
// Settings: // Settings:
// clicked() is called only when the user makes an input, // clicked() is called only when the user makes an input,
// so we avoid an endless loop when setting the value in updateContr ols(). // so we avoid an endless loop when setting the value in updateContr ols().
connect(ui->todayCheckBox, SIGNAL(clicked(bool)), connect(ui->todayCheckBox, SIGNAL(clicked(bool)),
plugin, SLOT(enableTodayField(bool))); plugin, SLOT(enableTodayField(bool)));
connect(ui->acroCosCheckBox, SIGNAL(clicked(bool)), connect(ui->acroCosCheckBox, SIGNAL(clicked(bool)),
plugin, SLOT(enableAcroCosField(bool))); plugin, SLOT(enableAcroCosField(bool)));
connect(ui->oppositionCheckBox, SIGNAL(clicked(bool)), connect(ui->oppositionCheckBox, SIGNAL(clicked(bool)),
skipping to change at line 144 skipping to change at line 144
html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Ivan Marti-Vidal &lt;i.martividal@gmail.com&gt;</td></tr></table>"; html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Ivan Marti-Vidal &lt;i.martividal@gmail.com&gt;</td></tr></table>";
html += "<p>" + q_("Plugin that analyzes the observability of the se lected source (or the screen center, if no source is selected). The plugin can show rise, transit, and set times, as well as the best epoch of the yea r (i.e., largest angular separation from the Sun), the date range when the source is above the horizon at dark night, and the dates of Acronychal and Cosmical rise/set.<br>Ephemeris of the Solar-System objects and parallax ef fects are taken into account.<br><br> The author thanks Alexander Wolf and Georg Zotti for their advice.<br><br>Ivan Marti-Vidal (Onsala Space Observa tory)") + "</p>"; html += "<p>" + q_("Plugin that analyzes the observability of the se lected source (or the screen center, if no source is selected). The plugin can show rise, transit, and set times, as well as the best epoch of the yea r (i.e., largest angular separation from the Sun), the date range when the source is above the horizon at dark night, and the dates of Acronychal and Cosmical rise/set.<br>Ephemeris of the Solar-System objects and parallax ef fects are taken into account.<br><br> The author thanks Alexander Wolf and Georg Zotti for their advice.<br><br>Ivan Marti-Vidal (Onsala Space Observa tory)") + "</p>";
html += "<h3>" + q_("Explanation of some parameters") + "</h3><table width=\"90%\">"; html += "<h3>" + q_("Explanation of some parameters") + "</h3><table width=\"90%\">";
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Sun altit ude at twilight:")).arg(q_("Any celestial object will be considered visible when the Sun is below this altitude. The altitude at astronomical twilight ranges usually between -12 and -18 degrees. This parameter is only used fo r the estimate of the range of observable epochs (see below).")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Sun altit ude at twilight:")).arg(q_("Any celestial object will be considered visible when the Sun is below this altitude. The altitude at astronomical twilight ranges usually between -12 and -18 degrees. This parameter is only used fo r the estimate of the range of observable epochs (see below)."));
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Horizon a ltitude:")).arg(q_("Minimum observable altitude (due to mountains, building s, or just a limited telescope mount).")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Horizon a ltitude:")).arg(q_("Minimum observable altitude (due to mountains, building s, or just a limited telescope mount)."));
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Today eph emeris:")).arg(q_("Self-explanatory. The program will show the rise, set, a nd culmination (transit) times. The exact times for these ephemeris are giv en in two ways: as time spans (referred to the current time) and as clock h ours (in local time).")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Today eph emeris:")).arg(q_("Self-explanatory. The program will show the rise, set, a nd culmination (transit) times. The exact times for these ephemeris are giv en in two ways: as time spans (referred to the current time) and as clock h ours (in local time)."));
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Acronycha l/Cosmical rise/set:")).arg(q_("The Acronychal rise (or set) of an object h appens when the object rises (or sets) just when the Sun sets (or rises), r espectively. The exact dates of these ephemeris depend on the Observer's lo cation. The dates between the Acronychal set and rise are those when the al titude of the celestial object uses to be high when the Sun is well below t he horizon (hence the object can be well observed). On the contrary, the Co smical rise (or set) happens when both, the object and the Sun, rise (or se t) simultaneously. It is obvious that the source is hardly observable (or n ot observable at all) in the dates between Cosmical set and rise.")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Acronycha l/Cosmical/Heliacal rise/set:")).arg(q_("The days of Cosmical rise/set of a n object are estimated as the days when the object rises (or sets) together with the rise/set of the Sun. The exact dates of these ephemeris depend on the Observer's location. On the contrary, the Acronycal rise (or set) hap pens when the star rises/sets with the setting/rising of the Sun (i.e., opp osite to the Sun). On the one hand, it is obvious that the source is hardly observable (or not observable at all) in the dates between Cosmical set an d Cosmical rise. On the other hand, the dates around the Acronychal set and rise are those when the altitude of the celestial object uses to be high w hen the Sun is well below the horizon (hence the object can be well observe d). The date of Heliacal rise is the first day of the year when a star beco mes visible. It happens when the star is close to the eastern horizon rough ly before the end of the astronomical night (i.e., at the astronomical twil ight). In the following nights, the star will be visibile during longer per iods of time, until it reaches its Heliacal set (i.e., the last night of th e year when the star is still visible). At the Heliacal set, the star sets roughly after the beginning of the astronomical night."));
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Largest S un separation:")).arg(q_("Happens when the angular separation between the S un and the celestial object are maximum. In most cases, this is equivalent to say that the Equatorial longitudes of the Sun and the object differ by 1 80 degrees, so the Sun is in opposition to the object. When an object is at its maximum possible angular separation from the Sun (no matter if it is a planet or a star), it culminates roughly at midnight, and on the darkest p ossible area of the Sky at that declination. Hence, that is the 'best' nigh t to observe a particular object.")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Largest S un separation:")).arg(q_("Happens when the angular separation between the S un and the celestial object are maximum. In most cases, this is equivalent to say that the Equatorial longitudes of the Sun and the object differ by 1 80 degrees, so the Sun is in opposition to the object. When an object is at its maximum possible angular separation from the Sun (no matter if it is a planet or a star), it culminates roughly at midnight, and on the darkest p ossible area of the Sky at that declination. Hence, that is the 'best' nigh t to observe a particular object."));
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Nights wi th source above horizon:")).arg(q_("The program computes the range of dates when the celestial object is above the horizon at least during one moment of the night. By 'night', the program considers the time span when the Sun altitude is below that of the twilight (which can be set by the user; see a bove). When the objects are fixed on the sky (or are exterior planets), the range of observable epochs for the current year can have two possible form s: either a range from one date to another (e.g., 20 Jan to 15 Sep) or in t wo steps (from 1 Jan to a given date and from another date to 31 Dec). In t he first case, the first date (20 Jan in our example) shall be close to the so-called 'Heliacal rise of a star' and the second date (15 Sep in our exa mple) shall be close to the 'Heliacal set'. In the second case (e.g., a ran ge in the form 1 Jan to 20 May and 21 Sep to 31 Dec), the first date (20 Ma y in our example) would be close to the Heliacal set and the second one (21 Sep in our example) to the Heliacal rise. More exact equations to estimate the Heliacal rise/set of stars and planets (which will not depend on the m ere input of a twilight Sun elevation by the user) will be implemented in f uture versions of this plugin.")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Nights wi th source above horizon:")).arg(q_("The program computes the range of dates when the celestial object is above the horizon at least during one moment of the night. By 'night', the program considers the time span when the Sun altitude is below that of the twilight (which can be set by the user; see a bove). When the objects are fixed on the sky (or are exterior planets), the range of observable epochs for the current year can have two possible form s: either a range from one date to another (e.g., 20 Jan to 15 Sep) or in t wo steps (from 1 Jan to a given date and from another date to 31 Dec). In t he first case, the first date (20 Jan in our example) shall be close to the so-called 'Heliacal rise of a star' and the second date (15 Sep in our exa mple) shall be close to the 'Heliacal set'. In the second case (e.g., a ran ge in the form 1 Jan to 20 May and 21 Sep to 31 Dec), the first date (20 Ma y in our example) would be close to the Heliacal set and the second one (21 Sep in our example) to the Heliacal rise. More exact equations to estimate the Heliacal rise/set of stars and planets (which will not depend on the m ere input of a twilight Sun elevation by the user) will be implemented in f uture versions of this plugin."));
html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Full Moon :")).arg(q_("When the Moon is selected, the program can compute the exact c losest dates of the Moon's opposition to the Sun.")); html += QString("<tr><td>%1</td><td>%2</td></tr>").arg(q_("Full Moon :")).arg(q_("When the Moon is selected, the program can compute the exact c losest dates of the Moon's opposition to the Sun."));
html += "</table>"; html += "</table>";
html += "</body></html>"; html += "</body></html>";
ui->aboutTextBrowser->setHtml(html); ui->aboutTextBrowser->setHtml(html);
} }
void ObservabilityDialog::updateControls() void ObservabilityDialog::updateControls()
 End of changes. 4 change blocks. 
3 lines changed or deleted 3 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/