mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-08 10:06:11 -05:00
f37ed4cd78
Pass the temporary directory to jt9 and use it to give the correct paths to temporary files. Also jt9 passes the absolute path to kvasd.dat in the temporary directory to kvasd. Clear out all the annoying cruft that has accumulated due to having to run with $CWD as the temporary directory. Use QStandardPaths to find the writable data directory where needed rather than passing it around between objects. This now works because the $CWD hasn't been changed. Do away with the CMake option WSJT_STANDARD_FILE_LOCATIONS as it is no longer needed. Fix astro status file azel.dat formatting. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4732 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
// -*- Mode: C++ -*-
|
|
#ifndef ASTRO_H
|
|
#define ASTRO_H
|
|
|
|
#include <QWidget>
|
|
#include <QDir>
|
|
|
|
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::Astro> 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
|