25#ifndef __AISTARGETALERTDIALOG_H__
26#define __AISTARGETALERTDIALOG_H__
30#define ID_ACKNOWLEDGE 10001
31#define ID_SILENCE 10002
32#define ID_JUMPTO 10004
33#define ID_WPT_CREATE 10005
47 virtual bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
48 const wxString& caption = _(
"OpenCPN Alert"),
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
64 bool Create(
int target_mmsi, wxWindow* parent,
AisDecoder* pdecoder,
65 bool b_jumpto,
bool b_createWP,
bool b_ack,
66 wxWindowID
id = wxID_ANY,
67 const wxString& caption = _(
"OpenCPN AIS Alert"),
68 const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxDefaultSize,
70 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
73 int Get_Dialog_MMSI(
void) {
return m_target_mmsi; }
75 void RecalculateSize(
void);
77 wxDateTime dtAlertExpireTime;
80 void CreateControls();
81 bool GetAlertText(
void);
82 void SetColorScheme(
void);
83 void OnClose(wxCloseEvent& event);
84 void OnIdAckClick(wxCommandEvent& event);
85 void OnMove(wxMoveEvent& event);
86 void OnSize(wxSizeEvent& event);
87 void OnIdSilenceClick(wxCommandEvent& event);
88 void OnIdJumptoClick(wxCommandEvent& event);
89 void OnIdCreateWPClick(wxCommandEvent& event);
91 wxHtmlWindow* m_pAlertTextCtl;
95 wxString m_alert_text;