StelSkyLayerMgr.hpp   StelSkyLayerMgr.hpp 
skipping to change at line 36 skipping to change at line 36
#include <QStringList> #include <QStringList>
#include <QMap> #include <QMap>
class StelCore; class StelCore;
class StelSkyImageTile; class StelSkyImageTile;
//! Manage the sky background images, including DSS and deep sky objects im ages //! Manage the sky background images, including DSS and deep sky objects im ages
class StelSkyLayerMgr : public StelModule class StelSkyLayerMgr : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool visible READ getFlagShow WRITE setFlagShow) Q_PROPERTY(bool flagShow READ getFlagShow WRITE setFlagShow NOTIFY f lagShowChanged)
public: public:
StelSkyLayerMgr(); StelSkyLayerMgr();
~StelSkyLayerMgr(); ~StelSkyLayerMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize //! Initialize
virtual void init(); virtual void init();
skipping to change at line 80 skipping to change at line 80
StelSkyLayerP getSkyLayer(const QString& key) const; StelSkyLayerP getSkyLayer(const QString& key) const;
//! Get whether Sky Background should be displayed //! Get whether Sky Background should be displayed
bool getFlagShow() const {return flagShow;} bool getFlagShow() const {return flagShow;}
public slots: public slots:
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Properties setters and getters // Properties setters and getters
//! Set whether Sky Background should be displayed //! Set whether Sky Background should be displayed
void setFlagShow(bool b) {flagShow = b;} void setFlagShow(bool b) {if (flagShow !=b) { flagShow = b; emit fla gShowChanged(b);}}
//! Load an image from a file. This should not be called directly fr om //! Load an image from a file. This should not be called directly fr om
//! scripts because it is not thread safe. Instead use the simiarly //! scripts because it is not thread safe. Instead use the simiarly
//! named function in the core scripting object. //! named function in the core scripting object.
//! @param id a string identifier for the image //! @param id a string identifier for the image
//! @param filename the name of the image file to load. Will be //! @param filename the name of the image file to load. Will be
//! searched for using StelFileMgr, so partial names are fine. //! searched for using StelFileMgr, so partial names are fine.
//! @param ra0 right ascention of corner 0 in degrees //! @param ra0 right ascention of corner 0 in degrees
//! @param dec0 declination of corner 0 in degrees //! @param dec0 declination of corner 0 in degrees
//! @param ra1 right ascention of corner 1 in degrees //! @param ra1 right ascention of corner 1 in degrees
//! @param dec1 declination of corner 1 in degrees //! @param dec1 declination of corner 1 in degrees
skipping to change at line 163 skipping to change at line 163
//! Remove a sky layer from the list. //! Remove a sky layer from the list.
//! Note: this is not thread safe, and so should not be used directl y //! Note: this is not thread safe, and so should not be used directl y
//! from scripts - use the similarly named function in the core //! from scripts - use the similarly named function in the core
//! scripting API object to delete SkyLayers. //! scripting API object to delete SkyLayers.
//! @param key the reference key (id) generated by insertSkyImage. //! @param key the reference key (id) generated by insertSkyImage.
void removeSkyLayer(const QString& key); void removeSkyLayer(const QString& key);
//! Return the list of all the layer currently loaded. //! Return the list of all the layer currently loaded.
QStringList getAllKeys() const {return allSkyLayers.keys();} QStringList getAllKeys() const {return allSkyLayers.keys();}
signals:
void flagShowChanged(bool b);
private slots: private slots:
//! Called when loading of data started or stopped for one collectio n //! Called when loading of data started or stopped for one collectio n
//! @param b true if data loading started, false if finished //! @param b true if data loading started, false if finished
void loadingStateChanged(bool b); void loadingStateChanged(bool b);
//! Called when the percentage of loading tiles/tiles to be displaye d changed for one collection //! Called when the percentage of loading tiles/tiles to be displaye d changed for one collection
//! @param percentage the percentage of loaded data //! @param percentage the percentage of loaded data
void percentLoadedChanged(int percentage); void percentLoadedChanged(int percentage);
private: private:
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 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/