kicad/common/about_kicad.cpp

123 lines
4.1 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
2008-09-10 12:02:59 +00:00
* Add Developer needs \n between names under wxMSW, and nothing under wxGTK
* 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
*/
{
wxString tmp;
2008-09-09 11:32:21 +00:00
2008-09-10 12:02:59 +00:00
// #ifdef __WINDOWS__
#if 1
2008-09-09 11:32:21 +00:00
tmp = wxT( "\n" );
2008-09-10 12:02:59 +00:00
#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-09-10 06:23:52 +00:00
description << ( wxT( "\n\nUsing " ) );
description << ( wxT( "wxWidgets " ) );
description << wxMAJOR_VERSION << wxT( "." ) << wxMINOR_VERSION << wxT( "." ) <<
wxRELEASE_NUMBER;
2008-08-15 16:38:05 +00:00
#if wxUSE_UNICODE
2008-09-10 06:23:52 +00:00
description << ( wxT( " Unicode " ) );
2008-08-15 16:38:05 +00:00
#else
2008-09-10 06:23:52 +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\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( "Jerry Jacobs <jerkejacobs@gmail.com>" ) ) );
2008-09-09 11:32:21 +00:00
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 */
info.AddTranslator( wxT( "Czech (CZ) Martin Kratoška <martin@ok1rr.com>" ) );
2008-09-09 11:32:21 +00:00
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>" ) ) );
2008-09-09 14:17:04 +00:00
info.AddTranslator( SetMsg( wxT( "Polish (PL) Mateusz Skowroński <skowri@gmail.com>" ) ) );
2008-09-09 11:32:21 +00:00
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(
2008-09-09 17:56:36 +00:00
" David Briscoe, Remy Halvick, Boris Barbour, Dominique Laigle, Paul Burke" ) ) );
2008-09-09 11:32:21 +00:00
info.AddTranslator( SetMsg( wxT( "Pedro Martin del Valle, Inigo Zuluaga")));
2008-09-09 17:56:36 +00:00
/* Add programm credits for icons */
info.AddArtist( wxT( "Icons: Inigo Zuluaga" ) );
2008-08-15 16:38:05 +00:00
}