~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to .pc/0001-License-Declaration.patch/src/include/status.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _status_H
2
 
#define _status_H
3
 
 
4
 
#include <string>
5
 
#include <FL/Fl.H>
6
 
#include <FL/Enumerations.H>
7
 
 
8
 
#include "rig.h"
9
 
 
10
 
using namespace std;
11
 
 
12
 
struct status {
13
 
        int             mainX;
14
 
        int             mainY;
15
 
        int             mainW;
16
 
        int             mainH;
17
 
        int             UIsize;
18
 
        bool    UIchanged;
19
 
        int             rig_nbr;
20
 
        string  xcvr_serial_port;
21
 
        int             comm_baudrate;
22
 
        int             stopbits;
23
 
        int             comm_retries;
24
 
        int             comm_wait;
25
 
        int             comm_timeout;
26
 
        bool    comm_echo;
27
 
        bool    comm_catptt;
28
 
        bool    comm_rtsptt;
29
 
        bool    comm_dtrptt;
30
 
        bool    comm_rtscts;
31
 
        bool    comm_rtsplus;
32
 
        bool    comm_dtrplus;
33
 
        int             serloop_timing;
34
 
        int             byte_interval;
35
 
 
36
 
        string  aux_serial_port;
37
 
        bool    aux_rts;
38
 
        bool    aux_dtr;
39
 
 
40
 
        string  sep_serial_port;
41
 
        bool    sep_rtsptt;
42
 
        bool    sep_dtrptt;
43
 
        bool    sep_rtsplus;
44
 
        bool    sep_dtrplus;
45
 
        int             CIV;
46
 
        bool    USBaudio;
47
 
 
48
 
        int             poll_smeter;
49
 
        int             poll_frequency;
50
 
        int             poll_mode;
51
 
        int             poll_bandwidth;
52
 
        int             poll_volume;
53
 
        int             poll_auto_notch;
54
 
        int             poll_notch;
55
 
        int             poll_ifshift;
56
 
        int             poll_power_control;
57
 
        int             poll_pre_att;
58
 
        int             poll_micgain;
59
 
        int             poll_squelch;
60
 
        int             poll_rfgain;
61
 
        int             poll_pout;
62
 
        int             poll_swr;
63
 
        int             poll_alc;
64
 
        int             poll_split;
65
 
        int             poll_noise;
66
 
        int             poll_nr;
67
 
        int             poll_all;
68
 
 
69
 
        int             iBW_A;
70
 
        int             imode_A;
71
 
        int             freq_A;
72
 
        int             iBW_B;
73
 
        int             imode_B;
74
 
        int             freq_B;
75
 
        bool    use_rig_data;
76
 
        bool    restore_rig_data;
77
 
 
78
 
        bool    spkr_on;
79
 
        int             volume;
80
 
        double  power_level;
81
 
        int             mic_gain;
82
 
        bool    notch;
83
 
        int             notch_val;
84
 
        bool    shift;
85
 
        int             shift_val;
86
 
        int             rfgain;
87
 
        int             squelch;
88
 
 
89
 
        int             schema;
90
 
 
91
 
        int             line_out;
92
 
        bool    data_port;
93
 
        int             agc_level;
94
 
        int             cw_wpm;
95
 
        float   cw_weight;
96
 
        int             cw_vol;
97
 
        int             cw_spot;
98
 
        bool    spot_onoff;
99
 
        int             cw_spot_tone;
100
 
        double  cw_qsk;
101
 
        bool    enable_keyer;
102
 
        bool    vox_onoff;
103
 
        int             vox_gain;
104
 
        int             vox_anti;
105
 
        int             vox_hang;
106
 
        bool    vox_on_dataport;
107
 
        int             compression;
108
 
        bool    compON;
109
 
 
110
 
        int             noise_reduction;
111
 
        int             noise_reduction_val;
112
 
        int             nb_level;
113
 
 
114
 
        bool    noise;
115
 
        int             attenuator;
116
 
        int             preamp;
117
 
        int             auto_notch;
118
 
 
119
 
        int             split;
120
 
 
121
 
        bool    key_fldigi;
122
 
 
123
 
        int             rx_avg;
124
 
        int             rx_peak;
125
 
        int             pwr_avg;
126
 
        int             pwr_peak;
127
 
        int             pwr_scale;
128
 
 
129
 
//============= transceiver specific prameters
130
 
//tt550 controls
131
 
        int             tt550_line_out;
132
 
        int             tt550_agc_level;
133
 
 
134
 
        int             tt550_cw_wpm;
135
 
        double  tt550_cw_weight;
136
 
        int             tt550_cw_vol;
137
 
        int             tt550_cw_spot;
138
 
        bool    tt550_spot_onoff;
139
 
        int             tt550_cw_qsk;
140
 
        bool    tt550_enable_keyer;
141
 
 
142
 
        bool    tt550_vox_onoff;
143
 
        int             tt550_vox_gain;
144
 
        int             tt550_vox_anti;
145
 
        int             tt550_vox_hang;
146
 
 
147
 
        int             tt550_mon_vol;
148
 
        int             tt550_squelch_level;
149
 
        int             tt550_compression;
150
 
        int             tt550_nb_level;
151
 
        bool    tt550_compON;
152
 
        bool    tt550_tuner_bypass;
153
 
 
154
 
        bool    tt550_enable_xmtr;
155
 
        bool    tt550_enable_tloop;
156
 
 
157
 
        bool    tt550_use_line_in;
158
 
 
159
 
        int             tt550_xmt_bw;
160
 
        bool    tt550_use_xmt_bw;
161
 
 
162
 
        int             tt550_AM_level;
163
 
 
164
 
        int             tt550_encoder_step;
165
 
        int             tt550_encoder_sensitivity;
166
 
        int             tt550_keypad_timeout;
167
 
 
168
 
        int             tt550_F1_func;
169
 
        int             tt550_F2_func;
170
 
        int             tt550_F3_func;
171
 
 
172
 
//and others
173
 
        double  vfo_adj;
174
 
        int             bfo_freq;
175
 
        int             rit_freq;
176
 
        int             xit_freq;
177
 
        int             bpf_center;
178
 
        bool    use_bpf_center;
179
 
 
180
 
// =========================
181
 
 
182
 
        int             bg_red;
183
 
        int             bg_green;
184
 
        int             bg_blue;
185
 
 
186
 
        int             fg_red;
187
 
        int             fg_green;
188
 
        int             fg_blue;
189
 
 
190
 
        int             swrRed;
191
 
        int             swrGreen;
192
 
        int             swrBlue;
193
 
 
194
 
        int             pwrRed;
195
 
        int             pwrGreen;
196
 
        int             pwrBlue;
197
 
 
198
 
        int             smeterRed;
199
 
        int             smeterGreen;
200
 
        int             smeterBlue;
201
 
 
202
 
        int             peakRed;
203
 
        int             peakGreen;
204
 
        int             peakBlue;
205
 
 
206
 
        int             fg_sys_red;
207
 
        int             fg_sys_green;
208
 
        int             fg_sys_blue;
209
 
 
210
 
        int             bg_sys_red;
211
 
        int             bg_sys_green;
212
 
        int             bg_sys_blue;
213
 
 
214
 
        int             bg2_sys_red;
215
 
        int             bg2_sys_green;
216
 
        int             bg2_sys_blue;
217
 
 
218
 
        int             slider_red;
219
 
        int             slider_green;
220
 
        int             slider_blue;
221
 
 
222
 
        int             slider_btn_red;
223
 
        int             slider_btn_green;
224
 
        int             slider_btn_blue;
225
 
 
226
 
        int             lighted_btn_red;
227
 
        int             lighted_btn_green;
228
 
        int             lighted_btn_blue;
229
 
 
230
 
        Fl_Font fontnbr;
231
 
 
232
 
        bool    tooltips;
233
 
        
234
 
        string  ui_scheme;
235
 
 
236
 
        string server_port;
237
 
        string server_addr;
238
 
 
239
 
        bool    xcvr_auto_on;
240
 
        bool    xcvr_auto_off;
241
 
 
242
 
        void saveLastState();
243
 
        void loadLastState();
244
 
        bool loadXcvrState(const char *);
245
 
        void UI_laststate();
246
 
};
247
 
 
248
 
extern status progStatus;
249
 
 
250
 
#endif