34static const char*
const kMessage =
35 _(R
"---(Communication overflow detected, the system is not able to process
36all input. This is not fatal, system will continue to work but
37will have to discard some input data.
39It is possible to control the data discarded using filtering,
42Please review the logfile for more info on discarded messages.
45static const char*
const kCaption = _(
"Communication overflow");
47CommOverflowDlg::CommOverflowDlg(wxWindow* parent) : m_parent(parent) {
48 assert(parent &&
"Null parent window");
50 ShowDialog(evt.GetString().ToStdString());
52 m_listener.Init(CommDriverRegistry::GetInstance().evt_comm_overrun, action);
55void CommOverflowDlg::ShowDialog(
const std::string& msg) {
56 OCPNMessageBox(m_parent, kMessage, kCaption, wxICON_INFORMATION);
Adds a std::shared<void> element to wxCommandEvent.
Driver registration container, a singleton.
Popup dialog on communication overflows.
General purpose GUI support.