You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
5.8 KiB

17 years ago
17 years ago
17 years ago
17 years ago
  1. /* wxWidgets about dialog */
  2. #include <wx/aboutdlg.h>
  3. #include "wx/statline.h"
  4. #include "wx/generic/aboutdlgg.h"
  5. #include "fctsys.h"
  6. #include "common.h"
  7. #include "appl_wxstruct.h"
  8. #define BUILD_VERSION "(20091024-unstable)"
  9. #ifdef HAVE_SVN_VERSION
  10. #include "version.h"
  11. wxString g_BuildVersion( wxT( KICAD_SVN_VERSION ) );
  12. #else
  13. wxString g_BuildVersion( wxT( BUILD_VERSION ) );
  14. #endif
  15. #if defined(HAVE_SVN_VERSION) || defined(HAVE_SVN_REVISION)
  16. # include "version.h"
  17. #ifndef KICAD_ABOUT_VERSION
  18. #define KICAD_ABOUT_VERSION BUILD_VERSION
  19. #endif
  20. wxString g_BuildAboutVersion( wxT( KICAD_ABOUT_VERSION ) );
  21. #else
  22. wxString g_BuildAboutVersion( wxT( BUILD_VERSION ) );
  23. #endif
  24. /**********************************/
  25. wxString SetMsg( const wxString& msg )
  26. /**********************************/
  27. /* add \n at the beginning of msg under Windows, and do nothing under other version of wxWidgets
  28. * Needed under wxWidgets 2.8 because wxGTK and wxMSW do not have the same behavior
  29. * Add Developer needs \n between names under wxMSW, and nothing under wxGTK
  30. * when displaying developer and others.
  31. * Perhaps depending on wxWidgets versions
  32. */
  33. {
  34. wxString message;
  35. #if 1 /* Windows */
  36. message = wxT( "\n" );
  37. #endif
  38. message << msg;
  39. return message;
  40. }
  41. /**************************************************/
  42. void InitKiCadAbout( wxAboutDialogInfo& info )
  43. /**************************************************/
  44. {
  45. /* Set name and title */
  46. info.SetName( wxGetApp().GetTitle() );
  47. /* Set description */
  48. wxString description;
  49. /* KiCad build version */
  50. description << ( _T( "Build: " ) ) << GetAboutBuildVersion();
  51. /* Print for wxversion */
  52. description << ( wxT( "\n\nwxWidgets " ) )
  53. << wxMAJOR_VERSION
  54. << wxT( "." )
  55. << wxMINOR_VERSION << wxT( "." )
  56. << wxRELEASE_NUMBER
  57. /* Show Unicode or Ansi version */
  58. #if wxUSE_UNICODE
  59. << ( wxT( " Unicode " ) );
  60. # else
  61. << ( wxT( " Ansi " ) );
  62. #endif
  63. /**************************
  64. * Check Operating System *
  65. **************************/
  66. #if defined __WINDOWS__
  67. description << ( wxT( "on Windows" ) );
  68. /* Check for wxMAC */
  69. # elif defined __WXMAC__
  70. description << ( wxT( "on Macintosh" ) );
  71. /* Linux 64 bits */
  72. # elif defined _LP64 && __LINUX__
  73. description << ( wxT( "on 64 Bits GNU/Linux" ) );
  74. /* Linux 32 bits */
  75. # elif defined __LINUX__
  76. description << ( wxT( "on 32 Bits GNU/Linux" ) );
  77. /* OpenBSD */
  78. # elif defined __OpenBSD__
  79. description << ( wxT ("on OpenBSD") );
  80. /* FreeBSD */
  81. # elif defined __FreeBSD__
  82. description << ( wxT ("on FreeBSD") );
  83. #endif
  84. /* Websites */
  85. description << wxT( "\n\nKiCad on the web\n\n" );
  86. description << wxT( "http://iut-tice.ujf-grenoble.fr/kicad \n" );
  87. description << wxT( "http://kicad.sourceforge.net \n" );
  88. description << wxT( "http://www.kicadlib.org" );
  89. /* Set the complete about description */
  90. info.SetDescription( description );
  91. /* Set copyright dialog */
  92. info.SetCopyright( _T( "(C) 1992-2009 KiCad Developers Team" ) );
  93. /* Set license dialog */
  94. info.SetLicence( wxString::FromAscii
  95. ( "The complete KiCad EDA Suite is released under the\n"
  96. "GNU General Public License version 2.\n"
  97. "See <http://www.gnu.org/licenses/> for more information."
  98. ));
  99. /* Add developers */
  100. info.AddDeveloper( wxT( "Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>" ) );
  101. info.AddDeveloper( SetMsg( wxT( "Dick Hollenbeck <dick@softplc.com>" ) ) );
  102. info.AddDeveloper( SetMsg( wxT( "Hauptmech <hauptmech@gmail.com>") ) );
  103. info.AddDeveloper( SetMsg( wxT( "Jerry Jacobs <jerkejacobs@gmail.com>" ) ) );
  104. info.AddDeveloper( SetMsg( wxT( "Jonas Diemer <diemer@gmx.de>" ) ) );
  105. info.AddDeveloper( SetMsg( wxT( "KBool Library <http://boolean.klaasholwerda.nl/bool.html>" ) ) );
  106. info.AddDeveloper( SetMsg( wxT( "Lorenzo <lomarcan@tin.it>" ) ) );
  107. info.AddDeveloper( SetMsg( wxT( "Marco Serantoni <marco.serantoni@gmail.com>" ) ) );
  108. info.AddDeveloper( SetMsg( wxT( "Rok Markovic <rok@kanardia.eu>" ) ) );
  109. info.AddDeveloper( SetMsg( wxT( "Tim Hanson <sideskate@gmail.com>" ) ) );
  110. info.AddDeveloper( SetMsg( wxT( "Vesa Solonen <vesa.solonen@hut.fi>" ) ) );
  111. info.AddDeveloper( SetMsg( wxT( "Wayne Stambaugh <stambaughw@verizon.net>" ) ) );
  112. /* Add document writers*/
  113. info.AddDocWriter( wxT( "Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>" ) );
  114. info.AddDocWriter( SetMsg( wxT( "Igor Plyatov <plyatov@gmail.com>" ) ) );
  115. /* Add translators */
  116. info.AddTranslator( wxT( "Czech (CZ) Martin Kratoška <martin@ok1rr.com>" ) );
  117. info.AddTranslator( SetMsg( wxT( "Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>" ) ) );
  118. info.AddTranslator( SetMsg( wxT( "French (FR) Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>" ) ) );
  119. info.AddTranslator( SetMsg( wxT( "Polish (PL) Mateusz Skowroński <skowri@gmail.com>" ) ) );
  120. info.AddTranslator( SetMsg( wxT( "Portuguese (PT) Renie Marquet <reniemarquet@uol.com.br>" ) ) );
  121. info.AddTranslator( SetMsg( wxT( "Russian (RU) Igor Plyatov <plyatov@gmail.com>" ) ) );
  122. info.AddTranslator( SetMsg( wxT( "Spanish (ES) Pedro Martin del Valle <pkicad@yahoo.es>" ) ) );
  123. info.AddTranslator( SetMsg( wxT( "Spanish (ES) Iñigo Zuluaga <inigo_zuluaga@yahoo.es>" ) ) );
  124. info.AddTranslator( SetMsg( wxT( "German (DE) Rafael Sokolowski <rafael.sokolowski@web.de>" ) ) );
  125. /* TODO are these all russian translators, placed them here now TODO
  126. TODO or else align them below other language maintainer with mail adres TODO*/
  127. info.AddTranslator( SetMsg( wxT( "\nRemy Halvick" ) ) );
  128. info.AddTranslator( SetMsg( wxT( "David Briscoe" ) ) );
  129. info.AddTranslator( SetMsg( wxT( "Dominique Laigle" ) ) );
  130. info.AddTranslator( SetMsg( wxT( "Paul Burke" ) ) );
  131. /* Add programm credits for icons */
  132. info.AddArtist( wxT( "Icons by Iñigo Zuluagaz <inigo_zuluaga@yahoo.es>" ) );
  133. info.AddArtist( SetMsg( wxT( "3D modules by Renie Marquet <reniemarquet@uol.com.br>" ) ) );
  134. info.AddArtist( SetMsg( wxT( "3D modules by Christophe Boschat <nox454@hotmail.fr>" ) ) );
  135. }