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