OpenCPN Partial API docs
Loading...
Searching...
No Matches
about_frame.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2019 by David S. Register *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 **************************************************************************/
19
25#ifndef ABOUT__FRAME__H
26#define ABOUT__FRAME__H
27
28#include <wx/artprov.h>
29#include <wx/xrc/xmlres.h>
30#include <wx/intl.h>
31#include <wx/bitmap.h>
32#include <wx/image.h>
33#include <wx/icon.h>
34#include <wx/statbmp.h>
35#include <wx/gdicmn.h>
36#include <wx/font.h>
37#include <wx/colour.h>
38#include <wx/settings.h>
39#include <wx/string.h>
40#include <wx/button.h>
41#include <wx/sizer.h>
42#include <wx/stattext.h>
43#include <wx/hyperlink.h>
44#include <wx/scrolwin.h>
45#include <wx/html/htmlwin.h>
46#if wxUSE_WEBVIEW && defined(HAVE_WEBVIEW)
47#include <wx/webview.h>
48#endif
49#include <wx/panel.h>
50#include <wx/frame.h>
51
57class AboutFrame : public wxFrame {
58private:
59protected:
60 wxStaticBitmap* m_bitmapLogo;
61 wxButton* m_btnBack;
62 wxScrolledWindow* m_scrolledWindowAbout;
63 wxStaticText* m_staticTextOCPN;
64 wxStaticText* m_staticTextVersion;
65 wxStaticText* m_staticTextCopyYears;
66 wxHyperlinkCtrl* m_hyperlinkAuthors;
67 wxStaticText* m_staticTextDescription;
68 wxStaticText* m_staticTextHelp;
69 wxHyperlinkCtrl* m_hyperlinkDonate;
70 wxStaticText* m_staticTextOr;
71 wxHyperlinkCtrl* m_hyperlinkGetInvolved;
72 wxStaticText* m_staticTextLogfile;
73 wxHyperlinkCtrl* m_hyperlinkLogFile;
74 wxStaticText* m_staticTextIniFile;
75 wxHyperlinkCtrl* m_hyperlinkIniFile;
76 wxHtmlWindow* m_htmlWinAuthors;
77 wxHtmlWindow* m_htmlWinLicense;
78#if wxUSE_WEBVIEW && defined(HAVE_WEBVIEW)
79 wxWebView* m_htmlWinHelp;
80#else
81 wxHtmlWindow* m_htmlWinHelp;
82#endif
83 wxPanel* m_panelMainLinks;
84 wxHyperlinkCtrl* m_hyperlinkWebsite;
85 wxHyperlinkCtrl* m_hyperlinkHelp;
86 wxHyperlinkCtrl* m_hyperlinkLicense;
87
88 // Virtual event handlers, overide them in your derived class
89 virtual void AboutFrameOnActivate(wxActivateEvent& event) { event.Skip(); }
90 virtual void AboutFrameOnClose(wxCloseEvent& event) { event.Skip(); }
91 virtual void m_btnBackOnButtonClick(wxCommandEvent& event) { event.Skip(); }
92 virtual void OnLinkAuthors(wxHyperlinkEvent& event) { event.Skip(); }
93 virtual void OnLinkDonate(wxHyperlinkEvent& event) { event.Skip(); }
94 virtual void OnLinkGetInvolved(wxHyperlinkEvent& event) { event.Skip(); }
95 virtual void OnLinkLogfile(wxHyperlinkEvent& event) { event.Skip(); }
96 virtual void OnLinkConfigfile(wxHyperlinkEvent& event) { event.Skip(); }
97 virtual void m_htmlWinHelpOnHtmlLinkClicked(wxHtmlLinkEvent& event) {
98 event.Skip();
99 }
100 virtual void OnLinkHelp(wxHyperlinkEvent& event) { event.Skip(); }
101 virtual void OnLinkLicense(wxHyperlinkEvent& event) { event.Skip(); }
102
103public:
104 AboutFrame(wxWindow* parent, wxWindowID id = wxID_ANY,
105 const wxString& title = _("About OpenCPN"),
106 const wxPoint& pos = wxDefaultPosition,
107 const wxSize& size = wxSize(500, 300),
108 long style = wxCAPTION | wxCLOSE_BOX | wxFRAME_FLOAT_ON_PARENT |
109 wxFRAME_NO_TASKBAR | wxRESIZE_BORDER |
110 wxTAB_TRAVERSAL);
111
112 ~AboutFrame();
113};
114
115#endif // ABOUT__FRAME__H
About dialog main frame, various controls to display information about OpenCPN.
Definition about_frame.h:57