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>
|
2015-10-08 17:48:27 +00:00
|
|
|
* Copyright (C) 2010-2015 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:
|
2010-12-02 17:26:32 +00:00
|
|
|
* lang_xx_xpm[]; // Icons of various national flags
|
|
|
|
* show_3d_xpm[]; // 3D icon
|
2010-09-03 14:33:09 +00:00
|
|
|
* edit_module_xpm[];
|
2011-08-29 03:04:59 +00:00
|
|
|
* 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
|
|
|
|
|
|
|
|
2010-10-04 12:58:07 +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 );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2015-05-11 16:25:33 +00:00
|
|
|
* Initializes the <code>AboutAppInfo</code> object with application specific information.
|
2010-09-03 14:33:09 +00:00
|
|
|
*
|
2010-12-14 15:56:30 +00:00
|
|
|
* This the object which holds all information about the application
|
2010-09-03 14:33:09 +00:00
|
|
|
*/
|
|
|
|
static void InitKiCadAboutNew( AboutAppInfo& info )
|
|
|
|
{
|
2011-08-29 03:04:59 +00:00
|
|
|
// Set application specific icon
|
2015-11-19 15:04:12 +00:00
|
|
|
const wxTopLevelWindow* const tlw = wxDynamicCast( Pgm().App().GetTopWindow(),
|
|
|
|
wxTopLevelWindow );
|
2011-08-29 03:04:59 +00:00
|
|
|
|
2010-09-03 14:33:09 +00:00
|
|
|
if( tlw )
|
|
|
|
info.SetIcon( tlw->GetIcon() );
|
|
|
|
else
|
2011-08-29 03:04:59 +00:00
|
|
|
{
|
|
|
|
wxBitmap bitmap = KiBitmap( icon_kicad_xpm );
|
|
|
|
wxIcon icon;
|
|
|
|
|
|
|
|
icon.CopyFromBitmap( bitmap );
|
|
|
|
|
|
|
|
info.SetIcon( icon );
|
|
|
|
}
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* Set title */
|
2016-03-11 16:40:24 +00:00
|
|
|
info.SetAppName( Pgm().App().GetAppName() );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
/* Copyright information */
|
2016-03-11 16:40:24 +00:00
|
|
|
info.SetCopyright( wxT( "(C) 1992-2016 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
|
|
|
|
<< wxT( ", debug" )
|
|
|
|
#else
|
|
|
|
<< wxT( ", release" )
|
|
|
|
#endif
|
|
|
|
<< wxT( " build" );
|
|
|
|
|
2010-09-03 14:33:09 +00:00
|
|
|
info.SetBuildVersion( version );
|
|
|
|
|
|
|
|
/* 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.
|
|
|
|
libVersion << wxT( "and Boost " ) << ( BOOST_VERSION / 100000 ) << wxT( "." )
|
|
|
|
<< ( BOOST_VERSION / 100 % 1000 ) << wxT( "." ) << ( BOOST_VERSION % 100 )
|
|
|
|
<< wxT( "\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
|
|
|
|
2015-05-11 16:25:33 +00:00
|
|
|
libVersion << wxT( "Platform: " ) << wxGetOsDescription() << wxT( ", " )
|
|
|
|
<< platformInfo.GetArchName();
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
info.SetLibVersion( libVersion );
|
|
|
|
|
|
|
|
|
|
|
|
/* info/description part HTML formatted */
|
|
|
|
|
|
|
|
wxString description;
|
|
|
|
|
|
|
|
/* short description */
|
|
|
|
description << wxT( "<p>" );
|
2015-11-19 15:04:12 +00:00
|
|
|
description << wxT( "<b><u>" )
|
|
|
|
<< _( "Description" )
|
|
|
|
<< wxT( "</u></b>" ); // bold & underlined font for caption
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2015-11-19 15:04:12 +00:00
|
|
|
description << wxT( "<p>" )
|
|
|
|
<< _( "The KiCad EDA Suite is a set of open source applications for the "
|
|
|
|
"creation of electronic schematics and to design printed circuit boards." )
|
2010-09-03 14:33:09 +00:00
|
|
|
<< wxT( "</p>" );
|
|
|
|
|
|
|
|
description << wxT( "</p>" );
|
|
|
|
|
|
|
|
/* websites */
|
2016-03-25 17:05:25 +00:00
|
|
|
description << wxT( "<p><b><u>" )
|
2015-11-19 15:04:12 +00:00
|
|
|
<< _( "KiCad on the web" )
|
|
|
|
<< wxT( "</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
|
2010-09-03 14:33:09 +00:00
|
|
|
description << wxT( "<ul>" );
|
2015-11-17 19:00:58 +00:00
|
|
|
description << wxT( "<li>" )
|
|
|
|
<< HtmlHyperlink( wxT( "http://www.kicad-pcb.org" ),
|
|
|
|
_( "The official KiCad site" ) )
|
|
|
|
<< wxT( "</li>" );
|
|
|
|
description << wxT( "<li>" )
|
|
|
|
<< HtmlHyperlink( wxT( "https://launchpad.net/kicad" ),
|
|
|
|
_( "Developer's website on Launchpad" ) )
|
|
|
|
<< wxT("</li>" );
|
2017-01-03 15:01:47 +00:00
|
|
|
|
2016-03-25 17:05:25 +00:00
|
|
|
description << wxT( "<li>" )
|
|
|
|
<< HtmlHyperlink( wxT( "https://github.com/KiCad/" ),
|
|
|
|
_( "Our official Repository for component and footprint libraries" ) )
|
|
|
|
<< wxT( "</li>" );
|
|
|
|
|
2017-01-03 15:01:47 +00:00
|
|
|
description << wxT( "<li>" )
|
|
|
|
<< HtmlHyperlink( wxT( "https://github.com/KiCad/Footprint_Wizards" ),
|
|
|
|
_( "Footprint wizards info on our official repository " ) )
|
|
|
|
<< wxT( "</li>" );
|
|
|
|
|
2016-03-25 17:05:25 +00:00
|
|
|
description << wxT( "<p><u>" )
|
|
|
|
<< _( "Non official repositories" )
|
|
|
|
<< wxT( "</u>" );
|
2017-01-31 07:56:31 +00:00
|
|
|
|
2016-03-25 17:05:25 +00:00
|
|
|
description << wxT( "<li>" )
|
|
|
|
<< HtmlHyperlink( wxT( "http://smisioto.no-ip.org/elettronica/kicad/kicad-en.htm" ),
|
|
|
|
_( "Additional component libraries repository (smisioto)" ) )
|
2010-09-03 14:33:09 +00:00
|
|
|
<< wxT( "</li>" );
|
|
|
|
description << wxT( "</ul>" );
|
|
|
|
description << wxT( "</p>" );
|
|
|
|
|
2016-03-25 17:05:25 +00:00
|
|
|
description << wxT( "<p><b><u>" )
|
2016-03-29 17:51:53 +00:00
|
|
|
<< _( "Bug tracker" )
|
2015-11-19 15:04:12 +00:00
|
|
|
<< wxT( "</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
|
2010-09-03 14:33:09 +00:00
|
|
|
description << wxT( "<ul>" );
|
2015-11-17 19:00:58 +00:00
|
|
|
description << wxT( "<li>" )
|
2016-03-29 17:51:53 +00:00
|
|
|
<<HtmlHyperlink( wxT( "https://bugs.launchpad.net/kicad/+bugs?orderby=-id&start=0" ),
|
|
|
|
_( "Report or examine bugs" ) )
|
2015-11-17 19:00:58 +00:00
|
|
|
<< wxT( "</li>" );
|
2016-03-29 17:51:53 +00:00
|
|
|
description << wxT( "</ul></p>" );
|
|
|
|
|
|
|
|
description << wxT( "<p><b><u>" )
|
|
|
|
<< _( "KiCad user group and community" )
|
|
|
|
<< wxT( "</u></b>" ); // bold & underlined font caption
|
|
|
|
|
|
|
|
description << wxT( "<ul>" );
|
2015-11-17 19:00:58 +00:00
|
|
|
description << wxT( "<li>" )
|
2016-03-29 17:51:53 +00:00
|
|
|
<< HtmlHyperlink( wxT( "https://groups.yahoo.com/neo/groups/kicad-users/info" ),
|
|
|
|
_( "KiCad user group" ) )
|
2015-11-17 19:00:58 +00:00
|
|
|
<< wxT( "</li>" );
|
2016-03-29 17:51:53 +00:00
|
|
|
|
2015-11-17 19:00:58 +00:00
|
|
|
description << wxT( "<li>" )
|
2016-03-29 17:51:53 +00:00
|
|
|
<< HtmlHyperlink( wxT( "https://forum.kicad.info" ),
|
|
|
|
_( "KiCad forum" ) )
|
2015-11-17 19:00:58 +00:00
|
|
|
<< wxT( "</li>" );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
2016-03-29 17:51:53 +00:00
|
|
|
description << wxT( "</ul></p>" );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
info.SetDescription( description );
|
|
|
|
|
|
|
|
|
2016-03-29 17:51:53 +00:00
|
|
|
// License information also HTML formatted:
|
2010-09-03 14:33:09 +00:00
|
|
|
wxString license;
|
|
|
|
license
|
|
|
|
<< wxT( "<div align='center'>" )
|
|
|
|
<< HtmlNewline( 4 )
|
|
|
|
<< _( "The complete KiCad EDA Suite is released under the" ) << HtmlNewline( 2 )
|
|
|
|
<< HtmlHyperlink( wxT( "http://www.gnu.org/licenses" ),
|
2015-11-19 15:04:12 +00:00
|
|
|
_( "GNU General Public License (GPL) version 3 or any later version" ) )
|
2010-09-03 14:33:09 +00:00
|
|
|
<< wxT( "</div>" );
|
|
|
|
|
|
|
|
info.SetLicense( license );
|
|
|
|
|
|
|
|
|
|
|
|
/* A contributor consists of the following information:
|
|
|
|
* Mandatory:
|
|
|
|
* - Name
|
|
|
|
* - EMail address
|
|
|
|
* Optional:
|
|
|
|
* - 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
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Jean-Pierre Charras" ),
|
|
|
|
wxT( "jp.charras@wanadoo.fr" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Dick Hollenbeck" ),
|
|
|
|
wxT( "dick@softplc.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Wayne Stambaugh" ),
|
|
|
|
wxT( "stambaughw@gmail.com" ) ) );
|
2013-08-05 20:45:22 +00:00
|
|
|
|
|
|
|
// alphabetically by last name after main 3 above:
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Frank Bennett" ),
|
|
|
|
wxT( "bennett78@lpbroadband.net" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Cirilo Bernardo" ),
|
|
|
|
wxT( "cirilo_bernardo@yahoo.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Jonas Diemer" ),
|
|
|
|
wxT( "diemer@gmx.de" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Torsten Hüter" ),
|
|
|
|
wxT( "torstenhtr@gmx.de" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Jerry Jacobs" ),
|
|
|
|
wxT( "xor.gate.engineering@gmail.com" ) ) );
|
2015-11-29 19:02:42 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Mario Luzeiro" ),
|
|
|
|
wxT( "mrluzeiro@ua.pt" ) ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Daniel Majewski" ),
|
|
|
|
wxT( "lordblick@gmail.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Lorenzo Marcantonio" ),
|
|
|
|
wxT( "lomarcan@tin.it" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Marco Mattila" ),
|
|
|
|
wxT( "marcom99@gmail.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Chris Pavlina" ),
|
|
|
|
wxT( "pavlina.chris@gmail.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Miguel Angel Ajo Pelayo" ),
|
|
|
|
wxT( "miguelangel@nbee.es" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Jacobo Aragunde Perez" ),
|
|
|
|
wxT( "jaragunde@igalia.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Simon Richter" ),
|
|
|
|
wxT( "Simon.Richter@hogyros.de" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Mark Roszko" ),
|
|
|
|
wxT( "mark.roszko@gmail.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Marco Serantoni" ),
|
|
|
|
wxT( "marco.serantoni@gmail.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Brian Sidebotham" ),
|
|
|
|
wxT( "brian.sidebotham@gmail.com" ) ) );
|
2015-11-29 19:02:42 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Mateusz Skowroński" ),
|
|
|
|
wxT( "skowri@gmail.com" ) ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Rafael Sokolowski" ),
|
|
|
|
wxT( "rafael.sokolowski@web.de" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Vesa Solonen" ),
|
|
|
|
wxT( "vesa.solonen@hut.fi" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Bernhard Stegmaier" ),
|
|
|
|
wxT( "stegmaier@sw-systems.de" ) ) );
|
2015-11-29 19:02:42 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Orson (Maciej Sumiński)" ),
|
|
|
|
wxT( "maciej.suminski@cern.ch" ) ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Tomasz Wlostowski" ),
|
|
|
|
wxT( "tomasz.wlostowski@cern.ch" ) ) );
|
2015-11-29 19:02:42 +00:00
|
|
|
info.AddDeveloper( new Contributor( wxT( "Adam Wolf" ),
|
2015-11-19 15:04:12 +00:00
|
|
|
wxT( "adamwolf@feelslikeburning.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Alexander Zakamaldin" ),
|
|
|
|
wxT( "zaka62@mail.ru" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Henner Zeller" ),
|
|
|
|
wxT( "h.zeller@acm.org" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Andrew Zonenberg" ),
|
|
|
|
wxT( "azonenberg@drawersteak.com" ) ) );
|
|
|
|
info.AddDeveloper( new Contributor( wxT( "Nick Østergaard" ),
|
|
|
|
wxT( "oe.nick@gmail.com" ) ) );
|
2013-08-05 20:45:22 +00:00
|
|
|
|
|
|
|
// The document writers
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddDocWriter( new Contributor( wxT( "Jean-Pierre Charras" ),
|
|
|
|
wxT( "jp.charras@wanadoo.fr" ) ) );
|
|
|
|
info.AddDocWriter( new Contributor( wxT( "Marco Ciampa" ),
|
|
|
|
wxT( "ciampix@libero.it" ) ) );
|
|
|
|
info.AddDocWriter( new Contributor( wxT( "Dick Hollenbeck" ),
|
|
|
|
wxT( "dick@softplc.com" ) ) );
|
|
|
|
info.AddDocWriter( new Contributor( wxT( "Igor Plyatov" ),
|
|
|
|
wxT( "plyatov@gmail.com" ) ) );
|
|
|
|
info.AddDocWriter( new Contributor( wxT( "Wayne Stambaugh" ),
|
|
|
|
wxT( "stambaughw@gmail.com" ) ) );
|
|
|
|
info.AddDocWriter( new Contributor( wxT( "Fabrizio Tappero" ),
|
|
|
|
wxT( "fabrizio.tappero@gmail.com" ) ) );
|
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.
|
|
|
|
*/
|
2016-04-14 20:27:03 +00:00
|
|
|
info.AddTranslator( new Contributor( wxT( "Robert Buj" ),
|
|
|
|
wxT( "rbuj@fedoraproject.org" ),
|
|
|
|
wxT( "Catalan (CA)" ),
|
|
|
|
KiBitmapNew( lang_catalan_xpm ) ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddTranslator( new Contributor( wxT( "Martin Kratoška" ),
|
|
|
|
wxT( "martin@ok1rr.com" ),
|
|
|
|
wxT( "Czech (CZ)" ),
|
|
|
|
KiBitmapNew( lang_cs_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Jerry Jacobs" ),
|
|
|
|
wxT( "xor.gate.engineering@gmail.com" ),
|
|
|
|
wxT( "Dutch (NL)" ),
|
|
|
|
KiBitmapNew( lang_nl_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Vesa Solonen" ),
|
|
|
|
wxT( "vesa.solonen@hut.fi" ),
|
|
|
|
wxT( "Finnish (FI)" ),
|
|
|
|
KiBitmapNew( lang_fi_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Jean-Pierre Charras" ),
|
|
|
|
wxT( "jp.charras@wanadoo.fr" ),
|
|
|
|
wxT( "French (FR)" ),
|
|
|
|
KiBitmapNew( lang_fr_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Mateusz Skowroński" ),
|
|
|
|
wxT( "skowri@gmail.com" ),
|
|
|
|
wxT( "Polish (PL)" ),
|
|
|
|
KiBitmapNew( lang_pl_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Kerusey Karyu" ),
|
|
|
|
wxT( "keruseykaryu@o2.pl" ),
|
|
|
|
wxT( "Polish (PL)" ),
|
|
|
|
KiBitmapNew( lang_pl_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Renie Marquet" ),
|
|
|
|
wxT( "reniemarquet@uol.com.br" ),
|
|
|
|
wxT( "Portuguese (PT)" ),
|
|
|
|
KiBitmapNew( lang_pt_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Igor Plyatov" ),
|
|
|
|
wxT( "plyatov@gmail.com" ),
|
|
|
|
wxT( "Russian (RU)" ),
|
|
|
|
KiBitmapNew( lang_ru_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Andrey Fedorushkov" ),
|
|
|
|
wxT( "andrf@mail.ru" ),
|
|
|
|
wxT( "Russian (RU)" ),
|
|
|
|
KiBitmapNew( lang_ru_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Eldar Khayrullin" ),
|
|
|
|
wxT( "eldar.khayrullin@mail.ru" ),
|
|
|
|
wxT( "Russian (RU)" ),
|
|
|
|
KiBitmapNew( lang_ru_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Pedro Martin del Valle" ),
|
|
|
|
wxT( "pkicad@yahoo.es" ),
|
|
|
|
wxT( "Spanish (ES)" ),
|
|
|
|
KiBitmapNew( lang_es_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Iñigo Zuluaga" ),
|
|
|
|
wxT( "inigo_zuluaga@yahoo.es" ),
|
|
|
|
wxT( "Spanish (ES)" ),
|
|
|
|
KiBitmapNew( lang_es_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Iñigo Figuero" ),
|
|
|
|
wxT( "ifs@elektroquark.com" ),
|
|
|
|
wxT( "Spanish (ES)" ),
|
|
|
|
KiBitmapNew( lang_es_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Rafael Sokolowski" ),
|
|
|
|
wxT( "rafael.sokolowski@web.de" ),
|
|
|
|
wxT( "German (DE)" ),
|
|
|
|
KiBitmapNew( lang_de_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Kenta Yonekura" ),
|
|
|
|
wxT( "yoneken@kicad.jp" ),
|
|
|
|
wxT( "Japanese (JA)" ),
|
|
|
|
KiBitmapNew( lang_jp_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Manolis Stefanis" ),
|
|
|
|
wxT( "" ),
|
|
|
|
wxT( "Greek (el_GR)" ),
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Athanasios Vlastos" ),
|
|
|
|
wxT( "" ),
|
|
|
|
wxT( "Greek (el_GR)" ),
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Milonas Kostas" ),
|
|
|
|
wxT( "milonas.ko@gmail.com" ),
|
|
|
|
wxT( "Greek (el_GR)" ),
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Michail Misirlis" ),
|
|
|
|
wxT( "mmisirlis@gmail.com" ),
|
|
|
|
wxT( "Greek (el_GR)" ),
|
|
|
|
KiBitmapNew( lang_gr_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Massimo Cioce" ),
|
|
|
|
wxT( "ciocemax@alice.it" ),
|
|
|
|
wxT( "Italian (IT)" ),
|
|
|
|
KiBitmapNew( lang_it_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Marco Ciampa" ),
|
|
|
|
wxT( "ciampix@libero.it" ),
|
|
|
|
wxT( "Italian (IT)" ),
|
|
|
|
KiBitmapNew( lang_it_xpm ) ) );
|
|
|
|
info.AddTranslator( new Contributor( wxT( "Evgeniy Ivanov" ),
|
|
|
|
wxT( "evgeniy_p_ivanov@yahoo.ca" ),
|
|
|
|
wxT( "Bulgarian (BG)" ),
|
|
|
|
KiBitmapNew( lang_bg_xpm ) ) );
|
|
|
|
|
2016-04-18 18:15:44 +00:00
|
|
|
// Maintainer who helper in translations, but not in a specific translation
|
|
|
|
#define OTHERS_IN_TRANSLATION _( "Others" )
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddTranslator( new Contributor( wxT( "Remy Halvick" ),
|
|
|
|
wxEmptyString,
|
2016-04-18 18:15:44 +00:00
|
|
|
OTHERS_IN_TRANSLATION ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddTranslator( new Contributor( wxT( "David Briscoe" ),
|
|
|
|
wxEmptyString,
|
2016-04-18 18:15:44 +00:00
|
|
|
OTHERS_IN_TRANSLATION ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddTranslator( new Contributor( wxT( "Dominique Laigle" ),
|
|
|
|
wxEmptyString,
|
2016-04-18 18:15:44 +00:00
|
|
|
OTHERS_IN_TRANSLATION ) );
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddTranslator( new Contributor( wxT( "Paul Burke" ),
|
|
|
|
wxEmptyString,
|
2016-04-18 18:15:44 +00:00
|
|
|
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" )
|
2015-11-19 20:03:02 +00:00
|
|
|
info.AddArtist( new Contributor( wxT( "Iñigo Zuluaga" ),
|
2015-11-19 15:04:12 +00:00
|
|
|
wxT( "inigo_zuluaga@yahoo.es" ),
|
2016-04-18 18:15:44 +00:00
|
|
|
ICON_CONTRIBUTION,
|
2015-11-19 15:04:12 +00:00
|
|
|
KiBitmapNew( edit_module_xpm ) ) );
|
|
|
|
info.AddArtist( new Contributor( wxT( "Konstantin Baranovskiy" ),
|
|
|
|
wxT( "baranovskiykonstantin@gmail.com" ),
|
2016-04-18 18:15:44 +00:00
|
|
|
ICON_CONTRIBUTION,
|
2015-11-19 15:04:12 +00:00
|
|
|
KiBitmapNew( edit_module_xpm ) ) );
|
2015-11-19 20:03:02 +00:00
|
|
|
info.AddArtist( new Contributor( wxT( "Fabrizio Tappero" ),
|
|
|
|
wxT( "fabrizio.tappero@gmail.com" ),
|
2016-04-18 18:15:44 +00:00
|
|
|
ICON_CONTRIBUTION,
|
2015-11-19 20:03:02 +00:00
|
|
|
KiBitmapNew( edit_module_xpm ) ) );
|
2016-04-18 18:15:44 +00:00
|
|
|
|
|
|
|
// Programm credits for 3d models
|
|
|
|
#define MODELS_3D_CONTRIBUTION _( "3D models by" )
|
2015-11-19 15:04:12 +00:00
|
|
|
info.AddArtist( new Contributor( wxT( "Christophe Boschat" ),
|
|
|
|
wxT( "nox454@hotmail.fr" ),
|
2016-04-18 18:15:44 +00:00
|
|
|
MODELS_3D_CONTRIBUTION,
|
2015-11-19 15:04:12 +00:00
|
|
|
KiBitmapNew( three_d_xpm ) ) );
|
2015-11-19 20:03:02 +00:00
|
|
|
info.AddArtist( new Contributor( wxT( "Renie Marquet" ),
|
|
|
|
wxT( "reniemarquet@uol.com.br" ),
|
2016-04-18 18:15:44 +00:00
|
|
|
MODELS_3D_CONTRIBUTION,
|
2015-11-19 20:03:02 +00:00
|
|
|
KiBitmapNew( three_d_xpm ) ) );
|
|
|
|
|
|
|
|
// Programm credits for package developers.
|
|
|
|
info.AddPackager( new Contributor( wxT( "Jean-Samuel Reynaud" ),
|
|
|
|
wxT( "js.reynaud@gmail.com" ) ) );
|
2015-11-29 19:02:42 +00:00
|
|
|
info.AddPackager( new Contributor( wxT( "Bernhard Stegmaier" ),
|
|
|
|
wxT( "stegmaier@sw-systems.de" ) ) );
|
|
|
|
info.AddPackager( new Contributor( wxT( "Adam Wolf" ),
|
2015-11-19 20:03:02 +00:00
|
|
|
wxT( "adamwolf@feelslikeburning.com" ) ) );
|
|
|
|
info.AddPackager( new Contributor( wxT( "Nick Østergaard" ),
|
|
|
|
wxT( "oe.nick@gmail.com" ) ) );
|
2010-09-03 14:33:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool ShowAboutDialog( wxWindow* parent )
|
|
|
|
{
|
|
|
|
AboutAppInfo info;
|
|
|
|
|
|
|
|
InitKiCadAboutNew( info );
|
|
|
|
|
|
|
|
dialog_about* dlg = new dialog_about( parent, info );
|
|
|
|
dlg->SetIcon( info.GetIcon() );
|
|
|
|
dlg->Show();
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Helper functions
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
2015-11-19 15:04:12 +00:00
|
|
|
* Function HtmlHyperlink
|
|
|
|
*
|
|
|
|
* wraps \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() )
|
|
|
|
hyperlink << wxT( "<a href='" ) << aUrl << wxT( "'>" ) << aUrl << wxT( "</a>" );
|
2010-09-03 14:33:09 +00:00
|
|
|
else
|
2015-11-19 15:04:12 +00:00
|
|
|
hyperlink << wxT( "<a href='" ) << aUrl << wxT( "'>" ) << aDescription << wxT( "</a>" );
|
2010-09-03 14:33:09 +00:00
|
|
|
|
|
|
|
return hyperlink;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2015-11-19 15:04:12 +00:00
|
|
|
* Function HtmlNewline
|
|
|
|
*
|
|
|
|
* creates 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 )
|
2010-09-03 14:33:09 +00:00
|
|
|
newlineTags << wxT( "<br>" );
|
|
|
|
|
|
|
|
return newlineTags;
|
|
|
|
}
|