33 #include "wiz_ui_proto.h"
34 #include "model/conn_params.h"
43 DataProtocol protocol;
47 enum class NMEA0183Flavor { CRC, NO_CRC, INVALID };
49 const std::vector<uint32_t> Speeds = {4800, 9600, 19200, 38400,
50 57600, 115200, 230400, 460800};
57 const std::vector<uint16_t> UDPPorts = {10110, 2000, 1458};
58 const std::vector<uint16_t> TCPPorts = {10110, 2000, 1456, 1457, 39150};
60 const std::vector<USBDevice> known_usb_devices = {
61 {
"Actisense NGT-1", 0x0403, 0xd9aa, DataProtocol::PROTO_NMEA2000, 115200},
62 {
"ShipModul MiniPlex", 0x0403, 0xfd4b, DataProtocol::PROTO_NMEA0183,
68 wxWindowID
id = wxID_ANY,
69 const wxString& title = _(
"OpenCPN Initial Configuration"),
70 const wxBitmap& bitmap = wxNullBitmap,
71 const wxPoint& pos = wxDefaultPosition,
72 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER |
76 void OnWizardPageChanging(wxWizardEvent& event) {
event.Skip(); }
77 void OnWizardPageChanged(wxWizardEvent& event) {
event.Skip(); }
78 void OnWizardPageShown(wxWizardEvent& event);
79 void OnWizardCancel(wxWizardEvent& event) {
event.Skip(); }
80 void OnWizardHelp(wxWizardEvent& event) {
event.Skip(); }
81 void OnWizardFinished(wxWizardEvent& event);
82 void m_btnRescanSourcesOnButtonClick(wxCommandEvent& event) {
83 EnumerateDatasources();
85 void m_btnAddChartDirOnButtonClick(wxCommandEvent& event);
88 FitToPage(m_pages[m_pages.Count() - 1]);
89 return RunWizard(m_pages[0]);
92 void EnumerateDatasources();
97 void EnumerateSignalK();
102 std::vector<ConnectionParams> m_detected_connections;
103 NMEA0183Flavor SeemsN0183(std::string& data);
104 bool SeemsN2000(std::string& data);
106 inline void SetControlEnable(
int id,
bool state)
108 wxWindow *win = wxWindow::FindWindowById(
id);
109 if(win) win->Enable(state);