20 #ifndef _POINTERCOORDINATES_HPP_ 21 #define _POINTERCOORDINATES_HPP_ 23 #include "StelGui.hpp" 24 #include "StelModule.hpp" 55 Q_PROPERTY(
bool enabled
58 NOTIFY flagCoordinatesVisibilityChanged
111 return flagShowCoordinates;
119 bool getFlagEnableAtStartup(
void)
121 return flagEnableAtStartup;
123 bool getFlagShowCoordinatesButton(
void)
125 return flagShowCoordinatesButton;
128 QPair<int, int> getCoordinatesPlace(QString text);
130 QPair<int, int> getCustomCoordinatesPlace()
132 return customPosition;
136 void flagCoordinatesVisibilityChanged(
bool b);
144 flagEnableAtStartup=b;
157 currentPlace = place;
172 currentCoordinateSystem = cs;
177 return currentCoordinateSystem;
184 void setCustomCoordinatesPlace(
int x,
int y);
186 void setFlagShowConstellation(
bool b){flagShowConstellation=b;}
187 bool getFlagShowConstellation(
void)
const {
return flagShowConstellation;}
199 bool flagShowCoordinates;
200 bool flagEnableAtStartup;
201 bool flagShowCoordinatesButton;
202 bool flagShowConstellation;
204 Vec3d coordinatesPoint;
207 QPair<int, int> customPosition;
212 #include "StelPluginInterface.hpp" 218 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.
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.