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 The 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, see <https://www.gnu.org/licenses/>.
19 */
20
21#ifndef DIALOG_ABOUT_H
22#define DIALOG_ABOUT_H
23
24#include <wx/html/htmlwin.h>
25#include <wx/statbmp.h>
26#include <wx/stattext.h>
27#include <wx/hyperlink.h>
28
29#include "aboutinfo.h"
30#include "dialog_about_base.h"
31
32// Used for the notebook image list
44
50{
51public:
52 DIALOG_ABOUT( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aAppInfo );
54
55protected:
56 void OnNotebookPageChanged( wxNotebookEvent& aEvent ) override;
57
58private:
59 void onHtmlLinkClicked( wxHtmlLinkEvent& event );
60
61 void onCopyVersionInfo( wxCommandEvent& event ) override;
62
63 void onReportBug( wxCommandEvent& event ) override;
64
65 void onDonateClick( wxCommandEvent& event ) override;
66
67 // Notebook pages
68 void createNotebooks();
69 void createNotebookPageByCategory( wxNotebook* aParent, const wxString& aCaption,
70 IMAGES aIconIndex, const CONTRIBUTORS& aContributors );
71 void createNotebookHtmlPage( wxNotebook* aParent, const wxString& aCaption,
72 IMAGES aIconIndex, const wxString& aHtmlMessage,
73 bool aSelection = false );
74
75 wxStaticText* wxStaticTextRef( wxScrolledWindow* aParent, const wxString& aReference );
76 wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
77
78private:
79 wxImageList* m_images;
80 wxString m_titleName;
82
84};
85
86#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:41
DIALOG_ABOUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("About"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(570, 500), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void OnNotebookPageChanged(wxNotebookEvent &aEvent) override
wxString m_titleName
wxImageList * m_images
wxString m_untranslatedTitleName
void createNotebooks()
ABOUT_APP_INFO & m_info
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)
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
@ TRANSLATORS
@ INFORMATION