~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to src/AboutDialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
  Dominic Mazzoni
8
8
  Vaughan Johnson
 
9
  James Crook
9
10
 
10
11
********************************************************************//**
11
12
 
12
13
\class AboutDialog
13
14
\brief The AboutDialog shows the program version and developer credits.
14
15
 
15
 
It is a simple scrolling window with an 'Audacious' button to
 
16
It is a simple scrolling window with an 'OK... Audacious!' button to
16
17
close it.
17
18
 
18
19
*//*****************************************************************//**
27
28
#include "Audacity.h"
28
29
 
29
30
#include <wx/dialog.h>
 
31
#include <wx/html/htmlwin.h>
30
32
#include <wx/button.h>
31
33
#include <wx/dcclient.h>
32
34
#include <wx/sizer.h>
36
38
#include "AboutDialog.h"
37
39
#include "FileNames.h"
38
40
#include "Internat.h"
 
41
#include "ShuttleGui.h"
39
42
#include "widgets/LinkingHtmlWindow.h"
40
43
 
41
44
#include "portaudio.h"
79
82
   
80
83
   AddCredit(wxT("Lynn Allan"), roleContributor);
81
84
   AddCredit(wxT("William Bland"), roleContributor);
 
85
   AddCredit(wxT("Chris Cannam"), roleContributor);
82
86
   AddCredit(wxT("Brian Gunlogson"), roleContributor);
83
87
   AddCredit(wxT("Arun Kishore"), roleContributor);
84
88
   AddCredit(wxT("Harvey Lubin"), roleContributor);
127
131
}
128
132
 
129
133
// ----------------------------------------------------------------------------
130
 
// icons
131
 
// ----------------------------------------------------------------------------
 
134
 
132
135
BEGIN_EVENT_TABLE(AboutDialog, wxDialog)
133
136
   EVT_BUTTON(wxID_OK, AboutDialog::OnOK)
134
137
END_EVENT_TABLE()
139
142
   :  wxDialog(parent, -1, _NoAcc("&About Audacity..."),
140
143
               wxDefaultPosition, wxDefaultSize)
141
144
{
 
145
   this->SetBackgroundColour(theTheme.Colour( clrAboutBoxBackground ));
 
146
   icon = NULL;
 
147
   ShuttleGui S( this, eIsCreating );
 
148
   S.StartNotebook();
 
149
   {
 
150
      PopulateAudacityPage( S );
 
151
      PopulateLicensePage( S );
 
152
   }
 
153
   S.EndNotebook();
 
154
   Fit();
 
155
   this->Centre();
 
156
}
 
157
 
 
158
void AboutDialog::PopulateAudacityPage( ShuttleGui & S )
 
159
{
142
160
   wxString versionStr = AUDACITY_VERSION_STRING;
143
161
   wxString informationStr;
144
162
 
183
201
   # endif
184
202
   informationStr += wxT("<br>\n");
185
203
 
 
204
   # if USE_VAMP
 
205
   informationStr += wxT("Vamp") + enabled;
 
206
   # else
 
207
   informationStr += wxT("Vamp") + disabled;
 
208
   # endif
 
209
   informationStr += wxT("<br>\n");
 
210
 
186
211
   #if USE_LIBRESAMPLE
187
212
   informationStr += wxT("Libresample") + enabled;
188
213
   #elif USE_LIBSAMPLERATE
291
316
   
292
317
   this->SetBackgroundColour(theTheme.Colour( clrAboutBoxBackground ));
293
318
 
 
319
 
 
320
   // New way to add to About box....
 
321
   S.StartNotebookPage( _("Audacity") );
 
322
   S.StartVerticalLay(1);
 
323
 
 
324
   //vvv For now, change to AudacityLogoWithName via old-fashioned way, not Theme.
 
325
   logo = new wxBitmap((const char **) AudacityLogoWithName_xpm); //vvv
 
326
   icon =
 
327
       new wxStaticBitmap(S.GetParent(), -1, 
 
328
                          *logo, //vvv
 
329
                          //vvv theTheme.Bitmap(bmpAudacityLogo), wxPoint(93, 10), wxSize(215, 190));
 
330
                          //vvv theTheme.Bitmap(bmpAudacityLogoWithName), 
 
331
                          wxDefaultPosition, wxSize(LOGOWITHNAME_WIDTH, LOGOWITHNAME_HEIGHT));
 
332
   S.Prop(0).AddWindow( icon );
 
333
 
 
334
   wxHtmlWindow *html = new LinkingHtmlWindow(S.GetParent(), -1,
 
335
                                         wxDefaultPosition,
 
336
                                         wxSize(LOGOWITHNAME_WIDTH, 264), // wxSize(480, 240),
 
337
                                         wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
 
338
   html->SetPage(creditStr);
 
339
   S.Prop(1).AddWindow( html, wxEXPAND );
 
340
 
 
341
   wxButton *ok = new wxButton(S.GetParent(), wxID_OK, _("OK... Audacious!"));
 
342
   ok->SetDefault();
 
343
   ok->SetFocus();
 
344
 
 
345
   S.Prop(0).AddWindow( ok );
 
346
   S.EndVerticalLay();
 
347
   S.EndNotebookPage();
 
348
 
 
349
 
 
350
   // Old way to add to about box (for comparison).  Remove this once we're
 
351
   // happy with the new way.
 
352
#if 0
294
353
   wxBoxSizer * pBoxSizer = new wxBoxSizer(wxVERTICAL);
295
354
 
296
355
//   logo = new wxBitmap((const char **) AudacityLogo_xpm);
310
369
   /* i18n-hint: Rather than a literal translation, consider adding the
311
370
   appropriate suffix or prefix to create a word meaning 'something which
312
371
   has Audacity' */
313
 
   wxButton *ok = new wxButton(this, wxID_OK, _("Audacious!"));
 
372
   wxButton *ok = new wxButton(this, wxID_OK, _("OK... Audacious!"));
314
373
   ok->SetDefault();
315
374
   ok->SetFocus();
316
375
   pBoxSizer->Add(ok, 0, wxALIGN_CENTER | wxALL, 8);
321
380
   pBoxSizer->SetSizeHints(this);
322
381
 
323
382
   this->Centre();
 
383
#endif
 
384
}
 
385
 
 
386
 
 
387
void AboutDialog::PopulateLicensePage( ShuttleGui & S )
 
388
{
 
389
   S.StartNotebookPage( _("GPL License") );
 
390
   S.StartVerticalLay(1);
 
391
   wxHtmlWindow *html = new wxHtmlWindow(S.GetParent(), -1,
 
392
                                         wxDefaultPosition,
 
393
                                         wxSize(LOGOWITHNAME_WIDTH, 264), // wxSize(480, 240),
 
394
                                         wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
 
395
 
 
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.
 
400
//
 
401
// The GPL is not to be translated....
 
402
   wxString PageText=
 
403
wxT("               <center>GNU GENERAL PUBLIC LICENSE\n</center>")
 
404
wxT("                  <center>Version 2, June 1991\n</center>")
 
405
wxT("<p><p>")
 
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")
 
410
wxT("\n")
 
411
wxT("                      <center>Preamble\n</center>")
 
412
wxT("<p><p>\n")
 
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")
 
422
wxT("<p><p>\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")
 
429
wxT("<p><p>\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")
 
434
wxT("<p><p>\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")
 
439
wxT("rights.\n")
 
440
wxT("<p><p>\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")
 
444
wxT("<p><p>\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")
 
451
wxT("<p><p>\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")
 
457
wxT("<p><p>\n")
 
458
wxT("  The precise terms and conditions for copying, distribution and\n")
 
459
wxT("modification follow.\n")
 
460
wxT("<p><p>\n")
 
461
wxT("              <center>GNU GENERAL PUBLIC LICENSE\n</center>")
 
462
wxT("   <center>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n</center>")
 
463
wxT("<p><p>\n")
 
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")
 
473
wxT("<p><p>\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")
 
480
wxT("<p><p>\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")
 
488
wxT("<p><p>\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")
 
491
wxT("<p><p>\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")
 
496
wxT("<p><p>\n")
 
497
wxT("<blockquote>")
 
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")
 
500
wxT("<p><p>\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")
 
505
wxT("<p><p>\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")
 
516
wxT("</blockquote>")
 
517
wxT("<p><p>\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")
 
527
wxT("<p><p>\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")
 
532
wxT("<p><p>\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")
 
537
wxT("<p><p>\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")
 
541
wxT("<p><p>\n")
 
542
wxT("<blockquote>")
 
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")
 
546
wxT("<p><p>\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")
 
553
wxT("<p><p>\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")
 
559
wxT("</blockquote>")
 
560
wxT("<p><p>\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")
 
571
wxT("<p><p>\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")
 
577
wxT("<p><p>\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")
 
585
wxT("<p><p>\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")
 
594
wxT("<p><p>\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")
 
602
wxT("<p><p>\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")
 
615
wxT("<p><p>\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")
 
620
wxT("<p><p>\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")
 
631
wxT("<p><p>\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")
 
634
wxT("<p><p>\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")
 
642
wxT("<p><p>\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")
 
647
wxT("<p><p>\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")
 
654
wxT("Foundation.\n")
 
655
wxT("<p><p>\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")
 
663
wxT("<p><p>\n")
 
664
wxT("                       <center>NO WARRANTY\n</center>")
 
665
wxT("<p><p>\n")
 
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")
 
675
wxT("<p><p>\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");
 
685
 
 
686
   html->SetPage( PageText );
 
687
 
 
688
   S.Prop(1).AddWindow( html, wxEXPAND );
 
689
   S.Id( wxID_OK).AddButton( _("Close") );
 
690
 
 
691
   S.EndVerticalLay();
 
692
   S.EndNotebookPage();
324
693
}
325
694
 
326
695
void AboutDialog::AddCredit(const wxString& description, Role role)