KiCad PCB EDA Suite
AboutDialog_main.cpp File Reference
#include <boost/version.hpp>
#include <wx/aboutdlg.h>
#include <wx/arrimpl.cpp>
#include <wx/textctrl.h>
#include <wx/utils.h>
#include <bitmaps.h>
#include <build_version.h>
#include <common.h>
#include <pgm_base.h>
#include <wxstruct.h>
#include "aboutinfo.h"
#include "dialog_about.h"

Go to the source code of this file.

Macros

#define OTHERS_IN_TRANSLATION   _( "Others" )
 
#define ICON_CONTRIBUTION   _( "Icons by" )
 
#define MODELS_3D_CONTRIBUTION   _( "3D models by" )
 

Functions

static wxString HtmlHyperlink (const wxString &aUrl, const wxString &aDescription)
 Helper functions. More...
 
static wxString HtmlNewline (const unsigned int aCount)
 Function HtmlNewline. More...
 
static void InitKiCadAboutNew (AboutAppInfo &info)
 Initializes the AboutAppInfo object with application specific information. More...
 
bool ShowAboutDialog (wxWindow *parent)
 

Macro Definition Documentation

#define ICON_CONTRIBUTION   _( "Icons by" )

Referenced by InitKiCadAboutNew().

#define MODELS_3D_CONTRIBUTION   _( "3D models by" )

Referenced by InitKiCadAboutNew().

#define OTHERS_IN_TRANSLATION   _( "Others" )

Referenced by InitKiCadAboutNew().

Function Documentation

static wxString HtmlHyperlink ( const wxString &  aUrl,
const wxString &  aDescription 
)
static

Helper functions.

Function HtmlHyperlink

wraps aUrl with a HTML anchor tag containing a hyperlink text reference to form a HTML hyperlink.

Parameters
aUrlthe url that will be embedded in an anchor tag containing a hyperlink reference
aDescriptionthe optional describing text that will be represented as a hyperlink. If not specified the url will be used as hyperlink.
Returns
a HTML conform hyperlink like description

Definition at line 493 of file AboutDialog_main.cpp.

Referenced by InitKiCadAboutNew().

494 {
495  wxString hyperlink = wxEmptyString;
496 
497  if( aDescription.IsEmpty() )
498  hyperlink << wxT( "<a href='" ) << aUrl << wxT( "'>" ) << aUrl << wxT( "</a>" );
499  else
500  hyperlink << wxT( "<a href='" ) << aUrl << wxT( "'>" ) << aDescription << wxT( "</a>" );
501 
502  return hyperlink;
503 }
static wxString HtmlNewline ( const unsigned int  aCount)
static

Function HtmlNewline.

creates an HTML newline character sequence of aCount.

Parameters
aCountthe number of HTML newline tags to concatenate, default is to return just one
tag.
Returns
the concatenated amount of HTML newline tag(s)

Definition at line 515 of file AboutDialog_main.cpp.

Referenced by InitKiCadAboutNew().

516 {
517  wxString newlineTags = wxEmptyString;
518 
519  for( size_t i = 0; i<aCount; ++i )
520  newlineTags << wxT( "<br>" );
521 
522  return newlineTags;
523 }
static void InitKiCadAboutNew ( AboutAppInfo info)
static

Initializes the AboutAppInfo object with application specific information.

This the object which holds all information about the application

Definition at line 59 of file AboutDialog_main.cpp.

References GetBuildVersion(), HtmlHyperlink(), HtmlNewline(), ICON_CONTRIBUTION, KiBitmap(), KiBitmapNew(), MODELS_3D_CONTRIBUTION, OTHERS_IN_TRANSLATION, and Pgm().

Referenced by ShowAboutDialog().

60 {
61  // Set application specific icon
62  const wxTopLevelWindow* const tlw = wxDynamicCast( Pgm().App().GetTopWindow(),
63  wxTopLevelWindow );
64 
65  if( tlw )
66  info.SetIcon( tlw->GetIcon() );
67  else
68  {
69  wxBitmap bitmap = KiBitmap( icon_kicad_xpm );
70  wxIcon icon;
71 
72  icon.CopyFromBitmap( bitmap );
73 
74  info.SetIcon( icon );
75  }
76 
77  /* Set title */
78  info.SetAppName( Pgm().App().GetAppName() );
79 
80  /* Copyright information */
81  info.SetCopyright( wxT( "(C) 1992-2016 KiCad Developers Team" ) );
82 
83  /* KiCad build version */
84  wxString version;
85  version << GetBuildVersion()
86 #ifdef DEBUG
87  << wxT( ", debug" )
88 #else
89  << wxT( ", release" )
90 #endif
91  << wxT( " build" );
92 
93  info.SetBuildVersion( version );
94 
95  /* wxWidgets version */
96  wxString libVersion;
97  libVersion << wxGetLibraryVersionInfo().GetVersionString();
98 
99  /* Unicode or ANSI version */
100 #if wxUSE_UNICODE
101  libVersion << wxT( " Unicode " );
102 #else
103  libVersion << wxT( " ANSI " );
104 #endif
105 
106  // Just in case someone builds KiCad with the platform native of Boost instead of
107  // the version included with the KiCad source.
108  libVersion << wxT( "and Boost " ) << ( BOOST_VERSION / 100000 ) << wxT( "." )
109  << ( BOOST_VERSION / 100 % 1000 ) << wxT( "." ) << ( BOOST_VERSION % 100 )
110  << wxT( "\n" );
111 
112  // Operating System Information
113 
114  wxPlatformInfo platformInfo;
115 
116  libVersion << wxT( "Platform: " ) << wxGetOsDescription() << wxT( ", " )
117  << platformInfo.GetArchName();
118 
119  info.SetLibVersion( libVersion );
120 
121 
122  /* info/description part HTML formatted */
123 
124  wxString description;
125 
126  /* short description */
127  description << wxT( "<p>" );
128  description << wxT( "<b><u>" )
129  << _( "Description" )
130  << wxT( "</u></b>" ); // bold & underlined font for caption
131 
132  description << wxT( "<p>" )
133  << _( "The KiCad EDA Suite is a set of open source applications for the "
134  "creation of electronic schematics and to design printed circuit boards." )
135  << wxT( "</p>" );
136 
137  description << wxT( "</p>" );
138 
139  /* websites */
140  description << wxT( "<p><b><u>" )
141  << _( "KiCad on the web" )
142  << wxT( "</u></b>" ); // bold & underlined font for caption
143 
144  // bullet-ed list with some http links
145  description << wxT( "<ul>" );
146  description << wxT( "<li>" )
147  << HtmlHyperlink( wxT( "http://www.kicad-pcb.org" ),
148  _( "The official KiCad website" ) )
149  << wxT( "</li>" );
150  description << wxT( "<li>" )
151  << HtmlHyperlink( wxT( "https://launchpad.net/kicad" ),
152  _( "Developer's website on Launchpad" ) )
153  << wxT("</li>" );
154 
155  description << wxT( "<li>" )
156  << HtmlHyperlink( wxT( "https://github.com/KiCad/" ),
157  _( "Official repository for component and footprint libraries" ) )
158  << wxT( "</li>" );
159 
160  description << wxT( "<li>" )
161  << HtmlHyperlink( wxT( "https://github.com/KiCad/Footprint_Wizards" ),
162  _( "Footprint wizards info on our official repository " ) )
163  << wxT( "</li>" );
164  description << wxT( "</ul></p>" );
165 
166  description << wxT( "<p><b><u>" )
167  << _( "Non official repositories" )
168  << wxT( "</b></u>" );
169 
170  description << wxT( "<ul>" );
171 
172  description << wxT( "<li>" )
173  << HtmlHyperlink( wxT( "http://smisioto.no-ip.org/elettronica/kicad/kicad-en.htm" ),
174  _( "Additional component libraries repository (smisioto)" ) )
175  << wxT( "</li>" );
176 
177  description << wxT( "</ul></p>" );
178 
179  description << wxT( "<p><b><u>" )
180  << _( "Bug tracker" )
181  << wxT( "</u></b>" ); // bold & underlined font caption
182 
183  // bullet-ed list with some http links
184  description << wxT( "<ul>" );
185  description << wxT( "<li>" )
186  << HtmlHyperlink( wxT( "https://bugs.launchpad.net/kicad/+bugs?orderby=-id&start=0" ),
187  _( "Report or examine bugs" ) )
188  << wxT( "</li>" );
189  description << wxT( "</ul></p>" );
190 
191  description << wxT( "<p><b><u>" )
192  << _( "KiCad user's groups and community" )
193  << wxT( "</u></b>" ); // bold & underlined font caption
194 
195  description << wxT( "<ul>" );
196  description << wxT( "<li>" )
197  << HtmlHyperlink( wxT( "https://groups.yahoo.com/neo/groups/kicad-users/info" ),
198  _( "KiCad user's group" ) )
199  << wxT( "</li>" );
200 
201  description << wxT( "<li>" )
202  << HtmlHyperlink( wxT( "https://forum.kicad.info" ),
203  _( "KiCad forum" ) )
204  << wxT( "</li>" );
205 
206  description << wxT( "</ul></p>" );
207 
208  info.SetDescription( description );
209 
210 
211  // License information also HTML formatted:
212  wxString license;
213  license
214  << wxT( "<div align='center'>" )
215  << HtmlNewline( 4 )
216  << _( "The complete KiCad EDA Suite is released under the" ) << HtmlNewline( 2 )
217  << HtmlHyperlink( wxT( "http://www.gnu.org/licenses" ),
218  _( "GNU General Public License (GPL) version 3 or any later version" ) )
219  << wxT( "</div>" );
220 
221  info.SetLicense( license );
222 
223 
224  /* A contributor consists of the following information:
225  * Mandatory:
226  * - Name
227  * - EMail address
228  * Optional:
229  * - Category
230  * - Category specific icon
231  *
232  * All contributors of the same category will be enumerated under this category
233  * which should be represented by the same icon.
234  */
235 
236  // The core developers
237  info.AddDeveloper( new Contributor( wxT( "Jean-Pierre Charras" ),
238  wxT( "jp.charras@wanadoo.fr" ) ) );
239  info.AddDeveloper( new Contributor( wxT( "Dick Hollenbeck" ),
240  wxT( "dick@softplc.com" ) ) );
241  info.AddDeveloper( new Contributor( wxT( "Wayne Stambaugh" ),
242  wxT( "stambaughw@gmail.com" ) ) );
243 
244  // alphabetically by last name after main 3 above:
245  info.AddDeveloper( new Contributor( wxT( "Frank Bennett" ),
246  wxT( "bennett78@lpbroadband.net" ) ) );
247  info.AddDeveloper( new Contributor( wxT( "Cirilo Bernardo" ),
248  wxT( "cirilo_bernardo@yahoo.com" ) ) );
249  info.AddDeveloper( new Contributor( wxT( "Jonas Diemer" ),
250  wxT( "diemer@gmx.de" ) ) );
251  info.AddDeveloper( new Contributor( wxT( "Torsten Hüter" ),
252  wxT( "torstenhtr@gmx.de" ) ) );
253  info.AddDeveloper( new Contributor( wxT( "Jerry Jacobs" ),
254  wxT( "xor.gate.engineering@gmail.com" ) ) );
255  info.AddDeveloper( new Contributor( wxT( "Mario Luzeiro" ),
256  wxT( "mrluzeiro@ua.pt" ) ) );
257  info.AddDeveloper( new Contributor( wxT( "Daniel Majewski" ),
258  wxT( "lordblick@gmail.com" ) ) );
259  info.AddDeveloper( new Contributor( wxT( "Lorenzo Marcantonio" ),
260  wxT( "lomarcan@tin.it" ) ) );
261  info.AddDeveloper( new Contributor( wxT( "Marco Mattila" ),
262  wxT( "marcom99@gmail.com" ) ) );
263  info.AddDeveloper( new Contributor( wxT( "Chris Pavlina" ),
264  wxT( "pavlina.chris@gmail.com" ) ) );
265  info.AddDeveloper( new Contributor( wxT( "Miguel Angel Ajo Pelayo" ),
266  wxT( "miguelangel@nbee.es" ) ) );
267  info.AddDeveloper( new Contributor( wxT( "Jacobo Aragunde Perez" ),
268  wxT( "jaragunde@igalia.com" ) ) );
269  info.AddDeveloper( new Contributor( wxT( "Simon Richter" ),
270  wxT( "Simon.Richter@hogyros.de" ) ) );
271  info.AddDeveloper( new Contributor( wxT( "Mark Roszko" ),
272  wxT( "mark.roszko@gmail.com" ) ) );
273  info.AddDeveloper( new Contributor( wxT( "Marco Serantoni" ),
274  wxT( "marco.serantoni@gmail.com" ) ) );
275  info.AddDeveloper( new Contributor( wxT( "Brian Sidebotham" ),
276  wxT( "brian.sidebotham@gmail.com" ) ) );
277  info.AddDeveloper( new Contributor( wxT( "Mateusz Skowroński" ),
278  wxT( "skowri@gmail.com" ) ) );
279  info.AddDeveloper( new Contributor( wxT( "Rafael Sokolowski" ),
280  wxT( "rafael.sokolowski@web.de" ) ) );
281  info.AddDeveloper( new Contributor( wxT( "Vesa Solonen" ),
282  wxT( "vesa.solonen@hut.fi" ) ) );
283  info.AddDeveloper( new Contributor( wxT( "Bernhard Stegmaier" ),
284  wxT( "stegmaier@sw-systems.de" ) ) );
285  info.AddDeveloper( new Contributor( wxT( "Orson (Maciej Sumiński)" ),
286  wxT( "maciej.suminski@cern.ch" ) ) );
287  info.AddDeveloper( new Contributor( wxT( "Tomasz Wlostowski" ),
288  wxT( "tomasz.wlostowski@cern.ch" ) ) );
289  info.AddDeveloper( new Contributor( wxT( "Adam Wolf" ),
290  wxT( "adamwolf@feelslikeburning.com" ) ) );
291  info.AddDeveloper( new Contributor( wxT( "Alexander Zakamaldin" ),
292  wxT( "zaka62@mail.ru" ) ) );
293  info.AddDeveloper( new Contributor( wxT( "Henner Zeller" ),
294  wxT( "h.zeller@acm.org" ) ) );
295  info.AddDeveloper( new Contributor( wxT( "Andrew Zonenberg" ),
296  wxT( "azonenberg@drawersteak.com" ) ) );
297  info.AddDeveloper( new Contributor( wxT( "Nick Østergaard" ),
298  wxT( "oe.nick@gmail.com" ) ) );
299 
300  // The document writers
301  info.AddDocWriter( new Contributor( wxT( "Jean-Pierre Charras" ),
302  wxT( "jp.charras@wanadoo.fr" ) ) );
303  info.AddDocWriter( new Contributor( wxT( "Marco Ciampa" ),
304  wxT( "ciampix@libero.it" ) ) );
305  info.AddDocWriter( new Contributor( wxT( "Dick Hollenbeck" ),
306  wxT( "dick@softplc.com" ) ) );
307  info.AddDocWriter( new Contributor( wxT( "Igor Plyatov" ),
308  wxT( "plyatov@gmail.com" ) ) );
309  info.AddDocWriter( new Contributor( wxT( "Wayne Stambaugh" ),
310  wxT( "stambaughw@gmail.com" ) ) );
311  info.AddDocWriter( new Contributor( wxT( "Fabrizio Tappero" ),
312  wxT( "fabrizio.tappero@gmail.com" ) ) );
313 
314  /* The translators
315  * As category the language to which the translation was done is used
316  * and as icon the national flag of the corresponding country.
317  */
318  info.AddTranslator( new Contributor( wxT( "Robert Buj" ),
319  wxT( "rbuj@fedoraproject.org" ),
320  wxT( "Catalan (CA)" ),
321  KiBitmapNew( lang_catalan_xpm ) ) );
322  info.AddTranslator( new Contributor( wxT( "Martin Kratoška" ),
323  wxT( "martin@ok1rr.com" ),
324  wxT( "Czech (CZ)" ),
325  KiBitmapNew( lang_cs_xpm ) ) );
326  info.AddTranslator( new Contributor( wxT( "Jerry Jacobs" ),
327  wxT( "xor.gate.engineering@gmail.com" ),
328  wxT( "Dutch (NL)" ),
329  KiBitmapNew( lang_nl_xpm ) ) );
330  info.AddTranslator( new Contributor( wxT( "Vesa Solonen" ),
331  wxT( "vesa.solonen@hut.fi" ),
332  wxT( "Finnish (FI)" ),
333  KiBitmapNew( lang_fi_xpm ) ) );
334  info.AddTranslator( new Contributor( wxT( "Jean-Pierre Charras" ),
335  wxT( "jp.charras@wanadoo.fr" ),
336  wxT( "French (FR)" ),
337  KiBitmapNew( lang_fr_xpm ) ) );
338  info.AddTranslator( new Contributor( wxT( "Mateusz Skowroński" ),
339  wxT( "skowri@gmail.com" ),
340  wxT( "Polish (PL)" ),
341  KiBitmapNew( lang_pl_xpm ) ) );
342  info.AddTranslator( new Contributor( wxT( "Kerusey Karyu" ),
343  wxT( "keruseykaryu@o2.pl" ),
344  wxT( "Polish (PL)" ),
345  KiBitmapNew( lang_pl_xpm ) ) );
346  info.AddTranslator( new Contributor( wxT( "Renie Marquet" ),
347  wxT( "reniemarquet@uol.com.br" ),
348  wxT( "Portuguese (PT)" ),
349  KiBitmapNew( lang_pt_xpm ) ) );
350  info.AddTranslator( new Contributor( wxT( "Igor Plyatov" ),
351  wxT( "plyatov@gmail.com" ),
352  wxT( "Russian (RU)" ),
353  KiBitmapNew( lang_ru_xpm ) ) );
354  info.AddTranslator( new Contributor( wxT( "Andrey Fedorushkov" ),
355  wxT( "andrf@mail.ru" ),
356  wxT( "Russian (RU)" ),
357  KiBitmapNew( lang_ru_xpm ) ) );
358  info.AddTranslator( new Contributor( wxT( "Eldar Khayrullin" ),
359  wxT( "eldar.khayrullin@mail.ru" ),
360  wxT( "Russian (RU)" ),
361  KiBitmapNew( lang_ru_xpm ) ) );
362  info.AddTranslator( new Contributor( wxT( "Pedro Martin del Valle" ),
363  wxT( "pkicad@yahoo.es" ),
364  wxT( "Spanish (ES)" ),
365  KiBitmapNew( lang_es_xpm ) ) );
366  info.AddTranslator( new Contributor( wxT( "Iñigo Zuluaga" ),
367  wxT( "inigo_zuluaga@yahoo.es" ),
368  wxT( "Spanish (ES)" ),
369  KiBitmapNew( lang_es_xpm ) ) );
370  info.AddTranslator( new Contributor( wxT( "Iñigo Figuero" ),
371  wxT( "ifs@elektroquark.com" ),
372  wxT( "Spanish (ES)" ),
373  KiBitmapNew( lang_es_xpm ) ) );
374  info.AddTranslator( new Contributor( wxT( "Rafael Sokolowski" ),
375  wxT( "rafael.sokolowski@web.de" ),
376  wxT( "German (DE)" ),
377  KiBitmapNew( lang_de_xpm ) ) );
378  info.AddTranslator( new Contributor( wxT( "Kenta Yonekura" ),
379  wxT( "yoneken@kicad.jp" ),
380  wxT( "Japanese (JA)" ),
381  KiBitmapNew( lang_jp_xpm ) ) );
382  info.AddTranslator( new Contributor( wxT( "Manolis Stefanis" ),
383  wxT( "" ),
384  wxT( "Greek (el_GR)" ),
385  KiBitmapNew( lang_gr_xpm ) ) );
386  info.AddTranslator( new Contributor( wxT( "Athanasios Vlastos" ),
387  wxT( "" ),
388  wxT( "Greek (el_GR)" ),
389  KiBitmapNew( lang_gr_xpm ) ) );
390  info.AddTranslator( new Contributor( wxT( "Milonas Kostas" ),
391  wxT( "milonas.ko@gmail.com" ),
392  wxT( "Greek (el_GR)" ),
393  KiBitmapNew( lang_gr_xpm ) ) );
394  info.AddTranslator( new Contributor( wxT( "Michail Misirlis" ),
395  wxT( "mmisirlis@gmail.com" ),
396  wxT( "Greek (el_GR)" ),
397  KiBitmapNew( lang_gr_xpm ) ) );
398  info.AddTranslator( new Contributor( wxT( "Massimo Cioce" ),
399  wxT( "ciocemax@alice.it" ),
400  wxT( "Italian (IT)" ),
401  KiBitmapNew( lang_it_xpm ) ) );
402  info.AddTranslator( new Contributor( wxT( "Marco Ciampa" ),
403  wxT( "ciampix@libero.it" ),
404  wxT( "Italian (IT)" ),
405  KiBitmapNew( lang_it_xpm ) ) );
406  info.AddTranslator( new Contributor( wxT( "Evgeniy Ivanov" ),
407  wxT( "evgeniy_p_ivanov@yahoo.ca" ),
408  wxT( "Bulgarian (BG)" ),
409  KiBitmapNew( lang_bg_xpm ) ) );
410 
411  // Maintainer who helper in translations, but not in a specific translation
412  #define OTHERS_IN_TRANSLATION _( "Others" )
413  info.AddTranslator( new Contributor( wxT( "Remy Halvick" ),
414  wxEmptyString,
416  info.AddTranslator( new Contributor( wxT( "David Briscoe" ),
417  wxEmptyString,
419  info.AddTranslator( new Contributor( wxT( "Dominique Laigle" ),
420  wxEmptyString,
422  info.AddTranslator( new Contributor( wxT( "Paul Burke" ),
423  wxEmptyString,
425 
426  // Programm credits for icons
427  #define ICON_CONTRIBUTION _( "Icons by" )
428  info.AddArtist( new Contributor( wxT( "Iñigo Zuluaga" ),
429  wxT( "inigo_zuluaga@yahoo.es" ),
431  KiBitmapNew( edit_module_xpm ) ) );
432  info.AddArtist( new Contributor( wxT( "Konstantin Baranovskiy" ),
433  wxT( "baranovskiykonstantin@gmail.com" ),
435  KiBitmapNew( edit_module_xpm ) ) );
436  info.AddArtist( new Contributor( wxT( "Fabrizio Tappero" ),
437  wxT( "fabrizio.tappero@gmail.com" ),
439  KiBitmapNew( edit_module_xpm ) ) );
440 
441  // Programm credits for 3d models
442  #define MODELS_3D_CONTRIBUTION _( "3D models by" )
443  info.AddArtist( new Contributor( wxT( "Christophe Boschat" ),
444  wxT( "nox454@hotmail.fr" ),
446  KiBitmapNew( three_d_xpm ) ) );
447  info.AddArtist( new Contributor( wxT( "Renie Marquet" ),
448  wxT( "reniemarquet@uol.com.br" ),
450  KiBitmapNew( three_d_xpm ) ) );
451 
452  // Programm credits for package developers.
453  info.AddPackager( new Contributor( wxT( "Jean-Samuel Reynaud" ),
454  wxT( "js.reynaud@gmail.com" ) ) );
455  info.AddPackager( new Contributor( wxT( "Bernhard Stegmaier" ),
456  wxT( "stegmaier@sw-systems.de" ) ) );
457  info.AddPackager( new Contributor( wxT( "Adam Wolf" ),
458  wxT( "adamwolf@feelslikeburning.com" ) ) );
459  info.AddPackager( new Contributor( wxT( "Nick Østergaard" ),
460  wxT( "oe.nick@gmail.com" ) ) );
461 }
void AddDocWriter(const Contributor *docwriter)
Definition: aboutinfo.h:54
#define ICON_CONTRIBUTION
void SetDescription(const wxString &text)
Definition: aboutinfo.h:84
void SetBuildVersion(const wxString &version)
Definition: aboutinfo.h:107
void AddArtist(const Contributor *artist)
Definition: aboutinfo.h:60
void AddPackager(const Contributor *packager)
Definition: aboutinfo.h:72
#define OTHERS_IN_TRANSLATION
static wxString HtmlNewline(const unsigned int amount=1)
Function HtmlNewline.
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
void SetIcon(const wxIcon &icon)
Definition: aboutinfo.h:113
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Function KiBitmap constructs a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:36
wxBitmap * KiBitmapNew(BITMAP_DEF aBitmap)
Function KiBitmapNew allocates a wxBitmap on heap from a memory record, held in a BITMAP_DEF...
Definition: bitmap.cpp:46
wxString GetBuildVersion()
Function GetBuildVersion Return the build version string.
void SetAppName(const wxString &name)
Definition: aboutinfo.h:104
#define MODELS_3D_CONTRIBUTION
void AddDeveloper(const Contributor *developer)
Definition: aboutinfo.h:48
A contributor, a person which was involved in the development of the application or which has contrib...
Definition: aboutinfo.h:147
static wxString HtmlHyperlink(const wxString &url, const wxString &description=wxEmptyString)
Helper functions.
void SetLicense(const wxString &text)
Definition: aboutinfo.h:87
void AddTranslator(const Contributor *translator)
Definition: aboutinfo.h:66
void SetCopyright(const wxString &text)
Definition: aboutinfo.h:90
void SetLibVersion(const wxString &version)
Definition: aboutinfo.h:110
bool ShowAboutDialog ( wxWindow *  parent)

Definition at line 464 of file AboutDialog_main.cpp.

References AboutAppInfo::GetIcon(), and InitKiCadAboutNew().

Referenced by EDA_BASE_FRAME::GetKicadAbout().

465 {
466  AboutAppInfo info;
467 
468  InitKiCadAboutNew( info );
469 
470  dialog_about* dlg = new dialog_about( parent, info );
471  dlg->SetIcon( info.GetIcon() );
472  dlg->Show();
473 
474  return true;
475 }
About dialog to show application specific information.
Definition: dialog_about.h:40
wxIcon & GetIcon()
Definition: aboutinfo.h:114
An object of this class is meant to be used to store application specific information like who has co...
Definition: aboutinfo.h:42
static void InitKiCadAboutNew(AboutAppInfo &info)
Initializes the AboutAppInfo object with application specific information.