infospgm.cpp 1.83 KB
Newer Older
plyatov's avatar
plyatov committed
1 2 3 4 5 6 7 8 9
		/****************************************************/
		/* Affichage du panneau d'information (copyright..) */
		/* Commun a CVPCB, EESCHEMA et PCBNEW				*/
		/****************************************************/

#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"

10 11 12 13
#ifdef KICAD_PYTHON
#include  <pyhandler.h>
#endif

plyatov's avatar
plyatov committed
14 15 16 17 18
// Import:
extern wxString g_Main_Title;

wxString MsgInfos(
#ifdef GERBVIEW
19
wxT("** GERBVIEW  (jul 2001 .. 2007) **")
plyatov's avatar
plyatov committed
20 21
#else
#ifdef PCBNEW
22
wxT("** PCBNEW  (sept 1992 .. 2007) **")
plyatov's avatar
plyatov committed
23 24 25 26
#endif
#endif

#ifdef CVPCB
27
wxT("** CVPCB  (sept 1992 .. 2007) **")
plyatov's avatar
plyatov committed
28 29 30
#endif

#ifdef KICAD
31
wxT("** KICAD  (jul 2000 .. 2007) **")
plyatov's avatar
plyatov committed
32 33 34
#endif

#ifdef EESCHEMA
35
wxT("** EESCHEMA  (sept 1994 .. 2007) **")
plyatov's avatar
plyatov committed
36 37 38
#endif
);

39
// Routines Locales
plyatov's avatar
plyatov committed
40 41 42 43 44

/*******************************************/
void Print_Kicad_Infos(wxWindow * frame)
/*******************************************/
{
45 46
wxString AboutCaption = wxT("About ");

plyatov's avatar
plyatov committed
47 48 49 50 51 52 53 54 55
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
56

57 58 59 60 61 62
#ifdef KICAD_PYTHON
	Msg << wxT("\n");
	Msg << wxT( "python : " );
	Msg << wxString::FromAscii( PyHandler::GetInstance()->GetVersion() );
#endif

plyatov's avatar
plyatov committed
63
	Msg << wxT("\n\n") << _("Author:");
64
	Msg << wxT(" JP CHARRAS\n\n") << _("Based on wxWidgets ");
plyatov's avatar
plyatov committed
65 66
	Msg << wxMAJOR_VERSION << wxT(".") <<
		wxMINOR_VERSION << wxT(".") << wxRELEASE_NUMBER;
67
	if( wxSUBRELEASE_NUMBER )
plyatov's avatar
plyatov committed
68 69 70 71
		Msg << wxT(".") << wxSUBRELEASE_NUMBER;
	Msg << _("\n\nGPL License");
	Msg << _("\n\nWeb sites:\n");
	Msg << wxT("http://iut-tice.ujf-grenoble.fr/kicad/\n");
72
	Msg << wxT("http://www.gipsa-lab.inpg.fr/realise_au_lis/kicad/");
plyatov's avatar
plyatov committed
73

74 75 76
	AboutCaption << g_Main_Title << wxT(" ") << GetBuildVersion();

	wxMessageBox(Msg, AboutCaption, wxICON_INFORMATION, frame);
plyatov's avatar
plyatov committed
77 78
}