KiCad PCB EDA Suite
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{
55private:
56 wxImageList* m_images;
57 wxString m_titleName;
58
60
61public:
62 DIALOG_ABOUT( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aAppInfo );
64
65protected:
66 void OnNotebookPageChanged( wxNotebookEvent& aEvent ) override;
67
68private:
69 void onHtmlLinkClicked( wxHtmlLinkEvent& event );
70
71 void onCopyVersionInfo( wxCommandEvent& event ) override;
72
73 void onReportBug( wxCommandEvent& event ) override;
74
75 void onDonateClick( wxCommandEvent& event ) override;
76
77 // Notebook pages
78 wxFlexGridSizer* createFlexGridSizer();
79 void createNotebooks();
80 void createNotebookPage( wxNotebook* aParent,
81 const wxString& aCaption,
82 IMAGES aIconIndex,
83 const CONTRIBUTORS& aContributors );
84 void createNotebookPageByCategory( wxNotebook* aParent,
85 const wxString& aCaption,
86 IMAGES aIconIndex,
87 const CONTRIBUTORS& aContributors );
88 void createNotebookHtmlPage( wxNotebook* aParent,
89 const wxString& aCaption,
90 IMAGES aIconIndex,
91 const wxString& aHtmlMessage,
92 bool aSelection = false );
93
94 wxStaticText* wxStaticTextRef( wxScrolledWindow* aParent, const wxString& aReference );
95 wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
96};
97
98#endif // DIALOG_ABOUT_H
#define LIBRARIANS
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:57
wxImageList * m_images
Definition: dialog_about.h:56
void createNotebookPage(wxNotebook *aParent, const wxString &aCaption, IMAGES aIconIndex, const CONTRIBUTORS &aContributors)
void createNotebooks()
ABOUT_APP_INFO & m_info
Definition: dialog_about.h:59
void createNotebookPageByCategory(wxNotebook *aParent, const wxString &aCaption, IMAGES aIconIndex, const CONTRIBUTORS &aContributors)
DIALOG_ABOUT(EDA_BASE_FRAME *aParent, ABOUT_APP_INFO &aAppInfo)
wxStaticBitmap * createStaticBitmap(wxScrolledWindow *aParent, wxBitmap *icon)
void onCopyVersionInfo(wxCommandEvent &event) override
void onHtmlLinkClicked(wxHtmlLinkEvent &event)
wxFlexGridSizer * createFlexGridSizer()
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
@ DEVELOPERS
@ INFORMATION