OpenSecurity/bin/ui/about_dialog.py
changeset 195 18c1a46bd7a7
parent 194 e79ca934e237
child 199 26b9a95b0da1
     1.1 --- a/OpenSecurity/bin/ui/about_dialog.py	Fri Jun 13 12:58:06 2014 +0200
     1.2 +++ b/OpenSecurity/bin/ui/about_dialog.py	Fri Jun 13 13:10:48 2014 +0200
     1.3 @@ -108,16 +108,206 @@
     1.4  </div>
     1.5  
     1.6  <div class="footer" align="left">
     1.7 -    Copyright (C) 2013, 2014 AIT Austrian Institute of Technology<br/>
     1.8 -    AIT Austrian Institute of Technology GmbH<br/>
     1.9 -    Donau-City-Strasse 1 | 1220 Vienna | Austria<br/>
    1.10 -    <a href="http://www.ait.ac.at">http://www.ait.ac.at</a>
    1.11 +Copyright 2013, 2014 The OpenSecurity Consortium<br/>
    1.12 +<br/>
    1.13 +Licensed under the Apache License, Version 2.0 (the "License");<br/>
    1.14 +you may not use this file except in compliance with the License.<br/>
    1.15 +You may obtain a copy of the License at<br/>
    1.16 +<br/>
    1.17 +http://www.apache.org/licenses/LICENSE-2.0<br/>
    1.18 +<br/>
    1.19 +Unless required by applicable law or agreed to in writing, software<br/>
    1.20 +distributed under the License is distributed on an "AS IS" BASIS,<br/>
    1.21 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br/>
    1.22 +See the License for the specific language governing permissions and<br/>
    1.23 +limitations under the License.<br/>
    1.24  </div>
    1.25  
    1.26  </div>
    1.27  </body>
    1.28  </html>
    1.29 -""";
    1.30 +"""
    1.31 +
    1.32 +
    1.33 +LICENSE_TEXT = """
    1.34 +
    1.35 +                                 Apache License
    1.36 +                           Version 2.0, January 2004
    1.37 +                        http://www.apache.org/licenses/
    1.38 +
    1.39 +   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    1.40 +
    1.41 +   1. Definitions.
    1.42 +
    1.43 +      "License" shall mean the terms and conditions for use, reproduction,
    1.44 +      and distribution as defined by Sections 1 through 9 of this document.
    1.45 +
    1.46 +      "Licensor" shall mean the copyright owner or entity authorized by
    1.47 +      the copyright owner that is granting the License.
    1.48 +
    1.49 +      "Legal Entity" shall mean the union of the acting entity and all
    1.50 +      other entities that control, are controlled by, or are under common
    1.51 +      control with that entity. For the purposes of this definition,
    1.52 +      "control" means (i) the power, direct or indirect, to cause the
    1.53 +      direction or management of such entity, whether by contract or
    1.54 +      otherwise, or (ii) ownership of fifty percent (50%) or more of the
    1.55 +      outstanding shares, or (iii) beneficial ownership of such entity.
    1.56 +
    1.57 +      "You" (or "Your") shall mean an individual or Legal Entity
    1.58 +      exercising permissions granted by this License.
    1.59 +
    1.60 +      "Source" form shall mean the preferred form for making modifications,
    1.61 +      including but not limited to software source code, documentation
    1.62 +      source, and configuration files.
    1.63 +
    1.64 +      "Object" form shall mean any form resulting from mechanical
    1.65 +      transformation or translation of a Source form, including but
    1.66 +      not limited to compiled object code, generated documentation,
    1.67 +      and conversions to other media types.
    1.68 +
    1.69 +      "Work" shall mean the work of authorship, whether in Source or
    1.70 +      Object form, made available under the License, as indicated by a
    1.71 +      copyright notice that is included in or attached to the work
    1.72 +      (an example is provided in the Appendix below).
    1.73 +
    1.74 +      "Derivative Works" shall mean any work, whether in Source or Object
    1.75 +      form, that is based on (or derived from) the Work and for which the
    1.76 +      editorial revisions, annotations, elaborations, or other modifications
    1.77 +      represent, as a whole, an original work of authorship. For the purposes
    1.78 +      of this License, Derivative Works shall not include works that remain
    1.79 +      separable from, or merely link (or bind by name) to the interfaces of,
    1.80 +      the Work and Derivative Works thereof.
    1.81 +
    1.82 +      "Contribution" shall mean any work of authorship, including
    1.83 +      the original version of the Work and any modifications or additions
    1.84 +      to that Work or Derivative Works thereof, that is intentionally
    1.85 +      submitted to Licensor for inclusion in the Work by the copyright owner
    1.86 +      or by an individual or Legal Entity authorized to submit on behalf of
    1.87 +      the copyright owner. For the purposes of this definition, "submitted"
    1.88 +      means any form of electronic, verbal, or written communication sent
    1.89 +      to the Licensor or its representatives, including but not limited to
    1.90 +      communication on electronic mailing lists, source code control systems,
    1.91 +      and issue tracking systems that are managed by, or on behalf of, the
    1.92 +      Licensor for the purpose of discussing and improving the Work, but
    1.93 +      excluding communication that is conspicuously marked or otherwise
    1.94 +      designated in writing by the copyright owner as "Not a Contribution."
    1.95 +
    1.96 +      "Contributor" shall mean Licensor and any individual or Legal Entity
    1.97 +      on behalf of whom a Contribution has been received by Licensor and
    1.98 +      subsequently incorporated within the Work.
    1.99 +
   1.100 +   2. Grant of Copyright License. Subject to the terms and conditions of
   1.101 +      this License, each Contributor hereby grants to You a perpetual,
   1.102 +      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
   1.103 +      copyright license to reproduce, prepare Derivative Works of,
   1.104 +      publicly display, publicly perform, sublicense, and distribute the
   1.105 +      Work and such Derivative Works in Source or Object form.
   1.106 +
   1.107 +   3. Grant of Patent License. Subject to the terms and conditions of
   1.108 +      this License, each Contributor hereby grants to You a perpetual,
   1.109 +      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
   1.110 +      (except as stated in this section) patent license to make, have made,
   1.111 +      use, offer to sell, sell, import, and otherwise transfer the Work,
   1.112 +      where such license applies only to those patent claims licensable
   1.113 +      by such Contributor that are necessarily infringed by their
   1.114 +      Contribution(s) alone or by combination of their Contribution(s)
   1.115 +      with the Work to which such Contribution(s) was submitted. If You
   1.116 +      institute patent litigation against any entity (including a
   1.117 +      cross-claim or counterclaim in a lawsuit) alleging that the Work
   1.118 +      or a Contribution incorporated within the Work constitutes direct
   1.119 +      or contributory patent infringement, then any patent licenses
   1.120 +      granted to You under this License for that Work shall terminate
   1.121 +      as of the date such litigation is filed.
   1.122 +
   1.123 +   4. Redistribution. You may reproduce and distribute copies of the
   1.124 +      Work or Derivative Works thereof in any medium, with or without
   1.125 +      modifications, and in Source or Object form, provided that You
   1.126 +      meet the following conditions:
   1.127 +
   1.128 +      (a) You must give any other recipients of the Work or
   1.129 +          Derivative Works a copy of this License; and
   1.130 +
   1.131 +      (b) You must cause any modified files to carry prominent notices
   1.132 +          stating that You changed the files; and
   1.133 +
   1.134 +      (c) You must retain, in the Source form of any Derivative Works
   1.135 +          that You distribute, all copyright, patent, trademark, and
   1.136 +          attribution notices from the Source form of the Work,
   1.137 +          excluding those notices that do not pertain to any part of
   1.138 +          the Derivative Works; and
   1.139 +
   1.140 +      (d) If the Work includes a "NOTICE" text file as part of its
   1.141 +          distribution, then any Derivative Works that You distribute must
   1.142 +          include a readable copy of the attribution notices contained
   1.143 +          within such NOTICE file, excluding those notices that do not
   1.144 +          pertain to any part of the Derivative Works, in at least one
   1.145 +          of the following places: within a NOTICE text file distributed
   1.146 +          as part of the Derivative Works; within the Source form or
   1.147 +          documentation, if provided along with the Derivative Works; or,
   1.148 +          within a display generated by the Derivative Works, if and
   1.149 +          wherever such third-party notices normally appear. The contents
   1.150 +          of the NOTICE file are for informational purposes only and
   1.151 +          do not modify the License. You may add Your own attribution
   1.152 +          notices within Derivative Works that You distribute, alongside
   1.153 +          or as an addendum to the NOTICE text from the Work, provided
   1.154 +          that such additional attribution notices cannot be construed
   1.155 +          as modifying the License.
   1.156 +
   1.157 +      You may add Your own copyright statement to Your modifications and
   1.158 +      may provide additional or different license terms and conditions
   1.159 +      for use, reproduction, or distribution of Your modifications, or
   1.160 +      for any such Derivative Works as a whole, provided Your use,
   1.161 +      reproduction, and distribution of the Work otherwise complies with
   1.162 +      the conditions stated in this License.
   1.163 +
   1.164 +   5. Submission of Contributions. Unless You explicitly state otherwise,
   1.165 +      any Contribution intentionally submitted for inclusion in the Work
   1.166 +      by You to the Licensor shall be under the terms and conditions of
   1.167 +      this License, without any additional terms or conditions.
   1.168 +      Notwithstanding the above, nothing herein shall supersede or modify
   1.169 +      the terms of any separate license agreement you may have executed
   1.170 +      with Licensor regarding such Contributions.
   1.171 +
   1.172 +   6. Trademarks. This License does not grant permission to use the trade
   1.173 +      names, trademarks, service marks, or product names of the Licensor,
   1.174 +      except as required for reasonable and customary use in describing the
   1.175 +      origin of the Work and reproducing the content of the NOTICE file.
   1.176 +
   1.177 +   7. Disclaimer of Warranty. Unless required by applicable law or
   1.178 +      agreed to in writing, Licensor provides the Work (and each
   1.179 +      Contributor provides its Contributions) on an "AS IS" BASIS,
   1.180 +      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
   1.181 +      implied, including, without limitation, any warranties or conditions
   1.182 +      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
   1.183 +      PARTICULAR PURPOSE. You are solely responsible for determining the
   1.184 +      appropriateness of using or redistributing the Work and assume any
   1.185 +      risks associated with Your exercise of permissions under this License.
   1.186 +
   1.187 +   8. Limitation of Liability. In no event and under no legal theory,
   1.188 +      whether in tort (including negligence), contract, or otherwise,
   1.189 +      unless required by applicable law (such as deliberate and grossly
   1.190 +      negligent acts) or agreed to in writing, shall any Contributor be
   1.191 +      liable to You for damages, including any direct, indirect, special,
   1.192 +      incidental, or consequential damages of any character arising as a
   1.193 +      result of this License or out of the use or inability to use the
   1.194 +      Work (including but not limited to damages for loss of goodwill,
   1.195 +      work stoppage, computer failure or malfunction, or any and all
   1.196 +      other commercial damages or losses), even if such Contributor
   1.197 +      has been advised of the possibility of such damages.
   1.198 +
   1.199 +   9. Accepting Warranty or Additional Liability. While redistributing
   1.200 +      the Work or Derivative Works thereof, You may choose to offer,
   1.201 +      and charge a fee for, acceptance of support, warranty, indemnity,
   1.202 +      or other liability obligations and/or rights consistent with this
   1.203 +      License. However, in accepting such obligations, You may act only
   1.204 +      on Your own behalf and on Your sole responsibility, not on behalf
   1.205 +      of any other Contributor, and only if You agree to indemnify,
   1.206 +      defend, and hold each Contributor harmless for any liability
   1.207 +      incurred by, or claims asserted against, such Contributor by reason
   1.208 +      of your accepting any such warranty or additional liability.
   1.209 +
   1.210 +   END OF TERMS AND CONDITIONS
   1.211 +"""
   1.212  
   1.213  
   1.214  # ------------------------------------------------------------
   1.215 @@ -141,6 +331,7 @@
   1.216          self.ui.lblAbout.setContentsMargins(16, 16, 16, 16)
   1.217          self.ui.lblAbout.setStyleSheet(self.ui.scrAboutContent.styleSheet())
   1.218          self.ui.scrAbout.setWidget(self.ui.lblAbout)
   1.219 +        self.ui.edtLicense.setPlainText(LICENSE_TEXT)
   1.220  
   1.221          # connectors
   1.222          self.ui.btnOk.clicked.connect(self.accept)