TelescopeControl.hpp   TelescopeControl.hpp 
skipping to change at line 36 skipping to change at line 36
*/ */
#ifndef _TELESCOPE_CONTROL_HPP_ #ifndef _TELESCOPE_CONTROL_HPP_
#define _TELESCOPE_CONTROL_HPP_ #define _TELESCOPE_CONTROL_HPP_
#include "StelFader.hpp" #include "StelFader.hpp"
#include "StelGui.hpp" #include "StelGui.hpp"
#include "StelJsonParser.hpp" #include "StelJsonParser.hpp"
#include "StelObjectModule.hpp" #include "StelObjectModule.hpp"
#include "StelProjectorType.hpp" #include "StelProjectorType.hpp"
#include "StelTextureTypes.hpp"
#include "TelescopeControlGlobals.hpp" #include "TelescopeControlGlobals.hpp"
#include "VecMath.hpp" #include "VecMath.hpp"
#include <QFile> #include <QFile>
#include <QFont> #include <QFont>
#include <QHash> #include <QHash>
#include <QMap> #include <QMap>
#include <QProcess> #include <QProcess>
#include <QSettings> #include <QSettings>
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QTextStream> #include <QTextStream>
#include <QVariant> #include <QVariant>
class StelObject; class StelObject;
class StelPainter;
class StelProjector; class StelProjector;
class TelescopeClient; class TelescopeClient;
class TelescopeDialog; class TelescopeDialog;
class SlewDialog; class SlewDialog;
using namespace TelescopeControlGlobals; using namespace TelescopeControlGlobals;
typedef QSharedPointer<TelescopeClient> TelescopeClientP; typedef QSharedPointer<TelescopeClient> TelescopeClientP;
//! This class manages the controlling of one or more telescopes by one //! This class manages the controlling of one or more telescopes by one
skipping to change at line 82 skipping to change at line 80
public: public:
TelescopeControl(); TelescopeControl();
virtual ~TelescopeControl(); virtual ~TelescopeControl();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
virtual void init(); virtual void init();
virtual void deinit(); virtual void deinit();
virtual void update(double deltaTime); virtual void update(double deltaTime);
virtual void draw(StelCore * core); virtual void draw(StelCore * core, class StelRenderer* renderer);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelObjectModule class // Methods defined in the StelObjectModule class
virtual QList<StelObjectP> searchAround(const Vec3d& v, double limit Fov, const StelCore* core) const; virtual QList<StelObjectP> searchAround(const Vec3d& v, double limit Fov, const StelCore* core) const;
virtual StelObjectP searchByNameI18n(const QString& nameI18n) const; virtual StelObjectP searchByNameI18n(const QString& nameI18n) const;
virtual StelObjectP searchByName(const QString& name) const; virtual StelObjectP searchByName(const QString& name) const;
virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5) const; virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5) const;
// empty as its not celestial objects
virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED(
inEnglish) return QStringList(); }
virtual QString getName() const { return "Telescope Control"; }
virtual bool configureGui(bool show = true); virtual bool configureGui(bool show = true);
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods specific to TelescopeControl // Methods specific to TelescopeControl
//! Send a J2000-goto-command to the specified telescope //! Send a J2000-goto-command to the specified telescope
//! @param telescopeNr the number of the telescope //! @param telescopeNr the number of the telescope
//! @param j2000Pos the direction in equatorial J2000 frame //! @param j2000Pos the direction in equatorial J2000 frame
void telescopeGoto(int telescopeNr, const Vec3d &j2000Pos); void telescopeGoto(int telescopeNr, const Vec3d &j2000Pos);
//! Remove all currently registered telescopes //! Remove all currently registered telescopes
skipping to change at line 203 skipping to change at line 204
//! Used in the GUI //! Used in the GUI
void setFlagUseTelescopeServerLogs (bool b) {useTelescopeServerLogs = b;} void setFlagUseTelescopeServerLogs (bool b) {useTelescopeServerLogs = b;}
signals: signals:
void clientConnected(int slot, QString name); void clientConnected(int slot, QString name);
void clientDisconnected(int slot); void clientDisconnected(int slot);
private slots: private slots:
void setStelStyle(const QString& section); void setStelStyle(const QString& section);
//! Set translated keyboard shortcut descriptions.
void translateActionDescriptions();
private: private:
//! Draw a nice animated pointer around the object if it's selected //! Draw a nice animated pointer around the object if it's selected
void drawPointer(const StelProjectorP& prj, const StelCore* core, St elPainter& sPainter); void drawPointer(const StelProjectorP& prj, const StelCore* core, cl ass StelRenderer* renderer);
//! Perform the communication with the telescope servers //! Perform the communication with the telescope servers
void communicate(void); void communicate(void);
LinearFader labelFader; LinearFader labelFader;
LinearFader reticleFader; LinearFader reticleFader;
LinearFader circleFader; LinearFader circleFader;
//! Colour currently used to draw telescope reticles //! Colour currently used to draw telescope reticles
Vec3f reticleColor; Vec3f reticleColor;
//! Colour currently used to draw telescope text labels //! Colour currently used to draw telescope text labels
skipping to change at line 243 skipping to change at line 246
//! Font used to draw telescope text labels //! Font used to draw telescope text labels
QFont labelFont; QFont labelFont;
//Toolbar button to toggle the Slew window //Toolbar button to toggle the Slew window
QPixmap* pixmapHover; QPixmap* pixmapHover;
QPixmap* pixmapOnIcon; QPixmap* pixmapOnIcon;
QPixmap* pixmapOffIcon; QPixmap* pixmapOffIcon;
StelButton* toolbarButton; StelButton* toolbarButton;
//! Telescope reticle texture //! Telescope reticle texture
StelTextureSP reticleTexture; class StelTextureNew* reticleTexture;
//! Telescope selection marker texture //! Telescope selection marker texture
StelTextureSP selectionTexture; class StelTextureNew* selectionTexture;
//! Contains the initialized telescope client objects representing t he telescopes that Stellarium is connected to or attempting to connect to. //! Contains the initialized telescope client objects representing t he telescopes that Stellarium is connected to or attempting to connect to.
QMap<int, TelescopeClientP> telescopeClients; QMap<int, TelescopeClientP> telescopeClients;
//! Contains QProcess objects of the currently running telescope ser ver processes that have been launched by Stellarium. //! Contains QProcess objects of the currently running telescope ser ver processes that have been launched by Stellarium.
QHash<int, QProcess*> telescopeServerProcess; QHash<int, QProcess*> telescopeServerProcess;
QStringList telescopeServers; QStringList telescopeServers;
QVariantMap telescopeDescriptions; QVariantMap telescopeDescriptions;
QHash<QString, DeviceModel> deviceModels; QHash<QString, DeviceModel> deviceModels;
QHash<ConnectionType, QString> connectionTypeNames; QHash<ConnectionType, QString> connectionTypeNames;
skipping to change at line 300 skipping to change at line 303
//! Loads the list of supported telescope models. Calls loadTelescop eServerExecutables() internally. //! Loads the list of supported telescope models. Calls loadTelescop eServerExecutables() internally.
void loadDeviceModels(); void loadDeviceModels();
//! Copies the default device_models.json to the given destination //! Copies the default device_models.json to the given destination
//! @returns true if the file has been copied successfully //! @returns true if the file has been copied successfully
bool restoreDeviceModelsListTo(QString deviceModelsListPath); bool restoreDeviceModelsListTo(QString deviceModelsListPath);
void addLogAtSlot(int slot); void addLogAtSlot(int slot);
void logAtSlot(int slot); void logAtSlot(int slot);
void removeLogAtSlot(int slot); void removeLogAtSlot(int slot);
QString actionGroupId;
QString moveToSelectedActionId;
QString moveToCenterActionId;
}; };
#include "fixx11h.h" #include "fixx11h.h"
#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 TelescopeControlStelPluginInterface : public QObject, public StelPlug inInterface class TelescopeControlStelPluginInterface : public QObject, public StelPlug inInterface
{ {
Q_OBJECT Q_OBJECT
 End of changes. 9 change blocks. 
6 lines changed or deleted 14 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/