LabelMgr.hpp   LabelMgr.hpp 
skipping to change at line 33 skipping to change at line 33
#include "StelFader.hpp" #include "StelFader.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelObjectType.hpp" #include "StelObjectType.hpp"
#include "VecMath.hpp" #include "VecMath.hpp"
#include <QVector> #include <QVector>
#include <QString> #include <QString>
class StelCore; class StelCore;
class StelPainter;
//! @class LabelMgr //! @class LabelMgr
//! Allows for creation of custom labels on objects or coordinates. //! Allows for creation of custom labels on objects or coordinates.
//! Because this class is intended for use in scripting (although //! Because this class is intended for use in scripting (although
//! other uses are also fine), all label types and so on are specified //! other uses are also fine), all label types and so on are specified
//! by QString descriptions. //! by QString descriptions.
//! TODO: when QT4.5 is out, change implementation to use QGraphicsTextItem . //! TODO: when QT4.5 is out, change implementation to use QGraphicsTextItem .
//! (QT4.5 should allow for opacity changes for fades, but it is not curren tly //! (QT4.5 should allow for opacity changes for fades, but it is not curren tly
//! implemented. //! implemented.
class LabelMgr : public StelModule class LabelMgr : public StelModule
skipping to change at line 57 skipping to change at line 58
//! Construct a LabelMgr object. //! Construct a LabelMgr object.
LabelMgr(); LabelMgr();
virtual ~LabelMgr(); virtual ~LabelMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the LabelMgr object. //! Initialize the LabelMgr object.
virtual void init(); virtual void init();
//! Draw user labels. //! Draw user labels.
virtual void draw(StelCore* core, class StelRenderer* renderer); virtual void draw(StelCore* core);
//! Update time-dependent parts of the module. //! Update time-dependent parts of the module.
virtual void update(double deltaTime); virtual void update(double deltaTime);
//! Defines the order in which the various modules are drawn. //! Defines the order in which the various modules are drawn.
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
public slots: public slots:
//! Create a label which is attached to a StelObject. //! Create a label which is attached to a StelObject.
//! @param text the text to display //! @param text the text to display
//! @param objectName the English name of the object to attach to //! @param objectName the English name of the object to attach to
//! @param visible if true, the label starts displayed, else it star ts hidden //! @param visible if true, the label starts displayed, else it star ts hidden
//! @param fontSize size of the font to use //! @param fontSize size of the font to use
//! @param fontColor HTML-like color spec, e.g. "#ffff00" for yellow //! @param fontColor HTML-like color spec, e.g. "#ffff00" for yellow
//! @param side where the label appears in relation to object: //! @param side where the label appears in relation to object:
//! - "N" = above object on screen //! - "N" = above object on screen
//! - "S" = below object on screen //! - "S" = below object on screen
//! - "E" = to the right of the object on screen //! - "E" = to the right of the object on screen
//! - "W" = to the left of the object on screen //! - "W" = to the left of the object on screen
//! - "NE", "NW", "SE", "SW" work too. //! - "NE", "NW", "SE", "SW" work too.
//! @param labelDistance Distance of the label from the object
//! @param style Label style
//! @return a unique ID which can be used to refer to the label. //! @return a unique ID which can be used to refer to the label.
//! returns -1 if the label could not be created (e.g. object not fo und) //! returns -1 if the label could not be created (e.g. object not fo und)
int labelObject(const QString& text, int labelObject(const QString& text,
const QString& objectName, const QString& objectName,
bool visible=true, bool visible=true,
float fontSize=14, float fontSize=14,
const QString& fontColor="#999999", const QString& fontColor="#999999",
const QString& side="E", const QString& side="E",
double labelDistance=-1.0, double labelDistance=-1.0,
const QString& style="TextOnly"); const QString& style="TextOnly");
 End of changes. 3 change blocks. 
3 lines changed or deleted 2 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/