TelescopeControl.hpp   TelescopeControl.hpp 
skipping to change at line 90 skipping to change at line 90
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);
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;
//! Find and return the list of at most maxNbItem objects auto-compl
eting the passed object I18n name.
//! @param objPrefix the case insensitive first letters of the searc
hed object
//! @param maxNbItem the maximum number of returned object names
//! @param useStartOfWords the autofill mode for returned objects na
mes
//! @return a list of matching object name by order of relevance, or
an empty list if nothing match
virtual QStringList listMatchingObjectsI18n(const QString& objPrefix
, int maxNbItem=5, bool useStartOfWords=false) const;
//! Find and return the list of at most maxNbItem objects auto-compl
eting the passed object English name.
//! @param objPrefix the case insensitive first letters of the searc
hed object
//! @param maxNbItem the maximum number of returned object names
//! @param useStartOfWords the autofill mode for returned objects na
mes
//! @return a list of matching object name by order of relevance, or
an empty list if nothing match
virtual QStringList listMatchingObjects(const QString& objPrefix, in
t maxNbItem=5, bool useStartOfWords=false) const;
// empty as its not celestial objects // empty as its not celestial objects
virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED( virtual QStringList listAllObjects(bool) const { return QStringList(
inEnglish) return QStringList(); } ); }
virtual QStringList listAllObjectsByType(const QString& objType, boo
l inEnglish) const { Q_UNUSED(objType) Q_UNUSED(inEnglish) return QStringLi
st(); }
virtual QString getName() const { return "Telescope Control"; } 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);
skipping to change at line 166 skipping to change at line 153
//! Forces a call of loadDeviceModels(). Stops all active telescopes . //! Forces a call of loadDeviceModels(). Stops all active telescopes .
void setFlagUseServerExecutables(bool b); void setFlagUseServerExecutables(bool b);
const QString& getServerExecutablesDirectoryPath(); const QString& getServerExecutablesDirectoryPath();
//! Forces a call of loadDeviceModels(). Stops all active telescopes . //! Forces a call of loadDeviceModels(). Stops all active telescopes .
bool setServerExecutablesDirectoryPath(const QString& newPath); bool setServerExecutablesDirectoryPath(const QString& newPath);
bool getFlagUseTelescopeServerLogs () {return useTelescopeServerLogs ;} bool getFlagUseTelescopeServerLogs () {return useTelescopeServerLogs ;}
public slots: public slots:
//! Set display flag for telescope reticles //! Set display flag for telescope reticles
//! @param b boolean flag
//! @code
//! // example of usage in scripts
//! TelescopeControl.setFlagTelescopeReticles(true);
//! @endcode
void setFlagTelescopeReticles(bool b) {reticleFader = b;} void setFlagTelescopeReticles(bool b) {reticleFader = b;}
//! Get display flag for telescope reticles //! Get display flag for telescope reticles
//! @return true if telescope reticles is visible
//! @code
//! // example of usage in scripts
//! var flag = TelescopeControl.getFlagTelescopeReticles();
//! @endcode
bool getFlagTelescopeReticles() const {return (bool)reticleFader;} bool getFlagTelescopeReticles() const {return (bool)reticleFader;}
//! Set display flag for telescope name labels //! Set display flag for telescope name labels
//! @param b boolean flag
//! @code
//! // example of usage in scripts
//! TelescopeControl.setFlagTelescopeLabels(true);
//! @endcode
void setFlagTelescopeLabels(bool b) {labelFader = b;} void setFlagTelescopeLabels(bool b) {labelFader = b;}
//! Get display flag for telescope name labels //! Get display flag for telescope name labels
//! @return true if telescope name labels is visible
//! @code
//! // example of usage in scripts
//! var flag = TelescopeControl.getFlagTelescopeLabels();
//! @endcode
bool getFlagTelescopeLabels() const {return labelFader==true;} bool getFlagTelescopeLabels() const {return labelFader==true;}
//! Set display flag for telescope field of view circles //! Set display flag for telescope field of view circles
//! @param b boolean flag
//! @code
//! // example of usage in scripts
//! TelescopeControl.setFlagTelescopeCircles(true);
//! @endcode
void setFlagTelescopeCircles(bool b) {circleFader = b;} void setFlagTelescopeCircles(bool b) {circleFader = b;}
//! Get display flag for telescope field of view circles //! Get display flag for telescope field of view circles
//! @return true if telescope field of view circles is visible
//! @code
//! // example of usage in scripts
//! var flag = TelescopeControl.getFlagTelescopeCircles();
//! @endcode
bool getFlagTelescopeCircles() const {return circleFader==true;} bool getFlagTelescopeCircles() const {return circleFader==true;}
//! Set the telescope reticle color //! Set the telescope reticle color
//! @code
//! // example of usage in scripts
//! TelescopeControl.setReticleColor(Vec3f(1.0,0.0,0.0));
//! @endcode
void setReticleColor(const Vec3f &c) {reticleColor = c;} void setReticleColor(const Vec3f &c) {reticleColor = c;}
//! Get the telescope reticle color //! Get the telescope reticle color
//! @return the telescope reticle color
//! @code
//! // example of usage in scripts
//! color = TelescopeControl.getReticleColor();
//! @endcode
const Vec3f& getReticleColor() const {return reticleColor;} const Vec3f& getReticleColor() const {return reticleColor;}
//! Get the telescope labels color //! Get the telescope labels color
//! @return the telescope labels color
//! @code
//! // example of usage in scripts
//! color = TelescopeControl.getLabelColor();
//! @endcode
const Vec3f& getLabelColor() const {return labelColor;} const Vec3f& getLabelColor() const {return labelColor;}
//! Set the telescope labels color //! Set the telescope labels color
//! @code
//! // example of usage in scripts
//! TelescopeControl.setLabelColor(Vec3f(1.0,0.0,0.0));
//! @endcode
void setLabelColor(const Vec3f &c) {labelColor = c;} void setLabelColor(const Vec3f &c) {labelColor = c;}
//! Set the field of view circles color //! Set the field of view circles color
//! @code
//! // example of usage in scripts
//! TelescopeControl.setCircleColor(Vec3f(1.0,0.0,0.0));
//! @endcode
void setCircleColor(const Vec3f &c) {circleColor = c;} void setCircleColor(const Vec3f &c) {circleColor = c;}
//! Get the field of view circles color //! Get the field of view circles color
//! @return the field of view circles color
//! @code
//! // example of usage in scripts
//! color = TelescopeControl.getCircleColor();
//! @endcode
const Vec3f& getCircleColor() const {return circleColor;} const Vec3f& getCircleColor() const {return circleColor;}
//! Define font size to use for telescope names display //! Define font size to use for telescope names display
//! @param fontSize size of font
//! @code
//! // example of usage in scripts
//! TelescopeControl.setFontSize(15);
//! @endcode
void setFontSize(int fontSize); void setFontSize(int fontSize);
//! slews a telescope to the selected object. //! slews a telescope to the selected object.
//! For use from the GUI. The telescope number will be //! For use from the GUI. The telescope number will be
//! deduced from the name of the StelAction which triggered the slot . //! deduced from the name of the StelAction which triggered the slot .
void slewTelescopeToSelectedObject(); //! @code
//! // example of usage in scripts
//! TelescopeControl.slewTelescopeToSelectedObject();
//! @endcode
void slewTelescopeToSelectedObject(const int idx);
//! slews a telescope to the point of the celestial sphere currently //! slews a telescope to the point of the celestial sphere currently
//! in the center of the screen. //! in the center of the screen.
//! For use from the GUI. The telescope number will be //! For use from the GUI. The telescope number will be
//! deduced from the name of the StelAction which triggered the slot . //! deduced from the name of the StelAction which triggered the slot .
void slewTelescopeToViewDirection(); //! @code
//! // example of usage in scripts
//! TelescopeControl.slewTelescopeToViewDirection();
//! @endcode
void slewTelescopeToViewDirection(const int idx);
//! 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);
//! Set translated keyboard shortcut descriptions. //! Set translated keyboard shortcut descriptions.
void translateActionDescriptions(); 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, St elPainter& sPainter);
//! 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
Vec3f labelColor; Vec3f labelColor;
//! Colour currently used to draw field of view circles //! Colour currently used to draw field of view circles
Vec3f circleColor; Vec3f circleColor;
//! Colour used to draw telescope reticles in normal mode, as set in
the configuration file
Vec3f reticleNormalColor;
//! Colour used to draw telescope reticles in night mode, as set in
the configuration file
Vec3f reticleNightColor;
//! Colour used to draw telescope labels in normal mode, as set in t
he configuration file
Vec3f labelNormalColor;
//! Colour used to draw telescope labels in night mode, as set in th
e configuration file
Vec3f labelNightColor;
//! Colour used to draw field of view circles in normal mode, as set
in the configuration file
Vec3f circleNormalColor;
//! Colour used to draw field of view circles in night mode, as set
in the configuration file
Vec3f circleNightColor;
//! 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
StelButton* toolbarButton; StelButton* toolbarButton;
//! Telescope reticle texture //! Telescope reticle texture
StelTextureSP reticleTexture; StelTextureSP reticleTexture;
//! Telescope selection marker texture //! Telescope selection marker texture
 End of changes. 19 change blocks. 
48 lines changed or deleted 74 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/