26 #include <wx/html/htmlwin.h>
27 #include <wx/msgdlg.h>
28 #include <wx/textctrl.h>
30 #include <wx/window.h>
40 wxFont* GetOCPNScaledFont(wxString item,
int default_size = 0);
41 wxFont GetOCPNGUIScaledFont(wxString item);
43 extern int OCPNMessageBox(wxWindow* parent,
const wxString& message,
44 const wxString& caption = _T(
"Message"),
45 int style = wxOK,
int timout_sec = -1,
int x = -1,
51 const wxString& caption = wxMessageBoxCaptionStr,
52 long style = wxOK | wxCENTRE,
53 const wxPoint& pos = wxDefaultPosition);
55 void OnYes(wxCommandEvent& event);
56 void OnNo(wxCommandEvent& event);
57 void OnCancel(wxCommandEvent& event);
58 void OnClose(wxCloseEvent& event);
68 const wxString& caption = _T(
"Message box"),
69 long style = wxOK | wxCANCEL,
int timeout_sec = -1,
70 const wxPoint& pos = wxDefaultPosition);
72 int GetRetVal(
void) {
return ret_val; }
73 void OnTimer(wxTimerEvent& evt);
85 const wxString& caption = wxMessageBoxCaptionStr,
86 int tSeconds = -1,
long style = wxOK | wxCENTRE,
87 bool bFixedFont =
false,
88 const wxPoint& pos = wxDefaultPosition);
90 void OnYes(wxCommandEvent& event);
91 void OnNo(wxCommandEvent& event);
92 void OnCancel(wxCommandEvent& event);
93 void OnClose(wxCloseEvent& event);
94 void OnTimer(wxTimerEvent& evt);
95 void RecalculateSize(
void);
96 void OnHtmlLinkClicked( wxHtmlLinkEvent& event ) { wxLaunchDefaultBrowser(event.GetLinkInfo().GetHref()); }
101 wxHtmlWindow* msgWindow;
103 DECLARE_EVENT_TABLE()
116 void OnPaint(wxPaintEvent &event);
118 void SetBitmap(wxBitmap &bmp);
119 wxBitmap *GetBitmap() {
return m_pbm; }
120 void OnTimer(wxTimerEvent &event);
121 bool IsActive() {
return isActive; }
122 void IsActive(
bool state) { isActive = state; }
126 wxTimer m_timer_timeout;
130 DECLARE_EVENT_TABLE()
140 void OnChar(wxKeyEvent &event);
141 void OnMouseEvent(wxMouseEvent &event);
143 wxTimer m_MouseWheelTimer;
144 int m_mouse_wheel_oneshot;
145 int m_last_wheel_dir;
147 DECLARE_EVENT_TABLE()
Non-editable TextCtrl, used like wxStaticText but is copyable.