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-2015 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 picInformation;
46  wxBitmap picDevelopers;
47  wxBitmap picDocWriters;
48  wxBitmap picArtists;
49  wxBitmap picTranslators;
50  wxBitmap picPackagers;
51  wxBitmap picLicense;
52 
54 
55 public:
56  dialog_about( wxWindow* dlg, AboutAppInfo& appInfo );
57  ~dialog_about();
58 
59 private:
60  void initDialog();
61  virtual void OnClose( wxCloseEvent& event );
62  virtual void OnOkClick( wxCommandEvent& event );
63  virtual void OnHtmlLinkClicked( wxHtmlLinkEvent& event );
64  virtual void OnCopyVersionInfo( wxCommandEvent &event );
65 
66  // Notebook pages
67  wxFlexGridSizer* CreateFlexGridSizer();
68  void DeleteNotebooks();
69  void CreateNotebooks();
70  void CreateNotebookPage( wxAuiNotebook* aParent,
71  const wxString& aCaption,
72  const wxBitmap& aIcon,
73  const Contributors& aContributors );
74  void CreateNotebookPageByCategory( wxAuiNotebook* aParent,
75  const wxString& aCaption,
76  const wxBitmap& aIcon,
77  const Contributors& aContributors );
78  void CreateNotebookHtmlPage( wxAuiNotebook* aParent,
79  const wxString& aCaption,
80  const wxBitmap& aIcon,
81  const wxString& aHtmlMessage );
82 
83  wxHyperlinkCtrl* CreateHyperlink( wxScrolledWindow* aParent, const wxString& email );
84  wxStaticBitmap* CreateStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
85 };
86 
87 #endif // DIALOG_ABOUT_H
dialog_about(wxWindow *dlg, AboutAppInfo &appInfo)
wxBitmap picDocWriters
Definition: dialog_about.h:47
virtual void OnOkClick(wxCommandEvent &event)
About dialog to show application specific information.
Definition: dialog_about.h:40
void initDialog()
virtual void OnClose(wxCloseEvent &event)
Event handlers.
wxBitmap picPackagers
Definition: dialog_about.h:50
wxBitmap picDevelopers
Definition: dialog_about.h:46
wxHyperlinkCtrl * CreateHyperlink(wxScrolledWindow *aParent, const wxString &email)
void CreateNotebooks()
void DeleteNotebooks()
wxBitmap picTranslators
Definition: dialog_about.h:49
void CreateNotebookPage(wxAuiNotebook *aParent, const wxString &aCaption, const wxBitmap &aIcon, const Contributors &aContributors)
void CreateNotebookHtmlPage(wxAuiNotebook *aParent, const wxString &aCaption, const wxBitmap &aIcon, const wxString &aHtmlMessage)
wxFlexGridSizer * CreateFlexGridSizer()
An object of this class is meant to be used to store application specific information like who has co...
Definition: aboutinfo.h:42
Class dialog_about_base.
virtual void OnCopyVersionInfo(wxCommandEvent &event)
void CreateNotebookPageByCategory(wxAuiNotebook *aParent, const wxString &aCaption, const wxBitmap &aIcon, const Contributors &aContributors)
wxBitmap picArtists
Definition: dialog_about.h:48
AboutAppInfo info
Definition: dialog_about.h:53
wxStaticBitmap * CreateStaticBitmap(wxScrolledWindow *aParent, wxBitmap *icon)
virtual void OnHtmlLinkClicked(wxHtmlLinkEvent &event)
wxBitmap picLicense
Definition: dialog_about.h:51
wxBitmap picInformation
Definition: dialog_about.h:45