ConstellationMgr.hpp   ConstellationMgr.hpp 
skipping to change at line 50 skipping to change at line 50
//! Display and manage the constellations. //! Display and manage the constellations.
//! It can display constellations lines, names, art textures and boundaries . //! It can display constellations lines, names, art textures and boundaries .
//! It also supports several different sky cultures. //! It also supports several different sky cultures.
class ConstellationMgr : public StelObjectModule class ConstellationMgr : public StelObjectModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool artDisplayed Q_PROPERTY(bool artDisplayed
READ getFlagArt READ getFlagArt
WRITE setFlagArt WRITE setFlagArt
NOTIFY artDisplayedChanged) NOTIFY artDisplayedChanged)
Q_PROPERTY(bool artFadeDuration Q_PROPERTY(float artFadeDuration
READ getArtFadeDuration READ getArtFadeDuration
WRITE setArtFadeDuration WRITE setArtFadeDuration
NOTIFY artFadeDurationChanged) NOTIFY artFadeDurationChanged)
Q_PROPERTY(bool artIntensity Q_PROPERTY(float artIntensity
READ getArtIntensity READ getArtIntensity
WRITE setArtIntensity WRITE setArtIntensity
NOTIFY artIntensityChanged) NOTIFY artIntensityChanged)
Q_PROPERTY(bool boundariesColor Q_PROPERTY(Vec3f boundariesColor
READ getBoundariesColor READ getBoundariesColor
WRITE setBoundariesColor WRITE setBoundariesColor
NOTIFY boundariesColorChanged) NOTIFY boundariesColorChanged)
Q_PROPERTY(bool boundariesDisplayed Q_PROPERTY(bool boundariesDisplayed
READ getFlagBoundaries READ getFlagBoundaries
WRITE setFlagBoundaries WRITE setFlagBoundaries
NOTIFY boundariesDisplayedChanged) NOTIFY boundariesDisplayedChanged)
Q_PROPERTY(bool fontSize Q_PROPERTY(float fontSize
READ getFontSize READ getFontSize
WRITE setFontSize WRITE setFontSize
NOTIFY fontSizeChanged) NOTIFY fontSizeChanged)
Q_PROPERTY(bool isolateSelected Q_PROPERTY(bool isolateSelected
READ getFlagIsolateSelected READ getFlagIsolateSelected
WRITE setFlagIsolateSelected WRITE setFlagIsolateSelected
NOTIFY isolateSelectedChanged) NOTIFY isolateSelectedChanged)
Q_PROPERTY(bool linesColor Q_PROPERTY(Vec3f linesColor
READ getLinesColor READ getLinesColor
WRITE setLinesColor WRITE setLinesColor
NOTIFY linesColorChanged) NOTIFY linesColorChanged)
Q_PROPERTY(bool linesDisplayed Q_PROPERTY(bool linesDisplayed
READ getFlagLines READ getFlagLines
WRITE setFlagLines WRITE setFlagLines
NOTIFY linesDisplayedChanged) NOTIFY linesDisplayedChanged)
Q_PROPERTY(bool namesColor Q_PROPERTY(Vec3f namesColor
READ getLabelsColor READ getLabelsColor
WRITE setLabelsColor WRITE setLabelsColor
NOTIFY namesColorChanged) NOTIFY namesColorChanged)
Q_PROPERTY(bool namesDisplayed Q_PROPERTY(bool namesDisplayed
READ getFlagLabels READ getFlagLabels
WRITE setFlagLabels WRITE setFlagLabels
NOTIFY namesDisplayedChanged) NOTIFY namesDisplayedChanged)
public: public:
//! Constructor //! Constructor
skipping to change at line 140 skipping to change at line 140
//! @param useStartOfWords the autofill mode for returned objects na mes //! @param useStartOfWords the autofill mode for returned objects na mes
//! @return a vector of matching object name by order of relevance, or an empty vector if nothing match //! @return a vector of matching object name by order of relevance, or an empty vector if nothing match
virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5, bool useStartOfWords=false) const; 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. //! 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 objPrefix the case insensitive first letters of the searc hed object
//! @param maxNbItem the maximum number of returned object names //! @param maxNbItem the maximum number of returned object names
//! @param useStartOfWords the autofill mode for returned objects na mes //! @param useStartOfWords the autofill mode for returned objects na mes
//! @return a vector of matching object name by order of relevance, or an empty vector if nothing match //! @return a vector of matching object name by order of relevance, or an empty vector if nothing match
virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false) const; virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false) const;
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const;
virtual QStringList listAllObjectsByType(const QString& objType, boo l inEnglish) const { Q_UNUSED(objType) Q_UNUSED(inEnglish) return QStringLi st(); }
virtual QString getName() const { return "Constellations"; } virtual QString getName() const { return "Constellations"; }
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Properties setters and getters // Properties setters and getters
public slots: public slots:
//! Set whether constellation art will be displayed //! Set whether constellation art will be displayed
void setFlagArt(const bool displayed); void setFlagArt(const bool displayed);
//! Get whether constellation art is displayed //! Get whether constellation art is displayed
bool getFlagArt(void) const; bool getFlagArt(void) const;
skipping to change at line 273 skipping to change at line 274
//! Each boundary may span multiple lines, and consists of the follo wing ordered //! Each boundary may span multiple lines, and consists of the follo wing ordered
//! data items: //! data items:
//! - The number of vertexes which make up in the boundary (integer ). //! - The number of vertexes which make up in the boundary (integer ).
//! - For each vertex, two floating point numbers describing the ra and dec //! - For each vertex, two floating point numbers describing the ra and dec
//! of the vertex. //! of the vertex.
//! - The number of constellations which this boundary separates (a lways 2). //! - The number of constellations which this boundary separates (a lways 2).
//! - Two constellation abbreviations representing the constellatio ns which //! - Two constellation abbreviations representing the constellatio ns which
//! the boundary separates. //! the boundary separates.
//! @param conCatFile the path to the file which contains the conste llation boundary data. //! @param conCatFile the path to the file which contains the conste llation boundary data.
bool loadBoundaries(const QString& conCatFile); bool loadBoundaries(const QString& conCatFile);
//! Read seasonal rules for displaying constellations from the given
file.
//! @param rulesFile Name of the file containing the seasonal rules
void loadSeasonalRules(const QString& rulesFile);
//! Draw the constellation lines at the epoch given by the StelCore . //! Draw the constellation lines at the epoch given by the StelCore .
void drawLines(StelPainter& sPainter, const StelCore* core) const; void drawLines(StelPainter& sPainter, const StelCore* core) const;
//! Draw the constellation art. //! Draw the constellation art.
void drawArt(StelPainter& sPainter) const; void drawArt(StelPainter& sPainter) const;
//! Draw the constellation name labels. //! Draw the constellation name labels.
void drawNames(StelPainter& sPainter) const; void drawNames(StelPainter& sPainter) const;
//! Draw the constellation boundaries. //! Draw the constellation boundaries.
void drawBoundaries(StelPainter& sPainter) const; void drawBoundaries(StelPainter& sPainter) const;
//! Handle single and multi-constellation selections. //! Handle single and multi-constellation selections.
void setSelectedConst(Constellation* c); void setSelectedConst(Constellation* c);
 End of changes. 8 change blocks. 
6 lines changed or deleted 13 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/