20 #ifndef _POINTERCOORDINATES_HPP_
21 #define _POINTERCOORDINATES_HPP_
23 #include "StelGui.hpp"
24 #include "StelModule.hpp"
53 Q_ENUMS(CoordinatesPlace)
54 Q_ENUMS(CoordinateSystem)
55 Q_PROPERTY(
bool enabled
88 virtual void deinit();
89 virtual void update(
double) {;}
91 virtual double getCallOrder(StelModuleActionName actionName)
const;
92 virtual bool configureGui(
bool show);
96 void restoreDefaultConfiguration(
void);
100 void loadConfiguration(
void);
103 void saveConfiguration(
void);
106 bool isEnabled()
const
108 return flagShowCoordinates;
112 int getFontSize(
void)
116 bool getFlagEnableAtStartup(
void)
118 return flagEnableAtStartup;
120 bool getFlagShowCoordinatesButton(
void)
122 return flagShowCoordinatesButton;
125 QPair<int, int> getCoordinatesPlace(QString text);
127 QPair<int, int> getCustomCoordinatesPlace()
129 return customPosition;
138 flagEnableAtStartup=b;
151 currentPlace = place;
166 currentCoordinateSystem = cs;
171 return currentCoordinateSystem;
178 void setCustomCoordinatesPlace(
int x,
int y);
186 CoordinatesPlace currentPlace;
188 CoordinateSystem currentCoordinateSystem;
191 bool flagShowCoordinates;
192 bool flagEnableAtStartup;
193 bool flagShowCoordinatesButton;
195 Vec3d coordinatesPoint;
198 QPair<int, int> customPosition;
203 #include "StelPluginInterface.hpp"
209 Q_PLUGIN_METADATA(IID StelPluginInterface_iid)
QString getCurrentCoordinateSystemKey(void) const
Get the current coordinate system key.
Main window of the Pointer Coordinates plug-in.
virtual StelPluginInfo getPluginInfo() const =0
void setFlagShowCoordinatesButton(bool b)
Display plugin button on toolbar.
CoordinatesPlace getCurrentCoordinatesPlace() const
Get the current place of the string with coordinates.
This class is used by Qt to manage a plug-in interface.
Main class of the Pointer Coordinates plugin.
virtual class StelModule * getStelModule() const =0
void setCurrentCoordinatesPlace(CoordinatesPlace place)
Set the current place of the string with coordinates.
void setCurrentCoordinatesPlaceKey(QString key)
Set the current place of the string with coordinates from its key.
void setCurrentCoordinateSystem(CoordinateSystem cs)
Set the current coordinate system.
void setFlagEnableAtStartup(bool b)
Enable plugin usage at startup.
void setCurrentCoordinateSystemKey(QString key)
Set the current coordinate system from its key.
CoordinateSystem getCurrentCoordinateSystem() const
Get the current coordinate system.
void setFontSize(int size)
Set font size for message.
void enableCoordinates(bool b)
Enable plugin usage.
QString getCurrentCoordinatesPlaceKey(void) const
Get the current place of the string with coordinates.