2014-10-19 20:20:16 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Rafael Sokolowski <Rafael.Sokolowski@web.de>
|
2017-08-18 06:06:45 +00:00
|
|
|
* Copyright (C) 2010-2017 KiCad Developers, see CHANGELOG.TXT for contributors.
|
2014-10-19 20:20:16 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2016-03-11 16:40:24 +00:00
|
|
|
#include <boost/version.hpp>
|
2010-09-03 14:33:09 +00:00
|
|
|
#include <wx/aboutdlg.h>
|
2016-03-11 16:40:24 +00:00
|
|
|
#include <wx/arrimpl.cpp>
|
2010-09-03 14:33:09 +00:00
|
|
|
#include <wx/textctrl.h>
|
2016-03-11 16:40:24 +00:00
|
|
|
#include <wx/utils.h>
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* Used icons:
|
2017-08-18 06:06:45 +00:00
|
|
|
* lang_xx_xpm; // Icons of various national flags
|
|
|
|
* show_3d_xpm; // 3D icon
|
|
|
|
* edit_module_xpm;
|
|
|
|
* icon_kicad_xpm; // Icon of the application
|
2010-09-03 14:33:09 +00:00
|
|
|
*/
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <bitmaps.h>
|
2016-03-11 16:40:24 +00:00
|
|
|
#include <build_version.h>
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <common.h>
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
#include <pgm_base.h>
|
2016-03-11 16:40:24 +00:00
|
|
|
#include <wxstruct.h>
|
|
|
|
|
|
|
|
#include "aboutinfo.h"
|
|
|
|
#include "dialog_about.h"
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
WX_DEFINE_OBJARRAY( CONTRIBUTORS )
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
// Helper functions:
|
|
|
|
static wxString HtmlHyperlink( const wxString& url, const wxString& description = wxEmptyString );
|
|
|
|
static wxString HtmlNewline( const unsigned int amount = 1 );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-08-18 06:06:45 +00:00
|
|
|
* Initializes the <code>ABOUT_APP_INFO</code> object with application specific information.
|
|
|
|
* This is the object which holds all information about the application
|
2010-09-03 14:33:09 +00:00
|
|
|
*/
|
2017-08-18 06:06:45 +00:00
|
|
|
static void buildKicadAboutBanner( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aInfo )
|
2010-09-03 14:33:09 +00:00
|
|
|
{
|
2011-08-29 03:04:59 +00:00
|
|
|
// Set application specific icon
|
2017-08-18 06:06:45 +00:00
|
|
|
aInfo.SetAppIcon( aParent->GetIcon() );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* Set title */
|
2017-08-18 06:06:45 +00:00
|
|
|
aInfo.SetAppName( Pgm().App().GetAppName() );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* Copyright information */
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.SetCopyright( "(C) 1992-2017 KiCad Developers Team" );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* KiCad build version */
|
|
|
|
wxString version;
|
2016-03-11 16:40:24 +00:00
|
|
|
version << GetBuildVersion()
|
2015-05-11 16:25:33 +00:00
|
|
|
#ifdef DEBUG
|
2017-11-29 23:05:35 +00:00
|
|
|
<< ", debug"
|
2015-05-11 16:25:33 +00:00
|
|
|
#else
|
2017-11-29 23:05:35 +00:00
|
|
|
<< ", release"
|
2015-05-11 16:25:33 +00:00
|
|
|
#endif
|
2017-11-29 23:05:35 +00:00
|
|
|
<< " build";
|
2015-05-11 16:25:33 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
aInfo.SetBuildVersion( version );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* wxWidgets version */
|
|
|
|
wxString libVersion;
|
2016-03-11 16:40:24 +00:00
|
|
|
libVersion << wxGetLibraryVersionInfo().GetVersionString();
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
/* Unicode or ANSI version */
|
2010-09-03 14:33:09 +00:00
|
|
|
#if wxUSE_UNICODE
|
2016-03-11 16:40:24 +00:00
|
|
|
libVersion << wxT( " Unicode " );
|
2010-09-03 14:33:09 +00:00
|
|
|
#else
|
2016-03-11 16:40:24 +00:00
|
|
|
libVersion << wxT( " ANSI " );
|
2010-09-03 14:33:09 +00:00
|
|
|
#endif
|
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
// Just in case someone builds KiCad with the platform native of Boost instead of
|
|
|
|
// the version included with the KiCad source.
|
2017-11-29 23:05:35 +00:00
|
|
|
libVersion << "and Boost " << ( BOOST_VERSION / 100000 ) << "."
|
|
|
|
<< ( BOOST_VERSION / 100 % 1000 ) << "." << ( BOOST_VERSION % 100 )
|
|
|
|
<< "\n";
|
2011-09-18 15:11:09 +00:00
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
// Operating System Information
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
wxPlatformInfo platformInfo;
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
libVersion << "Platform: " << wxGetOsDescription() << ", " << platformInfo.GetArchName();
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
aInfo.SetLibVersion( libVersion );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* info/description part HTML formatted */
|
|
|
|
|
|
|
|
wxString description;
|
|
|
|
|
|
|
|
/* short description */
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<p>";
|
|
|
|
description << "<b><u>"
|
2015-11-19 15:04:12 +00:00
|
|
|
<< _( "Description" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</u></b>"; // bold & underlined font for caption
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<p>"
|
2015-11-19 15:04:12 +00:00
|
|
|
<< _( "The KiCad EDA Suite is a set of open source applications for the "
|
2017-11-23 13:29:30 +00:00
|
|
|
"creation of electronic schematics and printed circuit boards." )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</p>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "</p>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* websites */
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<p><b><u>"
|
2015-11-19 15:04:12 +00:00
|
|
|
<< _( "KiCad on the web" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</u></b>"; // bold & underlined font for caption
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
// bullet-ed list with some http links
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<ul>";
|
|
|
|
description << "<li>"
|
|
|
|
<< "The official KiCad website - "
|
2017-11-23 13:29:30 +00:00
|
|
|
<< HtmlHyperlink( "http://www.kicad-pcb.org" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</li>";
|
|
|
|
description << "<li>"
|
|
|
|
<< "Developer website on Launchpad - "
|
2017-11-23 13:29:30 +00:00
|
|
|
<< HtmlHyperlink( "https://launchpad.net/kicad" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</li>";
|
2017-01-03 15:01:47 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<li>"
|
|
|
|
<< "Official KiCad library repositories - "
|
2017-11-23 13:29:30 +00:00
|
|
|
<< HtmlHyperlink( "https://github.com/KiCad/" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</li>";
|
2017-03-07 19:18:37 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "</ul></p>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<p><b><u>"
|
2016-03-29 17:51:53 +00:00
|
|
|
<< _( "Bug tracker" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</u></b>"; // bold & underlined font caption
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
// bullet-ed list with some http links
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<ul>";
|
|
|
|
description << "<li>"
|
|
|
|
<< "Report or examine bugs - "
|
2017-11-23 13:29:30 +00:00
|
|
|
<< HtmlHyperlink( "https://bugs.launchpad.net/kicad/+bugs?orderby=-id&start=0",
|
|
|
|
"https://bugs.launchpad.net/kicad" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</li>";
|
|
|
|
description << "</ul></p>";
|
2016-03-29 17:51:53 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<p><b><u>"
|
2017-03-07 19:18:37 +00:00
|
|
|
<< _( "KiCad user's groups and community" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</u></b>"; // bold & underlined font caption
|
2016-03-29 17:51:53 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<ul>";
|
|
|
|
description << "<li>"
|
|
|
|
<< "KiCad forum - "
|
|
|
|
<< HtmlHyperlink( "https://forum.kicad.info" )
|
|
|
|
<< "</li>";
|
2016-03-29 17:51:53 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "<li>"
|
|
|
|
<< "KiCad user's group - "
|
2017-11-23 13:29:30 +00:00
|
|
|
<< HtmlHyperlink( "https://groups.yahoo.com/neo/groups/kicad-users/info" )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</li>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-11-29 23:05:35 +00:00
|
|
|
description << "</ul></p>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
aInfo.SetDescription( description );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
|
2016-03-29 17:51:53 +00:00
|
|
|
// License information also HTML formatted:
|
2010-09-03 14:33:09 +00:00
|
|
|
wxString license;
|
|
|
|
license
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "<div align='center'>"
|
2010-09-03 14:33:09 +00:00
|
|
|
<< HtmlNewline( 4 )
|
|
|
|
<< _( "The complete KiCad EDA Suite is released under the" ) << HtmlNewline( 2 )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< HtmlHyperlink( "http://www.gnu.org/licenses",
|
2015-11-19 15:04:12 +00:00
|
|
|
_( "GNU General Public License (GPL) version 3 or any later version" ) )
|
2017-11-29 23:05:35 +00:00
|
|
|
<< "</div>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
aInfo.SetLicense( license );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* A contributor consists of the following information:
|
|
|
|
* Mandatory:
|
|
|
|
* - Name
|
|
|
|
* Optional:
|
2017-11-29 23:05:35 +00:00
|
|
|
* - EMail address
|
2010-09-03 14:33:09 +00:00
|
|
|
* - Category
|
|
|
|
* - Category specific icon
|
|
|
|
*
|
|
|
|
* All contributors of the same category will be enumerated under this category
|
|
|
|
* which should be represented by the same icon.
|
|
|
|
*/
|
|
|
|
|
2014-01-26 14:20:58 +00:00
|
|
|
// The core developers
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Jean-Pierre Charras" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Dick Hollenbeck" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Wayne Stambaugh" ) );
|
2013-08-05 20:45:22 +00:00
|
|
|
|
|
|
|
// alphabetically by last name after main 3 above:
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Frank Bennett" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Cirilo Bernardo" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Jonas Diemer" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Jon Evans" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Seth Hillbrand" ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Torsten Hüter" ) ) );
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Jerry Jacobs" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Mario Luzeiro" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Daniel Majewski" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Lorenzo Marcantonio" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Marco Mattila" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Russell Oliver" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Chris Pavlina" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Miguel Angel Ajo Pelayo" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Jacobo Aragunde Perez" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Simon Richter" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Mark Roszko" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Marco Serantoni" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Brian Sidebotham" ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Mateusz Skowroński" ) ) );
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Rafael Sokolowski" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Vesa Solonen" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Bernhard Stegmaier" ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Orson (Maciej Sumiński)" ) ) );
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Oliver Walters" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Tomasz Wlostowski" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Adam Wolf" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Alexander Zakamaldin" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Henner Zeller" ) );
|
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( "Andrew Zonenberg" ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddDeveloper( new CONTRIBUTOR( wxT( "Nick Østergaard" ) ) );
|
2013-08-05 20:45:22 +00:00
|
|
|
|
|
|
|
// The document writers
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddDocWriter( new CONTRIBUTOR( "Jean-Pierre Charras" ) );
|
|
|
|
aInfo.AddDocWriter( new CONTRIBUTOR( "Marco Ciampa" ) );
|
|
|
|
aInfo.AddDocWriter( new CONTRIBUTOR( "Dick Hollenbeck" ) );
|
|
|
|
aInfo.AddDocWriter( new CONTRIBUTOR( "Igor Plyatov" ) );
|
|
|
|
aInfo.AddDocWriter( new CONTRIBUTOR( "Wayne Stambaugh" ) );
|
|
|
|
aInfo.AddDocWriter( new CONTRIBUTOR( "Fabrizio Tappero" ) );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* The translators
|
|
|
|
* As category the language to which the translation was done is used
|
|
|
|
* and as icon the national flag of the corresponding country.
|
|
|
|
*/
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Robert Buj",
|
|
|
|
wxEmptyString,
|
|
|
|
"Catalan (CA)",
|
|
|
|
KiBitmapNew( lang_catalan_xpm ) ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( wxT( "Martin Kratoška" ),
|
2017-11-29 23:05:35 +00:00
|
|
|
wxEmptyString,
|
|
|
|
"Czech (CZ)",
|
|
|
|
KiBitmapNew( lang_cs_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Jerry Jacobs",
|
|
|
|
wxEmptyString,
|
|
|
|
"Dutch (NL)",
|
|
|
|
KiBitmapNew( lang_nl_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Vesa Solonen",
|
|
|
|
wxEmptyString,
|
|
|
|
"Finnish (FI)",
|
|
|
|
KiBitmapNew( lang_fi_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Jean-Pierre Charras",
|
|
|
|
wxEmptyString,
|
|
|
|
"French (FR)",
|
|
|
|
KiBitmapNew( lang_fr_xpm ) ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( wxT( "Mateusz Skowroński" ),
|
2017-11-29 23:05:35 +00:00
|
|
|
wxEmptyString,
|
|
|
|
"Polish (PL)",
|
|
|
|
KiBitmapNew( lang_pl_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Kerusey Karyu",
|
|
|
|
wxEmptyString,
|
|
|
|
"Polish (PL)",
|
|
|
|
KiBitmapNew( lang_pl_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Renie Marquet",
|
|
|
|
wxEmptyString,
|
|
|
|
"Portuguese (PT)",
|
|
|
|
KiBitmapNew( lang_pt_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Igor Plyatov",
|
|
|
|
wxEmptyString,
|
|
|
|
"Russian (RU)",
|
|
|
|
KiBitmapNew( lang_ru_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Andrey Fedorushkov",
|
|
|
|
wxEmptyString,
|
|
|
|
"Russian (RU)",
|
|
|
|
KiBitmapNew( lang_ru_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Eldar Khayrullin",
|
|
|
|
wxEmptyString,
|
|
|
|
"Russian (RU)",
|
2015-11-19 15:04:12 +00:00
|
|
|
KiBitmapNew( lang_ru_xpm ) ) );
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Pedro Martin del Valle",
|
|
|
|
wxEmptyString,
|
|
|
|
"Spanish (ES)",
|
|
|
|
KiBitmapNew( lang_es_xpm ) ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( wxT( "Iñigo Zuluaga" ),
|
2017-11-29 23:05:35 +00:00
|
|
|
wxEmptyString,
|
|
|
|
"Spanish (ES)",
|
|
|
|
KiBitmapNew( lang_es_xpm ) ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( wxT( "Iñigo Figuero" ),
|
2017-11-29 23:05:35 +00:00
|
|
|
wxEmptyString,
|
|
|
|
"Spanish (ES)",
|
|
|
|
KiBitmapNew( lang_es_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Rafael Sokolowski",
|
|
|
|
wxEmptyString,
|
|
|
|
"German (DE)",
|
|
|
|
KiBitmapNew( lang_de_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Kenta Yonekura",
|
|
|
|
wxEmptyString,
|
|
|
|
"Japanese (JA)",
|
|
|
|
KiBitmapNew( lang_jp_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Manolis Stefanis",
|
|
|
|
wxEmptyString,
|
|
|
|
"Greek (el_GR)",
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Athanasios Vlastos",
|
|
|
|
wxEmptyString,
|
|
|
|
"Greek (el_GR)",
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Milonas Kostas",
|
|
|
|
wxEmptyString,
|
|
|
|
"Greek (el_GR)",
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Michail Misirlis",
|
|
|
|
wxEmptyString,
|
|
|
|
"Greek (el_GR)",
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Massimo Cioce",
|
|
|
|
wxEmptyString,
|
|
|
|
"Italian (IT)",
|
|
|
|
KiBitmapNew( lang_it_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Marco Ciampa",
|
|
|
|
wxEmptyString,
|
|
|
|
"Italian (IT)",
|
|
|
|
KiBitmapNew( lang_it_xpm ) ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Evgeniy Ivanov",
|
|
|
|
wxEmptyString,
|
|
|
|
"Bulgarian (BG)",
|
|
|
|
KiBitmapNew( lang_bg_xpm ) ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
|
2016-04-18 18:15:44 +00:00
|
|
|
// Maintainer who helper in translations, but not in a specific translation
|
|
|
|
#define OTHERS_IN_TRANSLATION _( "Others" )
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Remy Halvick",
|
|
|
|
wxEmptyString,
|
|
|
|
OTHERS_IN_TRANSLATION ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "David Briscoe",
|
|
|
|
wxEmptyString,
|
|
|
|
OTHERS_IN_TRANSLATION ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Dominique Laigle",
|
|
|
|
wxEmptyString,
|
|
|
|
OTHERS_IN_TRANSLATION ) );
|
|
|
|
aInfo.AddTranslator( new CONTRIBUTOR( "Paul Burke",
|
|
|
|
wxEmptyString,
|
|
|
|
OTHERS_IN_TRANSLATION ) );
|
2013-08-05 20:45:22 +00:00
|
|
|
|
|
|
|
// Programm credits for icons
|
2016-04-18 18:15:44 +00:00
|
|
|
#define ICON_CONTRIBUTION _( "Icons by" )
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( wxT( "Iñigo Zuluaga" ),
|
2017-11-29 23:05:35 +00:00
|
|
|
wxEmptyString,
|
|
|
|
ICON_CONTRIBUTION,
|
|
|
|
KiBitmapNew( svg_file_xpm ) ) );
|
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( "Konstantin Baranovskiy",
|
|
|
|
wxEmptyString,
|
|
|
|
ICON_CONTRIBUTION,
|
|
|
|
KiBitmapNew( svg_file_xpm ) ) );
|
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( "Fabrizio Tappero",
|
|
|
|
wxEmptyString,
|
|
|
|
ICON_CONTRIBUTION,
|
|
|
|
KiBitmapNew( svg_file_xpm ) ) );
|
|
|
|
|
|
|
|
// Program credits for 3d models
|
2016-04-18 18:15:44 +00:00
|
|
|
#define MODELS_3D_CONTRIBUTION _( "3D models by" )
|
2017-11-29 23:05:35 +00:00
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( "Christophe Boschat",
|
|
|
|
wxEmptyString,
|
|
|
|
MODELS_3D_CONTRIBUTION,
|
|
|
|
KiBitmapNew( three_d_xpm ) ) );
|
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( "Renie Marquet",
|
|
|
|
wxEmptyString,
|
|
|
|
MODELS_3D_CONTRIBUTION,
|
|
|
|
KiBitmapNew( three_d_xpm ) ) );
|
|
|
|
|
|
|
|
#define SYMBOL_LIB_CONTRIBUTION _( "Symbols by" )
|
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( "Leet Hacker1",
|
|
|
|
wxEmptyString,
|
|
|
|
SYMBOL_LIB_CONTRIBUTION,
|
|
|
|
KiBitmapNew( edit_component_xpm ) ) );
|
|
|
|
|
|
|
|
#define FOOTPRINT_LIB_CONTRIBUTION _( "Footprints by" )
|
|
|
|
aInfo.AddArtist( new CONTRIBUTOR( "Leet Hacker2",
|
|
|
|
wxEmptyString,
|
|
|
|
FOOTPRINT_LIB_CONTRIBUTION,
|
|
|
|
KiBitmapNew( edit_module_xpm ) ) );
|
|
|
|
|
|
|
|
// Program credits for package developers.
|
|
|
|
aInfo.AddPackager( new CONTRIBUTOR( "Jean-Samuel Reynaud" ) );
|
|
|
|
aInfo.AddPackager( new CONTRIBUTOR( "Bernhard Stegmaier" ) );
|
|
|
|
aInfo.AddPackager( new CONTRIBUTOR( "Adam Wolf" ) );
|
2017-11-30 14:57:24 +00:00
|
|
|
aInfo.AddPackager( new CONTRIBUTOR( wxT( "Nick Østergaard" ) ) );
|
2010-09-03 14:33:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
void ShowAboutDialog( EDA_BASE_FRAME* aParent )
|
2010-09-03 14:33:09 +00:00
|
|
|
{
|
2017-08-18 06:06:45 +00:00
|
|
|
ABOUT_APP_INFO info;
|
|
|
|
buildKicadAboutBanner( aParent, info );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
DIALOG_ABOUT dlg( aParent, info );
|
|
|
|
dlg.ShowModal();
|
2010-09-03 14:33:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Helper functions
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
2017-11-29 23:05:35 +00:00
|
|
|
* Wrap \a aUrl with a HTML anchor tag containing a hyperlink text reference
|
2010-09-03 14:33:09 +00:00
|
|
|
* to form a HTML hyperlink.
|
|
|
|
*
|
2015-11-19 15:04:12 +00:00
|
|
|
* @param aUrl the url that will be embedded in an anchor tag containing a hyperlink reference
|
|
|
|
* @param aDescription the optional describing text that will be represented as a hyperlink.
|
2010-09-03 14:33:09 +00:00
|
|
|
* If not specified the url will be used as hyperlink.
|
|
|
|
* @return a HTML conform hyperlink like <a href='url'>description</a>
|
|
|
|
*/
|
2015-11-19 15:04:12 +00:00
|
|
|
static wxString HtmlHyperlink( const wxString& aUrl, const wxString& aDescription )
|
2010-09-03 14:33:09 +00:00
|
|
|
{
|
|
|
|
wxString hyperlink = wxEmptyString;
|
|
|
|
|
2015-11-19 15:04:12 +00:00
|
|
|
if( aDescription.IsEmpty() )
|
2017-11-29 23:05:35 +00:00
|
|
|
hyperlink << "<a href='" << aUrl << "'>" << aUrl << "</a>";
|
2010-09-03 14:33:09 +00:00
|
|
|
else
|
2017-11-29 23:05:35 +00:00
|
|
|
hyperlink << "<a href='" << aUrl << "'>" << aDescription << "</a>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
return hyperlink;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-11-29 23:05:35 +00:00
|
|
|
* Create an HTML newline character sequence of \a aCount.
|
2010-09-03 14:33:09 +00:00
|
|
|
*
|
2015-11-19 15:04:12 +00:00
|
|
|
* @param aCount the number of HTML newline tags to concatenate, default is to return just
|
|
|
|
* one <br> tag.
|
2010-09-03 14:33:09 +00:00
|
|
|
* @return the concatenated amount of HTML newline tag(s) <br>
|
|
|
|
*/
|
2015-11-19 15:04:12 +00:00
|
|
|
static wxString HtmlNewline( const unsigned int aCount )
|
2010-09-03 14:33:09 +00:00
|
|
|
{
|
|
|
|
wxString newlineTags = wxEmptyString;
|
|
|
|
|
2015-11-19 15:04:12 +00:00
|
|
|
for( size_t i = 0; i<aCount; ++i )
|
2017-11-29 23:05:35 +00:00
|
|
|
newlineTags << "<br>";
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
return newlineTags;
|
|
|
|
}
|