EquationOfTime.hpp   EquationOfTime.hpp 
skipping to change at line 33 skipping to change at line 33
#include "StelGui.hpp" #include "StelGui.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include <QFont> #include <QFont>
#include <QString> #include <QString>
class QPixmap; class QPixmap;
class StelButton; class StelButton;
class EquationOfTimeWindow; class EquationOfTimeWindow;
/*! @defgroup equationOfTime Equation of Time plug-in
@{
The %Equation of Time plugin shows the solution of the equation of time.
The equation of time describes the discrepancy between two kinds of solar
time. These are apparent solar time, which directly tracks the motion of
the sun, and mean solar time, which tracks a fictitious "mean" sun with
noons 24 hours apart. There is no universally accepted definition of the
sign of the equation of time. Some publications show it as positive when
a sundial is ahead of a clock; others when the clock is ahead of the sundia
l.
In the English-speaking world, the former usage is the more common, but is
not always followed. Anyone who makes use of a published table or graph
should first check its sign usage.
<b>Configuration</b>
The plug-ins' configuration data is stored in Stellarium's main configurati
on
file (section [EquationOfTime]).
@}
*/
//! @class EquationOfTime
//! @ingroup equationOfTime
//! Main class of the %Equation of Time plugin.
//! @author Alexander Wolf
class EquationOfTime : public StelModule class EquationOfTime : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool showEOT Q_PROPERTY(bool showEOT
READ isEnabled READ isEnabled
WRITE enableEquationOfTime) WRITE enableEquationOfTime)
public: public:
EquationOfTime(); EquationOfTime();
virtual ~EquationOfTime(); virtual ~EquationOfTime();
skipping to change at line 64 skipping to change at line 90
//! Read (or re-read) settings from the main config file. This will be called from init and also //! Read (or re-read) settings from the main config file. This will be called from init and also
//! when restoring defaults (i.e. from the configuration dialog / re store defaults button). //! when restoring defaults (i.e. from the configuration dialog / re store defaults button).
void readSettingsFromConfig(void); void readSettingsFromConfig(void);
//! Save the settings to the main configuration file. //! Save the settings to the main configuration file.
void saveSettingsToConfig(void); void saveSettingsToConfig(void);
//! Get solution of equation of time //! Get solution of equation of time
//! Source: J. Meeus "Astronomical Algorithms" (2nd ed., with correc tions as of August 10, 2009) p.183-187. //! Source: J. Meeus "Astronomical Algorithms" (2nd ed., with correc tions as of August 10, 2009) p.183-187.
//! @param JDay JD //! @param JDE JD in Dynamical Time (previously called Ephemeris Tim e)
//! @return time in minutes //! @return time in minutes
double getSolutionEquationOfTime(const double JDay) const; double getSolutionEquationOfTime(const double JDE) const;
//! Is plugin enabled? //! Is plugin enabled?
bool isEnabled() const bool isEnabled() const
{ {
return flagShowSolutionEquationOfTime; return flagShowSolutionEquationOfTime;
} }
//! Get font size for messages //! Get font size for messages
int getFontSize(void) int getFontSize(void)
{ {
 End of changes. 3 change blocks. 
2 lines changed or deleted 30 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/