kicad/common/about_kicad.cpp

122 lines
4.0 KiB
C++
Raw Normal View History

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 "gr_basic.h"
#include "common.h"
extern wxString g_Main_Title; // Import program title
/**********************************/
2008-09-09 11:32:21 +00:00
wxString SetMsg( const wxString& msg )
/**********************************/
2008-09-09 11:32:21 +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
* AddDeveloper needs \n between names under wxGTK, and nothing under wxMSW
* when displaying developer and others.
* can be removed for next wxWidgets versions when this wxWidgets bug will be solved
2008-09-09 11:32:21 +00:00
*/
{
wxString tmp;
2008-09-09 11:32:21 +00:00
#ifdef __WINDOWS__
2008-09-09 11:32:21 +00:00
tmp = wxT( "\n" );
#endif
tmp << msg;
return tmp;
}
2008-08-15 16:38:05 +00:00
/**************************************************/
2008-09-09 11:32:21 +00:00
void InitKiCadAbout( wxAboutDialogInfo& info )
2008-08-15 16:38:05 +00:00
/**************************************************/
{
/* Set name and title */
2008-09-09 11:32:21 +00:00
info.SetName( g_Main_Title );
2008-08-15 16:38:05 +00:00
/* Set description */
wxString description;
2008-09-09 11:32:21 +00:00
description << ( _T( "Build: " ) ) << GetAboutBuildVersion();
/* Check for unicode */
2008-08-15 16:38:05 +00:00
#if wxUSE_UNICODE
2008-09-09 11:32:21 +00:00
description << ( wxT( " Unicode " ) );
2008-08-15 16:38:05 +00:00
#else
2008-09-09 11:32:21 +00:00
description << ( wxT( " Ansi " ) );
#endif
/* Check for wxMSW */
#if defined __WINDOWS__
2008-09-09 11:32:21 +00:00
description << ( wxT( "on Windows" ) );
/* Check for wxMAC */
#elif defined __WXMAC__
2008-09-09 11:32:21 +00:00
description << ( wxT( "on Macintosch" ) );
/* Check for linux and arch */
#elif defined __LINUX__
2008-09-09 11:32:21 +00:00
description << ( wxT( "on GNU/Linux " ) );
#endif
2008-08-22 14:17:04 +00:00
#ifdef _LP64
2008-09-09 11:32:21 +00:00
description << ( wxT( " 64 bits" ) );
2008-08-22 13:36:05 +00:00
#else
2008-09-09 11:32:21 +00:00
description << ( wxT( " 32 bits" ) );
2008-08-15 16:38:05 +00:00
#endif
2008-09-09 11:32:21 +00:00
description << ( wxT( "\n with wxWidgets " ) );
description << wxMAJOR_VERSION << wxT( "." ) << wxMINOR_VERSION << wxT( "." ) <<
wxRELEASE_NUMBER;
2008-08-15 16:38:05 +00:00
2008-09-09 11:32:21 +00:00
description << wxT( "\n\nWeb sites:\n" );
description << wxT( "http://iut-tice.ujf-grenoble.fr/kicad/" );
description << wxT( "\n" );
description << wxT( "http://kicad.sourceforge.net/" );
description << wxT( "\n" );
2008-09-09 11:32:21 +00:00
info.SetDescription( description );
2008-08-15 16:38:05 +00:00
/* Set copyright */
2008-09-09 11:32:21 +00:00
info.SetCopyright( _T( "(C) 1992-2008 KiCad Developers Team" ) );
2008-08-15 16:38:05 +00:00
/* Set license */
2008-09-09 11:32:21 +00:00
info.SetLicence( wxString::FromAscii
(
"The complete KiCad EDA Suite is released under the following license: \n"
"\n"
"GNU General Public License version 2\n"
"See <http://www.gnu.org/licenses/> for more information"
) );
2008-08-15 16:38:05 +00:00
/* Add developers */
2008-09-09 11:32:21 +00:00
info.AddDeveloper( wxT( "Jean-Pierre Charras <jean-pierre.charras@inpg.fr>" ) );
info.AddDeveloper( SetMsg( wxT( "Dick Hollenbeck <dick@softplc.com>" ) ) );
info.AddDeveloper( SetMsg( wxT( "kbool library: http://boolean.klaasholwerda.nl/bool.html" ) ) );
2008-08-15 16:38:05 +00:00
/* Add document writers */
2008-09-09 11:32:21 +00:00
info.AddDocWriter( wxT( "Jean-Pierre Charras <jean-pierre.charras@inpg.fr>" ) );
info.AddDocWriter( SetMsg( wxT( "Igor Plyatov <plyatov@gmail.com>" ) ) );
2008-08-15 16:38:05 +00:00
/* Add translators */
2008-09-09 11:32:21 +00:00
info.AddTranslator( wxT( "Czech (CZ) Milan Horák <stranger@tiscali.cz>" ) ); /* fix for translation ! */
info.AddTranslator( SetMsg( wxT( "Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>" ) ) );
info.AddTranslator( SetMsg( wxT(
"French (FR) Jean-Pierre Charras <jean-pierre.charras@inpg.fr>" ) ) );
info.AddTranslator( SetMsg( wxT( "Polish (PL) Mateusz Skowronski <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>" ) ) );
info.AddTranslator( SetMsg( wxT(
" David Briscoe, Jean Dupont (Remy),Boris Barbour, Dominique Laigle, Paul Burke" ) ) );
info.AddTranslator( SetMsg( wxT( "Pedro Martin del Valle, Inigo Zuluaga")));
/* Add programm credits */
#if 0 // TODO
2008-09-09 11:32:21 +00:00
info.AddArtist( wxT( "" ) );
#endif
2008-08-15 16:38:05 +00:00
}