File: sat-pass-dialogs.h

package info (click to toggle)
gpredict 2.3-72-gc596101-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 12,264 kB
  • sloc: ansic: 39,918; makefile: 469; python: 143; sh: 85
file content (117 lines) | stat: -rw-r--r-- 5,769 bytes parent folder | download | duplicates (2)
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
/*
    Gpredict: Real-time satellite tracking and orbit prediction program

    Copyright (C)  2001-2009  Alexandru Csete, OZ9AEC.

    Authors: Alexandru Csete <oz9aec@gmail.com>

    Comments, questions and bugreports should be submitted via
    http://sourceforge.net/projects/gpredict/
    More details can be found at the project home page:

            http://gpredict.oz9aec.net/
 
    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.
  
    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, visit http://www.fsf.org/
*/
#ifndef SAT_PASS_DIALOGS_H
#define SAT_PASS_DIALOGS_H 1

#include <glib.h>
#include <gtk/gtk.h>

#include "gtk-sat-data.h"
#include "predict-tools.h"

/** Column definitions for multi-pass listings. */
typedef enum {
    MULTI_PASS_COL_AOS_TIME = 0,        /*!< AOS time. */
    MULTI_PASS_COL_TCA,         /*!< Time of closest approach. */
    MULTI_PASS_COL_LOS_TIME,    /*!< LOS time. */
    MULTI_PASS_COL_DURATION,    /*!< Duration. */
    MULTI_PASS_COL_MAX_EL,      /*!< Maximum elevation. */
    MULTI_PASS_COL_AOS_AZ,      /*!< Azimuth at AOS. */
    MULTI_PASS_COL_MAX_EL_AZ,   /*!< Azimuth at max el. */
    MULTI_PASS_COL_LOS_AZ,      /*!< Azimuth at LOS. */
    MULTI_PASS_COL_ORBIT,       /*!< Orbit number. */
    MULTI_PASS_COL_VIS,         /*!< Visibility. */
    MULTI_PASS_COL_NUMBER
} multi_pass_col_t;

/** Column flags for multi-pass listings. */
typedef enum {
    MULTI_PASS_FLAG_AOS_TIME = 1 << MULTI_PASS_COL_AOS_TIME,    /*!< AOS time. */
    MULTI_PASS_FLAG_TCA = 1 << MULTI_PASS_COL_TCA,      /*!< Time of closest approach. */
    MULTI_PASS_FLAG_LOS_TIME = 1 << MULTI_PASS_COL_LOS_TIME,    /*!< LOS time. */
    MULTI_PASS_FLAG_DURATION = 1 << MULTI_PASS_COL_DURATION,    /*!< Duration. */
    MULTI_PASS_FLAG_MAX_EL = 1 << MULTI_PASS_COL_MAX_EL,        /*!< Maximum elevation. */
    MULTI_PASS_FLAG_AOS_AZ = 1 << MULTI_PASS_COL_AOS_AZ,        /*!< Azimuth at AOS. */
    MULTI_PASS_FLAG_MAX_EL_AZ = 1 << MULTI_PASS_COL_MAX_EL_AZ,  /*!< Azimuth at max el. */
    MULTI_PASS_FLAG_LOS_AZ = 1 << MULTI_PASS_COL_LOS_AZ,        /*!< Azimuth at LOS. */
    MULTI_PASS_FLAG_ORBIT = 1 << MULTI_PASS_COL_ORBIT,  /*!< Orbit number. */
    MULTI_PASS_FLAG_VIS = 1 << MULTI_PASS_COL_VIS       /*!< Visibility. */
} multi_pass_flag_t;

/** Column definition for single-pass listings. */
typedef enum {
    SINGLE_PASS_COL_TIME = 0,
    SINGLE_PASS_COL_AZ,         /*!< Azimuth. */
    SINGLE_PASS_COL_EL,         /*!< Elvation. */
    SINGLE_PASS_COL_RA,         /*!< Right Ascension. */
    SINGLE_PASS_COL_DEC,        /*!< Declination. */
    SINGLE_PASS_COL_RANGE,      /*!< Range. */
    SINGLE_PASS_COL_RANGE_RATE, /*!< Range rate. */
    SINGLE_PASS_COL_LAT,        /*!< Latitude. */
    SINGLE_PASS_COL_LON,        /*!< Longitude. */
    SINGLE_PASS_COL_SSP,        /*!< Sub satellite point grid square */
    SINGLE_PASS_COL_FOOTPRINT,  /*!< Footprint. */
    SINGLE_PASS_COL_ALT,        /*!< Altitude. */
    SINGLE_PASS_COL_VEL,        /*!< Velocity. */
    SINGLE_PASS_COL_DOPPLER,    /*!< Doppler shift at 100 MHz. */
    SINGLE_PASS_COL_LOSS,       /*!< Path Loss at 100 MHz. */
    SINGLE_PASS_COL_DELAY,      /*!< Signal delay */
    SINGLE_PASS_COL_MA,         /*!< Mean Anomaly. */
    SINGLE_PASS_COL_PHASE,      /*!< Phase. */
    SINGLE_PASS_COL_VIS,        /*!< Visibility. */
    SINGLE_PASS_COL_NUMBER
} single_pass_col_t;

/** Column flags for single-pass listings. */
typedef enum {
    SINGLE_PASS_FLAG_TIME = 1 << SINGLE_PASS_COL_TIME,
    SINGLE_PASS_FLAG_AZ = 1 << SINGLE_PASS_COL_AZ,      /*!< Azimuth. */
    SINGLE_PASS_FLAG_EL = 1 << SINGLE_PASS_COL_EL,      /*!< Elvation. */
    SINGLE_PASS_FLAG_RA = 1 << SINGLE_PASS_COL_RA,      /*!< Right Ascension. */
    SINGLE_PASS_FLAG_DEC = 1 << SINGLE_PASS_COL_DEC,    /*!< Declination. */
    SINGLE_PASS_FLAG_RANGE = 1 << SINGLE_PASS_COL_RANGE,        /*!< Range. */
    SINGLE_PASS_FLAG_RANGE_RATE = 1 << SINGLE_PASS_COL_RANGE_RATE,      /*!< Range rate. */
    SINGLE_PASS_FLAG_LAT = 1 << SINGLE_PASS_COL_LAT,    /*!< Latitude. */
    SINGLE_PASS_FLAG_LON = 1 << SINGLE_PASS_COL_LON,    /*!< Longitude. */
    SINGLE_PASS_FLAG_SSP = 1 << SINGLE_PASS_COL_SSP,    /*!< Sub satellite point grid square */
    SINGLE_PASS_FLAG_FOOTPRINT = 1 << SINGLE_PASS_COL_FOOTPRINT,        /*!< Footprint. */
    SINGLE_PASS_FLAG_ALT = 1 << SINGLE_PASS_COL_ALT,    /*!< Altitude. */
    SINGLE_PASS_FLAG_VEL = 1 << SINGLE_PASS_COL_VEL,    /*!< Velocity. */
    SINGLE_PASS_FLAG_DOPPLER = 1 << SINGLE_PASS_COL_DOPPLER,    /*!< Doppler shift at 100 MHz. */
    SINGLE_PASS_FLAG_LOSS = 1 << SINGLE_PASS_COL_LOSS,  /*!< Path Loss at 100 MHz. */
    SINGLE_PASS_FLAG_DELAY = 1 << SINGLE_PASS_COL_DELAY,        /*!< Signal delay */
    SINGLE_PASS_FLAG_MA = 1 << SINGLE_PASS_COL_MA,      /*!< Mean Anomaly. */
    SINGLE_PASS_FLAG_PHASE = 1 << SINGLE_PASS_COL_PHASE,        /*!< Phase. */
    SINGLE_PASS_FLAG_VIS = 1 << SINGLE_PASS_COL_VIS     /*!< Visibility. */
} single_pass_flag_t;

void            show_pass(const gchar * satname, qth_t * qth, pass_t * pass,
                          GtkWidget * toplevel);
void            show_passes(const gchar * satname, qth_t * qth,
                            GSList * passes, GtkWidget * toplevel);

#endif