20 #ifndef _EQUATIONOFTIME_HPP_ 21 #define _EQUATIONOFTIME_HPP_ 23 #include "StelGui.hpp" 24 #include "StelModule.hpp" 62 Q_PROPERTY(
bool showEOT
65 NOTIFY equationOfTimeStateChanged)
92 return flagShowSolutionEquationOfTime;
103 return flagUseMsFormat;
108 return flagUseInvertedValue;
110 bool getFlagEnableAtStartup(
void)
const 112 return flagEnableAtStartup;
114 bool getFlagShowEOTButton(
void)
const 116 return flagShowEOTButton;
134 void updateMessageText();
137 void equationOfTimeStateChanged(
bool b);
141 void restoreDefaultConfigIni(
void);
148 bool flagShowSolutionEquationOfTime;
149 bool flagUseInvertedValue;
150 bool flagUseMsFormat;
151 bool flagEnableAtStartup;
152 bool flagShowEOTButton;
153 QString messageEquation;
154 QString messageEquationMinutes;
155 QString messageEquationSeconds;
163 #include "StelPluginInterface.hpp" 169 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.
virtual void init()
Initialize itself.
Define the interface to implement when creating a plugin.
int getFontSize(void)
Get font size for messages.
virtual bool configureGui(bool show)
Detect or show the configuration GUI elements for the module.
void restoreDefaults(void)
Set up the plugin with default values.
void setFlagShowEOTButton(bool b)
Display plugin button on toolbar.
void setFlagMsFormat(bool b)
Enable usage minutes and seconds for value.
virtual double getCallOrder(StelModuleActionName actionName) const
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations.
bool getFlagMsFormat(void) const
Get status of usage minutes and seconds for value of equation.
bool isEnabled() const
Is plugin enabled?
Main class for Stellarium core processing.
void setFlagEnableAtStartup(bool b)
Enable plugin usage at startup.
Main window of the Equation of Time plug-in.
virtual void deinit()
Called before the module will be delete, and before the openGL context is suppressed.
virtual void update(double)
Update the module with respect to the time.
Main class of the Equation of Time plugin.
StelModuleActionName
Define the possible action for which an order is defined.
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)
Main class for the GUI based on QGraphicView.
virtual void draw(StelCore *core)
Execute all the drawing functions for this module.
void setFontSize(int size)
Set font size for message.
bool getFlagInvertedValue(void) const
Get status of usage inverted values for equation of time.
This is the common base class for all the main components of stellarium.
Contains information about a Stellarium plugin.
void enableEquationOfTime(bool b)
Enable plugin usage.