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 <Rafael.Sokolowski@web.de>
5  * Copyright (C) 2010-2017 KiCad Developers, see CHANGELOG.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 
41 {
42 private:
43 
44  // Icons for the various tabs of wxAuiNotebook
45  wxBitmap m_picInformation;
46  wxBitmap m_picDevelopers;
47  wxBitmap m_picDocWriters;
48  wxBitmap m_picArtists;
49  wxBitmap m_picTranslators;
50  wxBitmap m_picPackagers;
51  wxBitmap m_picLicense;
52 
54 
55 public:
56  DIALOG_ABOUT( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aAppInfo );
57  ~DIALOG_ABOUT();
58 
59 private:
60  void initDialog();
61 
67  void buildVersionInfoData( wxString& aMsg, bool aFormatHtml );
68 
69  void onHtmlLinkClicked( wxHtmlLinkEvent& event );
70 
71  virtual void onCopyVersionInfo( wxCommandEvent& event ) override;
72  virtual void onShowVersionInfo( wxCommandEvent& event ) override;
73 
74  // Notebook pages
75  wxFlexGridSizer* createFlexGridSizer();
76  void createNotebooks();
77  void createNotebookPage( wxAuiNotebook* aParent,
78  const wxString& aCaption,
79  const wxBitmap& aIcon,
80  const CONTRIBUTORS& aContributors );
81  void createNotebookPageByCategory( wxAuiNotebook* aParent,
82  const wxString& aCaption,
83  const wxBitmap& aIcon,
84  const CONTRIBUTORS& aContributors );
85  void createNotebookHtmlPage( wxAuiNotebook* aParent,
86  const wxString& aCaption,
87  const wxBitmap& aIcon,
88  const wxString& aHtmlMessage );
89 
90  wxStaticText* wxStaticTextMail( wxScrolledWindow* aParent, const wxString& email );
91  wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
92 };
93 
94 #endif // DIALOG_ABOUT_H
wxFlexGridSizer * createFlexGridSizer()
wxBitmap m_picDevelopers
Definition: dialog_about.h:46
ABOUT_APP_INFO m_info
Definition: dialog_about.h:53
DIALOG_ABOUT(EDA_BASE_FRAME *aParent, ABOUT_APP_INFO &aAppInfo)
void createNotebookPageByCategory(wxAuiNotebook *aParent, const wxString &aCaption, const wxBitmap &aIcon, const CONTRIBUTORS &aContributors)
wxBitmap m_picPackagers
Definition: dialog_about.h:50
void createNotebooks()
An object of this class is meant to be used to store application specific information like who has co...
Definition: aboutinfo.h:42
void buildVersionInfoData(wxString &aMsg, bool aFormatHtml)
build the version info message
wxStaticText * wxStaticTextMail(wxScrolledWindow *aParent, const wxString &email)
wxBitmap m_picDocWriters
Definition: dialog_about.h:47
wxBitmap m_picArtists
Definition: dialog_about.h:48
virtual void onCopyVersionInfo(wxCommandEvent &event) override
void onHtmlLinkClicked(wxHtmlLinkEvent &event)
wxBitmap m_picTranslators
Definition: dialog_about.h:49
void createNotebookHtmlPage(wxAuiNotebook *aParent, const wxString &aCaption, const wxBitmap &aIcon, const wxString &aHtmlMessage)
wxBitmap m_picInformation
Definition: dialog_about.h:45
wxBitmap m_picLicense
Definition: dialog_about.h:51
wxStaticBitmap * createStaticBitmap(wxScrolledWindow *aParent, wxBitmap *icon)
Class DIALOG_ABOUT_BASE.
Class EDA_BASE_FRAME is the base frame for deriving all KiCad main window classes.
Definition: wxstruct.h:117
virtual void onShowVersionInfo(wxCommandEvent &event) override
void initDialog()
About dialog to show application specific information.
Definition: dialog_about.h:40
void createNotebookPage(wxAuiNotebook *aParent, const wxString &aCaption, const wxBitmap &aIcon, const CONTRIBUTORS &aContributors)