30#include <wx/html/htmlwin.h>
32#include <wx/textctrl.h>
36wxFont* GetOCPNScaledFont(wxString item,
int default_size = 0);
37wxFont GetOCPNGUIScaledFont(wxString item);
39extern int OCPNMessageBox(wxWindow* parent,
const wxString& message,
40 const wxString& caption = _T(
"Message"),
41 int style = wxOK,
int timout_sec = -1,
int x = -1,
47 const wxString& caption = wxMessageBoxCaptionStr,
48 long style = wxOK | wxCENTRE,
49 const wxPoint& pos = wxDefaultPosition);
51 void OnYes(wxCommandEvent& event);
52 void OnNo(wxCommandEvent& event);
53 void OnCancel(wxCommandEvent& event);
54 void OnClose(wxCloseEvent& event);
64 const wxString& caption = _T(
"Message box"),
65 long style = wxOK | wxCANCEL,
int timeout_sec = -1,
66 const wxPoint& pos = wxDefaultPosition);
68 int GetRetVal(
void) {
return ret_val; }
69 void OnTimer(wxTimerEvent& evt);
81 const wxString& caption = wxMessageBoxCaptionStr,
82 int tSeconds = -1,
long style = wxOK | wxCENTRE,
83 bool bFixedFont =
false,
84 const wxPoint& pos = wxDefaultPosition);
86 void OnYes(wxCommandEvent& event);
87 void OnNo(wxCommandEvent& event);
88 void OnCancel(wxCommandEvent& event);
89 void OnClose(wxCloseEvent& event);
90 void OnTimer(wxTimerEvent& evt);
91 void RecalculateSize(
void);
96 wxHtmlWindow* msgWindow;
111 void OnPaint(wxPaintEvent &event);
113 void SetBitmap(wxBitmap &bmp);
114 wxBitmap *GetBitmap() {
return m_pbm; }
115 void OnTimer(wxTimerEvent &event);
116 bool IsActive() {
return isActive; }
117 void IsActive(
bool state) { isActive = state; }
121 wxTimer m_timer_timeout;
125 DECLARE_EVENT_TABLE()
135 void OnChar(wxKeyEvent &event);
136 void OnMouseEvent(wxMouseEvent &event);
138 wxTimer m_MouseWheelTimer;
139 int m_mouse_wheel_oneshot;
140 int m_last_wheel_dir;
142 DECLARE_EVENT_TABLE()