Observability.hpp   Observability.hpp 
skipping to change at line 57 skipping to change at line 57
@todo For each suspicious member variable, check if it can't be actually a local variable. @todo For each suspicious member variable, check if it can't be actually a local variable.
@} @}
*/ */
//! Main class of the %Observability Analysis plug-in. //! Main class of the %Observability Analysis plug-in.
//! @ingroup observability //! @ingroup observability
//! @class Observability //! @class Observability
class Observability : public StelModule class Observability : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool flagShowReport READ isShownReport WRITE showReport) Q_PROPERTY(bool flagShowReport
READ isShownReport
WRITE showReport
NOTIFY flagReportVisibilityChanged
)
public: public:
Observability(); Observability();
virtual ~Observability(); virtual ~Observability();
virtual void init(); virtual void init();
virtual void update(double) {;} virtual void update(double) {;}
virtual void draw(StelCore* core); virtual void draw(StelCore* core);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//! Implement this to tell the main Stellarium GUI that there is a G UI element to configure this plugin. //! Implement this to tell the main Stellarium GUI that there is a G UI element to configure this plugin.
virtual bool configureGui(bool show=true); virtual bool configureGui(bool show=true);
skipping to change at line 91 skipping to change at line 95
int getFontSize(void); int getFontSize(void);
//! Get the user-defined Sun altitude at twilight. //! Get the user-defined Sun altitude at twilight.
//! @returns A value in degrees. //! @returns A value in degrees.
int getTwilightAltitude(); int getTwilightAltitude();
//! Get the user-defined altitude of the visual horizon. //! Get the user-defined altitude of the visual horizon.
int getHorizonAltitude(); int getHorizonAltitude();
bool isShownReport() const {return flagShowReport;} bool isShownReport() const {return flagShowReport;}
signals:
void flagReportVisibilityChanged(bool b);
public slots: public slots:
//! Restore and reload the default plug-in settings. //! Restore and reload the default plug-in settings.
void resetConfiguration(); void resetConfiguration();
//! Save the plug-in's configuration to the main configuration file. //! Save the plug-in's configuration to the main configuration file.
void saveConfiguration(); void saveConfiguration();
//! @name Fields displayed in the observability report. //! @name Fields displayed in the observability report.
//! @{ //! @{
//! Display today's events (rise, set and transit times). //! Display today's events (rise, set and transit times).
skipping to change at line 273 skipping to change at line 281
//! Table containing the Julian Dates of the days of the current yea r. //! Table containing the Julian Dates of the days of the current yea r.
QPair<double, double> yearJD[366]; // GZ: This had to become a QPair of JD.first=JD_UT, JD.second=JDE QPair<double, double> yearJD[366]; // GZ: This had to become a QPair of JD.first=JD_UT, JD.second=JDE
//! Check if a source is observable during a given date. //! Check if a source is observable during a given date.
//! @param i the day of the year. //! @param i the day of the year.
bool CheckRise(int day); bool CheckRise(int day);
//! Some useful constants (almost self-explanatory). //! Some useful constants (almost self-explanatory).
// GZ: Made true constants out of those, and improved accuracy of so me. // GZ: Made true constants out of those, and improved accuracy of so me.
static const double Rad2Deg, Rad2Hr, UA, TFrac, JDsec, halfpi, MoonT , RefFullMoon, MoonPerilune; static const double Rad2Deg, Rad2Hr, UA, TFrac, halfpi, MoonT, RefFu llMoon, MoonPerilune;
//! Some useful variables(almost self-explanatory). //! Some useful variables(almost self-explanatory).
double nextFullMoon, prevFullMoon, GMTShift, Jan1stJD; double nextFullMoon, prevFullMoon, GMTShift, Jan1stJD;
//! User-defined angular altitude of astronomical twilight in radian s. //! User-defined angular altitude of astronomical twilight in radian s.
//! See setTwilightAltitude() and getTwilightAltitude(). //! See setTwilightAltitude() and getTwilightAltitude().
double twilightAltRad; double twilightAltRad;
//! User-defined angular altitude of astronomical twilight in degree s. //! User-defined angular altitude of astronomical twilight in degree s.
//! See setTwilightAltitude() and getTwilightAltitude(). //! See setTwilightAltitude() and getTwilightAltitude().
 End of changes. 3 change blocks. 
2 lines changed or deleted 10 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/