OpenCPN Partial API docs
Loading...
Searching...
No Matches
S57QueryDialog.h
1/******************************************************************************
2 *
3 * Project: OpenCPN
4 *
5 ***************************************************************************
6 * Copyright (C) 2013 by David S. Register *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the *
20 * Free Software Foundation, Inc., *
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
22 ***************************************************************************
23 */
24
25#ifndef __S57QUERYDIALOG_H__
26#define __S57QUERYDIALOG_H__
27
28#include <wx/button.h>
29#include <wx/frame.h>
30#include <wx/html/htmlwin.h>
31
32class wxHtmlWindow;
33
34class S57QueryDialog : public wxFrame {
35 DECLARE_CLASS(S57QueryDialog)
36 DECLARE_EVENT_TABLE()
37public:
39
41 S57QueryDialog(wxWindow* parent, wxWindowID id = wxID_ANY,
42 const wxString& caption = _("Object Query"),
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
46
48 void Init();
49
50 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
51 const wxString& caption = _("Object Query"),
52 const wxPoint& pos = wxDefaultPosition,
53 const wxSize& size = wxDefaultSize,
54 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
55
56 void SetColorScheme(void);
57
58 void CreateControls();
59 void OnSize(wxSizeEvent& event);
60 void RecalculateSize(void);
61
62 void OnClose(wxCloseEvent& event);
63 void OnHtmlLinkClicked(wxHtmlLinkEvent& event);
64
65 void OnOKClick(wxCommandEvent& event) { Close(); }
66 void OnKey(wxKeyEvent& ke);
67
68 // Overrides
69 void OnPaint(wxPaintEvent& event);
70
71 void SetHTMLPage(wxString& page);
72
73 // Data
74 wxHtmlWindow* m_phtml;
75 wxSize m_createsize;
76
77 wxButton* m_btnOK;
78};
79
81 DECLARE_CLASS(S57ExtraQueryInfoDlg)
82 DECLARE_EVENT_TABLE()
83public:
85
87 S57ExtraQueryInfoDlg(wxWindow* parent, wxWindowID id = wxID_ANY,
88 const wxString& caption = _("Extra Object Info"),
89 const wxPoint& pos = wxDefaultPosition,
90 const wxSize& size = wxDefaultSize,
91 long style = wxCAPTION | wxRESIZE_BORDER |
92 wxSYSTEM_MENU);
93 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
94 const wxString& caption = _("Extra Object Info"),
95 const wxPoint& pos = wxDefaultPosition,
96 const wxSize& size = wxDefaultSize,
97 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
98
100 void OnClose(wxCloseEvent& event);
101 void OnSize(wxSizeEvent& event);
102 void RecalculateSize(void);
103
104private:
105 wxButton* m_btnOK;
106};
107
108#endif
S57ExtraQueryInfoDlg()
Constructors.
S57QueryDialog()
Constructors.