-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathOption.h
More file actions
397 lines (353 loc) · 9.74 KB
/
Copy pathOption.h
File metadata and controls
397 lines (353 loc) · 9.74 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
//Copyright+LGPL
//-----------------------------------------------------------------------------------------------------------------------------------------------
// Copyright 2000-2013 Makoto Mori, Nobuyuki Oba
//-----------------------------------------------------------------------------------------------------------------------------------------------
// This file is part of MMTTY.
// MMTTY is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
// MMTTY 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 Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public License along with MMTTY. If not, see
// <http://www.gnu.org/licenses/>.
//-----------------------------------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------
#ifndef OptionH
#define OptionH
//----------------------------------------------------------------------------
//JA7UDE 0427
#include <System.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <Graphics.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <Dialogs.hpp>
#include "MMLink.h"
#include "Rtty.h"
//----------------------------------------------------------------------------
class TOptionDlg : public TForm
{
__published:
TButton *OKBtn;
TButton *CancelBtn;
TPageControl *Page;
TTabSheet *TabDem;
TTabSheet *TabPara;
TRadioGroup *BitLen;
TRadioGroup *StopLen;
TRadioGroup *ParitySel;
TComboBox *BaudRate;
TLabel *LBaudRate;
TGroupBox *GrpDisc;
TLabel *L6;
TLabel *L7;
TLabel *LTAPFW;
TComboBox *MarkFreq;
TComboBox *ShiftFreq;
TComboBox *FilterTap;
TLabel *Label9;
TLabel *Label10;
TGroupBox *GrpLPF;
TLabel *LLPF;
TComboBox *SmoozFreq;
TLabel *Label12;
TButton *HamBtn;
TCheckBox *CheckInv;
TTabSheet *TabTx;
TGroupBox *GPTT;
TComboBox *PortName;
TLabel *L13;
TCheckBox *PttInv;
TGroupBox *GB5;
TLabel *L14;
TEdit *EditCall;
TGroupBox *GB6;
TCheckBox *CheckTXUOS;
TTabSheet *TabFont;
TEdit *FontName;
TLabel *LFont;
TGroupBox *GrpDispAdj;
TLabel *LW;
TEdit *FontAdjX;
TEdit *FontAdjY;
TLabel *LH;
TFontDialog *FontDialog;
TButton *FontBtn;
TCheckBox *CheckZero;
TCheckBox *CheckDblSft;
TGroupBox *GB9;
TGroupBox *GB10;
TCheckBox *CheckTXBPF;
TLabel *L25;
TComboBox *TxBpfTap;
TTrackBar *TBOutLvl;
TLabel *LOutLvl;
TSpeedButton *SBM1;
TSpeedButton *SBM2;
TSpeedButton *SBM3;
TSpeedButton *SBM4;
TSpeedButton *SBM8;
TSpeedButton *SBM7;
TSpeedButton *SBM6;
TSpeedButton *SBM5;
TSpeedButton *SBM9;
TSpeedButton *SBM10;
TSpeedButton *SBM11;
TSpeedButton *SBM12;
TSpeedButton *SBM13;
TSpeedButton *SBM14;
TSpeedButton *SBM15;
TSpeedButton *SBM16;
TGroupBox *GrpInBtn;
TSpeedButton *SBIN1;
TSpeedButton *SBIN2;
TSpeedButton *SBIN3;
TSpeedButton *SBIN4;
TTabSheet *TabMisc;
TCheckBox *CheckTXLPF;
TComboBox *TxLpfFreq;
TLabel *Label28;
TLabel *L29;
TGroupBox *GrpFilter;
TButton *DemBpfBtn;
TButton *PreBpfBtn;
TSpeedButton *DispTxBpf;
TCheckBox *CheckMajority;
TCheckBox *CheckIgnoreFream;
TGroupBox *GrpRx;
TLabel *LRXB;
TLabel *LRXC;
TPanel *PCRXBack;
TPanel *PCRXChar;
TColorDialog *ColorDialog;
TGroupBox *GrpIn;
TLabel *LINB;
TLabel *LINC;
TPanel *PCINBack;
TPanel *PCINChar;
TLabel *LINS;
TPanel *PCINTx;
TCheckBox *CheckPalette;
TPanel *PCLow;
TPanel *PCHigh;
TLabel *Label37;
TLabel *Label38;
TRadioGroup *TxPort;
TPageControl *PageBPF;
TTabSheet *TabBPF;
TTabSheet *TabLMS;
TLabel *LDelay;
TComboBox *lmsDelay;
TLabel *LMU2;
TLabel *LGM;
TComboBox *lmsMU2;
TComboBox *lmsGM;
TCheckBox *lmsAGC;
TCheckBox *CheckRXBPFAFC;
TLabel *LFW;
TComboBox *RxBpfFW;
TCheckBox *SelLMS;
TCheckBox *SelBPF;
TLabel *L31;
TComboBox *lmsTap;
TLabel *L30;
TComboBox *RxBpfTap;
TLabel *LCharW;
TTrackBar *TBCharWait;
TLabel *Label40;
TTrackBar *TBDiddleWait;
TCheckBox *lmsBPF;
TComboBox *IIRFW;
TLabel *LHZ;
TTabSheet *TabDem2;
TGroupBox *GB7;
TLabel *Label16;
TLabel *L17;
TLabel *L18;
TCheckBox *CheckAFC;
TGroupBox *GrpLimit;
TLabel *L8;
TComboBox *LimitGain;
TComboBox *AFCTime;
TComboBox *AFCSQ;
TComboBox *AFCSweep;
TRadioGroup *DemType;
TCheckBox *lmsInv;
TGroupBox *GB1;
TLabel *Label1;
TGroupBox *GroupBox17;
TLabel *LLoopOrder;
TComboBox *pllVCOGain;
TComboBox *pllLoopOrder;
TLabel *L3;
TComboBox *pllLoopFC;
TLabel *Label4;
TGroupBox *GroupBox18;
TLabel *LOutOrder;
TLabel *L44;
TLabel *Label45;
TComboBox *pllOutOrder;
TComboBox *pllOutFC;
TRadioGroup *DefStopBit;
TGroupBox *GSFont;
TEdit *WinFont;
TButton *WinFontBtn;
TLabel *L46;
TLabel *L47;
TEdit *BtnFont;
TButton *BtnFontBtn;
TButton *JapaneseBtn;
TButton *EnglishBtn;
TComboBox *FontAdj;
TComboBox *BtnFontAdj;
TGroupBox *GB2;
TPanel *PCXY;
TCheckBox *XYInv;
TCheckBox *WaitDiddle;
TRadioGroup *FixShift;
TRadioGroup *DemLpf;
TLabel *LSmooz;
TComboBox *DemLpfOrder;
TSpeedButton *DispDemLpf;
TComboBox *SmoozIIR;
TSpeedButton *DispLoopLPF;
TSpeedButton *DispOutLPF;
TCheckBox *LimitOver;
TGroupBox *GrpCard;
TLabel *Label27;
TComboBox *FifoRX;
TRadioGroup *SoundPriority;
TGroupBox *GB3;
TSpeedButton *SBClockAdj;
TLabel *Label5;
TGroupBox *GB8;
TRadioGroup *DiddleSel;
TCheckBox *RandomDiddle;
TCheckBox *WaitTimer;
TCheckBox *MacroImm;
TCheckBox *TxDisRev;
TButton *DefBtn;
TGroupBox *GrpATC;
TCheckBox *ATC;
TComboBox *ATCTime;
TLabel *L2;
TCheckBox *MemWin;
TButton *RadioBtn;
TComboBox *EditSamp;
TCheckBox *lmsType;
TCheckBox *lmsTwo;
TLabel *LRXS;
TPanel *PCRXTXChar;
TButton *TxdJob;
TRadioGroup *Source;
TCheckBox *TxFixShift;
TSpeedButton *SBHelp;
TCheckBox *LimitAGC;
TComboBox *FifoTX;
TLabel *L15;
TRadioGroup *RGLoop;
TLabel *L16;
TEdit *TxOff;
TLabel *L1;
TGroupBox *GB4;
TRadioGroup *RGC;
TGroupBox *GroupBox1;
TComboBox *DevNo;
TComboBox *DevOutNo;
TLabel *Label2;
TLabel *Label3;
TTabSheet *TabSound;
TRadioGroup *InputSoundcards;
TRadioGroup *OutputSoundcards;
TComboBox *Tones;
TGroupBox *GB20;
TEdit *DefMarkFreq;
TEdit *DefShift;
TCheckBox *CBFix45;
TCheckBox *CBAA6YQ;
TSpeedButton *SBAA6YQ;
TCheckBox *HideFlexAudio;
void __fastcall HamBtnClick(TObject *Sender);
void __fastcall FontBtnClick(TObject *Sender);
void __fastcall SBMClick(TObject *Sender);
void __fastcall SBIN1Click(TObject *Sender);
void __fastcall SBIN2Click(TObject *Sender);
void __fastcall SBIN3Click(TObject *Sender);
void __fastcall SBIN4Click(TObject *Sender);
void __fastcall DemBpfBtnClick(TObject *Sender);
void __fastcall PreBpfBtnClick(TObject *Sender);
void __fastcall DispTxBpfClick(TObject *Sender);
void __fastcall PCRXBackClick(TObject *Sender);
void __fastcall PCRXCharClick(TObject *Sender);
void __fastcall PCINBackClick(TObject *Sender);
void __fastcall PCINCharClick(TObject *Sender);
void __fastcall PCINTxClick(TObject *Sender);
void __fastcall PCLowClick(TObject *Sender);
void __fastcall PCHighClick(TObject *Sender);
void __fastcall PortNameChange(TObject *Sender);
void __fastcall PCXYClick(TObject *Sender);
void __fastcall WinFontBtnClick(TObject *Sender);
void __fastcall BtnFontBtnClick(TObject *Sender);
void __fastcall JapaneseBtnClick(TObject *Sender);
void __fastcall EnglishBtnClick(TObject *Sender);
void __fastcall DispDemLpfClick(TObject *Sender);
void __fastcall DispLoopLPFClick(TObject *Sender);
void __fastcall DispOutLPFClick(TObject *Sender);
void __fastcall SBClockAdjClick(TObject *Sender);
void __fastcall DefBtnClick(TObject *Sender);
void __fastcall RadioBtnClick(TObject *Sender);
void __fastcall BaudRateChange(TObject *Sender);
void __fastcall BitLenClick(TObject *Sender);
void __fastcall PCRXTXCharClick(TObject *Sender);
void __fastcall TxdJobClick(TObject *Sender);
void __fastcall lmsTapChange(TObject *Sender);
void __fastcall SBHelpClick(TObject *Sender);
void __fastcall PortNameDropDown(TObject *Sender);
void __fastcall DevNoDropDown(TObject *Sender);
void __fastcall DemBpfBtnMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall DevOutNoDropDown(TObject *Sender);
void __fastcall InputSoundcardsClick(TObject *Sender);
void __fastcall OutputSoundcardsClick(TObject *Sender);
void __fastcall DevNoClick(TObject *Sender);
void __fastcall DevOutNoClick(TObject *Sender);
void __fastcall SBAA6YQClick(TObject *Sender);
void __fastcall HideFlexAudioClick(TObject *Sender);
private:
int m_FontCharset;
int m_FontStyle;
int m_FontSize;
int m_DisEvent;
CFSKDEM *pDem;
TSpeedButton *__fastcall GetSB(int n);
int __fastcall GetMacroIndex(TObject *Sender);
void __fastcall UpdateUI(void);
void __fastcall UpdateMacro(void);
void __fastcall SBINClick(int n);
void __fastcall SetCustomColor(void);
void __fastcall AddCustomColor(TColor col);
int __fastcall IsSoundcard(LPCSTR t);
BYTE m_WinFontCharset;
BYTE m_BtnFontCharset;
int m_WinFontStyle;
int m_BtnFontStyle;
int m_TxdJob;
double m_lmsTap;
double m_NotchTap;
CMMList m_MMList;
CMMList m_MMListW;
public:
virtual __fastcall TOptionDlg(TComponent* AOwner);
int __fastcall Execute(CFSKDEM *fp, CFSKMOD *mp);
int m_ColorChange;
};
//----------------------------------------------------------------------------
//extern TAgcSetDlg *AgcSetDlg;
extern int PageIndex;
//----------------------------------------------------------------------------
#endif