-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRadioSet.h
More file actions
128 lines (116 loc) · 3.85 KB
/
RadioSet.h
File metadata and controls
128 lines (116 loc) · 3.85 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
//Copyright+LGPL
//-----------------------------------------------------------------------------------------------------------------------------------------------
// Copyright 2000-2013 Makoto Mori, Nobuyuki Oba
//-----------------------------------------------------------------------------------------------------------------------------------------------
// This file is part of MMVARI.
// MMVARI 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.
// MMVARI 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 RadioSetH
#define RadioSetH
//----------------------------------------------------------------------------
/* JA7UDE 0428
#include <vcl\System.hpp>
#include <vcl\Windows.hpp>
#include <vcl\SysUtils.hpp>
#include <vcl\Classes.hpp>
#include <vcl\Graphics.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\Controls.hpp>
#include <vcl\Buttons.hpp>
#include <vcl\ExtCtrls.hpp>
*/
//----------------------------------------------------------------------------
#include "Cradio.h"
#include <Classes.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <StdCtrls.hpp>
/* JA7UDE 0428
#include <vcl\Dialogs.hpp>
#include <vcl\ComCtrls.hpp>
*/
//----------------------------------------------------------------------------
class TRADIOSetDlg : public TForm
{
__published:
TButton *OKBtn;
TButton *CancelBtn;
TGroupBox *GB1;
TComboBox *PortName;
TLabel *Label1;
TLabel *Label2;
TComboBox *Baud;
TRadioGroup *BitLen;
TRadioGroup *Stop;
TRadioGroup *Parity;
TGroupBox *GB3;
TCheckBox *flwXON;
TCheckBox *flwCTS;
TLabel *Label3;
TComboBox *ByteWait;
TLabel *Label8;
TButton *LoadBtn;
TButton *SaveBtn;
TGroupBox *GGNR;
TLabel *LGNR;
TEdit *CmdGNR;
TButton *RefBtn;
TCheckBox *OpenGNR;
TLabel *LPTT;
TGroupBox *GCmd;
TLabel *Label4;
TLabel *Label5;
TLabel *Label6;
TLabel *Lxx;
TLabel *LVFO;
TEdit *CmdInit;
TEdit *CmdRx;
TEdit *CmdTx;
TEdit *Cmdxx;
TComboBox *VFOType;
TComboBox *PollInt;
TLabel *LInt;
TLabel *LInts;
TCheckBox *AddrScan;
TGroupBox *GB2;
TCheckBox *CBPTT;
TRadioGroup *RGFS;
TComboBox *Maker;
TLabel *L1;
TLabel *LH;
void __fastcall LoadBtnClick(TObject *Sender);
void __fastcall SaveBtnClick(TObject *Sender);
void __fastcall MakerChange(TObject *Sender);
void __fastcall PortNameChange(TObject *Sender);
void __fastcall RefBtnClick(TObject *Sender);
void __fastcall VFOTypeChange(TObject *Sender);
private:
int m_DisEvent;
TNotifyEvent m_fnHintProc;
int __fastcall IsXX(void);
int __fastcall IsSame(LPCSTR v, LPCSTR t);
int __fastcall IsCompatible(int PollType, int MakerIndex); //AA6YQ 1.6.6
void __fastcall SetMaker(void);
void __fastcall UpdateUI(void);
void __fastcall SetVFOList(void);
int __fastcall GetVFOType(LPCSTR pKey);
LPCSTR __fastcall GetVFOName(int r);
int m_Maker;
int m_PollType;
int m_InitWidth;
CMMList m_MMList;
public:
virtual __fastcall TRADIOSetDlg(TComponent* AOwner);
int __fastcall Execute(void);
void __fastcall DisplayHint(TObject *Sender);
};
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
#endif