20 #ifndef _EQUATIONOFTIME_HPP_
21 #define _EQUATIONOFTIME_HPP_
23 #include "StelGui.hpp"
24 #include "StelModule.hpp"
62 Q_PROPERTY(
bool showEOT
71 virtual void deinit();
72 virtual void update(
double) {;}
74 virtual double getCallOrder(StelModuleActionName actionName)
const;
75 virtual bool configureGui(
bool show);
97 return flagShowSolutionEquationOfTime;
108 return flagUseMsFormat;
113 return flagUseInvertedValue;
115 bool getFlagEnableAtStartup(
void)
const
117 return flagEnableAtStartup;
119 bool getFlagShowEOTButton(
void)
const
121 return flagShowEOTButton;
139 void updateMessageText();
143 void restoreDefaultConfigIni(
void);
150 bool flagShowSolutionEquationOfTime;
151 bool flagUseInvertedValue;
152 bool flagUseMsFormat;
153 bool flagEnableAtStartup;
154 bool flagShowEOTButton;
155 QString messageEquation;
156 QString messageEquationMinutes;
157 QString messageEquationSeconds;
165 #include "StelPluginInterface.hpp"
171 Q_PLUGIN_METADATA(IID StelPluginInterface_iid)
void readSettingsFromConfig(void)
Read (or re-read) settings from the main config file.
void saveSettingsToConfig(void)
Save the settings to the main configuration file.
int getFontSize(void)
Get font size for messages.
void restoreDefaults(void)
Set up the plugin with default values.
void setFlagShowEOTButton(bool b)
Display plugin button on toolbar.
double getSolutionEquationOfTime(const double JDE) const
Get solution of equation of time Source: J.
void setFlagMsFormat(bool b)
Enable usage minutes and seconds for value.
bool getFlagMsFormat(void) const
Get status of usage minutes and seconds for value of equation.
bool isEnabled() const
Is plugin enabled?
void setFlagEnableAtStartup(bool b)
Enable plugin usage at startup.
Main window of the Equation of Time plug-in.
virtual StelPluginInfo getPluginInfo() const =0
virtual class StelModule * getStelModule() const =0
Main class of the Equation of Time plugin.
This class is used by Qt to manage a plug-in interface.
void setFlagInvertedValue(bool b)
Enable usage inverted value for equation of time (switch sign of equation)
void setFontSize(int size)
Set font size for message.
bool getFlagInvertedValue(void) const
Get status of usage inverted values for equation of time.
void enableEquationOfTime(bool b)
Enable plugin usage.