15 changed files with 106 additions and 102 deletions
-
1CMakeLists.txt
-
2CMakeModules/CreateSVNVersionHeader.cmake
-
1CMakeModules/config.h.cmake
-
2common/CMakeLists.txt
-
51common/about_kicad.cpp
-
16common/basicframe.cpp
-
9common/common.cpp
-
65common/infospgm.cpp
-
2cvpcb/cvframe.cpp
-
2eeschema/schframe.cpp
-
2gerbview/gerberframe.cpp
-
12include/build_version.h
-
23include/common.h
-
2kicad/mainframe.cpp
-
18pcbnew/pcbframe.cpp
@ -0,0 +1,51 @@ |
|||
/* 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
|
|||
|
|||
|
|||
|
|||
/**************************************************/ |
|||
void InitKiCadAbout(wxAboutDialogInfo& info) |
|||
/**************************************************/ |
|||
{ |
|||
/* Set name and title */ |
|||
info.SetName(g_Main_Title); |
|||
|
|||
/* Set description */ |
|||
wxString description; |
|||
|
|||
description << (_T("Build: ")) << GetAboutBuildVersion(); |
|||
#if wxUSE_UNICODE
|
|||
description << (_T( " Unicode" )); |
|||
#else
|
|||
description << (_T( " Ansi" )); |
|||
#endif
|
|||
|
|||
info.SetDescription(description); |
|||
|
|||
/* Set copyright */ |
|||
info.SetCopyright(_T("(C) 1992-2008 KiCad Developers Team")); |
|||
|
|||
/* Set license */ |
|||
info.SetLicence(wxString::FromAscii |
|||
( |
|||
"GNU GPLv3" |
|||
)); |
|||
|
|||
/* Add developers */ |
|||
info.AddDeveloper(_T("Jean-Pierre Charras <jean-pierre.charras@inpg.fr>")); |
|||
|
|||
/* Add document writers */ |
|||
info.AddDocWriter(_T("Jean-Pierre Charras <jean-pierre.charras@inpg.fr>")); |
|||
|
|||
/* Add translators */ |
|||
info.AddTranslator(_T("Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>")); |
|||
info.AddTranslator(_T("French (FR) Jean-Pierre Charras <jean-pierre.charras@inpg.fr>")); |
|||
} |
@ -1,65 +0,0 @@ |
|||
/****************************************************/ |
|||
/* Display a generic info about kikac (copyright..) */ |
|||
/* Common tp CVPCB, EESCHEMA, PCBNEW and GERBVIEW */ |
|||
/****************************************************/ |
|||
|
|||
#include "fctsys.h"
|
|||
#include "gr_basic.h"
|
|||
#include "common.h"
|
|||
|
|||
#ifdef KICAD_PYTHON
|
|||
#include <pyhandler.h>
|
|||
#endif
|
|||
|
|||
// Import:
|
|||
extern wxString g_Main_Title; |
|||
|
|||
/* Program title strings used in about dialog. They are kept here to make
|
|||
* it easy to update the copyright dates. */ |
|||
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) **" ); |
|||
|
|||
/**************************************************************/ |
|||
void Print_Kicad_Infos( wxWindow* frame, const wxString& title, |
|||
const wxString& aExtra_infos ) |
|||
/**************************************************************/ |
|||
{ |
|||
wxString AboutCaption = wxT( "About " ); |
|||
wxString Msg = title; |
|||
|
|||
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
|
|||
|
|||
#ifdef KICAD_PYTHON
|
|||
Msg << wxT( "\n" ); |
|||
Msg << wxT( "python : " ); |
|||
Msg << wxString::FromAscii( PyHandler::GetInstance()->GetVersion() ); |
|||
#endif
|
|||
|
|||
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; |
|||
|
|||
AboutCaption << g_Main_Title << wxT( " " ) << GetBuildVersion(); |
|||
|
|||
wxMessageBox( Msg, AboutCaption, wxICON_INFORMATION, frame ); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue