From d63dd8d081a6fcd0715cd13f26df59fb831769d2 Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Sun, 18 Oct 2015 18:51:00 +0100 Subject: Imported Upstream version 1.5.0 --- astro.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 astro.h (limited to 'astro.h') diff --git a/astro.h b/astro.h new file mode 100644 index 00000000..8a45a6eb --- /dev/null +++ b/astro.h @@ -0,0 +1,51 @@ +// -*- Mode: C++ -*- +#ifndef ASTRO_H +#define ASTRO_H + +#include +#include + +class QSettings; + +namespace Ui { + class Astro; +} + +class Astro final + : public QWidget +{ + Q_OBJECT; + +private: + Q_DISABLE_COPY (Astro); + +public: + explicit Astro(QSettings * settings, QWidget * parent = nullptr); + ~Astro (); + + void astroUpdate(QDateTime t, QString mygrid, QString hisgrid, + int fQSO, int nsetftx, int ntxFreq); + + Q_SLOT void on_font_push_button_clicked (bool); + +protected: + void closeEvent (QCloseEvent *) override; + +private: + void read_settings (); + void write_settings (); + + QSettings * settings_; + QScopedPointer ui_; +}; + +extern "C" { + void astrosub_(int* nyear, int* month, int* nday, double* uth, int* nfreq, + const char* mygrid, const char* hisgrid, double* azsun, + double* elsun, double* azmoon, double* elmoon, double* azmoondx, + double* elmoondx, int* ntsky, int* ndop, int* ndop00, + double* ramoon, double* decmoon, double* dgrd, double* poloffset, + double* xnr, double* techo, int len1, int len2); +} + +#endif // ASTRO_H -- cgit v1.2.3