[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars/socis2013] kstars: Committing domain objects.
From: Rafal Kulaga <rl.kulaga () gmail ! com>
Date: 2013-12-26 16:05:52
Message-ID: E1VwDRY-0004nP-Ph () scm ! kde ! org
[Download RAW message or body]
Git commit d8e4d6b2722adcc6e64023a53706c8158cf77898 by Rafal Kulaga.
Committed on 26/12/2013 at 16:05.
Pushed by kulaga into branch 'socis2013'.
Committing domain objects.
M +13 -0 kstars/CMakeLists.txt
A +149 -0 kstars/logging/dsobstargets.cpp [License: GPL (v2+)]
A +404 -0 kstars/logging/dsobstargets.h [License: GPL (v2+)]
A +26 -0 kstars/logging/eyepiece.cpp [License: GPL (v2+)]
A +100 -0 kstars/logging/eyepiece.h [License: GPL (v2+)]
A +26 -0 kstars/logging/filter.cpp [License: GPL (v2+)]
A +110 -0 kstars/logging/filter.h [License: GPL (v2+)]
A +28 -0 kstars/logging/fixedmagnificationoptics.cpp [License: GPL (v2+)]
A +61 -0 kstars/logging/fixedmagnificationoptics.h [License: GPL (v2+)]
A +36 -0 kstars/logging/imagers.cpp [License: GPL (v2+)]
A +142 -0 kstars/logging/imagers.h [License: GPL (v2+)]
A +24 -0 kstars/logging/lens.cpp [License: GPL (v2+)]
A +75 -0 kstars/logging/lens.h [License: GPL (v2+)]
M +3 -4 kstars/logging/logdatabase.cpp
A +27 -0 kstars/logging/observer.cpp [License: GPL (v2+)]
A +134 -0 kstars/logging/observer.h [License: GPL (v2+)]
A +20 -0 kstars/logging/obstarget.cpp [License: GPL (v2+)]
A +138 -0 kstars/logging/obstarget.h [License: GPL (v2+)]
A +27 -0 kstars/logging/optics.cpp [License: GPL (v2+)]
A +122 -0 kstars/logging/optics.h [License: GPL (v2+)]
A +27 -0 kstars/logging/scope.cpp [License: GPL (v2+)]
A +48 -0 kstars/logging/scope.h [License: GPL (v2+)]
A +30 -0 kstars/logging/session.cpp [License: GPL (v2+)]
A +146 -0 kstars/logging/session.h [License: GPL (v2+)]
A +26 -0 kstars/logging/site.cpp [License: GPL (v2+)]
A +109 -0 kstars/logging/site.h [License: GPL (v2+)]
A +30 -0 kstars/logging/starobstarget.cpp [License: GPL (v2+)]
A +62 -0 kstars/logging/starobstarget.h [License: GPL (v2+)]
http://commits.kde.org/kstars/d8e4d6b2722adcc6e64023a53706c8158cf77898
diff --git a/kstars/CMakeLists.txt b/kstars/CMakeLists.txt
index 846fb22..e1bbfa7 100644
--- a/kstars/CMakeLists.txt
+++ b/kstars/CMakeLists.txt
@@ -446,6 +446,19 @@ set(printingui_SRCS
set(logging_SRCS
logging/logdatabase.cpp
+ logging/dsobstargets.cpp
+ logging/eyepiece.cpp
+ logging/filter.cpp
+ logging/optics.cpp
+ logging/scope.cpp
+ logging/fixedmagnificationoptics.cpp
+ logging/imagers.cpp
+ logging/lens.cpp
+ logging/obstarget.cpp
+ logging/starobstarget.cpp
+ logging/observer.cpp
+ logging/session.cpp
+ logging/site.cpp
)
##set(kstars_SRCS ${indi_SRCS} ${ekos_SRCS} ${fits_SRCS}
diff --git a/kstars/logging/dsobstargets.cpp b/kstars/logging/dsobstargets.cpp
new file mode 100644
index 0000000..6b50f71
--- /dev/null
+++ b/kstars/logging/dsobstargets.cpp
@@ -0,0 +1,149 @@
+/***************************************************************************
+ dsobstargets.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "dsobstargets.h"
+
+using namespace Logging;
+
+DsObsTarget::DsObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, const QString &constellation, + \
const QString ¬es, const dms &smallDiameter, const dms &largeDiameter, + \
const double visMagnitude, const double surfBrightness) : + ObsTarget(id, name, \
aliases, datasource, discovererObserverId, ra, dec, constellation, notes), + \
m_SmallDiameter(smallDiameter), m_LargeDiameter(largeDiameter), \
m_VisualMagnitude(visMagnitude), + m_SurfaceBrightness(surfBrightness)
+{ }
+
+
+
+DsMultipleStarObsTarget::DsMultipleStarObsTarget(const int id, const QString &name, \
const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const QList<int> \
&componentsTargetIds) : + ObsTarget(id, name, aliases, datasource, \
discovererObserverId, ra, dec, constellation, notes), + \
m_ComponentsTargetIds(componentsTargetIds) +{ }
+
+
+
+DsAsterismObsTarget::DsAsterismObsTarget(const int id, const QString &name, const \
QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double posAngle) : + DsObsTarget(id, name, aliases, datasource, \
discovererObserverId, ra, dec, constellation, notes, smallDiameter, + \
largeDiameter, visMagnitude, surfBrightness), m_PositionAngle(posAngle) +{ }
+
+
+
+DsGalaxyClusterObsTarget::DsGalaxyClusterObsTarget(const int id, const QString \
&name, const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double brightest10thMag) : + DsObsTarget(id, name, aliases, datasource, \
discovererObserverId, ra, dec, constellation, notes, smallDiameter, + \
largeDiameter, visMagnitude, surfBrightness), m_Brightest10thMag(brightest10thMag) +{ \
} +
+
+
+DsDarkNebulaeObsTarget::DsDarkNebulaeObsTarget(const int id, const QString &name, \
const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double posAngle, const int opacity) : + DsObsTarget(id, name, aliases, \
datasource, discovererObserverId, ra, dec, constellation, notes, smallDiameter, + \
largeDiameter, visMagnitude, surfBrightness), m_PositionAngle(posAngle), \
m_Opacity(opacity) +{ }
+
+
+
+DsDoubleStarObsTarget::DsDoubleStarObsTarget(const int id, const QString &name, \
const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const dms &separation, const double posAngle, const double companionMag) : + \
DsObsTarget(id, name, aliases, datasource, discovererObserverId, ra, dec, \
constellation, notes, smallDiameter, + largeDiameter, visMagnitude, \
surfBrightness), m_Separation(separation), m_PositionAngle(posAngle), + \
m_CompanionMagnitude(companionMag) +{ }
+
+
+
+DsGalacticNebulaObsTarget::DsGalacticNebulaObsTarget(const int id, const QString \
&name, const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const QString &nebulaType, double posAngle) : + DsObsTarget(id, name, aliases, \
datasource, discovererObserverId, ra, dec, constellation, notes, smallDiameter, + \
largeDiameter, visMagnitude, surfBrightness), m_NebulaType(nebulaType), \
m_PositionAngle(posAngle) +{ }
+
+
+
+DsGalaxyObsTarget::DsGalaxyObsTarget(const int id, const QString &name, const \
QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const QString &hubbleType, const double posAngle) : + DsObsTarget(id, name, \
aliases, datasource, discovererObserverId, ra, dec, constellation, notes, \
smallDiameter, + largeDiameter, visMagnitude, surfBrightness), \
m_HubbleType(hubbleType), m_PositionAngle(posAngle) +{ }
+
+
+
+DsOpenClusterObsTarget::DsOpenClusterObsTarget(const int id, const QString &name, \
const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const int starCount, const double brightestStarMag, const QString &classification) : \
+ DsObsTarget(id, name, aliases, datasource, discovererObserverId, ra, dec, \
constellation, notes, smallDiameter, + largeDiameter, visMagnitude, \
surfBrightness), m_StarCount(starCount), m_BrightestStarMag(brightestStarMag), + \
m_Classification(classification) +{ }
+
+
+
+DsPlanetaryNebulaObsTarget::DsPlanetaryNebulaObsTarget(const int id, const QString \
&name, const QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double centralStarMag) : + DsObsTarget(id, name, aliases, datasource, \
discovererObserverId, ra, dec, constellation, notes, smallDiameter, + \
largeDiameter, visMagnitude, surfBrightness), m_CentralStarMag(centralStarMag) +{ }
+
+
+
+DsQuasarObsTarget::DsQuasarObsTarget(const int id, const QString &name, const \
QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness) : + \
DsObsTarget(id, name, aliases, datasource, discovererObserverId, ra, dec, \
constellation, notes, smallDiameter, + largeDiameter, visMagnitude, \
surfBrightness) +{ }
+
+
+
+DsStarCloudObsTarget::DsStarCloudObsTarget(const int id, const QString &name, const \
QStringList &aliases, const QString &datasource, + \
const int discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double posAngle) : + DsObsTarget(id, name, aliases, datasource, \
discovererObserverId, ra, dec, constellation, notes, smallDiameter, + \
largeDiameter, visMagnitude, surfBrightness), m_PositionAngle(posAngle) +{ }
diff --git a/kstars/logging/dsobstargets.h b/kstars/logging/dsobstargets.h
new file mode 100644
index 0000000..ab8173a
--- /dev/null
+++ b/kstars/logging/dsobstargets.h
@@ -0,0 +1,404 @@
+/***************************************************************************
+ dsobstargets.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef DSOBSERVATIONTARGETS_H
+#define DSOBSERVATIONTARGETS_H
+
+#include "obstarget.h"
+
+namespace Logging
+{
+
+class DsObsTarget : public ObsTarget
+{
+public:
+ DsObsTarget(const int id, const QString &name, const QStringList &aliases, const \
QString &datasource, + const int discovererObserverId, const dms &ra, \
const dms &dec, + const QString &constellation, const QString ¬es, \
const dms &smallDiameter, + const dms &largeDiameter, const double \
visMagnitude, const double surfBrightness); +
+ dms smallDiameter() const
+ {
+ return m_SmallDiameter;
+ }
+
+ dms largeDiameter() const
+ {
+ return m_LargeDiameter;
+ }
+
+ double visualMagnitude() const
+ {
+ return m_VisualMagnitude;
+ }
+
+ double surfaceBrightness() const
+ {
+ return m_SurfaceBrightness;
+ }
+
+ void setSmallDiameter(const dms &smallDiameter)
+ {
+ m_SmallDiameter = smallDiameter;
+ }
+
+ void setLargeDiameter(const dms &largeDiameter)
+ {
+ m_LargeDiameter = largeDiameter;
+ }
+
+ void setVisualMagnitude(const double visualMagnitude)
+ {
+ m_VisualMagnitude = visualMagnitude;
+ }
+
+ void setSurfaceBrightness(const double surfaceBrightness)
+ {
+ m_SurfaceBrightness = surfaceBrightness;
+ }
+
+private:
+ dms m_SmallDiameter;
+ dms m_LargeDiameter;
+ double m_VisualMagnitude;
+ double m_SurfaceBrightness;
+};
+
+
+class DsMultipleStarObsTarget : public ObsTarget
+{
+public:
+ DsMultipleStarObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const QList<int> \
&componentsTargetIds); +
+ QList<int> componentsTargetId() const
+ {
+ return m_ComponentsTargetIds;
+ }
+
+ void setComponentsTargetIds(const QList<int> &componentsTargetIds)
+ {
+ m_ComponentsTargetIds = componentsTargetIds;
+ }
+
+private:
+ QList<int> m_ComponentsTargetIds;
+};
+
+
+class DsAsterismObsTarget : public DsObsTarget
+{
+public:
+ DsAsterismObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + const \
QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double posAngle); +
+ double positionAngle() const
+ {
+ return m_PositionAngle;
+ }
+
+ void setPositionAngle(const double posAngle)
+ {
+ m_PositionAngle = posAngle;
+ }
+
+private:
+ double m_PositionAngle;
+};
+
+
+class DsGalaxyClusterObsTarget : public DsObsTarget
+{
+public:
+ DsGalaxyClusterObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double brightest10thMag); +
+ double brightest10thMag() const
+ {
+ return m_Brightest10thMag;
+ }
+
+ void setBrightest10thMag(const double mag)
+ {
+ m_Brightest10thMag = mag;
+ }
+
+private:
+ double m_Brightest10thMag;
+};
+
+
+class DsDarkNebulaeObsTarget : public DsObsTarget
+{
+public:
+ DsDarkNebulaeObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double posAngle, const int opacity); +
+ double positionAngle() const
+ {
+ return m_PositionAngle;
+ }
+
+ int opacity() const
+ {
+ return m_Opacity;
+ }
+
+ void setPositionAngle(const double posAngle)
+ {
+ m_PositionAngle = posAngle;
+ }
+
+ void setOpacity(const int opacity)
+ {
+ m_Opacity = opacity;
+ }
+
+private:
+ double m_PositionAngle;
+ int m_Opacity;
+};
+
+
+class DsDoubleStarObsTarget : public DsObsTarget
+{
+public:
+ DsDoubleStarObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + const \
QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const dms &separation, const double posAngle, const double companionMag); +
+ dms separation() const
+ {
+ return m_Separation;
+ }
+
+ double positionAngle() const
+ {
+ return m_PositionAngle;
+ }
+
+ double companionMagnitude() const
+ {
+ return m_CompanionMagnitude;
+ }
+
+ void setSeparation(const dms &separation)
+ {
+ m_Separation = separation;
+ }
+
+ void setPositionAngle(const double posAngle)
+ {
+ m_PositionAngle = posAngle;
+ }
+
+ void setCompanionMagnitude(const double companionMag)
+ {
+ m_CompanionMagnitude = companionMag;
+ }
+
+private:
+ dms m_Separation;
+ double m_PositionAngle;
+ double m_CompanionMagnitude;
+};
+
+class DsGalacticNebulaObsTarget : public DsObsTarget
+{
+public:
+ DsGalacticNebulaObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const QString &nebulaType, double posAngle); +
+ QString nebulaType() const
+ {
+ return m_NebulaType;
+ }
+
+ double positionAngle() const
+ {
+ return m_PositionAngle;
+ }
+
+ void setNebulaType(const QString &nebulaType)
+ {
+ m_NebulaType = nebulaType;
+ }
+
+ void setPositionAngle(const double posAngle)
+ {
+ m_PositionAngle = posAngle;
+ }
+
+private:
+ QString m_NebulaType;
+ double m_PositionAngle;
+};
+
+class DsGalaxyObsTarget : public DsObsTarget
+{
+public:
+ DsGalaxyObsTarget(const int id, const QString &name, const QStringList &aliases, \
const QString &datasource, + const int discovererObserverId, \
const dms &ra, const dms &dec, + const QString &constellation, \
const QString ¬es, const dms &smallDiameter, + const dms \
&largeDiameter, const double visMagnitude, const double surfBrightness, + \
const QString &hubbleType, const double posAngle); +
+ QString hubbleType() const
+ {
+ return m_HubbleType;
+ }
+
+ double positionAngle() const
+ {
+ return m_PositionAngle;
+ }
+
+ void setHubbleType(const QString &hubbleType)
+ {
+ m_HubbleType = hubbleType;
+ }
+
+ void setPositionAngle(const double posAngle)
+ {
+ m_PositionAngle = posAngle;
+ }
+
+private:
+ QString m_HubbleType;
+ double m_PositionAngle;
+
+};
+
+class DsOpenClusterObsTarget : public DsObsTarget
+{
+public:
+ DsOpenClusterObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const int starCount, const double brightestStarMag, const QString &classification); +
+ int starCount() const
+ {
+ return m_StarCount;
+ }
+
+ double brightestStarMagnitude() const
+ {
+ return m_BrightestStarMag;
+ }
+
+ QString classification() const
+ {
+ return m_Classification;
+ }
+
+ void setStarCount(const int starCount)
+ {
+ m_StarCount = starCount;
+ }
+
+ void setBrightestStarMagnitude(const double brightestStarMag)
+ {
+ m_BrightestStarMag = brightestStarMag;
+ }
+
+ void setClassification(const QString &classification)
+ {
+ m_Classification = classification;
+ }
+
+private:
+ int m_StarCount;
+ double m_BrightestStarMag;
+ QString m_Classification;
+};
+
+class DsPlanetaryNebulaObsTarget : public DsObsTarget
+{
+public:
+ DsPlanetaryNebulaObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + const \
QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double centralStarMag); +
+ double centralStarMagnitude() const
+ {
+ return m_CentralStarMag;
+ }
+
+ void setCentralStarMagnitude(const double centralStarMag)
+ {
+ m_CentralStarMag = centralStarMag;
+ }
+
+private:
+ double m_CentralStarMag;
+};
+
+class DsQuasarObsTarget : public DsObsTarget
+{
+public:
+ DsQuasarObsTarget(const int id, const QString &name, const QStringList &aliases, \
const QString &datasource, + const int discovererObserverId, \
const dms &ra, const dms &dec, + const QString &constellation, \
const QString ¬es, const dms &smallDiameter, + const dms \
&largeDiameter, const double visMagnitude, const double surfBrightness); +
+};
+
+class DsStarCloudObsTarget : public DsObsTarget
+{
+public:
+ DsStarCloudObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + const \
QString &constellation, const QString ¬es, const dms &smallDiameter, + \
const dms &largeDiameter, const double visMagnitude, const double surfBrightness, + \
const double posAngle); +
+ double positionAngle() const
+ {
+ return m_PositionAngle;
+ }
+
+ void setPositionAngle(const double posAngle)
+ {
+ m_PositionAngle = posAngle;
+ }
+
+private:
+ double m_PositionAngle;
+};
+
+}
+
+#endif // DSOBSERVATIONTARGETS_H
diff --git a/kstars/logging/eyepiece.cpp b/kstars/logging/eyepiece.cpp
new file mode 100644
index 0000000..17d2ef3
--- /dev/null
+++ b/kstars/logging/eyepiece.cpp
@@ -0,0 +1,26 @@
+/***************************************************************************
+ eyepiece.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "eyepiece.h"
+
+using namespace Logging;
+
+Eyepiece::Eyepiece(const int id, const QString &model, const QString &vendor, const \
double focalLength, + const double maxFocalLength, const dms \
&apparentFov) : + m_Id(id), m_Model(model), m_Vendor(vendor), \
m_FocalLength(focalLength), + m_MaxFocalLength(maxFocalLength), \
m_ApparentFov(apparentFov) +{ }
diff --git a/kstars/logging/eyepiece.h b/kstars/logging/eyepiece.h
new file mode 100644
index 0000000..c316da0
--- /dev/null
+++ b/kstars/logging/eyepiece.h
@@ -0,0 +1,100 @@
+/***************************************************************************
+ eyepiece.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef EYEPIECE_H
+#define EYEPIECE_H
+
+#include "dms.h"
+#include "QString"
+
+namespace Logging
+{
+
+class Eyepiece
+{
+public:
+ Eyepiece(const int id, const QString &model, const QString &vendor, const double \
focalLength, + const double maxFocalLength, const dms &apparentFov);
+
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString model() const
+ {
+ return m_Model;
+ }
+
+ QString vendor() const
+ {
+ return m_Vendor;
+ }
+
+ double focalLength() const
+ {
+ return m_FocalLength;
+ }
+
+ double maxFocalLength() const
+ {
+ return m_MaxFocalLength;
+ }
+
+ dms apparentFov() const
+ {
+ return m_ApparentFov;
+ }
+
+ void setModel(const QString &model)
+ {
+ m_Model = model;
+ }
+
+ void setVendor(const QString &vendor)
+ {
+ m_Vendor = vendor;
+ }
+
+ void setFocalLength(const double focalLength)
+ {
+ m_FocalLength = focalLength;
+ }
+
+ void setMaxFocalLength(const double maxFocalLength)
+ {
+ m_MaxFocalLength = maxFocalLength;
+ }
+
+ void setApparentFov(const dms &apparentFov)
+ {
+ m_ApparentFov = apparentFov;
+ }
+
+
+private:
+ int m_Id;
+ QString m_Model;
+ QString m_Vendor;
+ double m_FocalLength;
+ double m_MaxFocalLength;
+ dms m_ApparentFov;
+};
+
+}
+
+#endif // EYEPIECE_H
diff --git a/kstars/logging/filter.cpp b/kstars/logging/filter.cpp
new file mode 100644
index 0000000..8648faa
--- /dev/null
+++ b/kstars/logging/filter.cpp
@@ -0,0 +1,26 @@
+/***************************************************************************
+ filter.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "filter.h"
+
+using namespace Logging;
+
+Filter::Filter(const int id, const QString &model, const QString &vendor, const \
QString &type, + const QString &color, const QString &wratten, const \
QString &schott) : + m_Id(id), m_Model(model), m_Vendor(vendor), m_Type(type), \
m_Color(color), + m_Wratten(wratten), m_Schott(schott)
+{ }
diff --git a/kstars/logging/filter.h b/kstars/logging/filter.h
new file mode 100644
index 0000000..1195979
--- /dev/null
+++ b/kstars/logging/filter.h
@@ -0,0 +1,110 @@
+/***************************************************************************
+ filter.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef FILTER_H
+#define FILTER_H
+
+#include "QString"
+
+namespace Logging
+{
+
+class Filter
+{
+public:
+ Filter(const int id, const QString &model, const QString &vendor, const QString \
&type, + const QString &color, const QString &wratten, const QString \
&schott); +
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString model() const
+ {
+ return m_Model;
+ }
+
+ QString vendor() const
+ {
+ return m_Vendor;
+ }
+
+ QString type() const
+ {
+ return m_Type;
+ }
+
+ QString color() const
+ {
+ return m_Color;
+ }
+
+ QString wratten() const
+ {
+ return m_Wratten;
+ }
+
+ QString schott() const
+ {
+ return m_Schott;
+ }
+
+ void setModel(const QString &model)
+ {
+ m_Model = model;
+ }
+
+ void setVendor(const QString &vendor)
+ {
+ m_Vendor = vendor;
+ }
+
+ void setType(const QString &type)
+ {
+ m_Type = type;
+ }
+
+ void setColor(const QString &color)
+ {
+ m_Color = color;
+ }
+
+ void setWratten(const QString &wratten)
+ {
+ m_Wratten = wratten;
+ }
+
+ void setSchott(const QString &schott)
+ {
+ m_Schott = schott;
+ }
+
+
+private:
+ int m_Id;
+ QString m_Model;
+ QString m_Vendor;
+ QString m_Type;
+ QString m_Color;
+ QString m_Wratten;
+ QString m_Schott;
+};
+
+}
+
+#endif // FILTER_H
diff --git a/kstars/logging/fixedmagnificationoptics.cpp \
b/kstars/logging/fixedmagnificationoptics.cpp new file mode 100644
index 0000000..6762c3b
--- /dev/null
+++ b/kstars/logging/fixedmagnificationoptics.cpp
@@ -0,0 +1,28 @@
+/***************************************************************************
+ fixedmagnificationoptics.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "fixedmagnificationoptics.h"
+
+using namespace Logging;
+
+FixedMagnificationOptics::FixedMagnificationOptics(const int id, const QString \
&model, const QString &type, const QString &vendor, + \
const double aperture, const double lightGrasp, const bool orientationErect, + \
const bool orientationTruesided, const double magnification, const dms &trueField) : \
+ Optics(id, model, type, vendor, aperture, lightGrasp, orientationErect, \
orientationTruesided), + m_Magnification(magnification), m_TrueField(trueField)
+{ }
+
diff --git a/kstars/logging/fixedmagnificationoptics.h \
b/kstars/logging/fixedmagnificationoptics.h new file mode 100644
index 0000000..36db031
--- /dev/null
+++ b/kstars/logging/fixedmagnificationoptics.h
@@ -0,0 +1,61 @@
+/***************************************************************************
+ fixedmagnificationoptics.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef FIXEDMAGNIFICATIONOPTICS_H
+#define FIXEDMAGNIFICATIONOPTICS_H
+
+#include "logging/optics.h"
+#include "dms.h"
+
+namespace Logging
+{
+
+class FixedMagnificationOptics : public Optics
+{
+public:
+ FixedMagnificationOptics(const int id, const QString &model, const QString \
&type, const QString &vendor, + const double aperture, \
const double lightGrasp, const bool orientationErect, + \
const bool orientationTruesided, const double magnification, const dms &trueField); +
+ double magnification() const
+ {
+ return m_Magnification;
+ }
+
+ dms trueField() const
+ {
+ return m_TrueField;
+ }
+
+ void setMagnification(const double magnification)
+ {
+ m_Magnification = magnification;
+ }
+
+ void setTrueField(const dms &trueField)
+ {
+ m_TrueField = trueField;
+ }
+
+private:
+ double m_Magnification;
+ dms m_TrueField;
+};
+
+}
+
+#endif // FIXEDMAGNIFICATIONOPTICS_H
diff --git a/kstars/logging/imagers.cpp b/kstars/logging/imagers.cpp
new file mode 100644
index 0000000..b02ffb9
--- /dev/null
+++ b/kstars/logging/imagers.cpp
@@ -0,0 +1,36 @@
+/***************************************************************************
+ imagers.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "imagers.h"
+
+using namespace Logging;
+
+Imager::Imager(const int id, const QString &model, const QString &vendor, const \
QString &remarks) : + m_Id(id), m_Model(model), m_Vendor(vendor), \
m_Remarks(remarks) +{ }
+
+
+
+CcdCamera::CcdCamera(const int id, const QString &model, const QString &vendor, \
const QString &remarks, + const unsigned int pixelsX, const \
unsigned int pixelsY, const double pixelXSize, + const double \
pixelYSize, const unsigned int binning) : + Imager(id, model, vendor, remarks), \
m_PixelsX(pixelsX), m_PixelsY(pixelsY), m_PixelXSize(pixelXSize), + \
m_PixelYSize(pixelYSize), m_Binning(binning) +{ }
+
+
+
diff --git a/kstars/logging/imagers.h b/kstars/logging/imagers.h
new file mode 100644
index 0000000..2f4dc70
--- /dev/null
+++ b/kstars/logging/imagers.h
@@ -0,0 +1,142 @@
+/***************************************************************************
+ imagers.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef IMAGERS_H
+#define IMAGERS_H
+
+#include "QString"
+
+namespace Logging
+{
+
+class Imager
+{
+public:
+ Imager(const int id, const QString &model, const QString &vendor, const QString \
&remarks); +
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString model() const
+ {
+ return m_Model;
+ }
+
+ QString vendor() const
+ {
+ return m_Vendor;
+ }
+
+ QString remarks() const
+ {
+ return m_Remarks;
+ }
+
+ void setModel(const QString &model)
+ {
+ m_Model = model;
+ }
+
+ void setVendor(const QString &vendor)
+ {
+ m_Vendor = vendor;
+ }
+
+ void setRemarks(const QString &remarks)
+ {
+ m_Remarks = remarks;
+ }
+
+private:
+ int m_Id;
+ QString m_Model;
+ QString m_Vendor;
+ QString m_Remarks;
+};
+
+
+class CcdCamera : public Imager
+{
+public:
+ CcdCamera(const int id, const QString &model, const QString &vendor, const \
QString &remarks, + const unsigned int pixelsX, const unsigned int \
pixelsY, const double pixelXSize, + const double pixelYSize, const \
unsigned int binning); +
+ unsigned int pixelsX() const
+ {
+ return m_PixelsX;
+ }
+
+ unsigned int pixelsY() const
+ {
+ return m_PixelsY;
+ }
+
+ double pixelXSize() const
+ {
+ return m_PixelXSize;
+ }
+
+ double pixelYSize() const
+ {
+ return m_PixelYSize;
+ }
+
+ unsigned int binning() const
+ {
+ return m_Binning;
+ }
+
+ void setPixelsX(const unsigned int pixelsX)
+ {
+ m_PixelsX = pixelsX;
+ }
+
+ void setPixelsY(const unsigned int pixelsY)
+ {
+ m_PixelsY = pixelsY;
+ }
+
+ void setPixelXSize(const double pixelXSize)
+ {
+ m_PixelXSize = pixelXSize;
+ }
+
+ void setPixelYSize(const double pixelYSize)
+ {
+ m_PixelYSize = pixelYSize;
+ }
+
+ void setBinning(const unsigned int binning)
+ {
+ m_Binning = binning;
+ }
+
+
+private:
+ unsigned int m_PixelsX;
+ unsigned int m_PixelsY;
+ double m_PixelXSize;
+ double m_PixelYSize;
+ unsigned int m_Binning;
+};
+
+}
+
+#endif // IMAGERS_H
diff --git a/kstars/logging/lens.cpp b/kstars/logging/lens.cpp
new file mode 100644
index 0000000..601ea0a
--- /dev/null
+++ b/kstars/logging/lens.cpp
@@ -0,0 +1,24 @@
+/***************************************************************************
+ lens.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "lens.h"
+
+using namespace Logging;
+
+Lens::Lens(const int id, const QString &model, const QString &vendor, const double \
factor) : + m_Id(id), m_Model(model), m_Vendor(vendor), m_Factor(factor)
+{ }
diff --git a/kstars/logging/lens.h b/kstars/logging/lens.h
new file mode 100644
index 0000000..dedeee5
--- /dev/null
+++ b/kstars/logging/lens.h
@@ -0,0 +1,75 @@
+/***************************************************************************
+ lens.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef LENS_H
+#define LENS_H
+
+#include "QString"
+
+namespace Logging
+{
+
+class Lens
+{
+public:
+ Lens(const int id, const QString &model, const QString &vendor, const double \
factor); +
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString model() const
+ {
+ return m_Model;
+ }
+
+ QString vendor() const
+ {
+ return m_Vendor;
+ }
+
+ double factor() const
+ {
+ return m_Factor;
+ }
+
+ void setModel(const QString &model)
+ {
+ m_Model = model;
+ }
+
+ void setVendor(const QString &vendor)
+ {
+ m_Vendor = vendor;
+ }
+
+ void setFactor(const double factor)
+ {
+ m_Factor = factor;
+ }
+
+private:
+ int m_Id;
+ QString m_Model;
+ QString m_Vendor;
+ double m_Factor;
+};
+
+}
+
+#endif // LENS_H
diff --git a/kstars/logging/logdatabase.cpp b/kstars/logging/logdatabase.cpp
index 16349c6..735a951 100644
--- a/kstars/logging/logdatabase.cpp
+++ b/kstars/logging/logdatabase.cpp
@@ -117,9 +117,8 @@ QStringList LogDatabase::baseTableCreationQueries()
queries.append("create table targets("
"id int primary key not null,"
- "targetObjectType int not null,"
"datasource text,"
- "observer text,"
+ "observer int,"
"name text not null,"
"position text,"
"constellation text,"
@@ -173,14 +172,14 @@ QStringList LogDatabase::equipmentTableCreationQueries()
queries.append("create table optics("
"id int primary key not null,"
- "opticObjectType int not null,"
+ "opticsObjectType int not null,"
"type text,"
"vendor text,"
"aperture real,"
"lightGrasp real,"
"orientationErect int,"
"orientationTruesided int,"
- "scopeFocalLength real,"
+ "scopeFocalLength real," // TODO: fixed mag optics
"fixedMagMagnification real,"
"fixedMagTrueFieldValue real,"
"fixedMagTrueFieldUnit text);");
diff --git a/kstars/logging/observer.cpp b/kstars/logging/observer.cpp
new file mode 100644
index 0000000..6f9a323
--- /dev/null
+++ b/kstars/logging/observer.cpp
@@ -0,0 +1,27 @@
+/***************************************************************************
+ observer.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "observer.h"
+
+using namespace Logging;
+
+Observer::Observer(const int id, const QString &name, const QString &surname,
+ const double fstOffset, const QStringList &contacts,
+ const QList<Account> &accounts) :
+ m_Id(id), m_Name(name), m_Surname(surname), m_FstOffset(fstOffset),
+ m_Contacts(contacts), m_Accounts(accounts)
+{ }
diff --git a/kstars/logging/observer.h b/kstars/logging/observer.h
new file mode 100644
index 0000000..618d1e0
--- /dev/null
+++ b/kstars/logging/observer.h
@@ -0,0 +1,134 @@
+/***************************************************************************
+ observer.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+
+#ifndef OBSERVER_H
+#define OBSERVER_H
+
+#include "QString"
+#include "QStringList"
+
+namespace Logging
+{
+
+class Observer
+{
+public:
+ class Account
+ {
+ public:
+ Account(const QString &account, const QString &service) :
+ m_Account(account), m_Service(service)
+ { }
+
+ QString account() const
+ {
+ return m_Account;
+ }
+
+ QString service() const
+ {
+ return m_Service;
+ }
+
+ void setAccount(const QString &account)
+ {
+ m_Account = account;
+ }
+
+ void setService(const QString &service)
+ {
+ m_Service = service;
+ }
+
+ private:
+ QString m_Account;
+ QString m_Service;
+ };
+
+
+ Observer(const int id, const QString &name, const QString &surname,
+ const double fstOffset, const QStringList &contacts,
+ const QList<Account> &accounts);
+
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString name() const
+ {
+ return m_Name;
+ }
+
+ QString surname() const
+ {
+ return m_Surname;
+ }
+
+ double fstOffset() const
+ {
+ return m_FstOffset;
+ }
+
+ QStringList contacts() const
+ {
+ return m_Contacts;
+ }
+
+ QList<Account> accounts() const
+ {
+ return m_Accounts;
+ }
+
+ void setName(const QString &name)
+ {
+ m_Name = name;
+ }
+
+ void setSurname(const QString &surname)
+ {
+ m_Surname = surname;
+ }
+
+ void setFstOffset(const double fstOffset)
+ {
+ m_FstOffset = fstOffset;
+ }
+
+ void setContacts(const QStringList &contacts)
+ {
+ m_Contacts = contacts;
+ }
+
+ void setAccounts(const QList<Account> &accounts)
+ {
+ m_Accounts = accounts;
+ }
+
+private:
+ int m_Id;
+ QString m_Name;
+ QString m_Surname;
+ double m_FstOffset;
+ QStringList m_Contacts;
+ QList<Account> m_Accounts;
+};
+
+}
+
+#endif // OBSERVER_H
diff --git a/kstars/logging/obstarget.cpp b/kstars/logging/obstarget.cpp
new file mode 100644
index 0000000..6fd3c0a
--- /dev/null
+++ b/kstars/logging/obstarget.cpp
@@ -0,0 +1,20 @@
+/***************************************************************************
+ obstarget.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "obstarget.h"
+
+using namespace Logging;
diff --git a/kstars/logging/obstarget.h b/kstars/logging/obstarget.h
new file mode 100644
index 0000000..16cd356
--- /dev/null
+++ b/kstars/logging/obstarget.h
@@ -0,0 +1,138 @@
+/***************************************************************************
+ obstarget.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef OBSERVATIONTARGET_H
+#define OBSERVATIONTARGET_H
+
+#include "dms.h"
+#include "QStringList"
+
+namespace Logging
+{
+
+class ObsTarget
+{
+public:
+ ObsTarget(const int id, const QString &name, const QStringList &aliases, const \
QString &datasource, + const int discovererObserverId, const dms &ra, \
const dms &dec, + const QString &constellation, const QString ¬es) :
+ m_Id(id), m_Name(name), m_Aliases(aliases), m_Datasource(datasource),
+ m_DiscovererObserverId(discovererObserverId), m_Ra(ra), m_Dec(dec), \
m_Constellation(constellation), + m_Notes(notes)
+ { }
+
+ QString name() const
+ {
+ return m_Name;
+ }
+
+ QStringList aliases() const
+ {
+ return m_Aliases;
+ }
+
+ QString datasource() const
+ {
+ return m_Datasource;
+ }
+
+ int discovererObserverId() const
+ {
+ return m_DiscovererObserverId;
+ }
+
+ dms ra() const
+ {
+ return m_Ra;
+ }
+
+ dms dec() const
+ {
+ return m_Dec;
+ }
+
+ // reference frame type
+
+ QString constellation() const
+ {
+ return m_Constellation;
+ }
+
+ QString notes() const
+ {
+ return m_Notes;
+ }
+
+ void setName(const QString &name)
+ {
+ m_Name = name;
+ }
+
+ void setAliases(const QStringList &aliases)
+ {
+ m_Aliases = aliases;
+ }
+
+ void setDatasource(const QString &datasource)
+ {
+ m_Datasource = datasource;
+ }
+
+ void setDiscovererObserverId(const int observerId)
+ {
+ m_DiscovererObserverId = observerId;
+ }
+
+ void setRa(const dms &ra)
+ {
+ m_Ra = ra;
+ }
+
+ void setDec(const dms &dec)
+ {
+ m_Dec = dec;
+ }
+
+ // set reference frame type
+
+ void setConstellation(const QString &constellation)
+ {
+ m_Constellation = constellation;
+ }
+
+ void setNotes(const QString ¬es)
+ {
+ m_Notes = notes;
+ }
+
+
+private:
+ int m_Id;
+ QString m_Name;
+ QStringList m_Aliases;
+ QString m_Datasource;
+ int m_DiscovererObserverId;
+ dms m_Ra;
+ dms m_Dec;
+ QString m_ReferenceFrameType;
+ QString m_Constellation;
+ QString m_Notes;
+};
+
+}
+
+#endif // OBSERVATIONTARGET_H
diff --git a/kstars/logging/optics.cpp b/kstars/logging/optics.cpp
new file mode 100644
index 0000000..e811f18
--- /dev/null
+++ b/kstars/logging/optics.cpp
@@ -0,0 +1,27 @@
+/***************************************************************************
+ optics.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "optics.h"
+
+using namespace Logging;
+
+Optics::Optics(const int id, const QString &model, const QString &type, const \
QString &vendor, + const double aperture, const double lightGrasp, \
const bool orientationErect, + const bool orientationTruesided) :
+ m_Id(id), m_Model(model), m_Type(type), m_Vendor(vendor), m_Aperture(aperture), \
m_LightGrasp(lightGrasp), + m_OrientationErect(orientationErect), \
m_OrientationTruesided(orientationTruesided) +{ }
diff --git a/kstars/logging/optics.h b/kstars/logging/optics.h
new file mode 100644
index 0000000..8326dc4
--- /dev/null
+++ b/kstars/logging/optics.h
@@ -0,0 +1,122 @@
+/***************************************************************************
+ optics.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef OPTICS_H
+#define OPTICS_H
+
+#include "QString"
+
+namespace Logging
+{
+
+class Optics
+{
+public:
+ Optics(const int id, const QString &model, const QString &type, const QString \
&vendor, + const double aperture, const double lightGrasp, const bool \
orientationErect, + const bool orientationTruesided);
+
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString model() const
+ {
+ return m_Model;
+ }
+
+ QString type() const
+ {
+ return m_Type;
+ }
+
+ QString vendor() const
+ {
+ return m_Vendor;
+ }
+
+ double aperture() const
+ {
+ return m_Aperture;
+ }
+
+ double lightGrasp() const
+ {
+ return m_LightGrasp;
+ }
+
+ bool orientationErect() const
+ {
+ return m_OrientationErect;
+ }
+
+ bool orientationTruesided() const
+ {
+ return m_OrientationTruesided;
+ }
+
+ void setModel(const QString &model)
+ {
+ m_Model = model;
+ }
+
+ void setType(const QString &type)
+ {
+ m_Type = type;
+ }
+
+ void setVendor(const QString &vendor)
+ {
+ m_Vendor = vendor;
+ }
+
+ void setAperture(const double aperture)
+ {
+ m_Aperture = aperture;
+ }
+
+ void setLightGrasp(const double lightGrasp)
+ {
+ m_LightGrasp = lightGrasp;
+ }
+
+ void setOrientationTruesided(const bool isTruesided)
+ {
+ m_OrientationTruesided = isTruesided;
+ }
+
+ void setOrientationErect(const bool isErect)
+ {
+ m_OrientationErect = isErect;
+ }
+
+
+private:
+ int m_Id;
+ QString m_Model;
+ QString m_Type;
+ QString m_Vendor;
+ double m_Aperture;
+ double m_LightGrasp;
+ bool m_OrientationErect;
+ bool m_OrientationTruesided;
+};
+
+}
+
+#endif // OPTICS_H
diff --git a/kstars/logging/scope.cpp b/kstars/logging/scope.cpp
new file mode 100644
index 0000000..6efac62
--- /dev/null
+++ b/kstars/logging/scope.cpp
@@ -0,0 +1,27 @@
+/***************************************************************************
+ scope.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "scope.h"
+
+using namespace Logging;
+
+Scope::Scope(const int id, const QString &model, const QString &type, const QString \
&vendor, + const double aperture, const double lightGrasp, const bool \
orientationErect, + const bool orientationTruesided, const double \
focalLength) : + Optics(id, model, type, vendor, aperture, lightGrasp, \
orientationErect, orientationTruesided), + m_FocalLength(focalLength)
+{ }
diff --git a/kstars/logging/scope.h b/kstars/logging/scope.h
new file mode 100644
index 0000000..181d0a1
--- /dev/null
+++ b/kstars/logging/scope.h
@@ -0,0 +1,48 @@
+/***************************************************************************
+ scope.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef SCOPE_H
+#define SCOPE_H
+
+#include "logging/optics.h"
+
+namespace Logging
+{
+
+class Scope : public Optics
+{
+public:
+ Scope(const int id, const QString &model, const QString &type, const QString \
&vendor, + const double aperture, const double lightGrasp, const bool \
orientationErect, + const bool orientationTruesided, const double \
focalLength); +
+ double focalLength() const
+ {
+ return m_FocalLength;
+ }
+
+ void setFocalLength(const double focalLength)
+ {
+ m_FocalLength = focalLength;
+ }
+
+private:
+ double m_FocalLength;
+};
+
+}
+#endif // SCOPE_H
diff --git a/kstars/logging/session.cpp b/kstars/logging/session.cpp
new file mode 100644
index 0000000..835a9b8
--- /dev/null
+++ b/kstars/logging/session.cpp
@@ -0,0 +1,30 @@
+/***************************************************************************
+ session.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "session.h"
+
+using namespace Logging;
+
+Session::Session(const int id, const QDateTime &begin, const QDateTime &end, const \
int siteId, + const QList<int> &observersIds, const QString \
&weatherDesc, + const QString &equipmentDesc, const QString \
&comments, const QString &language, + const QStringList &images) :
+ m_Id(id), m_Begin(begin), m_End(end), m_SiteId(siteId), \
m_ObserversIds(observersIds), + m_WeatherDescription(weatherDesc), \
m_EquipmentDescription(equipmentDesc), + m_Comments(comments), \
m_Language(language), m_Images(images) +{ }
+
diff --git a/kstars/logging/session.h b/kstars/logging/session.h
new file mode 100644
index 0000000..bdd6bbc
--- /dev/null
+++ b/kstars/logging/session.h
@@ -0,0 +1,146 @@
+/***************************************************************************
+ session.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef SESSION_H
+#define SESSION_H
+
+#include "QDateTime"
+#include "QStringList"
+
+namespace Logging
+{
+
+class Session
+{
+public:
+ Session(const int id, const QDateTime &begin, const QDateTime &end, const int \
siteId, + const QList<int> &observersIds, const QString &weatherDesc,
+ const QString &equipmentDesc, const QString &comments, const QString \
&language, + const QStringList &images);
+
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QDateTime begin() const
+ {
+ return m_Begin;
+ }
+
+ QDateTime end() const
+ {
+ return m_End;
+ }
+
+ int siteId() const
+ {
+ return m_SiteId;
+ }
+
+ QList<int> observersIds() const
+ {
+ return m_ObserversIds;
+ }
+
+ QString weatherDesc() const
+ {
+ return m_WeatherDescription;
+ }
+
+ QString equipmentDesc() const
+ {
+ return m_EquipmentDescription;
+ }
+
+ QString comments() const
+ {
+ return m_Comments;
+ }
+
+ QString language() const
+ {
+ return m_Language;
+ }
+
+ QStringList images() const
+ {
+ return m_Images;
+ }
+
+ void setBegin(const QDateTime &begin)
+ {
+ m_Begin = begin;
+ }
+
+ void setEnd(const QDateTime &end)
+ {
+ m_End = end;
+ }
+
+ void setSiteId(const int siteId)
+ {
+ m_SiteId = siteId;
+ }
+
+ void setObserversIds(const QList<int> observersIds)
+ {
+ m_ObserversIds = observersIds;
+ }
+
+ void setWeatherDescription(const QString &weatherDescription)
+ {
+ m_WeatherDescription = weatherDescription;
+ }
+
+ void setEquipmentDescription(const QString &equipmentDescription)
+ {
+ m_EquipmentDescription = equipmentDescription;
+ }
+
+ void setComments(const QString &comments)
+ {
+ m_Comments = comments;
+ }
+
+ void setLanguage(const QString &language)
+ {
+ m_Language = language;
+ }
+
+ void setImages(const QStringList &images)
+ {
+ m_Images = images;
+ }
+
+
+private:
+ int m_Id;
+ QDateTime m_Begin;
+ QDateTime m_End;
+ int m_SiteId;
+ QList<int> m_ObserversIds;
+ QString m_WeatherDescription;
+ QString m_EquipmentDescription;
+ QString m_Comments;
+ QString m_Language;
+ QStringList m_Images;
+};
+
+}
+
+#endif // SESSION_H
diff --git a/kstars/logging/site.cpp b/kstars/logging/site.cpp
new file mode 100644
index 0000000..e117444
--- /dev/null
+++ b/kstars/logging/site.cpp
@@ -0,0 +1,26 @@
+/***************************************************************************
+ site.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "site.h"
+
+using namespace Logging;
+
+Site::Site(const int id, const QString &name, const dms &longitude, const dms \
&latitude, + const double elevation, const int timezone, const int code) :
+ m_Id(id), m_Name(name), m_Longitude(longitude), m_Latitude(latitude),
+ m_Elevation(elevation), m_Timezone(timezone), m_Code(code)
+{ }
diff --git a/kstars/logging/site.h b/kstars/logging/site.h
new file mode 100644
index 0000000..d3bade6
--- /dev/null
+++ b/kstars/logging/site.h
@@ -0,0 +1,109 @@
+/***************************************************************************
+ site.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef SITE_H
+#define SITE_H
+
+#include "dms.h"
+
+namespace Logging
+{
+
+class Site
+{
+public:
+ Site(const int id, const QString &name, const dms &longitude, const dms \
&latitude, + const double elevation, const int timezone, const int code);
+
+ int id() const
+ {
+ return m_Id;
+ }
+
+ QString name() const
+ {
+ return m_Name;
+ }
+
+ dms longitude() const
+ {
+ return m_Longitude;
+ }
+
+ dms latitude() const
+ {
+ return m_Latitude;
+ }
+
+ double elevation() const
+ {
+ return m_Elevation;
+ }
+
+ int timezone() const
+ {
+ return m_Timezone;
+ }
+
+ int code() const
+ {
+ return m_Code;
+ }
+
+ void setName(const QString &name)
+ {
+ m_Name = name;
+ }
+
+ void setLongitude(const dms &longitude)
+ {
+ m_Longitude = longitude;
+ }
+
+ void setLatitude(const dms &latitude)
+ {
+ m_Latitude = latitude;
+ }
+
+ void setElevation(const double elevation)
+ {
+ m_Elevation = elevation;
+ }
+
+ void setTimezone(const int timezone)
+ {
+ m_Timezone = timezone;
+ }
+
+ void setCode(const int code)
+ {
+ m_Code = code;
+ }
+
+private:
+ int m_Id;
+ QString m_Name;
+ dms m_Longitude;
+ dms m_Latitude;
+ double m_Elevation;
+ int m_Timezone;
+ int m_Code;
+};
+
+}
+
+#endif // SITE_H
diff --git a/kstars/logging/starobstarget.cpp b/kstars/logging/starobstarget.cpp
new file mode 100644
index 0000000..67013ec
--- /dev/null
+++ b/kstars/logging/starobstarget.cpp
@@ -0,0 +1,30 @@
+/***************************************************************************
+ starobstarget.cpp - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "starobstarget.h"
+
+using namespace Logging;
+
+StarObsTarget::StarObsTarget(const int id, const QString &name, const QStringList \
&aliases, const QString &datasource, + const int \
discovererObserverId, const dms &ra, const dms &dec, + \
const QString &constellation, const QString ¬es, const double apparentMag, + \
const QString &classification) : + ObsTarget(id, name, aliases, datasource, \
discovererObserverId, ra, dec, constellation, notes), + \
m_ApparentMag(apparentMag), m_Classification(classification) +{ }
+
+
diff --git a/kstars/logging/starobstarget.h b/kstars/logging/starobstarget.h
new file mode 100644
index 0000000..edcc676
--- /dev/null
+++ b/kstars/logging/starobstarget.h
@@ -0,0 +1,62 @@
+/***************************************************************************
+ starobstarget.h - K Desktop Planetarium
+ -------------------
+ begin : Tue Nov 12 2013
+ copyright : (C) 2013 by Rafal Kulaga
+ email : rl.kulaga@gmail.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef STAROBSERVATIONTARGET_H
+#define STAROBSERVATIONTARGET_H
+
+#include "obstarget.h"
+
+namespace Logging
+{
+
+class StarObsTarget : public ObsTarget
+{
+public:
+ StarObsTarget(const int id, const QString &name, const QStringList &aliases, \
const QString &datasource, + const int discovererObserverId, const \
dms &ra, const dms &dec, + const QString &constellation, const \
QString ¬es, const double apparentMag, + const QString \
&classification); +
+ double apparentMag() const
+ {
+ return m_ApparentMag;
+ }
+
+ QString classification() const
+ {
+ return m_Classification;
+ }
+
+ void setApparentMag(const double mag)
+ {
+ m_ApparentMag = mag;
+ }
+
+ void setClassification(const QString &classification)
+ {
+ m_Classification = classification;
+ }
+
+
+private:
+ double m_ApparentMag;
+ QString m_Classification;
+};
+
+}
+
+#endif // STAROBSERVATIONTARGET_H
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic