Coverage Report - cs.pancava.caltha.AboutDialog
 
Classes in this File Line Coverage Branch Coverage Complexity
AboutDialog
0%
0/39
N/A
1
AboutDialog$1
0%
0/3
N/A
1
 
 1  
 /* $Id: AboutDialog.java 14 2008-12-07 16:56:26Z mihlon $ */
 2  
 
 3  
 //////////////////////////////////////////////////////////////////////////////
 4  
 //                                                                          //
 5  
 //   This program is free software: you can redistribute it and/or modify   //
 6  
 //   it under the terms of the GNU General Public License as published by   //
 7  
 //   the Free Software Foundation, either version 3 of the License, or      //
 8  
 //   at your option any later version.                                      //
 9  
 //                                                                          //
 10  
 //   This program is distributed in the hope that it will be useful,        //
 11  
 //   but WITHOUT ANY WARRANTY; without even the implied warranty of         //
 12  
 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          //
 13  
 //   GNU General Public License for more details.                           //
 14  
 //                                                                          //
 15  
 //   You should have received a copy of the GNU General Public License      //
 16  
 //   along with this program.  If not, see <http://www.gnu.org/licenses/>.  //
 17  
 //                                                                          //
 18  
 //////////////////////////////////////////////////////////////////////////////
 19  
 
 20  
 package cs.pancava.caltha;
 21  
 
 22  
 import java.awt.BorderLayout;
 23  
 import java.awt.Font;
 24  
 import java.awt.GridLayout;
 25  
 import java.awt.event.ActionEvent;
 26  
 import java.awt.event.ActionListener;
 27  
 import javax.swing.BorderFactory;
 28  
 import javax.swing.JButton;
 29  
 import javax.swing.JDialog;
 30  
 import javax.swing.JLabel;
 31  
 import javax.swing.JPanel;
 32  
 import javax.swing.JScrollPane;
 33  
 import javax.swing.JTextArea;
 34  
 
 35  
 /**
 36  
  * <p><b>Behem vypoctu zobrazi dialog, ktery informuje o prubehu.</b></p>
 37  
  *
 38  
  * @author Milan Vaclavik<br />
 39  
  * @version $Revision: 14 $<br />
 40  
  * $LastChangedBy: mihlon $<br />
 41  
  */
 42  0
 public class AboutDialog extends JDialog
 43  
 {
 44  
     /**
 45  
      * Identifikace tridy - datum vzniku tridy :).
 46  
      */
 47  
     private static final long serialVersionUID = 20080504184126L;
 48  
 
 49  
     /**
 50  
      * Horizontalni mezera komponent v layout manageru.
 51  
      */
 52  
     private static final int HORIZONTALNI_MEZERA_OKNA_I = 10;
 53  
 
 54  
     /**
 55  
      * Vertikalni mezera komponent v layout manageru.
 56  
      */
 57  
     private static final int VERTIKALNI_MEZERA_OKNA_I = 10;
 58  
 
 59  
     /**
 60  
      * Udava velikost (sirku) okna zobrazujici licenci programu.
 61  
      */
 62  
     private static final int SIRKA_OKNA_LICENCE_I = 400;
 63  
 
 64  
     /**
 65  
      * Udava velikost (sirku) okna zobrazujici licenci programu.
 66  
      */
 67  
     private static final int VYSKA_OKNA_LICENCE_I = 400;
 68  
 
 69  
     /**
 70  
      * Pocet radku v okne zobrazujici informace o programu.
 71  
      */
 72  
     private static final int RADKY_OKNA_DETAILY_I = 4;
 73  
 
 74  
     /**
 75  
      * Pocet sloupcu v okne zobrazujici informace o programu.
 76  
      */
 77  
     private static final int SLOUPCE_OKNA_DETAILY_I = 1;
 78  
 
 79  
     /**
 80  
      * Horizontani mezera komponent v okne zobrazujici detaily o programu.
 81  
      */
 82  
     private static final int HORIZONTALNI_MEZERA_OKNA_DETAILY_I = 10;
 83  
 
 84  
     /**
 85  
      * Vertikalni mezera komponent v okne zobrazujici detaily o programu.
 86  
      */
 87  
     private static final int VERTIKALNI_MEZERA_OKNA_DETAILY_I = 10;
 88  
 
 89  
     /**
 90  
      * Horizontani mezera komponent v okne zobrazujici informace o programu.
 91  
      */
 92  
     private static final int HORIZONTALNI_MEZERA_OKNA_INFO_I = 10;
 93  
 
 94  
     /**
 95  
      * Vertikalni mezera komponent v okne zobrazujici informace o programu.
 96  
      */
 97  
     private static final int VERTIKALNI_MEZERA_OKNA_INFO_I = 10;
 98  
 
 99  
     /**
 100  
      * Velikost fontu v textovem poli, ktere zobrazuje texl licence.
 101  
      */
 102  
     private static final int VELIKOST_FONTU_LICENCE_I = 12;
 103  
 
 104  
     /**
 105  
      * Urcuje velikost volneho mista okolo ramecku zobrazujici licence k programu.
 106  
      */
 107  
     private static final int OKRAJ_RAMECKU_OKNALICENCE_I = 5;
 108  
 
 109  
     /**
 110  
      * Textove pole obsahuji text licence.
 111  
      */
 112  
     private JTextArea licenceTextArea;
 113  
 
 114  
     /**
 115  
      * Konstruktor - Vytvori dialogove okno, ktere informuje o programu
 116  
      * (Caltha) Editor pro tvorbu RPG svetu.
 117  
      * Dokud se dialogove okno nezavre, tak uzivatel nemuze nic delat.
 118  
      */
 119  
     AboutDialog()
 120  
     {
 121  0
         super();
 122  
 
 123  0
         this.setModal(true);
 124  0
         this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
 125  
 
 126  0
         this.setLayout(new BorderLayout(AboutDialog.HORIZONTALNI_MEZERA_OKNA_I,
 127  
                                         AboutDialog.VERTIKALNI_MEZERA_OKNA_I));
 128  0
         this.setSize(AboutDialog.SIRKA_OKNA_LICENCE_I,
 129  
                      AboutDialog.VYSKA_OKNA_LICENCE_I);
 130  
 
 131  0
         this.setTitle(Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-AboutDialog_tit"));
 132  
 
 133  0
         this.add(this.createInfo(), BorderLayout.NORTH);
 134  0
         this.add(this.showLicence(), BorderLayout.CENTER);
 135  0
         this.add(this.createCloseButton(), BorderLayout.SOUTH);
 136  
 
 137  
         // TODO: Zobrazit vycentrovany dialog ( uprostred os XY).
 138  0
     }
 139  
 
 140  
     /**
 141  
      * Vytvori tlacitko, ktere zavre dialog "O programu".
 142  
      * @return JButton : Reference na vytvorene tlacitko.
 143  
      */
 144  
     private JButton createCloseButton()
 145  
     {
 146  0
         final JButton b = new JButton(Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createCloseButton_name"));
 147  0
         b.setEnabled(Boolean.TRUE);
 148  0
         b.setToolTipText(Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createCloseButton_tip"));
 149  0
         b.addActionListener(new ActionListener()
 150  0
         {
 151  
             @Override
 152  
             public void actionPerformed(final ActionEvent e)
 153  
             {
 154  0
                 closeButton_actionPerformed(e);
 155  0
             }
 156  
         });
 157  
 
 158  0
         return b;
 159  
     }
 160  
 
 161  
     /**
 162  
      * Zavre modalni okno - ukonzi zobrazovani dialogu "O programu".
 163  
      * @param e ActionEvent
 164  
      */
 165  
     private void closeButton_actionPerformed(final ActionEvent e)
 166  
     {
 167  0
         this.dispose();
 168  0
     }
 169  
 
 170  
     /**
 171  
      * Vytvori panel obsahujici detaily o programu.
 172  
      * @return JPanel : Reference na panel s detaily.
 173  
      */
 174  
     private JPanel createDetails()
 175  
     {
 176  0
         final JPanel details = new JPanel(new GridLayout(AboutDialog.RADKY_OKNA_DETAILY_I,
 177  
                                                          AboutDialog.SLOUPCE_OKNA_DETAILY_I,
 178  
                                                          AboutDialog.HORIZONTALNI_MEZERA_OKNA_DETAILY_I,
 179  
                                                          AboutDialog.VERTIKALNI_MEZERA_OKNA_DETAILY_I));
 180  
 
 181  0
         details.add(new JLabel("       "    + Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createDetails_version")
 182  
                                       + " " + Editor.getSvnVersion(), JLabel.LEFT));
 183  0
         details.add(new JLabel("          " + Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createDetails_years"),   JLabel.LEFT));
 184  0
         details.add(new JLabel("       "    + Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createDetails_authors"), JLabel.LEFT));
 185  0
         details.add(new JLabel("       "    + Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createDetails_emails"),  JLabel.LEFT));
 186  
 
 187  0
         return details;
 188  
     }
 189  
 
 190  
     /**
 191  
      * Vytvori panel obsahujici informace o programu.
 192  
      * @return JPanel : Reference na panel s informacemi o programu.
 193  
      */
 194  
     private JPanel createInfo()
 195  
     {
 196  0
         final JPanel infoJPanel = new JPanel(new BorderLayout(AboutDialog.HORIZONTALNI_MEZERA_OKNA_INFO_I,
 197  
                                                               AboutDialog.VERTIKALNI_MEZERA_OKNA_INFO_I));
 198  
 
 199  0
         infoJPanel.add(new JLabel(Editor.getResourcesBundleString("cs.pancava.caltha.AboutDialog-createInfo_name"),
 200  
                        JLabel.CENTER), BorderLayout.NORTH);
 201  
 
 202  0
         infoJPanel.add(this.createDetails(), BorderLayout.CENTER);
 203  
 
 204  0
         return infoJPanel;
 205  
     }
 206  
 
 207  
     /**
 208  
      * Do promenne (textoveho pole) nacte cele zneni licence.
 209  
      */
 210  
     private void readLicence()
 211  
     {
 212  0
         this.licenceTextArea = new JTextArea(
 213  
    "                     GNU GENERAL PUBLIC LICENSE\n"
 214  
  + "                         Version 3, 29 June 2007\n"
 215  
  + "  \n"
 216  
  + "   Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>"
 217  
  + "  Everyone is permitted to copy and distribute verbatim copies"
 218  
  + "  of this license document, but changing it is not allowed.\n"
 219  
  + " \n"
 220  
  + "                             Preamble\n"
 221  
  + " \n"
 222  
  + "   The GNU General Public License is a free, copyleft license for"
 223  
  + " software and other kinds of works.\n"
 224  
  + " \n"
 225  
  + "   The licenses for most software and other practical works are designed"
 226  
  + " to take away your freedom to share and change the works.  By contrast,"
 227  
  + " the GNU General Public License is intended to guarantee your freedom to"
 228  
  + " share and change all versions of a program--to make sure it remains free"
 229  
  + " software for all its users.  We, the Free Software Foundation, use the"
 230  
  + " GNU General Public License for most of our software; it applies also to"
 231  
  + " any other work released this way by its authors.  You can apply it to"
 232  
  + " your programs, too.\n"
 233  
  + " \n"
 234  
  + "   When we speak of free software, we are referring to freedom, not"
 235  
  + " price.  Our General Public Licenses are designed to make sure that you"
 236  
  + " have the freedom to distribute copies of free software (and charge forthem"
 237  
  + " if you wish), that you receive source code or can get it if you"
 238  
  + " want it, that you can change the software or use pieces of it in new"
 239  
  + " free programs, and that you know you can do these things.\n"
 240  
  + " \n"
 241  
  + "   To protect your rights, we need to prevent others from denying you"
 242  
  + " these rights or asking you to surrender the rights.  Therefore, you have"
 243  
  + " certain responsibilities if you distribute copies of the software, or if"
 244  
  + " you modify it: responsibilities to respect the freedom of others.\n"
 245  
  + " \n"
 246  
  + "   For example, if you distribute copies of such a program, whether"
 247  
  + " gratis or for a fee, you must pass on to the recipients the same"
 248  
  + " freedoms that you received.  You must make sure that they, too, receive"
 249  
  + " or can get the source code.  And you must show them these terms so they"
 250  
  + " know their rights.\n"
 251  
  + " \n"
 252  
  + "   Developers that use the GNU GPL protect your rights with two steps:"
 253  
  + " (1) assert copyright on the software, and (2) offer you this License"
 254  
  + " giving you legal permission to copy, distribute and/or modify it.\n"
 255  
  + " \n"
 256  
  + "   For the developers' and authors' protection, the GPL clearly explains"
 257  
  + " that there is no warranty for this free software.  For both users' and"
 258  
  + " authors' sake, the GPL requires that modified versions be marked as"
 259  
  + " changed, so that their problems will not be attributed erroneously to"
 260  
  + " authors of previous versions.\n"
 261  
  + " \n"
 262  
  + "   Some devices are designed to deny users access to install or run"
 263  
  + " modified versions of the software inside them, although the manufacturer"
 264  
  + " can do so.  This is fundamentally incompatible with the aim of"
 265  
  + " protecting users' freedom to change the software.  The systematic"
 266  
  + " pattern of such abuse occurs in the area of products for individuals to"
 267  
  + " use, which is precisely where it is most unacceptable.  Therefore, we"
 268  
  + " have designed this version of the GPL to prohibit the practice for those"
 269  
  + " products.  If such problems arise substantially in other domains, we"
 270  
  + " stand ready to extend this provision to those domains in future versions"
 271  
  + " of the GPL, as needed to protect the freedom of users.\n"
 272  
  + " \n"
 273  
  + "   Finally, every program is threatened constantly by software patents."
 274  
  + " States should not allow patents to restrict development and use of"
 275  
  + " software on general-purpose computers, but in those that do, we wish to"
 276  
  + " avoid the special danger that patents applied to a free program could"
 277  
  + " make it effectively proprietary.  To prevent this, the GPL assures that"
 278  
  + " patents cannot be used to render the program non-free.\n"
 279  
  + " \n"
 280  
  + "   The precise terms and conditions for copying, distribution and"
 281  
  + " modification follow.\n"
 282  
  + " \n"
 283  
  + "                        TERMS AND CONDITIONS\n"
 284  
  + " \n"
 285  
  + "   0. Definitions.\n"
 286  
  + " \n"
 287  
  + "   \"This License\" refers to version 3 of the GNU General Public License.\n"
 288  
  + " \n"
 289  
  + "   \"Copyright\" also means copyright-like laws that apply to other kinds of"
 290  
  + " works, such as semiconductor masks.\n"
 291  
  + " \n"
 292  
  + "   \"The Program\" refers to any copyrightable work licensed under this"
 293  
  + " License.  Each licensee is addressed as \"you\".  \"Licensees\" and"
 294  
  + " \"recipients\" may be individuals or organizations.\n"
 295  
  + " \n"
 296  
  + "   To \"modify\" a work means to copy from or adapt all or part of the work"
 297  
  + " in a fashion requiring copyright permission, other than the making of an"
 298  
  + " exact copy.  The resulting work is called a \"modified version\" of the"
 299  
  + " earlier work or a work \"based on\" the earlier work.\n"
 300  
  + " \n"
 301  
  + "   A \"covered work\" means either the unmodified Program or a work based"
 302  
  + " on the Program.\n"
 303  
  + " \n"
 304  
  + "   To \"propagate\" a work means to do anything with it that, without"
 305  
  + " permission, would make you directly or secondarily liable for"
 306  
  + " infringement under applicable copyright law, except executing it on a"
 307  
  + " computer or modifying a private copy.  Propagation includes copying,"
 308  
  + " distribution (with or without modification), making available to the"
 309  
  + " public, and in some countries other activities as well.\n"
 310  
  + " \n"
 311  
  + "   To \"convey\" a work means any kind of propagation that enables other"
 312  
  + " parties to make or receive copies.  Mere interaction with a user through"
 313  
  + " a computer network, with no transfer of a copy, is not conveying.\n"
 314  
  + " \n"
 315  
  + "   An interactive user interface displays \"Appropriate Legal Notices\""
 316  
  + " to the extent that it includes a convenient and prominently visible"
 317  
  + " feature that (1) displays an appropriate copyright notice, and (2)"
 318  
  + " tells the user that there is no warranty for the work (except to the"
 319  
  + " extent that warranties are provided), that licensees may convey the"
 320  
  + " work under this License, and how to view a copy of this License.  If"
 321  
  + " the interface presents a list of user commands or options, such as a"
 322  
  + " menu, a prominent item in the list meets this criterion.\n"
 323  
  + " \n"
 324  
  + "   1. Source Code.\n"
 325  
  + " \n"
 326  
  + "   The \"source code\" for a work means the preferred form of the work"
 327  
  + " for making modifications to it.  \"Object code\" means any non-source"
 328  
  + " form of a work.\n"
 329  
  + " \n"
 330  
  + "   A \"Standard Interface\" means an interface that either is an official"
 331  
  + " standard defined by a recognized standards body, or, in the case of"
 332  
  + " interfaces specified for a particular programming language, one that"
 333  
  + " is widely used among developers working in that language.\n"
 334  
  + " \n"
 335  
  + "   The \"System Libraries\" of an executable work include anything, other"
 336  
  + " than the work as a whole, that (a) is included in the normal form of"
 337  
  + " packaging a Major Component, but which is not part of that Major"
 338  
  + " Component, and (b) serves only to enable use of the work with that"
 339  
  + " Major Component, or to implement a Standard Interface for which an"
 340  
  + " implementation is available to the public in source code form.  A"
 341  
  + " \"Major Component\", in this context, means a major essential component"
 342  
  + " (kernel, window system, and so on) of the specific operating system"
 343  
  + " (if any) on which the executable work runs, or a compiler used to"
 344  
  + " produce the work, or an object code interpreter used to run it.\n"
 345  
  + " \n"
 346  
  + "   The \"Corresponding Source\" for a work in object code form means all"
 347  
  + " the source code needed to generate, install, and (for an executable"
 348  
  + " work) run the object code and to modify the work, including scripts to"
 349  
  + " control those activities.  However, it does not include the work's"
 350  
  + " System Libraries, or general-purpose tools or generally available free"
 351  
  + " programs which are used unmodified in performing those activities but"
 352  
  + " which are not part of the work.  For example, Corresponding Source"
 353  
  + " includes interface definition files associated with source files for"
 354  
  + " the work, and the source code for shared libraries and dynamically"
 355  
  + " linked subprograms that the work is specifically designed to require,"
 356  
  + " such as by intimate data communication or control flow between those"
 357  
  + " subprograms and other parts of the work.\n"
 358  
  + " \n"
 359  
  + "   The Corresponding Source need not include anything that users"
 360  
  + " can regenerate automatically from other parts of the Corresponding"
 361  
  + " Source.\n"
 362  
  + " \n"
 363  
  + "   The Corresponding Source for a work in source code form is that"
 364  
  + " same work.\n"
 365  
  + " \n"
 366  
  + "   2. Basic Permissions.\n"
 367  
  + " \n"
 368  
  + "   All rights granted under this License are granted for the term of"
 369  
  + " copyright on the Program, and are irrevocable provided the stated"
 370  
  + " conditions are met.  This License explicitly affirms your unlimited"
 371  
  + " permission to run the unmodified Program.  The output from running a"
 372  
  + " covered work is covered by this License only if the output, given its"
 373  
  + " content, constitutes a covered work.  This License acknowledges your"
 374  
  + " rights of fair use or other equivalent, as provided by copyright law.\n"
 375  
  + " \n"
 376  
  + "   You may make, run and propagate covered works that you do not"
 377  
  + " convey, without conditions so long as your license otherwise remains"
 378  
  + " in force.  You may convey covered works to others for the sole purpose"
 379  
  + " of having them make modifications exclusively for you, or provide you"
 380  
  + " with facilities for running those works, provided that you comply with"
 381  
  + " the terms of this License in conveying all material for which you do"
 382  
  + " not control copyright.  Those thus making or running the covered works"
 383  
  + " for you must do so exclusively on your behalf, under your direction"
 384  
  + " and control, on terms that prohibit them from making any copies of"
 385  
  + " your copyrighted material outside their relationship with you.\n"
 386  
  + " \n"
 387  
  + "   Conveying under any other circumstances is permitted solely under"
 388  
  + " the conditions stated below.  Sublicensing is not allowed; section 10"
 389  
  + " makes it unnecessary.\n"
 390  
  + " \n"
 391  
  + "   3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n"
 392  
  + " \n"
 393  
  + "   No covered work shall be deemed part of an effective technological"
 394  
  + " measure under any applicable law fulfilling obligations under article"
 395  
  + " 11 of the WIPO copyright treaty adopted on 20 December 1996, or"
 396  
  + " similar laws prohibiting or restricting circumvention of such"
 397  
  + " measures.\n"
 398  
  + " \n"
 399  
  + "   When you convey a covered work, you waive any legal power to forbid"
 400  
  + " circumvention of technological measures to the extent such circumvention"
 401  
  + " is effected by exercising rights under this License with respect to"
 402  
  + " the covered work, and you disclaim any intention to limit operation or"
 403  
  + " modification of the work as a means of enforcing, against the work's"
 404  
  + " users, your or third parties' legal rights to forbid circumvention of"
 405  
  + " technological measures.\n"
 406  
  + " \n"
 407  
  + "   4. Conveying Verbatim Copies.\n"
 408  
  + " \n"
 409  
  + "   You may convey verbatim copies of the Program's source code as you"
 410  
  + " receive it, in any medium, provided that you conspicuously and"
 411  
  + " appropriately publish on each copy an appropriate copyright notice;"
 412  
  + " keep intact all notices stating that this License and any"
 413  
  + " non-permissive terms added in accord with section 7 apply to the code;"
 414  
  + " keep intact all notices of the absence of any warranty; and give all"
 415  
  + " recipients a copy of this License along with the Program.\n"
 416  
  + " \n"
 417  
  + "   You may charge any price or no price for each copy that you convey,"
 418  
  + " and you may offer support or warranty protection for a fee.\n"
 419  
  + " \n"
 420  
  + "   5. Conveying Modified Source Versions.\n"
 421  
  + " \n"
 422  
  + "   You may convey a work based on the Program, or the modifications to"
 423  
  + " produce it from the Program, in the form of source code under the"
 424  
  + " terms of section 4, provided that you also meet all of these conditions:\n"
 425  
  + " \n"
 426  
  + "     a) The work must carry prominent notices stating that you modified"
 427  
  + "     it, and giving a relevant date.\n"
 428  
  + " \n"
 429  
  + "     b) The work must carry prominent notices stating that it is"
 430  
  + "     released under this License and any conditions added under section"
 431  
  + "     7.  This requirement modifies the requirement in section 4 to"
 432  
  + "     \"keep intact all notices\".\n"
 433  
  + " \n"
 434  
  + "     c) You must license the entire work, as a whole, under this"
 435  
  + "     License to anyone who comes into possession of a copy.  This"
 436  
  + "     License will therefore apply, along with any applicable section 7"
 437  
  + "     additional terms, to the whole of the work, and all its parts,"
 438  
  + "     regardless of how they are packaged.  This License gives no"
 439  
  + "     permission to license the work in any other way, but it does not"
 440  
  + "     invalidate such permission if you have separately received it.\n"
 441  
  + " \n"
 442  
  + "     d) If the work has interactive user interfaces, each must display"
 443  
  + "     Appropriate Legal Notices; however, if the Program has interactive"
 444  
  + "     interfaces that do not display Appropriate Legal Notices, your"
 445  
  + "     work need not make them do so.\n"
 446  
  + " \n"
 447  
  + "   A compilation of a covered work with other separate and independent"
 448  
  + " works, which are not by their nature extensions of the covered work,"
 449  
  + " and which are not combined with it such as to form a larger program,"
 450  
  + " in or on a volume of a storage or distribution medium, is called an"
 451  
  + " \"aggregate\" if the compilation and its resulting copyright are not"
 452  
  + " used to limit the access or legal rights of the compilation's users"
 453  
  + " beyond what the individual works permit.  Inclusion of a covered work"
 454  
  + " in an aggregate does not cause this License to apply to the other"
 455  
  + " parts of the aggregate.\n"
 456  
  + " \n"
 457  
  + "   6. Conveying Non-Source Forms.\n"
 458  
  + " \n"
 459  
  + "   You may convey a covered work in object code form under the terms"
 460  
  + " of sections 4 and 5, provided that you also convey the"
 461  
  + " machine-readable Corresponding Source under the terms of this License,"
 462  
  + " in one of these ways:\n"
 463  
  + " \n"
 464  
  + "     a) Convey the object code in, or embodied in, a physical product"
 465  
  + "     (including a physical distribution medium), accompanied by the"
 466  
  + "     Corresponding Source fixed on a durable physical medium"
 467  
  + "     customarily used for software interchange.\n"
 468  
  + " \n"
 469  
  + "     b) Convey the object code in, or embodied in, a physical product"
 470  
  + "     (including a physical distribution medium), accompanied by a"
 471  
  + "     written offer, valid for at least three years and valid for as"
 472  
  + "     long as you offer spare parts or customer support for that product"
 473  
  + "     model, to give anyone who possesses the object code either (1) a"
 474  
  + "     copy of the Corresponding Source for all the software in the"
 475  
  + "     product that is covered by this License, on a durable physical"
 476  
  + "     medium customarily used for software interchange, for a price no"
 477  
  + "     more than your reasonable cost of physically performing this"
 478  
  + "     conveying of source, or (2) access to copy the"
 479  
  + "     Corresponding Source from a network server at no charge.\n"
 480  
  + " \n"
 481  
  + "     c) Convey individual copies of the object code with a copy of the"
 482  
  + "     written offer to provide the Corresponding Source.  This"
 483  
  + "     alternative is allowed only occasionally and noncommercially, and"
 484  
  + "     only if you received the object code with such an offer, in accord"
 485  
  + "     with subsection 6b.\n"
 486  
  + " \n"
 487  
  + "     d) Convey the object code by offering access from a designated"
 488  
  + "     place (gratis or for a charge), and offer equivalent access to the"
 489  
  + "     Corresponding Source in the same way through the same place at no"
 490  
  + "     further charge.  You need not require recipients to copy the"
 491  
  + "     Corresponding Source along with the object code.  If the place to"
 492  
  + "     copy the object code is a network server, the Corresponding Source"
 493  
  + "     may be on a different server (operated by you or a third party)"
 494  
  + "     that supports equivalent copying facilities, provided you maintain"
 495  
  + "     clear directions next to the object code saying where to find the"
 496  
  + "     Corresponding Source.  Regardless of what server hosts the"
 497  
  + "     Corresponding Source, you remain obligated to ensure that it is"
 498  
  + "     available for as long as needed to satisfy these requirements.\n"
 499  
  + " \n"
 500  
  + "     e) Convey the object code using peer-to-peer transmission, provided"
 501  
  + "     you inform other peers where the object code and Corresponding"
 502  
  + "     Source of the work are being offered to the general public at no"
 503  
  + "     charge under subsection 6d.\n"
 504  
  + " \n"
 505  
  + "   A separable portion of the object code, whose source code is excluded"
 506  
  + " from the Corresponding Source as a System Library, need not be"
 507  
  + " included in conveying the object code work.\n"
 508  
  + " \n"
 509  
  + "   A \"User Product\" is either (1) a \"consumer product\", which means any"
 510  
  + " tangible personal property which is normally used for personal, family,"
 511  
  + " or household purposes, or (2) anything designed or sold for incorporation"
 512  
  + " into a dwelling.  In determining whether a product is a consumer product,"
 513  
  + " doubtful cases shall be resolved in favor of coverage.  For a particular"
 514  
  + " product received by a particular user, \"normally used\" refers to a"
 515  
  + " typical or common use of that class of product, regardless of the status"
 516  
  + " of the particular user or of the way in which the particular user"
 517  
  + " actually uses, or expects or is expected to use, the product.  A product"
 518  
  + " is a consumer product regardless of whether the product has substantial"
 519  
  + " commercial, industrial or non-consumer uses, unless such uses represent"
 520  
  + " the only significant mode of use of the product.\n"
 521  
  + " \n"
 522  
  + "   \"Installation Information\" for a User Product means any methods,"
 523  
  + " procedures, authorization keys, or other information required to install"
 524  
  + " and execute modified versions of a covered work in that User Product from"
 525  
  + " a modified version of its Corresponding Source.  The information must"
 526  
  + " suffice to ensure that the continued functioning of the modified object"
 527  
  + " code is in no case prevented or interfered with solely because"
 528  
  + " modification has been made.\n"
 529  
  + " \n"
 530  
  + "   If you convey an object code work under this section in, or with, or"
 531  
  + " specifically for use in, a User Product, and the conveying occurs as"
 532  
  + " part of a transaction in which the right of possession and use of the"
 533  
  + " User Product is transferred to the recipient in perpetuity or for a"
 534  
  + " fixed term (regardless of how the transaction is characterized), the"
 535  
  + " Corresponding Source conveyed under this section must be accompanied"
 536  
  + " by the Installation Information.  But this requirement does not apply"
 537  
  + " if neither you nor any third party retains the ability to install"
 538  
  + " modified object code on the User Product (for example, the work has"
 539  
  + " been installed in ROM).\n"
 540  
  + " \n"
 541  
  + "   The requirement to provide Installation Information does not include a"
 542  
  + " requirement to continue to provide support service, warranty, or updates"
 543  
  + " for a work that has been modified or installed by the recipient, or for"
 544  
  + " the User Product in which it has been modified or installed.  Access to a"
 545  
  + " network may be denied when the modification itself materially and"
 546  
  + " adversely affects the operation of the network or violates the rules and"
 547  
  + " protocols for communication across the network.\n"
 548  
  + " \n"
 549  
  + "   Corresponding Source conveyed, and Installation Information provided,"
 550  
  + " in accord with this section must be in a format that is publicly"
 551  
  + " documented (and with an implementation available to the public in"
 552  
  + " source code form), and must require no special password or key for"
 553  
  + " unpacking, reading or copying.\n"
 554  
  + " \n"
 555  
  + "   7. Additional Terms.\n"
 556  
  + " \n"
 557  
  + "   \"Additional permissions\" are terms that supplement the terms of this"
 558  
  + " License by making exceptions from one or more of its conditions."
 559  
  + " Additional permissions that are applicable to the entire Program shall"
 560  
  + " be treated as though they were included in this License, to the extent"
 561  
  + " that they are valid under applicable law.  If additional permissions"
 562  
  + " apply only to part of the Program, that part may be used separately"
 563  
  + " under those permissions, but the entire Program remains governed by"
 564  
  + " this License without regard to the additional permissions.\n"
 565  
  + " \n"
 566  
  + "   When you convey a copy of a covered work, you may at your option"
 567  
  + " remove any additional permissions from that copy, or from any part of"
 568  
  + " it.  (Additional permissions may be written to require their own"
 569  
  + " removal in certain cases when you modify the work.)  You may place"
 570  
  + " additional permissions on material, added by you to a covered work,"
 571  
  + " for which you have or can give appropriate copyright permission.\n"
 572  
  + " \n"
 573  
  + "   Notwithstanding any other provision of this License, for material you"
 574  
  + " add to a covered work, you may (if authorized by the copyright holders of"
 575  
  + " that material) supplement the terms of this License with terms:\n"
 576  
  + " \n"
 577  
  + "     a) Disclaiming warranty or limiting liability differently from the"
 578  
  + "     terms of sections 15 and 16 of this License; or\n"
 579  
  + " \n"
 580  
  + "     b) Requiring preservation of specified reasonable legal notices or"
 581  
  + "     author attributions in that material or in the Appropriate Legal"
 582  
  + "     Notices displayed by works containing it; or\n"
 583  
  + " \n"
 584  
  + "     c) Prohibiting misrepresentation of the origin of that material, or"
 585  
  + "     requiring that modified versions of such material be marked in"
 586  
  + "     reasonable ways as different from the original version; or\n"
 587  
  + " \n"
 588  
  + "     d) Limiting the use for publicity purposes of names of licensors or"
 589  
  + "     authors of the material; or\n"
 590  
  + " \n"
 591  
  + "     e) Declining to grant rights under trademark law for use of some"
 592  
  + "     trade names, trademarks, or service marks; or\n"
 593  
  + " \n"
 594  
  + "     f) Requiring indemnification of licensors and authors of that"
 595  
  + "     material by anyone who conveys the material (or modified versions of"
 596  
  + "     it) with contractual assumptions of liability to the recipient, for"
 597  
  + "     any liability that these contractual assumptions directly impose on"
 598  
  + "     those licensors and authors.\n"
 599  
  + " \n"
 600  
  + "   All other non-permissive additional terms are considered \"further"
 601  
  + " restrictions\" within the meaning of section 10.  If the Program as you"
 602  
  + " received it, or any part of it, contains a notice stating that it is"
 603  
  + " governed by this License along with a term that is a further"
 604  
  + " restriction, you may remove that term.  If a license document contains"
 605  
  + " a further restriction but permits relicensing or conveying under this"
 606  
  + " License, you may add to a covered work material governed by the terms"
 607  
  + " of that license document, provided that the further restriction does"
 608  
  + " not survive such relicensing or conveying.\n"
 609  
  + " \n"
 610  
  + "   If you add terms to a covered work in accord with this section, you"
 611  
  + " must place, in the relevant source files, a statement of the"
 612  
  + " additional terms that apply to those files, or a notice indicating"
 613  
  + " where to find the applicable terms.\n"
 614  
  + " \n"
 615  
  + "   Additional terms, permissive or non-permissive, may be stated in the"
 616  
  + " form of a separately written license, or stated as exceptions;"
 617  
  + " the above requirements apply either way.\n"
 618  
  + " \n"
 619  
  + "   8. Termination.\n"
 620  
  + " \n"
 621  
  + "   You may not propagate or modify a covered work except as expressly"
 622  
  + " provided under this License.  Any attempt otherwise to propagate or"
 623  
  + " modify it is void, and will automatically terminate your rights under"
 624  
  + " this License (including any patent licenses granted under the third"
 625  
  + " paragraph of section 11).\n"
 626  
  + " \n"
 627  
  + "   However, if you cease all violation of this License, then your"
 628  
  + " license from a particular copyright holder is reinstated (a)"
 629  
  + " provisionally, unless and until the copyright holder explicitly and"
 630  
  + " finally terminates your license, and (b) permanently, if the copyright"
 631  
  + " holder fails to notify you of the violation by some reasonable means"
 632  
  + " prior to 60 days after the cessation.\n"
 633  
  + " \n"
 634  
  + "   Moreover, your license from a particular copyright holder is"
 635  
  + " reinstated permanently if the copyright holder notifies you of the"
 636  
  + " violation by some reasonable means, this is the first time you have"
 637  
  + " received notice of violation of this License (for any work) from that"
 638  
  + " copyright holder, and you cure the violation prior to 30 days after"
 639  
  + " your receipt of the notice.\n"
 640  
  + " \n"
 641  
  + "   Termination of your rights under this section does not terminate the"
 642  
  + " licenses of parties who have received copies or rights from you under"
 643  
  + " this License.  If your rights have been terminated and not permanently"
 644  
  + " reinstated, you do not qualify to receive new licenses for the same"
 645  
  + " material under section 10.\n"
 646  
  + " \n"
 647  
  + "   9. Acceptance Not Required for Having Copies.\n"
 648  
  + " \n"
 649  
  + "   You are not required to accept this License in order to receive or"
 650  
  + " run a copy of the Program.  Ancillary propagation of a covered work"
 651  
  + " occurring solely as a consequence of using peer-to-peer transmission"
 652  
  + " to receive a copy likewise does not require acceptance.  However,"
 653  
  + " nothing other than this License grants you permission to propagate or"
 654  
  + " modify any covered work.  These actions infringe copyright if you do"
 655  
  + " not accept this License.  Therefore, by modifying or propagating a"
 656  
  + " covered work, you indicate your acceptance of this License to do so.\n"
 657  
  + " \n"
 658  
  + "   10. Automatic Licensing of Downstream Recipients.\n"
 659  
  + " \n"
 660  
  + "   Each time you convey a covered work, the recipient automatically"
 661  
  + " receives a license from the original licensors, to run, modify and"
 662  
  + " propagate that work, subject to this License.  You are not responsible"
 663  
  + " for enforcing compliance by third parties with this License.\n"
 664  
  + " \n"
 665  
  + "   An \"entity transaction\" is a transaction transferring control of an"
 666  
  + " organization, or substantially all assets of one, or subdividing an"
 667  
  + " organization, or merging organizations.  If propagation of a covered"
 668  
  + " work results from an entity transaction, each party to that"
 669  
  + " transaction who receives a copy of the work also receives whatever"
 670  
  + " licenses to the work the party's predecessor in interest had or could"
 671  
  + " give under the previous paragraph, plus a right to possession of the"
 672  
  + " Corresponding Source of the work from the predecessor in interest, if"
 673  
  + " the predecessor has it or can get it with reasonable efforts.\n"
 674  
  + " \n"
 675  
  + "   You may not impose any further restrictions on the exercise of the"
 676  
  + " rights granted or affirmed under this License.  For example, you may"
 677  
  + " not impose a license fee, royalty, or other charge for exercise of"
 678  
  + " rights granted under this License, and you may not initiate litigation"
 679  
  + " (including a cross-claim or counterclaim in a lawsuit) alleging that"
 680  
  + " any patent claim is infringed by making, using, selling, offering for"
 681  
  + " sale, or importing the Program or any portion of it.\n"
 682  
  + " \n"
 683  
  + "   11. Patents.\n"
 684  
  + " \n"
 685  
  + "   A \"contributor\" is a copyright holder who authorizes use under this"
 686  
  + " License of the Program or a work on which the Program is based.  The"
 687  
  + " work thus licensed is called the contributor's \"contributor version\".\n"
 688  
  + " \n"
 689  
  + "   A contributor's \"essential patent claims\" are all patent claims"
 690  
  + " owned or controlled by the contributor, whether already acquired or"
 691  
  + " hereafter acquired, that would be infringed by some manner, permitted"
 692  
  + " by this License, of making, using, or selling its contributor version,"
 693  
  + " but do not include claims that would be infringed only as a"
 694  
  + " consequence of further modification of the contributor version.  For"
 695  
  + " purposes of this definition, \"control\" includes the right to grant"
 696  
  + " patent sublicenses in a manner consistent with the requirements of"
 697  
  + " this License.\n"
 698  
  + " \n"
 699  
  + "   Each contributor grants you a non-exclusive, worldwide, royalty-free"
 700  
  + " patent license under the contributor's essential patent claims, to"
 701  
  + " make, use, sell, offer for sale, import and otherwise run, modify and"
 702  
  + " propagate the contents of its contributor version.\n"
 703  
  + " \n"
 704  
  + "   In the following three paragraphs, a \"patent license\" is any express"
 705  
  + " agreement or commitment, however denominated, not to enforce a patent"
 706  
  + " (such as an express permission to practice a patent or covenant not to"
 707  
  + " sue for patent infringement).  To \"grant\" such a patent license to a"
 708  
  + " party means to make such an agreement or commitment not to enforce a"
 709  
  + " patent against the party.\n"
 710  
  + " \n"
 711  
  + "   If you convey a covered work, knowingly relying on a patent license,"
 712  
  + " and the Corresponding Source of the work is not available for anyone"
 713  
  + " to copy, free of charge and under the terms of this License, through a"
 714  
  + " publicly available network server or other readily accessible means,"
 715  
  + " then you must either (1) cause the Corresponding Source to be so"
 716  
  + " available, or (2) arrange to deprive yourself of the benefit of the"
 717  
  + " patent license for this particular work, or (3) arrange, in a manner"
 718  
  + " consistent with the requirements of this License, to extend the patent"
 719  
  + " license to downstream recipients.  \"Knowingly relying\" means you have"
 720  
  + " actual knowledge that, but for the patent license, your conveying the"
 721  
  + " covered work in a country, or your recipient's use of the covered work"
 722  
  + " in a country, would infringe one or more identifiable patents in that"
 723  
  + " country that you have reason to believe are valid.\n"
 724  
  + " \n"
 725  
  + "   If, pursuant to or in connection with a single transaction or"
 726  
  + " arrangement, you convey, or propagate by procuring conveyance of, a"
 727  
  + " covered work, and grant a patent license to some of the parties"
 728  
  + " receiving the covered work authorizing them to use, propagate, modify"
 729  
  + " or convey a specific copy of the covered work, then the patent license"
 730  
  + " you grant is automatically extended to all recipients of the covered"
 731  
  + " work and works based on it.\n"
 732  
  + " \n"
 733  
  + "   A patent license is \"discriminatory\" if it does not include within"
 734  
  + " the scope of its coverage, prohibits the exercise of, or is"
 735  
  + " conditioned on the non-exercise of one or more of the rights that are"
 736  
  + " specifically granted under this License.  You may not convey a covered"
 737  
  + " work if you are a party to an arrangement with a third party that is"
 738  
  + " in the business of distributing software, under which you make payment"
 739  
  + " to the third party based on the extent of your activity of conveying"
 740  
  + " the work, and under which the third party grants, to any of the"
 741  
  + " parties who would receive the covered work from you, a discriminatory"
 742  
  + " patent license (a) in connection with copies of the covered work"
 743  
  + " conveyed by you (or copies made from those copies), or (b) primarily"
 744  
  + " for and in connection with specific products or compilations that"
 745  
  + " contain the covered work, unless you entered into that arrangement,"
 746  
  + " or that patent license was granted, prior to 28 March 2007.\n"
 747  
  + " \n"
 748  
  + "   Nothing in this License shall be construed as excluding or limiting"
 749  
  + " any implied license or other defenses to infringement that may"
 750  
  + " otherwise be available to you under applicable patent law.\n"
 751  
  + " \n"
 752  
  + "   12. No Surrender of Others' Freedom.\n"
 753  
  + " \n"
 754  
  + "   If conditions are imposed on you (whether by court order, agreement or"
 755  
  + " otherwise) that contradict the conditions of this License, they do not"
 756  
  + " excuse you from the conditions of this License.  If you cannot convey a"
 757  
  + " covered work so as to satisfy simultaneously your obligations under this"
 758  
  + " License and any other pertinent obligations, then as a consequence you may"
 759  
  + " not convey it at all.  For example, if you agree to terms that obligate you"
 760  
  + " to collect a royalty for further conveying from those to whom you convey"
 761  
  + " the Program, the only way you could satisfy both those terms and this"
 762  
  + " License would be to refrain entirely from conveying the Program.\n"
 763  
  + " \n"
 764  
  + "   13. Use with the GNU Affero General Public License.\n"
 765  
  + " \n"
 766  
  + "   Notwithstanding any other provision of this License, you have"
 767  
  + " permission to link or combine any covered work with a work licensed"
 768  
  + " under version 3 of the GNU Affero General Public License into a single"
 769  
  + " combined work, and to convey the resulting work.  The terms of this"
 770  
  + " License will continue to apply to the part which is the covered work,"
 771  
  + " but the special requirements of the GNU Affero General Public License,"
 772  
  + " section 13, concerning interaction through a network will apply to the"
 773  
  + " combination as such.\n"
 774  
  + " \n"
 775  
  + "   14. Revised Versions of this License.\n"
 776  
  + " \n"
 777  
  + "   The Free Software Foundation may publish revised and/or new versions of"
 778  
  + " the GNU General Public License from time to time.  Such new versions will"
 779  
  + " be similar in spirit to the present version, but may differ in detail to"
 780  
  + " address new problems or concerns.\n"
 781  
  + " \n"
 782  
  + "   Each version is given a distinguishing version number.  If the"
 783  
  + " Program specifies that a certain numbered version of the GNU General"
 784  
  + " Public License \"or any later version\" applies to it, you have the"
 785  
  + " option of following the terms and conditions either of that numbered"
 786  
  + " version or of any later version published by the Free Software"
 787  
  + " Foundation.  If the Program does not specify a version number of the"
 788  
  + " GNU General Public License, you may choose any version ever published"
 789  
  + " by the Free Software Foundation.\n"
 790  
  + " \n"
 791  
  + "   If the Program specifies that a proxy can decide which future"
 792  
  + " versions of the GNU General Public License can be used, that proxy's"
 793  
  + " public statement of acceptance of a version permanently authorizes you"
 794  
  + " to choose that version for the Program.\n"
 795  
  + " \n"
 796  
  + "   Later license versions may give you additional or different"
 797  
  + " permissions.  However, no additional obligations are imposed on any"
 798  
  + " author or copyright holder as a result of your choosing to follow a"
 799  
  + " later version.\n"
 800  
  + " \n"
 801  
  + "   15. Disclaimer of Warranty.\n"
 802  
  + " \n"
 803  
  + "   THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY"
 804  
  + " APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT"
 805  
  + " HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY"
 806  
  + " OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,"
 807  
  + " THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR"
 808  
  + " PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM"
 809  
  + " IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF"
 810  
  + " ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n"
 811  
  + " \n"
 812  
  + "   16. Limitation of Liability.\n"
 813  
  + " \n"
 814  
  + "   IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING"
 815  
  + " WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS"
 816  
  + " THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY"
 817  
  + " GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE"
 818  
  + " USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF"
 819  
  + " PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),"
 820  
  + " EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF"
 821  
  + " SUCH DAMAGES.\n"
 822  
  + " \n"
 823  
  + "   17. Interpretation of Sections 15 and 16.\n"
 824  
  + " \n"
 825  
  + "   If the disclaimer of warranty and limitation of liability provided"
 826  
  + " above cannot be given local legal effect according to their terms,"
 827  
  + " reviewing courts shall apply local law that most closely approximates"
 828  
  + " an absolute waiver of all civil liability in connection with the"
 829  
  + " Program, unless a warranty or assumption of liability accompanies a"
 830  
  + " copy of the Program in return for a fee.\n"
 831  
  + " \n"
 832  
  + "                      END OF TERMS AND CONDITIONS\n"
 833  
  + " \n"
 834  
  + "             How to Apply These Terms to Your New Programs\n"
 835  
  + " \n"
 836  
  + "   If you develop a new program, and you want it to be of the greatest"
 837  
  + " possible use to the public, the best way to achieve this is to make it"
 838  
  + " free software which everyone can redistribute and change under these terms.\n"
 839  
  + " \n"
 840  
  + "   To do so, attach the following notices to the program.  It is safest"
 841  
  + " to attach them to the start of each source file to most effectively"
 842  
  + " state the exclusion of warranty; and each file should have at least"
 843  
  + " the \"copyright\" line and a pointer to where the full notice is found.\n"
 844  
  + " \n"
 845  
  + "     <one line to give the program's name and a brief idea of what it does.>"
 846  
  + "     Copyright (C) <year>  <name of author>\n"
 847  
  + " \n"
 848  
  + "     This program is free software: you can redistribute it and/or modify"
 849  
  + "     it under the terms of the GNU General Public License as published by"
 850  
  + "     the Free Software Foundation, either version 3 of the License, or"
 851  
  + "     (at your option) any later version.\n"
 852  
  + " \n"
 853  
  + "     This program is distributed in the hope that it will be useful,"
 854  
  + "     but WITHOUT ANY WARRANTY; without even the implied warranty of"
 855  
  + "     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the"
 856  
  + "     GNU General Public License for more details.\n"
 857  
  + " \n"
 858  
  + "     You should have received a copy of the GNU General Public License"
 859  
  + "     along with this program.  If not, see <http://www.gnu.org/licenses/>.\n"
 860  
  + " \n"
 861  
  + " Also add information on how to contact you by electronic and paper mail.\n"
 862  
  + " \n"
 863  
  + "   If the program does terminal interaction, make it output a short"
 864  
  + " notice like this when it starts in an interactive mode:\n"
 865  
  + " \n"
 866  
  + "     <program>  Copyright (C) <year>  <name of author>\n"
 867  
  + "     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n"
 868  
  + "     This is free software, and you are welcome to redistribute it\n"
 869  
  + "     under certain conditions; type `show c' for details.\n"
 870  
  + " \n"
 871  
  + " The hypothetical commands `show w' and `show c' should show the appropriate"
 872  
  + " parts of the General Public License.  Of course, your program's commands"
 873  
  + " might be different; for a GUI interface, you would use an \"about box\".\n"
 874  
  + " \n"
 875  
  + "   You should also get your employer (if you work as a programmer) or school,"
 876  
  + " if any, to sign a \"copyright disclaimer\" for the program, if necessary."
 877  
  + " For more information on this, and how to apply and follow the GNU GPL, see"
 878  
  + " <http://www.gnu.org/licenses/>.\n"
 879  
  + " \n"
 880  
  + "   The GNU General Public License does not permit incorporating your program"
 881  
  + " into proprietary programs.  If your program is a subroutine library, you"
 882  
  + " may consider it more useful to permit linking proprietary applications with"
 883  
  + " the library.  If this is what you want to do, use the GNU Lesser General"
 884  
  + " Public License instead of this License.  But first, please read"
 885  
  + " <http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
 886  
  + " \n");
 887  
 
 888  0
     this.licenceTextArea.setEditable(false);
 889  0
     }
 890  
 
 891  
     /**
 892  
      * Nastavi vlastnosti textoveho pole obsahujici licenci.
 893  
      * @return JScrollPane : Reference na textove pole s licenci.
 894  
      */
 895  
     private JScrollPane showLicence()
 896  
     {
 897  0
         this.readLicence();
 898  
 
 899  0
         this.licenceTextArea.setFont(new Font("Serif", Font.ITALIC, AboutDialog.VELIKOST_FONTU_LICENCE_I));
 900  0
         this.licenceTextArea.setLineWrap(true);
 901  0
         this.licenceTextArea.setWrapStyleWord(true);
 902  
 
 903  0
         final JScrollPane areaScrollPane = new JScrollPane(this.licenceTextArea);
 904  0
         areaScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
 905  0
         areaScrollPane.setBorder(BorderFactory.createCompoundBorder(
 906  
                                    BorderFactory.createCompoundBorder(
 907  
                                      BorderFactory.createTitledBorder("Licence"),
 908  
                                      BorderFactory.createEmptyBorder(AboutDialog.OKRAJ_RAMECKU_OKNALICENCE_I,
 909  
                                                                      AboutDialog.OKRAJ_RAMECKU_OKNALICENCE_I,
 910  
                                                                      AboutDialog.OKRAJ_RAMECKU_OKNALICENCE_I,
 911  
                                                                      AboutDialog.OKRAJ_RAMECKU_OKNALICENCE_I)),
 912  
                                      areaScrollPane.getBorder()));
 913  
 
 914  0
         return areaScrollPane;
 915  
     }
 916  
 }