PointerCoordinates.hpp   PointerCoordinates.hpp 
skipping to change at line 38 skipping to change at line 38
#include <QPair> #include <QPair>
class QPixmap; class QPixmap;
class StelButton; class StelButton;
class PointerCoordinatesWindow; class PointerCoordinatesWindow;
class PointerCoordinates : public StelModule class PointerCoordinates : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(CoordinatesPlace) Q_ENUMS(CoordinatesPlace)
Q_ENUMS(CoordinateSystem)
Q_PROPERTY(bool enabled Q_PROPERTY(bool enabled
READ isEnabled READ isEnabled
WRITE enableCoordinates) WRITE enableCoordinates)
public: public:
//! @enum CoordinatesPlace //! @enum CoordinatesPlace
//! Available places of string with coordinates //! Available places of string with coordinates
enum CoordinatesPlace enum CoordinatesPlace
{ {
TopCenter, //!< The top center of the screen TopCenter, //!< The top center of the screen
TopRight, //!< In center of the top right half of the screen TopRight, //!< In center of the top right half of the screen
RightBottomCorner //!< The right bottom corner of the RightBottomCorner, //!< The right bottom corner of the
screen screen
Custom //!< The custom position on the scre
en
};
//! @enum CoordinateSystem
//! Available coordinate systems
enum CoordinateSystem
{
RaDecJ2000,
RaDec,
HourAngle,
Ecliptic,
AltAzi,
Galactic
}; };
PointerCoordinates(); PointerCoordinates();
virtual ~PointerCoordinates(); virtual ~PointerCoordinates();
virtual void init(); virtual void init();
virtual void deinit(); virtual void deinit();
virtual void update(double) {;} virtual void update(double) {;}
virtual void draw(StelCore *core); virtual void draw(StelCore *core);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
skipping to change at line 95 skipping to change at line 109
{ {
return flagEnableAtStartup; return flagEnableAtStartup;
} }
bool getFlagShowCoordinatesButton(void) bool getFlagShowCoordinatesButton(void)
{ {
return flagShowCoordinatesButton; return flagShowCoordinatesButton;
} }
QPair<int, int> getCoordinatesPlace(QString text); QPair<int, int> getCoordinatesPlace(QString text);
QPair<int, int> getCustomCoordinatesPlace()
{
return customPosition;
}
public slots: public slots:
//! Enable plugin usage //! Enable plugin usage
void enableCoordinates(bool b); void enableCoordinates(bool b);
//! Enable plugin usage at startup //! Enable plugin usage at startup
void setFlagEnableAtStartup(bool b) void setFlagEnableAtStartup(bool b)
{ {
flagEnableAtStartup=b; flagEnableAtStartup=b;
} }
//! Set font size for message //! Set font size for message
void setFontSize(int size) void setFontSize(int size)
skipping to change at line 126 skipping to change at line 145
//! Get the current place of the string with coordinates //! Get the current place of the string with coordinates
CoordinatesPlace getCurrentCoordinatesPlace() const CoordinatesPlace getCurrentCoordinatesPlace() const
{ {
return currentPlace; return currentPlace;
} }
//! Get the current place of the string with coordinates //! Get the current place of the string with coordinates
QString getCurrentCoordinatesPlaceKey(void) const; QString getCurrentCoordinatesPlaceKey(void) const;
//! Set the current place of the string with coordinates from its ke y //! Set the current place of the string with coordinates from its ke y
void setCurrentCoordinatesPlaceKey(QString key); void setCurrentCoordinatesPlaceKey(QString key);
//! Set the current coordinate system
void setCurrentCoordinateSystem(CoordinateSystem cs)
{
currentCoordinateSystem = cs;
}
//! Get the current coordinate system
CoordinateSystem getCurrentCoordinateSystem() const
{
return currentCoordinateSystem;
}
//! Get the current coordinate system key
QString getCurrentCoordinateSystemKey(void) const;
//! Set the current coordinate system from its key
void setCurrentCoordinateSystemKey(QString key);
void setCustomCoordinatesPlace(int x, int y);
private: private:
PointerCoordinatesWindow* mainWindow; PointerCoordinatesWindow* mainWindow;
QSettings* conf; QSettings* conf;
StelGui* gui; StelGui* gui;
// The current place for string with coordinates // The current place for string with coordinates
CoordinatesPlace currentPlace; CoordinatesPlace currentPlace;
// The current coordinate system
CoordinateSystem currentCoordinateSystem;
QFont font; QFont font;
bool flagShowCoordinates; bool flagShowCoordinates;
bool flagEnableAtStartup; bool flagEnableAtStartup;
bool flagShowCoordinatesButton; bool flagShowCoordinatesButton;
Vec3f textColor; Vec3f textColor;
Vec3d coordinatesPoint; Vec3d coordinatesPoint;
int fontSize; int fontSize;
StelButton* toolbarButton; StelButton* toolbarButton;
QPair<int, int> customPosition;
}; };
#include <QObject> #include <QObject>
#include "StelPluginInterface.hpp" #include "StelPluginInterface.hpp"
//! This class is used by Qt to manage a plug-in interface //! This class is used by Qt to manage a plug-in interface
class PointerCoordinatesStelPluginInterface : public QObject, public StelPl uginInterface class PointerCoordinatesStelPluginInterface : public QObject, public StelPl uginInterface
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "stellarium.StelGuiPluginInterface/1.0") Q_PLUGIN_METADATA(IID "stellarium.StelGuiPluginInterface/1.0")
 End of changes. 6 change blocks. 
2 lines changed or deleted 42 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/