|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2004 - 2009 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing an 'About Eric' dialog. |
|
8 """ |
|
9 |
|
10 import sys |
|
11 |
|
12 from PyQt4.QtCore import Qt, SIGNAL |
|
13 from PyQt4.QtGui import QApplication |
|
14 |
|
15 from UI.Info import * |
|
16 |
|
17 import Utilities |
|
18 |
|
19 |
|
20 titleText = "<b>{0} - {1}</b>".format(Program, Version) |
|
21 |
|
22 aboutText = QApplication.translate("AboutDialog", |
|
23 """<p>{0} is an Integrated Development Environment for the Python""" |
|
24 """ programming language. It is written using the PyQt Python bindings for""" |
|
25 """ the Qt GUI toolkit and the QScintilla editor widget.</p>""" |
|
26 """<p>For more information see""" |
|
27 """ <a href="{1}">{1}</a>.</p>""" |
|
28 """<p>Please send bug reports to <a href="mailto:{2}">{2}</a>.</p>""" |
|
29 """<p>To request a new feature please send an email to""" |
|
30 """ <a href="mailto:{3}">{3}</a>.</p>""" |
|
31 """<p>{0} uses third party software which is copyrighted""" |
|
32 """ by it's respective copyright holder. For details see""" |
|
33 """ the copyright notice of the individual package.</p>""" |
|
34 ).format(Program, Homepage, BugAddress, FeatureAddress) |
|
35 |
|
36 authorsText = \ |
|
37 u"""\ |
|
38 Detlev Offenbach |
|
39 Project Manager, Maintainer and German translation |
|
40 |
|
41 Andrew Bushnell |
|
42 Multithreaded debugger |
|
43 |
|
44 Alexander Darovsky |
|
45 Mikhail Terekhov |
|
46 Russian translations |
|
47 |
|
48 Julien Vienne |
|
49 French translations |
|
50 |
|
51 Zdeněk Böhm |
|
52 Czech translations |
|
53 |
|
54 Jaime Seuma |
|
55 Spanish translations |
|
56 |
|
57 Serdar Koçdaş |
|
58 Turkish translations |
|
59 |
|
60 Xia WeiPeng |
|
61 Chinese translations |
|
62 |
|
63 Gianluca |
|
64 Italian translations |
|
65 """ |
|
66 |
|
67 thanksText = \ |
|
68 u"""Phil Thompson for providing PyQt and QScintilla and pushing me into this business. |
|
69 |
|
70 Andrew Bushnell of Fluent Inc. for contributing the multithreading debugger |
|
71 and a bunch of fixes to enhance the platform independance. |
|
72 |
|
73 Alexander Darovsky and Mikhail Terekhov for providing Russian translations. |
|
74 Julien Vienne for providing French translations. |
|
75 Zdenek Böhm for providing Czech translations. |
|
76 Jaime Seuma for providing Spanish translations. |
|
77 Serdar Koçdaş for providing Turkish translations. |
|
78 Xia WeiPeng for providing Chinese translations. |
|
79 Gianluca for providing Italian translations. |
|
80 |
|
81 Shane Richards for Crystal Icons. |
|
82 |
|
83 The Kumula Team for the splash screen. |
|
84 |
|
85 Gordon Tyler |
|
86 Hans-Peter Jansen |
|
87 Ralf Ahlbrink |
|
88 Stefan Jaensch |
|
89 Martin v. Löwis |
|
90 Thorsten Kohnhorst |
|
91 for providing patches to improve eric3 and eric4. |
|
92 |
|
93 And all the people who reported bugs and made suggestions.""" |
|
94 |
|
95 licenseText = \ |
|
96 """Eric is {0} |
|
97 |
|
98 You may use, distribute and copy Eric under the terms of the GNU |
|
99 General Public License as published by the Free Software Foundation, |
|
100 either version 3 of the License, which is shown below, or (at your |
|
101 option) any later version. |
|
102 |
|
103 ------------------------------------------------------------------------- |
|
104 |
|
105 GNU GENERAL PUBLIC LICENSE |
|
106 Version 3, 29 June 2007 |
|
107 |
|
108 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
|
109 Everyone is permitted to copy and distribute verbatim copies |
|
110 of this license document, but changing it is not allowed. |
|
111 |
|
112 Preamble |
|
113 |
|
114 The GNU General Public License is a free, copyleft license for |
|
115 software and other kinds of works. |
|
116 |
|
117 The licenses for most software and other practical works are designed |
|
118 to take away your freedom to share and change the works. By contrast, |
|
119 the GNU General Public License is intended to guarantee your freedom to |
|
120 share and change all versions of a program--to make sure it remains free |
|
121 software for all its users. We, the Free Software Foundation, use the |
|
122 GNU General Public License for most of our software; it applies also to |
|
123 any other work released this way by its authors. You can apply it to |
|
124 your programs, too. |
|
125 |
|
126 When we speak of free software, we are referring to freedom, not |
|
127 price. Our General Public Licenses are designed to make sure that you |
|
128 have the freedom to distribute copies of free software (and charge for |
|
129 them if you wish), that you receive source code or can get it if you |
|
130 want it, that you can change the software or use pieces of it in new |
|
131 free programs, and that you know you can do these things. |
|
132 |
|
133 To protect your rights, we need to prevent others from denying you |
|
134 these rights or asking you to surrender the rights. Therefore, you have |
|
135 certain responsibilities if you distribute copies of the software, or if |
|
136 you modify it: responsibilities to respect the freedom of others. |
|
137 |
|
138 For example, if you distribute copies of such a program, whether |
|
139 gratis or for a fee, you must pass on to the recipients the same |
|
140 freedoms that you received. You must make sure that they, too, receive |
|
141 or can get the source code. And you must show them these terms so they |
|
142 know their rights. |
|
143 |
|
144 Developers that use the GNU GPL protect your rights with two steps: |
|
145 (1) assert copyright on the software, and (2) offer you this License |
|
146 giving you legal permission to copy, distribute and/or modify it. |
|
147 |
|
148 For the developers' and authors' protection, the GPL clearly explains |
|
149 that there is no warranty for this free software. For both users' and |
|
150 authors' sake, the GPL requires that modified versions be marked as |
|
151 changed, so that their problems will not be attributed erroneously to |
|
152 authors of previous versions. |
|
153 |
|
154 Some devices are designed to deny users access to install or run |
|
155 modified versions of the software inside them, although the manufacturer |
|
156 can do so. This is fundamentally incompatible with the aim of |
|
157 protecting users' freedom to change the software. The systematic |
|
158 pattern of such abuse occurs in the area of products for individuals to |
|
159 use, which is precisely where it is most unacceptable. Therefore, we |
|
160 have designed this version of the GPL to prohibit the practice for those |
|
161 products. If such problems arise substantially in other domains, we |
|
162 stand ready to extend this provision to those domains in future versions |
|
163 of the GPL, as needed to protect the freedom of users. |
|
164 |
|
165 Finally, every program is threatened constantly by software patents. |
|
166 States should not allow patents to restrict development and use of |
|
167 software on general-purpose computers, but in those that do, we wish to |
|
168 avoid the special danger that patents applied to a free program could |
|
169 make it effectively proprietary. To prevent this, the GPL assures that |
|
170 patents cannot be used to render the program non-free. |
|
171 |
|
172 The precise terms and conditions for copying, distribution and |
|
173 modification follow. |
|
174 |
|
175 TERMS AND CONDITIONS |
|
176 |
|
177 0. Definitions. |
|
178 |
|
179 "This License" refers to version 3 of the GNU General Public License. |
|
180 |
|
181 "Copyright" also means copyright-like laws that apply to other kinds of |
|
182 works, such as semiconductor masks. |
|
183 |
|
184 "The Program" refers to any copyrightable work licensed under this |
|
185 License. Each licensee is addressed as "you". "Licensees" and |
|
186 "recipients" may be individuals or organizations. |
|
187 |
|
188 To "modify" a work means to copy from or adapt all or part of the work |
|
189 in a fashion requiring copyright permission, other than the making of an |
|
190 exact copy. The resulting work is called a "modified version" of the |
|
191 earlier work or a work "based on" the earlier work. |
|
192 |
|
193 A "covered work" means either the unmodified Program or a work based |
|
194 on the Program. |
|
195 |
|
196 To "propagate" a work means to do anything with it that, without |
|
197 permission, would make you directly or secondarily liable for |
|
198 infringement under applicable copyright law, except executing it on a |
|
199 computer or modifying a private copy. Propagation includes copying, |
|
200 distribution (with or without modification), making available to the |
|
201 public, and in some countries other activities as well. |
|
202 |
|
203 To "convey" a work means any kind of propagation that enables other |
|
204 parties to make or receive copies. Mere interaction with a user through |
|
205 a computer network, with no transfer of a copy, is not conveying. |
|
206 |
|
207 An interactive user interface displays "Appropriate Legal Notices" |
|
208 to the extent that it includes a convenient and prominently visible |
|
209 feature that (1) displays an appropriate copyright notice, and (2) |
|
210 tells the user that there is no warranty for the work (except to the |
|
211 extent that warranties are provided), that licensees may convey the |
|
212 work under this License, and how to view a copy of this License. If |
|
213 the interface presents a list of user commands or options, such as a |
|
214 menu, a prominent item in the list meets this criterion. |
|
215 |
|
216 1. Source Code. |
|
217 |
|
218 The "source code" for a work means the preferred form of the work |
|
219 for making modifications to it. "Object code" means any non-source |
|
220 form of a work. |
|
221 |
|
222 A "Standard Interface" means an interface that either is an official |
|
223 standard defined by a recognized standards body, or, in the case of |
|
224 interfaces specified for a particular programming language, one that |
|
225 is widely used among developers working in that language. |
|
226 |
|
227 The "System Libraries" of an executable work include anything, other |
|
228 than the work as a whole, that (a) is included in the normal form of |
|
229 packaging a Major Component, but which is not part of that Major |
|
230 Component, and (b) serves only to enable use of the work with that |
|
231 Major Component, or to implement a Standard Interface for which an |
|
232 implementation is available to the public in source code form. A |
|
233 "Major Component", in this context, means a major essential component |
|
234 (kernel, window system, and so on) of the specific operating system |
|
235 (if any) on which the executable work runs, or a compiler used to |
|
236 produce the work, or an object code interpreter used to run it. |
|
237 |
|
238 The "Corresponding Source" for a work in object code form means all |
|
239 the source code needed to generate, install, and (for an executable |
|
240 work) run the object code and to modify the work, including scripts to |
|
241 control those activities. However, it does not include the work's |
|
242 System Libraries, or general-purpose tools or generally available free |
|
243 programs which are used unmodified in performing those activities but |
|
244 which are not part of the work. For example, Corresponding Source |
|
245 includes interface definition files associated with source files for |
|
246 the work, and the source code for shared libraries and dynamically |
|
247 linked subprograms that the work is specifically designed to require, |
|
248 such as by intimate data communication or control flow between those |
|
249 subprograms and other parts of the work. |
|
250 |
|
251 The Corresponding Source need not include anything that users |
|
252 can regenerate automatically from other parts of the Corresponding |
|
253 Source. |
|
254 |
|
255 The Corresponding Source for a work in source code form is that |
|
256 same work. |
|
257 |
|
258 2. Basic Permissions. |
|
259 |
|
260 All rights granted under this License are granted for the term of |
|
261 copyright on the Program, and are irrevocable provided the stated |
|
262 conditions are met. This License explicitly affirms your unlimited |
|
263 permission to run the unmodified Program. The output from running a |
|
264 covered work is covered by this License only if the output, given its |
|
265 content, constitutes a covered work. This License acknowledges your |
|
266 rights of fair use or other equivalent, as provided by copyright law. |
|
267 |
|
268 You may make, run and propagate covered works that you do not |
|
269 convey, without conditions so long as your license otherwise remains |
|
270 in force. You may convey covered works to others for the sole purpose |
|
271 of having them make modifications exclusively for you, or provide you |
|
272 with facilities for running those works, provided that you comply with |
|
273 the terms of this License in conveying all material for which you do |
|
274 not control copyright. Those thus making or running the covered works |
|
275 for you must do so exclusively on your behalf, under your direction |
|
276 and control, on terms that prohibit them from making any copies of |
|
277 your copyrighted material outside their relationship with you. |
|
278 |
|
279 Conveying under any other circumstances is permitted solely under |
|
280 the conditions stated below. Sublicensing is not allowed; section 10 |
|
281 makes it unnecessary. |
|
282 |
|
283 3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
|
284 |
|
285 No covered work shall be deemed part of an effective technological |
|
286 measure under any applicable law fulfilling obligations under article |
|
287 11 of the WIPO copyright treaty adopted on 20 December 1996, or |
|
288 similar laws prohibiting or restricting circumvention of such |
|
289 measures. |
|
290 |
|
291 When you convey a covered work, you waive any legal power to forbid |
|
292 circumvention of technological measures to the extent such circumvention |
|
293 is effected by exercising rights under this License with respect to |
|
294 the covered work, and you disclaim any intention to limit operation or |
|
295 modification of the work as a means of enforcing, against the work's |
|
296 users, your or third parties' legal rights to forbid circumvention of |
|
297 technological measures. |
|
298 |
|
299 4. Conveying Verbatim Copies. |
|
300 |
|
301 You may convey verbatim copies of the Program's source code as you |
|
302 receive it, in any medium, provided that you conspicuously and |
|
303 appropriately publish on each copy an appropriate copyright notice; |
|
304 keep intact all notices stating that this License and any |
|
305 non-permissive terms added in accord with section 7 apply to the code; |
|
306 keep intact all notices of the absence of any warranty; and give all |
|
307 recipients a copy of this License along with the Program. |
|
308 |
|
309 You may charge any price or no price for each copy that you convey, |
|
310 and you may offer support or warranty protection for a fee. |
|
311 |
|
312 5. Conveying Modified Source Versions. |
|
313 |
|
314 You may convey a work based on the Program, or the modifications to |
|
315 produce it from the Program, in the form of source code under the |
|
316 terms of section 4, provided that you also meet all of these conditions: |
|
317 |
|
318 a) The work must carry prominent notices stating that you modified |
|
319 it, and giving a relevant date. |
|
320 |
|
321 b) The work must carry prominent notices stating that it is |
|
322 released under this License and any conditions added under section |
|
323 7. This requirement modifies the requirement in section 4 to |
|
324 "keep intact all notices". |
|
325 |
|
326 c) You must license the entire work, as a whole, under this |
|
327 License to anyone who comes into possession of a copy. This |
|
328 License will therefore apply, along with any applicable section 7 |
|
329 additional terms, to the whole of the work, and all its parts, |
|
330 regardless of how they are packaged. This License gives no |
|
331 permission to license the work in any other way, but it does not |
|
332 invalidate such permission if you have separately received it. |
|
333 |
|
334 d) If the work has interactive user interfaces, each must display |
|
335 Appropriate Legal Notices; however, if the Program has interactive |
|
336 interfaces that do not display Appropriate Legal Notices, your |
|
337 work need not make them do so. |
|
338 |
|
339 A compilation of a covered work with other separate and independent |
|
340 works, which are not by their nature extensions of the covered work, |
|
341 and which are not combined with it such as to form a larger program, |
|
342 in or on a volume of a storage or distribution medium, is called an |
|
343 "aggregate" if the compilation and its resulting copyright are not |
|
344 used to limit the access or legal rights of the compilation's users |
|
345 beyond what the individual works permit. Inclusion of a covered work |
|
346 in an aggregate does not cause this License to apply to the other |
|
347 parts of the aggregate. |
|
348 |
|
349 6. Conveying Non-Source Forms. |
|
350 |
|
351 You may convey a covered work in object code form under the terms |
|
352 of sections 4 and 5, provided that you also convey the |
|
353 machine-readable Corresponding Source under the terms of this License, |
|
354 in one of these ways: |
|
355 |
|
356 a) Convey the object code in, or embodied in, a physical product |
|
357 (including a physical distribution medium), accompanied by the |
|
358 Corresponding Source fixed on a durable physical medium |
|
359 customarily used for software interchange. |
|
360 |
|
361 b) Convey the object code in, or embodied in, a physical product |
|
362 (including a physical distribution medium), accompanied by a |
|
363 written offer, valid for at least three years and valid for as |
|
364 long as you offer spare parts or customer support for that product |
|
365 model, to give anyone who possesses the object code either (1) a |
|
366 copy of the Corresponding Source for all the software in the |
|
367 product that is covered by this License, on a durable physical |
|
368 medium customarily used for software interchange, for a price no |
|
369 more than your reasonable cost of physically performing this |
|
370 conveying of source, or (2) access to copy the |
|
371 Corresponding Source from a network server at no charge. |
|
372 |
|
373 c) Convey individual copies of the object code with a copy of the |
|
374 written offer to provide the Corresponding Source. This |
|
375 alternative is allowed only occasionally and noncommercially, and |
|
376 only if you received the object code with such an offer, in accord |
|
377 with subsection 6b. |
|
378 |
|
379 d) Convey the object code by offering access from a designated |
|
380 place (gratis or for a charge), and offer equivalent access to the |
|
381 Corresponding Source in the same way through the same place at no |
|
382 further charge. You need not require recipients to copy the |
|
383 Corresponding Source along with the object code. If the place to |
|
384 copy the object code is a network server, the Corresponding Source |
|
385 may be on a different server (operated by you or a third party) |
|
386 that supports equivalent copying facilities, provided you maintain |
|
387 clear directions next to the object code saying where to find the |
|
388 Corresponding Source. Regardless of what server hosts the |
|
389 Corresponding Source, you remain obligated to ensure that it is |
|
390 available for as long as needed to satisfy these requirements. |
|
391 |
|
392 e) Convey the object code using peer-to-peer transmission, provided |
|
393 you inform other peers where the object code and Corresponding |
|
394 Source of the work are being offered to the general public at no |
|
395 charge under subsection 6d. |
|
396 |
|
397 A separable portion of the object code, whose source code is excluded |
|
398 from the Corresponding Source as a System Library, need not be |
|
399 included in conveying the object code work. |
|
400 |
|
401 A "User Product" is either (1) a "consumer product", which means any |
|
402 tangible personal property which is normally used for personal, family, |
|
403 or household purposes, or (2) anything designed or sold for incorporation |
|
404 into a dwelling. In determining whether a product is a consumer product, |
|
405 doubtful cases shall be resolved in favor of coverage. For a particular |
|
406 product received by a particular user, "normally used" refers to a |
|
407 typical or common use of that class of product, regardless of the status |
|
408 of the particular user or of the way in which the particular user |
|
409 actually uses, or expects or is expected to use, the product. A product |
|
410 is a consumer product regardless of whether the product has substantial |
|
411 commercial, industrial or non-consumer uses, unless such uses represent |
|
412 the only significant mode of use of the product. |
|
413 |
|
414 "Installation Information" for a User Product means any methods, |
|
415 procedures, authorization keys, or other information required to install |
|
416 and execute modified versions of a covered work in that User Product from |
|
417 a modified version of its Corresponding Source. The information must |
|
418 suffice to ensure that the continued functioning of the modified object |
|
419 code is in no case prevented or interfered with solely because |
|
420 modification has been made. |
|
421 |
|
422 If you convey an object code work under this section in, or with, or |
|
423 specifically for use in, a User Product, and the conveying occurs as |
|
424 part of a transaction in which the right of possession and use of the |
|
425 User Product is transferred to the recipient in perpetuity or for a |
|
426 fixed term (regardless of how the transaction is characterized), the |
|
427 Corresponding Source conveyed under this section must be accompanied |
|
428 by the Installation Information. But this requirement does not apply |
|
429 if neither you nor any third party retains the ability to install |
|
430 modified object code on the User Product (for example, the work has |
|
431 been installed in ROM). |
|
432 |
|
433 The requirement to provide Installation Information does not include a |
|
434 requirement to continue to provide support service, warranty, or updates |
|
435 for a work that has been modified or installed by the recipient, or for |
|
436 the User Product in which it has been modified or installed. Access to a |
|
437 network may be denied when the modification itself materially and |
|
438 adversely affects the operation of the network or violates the rules and |
|
439 protocols for communication across the network. |
|
440 |
|
441 Corresponding Source conveyed, and Installation Information provided, |
|
442 in accord with this section must be in a format that is publicly |
|
443 documented (and with an implementation available to the public in |
|
444 source code form), and must require no special password or key for |
|
445 unpacking, reading or copying. |
|
446 |
|
447 7. Additional Terms. |
|
448 |
|
449 "Additional permissions" are terms that supplement the terms of this |
|
450 License by making exceptions from one or more of its conditions. |
|
451 Additional permissions that are applicable to the entire Program shall |
|
452 be treated as though they were included in this License, to the extent |
|
453 that they are valid under applicable law. If additional permissions |
|
454 apply only to part of the Program, that part may be used separately |
|
455 under those permissions, but the entire Program remains governed by |
|
456 this License without regard to the additional permissions. |
|
457 |
|
458 When you convey a copy of a covered work, you may at your option |
|
459 remove any additional permissions from that copy, or from any part of |
|
460 it. (Additional permissions may be written to require their own |
|
461 removal in certain cases when you modify the work.) You may place |
|
462 additional permissions on material, added by you to a covered work, |
|
463 for which you have or can give appropriate copyright permission. |
|
464 |
|
465 Notwithstanding any other provision of this License, for material you |
|
466 add to a covered work, you may (if authorized by the copyright holders of |
|
467 that material) supplement the terms of this License with terms: |
|
468 |
|
469 a) Disclaiming warranty or limiting liability differently from the |
|
470 terms of sections 15 and 16 of this License; or |
|
471 |
|
472 b) Requiring preservation of specified reasonable legal notices or |
|
473 author attributions in that material or in the Appropriate Legal |
|
474 Notices displayed by works containing it; or |
|
475 |
|
476 c) Prohibiting misrepresentation of the origin of that material, or |
|
477 requiring that modified versions of such material be marked in |
|
478 reasonable ways as different from the original version; or |
|
479 |
|
480 d) Limiting the use for publicity purposes of names of licensors or |
|
481 authors of the material; or |
|
482 |
|
483 e) Declining to grant rights under trademark law for use of some |
|
484 trade names, trademarks, or service marks; or |
|
485 |
|
486 f) Requiring indemnification of licensors and authors of that |
|
487 material by anyone who conveys the material (or modified versions of |
|
488 it) with contractual assumptions of liability to the recipient, for |
|
489 any liability that these contractual assumptions directly impose on |
|
490 those licensors and authors. |
|
491 |
|
492 All other non-permissive additional terms are considered "further |
|
493 restrictions" within the meaning of section 10. If the Program as you |
|
494 received it, or any part of it, contains a notice stating that it is |
|
495 governed by this License along with a term that is a further |
|
496 restriction, you may remove that term. If a license document contains |
|
497 a further restriction but permits relicensing or conveying under this |
|
498 License, you may add to a covered work material governed by the terms |
|
499 of that license document, provided that the further restriction does |
|
500 not survive such relicensing or conveying. |
|
501 |
|
502 If you add terms to a covered work in accord with this section, you |
|
503 must place, in the relevant source files, a statement of the |
|
504 additional terms that apply to those files, or a notice indicating |
|
505 where to find the applicable terms. |
|
506 |
|
507 Additional terms, permissive or non-permissive, may be stated in the |
|
508 form of a separately written license, or stated as exceptions; |
|
509 the above requirements apply either way. |
|
510 |
|
511 8. Termination. |
|
512 |
|
513 You may not propagate or modify a covered work except as expressly |
|
514 provided under this License. Any attempt otherwise to propagate or |
|
515 modify it is void, and will automatically terminate your rights under |
|
516 this License (including any patent licenses granted under the third |
|
517 paragraph of section 11). |
|
518 |
|
519 However, if you cease all violation of this License, then your |
|
520 license from a particular copyright holder is reinstated (a) |
|
521 provisionally, unless and until the copyright holder explicitly and |
|
522 finally terminates your license, and (b) permanently, if the copyright |
|
523 holder fails to notify you of the violation by some reasonable means |
|
524 prior to 60 days after the cessation. |
|
525 |
|
526 Moreover, your license from a particular copyright holder is |
|
527 reinstated permanently if the copyright holder notifies you of the |
|
528 violation by some reasonable means, this is the first time you have |
|
529 received notice of violation of this License (for any work) from that |
|
530 copyright holder, and you cure the violation prior to 30 days after |
|
531 your receipt of the notice. |
|
532 |
|
533 Termination of your rights under this section does not terminate the |
|
534 licenses of parties who have received copies or rights from you under |
|
535 this License. If your rights have been terminated and not permanently |
|
536 reinstated, you do not qualify to receive new licenses for the same |
|
537 material under section 10. |
|
538 |
|
539 9. Acceptance Not Required for Having Copies. |
|
540 |
|
541 You are not required to accept this License in order to receive or |
|
542 run a copy of the Program. Ancillary propagation of a covered work |
|
543 occurring solely as a consequence of using peer-to-peer transmission |
|
544 to receive a copy likewise does not require acceptance. However, |
|
545 nothing other than this License grants you permission to propagate or |
|
546 modify any covered work. These actions infringe copyright if you do |
|
547 not accept this License. Therefore, by modifying or propagating a |
|
548 covered work, you indicate your acceptance of this License to do so. |
|
549 |
|
550 10. Automatic Licensing of Downstream Recipients. |
|
551 |
|
552 Each time you convey a covered work, the recipient automatically |
|
553 receives a license from the original licensors, to run, modify and |
|
554 propagate that work, subject to this License. You are not responsible |
|
555 for enforcing compliance by third parties with this License. |
|
556 |
|
557 An "entity transaction" is a transaction transferring control of an |
|
558 organization, or substantially all assets of one, or subdividing an |
|
559 organization, or merging organizations. If propagation of a covered |
|
560 work results from an entity transaction, each party to that |
|
561 transaction who receives a copy of the work also receives whatever |
|
562 licenses to the work the party's predecessor in interest had or could |
|
563 give under the previous paragraph, plus a right to possession of the |
|
564 Corresponding Source of the work from the predecessor in interest, if |
|
565 the predecessor has it or can get it with reasonable efforts. |
|
566 |
|
567 You may not impose any further restrictions on the exercise of the |
|
568 rights granted or affirmed under this License. For example, you may |
|
569 not impose a license fee, royalty, or other charge for exercise of |
|
570 rights granted under this License, and you may not initiate litigation |
|
571 (including a cross-claim or counterclaim in a lawsuit) alleging that |
|
572 any patent claim is infringed by making, using, selling, offering for |
|
573 sale, or importing the Program or any portion of it. |
|
574 |
|
575 11. Patents. |
|
576 |
|
577 A "contributor" is a copyright holder who authorizes use under this |
|
578 License of the Program or a work on which the Program is based. The |
|
579 work thus licensed is called the contributor's "contributor version". |
|
580 |
|
581 A contributor's "essential patent claims" are all patent claims |
|
582 owned or controlled by the contributor, whether already acquired or |
|
583 hereafter acquired, that would be infringed by some manner, permitted |
|
584 by this License, of making, using, or selling its contributor version, |
|
585 but do not include claims that would be infringed only as a |
|
586 consequence of further modification of the contributor version. For |
|
587 purposes of this definition, "control" includes the right to grant |
|
588 patent sublicenses in a manner consistent with the requirements of |
|
589 this License. |
|
590 |
|
591 Each contributor grants you a non-exclusive, worldwide, royalty-free |
|
592 patent license under the contributor's essential patent claims, to |
|
593 make, use, sell, offer for sale, import and otherwise run, modify and |
|
594 propagate the contents of its contributor version. |
|
595 |
|
596 In the following three paragraphs, a "patent license" is any express |
|
597 agreement or commitment, however denominated, not to enforce a patent |
|
598 (such as an express permission to practice a patent or covenant not to |
|
599 sue for patent infringement). To "grant" such a patent license to a |
|
600 party means to make such an agreement or commitment not to enforce a |
|
601 patent against the party. |
|
602 |
|
603 If you convey a covered work, knowingly relying on a patent license, |
|
604 and the Corresponding Source of the work is not available for anyone |
|
605 to copy, free of charge and under the terms of this License, through a |
|
606 publicly available network server or other readily accessible means, |
|
607 then you must either (1) cause the Corresponding Source to be so |
|
608 available, or (2) arrange to deprive yourself of the benefit of the |
|
609 patent license for this particular work, or (3) arrange, in a manner |
|
610 consistent with the requirements of this License, to extend the patent |
|
611 license to downstream recipients. "Knowingly relying" means you have |
|
612 actual knowledge that, but for the patent license, your conveying the |
|
613 covered work in a country, or your recipient's use of the covered work |
|
614 in a country, would infringe one or more identifiable patents in that |
|
615 country that you have reason to believe are valid. |
|
616 |
|
617 If, pursuant to or in connection with a single transaction or |
|
618 arrangement, you convey, or propagate by procuring conveyance of, a |
|
619 covered work, and grant a patent license to some of the parties |
|
620 receiving the covered work authorizing them to use, propagate, modify |
|
621 or convey a specific copy of the covered work, then the patent license |
|
622 you grant is automatically extended to all recipients of the covered |
|
623 work and works based on it. |
|
624 |
|
625 A patent license is "discriminatory" if it does not include within |
|
626 the scope of its coverage, prohibits the exercise of, or is |
|
627 conditioned on the non-exercise of one or more of the rights that are |
|
628 specifically granted under this License. You may not convey a covered |
|
629 work if you are a party to an arrangement with a third party that is |
|
630 in the business of distributing software, under which you make payment |
|
631 to the third party based on the extent of your activity of conveying |
|
632 the work, and under which the third party grants, to any of the |
|
633 parties who would receive the covered work from you, a discriminatory |
|
634 patent license (a) in connection with copies of the covered work |
|
635 conveyed by you (or copies made from those copies), or (b) primarily |
|
636 for and in connection with specific products or compilations that |
|
637 contain the covered work, unless you entered into that arrangement, |
|
638 or that patent license was granted, prior to 28 March 2007. |
|
639 |
|
640 Nothing in this License shall be construed as excluding or limiting |
|
641 any implied license or other defenses to infringement that may |
|
642 otherwise be available to you under applicable patent law. |
|
643 |
|
644 12. No Surrender of Others' Freedom. |
|
645 |
|
646 If conditions are imposed on you (whether by court order, agreement or |
|
647 otherwise) that contradict the conditions of this License, they do not |
|
648 excuse you from the conditions of this License. If you cannot convey a |
|
649 covered work so as to satisfy simultaneously your obligations under this |
|
650 License and any other pertinent obligations, then as a consequence you may |
|
651 not convey it at all. For example, if you agree to terms that obligate you |
|
652 to collect a royalty for further conveying from those to whom you convey |
|
653 the Program, the only way you could satisfy both those terms and this |
|
654 License would be to refrain entirely from conveying the Program. |
|
655 |
|
656 13. Use with the GNU Affero General Public License. |
|
657 |
|
658 Notwithstanding any other provision of this License, you have |
|
659 permission to link or combine any covered work with a work licensed |
|
660 under version 3 of the GNU Affero General Public License into a single |
|
661 combined work, and to convey the resulting work. The terms of this |
|
662 License will continue to apply to the part which is the covered work, |
|
663 but the special requirements of the GNU Affero General Public License, |
|
664 section 13, concerning interaction through a network will apply to the |
|
665 combination as such. |
|
666 |
|
667 14. Revised Versions of this License. |
|
668 |
|
669 The Free Software Foundation may publish revised and/or new versions of |
|
670 the GNU General Public License from time to time. Such new versions will |
|
671 be similar in spirit to the present version, but may differ in detail to |
|
672 address new problems or concerns. |
|
673 |
|
674 Each version is given a distinguishing version number. If the |
|
675 Program specifies that a certain numbered version of the GNU General |
|
676 Public License "or any later version" applies to it, you have the |
|
677 option of following the terms and conditions either of that numbered |
|
678 version or of any later version published by the Free Software |
|
679 Foundation. If the Program does not specify a version number of the |
|
680 GNU General Public License, you may choose any version ever published |
|
681 by the Free Software Foundation. |
|
682 |
|
683 If the Program specifies that a proxy can decide which future |
|
684 versions of the GNU General Public License can be used, that proxy's |
|
685 public statement of acceptance of a version permanently authorizes you |
|
686 to choose that version for the Program. |
|
687 |
|
688 Later license versions may give you additional or different |
|
689 permissions. However, no additional obligations are imposed on any |
|
690 author or copyright holder as a result of your choosing to follow a |
|
691 later version. |
|
692 |
|
693 15. Disclaimer of Warranty. |
|
694 |
|
695 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
|
696 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
|
697 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
|
698 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
|
699 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
700 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
|
701 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
|
702 ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|
703 |
|
704 16. Limitation of Liability. |
|
705 |
|
706 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
707 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
|
708 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
|
709 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
|
710 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
|
711 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
|
712 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
|
713 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
|
714 SUCH DAMAGES. |
|
715 |
|
716 17. Interpretation of Sections 15 and 16. |
|
717 |
|
718 If the disclaimer of warranty and limitation of liability provided |
|
719 above cannot be given local legal effect according to their terms, |
|
720 reviewing courts shall apply local law that most closely approximates |
|
721 an absolute waiver of all civil liability in connection with the |
|
722 Program, unless a warranty or assumption of liability accompanies a |
|
723 copy of the Program in return for a fee. |
|
724 |
|
725 END OF TERMS AND CONDITIONS""".format(Copyright) |
|
726 |
|
727 |
|
728 import os |
|
729 |
|
730 from PyQt4.QtGui import * |
|
731 from PyQt4.QtCore import * |
|
732 |
|
733 import UI.PixmapCache |
|
734 |
|
735 from Ui_AboutDialog import Ui_AboutDialog |
|
736 |
|
737 class AboutDialog(QDialog, Ui_AboutDialog): |
|
738 """ |
|
739 Class implementing an 'About Eric' dialog. |
|
740 """ |
|
741 def __init__(self, parent = None): |
|
742 """ |
|
743 Constructor |
|
744 |
|
745 @param parent reference to the parent widget (QWidget) |
|
746 """ |
|
747 QDialog.__init__(self, parent) |
|
748 self.setupUi(self) |
|
749 |
|
750 self.ericLabel.setText(titleText) |
|
751 self.ericPixmap.setPixmap(UI.PixmapCache.getPixmap("eric.png")) |
|
752 |
|
753 #################################################################### |
|
754 ## ABOUT |
|
755 #################################################################### |
|
756 |
|
757 self.aboutEdit.setHtml(aboutText) |
|
758 |
|
759 #################################################################### |
|
760 ## Copyright, Authors |
|
761 #################################################################### |
|
762 |
|
763 self.authorsEdit.setPlainText(authorsText) |
|
764 |
|
765 #################################################################### |
|
766 ## THANKS |
|
767 #################################################################### |
|
768 |
|
769 self.thanksEdit.setPlainText(thanksText) |
|
770 |
|
771 #################################################################### |
|
772 ## LICENSE |
|
773 #################################################################### |
|
774 |
|
775 if Utilities.isWindowsPlatform(): |
|
776 self.licenseEdit.setFontFamily("Lucida Console") |
|
777 else: |
|
778 self.licenseEdit.setFontFamily("Monospace") |
|
779 |
|
780 self.licenseEdit.setPlainText(licenseText) |
|
781 |
|
782 self.aboutTabWidget.setCurrentWidget(self.about) |