/
mainwindow.h
135 lines (100 loc) · 3.32 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
HRPT-Decoder, a software for processing NOAA-POES hig resolution weather satellite images.
Copyright (C) 2009 Free Software Foundation, Inc.
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 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Email: <postmaster@poes-weather.com>
Web: <http://www.poes-weather.com>
*/
//---------------------------------------------------------------------------
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
namespace Ui
{
class MainWindow;
}
//---------------------------------------------------------------------------
class QSettings;
class QLabel;
class QImage;
class THRPT;
class TBlock;
class PList;
class TStation;
class TSat;
class TSettings;
class TRig;
class ImageWidget;
class TrackWidget;
class TrackThread;
class GPSDialog;
//---------------------------------------------------------------------------
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
bool countSats(int flags=0);
QString getConfPath(void);
QString getTLEPath(int type=0);
TrackThread *thread;
TBlock *getBlock(void) { return block; }
bool renderImage(void);
TSat *getNextSat(double daynum_ = 0);
TSat *getNextSatByName(const QString &name, double daynum_ = 0);
TSettings *getSettings(void);
TRig *getRig(void);
PList *getSatList(void);
TStation *getQTH(void) { return qth; }
void updateQTH(void);
private slots:
void on_actionSplit_CADU_to_file_triggered();
void on_actionGPS_triggered();
void on_actionRig_triggered();
void on_actionActive_satellites_triggered();
void on_actionPredict_triggered();
void on_actionOrbit_data_triggered();
void on_actionKeplerian_elements_triggered();
void on_actionGroundstation_triggered();
void on_actionSave_As_triggered();
void on_actionOpen_triggered();
void on_actionClose_triggered();
void on_actionProperties_triggered();
protected:
void closeEvent(QCloseEvent *event);
bool processData(const char *filename, int blockType);
void setCaption(const QString &filename = 0);
void writeSettings(void);
void readSettings(void);
void writeSatelliteSettings(void);
void readSatelliteSettings(void);
void createPaths(void);
bool mkpath(const QString &path, int flags=0);
QString getImageFormats(void);
private:
Ui::MainWindow *ui;
QAction *exitAct;
QString FileName;
QLabel *imageLabel;
QImage *blockImage;
TBlock *block;
PList *satList;
TStation *qth;
TSettings *settings;
TRig *rig;
GPSDialog *gps;
TSat *opensat;
TrackWidget *trackWidget;
ImageWidget *imageWidget;
};
#endif // MAINWINDOW_H