49 const wxString DEFAULT_TCP_PORT =
"10110";
50 const wxString DEFAULT_UDP_PORT =
"10110";
51 const wxString DEFAULT_GPSD_PORT =
"2947";
52 const wxString DEFAULT_SIGNALK_PORT =
"3000";
53 const wxString DEFAULT_IP_ADDRESS =
"localhost";
56 const wxString DEFAULT_UDP_OUT_ADDRESS =
"255.255.255.255";
64 void SetInitialSettings(
void);
67 void SetPropsLabel(wxString label);
74 void OnSelectDatasource(wxListEvent &event);
75 void OnAddDatasourceClick(wxCommandEvent &event);
76 void OnRemoveDatasourceClick(wxCommandEvent &event);
78 void OnTypeSerialSelected(wxCommandEvent &event);
79 void OnTypeNetSelected(wxCommandEvent &event);
80 void OnTypeGPSSelected(wxCommandEvent &event);
81 void OnTypeBTSelected(wxCommandEvent &event);
82 void OnTypeCANSelected(wxCommandEvent &event);
84 void OnNetProtocolSelected(wxCommandEvent &event);
85 void OnBaudrateChoice(wxCommandEvent &event) { OnConnValChange(event); }
86 void OnProtocolChoice(wxCommandEvent &event);
87 void OnCrcCheck(wxCommandEvent &event) { OnConnValChange(event); }
88 void OnRbAcceptInput(wxCommandEvent &event);
89 void OnRbIgnoreInput(wxCommandEvent &event);
90 void OnBtnIStcs(wxCommandEvent &event);
91 void OnCbInput(wxCommandEvent &event);
92 void OnCbOutput(wxCommandEvent &event);
93 void OnCbMultiCast(wxCommandEvent &event);
94 void OnCbAdvanced(wxCommandEvent &event);
95 void OnClickMore(wxMouseEvent &event);
96 void OnRbOutput(wxCommandEvent &event);
97 void OnBtnOStcs(wxCommandEvent &event);
98 void OnConnValChange(wxCommandEvent &event);
99 void OnValChange(wxCommandEvent &event);
100 void OnUploadFormatChange(wxCommandEvent &event);
101 void OnShowGpsWindowCheckboxClick(wxCommandEvent &event);
103 void OnDiscoverButton(wxCommandEvent &event);
104 void UpdateDiscoverStatus(wxString stat);
105 void OnPriorityDialog(wxCommandEvent &event);
108 void SetDefaultConnectionParams(
void);
109 void SetDSFormRWStates();
110 void SetDSFormOptionVizStates();
111 void FillSourceList();
112 void UpdateSourceList(
bool bResort);
113 bool SortSourceList(
void);
114 void SetUDPNetAddressVisiblity(
void);
115 bool IsAddressMultiCast(wxString ip);
116 bool IsAddressBroadcast(wxString ip);
117 bool IsDefaultPort(wxString address);
119 void ClearNMEAForm(
void);
120 void SetNMEAFormToSerial(
void);
121 void SetNMEAFormToNet(
void);
122 void SetNMEAFormToGPS(
void);
123 void SetNMEAFormToBT(
void);
124 void SetNMEAFormToCAN(
void);
125 void SetNMEAFormForSerialProtocol();
126 void SetNMEAFormForNetProtocol();
128 void ShowTypeCommon(
bool visible =
true);
129 void ShowNMEACommon(
bool visible);
130 void ShowNMEASerial(
bool visible);
131 void ShowNMEANet(
bool visible);
132 void ShowNMEAGPS(
bool visible);
133 void ShowNMEABT(
bool visible);
134 void ShowNMEACAN(
bool visible);
136 void OnScanBTClick(wxCommandEvent &event);
137 void onBTScanTimer(wxTimerEvent &event);
138 void StopBTScan(
void);
140 void OnWheelChoice(wxMouseEvent &event);
142 void ShowInFilter(
bool bshow =
true);
143 void ShowOutFilter(
bool bshow =
true);
146 void CreateControls();
147 void ConnectControls();
151 wxScrolledWindow *m_scrolledwin;
153 wxGridSizer *gSizerNetProps, *gSizerSerProps, *gSizerCanProps;
154 wxTextCtrl *m_tNetAddress, *m_tNetPort, *m_tFilterSec, *m_tcInputStc;
155 wxTextCtrl *m_tcOutputStc;
156 wxCheckBox *m_cbCheckCRC, *m_cbGarminHost, *m_cbGarminUploadHost,
157 *m_cbCheckSKDiscover;
158 wxCheckBox *m_cbFurunoGP3X, *m_cbNMEADebug, *m_cbFilterSogCog, *m_cbInput;
159 wxCheckBox *m_cbMultiCast, *m_cbAdvanced;
160 wxCheckBox *m_cbOutput, *m_cbAPBMagnetic;
161 wxComboBox *m_comboPort;
162 wxStdDialogButtonSizer *m_sdbSizerDlgButtons;
163 wxButton *m_ButtonSKDiscover, *m_ButtonPriorityDialog;
164 wxStaticText *m_StaticTextSKServerStatus;
166 wxButton *m_buttonAdd, *m_buttonRemove, *m_buttonScanBT, *m_btnInputStcList;
167 wxButton *m_btnOutputStcList, *m_sdbSizerDlgButtonsOK;
168 wxButton *m_sdbSizerDlgButtonsApply, *m_sdbSizerDlgButtonsCancel;
169 wxStaticBoxSizer *sbSizerConnectionProps, *sbSizerInFilter;
170 wxStaticBoxSizer *sbSizerOutFilter;
171 wxRadioButton *m_rbTypeSerial, *m_rbTypeNet, *m_rbTypeInternalGPS;
172 wxRadioButton *m_rbTypeInternalBT, *m_rbNetProtoTCP, *m_rbNetProtoUDP;
173 wxRadioButton *m_rbNetProtoGPSD, *m_rbIAccept, *m_rbIIgnore, *m_rbOAccept;
174 wxRadioButton *m_rbNetProtoSignalK;
175 wxRadioButton *m_rbOIgnore, *m_rbTypeCAN;
176 wxStaticText *m_stBTPairs, *m_stNetProto, *m_stNetAddr, *m_stNetPort;
177 wxStaticText *m_stSerPort, *m_stSerBaudrate, *m_stSerProtocol;
178 wxStaticText *m_stFilterSec, *m_stPrecision;
179 wxStaticText *m_stTalkerIdText;
180 wxStaticText *m_stNetComment, *m_stSerialComment, *m_stCANSource,
182 wxTextCtrl *m_tNetComment, *m_tSerialComment, *m_tAuthToken;
183 wxStaticBox *m_sbConnEdit;
184 wxChoice *m_choiceBTDataSources, *m_choiceBaudRate, *m_choiceSerialProtocol;
185 wxChoice *m_choicePriority, *m_choicePrecision, *m_choiceCANSource;
186 wxChoice *m_choiceNetDataProtocol;
188 wxBoxSizer *boxSizerConnections;
189 wxStaticText *m_stNetDataProtocol;
194 wxPanel *m_scrollWinConnections;
196 wxScrolledWindow *m_scrollWinConnections;
199 bool connectionsaved;
200 bool m_advanced =
false;
201 bool m_connection_enabled;
202 bool m_bNMEAParams_shown;
203 int m_btNoChangeCounter, m_btlastResultCount, m_BTscanning;
204 wxArrayString m_BTscan_results;
205 wxTimer m_BTScanTimer;
206 wxArrayString m_choice_CANSource_choices;
213 wxStaticText *m_more;