37class OCPN_AlertDialog :
public wxDialog {
38 DECLARE_CLASS(OCPN_AlertDialog)
43 virtual ~OCPN_AlertDialog();
46 virtual bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
47 const wxString& caption = _(
"OpenCPN Alert"),
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
50 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
61class AISTargetAlertDialog :
public OCPN_AlertDialog {
62 DECLARE_CLASS(AISTargetAlertDialog)
65 AISTargetAlertDialog();
67 ~AISTargetAlertDialog();
68 using OCPN_AlertDialog::Create;
69 bool Create(
int target_mmsi, wxWindow* parent,
AisDecoder* pdecoder,
70 bool b_jumpto,
bool b_createWP,
bool b_ack,
71 wxWindowID
id = wxID_ANY,
72 const wxString& caption = _(
"OpenCPN AIS Alert"),
73 const wxPoint& pos = wxDefaultPosition,
74 const wxSize& size = wxDefaultSize,
75 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
78 int Get_Dialog_MMSI(
void) {
return m_target_mmsi; }
80 void RecalculateSize(
void);
82 wxDateTime dtAlertExpireTime;
85 void CreateControls();
86 bool GetAlertText(
void);
87 void SetColorScheme(
void);
88 void OnClose(wxCloseEvent& event);
89 void OnIdAckClick(wxCommandEvent& event);
90 void OnMove(wxMoveEvent& event);
91 void OnSize(wxSizeEvent& event);
92 void OnIdSilenceClick(wxCommandEvent& event);
93 void OnIdJumptoClick(wxCommandEvent& event);
94 void OnIdCreateWPClick(wxCommandEvent& event);
97 wxHtmlWindow* m_pAlertTextCtl;
101 wxString m_alert_text;