2007-05-06 16:03:28 +00:00
|
|
|
/****************************************************/
|
|
|
|
/* Affichage du panneau d'information (copyright..) */
|
|
|
|
/* Commun a CVPCB, EESCHEMA et PCBNEW */
|
|
|
|
/****************************************************/
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
|
|
|
wxString MsgInfos(
|
|
|
|
#ifdef GERBVIEW
|
2007-07-25 09:02:05 +00:00
|
|
|
wxT("** GERBVIEW (jul 2001 .. 2007) **")
|
2007-05-06 16:03:28 +00:00
|
|
|
#else
|
|
|
|
#ifdef PCBNEW
|
2007-07-25 09:02:05 +00:00
|
|
|
wxT("** PCBNEW (sept 1992 .. 2007) **")
|
2007-05-06 16:03:28 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CVPCB
|
2007-07-25 09:02:05 +00:00
|
|
|
wxT("** CVPCB (sept 1992 .. 2007) **")
|
2007-05-06 16:03:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef KICAD
|
2007-08-03 02:00:29 +00:00
|
|
|
wxT("** KICAD (jul 2000 .. 2007) **")
|
2007-05-06 16:03:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef EESCHEMA
|
2007-07-25 09:02:05 +00:00
|
|
|
wxT("** EESCHEMA (sept 1994 .. 2007) **")
|
2007-05-06 16:03:28 +00:00
|
|
|
#endif
|
|
|
|
);
|
|
|
|
|
2007-08-16 08:43:36 +00:00
|
|
|
// Routines Locales
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
/*******************************************/
|
|
|
|
void Print_Kicad_Infos(wxWindow * frame)
|
|
|
|
/*******************************************/
|
|
|
|
{
|
2007-08-16 08:43:36 +00:00
|
|
|
wxString AboutCaption = wxT("About ");
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
wxString Msg = MsgInfos;
|
|
|
|
Msg << wxT("\n\n") << _("Build Version:") << wxT("\n") ;
|
|
|
|
|
|
|
|
Msg << g_Main_Title << wxT(" ") << GetBuildVersion();
|
|
|
|
#if wxUSE_UNICODE
|
|
|
|
Msg << wxT(" - Unicode version");
|
|
|
|
#else
|
|
|
|
Msg << wxT(" - Ansi version");
|
|
|
|
#endif
|
2007-08-03 02:00:29 +00:00
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
#ifdef KICAD_PYTHON
|
|
|
|
Msg << wxT("\n");
|
|
|
|
Msg << wxT( "python : " );
|
|
|
|
Msg << wxString::FromAscii( PyHandler::GetInstance()->GetVersion() );
|
|
|
|
#endif
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
Msg << wxT("\n\n") << _("Author:");
|
2007-08-03 02:00:29 +00:00
|
|
|
Msg << wxT(" JP CHARRAS\n\n") << _("Based on wxWidgets ");
|
2007-05-06 16:03:28 +00:00
|
|
|
Msg << wxMAJOR_VERSION << wxT(".") <<
|
|
|
|
wxMINOR_VERSION << wxT(".") << wxRELEASE_NUMBER;
|
2007-08-16 08:43:36 +00:00
|
|
|
if( wxSUBRELEASE_NUMBER )
|
2007-05-06 16:03:28 +00:00
|
|
|
Msg << wxT(".") << wxSUBRELEASE_NUMBER;
|
|
|
|
Msg << _("\n\nGPL License");
|
|
|
|
Msg << _("\n\nWeb sites:\n");
|
|
|
|
Msg << wxT("http://iut-tice.ujf-grenoble.fr/kicad/\n");
|
2007-05-28 18:09:49 +00:00
|
|
|
Msg << wxT("http://www.gipsa-lab.inpg.fr/realise_au_lis/kicad/");
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2007-08-16 08:43:36 +00:00
|
|
|
AboutCaption << g_Main_Title << wxT(" ") << GetBuildVersion();
|
|
|
|
|
|
|
|
wxMessageBox(Msg, AboutCaption, wxICON_INFORMATION, frame);
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|