321
380
pBoxSizer->SetSizeHints(this);
387
void AboutDialog::PopulateLicensePage( ShuttleGui & S )
389
S.StartNotebookPage( _("GPL License") );
390
S.StartVerticalLay(1);
391
wxHtmlWindow *html = new wxHtmlWindow(S.GetParent(), -1,
393
wxSize(LOGOWITHNAME_WIDTH, 264), // wxSize(480, 240),
394
wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
396
// I tried using <pre> here to get a monospaced font,
397
// as is normally used for the GPL.
398
// However can't reduce the font size in that case. It looks
399
// better proportionally spaced.
401
// The GPL is not to be translated....
403
wxT(" <center>GNU GENERAL PUBLIC LICENSE\n</center>")
404
wxT(" <center>Version 2, June 1991\n</center>")
406
wxT(" Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n")
407
wxT(" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\n")
408
wxT(" Everyone is permitted to copy and distribute verbatim copies\n")
409
wxT(" of this license document, but changing it is not allowed.\n")
411
wxT(" <center>Preamble\n</center>")
413
wxT(" The licenses for most software are designed to take away your\n")
414
wxT("freedom to share and change it. By contrast, the GNU General Public\n")
415
wxT("License is intended to guarantee your freedom to share and change free\n")
416
wxT("software--to make sure the software is free for all its users. This\n")
417
wxT("General Public License applies to most of the Free Software\n")
418
wxT("Foundation's software and to any other program whose authors commit to\n")
419
wxT("using it. (Some other Free Software Foundation software is covered by\n")
420
wxT("the GNU Library General Public License instead.) You can apply it to\n")
421
wxT("your programs, too.\n")
423
wxT(" When we speak of free software, we are referring to freedom, not\n")
424
wxT("price. Our General Public Licenses are designed to make sure that you\n")
425
wxT("have the freedom to distribute copies of free software (and charge for\n")
426
wxT("this service if you wish), that you receive source code or can get it\n")
427
wxT("if you want it, that you can change the software or use pieces of it\n")
428
wxT("in new free programs; and that you know you can do these things.\n")
430
wxT(" To protect your rights, we need to make restrictions that forbid\n")
431
wxT("anyone to deny you these rights or to ask you to surrender the rights.\n")
432
wxT("These restrictions translate to certain responsibilities for you if you\n")
433
wxT("distribute copies of the software, or if you modify it.\n")
435
wxT(" For example, if you distribute copies of such a program, whether\n")
436
wxT("gratis or for a fee, you must give the recipients all the rights that\n")
437
wxT("you have. You must make sure that they, too, receive or can get the\n")
438
wxT("source code. And you must show them these terms so they know their\n")
441
wxT(" We protect your rights with two steps: (1) copyright the software, and\n")
442
wxT("(2) offer you this license which gives you legal permission to copy,\n")
443
wxT("distribute and/or modify the software.\n")
445
wxT(" Also, for each author's protection and ours, we want to make certain\n")
446
wxT("that everyone understands that there is no warranty for this free\n")
447
wxT("software. If the software is modified by someone else and passed on, we\n")
448
wxT("want its recipients to know that what they have is not the original, so\n")
449
wxT("that any problems introduced by others will not reflect on the original\n")
450
wxT("authors' reputations.\n")
452
wxT(" Finally, any free program is threatened constantly by software\n")
453
wxT("patents. We wish to avoid the danger that redistributors of a free\n")
454
wxT("program will individually obtain patent licenses, in effect making the\n")
455
wxT("program proprietary. To prevent this, we have made it clear that any\n")
456
wxT("patent must be licensed for everyone's free use or not licensed at all.\n")
458
wxT(" The precise terms and conditions for copying, distribution and\n")
459
wxT("modification follow.\n")
461
wxT(" <center>GNU GENERAL PUBLIC LICENSE\n</center>")
462
wxT(" <center>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n</center>")
464
wxT(" 0. This License applies to any program or other work which contains\n")
465
wxT("a notice placed by the copyright holder saying it may be distributed\n")
466
wxT("under the terms of this General Public License. The \"Program\", below,\n")
467
wxT("refers to any such program or work, and a \"work based on the Program\"\n")
468
wxT("means either the Program or any derivative work under copyright law:\n")
469
wxT("that is to say, a work containing the Program or a portion of it,\n")
470
wxT("either verbatim or with modifications and/or translated into another\n")
471
wxT("language. (Hereinafter, translation is included without limitation in\n")
472
wxT("the term \"modification\".) Each licensee is addressed as \"you\".\n")
474
wxT("Activities other than copying, distribution and modification are not\n")
475
wxT("covered by this License; they are outside its scope. The act of\n")
476
wxT("running the Program is not restricted, and the output from the Program\n")
477
wxT("is covered only if its contents constitute a work based on the\n")
478
wxT("Program (independent of having been made by running the Program).\n")
479
wxT("Whether that is true depends on what the Program does.\n")
481
wxT(" 1. You may copy and distribute verbatim copies of the Program's\n")
482
wxT("source code as you receive it, in any medium, provided that you\n")
483
wxT("conspicuously and appropriately publish on each copy an appropriate\n")
484
wxT("copyright notice and disclaimer of warranty; keep intact all the\n")
485
wxT("notices that refer to this License and to the absence of any warranty;\n")
486
wxT("and give any other recipients of the Program a copy of this License\n")
487
wxT("along with the Program.\n")
489
wxT("You may charge a fee for the physical act of transferring a copy, and\n")
490
wxT("you may at your option offer warranty protection in exchange for a fee.\n")
492
wxT(" 2. You may modify your copy or copies of the Program or any portion\n")
493
wxT("of it, thus forming a work based on the Program, and copy and\n")
494
wxT("distribute such modifications or work under the terms of Section 1\n")
495
wxT("above, provided that you also meet all of these conditions:\n")
498
wxT(" a) You must cause the modified files to carry prominent notices\n")
499
wxT(" stating that you changed the files and the date of any change.\n")
501
wxT(" b) You must cause any work that you distribute or publish, that in\n")
502
wxT(" whole or in part contains or is derived from the Program or any\n")
503
wxT(" part thereof, to be licensed as a whole at no charge to all third\n")
504
wxT(" parties under the terms of this License.\n")
506
wxT(" c) If the modified program normally reads commands interactively\n")
507
wxT(" when run, you must cause it, when started running for such\n")
508
wxT(" interactive use in the most ordinary way, to print or display an\n")
509
wxT(" announcement including an appropriate copyright notice and a\n")
510
wxT(" notice that there is no warranty (or else, saying that you provide\n")
511
wxT(" a warranty) and that users may redistribute the program under\n")
512
wxT(" these conditions, and telling the user how to view a copy of this\n")
513
wxT(" License. (Exception: if the Program itself is interactive but\n")
514
wxT(" does not normally print such an announcement, your work based on\n")
515
wxT(" the Program is not required to print an announcement.)\n")
518
wxT("These requirements apply to the modified work as a whole. If\n")
519
wxT("identifiable sections of that work are not derived from the Program,\n")
520
wxT("and can be reasonably considered independent and separate works in\n")
521
wxT("themselves, then this License, and its terms, do not apply to those\n")
522
wxT("sections when you distribute them as separate works. But when you\n")
523
wxT("distribute the same sections as part of a whole which is a work based\n")
524
wxT("on the Program, the distribution of the whole must be on the terms of\n")
525
wxT("this License, whose permissions for other licensees extend to the\n")
526
wxT("entire whole, and thus to each and every part regardless of who wrote it.\n")
528
wxT("Thus, it is not the intent of this section to claim rights or contest\n")
529
wxT("your rights to work written entirely by you; rather, the intent is to\n")
530
wxT("exercise the right to control the distribution of derivative or\n")
531
wxT("collective works based on the Program.\n")
533
wxT("In addition, mere aggregation of another work not based on the Program\n")
534
wxT("with the Program (or with a work based on the Program) on a volume of\n")
535
wxT("a storage or distribution medium does not bring the other work under\n")
536
wxT("the scope of this License.\n")
538
wxT(" 3. You may copy and distribute the Program (or a work based on it,\n")
539
wxT("under Section 2) in object code or executable form under the terms of\n")
540
wxT("Sections 1 and 2 above provided that you also do one of the following:\n")
543
wxT(" a) Accompany it with the complete corresponding machine-readable\n")
544
wxT(" source code, which must be distributed under the terms of Sections\n")
545
wxT(" 1 and 2 above on a medium customarily used for software interchange; or,\n")
547
wxT(" b) Accompany it with a written offer, valid for at least three\n")
548
wxT(" years, to give any third party, for a charge no more than your\n")
549
wxT(" cost of physically performing source distribution, a complete\n")
550
wxT(" machine-readable copy of the corresponding source code, to be\n")
551
wxT(" distributed under the terms of Sections 1 and 2 above on a medium\n")
552
wxT(" customarily used for software interchange; or,\n")
554
wxT(" c) Accompany it with the information you received as to the offer\n")
555
wxT(" to distribute corresponding source code. (This alternative is\n")
556
wxT(" allowed only for noncommercial distribution and only if you\n")
557
wxT(" received the program in object code or executable form with such\n")
558
wxT(" an offer, in accord with Subsection b above.)\n")
561
wxT("The source code for a work means the preferred form of the work for\n")
562
wxT("making modifications to it. For an executable work, complete source\n")
563
wxT("code means all the source code for all modules it contains, plus any\n")
564
wxT("associated interface definition files, plus the scripts used to\n")
565
wxT("control compilation and installation of the executable. However, as a\n")
566
wxT("special exception, the source code distributed need not include\n")
567
wxT("anything that is normally distributed (in either source or binary\n")
568
wxT("form) with the major components (compiler, kernel, and so on) of the\n")
569
wxT("operating system on which the executable runs, unless that component\n")
570
wxT("itself accompanies the executable.\n")
572
wxT("If distribution of executable or object code is made by offering\n")
573
wxT("access to copy from a designated place, then offering equivalent\n")
574
wxT("access to copy the source code from the same place counts as\n")
575
wxT("distribution of the source code, even though third parties are not\n")
576
wxT("compelled to copy the source along with the object code.\n")
578
wxT(" 4. You may not copy, modify, sublicense, or distribute the Program\n")
579
wxT("except as expressly provided under this License. Any attempt\n")
580
wxT("otherwise to copy, modify, sublicense or distribute the Program is\n")
581
wxT("void, and will automatically terminate your rights under this License.\n")
582
wxT("However, parties who have received copies, or rights, from you under\n")
583
wxT("this License will not have their licenses terminated so long as such\n")
584
wxT("parties remain in full compliance.\n")
586
wxT(" 5. You are not required to accept this License, since you have not\n")
587
wxT("signed it. However, nothing else grants you permission to modify or\n")
588
wxT("distribute the Program or its derivative works. These actions are\n")
589
wxT("prohibited by law if you do not accept this License. Therefore, by\n")
590
wxT("modifying or distributing the Program (or any work based on the\n")
591
wxT("Program), you indicate your acceptance of this License to do so, and\n")
592
wxT("all its terms and conditions for copying, distributing or modifying\n")
593
wxT("the Program or works based on it.\n")
595
wxT(" 6. Each time you redistribute the Program (or any work based on the\n")
596
wxT("Program), the recipient automatically receives a license from the\n")
597
wxT("original licensor to copy, distribute or modify the Program subject to\n")
598
wxT("these terms and conditions. You may not impose any further\n")
599
wxT("restrictions on the recipients' exercise of the rights granted herein.\n")
600
wxT("You are not responsible for enforcing compliance by third parties to\n")
601
wxT("this License.\n")
603
wxT(" 7. If, as a consequence of a court judgment or allegation of patent\n")
604
wxT("infringement or for any other reason (not limited to patent issues),\n")
605
wxT("conditions are imposed on you (whether by court order, agreement or\n")
606
wxT("otherwise) that contradict the conditions of this License, they do not\n")
607
wxT("excuse you from the conditions of this License. If you cannot\n")
608
wxT("distribute so as to satisfy simultaneously your obligations under this\n")
609
wxT("License and any other pertinent obligations, then as a consequence you\n")
610
wxT("may not distribute the Program at all. For example, if a patent\n")
611
wxT("license would not permit royalty-free redistribution of the Program by\n")
612
wxT("all those who receive copies directly or indirectly through you, then\n")
613
wxT("the only way you could satisfy both it and this License would be to\n")
614
wxT("refrain entirely from distribution of the Program.\n")
616
wxT("If any portion of this section is held invalid or unenforceable under\n")
617
wxT("any particular circumstance, the balance of the section is intended to\n")
618
wxT("apply and the section as a whole is intended to apply in other\n")
619
wxT("circumstances.\n")
621
wxT("It is not the purpose of this section to induce you to infringe any\n")
622
wxT("patents or other property right claims or to contest validity of any\n")
623
wxT("such claims; this section has the sole purpose of protecting the\n")
624
wxT("integrity of the free software distribution system, which is\n")
625
wxT("implemented by public license practices. Many people have made\n")
626
wxT("generous contributions to the wide range of software distributed\n")
627
wxT("through that system in reliance on consistent application of that\n")
628
wxT("system; it is up to the author/donor to decide if he or she is willing\n")
629
wxT("to distribute software through any other system and a licensee cannot\n")
630
wxT("impose that choice.\n")
632
wxT("This section is intended to make thoroughly clear what is believed to\n")
633
wxT("be a consequence of the rest of this License.\n")
635
wxT(" 8. If the distribution and/or use of the Program is restricted in\n")
636
wxT("certain countries either by patents or by copyrighted interfaces, the\n")
637
wxT("original copyright holder who places the Program under this License\n")
638
wxT("may add an explicit geographical distribution limitation excluding\n")
639
wxT("those countries, so that distribution is permitted only in or among\n")
640
wxT("countries not thus excluded. In such case, this License incorporates\n")
641
wxT("the limitation as if written in the body of this License.\n")
643
wxT(" 9. The Free Software Foundation may publish revised and/or new versions\n")
644
wxT("of the General Public License from time to time. Such new versions will\n")
645
wxT("be similar in spirit to the present version, but may differ in detail to\n")
646
wxT("address new problems or concerns.\n")
648
wxT("Each version is given a distinguishing version number. If the Program\n")
649
wxT("specifies a version number of this License which applies to it and \"any\n")
650
wxT("later version\", you have the option of following the terms and conditions\n")
651
wxT("either of that version or of any later version published by the Free\n")
652
wxT("Software Foundation. If the Program does not specify a version number of\n")
653
wxT("this License, you may choose any version ever published by the Free Software\n")
656
wxT(" 10. If you wish to incorporate parts of the Program into other free\n")
657
wxT("programs whose distribution conditions are different, write to the author\n")
658
wxT("to ask for permission. For software which is copyrighted by the Free\n")
659
wxT("Software Foundation, write to the Free Software Foundation; we sometimes\n")
660
wxT("make exceptions for this. Our decision will be guided by the two goals\n")
661
wxT("of preserving the free status of all derivatives of our free software and\n")
662
wxT("of promoting the sharing and reuse of software generally.\n")
664
wxT(" <center>NO WARRANTY\n</center>")
666
wxT(" 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\n")
667
wxT("FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\n")
668
wxT("OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\n")
669
wxT("PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\n")
670
wxT("OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n")
671
wxT("MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\n")
672
wxT("TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\n")
673
wxT("PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\n")
674
wxT("REPAIR OR CORRECTION.\n")
676
wxT(" 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n")
677
wxT("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\n")
678
wxT("REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\n")
679
wxT("INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\n")
680
wxT("OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\n")
681
wxT("TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\n")
682
wxT("YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\n")
683
wxT("PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\n")
684
wxT("POSSIBILITY OF SUCH DAMAGES.\n");
686
html->SetPage( PageText );
688
S.Prop(1).AddWindow( html, wxEXPAND );
689
S.Id( wxID_OK).AddButton( _("Close") );
326
695
void AboutDialog::AddCredit(const wxString& description, Role role)