19 #ifndef TELESCOPE_HPP_
20 #define TELESCOPE_HPP_
29 Q_PROPERTY(QString name READ name WRITE setName)
30 Q_PROPERTY(
double diameter READ diameter WRITE setDiameter)
31 Q_PROPERTY(
double focalLength READ focalLength WRITE setFocalLength)
32 Q_PROPERTY(
bool hFlipped READ isHFlipped WRITE setHFlipped)
33 Q_PROPERTY(
bool vFlipped READ isVFlipped WRITE setVFlipped)
36 Q_INVOKABLE
Telescope(
const QObject& other);
38 static Telescope* telescopeFromSettings(QSettings* theSettings,
int telescopeIndex);
39 static Telescope* telescopeModel();
41 double diameter()
const;
42 void setDiameter(
double theValue);
43 double focalLength()
const;
44 void setFocalLength(
double theValue);
45 const QString name()
const;
46 void setName(QString theValue);
47 bool isHFlipped()
const;
48 void setHFlipped(
bool flipped);
49 bool isVFlipped()
const;
50 void setVFlipped(
bool flipped);
51 QMap<int, QString> propertyMap();