19 #ifndef TELESCOPE_HPP_
20 #define TELESCOPE_HPP_
30 Q_PROPERTY(QString name READ name WRITE setName)
31 Q_PROPERTY(
double diameter READ diameter WRITE setDiameter)
32 Q_PROPERTY(
double focalLength READ focalLength WRITE setFocalLength)
33 Q_PROPERTY(
bool hFlipped READ isHFlipped WRITE setHFlipped)
34 Q_PROPERTY(
bool vFlipped READ isVFlipped WRITE setVFlipped)
35 Q_PROPERTY(
bool equatorial READ isEquatorial WRITE setEquatorial)
38 Q_INVOKABLE
Telescope(
const QObject& other);
40 static Telescope* telescopeFromSettings(QSettings* theSettings,
int telescopeIndex);
41 void writeToSettings(QSettings * settings,
const int index);
42 static Telescope* telescopeModel();
44 double diameter()
const;
45 void setDiameter(
double theValue);
46 double focalLength()
const;
47 void setFocalLength(
double theValue);
48 const QString name()
const;
49 void setName(QString theValue);
50 bool isHFlipped()
const;
51 void setHFlipped(
bool flipped);
52 bool isVFlipped()
const;
53 void setVFlipped(
bool flipped);
54 bool isEquatorial()
const;
55 void setEquatorial(
bool eq);
56 QMap<int, QString> propertyMap();