2008-05-30 18:06:21 +00:00
|
|
|
/****************************************************/
|
|
|
|
/* Display a generic info about kikac (copyright..) */
|
|
|
|
/* Common tp CVPCB, EESCHEMA, PCBNEW and GERBVIEW */
|
|
|
|
/****************************************************/
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "gr_basic.h"
|
|
|
|
#include "common.h"
|
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
#ifdef KICAD_PYTHON
|
|
|
|
#include <pyhandler.h>
|
|
|
|
#endif
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
// Import:
|
|
|
|
extern wxString g_Main_Title;
|
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
/* Program title strings used in about dialog. They are kept here to make
|
2008-01-28 05:49:15 +00:00
|
|
|
* it easy to update the copyright dates. */
|
2008-05-30 18:06:21 +00:00
|
|
|
wxString g_KicadAboutTitle = wxT( "** KICAD (jul 2000 .. 2008) **" );
|
|
|
|
wxString g_CvpcbAboutTitle = wxT( "** CVPCB (sept 1992 .. 2008) **" );
|
|
|
|
wxString g_EeschemaAboutTitle = wxT( "** EESCHEMA (sept 1994 .. 2008) **" );
|
|
|
|
wxString g_PcbnewAboutTitle = wxT( "** PCBNEW (sept 1992 .. 2008) **" );
|
|
|
|
wxString g_GerbviewAboutTitle = wxT( "** GERBVIEW (jul 2001 .. 2008) **" );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
/**************************************************************/
|
|
|
|
void Print_Kicad_Infos( wxWindow* frame, const wxString& title,
|
|
|
|
const wxString& aExtra_infos )
|
|
|
|
/**************************************************************/
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2008-05-30 18:06:21 +00:00
|
|
|
wxString AboutCaption = wxT( "About " );
|
2008-01-28 05:49:15 +00:00
|
|
|
wxString Msg = title;
|
2007-08-16 08:43:36 +00:00
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
Msg << wxT( "\n\n" ) << _( "Build Version:" ) << wxT( "\n" );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
Msg << g_Main_Title << wxT( " " ) << GetBuildVersion();
|
2007-05-06 16:03:28 +00:00
|
|
|
#if wxUSE_UNICODE
|
2008-05-30 18:06:21 +00:00
|
|
|
Msg << wxT( " - Unicode version" );
|
2007-05-06 16:03:28 +00:00
|
|
|
#else
|
2008-05-30 18:06:21 +00:00
|
|
|
Msg << wxT( " - Ansi version" );
|
2007-05-06 16:03:28 +00:00
|
|
|
#endif
|
2007-08-03 02:00:29 +00:00
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
#ifdef KICAD_PYTHON
|
2008-05-30 18:06:21 +00:00
|
|
|
Msg << wxT( "\n" );
|
|
|
|
Msg << wxT( "python : " );
|
|
|
|
Msg << wxString::FromAscii( PyHandler::GetInstance()->GetVersion() );
|
2007-05-28 18:09:49 +00:00
|
|
|
#endif
|
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
Msg << wxT( "\n\n" ) << _( "Author:" );
|
|
|
|
Msg << wxT( " JP CHARRAS\n\n" ) << _( "Based on wxWidgets " );
|
|
|
|
Msg << wxMAJOR_VERSION << wxT( "." ) <<
|
|
|
|
wxMINOR_VERSION << wxT( "." ) << wxRELEASE_NUMBER;
|
|
|
|
if( wxSUBRELEASE_NUMBER )
|
|
|
|
Msg << wxT( "." ) << wxSUBRELEASE_NUMBER;
|
|
|
|
Msg << _( "\n\nGPL License" );
|
|
|
|
Msg << _( "\n\nAuthor's sites:\n" );
|
|
|
|
Msg << wxT( "http://iut-tice.ujf-grenoble.fr/kicad/\n" );
|
|
|
|
Msg << wxT( "http://www.gipsa-lab.inpg.fr/realise_au_lis/kicad/" );
|
|
|
|
Msg << _( "\n\nInternational wiki:\n" );
|
|
|
|
Msg << wxT( "http://kicad.sourceforge.net/\n" );
|
|
|
|
Msg << aExtra_infos;
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
AboutCaption << g_Main_Title << wxT( " " ) << GetBuildVersion();
|
2007-08-16 08:43:36 +00:00
|
|
|
|
2008-05-30 18:06:21 +00:00
|
|
|
wxMessageBox( Msg, AboutCaption, wxICON_INFORMATION, frame );
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|