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
39class S57QueryDialog : public wxFrame {
40 DECLARE_CLASS(S57QueryDialog)
41 DECLARE_EVENT_TABLE()
42public:
44
46 S57QueryDialog(wxWindow* parent, wxWindowID id = wxID_ANY,
47 const wxString& caption = _("Object Query"),
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
50 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
51
53 void Init();
54
55 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
56 const wxString& caption = _("Object Query"),
57 const wxPoint& pos = wxDefaultPosition,
58 const wxSize& size = wxDefaultSize,
59 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
60
61 void SetColorScheme(void);
62
63 void CreateControls();
64 void OnSize(wxSizeEvent& event);
65 void RecalculateSize(void);
66
67 void OnClose(wxCloseEvent& event);
68 void OnHtmlLinkClicked(wxHtmlLinkEvent& event);
69
70 void OnOKClick(wxCommandEvent& event) { Close(); }
71 void OnKey(wxKeyEvent& ke);
72
73 // Overrides
74 void OnPaint(wxPaintEvent& event);
75
76 void SetHTMLPage(wxString& page);
77
78 // Data
79 wxHtmlWindow* m_phtml;
80 wxSize m_createsize;
81
82 wxButton* m_btnOK;
83};
84
91 DECLARE_CLASS(S57ExtraQueryInfoDlg)
92 DECLARE_EVENT_TABLE()
93public:
95
97 S57ExtraQueryInfoDlg(wxWindow* parent, wxWindowID id = wxID_ANY,
98 const wxString& caption = _("Extra Object Info"),
99 const wxPoint& pos = wxDefaultPosition,
100 const wxSize& size = wxDefaultSize,
101 long style = wxCAPTION | wxRESIZE_BORDER |
102 wxSYSTEM_MENU);
103 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
104 const wxString& caption = _("Extra Object Info"),
105 const wxPoint& pos = wxDefaultPosition,
106 const wxSize& size = wxDefaultSize,
107 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU);
108
110 void OnClose(wxCloseEvent& event);
111 void OnSize(wxSizeEvent& event);
112 void RecalculateSize(void);
113
114private:
115 wxButton* m_btnOK;
116};
117
118#endif
Dialog for displaying extra query information for S57 objects.
S57ExtraQueryInfoDlg()
Constructors.
Dialog for displaying query results of S57 objects.
S57QueryDialog()
Constructors.