StelSkyLayerMgr.hpp   StelSkyLayerMgr.hpp 
skipping to change at line 22 skipping to change at line 22
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _STELSKYLAYERMGR_HPP_ #ifndef _STELSKYLAYERMGR_HPP_
#define _STELSKYLAYERMGR_HPP_ #define _STELSKYLAYERMGR_HPP_
#include "StelModule.hpp"
#include "StelSkyLayer.hpp"
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QMap> #include <QMap>
#include "StelModule.hpp"
#include "StelSkyLayer.hpp"
class StelCore; class StelCore;
class StelSkyImageTile; class StelSkyImageTile;
class QProgressBar;
//! 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)
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();
//! Draws sky background //! Draws sky background
virtual void draw(StelCore* core, class StelRenderer* renderer); virtual void draw(StelCore* core);
//! Update state which is time dependent. //! Update state which is time dependent.
virtual void update(double) {;} virtual void update(double) {;}
//! Determines the order in which the various modules are drawn. //! Determines the order in which the various modules are drawn.
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Other specific methods // Other specific methods
//! Add a new layer. //! Add a new layer.
skipping to change at line 73 skipping to change at line 73
QString insertSkyLayer(StelSkyLayerP l, const QString& keyHint=QStri ng(), bool show=true); QString insertSkyLayer(StelSkyLayerP l, const QString& keyHint=QStri ng(), bool show=true);
//! Remove a layer. //! Remove a layer.
void removeSkyLayer(StelSkyLayerP l); void removeSkyLayer(StelSkyLayerP l);
//! Get the list of all the currently loaded layers. //! Get the list of all the currently loaded layers.
QMap<QString, StelSkyLayerP> getAllSkyLayers() const; QMap<QString, StelSkyLayerP> getAllSkyLayers() const;
StelSkyLayerP getSkyLayer(const QString& key) const; StelSkyLayerP getSkyLayer(const QString& key) const;
//! Get whether Sky Background should be displayed
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) {flagShow = b;}
//! Get whether Sky Background should be displayed
bool getFlagShow() const {return flagShow;}
//! 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 181 skipping to change at line 181
private: private:
//! Store the informations needed for a graphical element layer. //! Store the informations needed for a graphical element layer.
class SkyLayerElem class SkyLayerElem
{ {
public: public:
SkyLayerElem(StelSkyLayerP t, bool show=true); SkyLayerElem(StelSkyLayerP t, bool show=true);
~SkyLayerElem(); ~SkyLayerElem();
StelSkyLayerP layer; StelSkyLayerP layer;
QProgressBar* progressBar; class StelProgressController* progressBar;
bool show; bool show;
}; };
SkyLayerElem* skyLayerElemForLayer(const StelSkyLayer*); SkyLayerElem* skyLayerElemForLayer(const StelSkyLayer*);
QString keyForLayer(const StelSkyLayer*); QString keyForLayer(const StelSkyLayer*);
//! Map image key/layer //! Map image key/layer
QMap<QString, SkyLayerElem*> allSkyLayers; QMap<QString, SkyLayerElem*> allSkyLayers;
 End of changes. 8 change blocks. 
9 lines changed or deleted 9 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/