2008-08-15 16:38:05 +00:00
|
|
|
/* wxWidgets about dialog */
|
|
|
|
#include <wx/aboutdlg.h>
|
|
|
|
#include "wx/statline.h"
|
|
|
|
#include "wx/generic/aboutdlgg.h"
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "common.h"
|
2009-04-05 20:49:15 +00:00
|
|
|
#include "appl_wxstruct.h"
|
|
|
|
|
|
|
|
|
2009-10-27 19:30:32 +00:00
|
|
|
#define BUILD_VERSION "(20091027-unstable)"
|
2009-04-05 20:49:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_SVN_VERSION
|
2009-05-21 17:42:42 +00:00
|
|
|
#include "version.h"
|
2009-06-25 20:45:27 +00:00
|
|
|
wxString g_BuildVersion( wxT( KICAD_SVN_VERSION ) );
|
2009-04-05 20:49:15 +00:00
|
|
|
#else
|
2009-06-25 20:45:27 +00:00
|
|
|
wxString g_BuildVersion( wxT( BUILD_VERSION ) );
|
2009-04-05 20:49:15 +00:00
|
|
|
#endif
|
|
|
|
|
2009-06-25 20:45:27 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
#if defined(HAVE_SVN_VERSION) || defined(HAVE_SVN_REVISION)
|
2009-05-21 17:42:42 +00:00
|
|
|
# include "version.h"
|
2009-06-25 20:45:27 +00:00
|
|
|
#ifndef KICAD_ABOUT_VERSION
|
|
|
|
#define KICAD_ABOUT_VERSION BUILD_VERSION
|
|
|
|
#endif
|
|
|
|
wxString g_BuildAboutVersion( wxT( KICAD_ABOUT_VERSION ) );
|
2009-04-05 20:49:15 +00:00
|
|
|
#else
|
2009-06-25 20:45:27 +00:00
|
|
|
wxString g_BuildAboutVersion( wxT( BUILD_VERSION ) );
|
2009-04-05 20:49:15 +00:00
|
|
|
#endif
|
2008-08-15 16:38:05 +00:00
|
|
|
|
|
|
|
|
2008-08-25 05:37:04 +00:00
|
|
|
/**********************************/
|
2009-02-04 15:25:03 +00:00
|
|
|
wxString SetMsg( const wxString& msg )
|
2008-08-25 05:37:04 +00:00
|
|
|
/**********************************/
|
|
|
|
/* add \n at the beginning of msg under Windows, and do nothing under other version of wxWidgets
|
|
|
|
* Needed under wxWidgets 2.8 because wxGTK and wxMSW do not have the same behavior
|
2008-09-10 12:02:59 +00:00
|
|
|
* Add Developer needs \n between names under wxMSW, and nothing under wxGTK
|
2008-08-25 05:37:04 +00:00
|
|
|
* when displaying developer and others.
|
2008-09-10 12:02:59 +00:00
|
|
|
* Perhaps depending on wxWidgets versions
|
2008-09-09 11:32:21 +00:00
|
|
|
*/
|
2008-08-25 05:37:04 +00:00
|
|
|
{
|
2008-12-19 17:46:32 +00:00
|
|
|
wxString message;
|
2008-09-09 11:32:21 +00:00
|
|
|
|
2008-12-29 11:26:15 +00:00
|
|
|
#if 1 /* Windows */
|
2008-12-19 17:46:32 +00:00
|
|
|
message = wxT( "\n" );
|
2008-09-10 12:02:59 +00:00
|
|
|
#endif
|
2008-12-19 17:46:32 +00:00
|
|
|
message << msg;
|
|
|
|
return message;
|
2008-08-25 05:37:04 +00:00
|
|
|
}
|
|
|
|
|
2008-08-15 16:38:05 +00:00
|
|
|
|
|
|
|
/**************************************************/
|
2009-02-04 15:25:03 +00:00
|
|
|
void InitKiCadAbout( wxAboutDialogInfo& info )
|
2008-08-15 16:38:05 +00:00
|
|
|
/**************************************************/
|
|
|
|
{
|
2008-12-19 17:46:32 +00:00
|
|
|
/* Set name and title */
|
2009-04-05 20:49:15 +00:00
|
|
|
info.SetName( wxGetApp().GetTitle() );
|
2008-12-19 17:46:32 +00:00
|
|
|
|
|
|
|
/* Set description */
|
|
|
|
wxString description;
|
2008-08-15 16:38:05 +00:00
|
|
|
|
2008-12-19 17:46:32 +00:00
|
|
|
/* KiCad build version */
|
|
|
|
description << ( _T( "Build: " ) ) << GetAboutBuildVersion();
|
2008-08-15 16:38:05 +00:00
|
|
|
|
2008-12-19 17:46:32 +00:00
|
|
|
/* Print for wxversion */
|
|
|
|
description << ( wxT( "\n\nwxWidgets " ) )
|
|
|
|
<< wxMAJOR_VERSION
|
|
|
|
<< wxT( "." )
|
|
|
|
<< wxMINOR_VERSION << wxT( "." )
|
|
|
|
<< wxRELEASE_NUMBER
|
2008-08-22 13:12:22 +00:00
|
|
|
|
2008-12-19 17:46:32 +00:00
|
|
|
/* Show Unicode or Ansi version */
|
2008-08-15 16:38:05 +00:00
|
|
|
#if wxUSE_UNICODE
|
2009-09-17 17:48:40 +00:00
|
|
|
<< ( wxT( " Unicode " ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
# else
|
2009-09-17 17:48:40 +00:00
|
|
|
<< ( wxT( " Ansi " ) );
|
2008-08-22 13:12:22 +00:00
|
|
|
#endif
|
|
|
|
|
2008-12-29 11:26:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**************************
|
|
|
|
* Check Operating System *
|
|
|
|
**************************/
|
2008-08-25 05:37:04 +00:00
|
|
|
#if defined __WINDOWS__
|
2008-09-09 11:32:21 +00:00
|
|
|
description << ( wxT( "on Windows" ) );
|
2008-08-22 13:12:22 +00:00
|
|
|
|
2008-12-19 17:46:32 +00:00
|
|
|
/* Check for wxMAC */
|
|
|
|
# elif defined __WXMAC__
|
2009-04-05 20:49:15 +00:00
|
|
|
description << ( wxT( "on Macintosh" ) );
|
2008-08-22 13:12:22 +00:00
|
|
|
|
2008-12-19 17:46:32 +00:00
|
|
|
/* Linux 64 bits */
|
|
|
|
# elif defined _LP64 && __LINUX__
|
|
|
|
description << ( wxT( "on 64 Bits GNU/Linux" ) );
|
|
|
|
|
|
|
|
/* Linux 32 bits */
|
|
|
|
# elif defined __LINUX__
|
|
|
|
description << ( wxT( "on 32 Bits GNU/Linux" ) );
|
2008-12-29 11:26:15 +00:00
|
|
|
|
|
|
|
/* OpenBSD */
|
|
|
|
# elif defined __OpenBSD__
|
|
|
|
description << ( wxT ("on OpenBSD") );
|
|
|
|
|
|
|
|
/* FreeBSD */
|
|
|
|
# elif defined __FreeBSD__
|
|
|
|
description << ( wxT ("on FreeBSD") );
|
|
|
|
|
2008-08-15 16:38:05 +00:00
|
|
|
#endif
|
|
|
|
|
2009-09-17 17:48:40 +00:00
|
|
|
/* Websites */
|
2008-12-29 11:26:15 +00:00
|
|
|
description << wxT( "\n\nKiCad on the web\n\n" );
|
2008-12-19 17:46:32 +00:00
|
|
|
description << wxT( "http://iut-tice.ujf-grenoble.fr/kicad \n" );
|
|
|
|
description << wxT( "http://kicad.sourceforge.net \n" );
|
|
|
|
description << wxT( "http://www.kicadlib.org" );
|
|
|
|
|
|
|
|
/* Set the complete about description */
|
|
|
|
info.SetDescription( description );
|
|
|
|
|
|
|
|
/* Set copyright dialog */
|
|
|
|
info.SetCopyright( _T( "(C) 1992-2009 KiCad Developers Team" ) );
|
|
|
|
|
|
|
|
/* Set license dialog */
|
|
|
|
info.SetLicence( wxString::FromAscii
|
|
|
|
( "The complete KiCad EDA Suite is released under the\n"
|
|
|
|
"GNU General Public License version 2.\n"
|
|
|
|
"See <http://www.gnu.org/licenses/> for more information."
|
|
|
|
));
|
|
|
|
|
|
|
|
/* Add developers */
|
2009-03-20 16:05:36 +00:00
|
|
|
info.AddDeveloper( wxT( "Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>" ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Dick Hollenbeck <dick@softplc.com>" ) ) );
|
2009-06-17 17:08:39 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Hauptmech <hauptmech@gmail.com>") ) );
|
2009-01-31 18:08:47 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Jerry Jacobs <jerkejacobs@gmail.com>" ) ) );
|
|
|
|
info.AddDeveloper( SetMsg( wxT( "Jonas Diemer <diemer@gmx.de>" ) ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "KBool Library <http://boolean.klaasholwerda.nl/bool.html>" ) ) );
|
2009-06-28 18:13:55 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Lorenzo <lomarcan@tin.it>" ) ) );
|
2009-06-25 20:45:27 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Marco Serantoni <marco.serantoni@gmail.com>" ) ) );
|
2009-01-31 18:08:47 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Rok Markovic <rok@kanardia.eu>" ) ) );
|
2009-02-06 11:45:35 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Tim Hanson <sideskate@gmail.com>" ) ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
info.AddDeveloper( SetMsg( wxT( "Vesa Solonen <vesa.solonen@hut.fi>" ) ) );
|
|
|
|
info.AddDeveloper( SetMsg( wxT( "Wayne Stambaugh <stambaughw@verizon.net>" ) ) );
|
|
|
|
|
|
|
|
/* Add document writers*/
|
2009-04-21 17:56:27 +00:00
|
|
|
info.AddDocWriter( wxT( "Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>" ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
info.AddDocWriter( SetMsg( wxT( "Igor Plyatov <plyatov@gmail.com>" ) ) );
|
|
|
|
|
|
|
|
/* Add translators */
|
|
|
|
info.AddTranslator( wxT( "Czech (CZ) Martin Kratoška <martin@ok1rr.com>" ) );
|
|
|
|
info.AddTranslator( SetMsg( wxT( "Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>" ) ) );
|
2009-03-22 11:34:14 +00:00
|
|
|
info.AddTranslator( SetMsg( wxT( "French (FR) Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>" ) ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
info.AddTranslator( SetMsg( wxT( "Polish (PL) Mateusz Skowroński <skowri@gmail.com>" ) ) );
|
|
|
|
info.AddTranslator( SetMsg( wxT( "Portuguese (PT) Renie Marquet <reniemarquet@uol.com.br>" ) ) );
|
|
|
|
info.AddTranslator( SetMsg( wxT( "Russian (RU) Igor Plyatov <plyatov@gmail.com>" ) ) );
|
2008-12-29 11:26:15 +00:00
|
|
|
info.AddTranslator( SetMsg( wxT( "Spanish (ES) Pedro Martin del Valle <pkicad@yahoo.es>" ) ) );
|
|
|
|
info.AddTranslator( SetMsg( wxT( "Spanish (ES) Iñigo Zuluaga <inigo_zuluaga@yahoo.es>" ) ) );
|
2009-09-28 19:28:22 +00:00
|
|
|
info.AddTranslator( SetMsg( wxT( "German (DE) Rafael Sokolowski <rafael.sokolowski@web.de>" ) ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
|
|
|
|
/* TODO are these all russian translators, placed them here now TODO
|
|
|
|
TODO or else align them below other language maintainer with mail adres TODO*/
|
2009-02-22 12:59:28 +00:00
|
|
|
info.AddTranslator( SetMsg( wxT( "\nRemy Halvick" ) ) );
|
2008-12-29 11:26:15 +00:00
|
|
|
info.AddTranslator( SetMsg( wxT( "David Briscoe" ) ) );
|
|
|
|
info.AddTranslator( SetMsg( wxT( "Dominique Laigle" ) ) );
|
|
|
|
info.AddTranslator( SetMsg( wxT( "Paul Burke" ) ) );
|
2008-12-19 17:46:32 +00:00
|
|
|
|
|
|
|
/* Add programm credits for icons */
|
2009-02-22 12:59:28 +00:00
|
|
|
info.AddArtist( wxT( "Icons by Iñigo Zuluagaz <inigo_zuluaga@yahoo.es>" ) );
|
2009-02-23 07:20:01 +00:00
|
|
|
info.AddArtist( SetMsg( wxT( "3D modules by Renie Marquet <reniemarquet@uol.com.br>" ) ) );
|
2009-03-02 13:43:52 +00:00
|
|
|
info.AddArtist( SetMsg( wxT( "3D modules by Christophe Boschat <nox454@hotmail.fr>" ) ) );
|
2008-08-15 16:38:05 +00:00
|
|
|
}
|