KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_about.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2010 Rafael Sokolowski <[email protected]>
5 * Copyright (C) 2010-2019 KiCad Developers, see AUTHORS.TXT for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#ifndef DIALOG_ABOUT_H
26#define DIALOG_ABOUT_H
27
28#include <wx/html/htmlwin.h>
29#include <wx/statbmp.h>
30#include <wx/stattext.h>
31#include <wx/hyperlink.h>
32
33#include "aboutinfo.h"
34#include "dialog_about_base.h"
35
36// Used for the notebook image list
37enum class IMAGES {
39 VERSION,
43 ARTISTS,
47};
48
54{
55public:
56 DIALOG_ABOUT( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aAppInfo );
58
59protected:
60 void OnNotebookPageChanged( wxNotebookEvent& aEvent ) override;
61
62private:
63 void onHtmlLinkClicked( wxHtmlLinkEvent& event );
64
65 void onCopyVersionInfo( wxCommandEvent& event ) override;
66
67 void onReportBug( wxCommandEvent& event ) override;
68
69 void onDonateClick( wxCommandEvent& event ) override;
70
71 // Notebook pages
72 void createNotebooks();
73 void createNotebookPageByCategory( wxNotebook* aParent, const wxString& aCaption,
74 IMAGES aIconIndex, const CONTRIBUTORS& aContributors );
75 void createNotebookHtmlPage( wxNotebook* aParent, const wxString& aCaption,
76 IMAGES aIconIndex, const wxString& aHtmlMessage,
77 bool aSelection = false );
78
79 wxStaticText* wxStaticTextRef( wxScrolledWindow* aParent, const wxString& aReference );
80 wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
81
82private:
83 wxImageList* m_images;
84 wxString m_titleName;
86
88};
89
90#endif // DIALOG_ABOUT_H
An object of this class is meant to be used to store application specific information like who has co...
Definition: aboutinfo.h:45
Class DIALOG_ABOUT_BASE.
About dialog to show application specific information.
Definition: dialog_about.h:54
void OnNotebookPageChanged(wxNotebookEvent &aEvent) override
wxString m_titleName
Definition: dialog_about.h:84
wxImageList * m_images
Definition: dialog_about.h:83
wxString m_untranslatedTitleName
Definition: dialog_about.h:85
void createNotebooks()
ABOUT_APP_INFO & m_info
Definition: dialog_about.h:87
void createNotebookPageByCategory(wxNotebook *aParent, const wxString &aCaption, IMAGES aIconIndex, const CONTRIBUTORS &aContributors)
wxStaticBitmap * createStaticBitmap(wxScrolledWindow *aParent, wxBitmap *icon)
void onCopyVersionInfo(wxCommandEvent &event) override
void onHtmlLinkClicked(wxHtmlLinkEvent &event)
void onReportBug(wxCommandEvent &event) override
wxStaticText * wxStaticTextRef(wxScrolledWindow *aParent, const wxString &aReference)
void onDonateClick(wxCommandEvent &event) override
void createNotebookHtmlPage(wxNotebook *aParent, const wxString &aCaption, IMAGES aIconIndex, const wxString &aHtmlMessage, bool aSelection=false)
The base frame for deriving all KiCad main window classes.
IMAGES
Definition: dialog_about.h:37
@ TRANSLATORS
@ DOCWRITERS
@ LIBRARIANS
@ DEVELOPERS
@ INFORMATION