StelSkyLayer.hpp   StelSkyLayer.hpp 
skipping to change at line 25 skipping to change at line 25
* 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 STELSKYLAYER_HPP #ifndef STELSKYLAYER_HPP
#define STELSKYLAYER_HPP #define STELSKYLAYER_HPP
#include <QObject> #include <QObject>
#include <QString> #include <QString>
#include <QSharedPointer> #include <QSharedPointer>
#include "StelCore.hpp"
class StelCore; class StelCore;
class StelPainter; class StelPainter;
//! Abstract class defining the API to implement for all sky layer. //! Abstract class defining the API to implement for all sky layer.
//! A sky layer is a graphical layer containing image or polygons displayed in the sky. //! A sky layer is a graphical layer containing image or polygons displayed in the sky.
//! The StelSkyImageMgr allows to set the display order for layers, as well as opacity. //! The StelSkyImageMgr allows to set the display order for layers, as well as opacity.
class StelSkyLayer : public QObject class StelSkyLayer : public QObject
{ {
Q_OBJECT Q_OBJECT
skipping to change at line 55 skipping to change at line 56
virtual QString getShortServerCredits() const {return QString();} virtual QString getShortServerCredits() const {return QString();}
//! Return a hint on which key to use for referencing this layer. //! Return a hint on which key to use for referencing this layer.
//! Note that the key effectively used may be different. //! Note that the key effectively used may be different.
virtual QString getKeyHint() const {return getShortName();} virtual QString getKeyHint() const {return getShortName();}
//! Return a human readable description of the layer with e.g. //! Return a human readable description of the layer with e.g.
//! links and copyrights. //! links and copyrights.
virtual QString getLayerDescriptionHtml() const {return "No descript ion.";} virtual QString getLayerDescriptionHtml() const {return "No descript ion.";}
//! Set the reference frame type.
void setFrameType(StelCore::FrameType ft) {frameType = ft;}
//! Get the reference frame type.
StelCore::FrameType getFrameType() {return frameType;}
signals: signals:
//! Emitted when loading of data started or stopped. //! Emitted when loading of data started or stopped.
//! @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);
//! Emitted when the percentage of loading tiles/tiles to be display ed changed. //! Emitted when the percentage of loading tiles/tiles to be display ed changed.
//! @param percentage the percentage of loaded data. //! @param percentage the percentage of loaded data.
void percentLoadedChanged(int percentage); void percentLoadedChanged(int percentage);
private:
//! Reference frametype for painter
StelCore::FrameType frameType;
}; };
//! @file StelSkyLayerMgr.hpp //! @file StelSkyLayerMgr.hpp
//! Define the classes needed for managing layers of sky elements display. //! Define the classes needed for managing layers of sky elements display.
//! @typedef StelSkyLayerP //! @typedef StelSkyLayerP
//! Shared pointer on a StelSkyLayer instance (implement reference counting ) //! Shared pointer on a StelSkyLayer instance (implement reference counting )
typedef QSharedPointer<StelSkyLayer> StelSkyLayerP; typedef QSharedPointer<StelSkyLayer> StelSkyLayerP;
#endif // STELSKYLAYER_HPP #endif // STELSKYLAYER_HPP
 End of changes. 3 change blocks. 
0 lines changed or deleted 10 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/