20 #ifndef _POINTERCOORDINATES_HPP_ 21 #define _POINTERCOORDINATES_HPP_ 23 #include "StelGui.hpp" 24 #include "StelModule.hpp" 55 Q_PROPERTY(
bool enabled
58 NOTIFY flagCoordinatesVisibilityChanged
112 return flagShowCoordinates;
120 bool getFlagEnableAtStartup(
void)
122 return flagEnableAtStartup;
124 bool getFlagShowCoordinatesButton(
void)
126 return flagShowCoordinatesButton;
128 bool getFlagShowCrossedLines(
void)
130 return flagShowCrossedLines;
133 QPair<int, int> getCoordinatesPlace(QString text);
135 QPair<int, int> getCustomCoordinatesPlace()
137 return customPosition;
141 void flagCoordinatesVisibilityChanged(
bool b);
149 flagEnableAtStartup=b;
159 void setFlagShowCrossedLines(
bool b)
161 flagShowCrossedLines=b;
167 currentPlace = place;
182 currentCoordinateSystem = cs;
187 return currentCoordinateSystem;
194 void setCustomCoordinatesPlace(
int x,
int y);
196 void setFlagShowConstellation(
bool b){flagShowConstellation=b;}
197 bool getFlagShowConstellation(
void)
const {
return flagShowConstellation;}
209 bool flagShowCoordinates;
210 bool flagEnableAtStartup;
211 bool flagShowCoordinatesButton;
212 bool flagShowConstellation;
213 bool flagShowCrossedLines;
215 Vec3d coordinatesPoint;
218 QPair<int, int> customPosition;
223 #include "StelPluginInterface.hpp" 229 Q_PLUGIN_METADATA(IID StelPluginInterface_iid)
Define the interface to implement when creating a plugin.
QString getCurrentCoordinateSystemKey(void) const
Get the current coordinate system key.
int getFontSize(void)
Get font size for messages.
void loadConfiguration(void)
Read (or re-read) settings from the main config file.
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.
The custom position on the screen.
virtual void deinit()
Called before the module will be delete, and before the openGL context is suppressed.
virtual void draw(StelCore *core)
Execute all the drawing functions for this module.
virtual bool configureGui(bool show)
Detect or show the configuration GUI elements for the module.
In center of the top right half of the screen.
void saveConfiguration(void)
Save the settings to the main configuration file.
Main class for Stellarium core processing.
bool isEnabled() const
Is plugin enabled?
The top center of the screen.
CoordinatesPlace
Available places of string with coordinates.
virtual QObjectList getExtensionList() const
A mechanism to provide abitrary QObjects to the StelModuleMgr.
CoordinateSystem
Available coordinate systems.
Main window of the Pointer Coordinates plug-in.
void setFlagShowCoordinatesButton(bool b)
Display plugin button on toolbar.
void restoreDefaultConfiguration(void)
Set up the plugin with default values.
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 void update(double)
Update the module with respect to the time.
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.
StelModuleActionName
Define the possible action for which an order is defined.
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.
virtual void init()
Initialize itself.
CoordinateSystem getCurrentCoordinateSystem() const
Get the current coordinate system.
The right bottom corner of the screen.
void setFontSize(int size)
Set font size for message.
void enableCoordinates(bool b)
Enable plugin usage.
Main class for the GUI based on QGraphicView.
QString getCurrentCoordinatesPlaceKey(void) const
Get the current place of the string with coordinates.
This is the common base class for all the main components of stellarium.
Contains information about a Stellarium plugin.