Import Upstream version 5.15.3
|
@ -0,0 +1,894 @@
|
|||
QT AUTOMOTIVE SUITE LICENSE AGREEMENT
|
||||
Agreement version 3.0
|
||||
|
||||
This Qt Automotive Suite License Agreement (“Agreement”) is a legal agreement
|
||||
between The Qt Company (as defined below) and the Licensee (as defined below)
|
||||
for the license of Licensed Software (as defined below). Capitalized terms used
|
||||
herein are defined in Section 1.
|
||||
|
||||
WHEREAS:
|
||||
|
||||
(A) Licensee wishes to use the Licensed Software for the purpose of developing
|
||||
and distributing Applications and/or Devices; and
|
||||
|
||||
(B) The Qt Company is willing to grant the Licensee a right to use Licensed
|
||||
Software for such purpose pursuant to term and conditions of this Agreement.
|
||||
|
||||
NOW, THEREFORE, THE PARTIES HEREBY AGREE AS FOLLOWS:
|
||||
|
||||
1. DEFINITIONS
|
||||
|
||||
"Affiliate" of a Party shall mean an entity (i) which is directly or indirectly
|
||||
controlling such Party; (ii) which is under the same direct or indirect
|
||||
ownership or control as such Party; or (iii) which is directly or indirectly
|
||||
owned or controlled by such Party. For these purposes, an entity shall be
|
||||
treated as being controlled by another if that other entity has fifty percent
|
||||
(50 %) or more of the votes in such entity, is able to direct its affairs and/or
|
||||
to control the composition of its board of directors or equivalent body.
|
||||
|
||||
"Applications" shall mean Licensee's software products created using the
|
||||
Licensed Software in connection with the Program, which may include the
|
||||
Redistributables, or part thereof.
|
||||
|
||||
"Contractor(s)" shall mean third party consultants, distributors and contractors
|
||||
performing services to a Party under applicable contractual arrangement.
|
||||
|
||||
"Customer(s)" shall mean Licensee's end users to whom Licensee, directly or
|
||||
indirectly, distributes copies of the Redistributables.
|
||||
|
||||
"Deployment Platforms" shall mean operating systems specified in the License
|
||||
Certificate, in which the Redistributables can be distributed pursuant to the
|
||||
terms and conditions of this Agreement.
|
||||
|
||||
"Designated User(s)" shall mean the employee(s) of Licensee or Licensee's
|
||||
Affiliates acting within the scope of their employment or Licensee's
|
||||
Contractors acting within the scope of their services for Licensee and on behalf
|
||||
of Licensee. Designated Users shall be named in the License Certificate.
|
||||
|
||||
"Development License" shall mean the license needed by the Licensee for each
|
||||
Designated User to use the Licensed Software under the license grant described
|
||||
in Section 3.1 of this Agreement.
|
||||
|
||||
"Development Platforms" shall mean those operating systems specified in the
|
||||
License Certificate, in which the Licensed Software can be used under the
|
||||
Development License, but not distributed in any form or used for any other
|
||||
purpose.
|
||||
|
||||
"Devices" shall mean hardware devices or products that 1) are manufactured
|
||||
and/or distributed by the Licensee or its Affiliates or Contractors in
|
||||
connection with the Program, and (2)(i) incorporate or integrate the
|
||||
Redistributables or parts thereof; or (ii) do not incorporate or integrate
|
||||
the Redistributables at the time of distribution, but where, when used by a
|
||||
Customer, the main user interface or substantial functionality of such
|
||||
device is provided by Application(s) or otherwise depends on the Licensed
|
||||
Software.
|
||||
|
||||
"Distribution License(s)" shall mean the license required for distribution of
|
||||
Redistributables in accordance with the license grant described in Section
|
||||
3.2(ii)-(iii) of this Agreement.
|
||||
|
||||
"Distribution License Packs" shall mean set of prepaid Distribution Licenses
|
||||
for distribution of Redistributables, as defined in The Qt Company's standard
|
||||
price list, quote, Purchase Order confirmation or in an appendix hereto, as the
|
||||
case may be.
|
||||
|
||||
"Initial Support Term" shall mean a time period of twelve (12) months,
|
||||
calculated from the effective date of this Agreement.
|
||||
|
||||
"Intellectual Property Rights" shall mean patents (including utility models),
|
||||
design patents, and designs (whether or not capable of registration), chip
|
||||
topography rights and other like protection, copyrights, trademarks, service
|
||||
marks, trade names, logos or other words or symbols and any other form of
|
||||
statutory protection of any kind and applications for any of the foregoing
|
||||
as well as any trade secrets.
|
||||
"Licensee" shall mean the individual or legal entity that is party to this
|
||||
Agreement, as identified on the signature page hereof.
|
||||
|
||||
"License Certificate" shall mean a certificate accompanying the Licensed
|
||||
Software and generated for each Designated User respectively. License
|
||||
Certificate will specify the Designated User, the Development Platforms,
|
||||
Deployment Platforms, Program and the Term of this Agreement. The terms of the
|
||||
License Certificate are considered part of this Agreement and shall be updated
|
||||
from time to time to reflect any changes to the foregoing terms relating to
|
||||
Licensee's rights to the Licensed Software.
|
||||
|
||||
"Licensee's Records" shall mean books and records that are likely to contain
|
||||
information bearing on Licensee's compliance with this Agreement or the payments
|
||||
due to The Qt Company under this Agreement, including, but not limited to:
|
||||
assembly logs, sales records and distribution records.
|
||||
|
||||
"Licensee´s SDK Contractors" shall mean Contractors of Licensee, who have
|
||||
purchased or received SDK from the Licensee relating to the Program.
|
||||
|
||||
"License Fee" shall mean the fee charged to the Licensee for rights granted
|
||||
under the terms of this Agreement.
|
||||
|
||||
"Licensed Software" shall mean all versions of The Qt Company's computer
|
||||
software products, online or electronic documentation, associated media and
|
||||
printed materials, including the source code, example programs and the
|
||||
documentation, licensed to the Licensee under this Agreement. Licensed Software
|
||||
does not include Third Party Software (as defined in Section 4) or Open Source
|
||||
Qt.
|
||||
|
||||
"Modified Software" shall mean bug-fixes, error corrections, patches or
|
||||
modifications made to the Licensed Software by Licensee, including documentation
|
||||
related thereto.
|
||||
|
||||
"Online Services" shall mean any services or access to systems made available
|
||||
by The Qt Company to the Licensee over the Internet relating to the Licensed
|
||||
Software or for the purpose of use by the Licensee of the Licensed Software or
|
||||
Support. Use of any such Online Services is discretionary for the Licensee and
|
||||
some of them may be subject to additional fees.
|
||||
|
||||
"Open Source Qt" shall mean all versions of The Qt Company's Qt computer
|
||||
software products, online or electronic documentation, associated media and
|
||||
printed materials, including the source code, example programs and the
|
||||
documentation available under the terms of the GNU Lesser General Public
|
||||
License, version 2.1 or later ("LGPL") or the GNU General Public License,
|
||||
version 2.0 or later ("GPL").
|
||||
|
||||
"Party" or "Parties" shall mean Licensee and/or The Qt Company.
|
||||
|
||||
"Program" shall mean Licensee´s business program for which purpose the Licensee
|
||||
is entitled to use the Licensed Software and grant the Licensee's SDK
|
||||
Contractors a right to use the Licensed Software as part of a SDK.
|
||||
|
||||
"Redistributables" shall mean the portions of the Licensed Software set forth
|
||||
in Appendix 1, Section 1 that may be distributed pursuant to the terms of this
|
||||
Agreement in object code form only, including any relevant documentation. Where
|
||||
relevant, any reference to Licensed Software in this Agreement shall include and
|
||||
refer also to Redistributables.
|
||||
|
||||
"SDK" or "Software Development Kit" shall mean a combination of software modules
|
||||
including Licensed Software intended to be utilized in connection with the
|
||||
Program.
|
||||
|
||||
"Submitted Modified Software" shall have the meaning as set forth in Section
|
||||
2.3.
|
||||
|
||||
"Support" shall mean standard developer support that is provided by
|
||||
The Qt Company to assist Designated Users in using the Licensed Software in
|
||||
accordance with The Qt Company's standard support terms.
|
||||
|
||||
"Support Renewal Term" shall mean a time period of twelve (12) months,
|
||||
calculated from the end of the Initial Support Term or previous Support Renewal
|
||||
Term, as applicable.
|
||||
|
||||
"Support Term" shall mean the Initial Support Term and any possible Support
|
||||
Renewal Terms(s) during which time the Licensee is eligible to receive for
|
||||
Support for the Licensed Software.
|
||||
|
||||
"Taxes" shall have the meaning set forth in Section 10.5.
|
||||
|
||||
"Term" shall mean the validity period of this Agreement, as set forth in the
|
||||
License Certificate.
|
||||
|
||||
“The Qt Company” shall mean:
|
||||
|
||||
(i) in the event Licensee is an individual residing in the United States or a
|
||||
legal entity incorporated in the United States or having its headquarters in the
|
||||
United States, The Qt Company Inc., a Delaware corporation with its office at
|
||||
2350 Mission College Blvd., Suite 1020, Santa Clara, CA 95054, USA.; or
|
||||
|
||||
(ii) in the event the Licensee is an individual residing outside of the United
|
||||
States or a legal entity incorporated outside of the United States or having its
|
||||
registered office outside of the United States, The Qt Company Ltd., a Finnish
|
||||
company with its registered office at Bertel Jungin aukio D3A, 02600 Espoo,
|
||||
Finland.
|
||||
|
||||
"Updates" shall mean a release or version of the Licensed Software containing
|
||||
bug fixes, error corrections and other changes that are generally made available
|
||||
to users of the Licensed Software that have contracted for Support. Updates are
|
||||
generally depicted as a change to the digits following the decimal in the
|
||||
Licensed Software version number. The Qt Company shall make Updates available to
|
||||
the Licensee under the Support. Updates shall be considered as part of the
|
||||
Licensed Software hereunder.
|
||||
|
||||
"Upgrades" shall mean a release or version of the Licensed Software containing
|
||||
enhancements and new features and are generally depicted as a change to the
|
||||
first digit of the Licensed Software version number. In the event Upgrades are
|
||||
provided to the Licensee under this Agreement, they shall be considered as part
|
||||
of the Licensed Software hereunder.
|
||||
|
||||
2. OWNERSHIP 2.1
|
||||
|
||||
Ownership of The Qt Company
|
||||
|
||||
The Licensed Software is protected by copyright laws and international copyright
|
||||
treaties, as well as other intellectual property laws and treaties. The Licensed
|
||||
Software is licensed, not sold.
|
||||
|
||||
All The Qt Company's Intellectual Property Rights are and shall remain the
|
||||
exclusive property of The Qt Company or its licensors respectively.
|
||||
|
||||
2.2 Ownership of Licensee
|
||||
|
||||
All the Licensee's Intellectual Property Rights are and shall remain the
|
||||
exclusive property of the Licensee or its licensors respectively.
|
||||
|
||||
All Intellectual Property Rights to the Modified Software, Applications and
|
||||
Devices shall remain with the Licensee and no rights thereto shall be granted by
|
||||
the Licensee to The Qt Company under this Agreement (except as set forth in
|
||||
Section 2.3 below).
|
||||
|
||||
2.3 Modified Software
|
||||
|
||||
Licensee may create Modified Software that breaks the source or binary
|
||||
compatibility with the Licensed Software. This includes, but is not limited to,
|
||||
changing the application programming interfaces ("API") by adding, changing or
|
||||
deleting any variable, method, or class signature in the Licensed Software
|
||||
and/or any inter-process protocols, services or standards in the Licensed
|
||||
Software libraries. To the extent that Licensee breaks source or binary
|
||||
compatibility with the Licensed Software, Licensee acknowledges that The Qt
|
||||
Company's ability to provide Support may be prevented or limited and Licensee's
|
||||
ability to make use of Updates may be restricted.
|
||||
|
||||
To the extent Licensee submits Modified Software to The Qt Company ("Submitted
|
||||
Modified Software"), Licensee hereby grants The Qt Company a sublicensable,
|
||||
assignable, irrevocable, perpetual, worldwide, non-exclusive, royalty-free and
|
||||
fully paid-up license, under all of Licensee's Intellectual Property Rights, to
|
||||
reproduce, adapt, translate, modify, and prepare derivative works of, publicly
|
||||
display, publicly perform, sublicense, make available and distribute such
|
||||
Submitted Modified Software as The Qt Company sees fit at its free and absolute
|
||||
discretion. For the sake of clarity, the Licensee shall have no obligation to
|
||||
provide Modified Software to The Qt Company.
|
||||
|
||||
3. LICENSES GRANTED
|
||||
|
||||
3.1 Development with Licensed Software
|
||||
|
||||
Subject to the terms of this Agreement, The Qt Company grants to Licensee a
|
||||
personal, worldwide, non- exclusive, non-transferable license, valid for the
|
||||
Term, to use, modify and copy the Licensed Software by Designated Users on the
|
||||
Development Platforms for the sole purposes of designing, developing,
|
||||
demonstrating and testing Application(s) and/or Devices, and to provide thereto
|
||||
related support and other services to end-user Customers.
|
||||
|
||||
Licensee may install copies of the Licensed Software on an unlimited number of
|
||||
computers provided that (i) only the Designated Users may use the Licensed
|
||||
Software, and (ii) all Designated Users must have a valid Development License to
|
||||
use Licensed Software.
|
||||
|
||||
Licensee may at any time designate another Designated User to replace a
|
||||
then-current Designated User by notifying The Qt Company in writing, provided
|
||||
that any Designated User may be replaced only once during any six-month period.
|
||||
|
||||
3.2 Distribution of Redistributables
|
||||
|
||||
Subject to the terms of this Agreement, The Qt Company grants to Licensee a
|
||||
personal, worldwide, non- exclusive, non-transferable license, valid for the
|
||||
Term, to (i) distribute, by itself or through its Contractors, Redistributables
|
||||
as installed, incorporated or integrated into Applications for execution on the
|
||||
Deployment Platforms, and (ii) distribute, by itself or through one or more
|
||||
tiers of Contractors, Redistributables as installed, incorporated or integrated,
|
||||
or intended to be installed, incorporated or integrated into Devices for
|
||||
execution on the Deployment Platforms, and (iii) grant sublicenses to
|
||||
Redistributables, as distributed hereunder, for Customers solely for Customer's
|
||||
internal use and to the extent necessary in order for the Customers to use the
|
||||
Applications and/or Devices for their respective intended purposes.
|
||||
|
||||
Right to distribute the Redistributables as provided herein is conditional upon
|
||||
the Licensee having purchased and paid the appropriate amount of Development and
|
||||
Distribution Licenses from The Qt Company before distributing any
|
||||
Redistributables to Customers.
|
||||
|
||||
For the avoidance of any doubt it is specifically acknowledged and agreed that
|
||||
distribution of Redistributables solely as installed, incorporated or integrated
|
||||
into Applications for execution on the Deployment Platform(s), as specified in
|
||||
(i) of the first paragraph of Section 3.2 above, i.e. with no connection to
|
||||
Devices or intention to use in connection therewith, shall not require a
|
||||
Distribution License.
|
||||
|
||||
3.3 SDK License
|
||||
|
||||
The Qt Company grants to Licensee a personal, worldwide, non-exclusive,
|
||||
non-transferable license, valid for the Term, to (i) distribute Licensed
|
||||
Software as a part of the SDK to Licensee´s SDK Contractors in connection with
|
||||
the Program and (ii) in connection with the Program, by itself or by Licensee's
|
||||
SDK Contractors, combine, incorporate or integrate Licensed Software with, or
|
||||
use Licensed Software for creation of, any software created with or
|
||||
incorporating Open Source Qt, provided, however, that:
|
||||
|
||||
(i) the Licensee´s SDK Contractors are only entitled to use the Licensed
|
||||
Software as part of SDK and for the sole purpose of developing software for
|
||||
Devices that are distributed under the Program; and
|
||||
|
||||
(ii) Licensee´s SDK Contractors shall not be entitled to distribute the SDK or
|
||||
any part thereof to any third parties.
|
||||
|
||||
For the avoidance of any doubt, the distribution of such software development
|
||||
tools that do not contain Licensed Software shall not be covered by this
|
||||
Agreement.
|
||||
|
||||
3.4 Further Requirements
|
||||
|
||||
The licenses granted above in this Section 3 by The Qt Company to Licensee are
|
||||
conditional and subject to Licensee's compliance with the following terms:
|
||||
|
||||
(i) Licensee shall not remove or alter any copyright, trademark or other
|
||||
proprietary rights notice contained in any portion of the Licensed Software;
|
||||
|
||||
(ii) Applications and SDKs must add primary and substantial functionality to the
|
||||
Licensed Software;
|
||||
|
||||
(iii) Applications may not pass on functionality which in any way makes it
|
||||
possible for others to create software with the Licensed Software; provided
|
||||
however that Licensee may use the Licensed Software's scripting and QML ("Qt
|
||||
Quick") functionality solely in order to enable scripting, themes and styles
|
||||
that augment the functionality and appearance of the Application(s) without
|
||||
adding primary and substantial functionality to the Application(s);
|
||||
|
||||
(iv) Applications and SDKs must not compete with the Licensed Software;
|
||||
|
||||
(v) Licensee shall not use The Qt Company's or any of its suppliers' names,
|
||||
logos, or trademarks to market Applications or SDKs, except that Licensee may
|
||||
use "Built with Qt" logo to indicate that Application(s) was developed using
|
||||
the Licensed Software;
|
||||
|
||||
(vi) Except as expressly provided in Section 3.3, Licensee shall not
|
||||
distribute, sublicense or disclose source code of Licensed Software to any third
|
||||
party (provided however that Licensee may appoint employee(s) of Contractors as
|
||||
Designated Users to use Licensed Software pursuant to this Agreement);
|
||||
|
||||
(vii) Licensee shall not grant the Customers a right to (i) make copies of the
|
||||
Redistributables except when and to the extent required to use the Applications
|
||||
and/or Devices for their intended purpose, (ii) modify the Redistributables or
|
||||
create derivative works thereof, (iii) decompile, disassemble or otherwise
|
||||
reverse engineer Redistributables, or (iv) redistribute any copy or portion of
|
||||
the Redistributables to any third party, except as part of the onward sale of
|
||||
the Device on which the Redistributables are installed;
|
||||
|
||||
(viii) Except as expressly provided in Section 3.3, Licensee shall not and
|
||||
shall cause that its Affiliates, Contractors and Licensee's SDK Contractors
|
||||
shall not a) in any way, combine, incorporate or integrate Licensed Software
|
||||
with, or use Licensed Software for creation of, any software created with or
|
||||
incorporating Open Source Qt or b) incorporate or integrate Applications into a
|
||||
hardware device or product other than a Device, unless Licensee has received an
|
||||
advance written permission from The Qt Company to do so. Unless specifically
|
||||
otherwise agreed, any and all distribution by the Licensee during the Term of
|
||||
a hardware device or product a) which incorporate or integrate any part of
|
||||
Licensed Software or Open Source Qt; or b) where the main user interface or
|
||||
substantial functionality is provided by software build with Licensed
|
||||
Software or Open Source Qt or otherwise depends on the Licensed Software or Open
|
||||
Open Source Qt, shall be considered as distribution under this Agreement and
|
||||
dependent on compliance thereof (including but not limited to obligation to
|
||||
pay applicable License Fees for such distribution);
|
||||
|
||||
(ix) Licensee shall cause all of its Affiliates and Contractors entitled to make
|
||||
use of the licenses granted under this Agreement, to be contractually bound to
|
||||
comply with the relevant terms of this Agreement and not to use the Licensed
|
||||
Software beyond the terms hereof and for any purposes other than operating
|
||||
within the scope of their services for Licensee. Licensee shall be responsible
|
||||
for any and all actions and omissions of its Affiliates and Contractors relating
|
||||
to the Licensed Software and use thereof (including but not limited to payment
|
||||
of all applicable License Fees);
|
||||
|
||||
(x) Except when and to the extent explicitly provided in this Section 3,
|
||||
Licensee shall not transfer, publish, disclose, display or otherwise make
|
||||
available the Licensed Software;
|
||||
|
||||
(xi) Licensee shall not take any action inconsistent with The Qt Company's
|
||||
Intellectual Property Rights; and
|
||||
|
||||
(xii) Attempt or enlist a third party to conduct or attempt to conduct any of
|
||||
the above.
|
||||
|
||||
Above terms shall not be applicable if and to the extent they conflict with any
|
||||
mandatory provisions of any applicable laws.
|
||||
|
||||
Any use of Licensed Software beyond the provisions of this Agreement is strictly
|
||||
prohibited and requires an additional license from The Qt Company.
|
||||
|
||||
4. THIRD PARTY SOFTWARE
|
||||
|
||||
The Licensed Software may provide links to third party libraries or code
|
||||
(collectively "Third Party Software") to implement various functions. Third
|
||||
Party Software does not comprise part of the Licensed Software. In some cases,
|
||||
access to Third Party Software may be included in the Licensed Software. Such
|
||||
Third Party Software will be listed in the ".../src/3rdparty" source tree
|
||||
delivered with the Licensed Software or documented in the Licensed Software, as
|
||||
such may be amended from time to time. Licensee acknowledges that use or
|
||||
distribution of Third Party Software is in all respects subject to applicable
|
||||
license terms of applicable third party right holders. 5. PRE-RELEASE CODE
|
||||
|
||||
The Licensed Software may contain pre-release code and functionality marked or
|
||||
otherwise stated as "Technology Preview", "Alpha", "Beta" or similar
|
||||
designation. Such pre-release code may be present in order to provide
|
||||
experimental support for new platforms or preliminary versions of one or more
|
||||
new functionalities. The pre-release code may not be at the level of performance
|
||||
and compatibility of a final, generally available, product offering of the
|
||||
Licensed Software. The pre-release parts of the Licensed Software may not
|
||||
operate correctly, may contain errors and may be substantially modified by The
|
||||
Qt Company prior to the first commercial product release, if any. The Qt Company
|
||||
is under no obligation to make pre-release code commercially available, or
|
||||
provide any Support or Updates relating thereto. The Qt Company assumes no
|
||||
liability whatsoever regarding any pre-release code, but any use thereof is
|
||||
exclusively at Licensee's own risk and expense.
|
||||
|
||||
6. LIMITED WARRANTY AND WARRANTY DISCLAIMER
|
||||
|
||||
The Qt Company hereby represents and warrants that it has the power and
|
||||
authority to grant the rights and licenses granted to Licensee under this
|
||||
Agreement.
|
||||
|
||||
Except as set forth above, the Licensed Software is licensed to Licensee "as
|
||||
is".
|
||||
|
||||
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE QT COMPANY ON BEHALF OF
|
||||
ITSELF AND ITS LICENSORS, SUPPLIERS AND AFFILIATES, DISCLAIMS ALL WARRANTIES,
|
||||
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT
|
||||
WITH REGARD TO THE LICENSED SOFTWARE. THE QT COMPANY DOES NOT WARRANT THAT THE
|
||||
LICENSED SOFTWARE WILL SATISFY LICENSEE'S REQUIREMENTS OR THAT IT WILL OPERATE
|
||||
WITHOUT DEFECT OR ERROR OR THAT THE OPERATION THEREOF WILL BE UNINTERRUPTED. ALL
|
||||
USE OF AND RELIANCE ON THE LICENSED SOFTWARE IS AT THE SOLE RISK OF AND
|
||||
RESPONSIBILITY OF LICENSEE.
|
||||
|
||||
Licensee's exclusive remedy and The Qt Company's entire liability for Licensed
|
||||
Software shall be limited, at The Qt Company's option, to correction of the
|
||||
error, replacement of the Licensed Software or return of the applicable fees
|
||||
paid for the defective Licensed Software for the time period during which the
|
||||
License is not able to utilize the Licensed Software under the terms of this
|
||||
Agreement.
|
||||
|
||||
7. INDEMNIFICATION AND LIMITATION OF LIABILITY
|
||||
|
||||
7.1 Limitation of Liability
|
||||
|
||||
EXCEPT FOR (I) CASES OF GROSS NEGLIGENCE OR INTENTIONAL MISCONDUCT, (II)
|
||||
LICENSEE'S DUTY TO PAY ALL APPLICABLE LICENSE FEES AND COMPENSATIONS, AND (III)
|
||||
BREACH OF CONFIDENTIALITY, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO
|
||||
EVENT SHALL EITHER PARTY BE LIABLE TO THE OTHER PARTY FOR ANY LOSS OF PROFIT,
|
||||
LOSS OF DATA, LOSS OF BUSINESS OR GOODWILL OR ANY OTHER INDIRECT, SPECIAL,
|
||||
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE COST, DAMAGES OR EXPENSE OF ANY KIND,
|
||||
HOWSOEVER ARISING UNDER OR IN CONNECTION WITH THIS AGREEMENT.
|
||||
|
||||
EXCEPT FOR (I) CASES OF GROSS NEGLIGENCE OR INTENTIONAL MISCONDUCT, (II)
|
||||
LICENSEE'S DUTY TO PAY ALL APPLICABLE LICENSE FEES AND COMPENSATIONS, AND (III)
|
||||
BREACH OF CONFIDENTIALITY, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO
|
||||
EVENT SHALL EITHER PARTY'S TOTAL AGGREGATE LIABILITY UNDER THIS AGREEMENT EXCEED
|
||||
THE AGGREGATE LICENSE FEES RECEIVED BY THE QT COMPANY FROM LICENSEE DURING THE
|
||||
PERIOD OF TWELVE (12) MONTHS IMMEDIATELY PRECEDING THE EVENT RESULTING IN SUCH
|
||||
LIABILITY.
|
||||
|
||||
THE PROVISIONS OF THIS SECTION 7 ALLOCATE THE RISKS UNDER THIS AGREEMENT BETWEEN
|
||||
THE QT COMPANY AND LICENSEE AND THE PARTIES HAVE RELIED UPON THE LIMITATIONS SET
|
||||
FORTH HEREIN IN DETERMINING WHETHER TO ENTER INTO THIS AGREEMENT.
|
||||
|
||||
7.2 Licensee´s Indemnification
|
||||
|
||||
Licensee shall indemnify and hold harmless The Qt Company from and against any
|
||||
claim, injury, judgment, settlement, loss or expense, including attorneys' fees
|
||||
related to: (a) Licensee's misrepresentation in connection with The Qt Company
|
||||
or the Licensed Software or breach of this Agreement, (b) the Application or
|
||||
Device (except where such cause of liability is solely attributable to the
|
||||
Licensed Software).
|
||||
|
||||
8. SUPPORT, UPDATES AND ONLINE SERVICES
|
||||
|
||||
Licensee will be eligible to receive Support and Updates and to use the Online
|
||||
Services during the Support Term. Unless otherwise decided by The Company at its
|
||||
free and absolute discretion, Upgrades will not be included in the Support but
|
||||
may be available subject to additional fees.
|
||||
|
||||
Licenses granted under this Agreement shall include a prepaid Initial Support
|
||||
Term.
|
||||
|
||||
Initial Support Term shall be automatically extended to one or more Support
|
||||
Renewal Term(s), unless and until either Party notifies the other Party in
|
||||
writing that it does not wish to continue the Support, such notification to be
|
||||
provided to the other Party no less than ninety (90) days before expiry of the
|
||||
Initial Support Term or respective Support Renewal Term. During any such Support
|
||||
Renewal Term Support shall be available subject to prices and terms agreed
|
||||
between the Parties or, if no advance agreement exists, subject to The Qt
|
||||
Company's standard pricing applicable at the commencement date of any such
|
||||
Support Renewal Term. From time to time The Qt Company may change Support
|
||||
provided within each Support plan; provided that during the respective Initial
|
||||
Support Term or Support Renewal Term (as the case may be), the level of Support
|
||||
provided by The Qt Company may not be reduced without the consent of the
|
||||
Licensee.
|
||||
|
||||
Unless otherwise agreed, The Qt Company shall not be responsible for providing
|
||||
any service or support to the Customers.
|
||||
|
||||
9. CONFIDENTIALITY
|
||||
|
||||
Each Party acknowledges that during the Term of this Agreement each Party may
|
||||
receive information about the other Party's business, business methods, business
|
||||
plans, customers, business relations, technology, and other information,
|
||||
including the terms of this Agreement, that is confidential and of great value
|
||||
to the other Party, and the value of which would be significantly reduced if
|
||||
disclosed to third parties ("Confidential Information"). Accordingly, when a
|
||||
Party (the "Receiving Party") receives Confidential Information from the other
|
||||
Party (the "Disclosing Party"), the Receiving Party shall only disclose such
|
||||
information to employees and Contractors on a need to know basis, and shall
|
||||
cause its employees and employees of its Affiliates to: (i) maintain any and all
|
||||
Confidential Information in confidence; (ii) not disclose the Confidential
|
||||
Information to a third party without the Disclosing Party's prior written
|
||||
approval; and (iii) not, directly or indirectly, use the Confidential
|
||||
Information for any purpose other than for exercising its rights and fulfilling
|
||||
its responsibilities pursuant to this Agreement. Each Party shall take
|
||||
reasonable measures to protect the Confidential Information of the other Party,
|
||||
which measures shall not be less than the measures taken by such Party to
|
||||
protect its own confidential and proprietary information.
|
||||
|
||||
Obligation of confidentiality shall not apply to information that (i) is or
|
||||
becomes generally known to the public through no act or omission of the
|
||||
Receiving Party; (ii) was in the Receiving Party's lawful possession prior to
|
||||
the disclosure hereunder and was not subject to limitations on disclosure or
|
||||
use; (iii) is developed independently by employees or Contractors of the
|
||||
Receiving Party or other persons working for the Receiving Party who have not
|
||||
had access to the Confidential Information of the Disclosing Party, as proven by
|
||||
the written records of the Receiving Party; (iv) is lawfully disclosed to the
|
||||
Receiving Party without restrictions, by a third party not under an obligation
|
||||
of confidentiality; or (v) the Receiving Party is legally compelled to disclose,
|
||||
in which case the Receiving Party shall notify the Disclosing Party of such
|
||||
compelled disclosure and assert the privileged and confidential nature of the
|
||||
information and cooperate fully with the Disclosing Party to limit the scope of
|
||||
disclosure and the dissemination of disclosed Confidential Information to the
|
||||
minimum extent necessary.
|
||||
|
||||
The obligations under this Section 9 shall continue to remain in force for a
|
||||
period of five (5) years after the last disclosure, and, with respect to trade
|
||||
secrets, for so long as such trade secrets are protected under applicable trade
|
||||
secret laws.
|
||||
|
||||
10. FEES, DELIVERY AND PAYMENT
|
||||
|
||||
10.1 License Fees
|
||||
|
||||
License Fees are described in The Qt Company's standard price list, quote or
|
||||
Purchase Order confirmation or in an appendix hereto, as the case may be. The
|
||||
License Fees shall not be refunded or claimed as a credit, even on the ground
|
||||
that Distribution Licenses are not used, i.e. Redistributables are not actually
|
||||
distributed corresponding to the Distribution Licenses purchased, or for any
|
||||
other reason.
|
||||
|
||||
10.2 Ordering Licenses
|
||||
|
||||
Licensee may purchase Development Licenses and Distribution Licenses pursuant to
|
||||
agreed pricing terms or, if no specific pricing terms have been agreed upon, at
|
||||
The Qt Company's standard pricing terms applicable at the time of purchase.
|
||||
|
||||
Licensee shall submit all purchase orders for Development Licenses and
|
||||
Distribution Licenses to The Qt Company by email or any other method acceptable
|
||||
to The Qt Company (each such order is referred to herein as a "Purchase Order")
|
||||
for confirmation, whereupon the Purchase Order shall become binding between the
|
||||
Parties.
|
||||
|
||||
10.3 Distribution
|
||||
|
||||
License Packs Unless otherwise agreed, the Distribution Licenses are bought by
|
||||
way of Distribution License Packs.
|
||||
|
||||
Upon due payment of the ordered Distribution License Pack(s), the Licensee will
|
||||
have an account of Distribution Licenses available for installing, bundling or
|
||||
integrating (all jointly "installing") the Redistributables with the Devices or
|
||||
for otherwise distributing the Redistributables in accordance with this
|
||||
Agreement.
|
||||
|
||||
Each time Licensee "installs" or distributes a copy of Redistributables, then
|
||||
one Distribution License is used, and Licensee's account of available
|
||||
Distribution Licenses is decreased accordingly.
|
||||
|
||||
Licensee may "install" copies of the Redistributables so long as Licensee has
|
||||
Distribution Licenses remaining on its account.
|
||||
|
||||
Redistributables will be deemed to have been "installed" into a Device when one
|
||||
of the following circumstances shall have occurred: a) the Redistributables
|
||||
have been loaded onto the Device and used outside of the Licensee's premises or
|
||||
b) the Device has been fully tested and placed into Licensee's inventory (or
|
||||
sold) for the first time (i.e., Licensee will not be required to use (or pay
|
||||
for) more than one Distribution License for each individual Device, e.g. in a
|
||||
situation where a Device is returned to Licensee's inventory after delivery to
|
||||
a distributor or sale to a Customer). In addition, if Licensee includes a
|
||||
back-up copy of the Redistributables on a CD-ROM or other storage medium
|
||||
along with the product, that backup copy of the Redistributables will not
|
||||
be deemed to have been "installed" and will not require an additional
|
||||
Distribution License.
|
||||
|
||||
10.4 Payment Terms
|
||||
License Fees and any other charges under this Agreement shall be paid by
|
||||
Licensee no later than thirty (30) days from the date of the applicable invoice
|
||||
from The Qt Company.
|
||||
|
||||
The Qt Company will submit an invoice to Licensee after the date of this
|
||||
Agreement and/or after The Qt Company receives a Purchase Order from Licensee.
|
||||
A late payment charge of the lower of (a) one percent per month; or (b) the
|
||||
interest rate stipulated by applicable law, shall be charged on any unpaid
|
||||
balances that remain past due.
|
||||
|
||||
The Qt Company shall have the right to suspend, terminate or withhold grants of
|
||||
all rights to the Licensed Software hereunder, including but not limited to the
|
||||
Developer License, Distribution License, and Support, should Licensee fail to
|
||||
make payment in a timely fashion.
|
||||
|
||||
10.5 Taxes
|
||||
All License Fees and other charges payable hereunder are gross amounts but
|
||||
exclusive of any value added tax, use tax, sales tax and other taxes, duties or
|
||||
tariffs ("Taxes"). Such applicable Taxes shall be paid by Licensee, or, where
|
||||
applicable, in lieu of payment of such Taxes, Licensee shall provide an
|
||||
exemption certificate to The Qt Company and any applicable authority.
|
||||
|
||||
11 RECORD-KEEPING AND REPORTING OBLIGATIONS; AUDIT RIGHTS
|
||||
|
||||
11.1 Licensee's Record-keeping
|
||||
|
||||
Licensee shall at all times maintain accurate and up-to-date written records of
|
||||
Licensee's activities related to the use of Licensed Software and distribution
|
||||
of Redistributables. The records shall be adequate to determine Licensee's
|
||||
compliance with the provisions of this Agreement and to demonstrate the number
|
||||
of Designated Users and Redistributables distributed by Licensee. The records
|
||||
shall conform to good accounting practices reasonably acceptable to The Qt
|
||||
Company.
|
||||
|
||||
Licensee shall, within thirty (30) days from the end of each calendar
|
||||
quarter, deliver to The Qt Company a report detailing the number of Designated
|
||||
Users and copies of Redistributables distributed by Licensee during that
|
||||
calendar quarter, and also detailing the number of undistributed copies of
|
||||
Redistributables made by Licensee and remaining in its account (i.e.,
|
||||
undistributed copies for which Distribution Licenses have been or need to be
|
||||
obtained from The Qt Company). Such report shall contain such other information
|
||||
as The Qt Company shall reasonably require from time to time.
|
||||
|
||||
11.2. The Qt Company's Audit Rights
|
||||
|
||||
The Qt Company or an independent auditor acting on behalf of The Qt Company's,
|
||||
may, upon at least five (5) business days' prior written notice and at its
|
||||
expense, audit Licensee with respect to the use of the Redistributables, but
|
||||
not more frequently than once during each 6-month period. Such audit may be
|
||||
conducted by mail, electronic means or through an in-person visit to
|
||||
Licensee's place of business. Any such in-person audit shall be conducted
|
||||
during regular business hours at Licensee's facilities and shall not
|
||||
unreasonably interfere with Licensee's business activities. The Qt Company or
|
||||
the independent auditor acting on behalf of The Qt Company shall be entitled to
|
||||
inspect Licensee's Records. All such Licensee's Records and use thereof shall be
|
||||
subject to an obligation of confidentiality under this Agreement.
|
||||
|
||||
If an audit reveals that Licensee is using the Licensed Software beyond scope of
|
||||
the licenses Licensee has paid for, Licensee agrees to immediately pay The Qt
|
||||
Company any amounts owed for such unauthorized use.
|
||||
|
||||
In addition, in the event the audit reveals a material violation of the terms of
|
||||
this Agreement (underpayment of more than 5% of License Fees shall always be
|
||||
deemed a material violation for purposes of this section), then the Licensee
|
||||
shall pay The Qt Company's reasonable cost of conducting such audit.
|
||||
|
||||
12 TERM AND TERMINATION
|
||||
|
||||
12.1 Term
|
||||
|
||||
This Agreement shall enter into force upon due acceptance by both Parties and
|
||||
remain in force for the Term, unless and until terminated pursuant to the terms
|
||||
of this Section 12.
|
||||
|
||||
12.2 Termination by The Qt Company
|
||||
|
||||
The Qt Company shall have the right to terminate this Agreement upon thirty
|
||||
(30) days prior written notice if (i) the Licensee is in material breach of any
|
||||
obligation of this Agreement and fails to remedy such breach within such notice
|
||||
period; (ii) or Licensee or any of its Affiliates bring a suit before any court
|
||||
or administrative agency or otherwise assert a claim against The Qt Company's
|
||||
or any of its Affiliates' Intellectual Property Rights or validity thereof.
|
||||
|
||||
12.3 Mutual Right to Terminate
|
||||
|
||||
Either Party shall have the right to terminate this Agreement immediately upon
|
||||
written notice in the event that the other Party becomes insolvent, files for
|
||||
any form of bankruptcy, makes any assignment for the benefit of creditors, has a
|
||||
receiver, administrative receiver or officer appointed over the whole or a
|
||||
substantial part of its assets, ceases to conduct business, or an act equivalent
|
||||
to any of the above occurs under the laws of the jurisdiction of the other
|
||||
Party.
|
||||
|
||||
12.4 Parties´ Rights and Duties upon Termination
|
||||
|
||||
Upon expiry or termination of the Agreement for any reason, Licensee shall,
|
||||
within 30 days after such termination, cease and shall cause all Designated
|
||||
Users (including those of its Affiliates' and Contractors') and Licensee's SDK
|
||||
Contractors to cease using the Licensed Software and distribution of the
|
||||
Redistributables under this Agreement. Notwithstanding the above, in the event
|
||||
the Agreement expires or is terminated for reason other than by The Qt Company
|
||||
pursuant to Section 12.2, the Licensee is entitled, for a period of six (6)
|
||||
months after the effective date of termination, to continue distribution of
|
||||
Devices under the Distribution Licenses paid but unused at such effective date
|
||||
of termination.
|
||||
|
||||
Upon any such termination the Licensee shall destroy or return to The Qt
|
||||
Company all copies of the Licensed Software and all related materials and will
|
||||
certify the same to The Qt Company upon its request, provided however that
|
||||
Licensee may retain and exploit such copies of the Licensed Software as it may
|
||||
reasonably require in providing continued support to Customers.
|
||||
|
||||
Expiry or termination of this Agreement for any reason whatsoever shall not
|
||||
relieve Licensee of its obligation to pay any License Fees accrued or payable
|
||||
to The Qt Company prior to the effective date of termination, and Licensee shall
|
||||
immediately pay to The Qt Company all such fees upon the effective date of
|
||||
termination. Termination of this Agreement shall not affect any rights of
|
||||
Customers to continue use of Applications and Devices (and therein incorporated
|
||||
Redistributables).
|
||||
|
||||
13.GOVERNING LAW AND LEGAL VENUE
|
||||
|
||||
In the event this Agreement is in the name of The Qt Company Inc., a Delaware
|
||||
Corporation, then:
|
||||
|
||||
(i) this Agreement shall be construed and interpreted in accordance with the
|
||||
laws of the State of California, USA, excluding its choice of law provisions;
|
||||
|
||||
(ii) the United Nations Convention on Contracts for the International Sale of
|
||||
Goods will not apply to this Agreement; and
|
||||
|
||||
(iii) any dispute, claim or controversy arising out of or relating to this
|
||||
Agreement or the breach, termination, enforcement, interpretation or validity
|
||||
thereof, including the determination of the scope or applicability of this
|
||||
Agreement to arbitrate, shall be determined by arbitration in San Francisco,
|
||||
USA, before one arbitrator. The arbitration shall be administered by JAMS
|
||||
pursuant to JAMS' Streamlined Arbitration Rules and Procedures. Judgment on the
|
||||
Award may be entered in any court having jurisdiction. This Section shall not
|
||||
preclude parties from seeking provisional remedies in aid of arbitration from a
|
||||
court of appropriate jurisdiction.
|
||||
|
||||
In the event this Agreement is in the name of The Qt Company Ltd., a Finnish
|
||||
Company, then:
|
||||
|
||||
(i) this Agreement shall be construed and interpreted in accordance with the
|
||||
laws of Finland, excluding its choice of law provisions;
|
||||
|
||||
(ii) the United Nations Convention on Contracts for the International Sale of
|
||||
Goods will not apply to this Agreement; and
|
||||
|
||||
(iii) any disputes, controversy or claim arising out of or relating to this
|
||||
Agreement, or the breach, termination or validity thereof shall be shall be
|
||||
finally settled by arbitration in accordance with the Arbitration Rules of
|
||||
Finland Chamber of Commerce. The arbitration tribunal shall consist of one (1),
|
||||
or if either Party so requires, of three (3), arbitrators. The award shall be
|
||||
final and binding and enforceable in any court of competent jurisdiction. The
|
||||
arbitration shall be held in Helsinki, Finland and the process shall be
|
||||
conducted in the English language. This Section shall not preclude parties from
|
||||
seeking provisional remedies in aid of arbitration from a court of appropriate
|
||||
jurisdiction.
|
||||
|
||||
14. GENERAL PROVISIONS
|
||||
|
||||
14.1 No Assignment Licensee
|
||||
|
||||
shall not be entitled to assign or transfer all or any of its rights, benefits
|
||||
and obligations under this Agreement without the prior written consent of The Qt
|
||||
Company, which shall not be unreasonably withheld or delayed. The Qt Company
|
||||
shall be entitled to freely assign or transfer any of its rights, benefits or
|
||||
obligations under this Agreement.
|
||||
|
||||
14.2 No Third Party Representations
|
||||
|
||||
Licensee shall make no representations or warranties concerning the Licensed
|
||||
Software on behalf of The Qt Company. Any representation or warranty Licensee
|
||||
makes or purports to make on The Qt Company's behalf shall be void as to The Qt
|
||||
Company.
|
||||
|
||||
14.3 Surviving Sections
|
||||
|
||||
Any terms and conditions that by their nature or otherwise reasonably should
|
||||
survive termination of this Agreement shall so be deemed to survive.
|
||||
|
||||
14.4 Entire Agreement
|
||||
|
||||
This Agreement, the exhibits hereto, the License Certificate and any applicable
|
||||
Purchase Order constitute the complete agreement between the Parties and
|
||||
supersedes all prior or contemporaneous discussions, representations, and
|
||||
proposals, written or oral, with respect to the subject matters discussed
|
||||
herein. In the event of any conflict or inconsistency between this Agreement and
|
||||
any Purchase Order, the terms of this Agreement will prevail over the terms of
|
||||
the Purchase Order with respect to such conflict or inconsistency.
|
||||
|
||||
14.5 Modifications
|
||||
|
||||
No modification of this Agreement shall be effective unless contained in a
|
||||
writing executed by an authorized representative of each Party. No term or
|
||||
condition contained in Licensee's Purchase Order shall apply unless expressly
|
||||
accepted by The Qt Company in writing.
|
||||
|
||||
14.6 Force Majeure
|
||||
|
||||
Except for the payment obligations hereunder, neither Party shall be liable to
|
||||
the other for any delay or non-performance of its obligations hereunder in the
|
||||
event and to the extent that such delay or non- performance is due to an event
|
||||
of act of God, terrorist attack or other similar unforeseeable catastrophic
|
||||
event that prevents either Party for fulfilling its obligations under this
|
||||
Agreement and which such Party cannot avoid or circumvent ("Force Majeure
|
||||
Event"). If the Force Majeure Event results in a delay or non- performance of a
|
||||
Party for a period of three (3) months or longer, then either Party shall have
|
||||
the right to terminate this Agreement with immediate effect without any
|
||||
liability (except for the obligations of payment arising prior to the event of
|
||||
Force Majeure) towards the other Party.
|
||||
|
||||
14.7 Notices
|
||||
|
||||
Any notice given by one Party to the other shall be deemed properly given and
|
||||
deemed received if specifically acknowledged by the receiving Party in writing
|
||||
or when successfully delivered to the recipient by hand, fax, or special courier
|
||||
during normal business hours on a business day to the addresses specified for
|
||||
The Qt Company in the beginning of this Agreement, and for the Licensee in the
|
||||
Licensee’s account profile. Each communication and document made or delivered by
|
||||
one Party to the other Party pursuant to this Agreement shall be in the English
|
||||
language.
|
||||
|
||||
14.8 Export Control
|
||||
Licensee acknowledges that the Redistributables may be subject to export
|
||||
control restrictions under the applicable laws of respective countries.
|
||||
Licensee shall fully comply with all applicable export license restrictions
|
||||
and requirements as well as with all lawses hereunder and shall procure all
|
||||
necessary governmental authorizations, including without limitation, all
|
||||
necessary licenses, approvals, permissions or consents, where necessary for
|
||||
the re- exportation of the Redistributables, Applications
|
||||
and/or Devices.
|
||||
|
||||
14.9 No Implied License
|
||||
There are no implied licenses or other implied rights granted under this
|
||||
Agreement, and all rights, save for those expressly granted hereunder, shall
|
||||
remain with The Qt Company and its licensors. In addition, no licenses or
|
||||
immunities are granted to the combination of the Licensed Software with any
|
||||
other software or hardware not delivered by The Qt Company under this Agreement.
|
||||
|
||||
14.10 Attorney Fees
|
||||
|
||||
The prevailing Party in any action to enforce this Agreement shall be entitled
|
||||
to recover its attorney's fees and costs in connection with such action.
|
||||
|
||||
14.11 Severability
|
||||
|
||||
If any provision of this Agreement shall be adjudged by any court of competent
|
||||
jurisdiction to be unenforceable or invalid, that provision shall be limited or
|
||||
eliminated to the minimum extent necessary so that this Agreement shall
|
||||
otherwise remain in full force and effect and enforceable.
|
||||
|
||||
IN WITNESS WHEREOF, the Parties hereto, intending to be legally bound hereby,
|
||||
have caused this Agreement to be executed by Licensee’s authorized
|
||||
representative installing the Licensed Software and accepting the terms hereof
|
||||
in connection therewith.
|
||||
|
||||
Appendix 1
|
||||
|
||||
1. Parts of the Licensed Software that are permitted for distribution in object
|
||||
code form only ("Redistributables") under this Agreement:
|
||||
|
||||
- The Licensed Software's essential and add-on libraries
|
||||
|
||||
- The Licensed Software's configuration tool ("qtconfig")
|
||||
|
||||
- The Licensed Software's help tool ("Qt Assistant")
|
||||
|
||||
- The Licensed Software's internationalization tools ("Qt Linguist", "lupdate",
|
||||
"lrelease")
|
||||
|
||||
- The Licensed Software's QML ("Qt Quick") launcher tool ("qmlscene" and
|
||||
"qmlviewer")
|
||||
|
||||
- The Licensed Software's installer framework
|
||||
|
||||
2. Parts of the Licensed Software that are not permitted for distribution
|
||||
include, but are not limited to:
|
||||
|
||||
- The Licensed Software's source code and header files
|
||||
|
||||
- The Licensed Software's documentation
|
||||
|
||||
- The Licensed Software's documentation generation tool ("qdoc")
|
||||
|
||||
- The Licensed Software's tool for writing makefiles ("qmake")
|
||||
|
||||
- The Licensed Software's Meta Object Compiler ("moc")
|
||||
|
||||
- The Licensed Software's User Interface Compiler ("uic" or in the case of Qt Jambi: "juic")
|
||||
|
||||
- The Licensed Software's Resource Compiler ("rcc")
|
||||
|
||||
- The Licensed Software's generator (only in the case of Qt Jambi if applicable)
|
||||
|
||||
- The Licensed Software's parts of the IDE tool ("Qt Creator")
|
||||
|
||||
- The Licensed Software's Emulator
|
||||
|
||||
- Build scripts, recipes and other material for creating the
|
||||
configuration of Licensed Software and/or 3rd party components, including the
|
||||
reference operating system configuration delivered in conjunction with the
|
|
@ -0,0 +1,5 @@
|
|||
load(qt_build_config)
|
||||
|
||||
DEFINES += QT_NO_JAVA_STYLE_ITERATORS QT_NO_LINKED_LIST
|
||||
|
||||
MODULE_VERSION = 5.15.3
|
|
@ -0,0 +1,450 @@
|
|||
GNU Free Documentation License
|
||||
Version 1.3, 3 November 2008
|
||||
|
||||
|
||||
Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
|
||||
<http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
0. PREAMBLE
|
||||
|
||||
The purpose of this License is to make a manual, textbook, or other
|
||||
functional and useful document "free" in the sense of freedom: to
|
||||
assure everyone the effective freedom to copy and redistribute it,
|
||||
with or without modifying it, either commercially or noncommercially.
|
||||
Secondarily, this License preserves for the author and publisher a way
|
||||
to get credit for their work, while not being considered responsible
|
||||
for modifications made by others.
|
||||
|
||||
This License is a kind of "copyleft", which means that derivative
|
||||
works of the document must themselves be free in the same sense. It
|
||||
complements the GNU General Public License, which is a copyleft
|
||||
license designed for free software.
|
||||
|
||||
We have designed this License in order to use it for manuals for free
|
||||
software, because free software needs free documentation: a free
|
||||
program should come with manuals providing the same freedoms that the
|
||||
software does. But this License is not limited to software manuals;
|
||||
it can be used for any textual work, regardless of subject matter or
|
||||
whether it is published as a printed book. We recommend this License
|
||||
principally for works whose purpose is instruction or reference.
|
||||
|
||||
|
||||
1. APPLICABILITY AND DEFINITIONS
|
||||
|
||||
This License applies to any manual or other work, in any medium, that
|
||||
contains a notice placed by the copyright holder saying it can be
|
||||
distributed under the terms of this License. Such a notice grants a
|
||||
world-wide, royalty-free license, unlimited in duration, to use that
|
||||
work under the conditions stated herein. The "Document", below,
|
||||
refers to any such manual or work. Any member of the public is a
|
||||
licensee, and is addressed as "you". You accept the license if you
|
||||
copy, modify or distribute the work in a way requiring permission
|
||||
under copyright law.
|
||||
|
||||
A "Modified Version" of the Document means any work containing the
|
||||
Document or a portion of it, either copied verbatim, or with
|
||||
modifications and/or translated into another language.
|
||||
|
||||
A "Secondary Section" is a named appendix or a front-matter section of
|
||||
the Document that deals exclusively with the relationship of the
|
||||
publishers or authors of the Document to the Document's overall
|
||||
subject (or to related matters) and contains nothing that could fall
|
||||
directly within that overall subject. (Thus, if the Document is in
|
||||
part a textbook of mathematics, a Secondary Section may not explain
|
||||
any mathematics.) The relationship could be a matter of historical
|
||||
connection with the subject or with related matters, or of legal,
|
||||
commercial, philosophical, ethical or political position regarding
|
||||
them.
|
||||
|
||||
The "Invariant Sections" are certain Secondary Sections whose titles
|
||||
are designated, as being those of Invariant Sections, in the notice
|
||||
that says that the Document is released under this License. If a
|
||||
section does not fit the above definition of Secondary then it is not
|
||||
allowed to be designated as Invariant. The Document may contain zero
|
||||
Invariant Sections. If the Document does not identify any Invariant
|
||||
Sections then there are none.
|
||||
|
||||
The "Cover Texts" are certain short passages of text that are listed,
|
||||
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
|
||||
the Document is released under this License. A Front-Cover Text may
|
||||
be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
||||
|
||||
A "Transparent" copy of the Document means a machine-readable copy,
|
||||
represented in a format whose specification is available to the
|
||||
general public, that is suitable for revising the document
|
||||
straightforwardly with generic text editors or (for images composed of
|
||||
pixels) generic paint programs or (for drawings) some widely available
|
||||
drawing editor, and that is suitable for input to text formatters or
|
||||
for automatic translation to a variety of formats suitable for input
|
||||
to text formatters. A copy made in an otherwise Transparent file
|
||||
format whose markup, or absence of markup, has been arranged to thwart
|
||||
or discourage subsequent modification by readers is not Transparent.
|
||||
An image format is not Transparent if used for any substantial amount
|
||||
of text. A copy that is not "Transparent" is called "Opaque".
|
||||
|
||||
Examples of suitable formats for Transparent copies include plain
|
||||
ASCII without markup, Texinfo input format, LaTeX input format, SGML
|
||||
or XML using a publicly available DTD, and standard-conforming simple
|
||||
HTML, PostScript or PDF designed for human modification. Examples of
|
||||
transparent image formats include PNG, XCF and JPG. Opaque formats
|
||||
include proprietary formats that can be read and edited only by
|
||||
proprietary word processors, SGML or XML for which the DTD and/or
|
||||
processing tools are not generally available, and the
|
||||
machine-generated HTML, PostScript or PDF produced by some word
|
||||
processors for output purposes only.
|
||||
|
||||
The "Title Page" means, for a printed book, the title page itself,
|
||||
plus such following pages as are needed to hold, legibly, the material
|
||||
this License requires to appear in the title page. For works in
|
||||
formats which do not have any title page as such, "Title Page" means
|
||||
the text near the most prominent appearance of the work's title,
|
||||
preceding the beginning of the body of the text.
|
||||
|
||||
The "publisher" means any person or entity that distributes copies of
|
||||
the Document to the public.
|
||||
|
||||
A section "Entitled XYZ" means a named subunit of the Document whose
|
||||
title either is precisely XYZ or contains XYZ in parentheses following
|
||||
text that translates XYZ in another language. (Here XYZ stands for a
|
||||
specific section name mentioned below, such as "Acknowledgements",
|
||||
"Dedications", "Endorsements", or "History".) To "Preserve the Title"
|
||||
of such a section when you modify the Document means that it remains a
|
||||
section "Entitled XYZ" according to this definition.
|
||||
|
||||
The Document may include Warranty Disclaimers next to the notice which
|
||||
states that this License applies to the Document. These Warranty
|
||||
Disclaimers are considered to be included by reference in this
|
||||
License, but only as regards disclaiming warranties: any other
|
||||
implication that these Warranty Disclaimers may have is void and has
|
||||
no effect on the meaning of this License.
|
||||
|
||||
2. VERBATIM COPYING
|
||||
|
||||
You may copy and distribute the Document in any medium, either
|
||||
commercially or noncommercially, provided that this License, the
|
||||
copyright notices, and the license notice saying this License applies
|
||||
to the Document are reproduced in all copies, and that you add no
|
||||
other conditions whatsoever to those of this License. You may not use
|
||||
technical measures to obstruct or control the reading or further
|
||||
copying of the copies you make or distribute. However, you may accept
|
||||
compensation in exchange for copies. If you distribute a large enough
|
||||
number of copies you must also follow the conditions in section 3.
|
||||
|
||||
You may also lend copies, under the same conditions stated above, and
|
||||
you may publicly display copies.
|
||||
|
||||
|
||||
3. COPYING IN QUANTITY
|
||||
|
||||
If you publish printed copies (or copies in media that commonly have
|
||||
printed covers) of the Document, numbering more than 100, and the
|
||||
Document's license notice requires Cover Texts, you must enclose the
|
||||
copies in covers that carry, clearly and legibly, all these Cover
|
||||
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
|
||||
the back cover. Both covers must also clearly and legibly identify
|
||||
you as the publisher of these copies. The front cover must present
|
||||
the full title with all words of the title equally prominent and
|
||||
visible. You may add other material on the covers in addition.
|
||||
Copying with changes limited to the covers, as long as they preserve
|
||||
the title of the Document and satisfy these conditions, can be treated
|
||||
as verbatim copying in other respects.
|
||||
|
||||
If the required texts for either cover are too voluminous to fit
|
||||
legibly, you should put the first ones listed (as many as fit
|
||||
reasonably) on the actual cover, and continue the rest onto adjacent
|
||||
pages.
|
||||
|
||||
If you publish or distribute Opaque copies of the Document numbering
|
||||
more than 100, you must either include a machine-readable Transparent
|
||||
copy along with each Opaque copy, or state in or with each Opaque copy
|
||||
a computer-network location from which the general network-using
|
||||
public has access to download using public-standard network protocols
|
||||
a complete Transparent copy of the Document, free of added material.
|
||||
If you use the latter option, you must take reasonably prudent steps,
|
||||
when you begin distribution of Opaque copies in quantity, to ensure
|
||||
that this Transparent copy will remain thus accessible at the stated
|
||||
location until at least one year after the last time you distribute an
|
||||
Opaque copy (directly or through your agents or retailers) of that
|
||||
edition to the public.
|
||||
|
||||
It is requested, but not required, that you contact the authors of the
|
||||
Document well before redistributing any large number of copies, to
|
||||
give them a chance to provide you with an updated version of the
|
||||
Document.
|
||||
|
||||
|
||||
4. MODIFICATIONS
|
||||
|
||||
You may copy and distribute a Modified Version of the Document under
|
||||
the conditions of sections 2 and 3 above, provided that you release
|
||||
the Modified Version under precisely this License, with the Modified
|
||||
Version filling the role of the Document, thus licensing distribution
|
||||
and modification of the Modified Version to whoever possesses a copy
|
||||
of it. In addition, you must do these things in the Modified Version:
|
||||
|
||||
A. Use in the Title Page (and on the covers, if any) a title distinct
|
||||
from that of the Document, and from those of previous versions
|
||||
(which should, if there were any, be listed in the History section
|
||||
of the Document). You may use the same title as a previous version
|
||||
if the original publisher of that version gives permission.
|
||||
B. List on the Title Page, as authors, one or more persons or entities
|
||||
responsible for authorship of the modifications in the Modified
|
||||
Version, together with at least five of the principal authors of the
|
||||
Document (all of its principal authors, if it has fewer than five),
|
||||
unless they release you from this requirement.
|
||||
C. State on the Title page the name of the publisher of the
|
||||
Modified Version, as the publisher.
|
||||
D. Preserve all the copyright notices of the Document.
|
||||
E. Add an appropriate copyright notice for your modifications
|
||||
adjacent to the other copyright notices.
|
||||
F. Include, immediately after the copyright notices, a license notice
|
||||
giving the public permission to use the Modified Version under the
|
||||
terms of this License, in the form shown in the Addendum below.
|
||||
G. Preserve in that license notice the full lists of Invariant Sections
|
||||
and required Cover Texts given in the Document's license notice.
|
||||
H. Include an unaltered copy of this License.
|
||||
I. Preserve the section Entitled "History", Preserve its Title, and add
|
||||
to it an item stating at least the title, year, new authors, and
|
||||
publisher of the Modified Version as given on the Title Page. If
|
||||
there is no section Entitled "History" in the Document, create one
|
||||
stating the title, year, authors, and publisher of the Document as
|
||||
given on its Title Page, then add an item describing the Modified
|
||||
Version as stated in the previous sentence.
|
||||
J. Preserve the network location, if any, given in the Document for
|
||||
public access to a Transparent copy of the Document, and likewise
|
||||
the network locations given in the Document for previous versions
|
||||
it was based on. These may be placed in the "History" section.
|
||||
You may omit a network location for a work that was published at
|
||||
least four years before the Document itself, or if the original
|
||||
publisher of the version it refers to gives permission.
|
||||
K. For any section Entitled "Acknowledgements" or "Dedications",
|
||||
Preserve the Title of the section, and preserve in the section all
|
||||
the substance and tone of each of the contributor acknowledgements
|
||||
and/or dedications given therein.
|
||||
L. Preserve all the Invariant Sections of the Document,
|
||||
unaltered in their text and in their titles. Section numbers
|
||||
or the equivalent are not considered part of the section titles.
|
||||
M. Delete any section Entitled "Endorsements". Such a section
|
||||
may not be included in the Modified Version.
|
||||
N. Do not retitle any existing section to be Entitled "Endorsements"
|
||||
or to conflict in title with any Invariant Section.
|
||||
O. Preserve any Warranty Disclaimers.
|
||||
|
||||
If the Modified Version includes new front-matter sections or
|
||||
appendices that qualify as Secondary Sections and contain no material
|
||||
copied from the Document, you may at your option designate some or all
|
||||
of these sections as invariant. To do this, add their titles to the
|
||||
list of Invariant Sections in the Modified Version's license notice.
|
||||
These titles must be distinct from any other section titles.
|
||||
|
||||
You may add a section Entitled "Endorsements", provided it contains
|
||||
nothing but endorsements of your Modified Version by various
|
||||
parties--for example, statements of peer review or that the text has
|
||||
been approved by an organization as the authoritative definition of a
|
||||
standard.
|
||||
|
||||
You may add a passage of up to five words as a Front-Cover Text, and a
|
||||
passage of up to 25 words as a Back-Cover Text, to the end of the list
|
||||
of Cover Texts in the Modified Version. Only one passage of
|
||||
Front-Cover Text and one of Back-Cover Text may be added by (or
|
||||
through arrangements made by) any one entity. If the Document already
|
||||
includes a cover text for the same cover, previously added by you or
|
||||
by arrangement made by the same entity you are acting on behalf of,
|
||||
you may not add another; but you may replace the old one, on explicit
|
||||
permission from the previous publisher that added the old one.
|
||||
|
||||
The author(s) and publisher(s) of the Document do not by this License
|
||||
give permission to use their names for publicity for or to assert or
|
||||
imply endorsement of any Modified Version.
|
||||
|
||||
|
||||
5. COMBINING DOCUMENTS
|
||||
|
||||
You may combine the Document with other documents released under this
|
||||
License, under the terms defined in section 4 above for modified
|
||||
versions, provided that you include in the combination all of the
|
||||
Invariant Sections of all of the original documents, unmodified, and
|
||||
list them all as Invariant Sections of your combined work in its
|
||||
license notice, and that you preserve all their Warranty Disclaimers.
|
||||
|
||||
The combined work need only contain one copy of this License, and
|
||||
multiple identical Invariant Sections may be replaced with a single
|
||||
copy. If there are multiple Invariant Sections with the same name but
|
||||
different contents, make the title of each such section unique by
|
||||
adding at the end of it, in parentheses, the name of the original
|
||||
author or publisher of that section if known, or else a unique number.
|
||||
Make the same adjustment to the section titles in the list of
|
||||
Invariant Sections in the license notice of the combined work.
|
||||
|
||||
In the combination, you must combine any sections Entitled "History"
|
||||
in the various original documents, forming one section Entitled
|
||||
"History"; likewise combine any sections Entitled "Acknowledgements",
|
||||
and any sections Entitled "Dedications". You must delete all sections
|
||||
Entitled "Endorsements".
|
||||
|
||||
|
||||
6. COLLECTIONS OF DOCUMENTS
|
||||
|
||||
You may make a collection consisting of the Document and other
|
||||
documents released under this License, and replace the individual
|
||||
copies of this License in the various documents with a single copy
|
||||
that is included in the collection, provided that you follow the rules
|
||||
of this License for verbatim copying of each of the documents in all
|
||||
other respects.
|
||||
|
||||
You may extract a single document from such a collection, and
|
||||
distribute it individually under this License, provided you insert a
|
||||
copy of this License into the extracted document, and follow this
|
||||
License in all other respects regarding verbatim copying of that
|
||||
document.
|
||||
|
||||
|
||||
7. AGGREGATION WITH INDEPENDENT WORKS
|
||||
|
||||
A compilation of the Document or its derivatives with other separate
|
||||
and independent documents or works, in or on a volume of a storage or
|
||||
distribution medium, is called an "aggregate" if the copyright
|
||||
resulting from the compilation is not used to limit the legal rights
|
||||
of the compilation's users beyond what the individual works permit.
|
||||
When the Document is included in an aggregate, this License does not
|
||||
apply to the other works in the aggregate which are not themselves
|
||||
derivative works of the Document.
|
||||
|
||||
If the Cover Text requirement of section 3 is applicable to these
|
||||
copies of the Document, then if the Document is less than one half of
|
||||
the entire aggregate, the Document's Cover Texts may be placed on
|
||||
covers that bracket the Document within the aggregate, or the
|
||||
electronic equivalent of covers if the Document is in electronic form.
|
||||
Otherwise they must appear on printed covers that bracket the whole
|
||||
aggregate.
|
||||
|
||||
|
||||
8. TRANSLATION
|
||||
|
||||
Translation is considered a kind of modification, so you may
|
||||
distribute translations of the Document under the terms of section 4.
|
||||
Replacing Invariant Sections with translations requires special
|
||||
permission from their copyright holders, but you may include
|
||||
translations of some or all Invariant Sections in addition to the
|
||||
original versions of these Invariant Sections. You may include a
|
||||
translation of this License, and all the license notices in the
|
||||
Document, and any Warranty Disclaimers, provided that you also include
|
||||
the original English version of this License and the original versions
|
||||
of those notices and disclaimers. In case of a disagreement between
|
||||
the translation and the original version of this License or a notice
|
||||
or disclaimer, the original version will prevail.
|
||||
|
||||
If a section in the Document is Entitled "Acknowledgements",
|
||||
"Dedications", or "History", the requirement (section 4) to Preserve
|
||||
its Title (section 1) will typically require changing the actual
|
||||
title.
|
||||
|
||||
|
||||
9. TERMINATION
|
||||
|
||||
You may not copy, modify, sublicense, or distribute the Document
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense, or distribute it is void, and
|
||||
will automatically terminate your rights under this License.
|
||||
|
||||
However, if you cease all violation of this License, then your license
|
||||
from a particular copyright holder is reinstated (a) provisionally,
|
||||
unless and until the copyright holder explicitly and finally
|
||||
terminates your license, and (b) permanently, if the copyright holder
|
||||
fails to notify you of the violation by some reasonable means prior to
|
||||
60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, receipt of a copy of some or all of the same material does
|
||||
not give you any rights to use it.
|
||||
|
||||
|
||||
10. FUTURE REVISIONS OF THIS LICENSE
|
||||
|
||||
The Free Software Foundation may publish new, revised versions of the
|
||||
GNU Free Documentation License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in
|
||||
detail to address new problems or concerns. See
|
||||
http://www.gnu.org/copyleft/.
|
||||
|
||||
Each version of the License is given a distinguishing version number.
|
||||
If the Document specifies that a particular numbered version of this
|
||||
License "or any later version" applies to it, you have the option of
|
||||
following the terms and conditions either of that specified version or
|
||||
of any later version that has been published (not as a draft) by the
|
||||
Free Software Foundation. If the Document does not specify a version
|
||||
number of this License, you may choose any version ever published (not
|
||||
as a draft) by the Free Software Foundation. If the Document
|
||||
specifies that a proxy can decide which future versions of this
|
||||
License can be used, that proxy's public statement of acceptance of a
|
||||
version permanently authorizes you to choose that version for the
|
||||
Document.
|
||||
|
||||
11. RELICENSING
|
||||
|
||||
"Massive Multiauthor Collaboration Site" (or "MMC Site") means any
|
||||
World Wide Web server that publishes copyrightable works and also
|
||||
provides prominent facilities for anybody to edit those works. A
|
||||
public wiki that anybody can edit is an example of such a server. A
|
||||
"Massive Multiauthor Collaboration" (or "MMC") contained in the site
|
||||
means any set of copyrightable works thus published on the MMC site.
|
||||
|
||||
"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
|
||||
license published by Creative Commons Corporation, a not-for-profit
|
||||
corporation with a principal place of business in San Francisco,
|
||||
California, as well as future copyleft versions of that license
|
||||
published by that same organization.
|
||||
|
||||
"Incorporate" means to publish or republish a Document, in whole or in
|
||||
part, as part of another Document.
|
||||
|
||||
An MMC is "eligible for relicensing" if it is licensed under this
|
||||
License, and if all works that were first published under this License
|
||||
somewhere other than this MMC, and subsequently incorporated in whole or
|
||||
in part into the MMC, (1) had no cover texts or invariant sections, and
|
||||
(2) were thus incorporated prior to November 1, 2008.
|
||||
|
||||
The operator of an MMC Site may republish an MMC contained in the site
|
||||
under CC-BY-SA on the same site at any time before August 1, 2009,
|
||||
provided the MMC is eligible for relicensing.
|
||||
|
||||
|
||||
ADDENDUM: How to use this License for your documents
|
||||
|
||||
To use this License in a document you have written, include a copy of
|
||||
the License in the document and put the following copyright and
|
||||
license notices just after the title page:
|
||||
|
||||
Copyright (c) YEAR YOUR NAME.
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.3
|
||||
or any later version published by the Free Software Foundation;
|
||||
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
|
||||
A copy of the license is included in the section entitled "GNU
|
||||
Free Documentation License".
|
||||
|
||||
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
|
||||
replace the "with...Texts." line with this:
|
||||
|
||||
with the Invariant Sections being LIST THEIR TITLES, with the
|
||||
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
|
||||
|
||||
If you have Invariant Sections without Cover Texts, or some other
|
||||
combination of the three, merge those two alternatives to suit the
|
||||
situation.
|
||||
|
||||
If your document contains nontrivial examples of program code, we
|
||||
recommend releasing these examples in parallel under your choice of
|
||||
free software license, such as the GNU General Public License,
|
||||
to permit their use in free software.
|
|
@ -0,0 +1,339 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
|
@ -0,0 +1,674 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
@ -0,0 +1,704 @@
|
|||
This is the GNU General Public License version 3, annotated with The
|
||||
Qt Company GPL Exception 1.0:
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
The Qt Company GPL Exception 1.0
|
||||
|
||||
Exception 1:
|
||||
|
||||
As a special exception you may create a larger work which contains the
|
||||
output of this application and distribute that work under terms of your
|
||||
choice, so long as the work is not otherwise derived from or based on
|
||||
this application and so long as the work does not in itself generate
|
||||
output that contains the output from this application in its original
|
||||
or modified form.
|
||||
|
||||
Exception 2:
|
||||
|
||||
As a special exception, you have permission to combine this application
|
||||
with Plugins licensed under the terms of your choice, to produce an
|
||||
executable, and to copy and distribute the resulting executable under
|
||||
the terms of your choice. However, the executable must be accompanied
|
||||
by a prominent notice offering all users of the executable the entire
|
||||
source code to this application, excluding the source code of the
|
||||
independent modules, but including any changes you have made to this
|
||||
application, under the terms of this license.
|
||||
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
@ -0,0 +1,165 @@
|
|||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates
|
||||
the terms and conditions of version 3 of the GNU General Public
|
||||
License, supplemented by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||
General Public License.
|
||||
|
||||
"The Library" refers to a covered work governed by this License,
|
||||
other than an Application or a Combined Work as defined below.
|
||||
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the
|
||||
Corresponding Source for the Combined Work, excluding any source code
|
||||
for portions of the Combined Work that, considered in isolation, are
|
||||
based on the Application, and not on the Linked Version.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to
|
||||
ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from
|
||||
a header file that is part of the Library. You may convey such object
|
||||
code under terms of your choice, provided that, if the incorporated
|
||||
material is not limited to numerical parameters, data structure
|
||||
layouts and accessors, or small macros, inline functions and templates
|
||||
(ten or fewer lines in length), you do both of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the
|
||||
Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that,
|
||||
taken together, effectively do not restrict modification of the
|
||||
portions of the Library contained in the Combined Work and reverse
|
||||
engineering for debugging such modifications, if you also do each of
|
||||
the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during
|
||||
execution, include the copyright notice for the Library among
|
||||
these notices, as well as a reference directing the user to the
|
||||
copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this
|
||||
License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (a) uses at run time
|
||||
a copy of the Library already present on the user's computer
|
||||
system, and (b) will operate properly with a modified version
|
||||
of the Library that is interface-compatible with the Linked
|
||||
Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise
|
||||
be required to provide such information under section 6 of the
|
||||
GNU GPL, and only to the extent that such information is
|
||||
necessary to install and execute a modified version of the
|
||||
Combined Work produced by recombining or relinking the
|
||||
Application with a modified version of the Linked Version. (If
|
||||
you use option 4d0, the Installation Information must accompany
|
||||
the Minimal Corresponding Source and Corresponding Application
|
||||
Code. If you use option 4d1, you must provide the Installation
|
||||
Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the
|
||||
Library side by side in a single library together with other library
|
||||
facilities that are not Applications and are not covered by this
|
||||
License, and convey such a combined library under terms of your
|
||||
choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based
|
||||
on the Library, uncombined with any other library facilities,
|
||||
conveyed under the terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it
|
||||
is a work based on the Library, and explaining where to find the
|
||||
accompanying uncombined form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Lesser General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Library as you received it specifies that a certain numbered version
|
||||
of the GNU Lesser General Public License "or any later version"
|
||||
applies to it, you have the option of following the terms and
|
||||
conditions either of that published version or of any later version
|
||||
published by the Free Software Foundation. If the Library as you
|
||||
received it does not specify a version number of the GNU Lesser
|
||||
General Public License, you may choose any version of the GNU Lesser
|
||||
General Public License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide
|
||||
whether future versions of the GNU Lesser General Public License shall
|
||||
apply, that proxy's public statement of acceptance of any version is
|
||||
permanent authorization for you to choose that version for the
|
||||
Library.
|
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"module": "tools",
|
||||
|
||||
"subconfigs": [
|
||||
"src/qdoc"
|
||||
],
|
||||
"features": {
|
||||
"assistant": {
|
||||
"label": "Qt Assistant",
|
||||
"purpose": "Qt Assistant is a tool for viewing on-line documentation in Qt help file format.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"designer": {
|
||||
"label": "Qt Designer",
|
||||
"purpose": "Qt Designer is the Qt tool for designing and building graphical user interfaces (GUIs) with Qt Widgets. You can compose and customize your windows or dialogs in a what-you-see-is-what-you-get (WYSIWYG) manner, and test them using different styles and resolutions.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"distancefieldgenerator": {
|
||||
"label": "Qt Distance Field Generator",
|
||||
"purpose": "The Qt Distance Field Generator tool can be used to pregenerate the font cache in order to optimize startup performance.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"kmap2qmap": {
|
||||
"label": "kmap2qmap",
|
||||
"purpose": "kmap2qmap is a tool to generate keymaps for use on Embedded Linux. The source files have to be in standard Linux kmap format that is e.g. understood by the kernel's loadkeys command.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"linguist": {
|
||||
"label": "Qt Linguist",
|
||||
"purpose": "Qt Linguist can be used by translator to translate text in Qt applications.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"macdeployqt": {
|
||||
"label": "Mac Deployment Tool",
|
||||
"purpose": "The Mac deployment tool automates the process of creating a deployable application bundle that contains the Qt libraries as private frameworks.",
|
||||
"condition": "config.darwin",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"makeqpf": {
|
||||
"label": "makeqpf",
|
||||
"purpose": "makeqpf is a tool to generate pre-rendered fonts in QPF2 format for use on Embedded Linux.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"pixeltool": {
|
||||
"label": "pixeltool",
|
||||
"purpose": "The Qt Pixel Zooming Tool is a graphical application that magnifies the screen around the mouse pointer so you can look more closely at individual pixels.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qdbus": {
|
||||
"label": "qdbus",
|
||||
"purpose": "qdbus is a communication interface for Qt-based applications.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qev": {
|
||||
"label": "qev",
|
||||
"purpose": "qev allows introspection of incoming events for a QWidget, similar to the X11 xev tool.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qtattributionsscanner": {
|
||||
"label": "Qt Attributions Scanner",
|
||||
"purpose": "Qt Attributions Scanner generates attribution documents for third-party code in Qt.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qtdiag": {
|
||||
"label": "qtdiag",
|
||||
"purpose": "qtdiag outputs information about the Qt installation it was built with.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qtpaths": {
|
||||
"label": "qtpaths",
|
||||
"purpose": "qtpaths is a command line client to QStandardPaths.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qtplugininfo": {
|
||||
"label": "qtplugininfo",
|
||||
"purpose": "qtplugininfo dumps metadata about Qt plugins in JSON format.",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"windeployqt": {
|
||||
"label": "Windows deployment tool",
|
||||
"purpose": "The Windows deployment tool is designed to automate the process of creating a deployable folder containing the Qt-related dependencies (libraries, QML imports, plugins, and translations) required to run the application from that folder. It creates a sandbox for Universal Windows Platform (UWP) or an installation tree for Windows desktop applications, which can be easily bundled into an installation package.",
|
||||
"condition": "config.win32 || config.winrt",
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"winrtrunner": {
|
||||
"label": "WinRT Runner Tool",
|
||||
"purpose": "The WinRT Runner Tool installs, runs, and collects test results for packages made with Qt.",
|
||||
"condition": "config.winrt",
|
||||
"output": [ "privateFeature" ]
|
||||
}
|
||||
},
|
||||
"summary": [
|
||||
{
|
||||
"section": "Qt Tools",
|
||||
"entries": [
|
||||
"assistant",
|
||||
"designer",
|
||||
"distancefieldgenerator",
|
||||
"kmap2qmap",
|
||||
"linguist",
|
||||
"macdeployqt",
|
||||
"makeqpf",
|
||||
"pixeltool",
|
||||
"qdbus",
|
||||
"qev",
|
||||
"qtattributionsscanner",
|
||||
"qtdiag",
|
||||
"qtpaths",
|
||||
"qtplugininfo",
|
||||
"windeployqt",
|
||||
"winrtrunner"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
Qt 5.0.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.0.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://qt-project.org/doc/qt-5.0/
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
http://bugreports.qt-project.org/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
|
||||
****************************************************************************
|
||||
* General *
|
||||
****************************************************************************
|
||||
|
||||
General Improvements
|
||||
--------------------
|
||||
|
||||
- [QTBUG-28633] Fix bogus include paths in some pkg-config files
|
||||
- [QTBUG-28689] Fix help URLs in tools.
|
||||
- [QTBUG-28579] Doc: Correcting qhp links to the Linguist and Assistant examples
|
||||
|
||||
Third party components
|
||||
----------------------
|
||||
|
||||
****************************************************************************
|
||||
* Platform Specific Changes *
|
||||
****************************************************************************
|
||||
|
||||
|
||||
****************************************************************************
|
||||
* Compiler Specific Changes *
|
||||
****************************************************************************
|
||||
|
||||
|
||||
****************************************************************************
|
||||
* Tools *
|
||||
****************************************************************************
|
||||
|
||||
Qt Assistant
|
||||
------------
|
||||
|
||||
- Fix warnings found by the headersclean test
|
||||
- Move functions from an anonymous namespace in a header
|
||||
|
||||
Qt DBus Viewer
|
||||
--------------
|
||||
|
||||
- Try harder in matching the method signature
|
||||
|
||||
Qt Designer
|
||||
-----------
|
||||
|
||||
- Fix warning about hidden overloaded virtual, found by Clang
|
||||
|
||||
Qt Help
|
||||
-------
|
||||
|
||||
Qt UI Tools
|
||||
-----------
|
||||
|
||||
****************************************************************************
|
||||
* Plugins *
|
||||
****************************************************************************
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
Qt 5.0.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.0.0 and 5.0.1.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://qt-project.org/doc/qt-5.0/
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
http://bugreports.qt-project.org/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
|
||||
****************************************************************************
|
||||
* General *
|
||||
****************************************************************************
|
||||
|
||||
General Improvements
|
||||
--------------------
|
||||
|
||||
- This release contains only minor code improvements.
|
|
@ -0,0 +1,48 @@
|
|||
Qt 5.1 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.0.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
http://qt-project.org/doc/qt-5.1
|
||||
|
||||
The Qt version 5.1 series is binary compatible with the 5.0.x series.
|
||||
Applications compiled for 5.0 will continue to run with 5.1.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
http://bugreports.qt-project.org/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* General *
|
||||
****************************************************************************
|
||||
|
||||
Qt Assistant
|
||||
------------
|
||||
|
||||
- [QTBUG-30110] List supported file formats in search indexing.
|
||||
|
||||
Qt Designer
|
||||
-----------
|
||||
|
||||
- [QTBUG-9502] Rich text editor: Add support for Right-to-Left blocks.
|
||||
- [QTBUG-25872] Fix moving widgets in horizontal layouts in RTL mode.
|
||||
- [QTBUG-26394] Use multiline validation for dynamic string properties.
|
||||
- [QTBUG-29234] ActiveQt plugin: Load control string correctly.
|
||||
- [QTBUG-29234] ActiveQt plugin: Fix setting a control by task menu.
|
||||
- [QTBUG-29904] Aero-Style-QWizard: Remove special handling in Qt Designer.
|
||||
|
||||
Qt Linguist
|
||||
-----------
|
||||
|
||||
- make linguist tools suitable for cross-building
|
||||
- purge TS 1.1 support from linguist tools
|
||||
- purge CODECFORTR & -codecfortr support from linguist tools
|
||||
- [QTBUG-27238] Make linguist's source viewer read all files as UTF-8.
|
||||
|
||||
- lupdate
|
||||
|
||||
* purge ui3 support from lupdate
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
Qt 5.1.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.1.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://qt-project.org/doc/qt-5.1/
|
||||
|
||||
The Qt version 5.1 series is binary compatible with the 5.0.x series.
|
||||
Applications compiled for 5.0 will continue to run with 5.1.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
http://bugreports.qt-project.org/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
|
||||
****************************************************************************
|
||||
* General *
|
||||
****************************************************************************
|
||||
|
||||
- This release contains only minor code improvements.
|
|
@ -0,0 +1,27 @@
|
|||
Qt 5.10 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.9.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.10 series is binary compatible with the 5.9.x series.
|
||||
Applications compiled for 5.9 will continue to run with 5.10.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.10.0 Changes *
|
||||
****************************************************************************
|
||||
|
||||
- This release contains only minor code improvements.
|
||||
|
||||
UNSPECIFIED
|
||||
-----------
|
||||
|
||||
- Added option "-no-untranslated" to lconvert
|
|
@ -0,0 +1,35 @@
|
|||
Qt 5.10.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.10.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.10 series is binary compatible with the 5.9.x series.
|
||||
Applications compiled for 5.9 will continue to run with 5.10.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
This release contains all fixes included in the Qt 5.9.4 release.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.10.1 Changes *
|
||||
****************************************************************************
|
||||
|
||||
windeployqt
|
||||
------------
|
||||
|
||||
- The Qt3DAnimation dll is now deployed when the module is used.
|
||||
|
||||
macdeployqt
|
||||
------------
|
||||
|
||||
- QtLocation and Qt Positioning plugins are now deployed along the
|
||||
frameworks.
|
|
@ -0,0 +1,65 @@
|
|||
Qt 5.11 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.10.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.11 series is binary compatible with the 5.10.x series.
|
||||
Applications compiled for 5.10 will continue to run with 5.11.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.11.0 Changes *
|
||||
****************************************************************************
|
||||
|
||||
Licensing
|
||||
---------
|
||||
|
||||
- The Qt UI Tools library got relicensed to commercial + BSD.
|
||||
|
||||
Qt Designer
|
||||
-----------
|
||||
|
||||
- [QTBUG-34610] Qt Designer now supports id-based translations.
|
||||
|
||||
Qt Linguist
|
||||
-----------
|
||||
|
||||
- [QTBUG-35652] Fixed special whitespace characters getting lost.
|
||||
- [QTBUG-43519] Language labels are now country-qualified when necessary.
|
||||
- [QTBUG-56376] The language selection dialog now displays each country
|
||||
and language in both english and the language itself.
|
||||
- Language labels are now displayed in the target language itself.
|
||||
- The phrase view now shows the source context of guesses.
|
||||
- The maximal number of guesses in the phrase view can be changed now.
|
||||
- The message count fields gained tooltips that show the number of
|
||||
remaining unfinished messages.
|
||||
- It is now possible to mark a message as done without jumping to the
|
||||
next unfinished one.
|
||||
- The search dialog now supports regular expressions.
|
||||
|
||||
lupdate
|
||||
-------
|
||||
|
||||
- [QTBUG-67278] -tr-function-alias may now specify QML member expressions.
|
||||
|
||||
lrelease
|
||||
--------
|
||||
|
||||
- [QTBUG-64317][CMake] Fixed qt5_add_translation() mishandling of filenames
|
||||
with multiple dots.
|
||||
- [QTBUG-44323][CMake] Added OPTIONS parameter to qt5_add_translation().
|
||||
|
||||
macdeployqt
|
||||
-----------
|
||||
|
||||
- [QTBUG-65844] Added support for selecting the file system type to use
|
||||
when building a .dmg file. Defaults to HFS+ to support a wider range
|
||||
of macOS versions.
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.11.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.11.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.11 series is binary compatible with the 5.10.x series.
|
||||
Applications compiled for 5.10 will continue to run with 5.11.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.11.1 Changes *
|
||||
****************************************************************************
|
||||
|
||||
- This release contains only minor code improvements.
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.11.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.11.0 through 5.11.1.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.11 series is binary compatible with the 5.10.x series.
|
||||
Applications compiled for 5.10 will continue to run with 5.11.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.11.2 Changes *
|
||||
****************************************************************************
|
||||
|
||||
- This release contains only minor code improvements.
|
|
@ -0,0 +1,32 @@
|
|||
Qt 5.11.3 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.11.0 through 5.11.2.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.11 series is binary compatible with the 5.10.x series.
|
||||
Applications compiled for 5.10 will continue to run with 5.11.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* macdeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-68823] Now deploys plugins when Qt is configured with
|
||||
-no-framework
|
||||
|
||||
****************************************************************************
|
||||
* Assistant *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-71399] Fix a crash when removing multiple documentation files
|
||||
inside preferences dialog
|
|
@ -0,0 +1,60 @@
|
|||
Qt 5.12 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.11.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* macdeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-68823] Now deploys plugins when Qt is configured with
|
||||
-no-framework
|
||||
|
||||
****************************************************************************
|
||||
* winrtrunner *
|
||||
****************************************************************************
|
||||
|
||||
- Loopback exemption for UWP applications:
|
||||
* Added ability to enable loopback exemption for clients. This basically
|
||||
enables UWP applications to connect to a local server for debugging
|
||||
purposes.
|
||||
* Added ability to enable loopback exemption for servers. This basically
|
||||
enables UWP applications to react on socket connections that are made
|
||||
from the same machine for debugging purposes.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Help *
|
||||
****************************************************************************
|
||||
|
||||
- [QTCREATORBUG-18242] Fixed the issue with too many open files, when
|
||||
many documentation files were registered.
|
||||
- [QTBUG-59363] Fixed jumping to the proper documentation version
|
||||
when activating the link that refers to another qch file.
|
||||
- [QTBUG-21357] Items are now sorted alphabetically in Contents view.
|
||||
- Removed qhelpconverter tool.
|
||||
- Merged qcollectiongenerator tool into the qhelpgenerator tool.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Linguist *
|
||||
****************************************************************************
|
||||
|
||||
- Added "Go to" action to context menu in "Phrases and guesses" pane.
|
||||
|
||||
lupdate
|
||||
-------
|
||||
|
||||
- [QTBUG-63364] Add support for C++17 nested namespaces.
|
||||
- [QTBUG-62478] Fixed premature termination on qmake .prf execution errors.
|
||||
- Updated qmake project handling to newer functionality in qmake.
|
|
@ -0,0 +1,59 @@
|
|||
Qt 5.12.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.12.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-69484] Fixed link resolution for types under namespaces.
|
||||
- [QTBUG-70801] Added linking of buildversion field to
|
||||
navigation.landingpage.
|
||||
- [QTBUG-72357] Fixed regression in including inherited members in
|
||||
all-members list.
|
||||
- [QTBUG-72723] Don't include overridden functions in all-members list
|
||||
anymore.
|
||||
- [QTBUG-71792] Section headers in C++ reference pages for sections
|
||||
without content are now skipped.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Assistant *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-72174] Fixed an issue with opening a read-only qhc file.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Help *
|
||||
****************************************************************************
|
||||
|
||||
- Re-added the qcollectiongenerator tool, which was removed in Qt 5.12.0
|
||||
release. It redirects to the qhelpgenerator tool now.
|
||||
|
||||
****************************************************************************
|
||||
* windeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- Added deployment of Qt Virtual Keyboard plugins.
|
||||
- Added support for packaging arm64 desktop apps.
|
||||
|
||||
****************************************************************************
|
||||
* winrtrunner *
|
||||
****************************************************************************
|
||||
|
||||
- winrtrunner now forwards the QT_LOGGING_RULES environment variable to
|
||||
the actual application.
|
|
@ -0,0 +1,26 @@
|
|||
Qt 5.12.10 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.12.9.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5.12/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Important Behavior Changes *
|
||||
****************************************************************************
|
||||
|
||||
****************************************************************************
|
||||
* Library *
|
||||
****************************************************************************
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.12.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.12.0 through 5.12.1.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* lupdate *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-42736] Added support for parsing C++11 raw string literals
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.12.3 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.12.0 through 5.12.2.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* makeqpf *
|
||||
****************************************************************************
|
||||
|
||||
- Fix assert when rendering font using debug build of Qt
|
|
@ -0,0 +1,33 @@
|
|||
Qt 5.12.4 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.12.0 through 5.12.3.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* lupdate *
|
||||
****************************************************************************
|
||||
|
||||
- lupdate will now generate an error if it is asked to update a .ts file
|
||||
with translations, but without a target language. This is to ensure that
|
||||
plural translations are not destroyed.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-73058] qdoc now uses #! as a snippet marker in .cmake,
|
||||
CMakeLists.txt files.
|
|
@ -0,0 +1,37 @@
|
|||
Qt 5.12.5 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.12.0 through 5.12.4.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.12 series is binary compatible with the 5.11.x series.
|
||||
Applications compiled for 5.11 will continue to run with 5.12.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* distancefieldgenerator *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-76188] Fixed bug where the tool would fail for valid fonts with
|
||||
the message "end of cmap table reached when parsing subtable".
|
||||
- [QTBUG-76528] Fixed a bug where the generated textures might exceed the
|
||||
maximum height.
|
||||
- [QTBUG-76188][QTBUG-76528] Fixed possible crash when generating large
|
||||
number of glyphs with a small texture size.
|
||||
- [QTBUG-77501] Fixed broken text rendering when generating large glyph
|
||||
sets.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Help *
|
||||
****************************************************************************
|
||||
|
||||
- [QDS-779] Fixed possible application freeze when using QtHelp module.
|
|
@ -0,0 +1,37 @@
|
|||
Qt 5.13 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.12.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.13 series is binary compatible with the 5.12.x series.
|
||||
Applications compiled for 5.12 will continue to run with 5.13.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Designer *
|
||||
****************************************************************************
|
||||
|
||||
- Added a filter line edit to the object inspector.
|
||||
|
||||
****************************************************************************
|
||||
* lupdate *
|
||||
****************************************************************************
|
||||
|
||||
- lupdate will now generate an error if it is asked to update a .ts file
|
||||
with translations, but without a target language. This is to ensure that
|
||||
plural translations are not destroyed.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-73058] qdoc now uses #! as a snippet marker in .cmake,
|
||||
CMakeLists.txt files.
|
|
@ -0,0 +1,29 @@
|
|||
Qt 5.13.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.13.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.13 series is binary compatible with the 5.12.x series.
|
||||
Applications compiled for 5.12 will continue to run with 5.13.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* distancefieldgenerator *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-76188] Fixed bug where the tool would fail for valid fonts with
|
||||
the message "end of cmap table reached when parsing subtable".
|
||||
- [QTBUG-76528] Fixed a bug where the generated textures might exceed the
|
||||
maximum height.
|
||||
- [QTBUG-76188][QTBUG-76528] Fixed possible crash when generating large
|
||||
number of glyphs with a small texture size.
|
|
@ -0,0 +1,27 @@
|
|||
Qt 5.13.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.13.0 through 5.13.1.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.13 series is binary compatible with the 5.12.x series.
|
||||
Applications compiled for 5.12 will continue to run with 5.13.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Distance Field Generator *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-77499] Improved performance when selecting unicode ranges in
|
||||
large fonts.
|
||||
- [QTBUG-77501] Fixed broken text rendering when generating large glyph
|
||||
sets.
|
|
@ -0,0 +1,63 @@
|
|||
Qt 5.14 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.13.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.14 series is binary compatible with the 5.13.x series.
|
||||
Applications compiled for 5.13 will continue to run with 5.14.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* pixeltool *
|
||||
****************************************************************************
|
||||
|
||||
- 'c' now copies color under cursor, and shows it in the tool window title.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Designer *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-76375] A per-form setting for disabling generating calls to
|
||||
QObject::connectSlotsByName() has been added to support migrating forms
|
||||
to Qt 5 connection syntax.
|
||||
- The multiselection-modifier of the buddy/signal slot editors has been
|
||||
changed to Control instead of (historical) Shift.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Linguist *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-76265] lupdate now warns about qsTr() calls with template literals
|
||||
in .qml files.
|
||||
- [QTBUG-67908] Extra \n when reading translator comment from .po file now
|
||||
gets removed.
|
||||
- [QTBUG-76723] CMake: qt5_create_translation was creating a warning when
|
||||
translation files had the same prefix, separated by a dot. This is now
|
||||
fixed.
|
||||
|
||||
****************************************************************************
|
||||
* windeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-15234] windeployqt does not patch paths in Qt5Core anymore if Qt
|
||||
is configured with -feature-relocatable.
|
||||
- [QTBUG-75272] Added option -no-virtualkeyboard to disable deployment of
|
||||
Qt Virtual Keyboard.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- QDoc no longer attempts to run if 'project' configuration variable is
|
||||
not set; it now fails with an appropriate error message.
|
||||
|
||||
- [QTBUG-80051] 'depends' configuration now accepts '*' as a value,
|
||||
instructing QDoc to load all available index files as dependencies.
|
|
@ -0,0 +1,26 @@
|
|||
Qt 5.14.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.14.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.14 series is binary compatible with the 5.13.x series.
|
||||
Applications compiled for 5.13 will continue to run with 5.14.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* windeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-80806] windeployqt has been fixed to work with MinGW, again.
|
||||
- [QTBUG-78146] Fixed possible empty content and index widgets when using
|
||||
Qt Help module.
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.14.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.14.0 through 5.14.1.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.14 series is binary compatible with the 5.13.x series.
|
||||
Applications compiled for 5.13 will continue to run with 5.14.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-82252] Fixed "-F" option on macOS
|
|
@ -0,0 +1,58 @@
|
|||
Qt 5.15 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.14.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.15 series is binary compatible with the 5.14.x series.
|
||||
Applications compiled for 5.14 will continue to run with 5.15.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* QtHelp *
|
||||
****************************************************************************
|
||||
|
||||
- QHelpLink data structure has been introduced and used in newly added
|
||||
documentsForIdentifier() and documentsForKeyword() methods.
|
||||
- Deprecated linksForIdentifier() and linksForKeyword() methods
|
||||
in favor of the methods above.
|
||||
- The QHelpFilterSettings class has been added, describing all
|
||||
the available filter details.
|
||||
- The QHelpFilterSettingsWidget class has been added, serving
|
||||
as an editor for all available filters.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Designer *
|
||||
****************************************************************************
|
||||
|
||||
- The palette editor dialog has been overhauled.
|
||||
|
||||
****************************************************************************
|
||||
* macdeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- Added "-hardened-runtime" option to support app notarization.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- QDoc now supports DocBook as an output format.
|
||||
- Introduced configuration variable 'locationinfo' to drop host-specific
|
||||
paths from the generated output.
|
||||
- Added capability to display class/method template parameters in the
|
||||
generated documentation.
|
||||
- QDoc now generates correct documentation for enum classes.
|
||||
- QDoc is now aware of the namespace scope of an \fn command without
|
||||
requiring fully qualified paths.
|
||||
- Generate output for arguments passed to the \obsolete command.
|
||||
- [QTBUG-37355] QDoc now generates a note for the name of the
|
||||
corresponding handler in \qmlsignal documentation.
|
||||
- Added support for CMake-based example projects.
|
|
@ -0,0 +1,47 @@
|
|||
Qt 5.15.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.15.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.15 series is binary compatible with the 5.14.x series.
|
||||
Applications compiled for 5.14 will continue to run with 5.15.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt Designer *
|
||||
****************************************************************************
|
||||
|
||||
- New command line option --no-scaling allows to disable high-dpi
|
||||
scaling.
|
||||
|
||||
****************************************************************************
|
||||
* qdoc *
|
||||
****************************************************************************
|
||||
|
||||
- QDoc now correctly handles templated structs, unions, and type aliases.
|
||||
|
||||
****************************************************************************
|
||||
* windeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- New command line option --translations allows to pass a comma-separated
|
||||
list of languages (.qm files) to deploy.
|
||||
- Fixed an issue where the MSVC Runtime variant (Debug, Release) was
|
||||
detected incorrectly especially on WinRT.
|
||||
- Qt3D renderer plugins added in 5.15 are now automatically deployed.
|
||||
|
||||
****************************************************************************
|
||||
* macdeployqt *
|
||||
****************************************************************************
|
||||
|
||||
- .prl files are not copied anymore to the Resources folder.
|
|
@ -0,0 +1,72 @@
|
|||
Qt 5.15.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.15.1.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
https://doc.qt.io/qt-5.15/index.html
|
||||
|
||||
The Qt version 5.15 series is binary compatible with the 5.14.x series.
|
||||
Applications compiled for 5.14 will continue to run with 5.15.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Important Behavior Changes *
|
||||
****************************************************************************
|
||||
|
||||
****************************************************************************
|
||||
* Library *
|
||||
****************************************************************************
|
||||
|
||||
- [QTBUG-87802] qdoc: Fix broken links generated by \sincelist
|
||||
The combination of single-exec mode and outputting to subdirectories
|
||||
(offline mode) made \sincelist generate href's to new classes and
|
||||
functions that are missing the target subdirectory. This happened
|
||||
because we did not pass the relative node to the function(s) that
|
||||
generate that list - proper link resolution requires a check if the
|
||||
page containing the \sincelist command comes from a different doc
|
||||
module, and the relative node is used for that.
|
||||
The bug was: qdoc: \sincelist generates broken links in certain
|
||||
conditions
|
||||
- [QTBUG-84703] qdoc: DocBook generator: Correctly handle enum classes
|
||||
While commit 46f71fcc fixed handling of enum classes for the code
|
||||
parser and marker, the DocBook generator has some dedicated code that
|
||||
also needs to be amended.
|
||||
The bug was: qdoc: DocBook generator: scoped enums not handled
|
||||
correctly
|
||||
- [QTBUG-86988] qdoc: DocBook generator: Remove code for encoding special characters
|
||||
QXmlStreamWriter already handles this for us.
|
||||
The bug was: qdoc: DocBook output format: XML special characters are
|
||||
escaped twice
|
||||
- [QTBUG-86759] Revert "macdeployqt: Don't copy .prl files into the Resources folder"
|
||||
This was skipping other files from Resources/ as well, such as
|
||||
“en-GB.pak” and “QtWebEngineProcess”. This reverts commit
|
||||
aabba72f7965e06e2e6ed960d8cf8078249dac8c.
|
||||
The bug was: Missing QtWebEngineProcess Application in application
|
||||
frameworks
|
||||
- [QTBUG-84727] QtHelp: Fix documentsFor() when not using filter engine
|
||||
The bug was: QHelpIndexWidget does not emit documentActivated or
|
||||
documentsActivated
|
||||
- [QTBUG-86598] Assistant: fix build with QT_NO_CLIPBOARD
|
||||
The bug was: Assistant fails to compile if QT_NO_CLIPBOARD is defined
|
||||
- [QTBUG-86477] Fix static build of assistant
|
||||
The bug was: [REG 5.15.0->5.15.1] assistant not build when building
|
||||
whole Qt statically
|
||||
- [QTBUG-86293] winrtrunner: Remove Windows Phone support
|
||||
Windows Phone has not been supported for a while now. With newer
|
||||
Windows versions the functionality causes issues. On build 1909 the
|
||||
application hangs in CoUninitialize when called with --list-devices
|
||||
and in build 2004 the needed classes are not registered at all.
|
||||
The bug was: "winrtrunner --list-devices" hangs
|
||||
- [QTBUG-86188] qdoc: Fix incorrect loop when processing tagged \fn parameters
|
||||
This fixes ASSERT: "uint(i) < uint(size())" in file
|
||||
qt5/qtbase/src/corelib/text/qstring.h, line 1067
|
||||
The bug was: qdoc: Crash when using a tagged \fn command
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
Qt 5.2 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.1.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
http://qt-project.org/doc/qt-5.2
|
||||
|
||||
The Qt version 5.2 series is binary compatible with the 5.1.x series.
|
||||
Applications compiled for 5.1 will continue to run with 5.2.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
http://bugreports.qt-project.org/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* General *
|
||||
****************************************************************************
|
||||
|
||||
Qt Assistant
|
||||
------------
|
||||
|
||||
|
||||
Qt Designer
|
||||
-----------
|
||||
|
||||
|
||||
Qt Linguist
|
||||
-----------
|
||||
|
||||
- [QTBUG-32196] Fixed search skipping some messages entirely
|
||||
- [QTBUG-32218] Fixed search generally skipping plural forms
|
||||
- Fixed search skipping translator comments in multi-language mode
|
||||
- [QTBUG-14592] Fixed handling of country-less languages like Esperanto
|
||||
|
||||
- lupdate
|
||||
|
||||
* Made the functions lupdate looks for customizable
|
||||
* Made TR_EXCLUDE work for SUBDIRS and #include statements
|
||||
* [QTBUG-14056] Added collection of messages from INSTALL and DEPLOYMENT file lists
|
||||
* [QTBUG-24587] Fixed INCLUDEPATH resolution relative to current project
|
||||
* Fixed INCLUDEPATH erroneously contributing to VPATH for HEADERS
|
||||
* [QTBUG-12948] Fixed handling of PO files with obsolete fuzzy messages.
|
||||
This necessitated the introduction of a new message state, and thus an
|
||||
increment of the TS file format version to 2.1.
|
||||
* [QTBUG-27974] Fixed messages from included sources not being collected
|
||||
* [QTBUG-29131][QTBUG-32725] Fixed handling of incomplete and contradictory meta data
|
||||
* [QTBUG-18890] Fixed meta data changes being ignored
|
||||
* [QTBUG-11866] Fixed too aggressive collection of message meta data
|
||||
* [QTBUG-21876] Fixed numerous C++ parsing issues triggered by comments
|
||||
* [QTBUG-29998] Fixed parsing of tr() inside brackets (used as a hash key)
|
||||
* [QTBUG-9276] Fixed parsing of QT_TR_NOOP() in non-array static initializers
|
||||
* [QTBUG-4393] Fixed parsing of constructors with namespaced parent classes
|
||||
* Fixed long-standing performance regression relating to processing includes
|
||||
* Fixed decoding of qml files in non-UTF-8 locales
|
||||
* Made built-in qmake project parser more accurate and less noisy
|
||||
* Added -pro-debug option equivalent to qmake -d
|
|
@ -0,0 +1,42 @@
|
|||
Qt 5.2.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.2.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://qt-project.org/doc/qt-5.2
|
||||
|
||||
The Qt version 5.2 series is binary compatible with the 5.1.x series.
|
||||
Applications compiled for 5.1 will continue to run with 5.2.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
http://bugreports.qt-project.org/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Tools *
|
||||
****************************************************************************
|
||||
|
||||
androiddeployqt
|
||||
---------------
|
||||
|
||||
- [QTBUG-35401] Debug deployment is now much faster
|
||||
- [QTBUG-35129] androiddeployqt now updates deployed plugins and
|
||||
imports when the APK is updated on the device.
|
||||
|
||||
Qt Assistant
|
||||
------------
|
||||
|
||||
- mailto links now work again in Qt Assistant.
|
||||
|
||||
Qt Linguist
|
||||
-----------
|
||||
|
||||
- [QTBUG-35094] TS files are now always written with normalized numerus forms
|
||||
|
||||
- lupdate:
|
||||
* Tr and TR won't be misinterpreted as tr any more
|
|
@ -0,0 +1,27 @@
|
|||
Qt 5.6.3 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.6.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.6 series is binary compatible with the 5.5.x series.
|
||||
Applications compiled for 5.5 will continue to run with 5.6.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Library *
|
||||
****************************************************************************
|
||||
|
||||
lupdate
|
||||
-------
|
||||
|
||||
- [QTBUG-53206] Added qrc resource file support
|
|
@ -0,0 +1,32 @@
|
|||
Qt 5.7 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.6.x series. Also, there is a change in the licensing terms.
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.7 series is binary compatible with the 5.6.x series.
|
||||
Applications compiled for 5.6 will continue to run with 5.7.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Important License Changes *
|
||||
****************************************************************************
|
||||
|
||||
This module is no longer available under LGPLv2.1. The libraries are
|
||||
now available under the following licenses:
|
||||
* Commercial License
|
||||
* GNU General Public License v2.0 (LICENSE.GPL2) and later
|
||||
* GNU Lesser General Public License v3.0 (LICENSE.LGPL3)
|
||||
|
||||
The tools are now available under the following licenses:
|
||||
* Commercial License
|
||||
* GNU General Public License 3.0 (LICENSE.GPL3) with exceptions
|
||||
described in The Qt Company GPL Exception 1.0 (LICENSE.GPL3-EXCEPT)
|
|
@ -0,0 +1,41 @@
|
|||
Qt 5.8 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.7.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.8 series is binary compatible with the 5.7.x series.
|
||||
Applications compiled for 5.7 will continue to run with 5.8.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
androiddeployqt
|
||||
---------------
|
||||
|
||||
- [QTBUG-54147] Fixed problem with ANDROID_DEPLOYMENT_DEPENDENCIES where
|
||||
last entry in directory would be skipped.
|
||||
|
||||
lupdate
|
||||
-------
|
||||
|
||||
- [QTBUG-34092] Fixed parsing of #includes without a space before the
|
||||
file name
|
||||
- [QTBUG-53206] Added qrc resource file support
|
||||
|
||||
linguist
|
||||
--------
|
||||
|
||||
- [QTBUG-35144] Translation validation now recognizes the %Ln marker
|
||||
- [QTBUG-52020] Fixed widget alignment in length variants view
|
||||
- [QTBUG-56374] Fixed descriptions of file formats not being translated
|
||||
|
||||
macdeployqt
|
||||
-----------
|
||||
|
||||
- Added option '-libpath' to search libraries in a custom path.
|
|
@ -0,0 +1,34 @@
|
|||
Qt 5.9 introduces many new features and improvements as well as bugfixes
|
||||
over the 5.8.x series. For more details, refer to the online documentation
|
||||
included in this distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
Linguist
|
||||
--------
|
||||
|
||||
- [QTBUG-16368] Added capability of checking that the whitespace
|
||||
surrounding the translations' text matches that of the source strings.
|
||||
|
||||
Assistant
|
||||
---------
|
||||
|
||||
- Removed the clucene dependency, used FTS5 from sqlite instead.
|
||||
- Search results show now the doc excerpt instead of the explicit link.
|
||||
- Made search results more reliable (e.g.: charset, "UTF-8").
|
||||
|
||||
QtHelp
|
||||
-----------
|
||||
|
||||
- Moved the linksForKeyword() method from QHelpIndexModel into QHelpEngineCore.
|
|
@ -0,0 +1,63 @@
|
|||
Qt 5.9.1 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.9.0.
|
||||
|
||||
For more details, refer to the documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
General
|
||||
-------
|
||||
|
||||
- [QTBUG-60926] Fixed building of qdoc documentation with a static Qt.
|
||||
|
||||
androiddeployqt
|
||||
---------------
|
||||
|
||||
- [QTBUG-60918] Fixed deployment of QtQuick.Controls 1 and QtQuick.Dialogs.
|
||||
|
||||
macdeployqt
|
||||
-----------
|
||||
|
||||
- [QTBUG-59609] Icon engines are now deployed.
|
||||
|
||||
qtdiag
|
||||
------
|
||||
|
||||
- Show more useful information about styles and platform themes.
|
||||
- [QTBUG-60962] Changed logic to determine name of ANGLE libraries by
|
||||
existence.
|
||||
|
||||
Qt Assistant
|
||||
------------
|
||||
|
||||
- Fixed the build with qtwebkit.
|
||||
- Fixed availability of widget arrows in the search result.
|
||||
|
||||
Qt Designer
|
||||
-----------
|
||||
|
||||
- [QTBUG-61009] Fixed crash in "Go to slot" dialog when no signal is
|
||||
selected.
|
||||
|
||||
|
||||
Qt Property Browser
|
||||
-------------------
|
||||
|
||||
- Fixed build breakage when qreal is defined as float.
|
||||
|
||||
windeployqt
|
||||
-----------
|
||||
|
||||
- [QTBUG-61127] Added support of deploying Qt5GamePad with plugins.
|
|
@ -0,0 +1,28 @@
|
|||
Qt 5.9.2 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.9.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.9.2 Changes *
|
||||
****************************************************************************
|
||||
|
||||
androiddeployqt
|
||||
---------------
|
||||
|
||||
- [QTBUG-61636] Fixed a crash when using ANDROID_DEPLOYMENT_DEPENDENCIES
|
||||
to specify the files to deploy.
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.9.3 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.9.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.9.3 Changes *
|
||||
****************************************************************************
|
||||
|
||||
- This release contains only minor code improvements.
|
|
@ -0,0 +1,28 @@
|
|||
Qt 5.9.4 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.9.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.9.4 Changes *
|
||||
****************************************************************************
|
||||
|
||||
Build system
|
||||
------------
|
||||
|
||||
- [QTBUG-64317] Fixed qt5_add_translation() CMake macro for TS files whose
|
||||
names contain multiple dots.
|
|
@ -0,0 +1,34 @@
|
|||
Qt 5.9.5 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.9.0.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.9.5 Changes *
|
||||
****************************************************************************
|
||||
|
||||
windeployqt
|
||||
-----------
|
||||
|
||||
- The Qt3DAnimation dll is now deployed when the module is used.
|
||||
|
||||
macdeployqt
|
||||
-----------
|
||||
|
||||
- [QTBUG-65844] Added support for selecting the file system type to use
|
||||
when building a .dmg file. Defaults to HFS+ to support a wider range
|
||||
of macOS versions.
|
|
@ -0,0 +1,24 @@
|
|||
Qt 5.9.6 is a bug-fix release. It maintains both forward and backward
|
||||
compatibility (source and binary) with Qt 5.9.0 through 5.9.5.
|
||||
|
||||
For more details, refer to the online documentation included in this
|
||||
distribution. The documentation is also available online:
|
||||
|
||||
http://doc.qt.io/qt-5/index.html
|
||||
|
||||
The Qt version 5.9 series is binary compatible with the 5.8.x series.
|
||||
Applications compiled for 5.8 will continue to run with 5.9.
|
||||
|
||||
Some of the changes listed in this file include issue tracking numbers
|
||||
corresponding to tasks in the Qt Bug Tracker:
|
||||
|
||||
https://bugreports.qt.io/
|
||||
|
||||
Each of these identifiers can be entered in the bug tracker to obtain more
|
||||
information about a particular change.
|
||||
|
||||
****************************************************************************
|
||||
* Qt 5.9.6 Changes *
|
||||
****************************************************************************
|
||||
|
||||
- This release contains only minor code improvements.
|
|
@ -0,0 +1,5 @@
|
|||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
SUBDIRS += simpletextviewer \
|
||||
remotecontrol
|
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1,34 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Free Documentation License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of
|
||||
** this file. Please review the following information to ensure
|
||||
** the GNU Free Documentation License version 1.3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example remotecontrol
|
||||
\ingroup examples-qtassistant
|
||||
\title Remote Control Example
|
||||
|
||||
\brief Using and controlling Qt Assistant as a help viewer.
|
||||
*/
|
|
@ -0,0 +1,451 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Free Documentation License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of
|
||||
** this file. Please review the following information to ensure
|
||||
** the GNU Free Documentation License version 1.3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example simpletextviewer
|
||||
\ingroup examples-qtassistant
|
||||
\title Simple Text Viewer Example
|
||||
|
||||
\brief Using \QA as a customized help viewer for your application.
|
||||
|
||||
\image simpletextviewer-example.png
|
||||
|
||||
This example shows how to use \QA as a customized help viewer in
|
||||
a custom application. This is done in two stages. Firstly,
|
||||
documentation is created and \QA is customized; secondly, the
|
||||
functionality to launch and control \QA is added to the application.
|
||||
|
||||
The Simple Text Viewer application lets the user select and view
|
||||
existing files. The application provides its own custom documentation
|
||||
that is available from the \gui Help menu in the main window's menu bar
|
||||
or by clicking the \gui Help button in the application's find file
|
||||
dialog.
|
||||
|
||||
The example consists of four classes:
|
||||
|
||||
\list
|
||||
\li \c Assistant provides functionality to launch \QA.
|
||||
\li \c MainWindow is the main application window.
|
||||
\li \c FindFileDialog allows the user to search for
|
||||
files using wildcard matching.
|
||||
\li \c TextEdit provides a rich text browser that makes
|
||||
sure that images referenced in HTML documents are
|
||||
displayed properly.
|
||||
\endlist
|
||||
|
||||
\note We will only comment on the parts of the implementation
|
||||
that are relevant to the main issue, that is making Qt Assistant
|
||||
act as a customized help viewer for our Simple Text Viewer
|
||||
application.
|
||||
|
||||
\section1 Creating Documentation and Customizing \QA
|
||||
|
||||
How to create the actual documentation in the form of HTML pages is
|
||||
not in the scope of this example. In general, HTML pages can either
|
||||
be written by hand or generated with the help of documentation tools
|
||||
like qdoc or Doxygen. For the purposes of this example we assume that
|
||||
the HTML files have already been created. So, the only thing that
|
||||
remains to be done is to tell \QA how to structure and display the
|
||||
help information.
|
||||
|
||||
\section2 Organizing Documentation for \QA
|
||||
|
||||
Plain HTML files only contain text or documentation about specific topics,
|
||||
but they usually include no information about how several HTML documents
|
||||
relate to each other or in which order they are supposed to be read.
|
||||
What is missing is a table of contents along with an index to access
|
||||
certain help contents quickly, without having to browse through a lot
|
||||
of documents in order to find a piece of information.
|
||||
|
||||
To organize the documentation and make it available for \QA, we have
|
||||
to create a Qt help project (.qhp) file. The first and most important
|
||||
part of the project file is the definition of the namespace. The namespace
|
||||
has to be unique and will be the first part of the page URL in \QA.
|
||||
In addition, we have to set a virtual folder which acts as a common
|
||||
folder for documentation sets. This means, that two documentation sets
|
||||
identified by two different namespaces can cross reference HTML files
|
||||
since those files are in one big virtual folder. However, for this
|
||||
example, we'll only have one documentation set available, so the
|
||||
virtual folder name and functionality are not important.
|
||||
|
||||
\code
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<QtHelpProject version="1.0">
|
||||
<namespace>org.qt-project.examples.simpletextviewer</namespace>
|
||||
<virtualFolder>doc</virtualFolder>
|
||||
\endcode
|
||||
|
||||
The next step is to define the filter section. A filter section
|
||||
contains the table of contents, indices and a complete list of
|
||||
all documentation files, and can have any number of filter attributes
|
||||
assigned to it. A filter attribute is an ordinary string which can
|
||||
be freely chosen. Later in \QA, users can then define a custom
|
||||
filter referencing those attributes. If the attributes of a filter
|
||||
section match the attributes of the custom filter the documentation
|
||||
will be shown, otherwise \QA will hide the documentation.
|
||||
|
||||
Again, since we'll only have one documentation set, we do not need
|
||||
the filtering functionality of \QA and can therefore skip the
|
||||
filter attributes.
|
||||
|
||||
Now, we build up the table of contents. An item in the table is
|
||||
defined by the \c section tag which contains the attributes for the
|
||||
item title as well as link to the actual page. Section tags can be
|
||||
nested infinitely, but for practical reasons it is not recommended
|
||||
to nest them deeper than three or four levels. For our example we
|
||||
want to use the following outline for the table of contents:
|
||||
|
||||
\list
|
||||
\li Simple Text Viewer
|
||||
\list
|
||||
\li Find File
|
||||
\list
|
||||
\li File Dialog
|
||||
\li Wildcard Matching
|
||||
\li Browse
|
||||
\endlist
|
||||
\li Open File
|
||||
\endlist
|
||||
\endlist
|
||||
|
||||
In the help project file, the outline is represented by:
|
||||
|
||||
\code
|
||||
<filterSection>
|
||||
<toc>
|
||||
<section title="Simple Text Viewer" ref="index.html">
|
||||
<section title="Find File" ref="findfile.html">
|
||||
<section title="File Dialog" ref="filedialog.html"/>
|
||||
<section title="Wildcard Matching" ref="wildcardmatching.html"/>
|
||||
<section title="Browse" ref="browse.html"/>
|
||||
</section>
|
||||
<section title="Open File" ref="openfile.html"/>
|
||||
</section>
|
||||
</toc>
|
||||
\endcode
|
||||
|
||||
After the table of contents is defined, we will list all index keywords:
|
||||
|
||||
\code
|
||||
<keywords>
|
||||
<keyword name="Display" ref="index.html"/>
|
||||
<keyword name="Rich text" ref="index.html"/>
|
||||
<keyword name="Plain text" ref="index.html"/>
|
||||
<keyword name="Find" ref="findfile.html"/>
|
||||
<keyword name="File menu" ref="findfile.html"/>
|
||||
<keyword name="File name" ref="filedialog.html"/>
|
||||
<keyword name="File dialog" ref="filedialog.html"/>
|
||||
<keyword name="File globbing" ref="wildcardmatching.html"/>
|
||||
<keyword name="Wildcard matching" ref="wildcardmatching.html"/>
|
||||
<keyword name="Wildcard syntax" ref="wildcardmatching.html"/>
|
||||
<keyword name="Browse" ref="browse.html"/>
|
||||
<keyword name="Directory" ref="browse.html"/>
|
||||
<keyword name="Open" ref="openfile.html"/>
|
||||
<keyword name="Select" ref="openfile.html"/>
|
||||
</keywords>
|
||||
\endcode
|
||||
|
||||
As the last step, we have to list all files making up the documentation.
|
||||
An important point to note here is that all files have to listed, including
|
||||
image files, and even stylesheets if they are used.
|
||||
|
||||
\code
|
||||
<files>
|
||||
<file>browse.html</file>
|
||||
<file>filedialog.html</file>
|
||||
<file>findfile.html</file>
|
||||
<file>index.html</file>
|
||||
<file>intro.html</file>
|
||||
<file>openfile.html</file>
|
||||
<file>wildcardmatching.html</file>
|
||||
<file>images/browse.png</file>
|
||||
<file>images/fadedfilemenu.png</file>
|
||||
<file>images/filedialog.png</file>
|
||||
<file>images/handbook.png</file>
|
||||
<file>images/mainwindow.png</file>
|
||||
<file>images/open.png</file>
|
||||
<file>images/wildcard.png</file>
|
||||
</files>
|
||||
</filterSection>
|
||||
</QtHelpProject>
|
||||
\endcode
|
||||
|
||||
The help project file is now finished. If you want to see the resulting
|
||||
documentation in \QA, you have to generate a Qt compressed help file
|
||||
out of it and register it with the default help collection of \QA.
|
||||
|
||||
\code
|
||||
qhelpgenerator simpletextviewer.qhp -o simpletextviewer.qch
|
||||
assistant -register simpletextviewer.qch
|
||||
\endcode
|
||||
|
||||
If you start \QA now, you'll see the Simple Text Viewer documentation
|
||||
beside the Qt documentation. This is OK for testing purposes, but
|
||||
for the final version we want to only have the Simple Text Viewer
|
||||
documentation in \QA.
|
||||
|
||||
\section2 Customizing \QA
|
||||
|
||||
The easiest way to make \QA only display the Simple Text Viewer
|
||||
documentation is to create our own help collection file. A collection
|
||||
file is stored in a binary format, similar to the compressed help file,
|
||||
and generated from a help collection project file (*.qhcp). With
|
||||
the help of a collection file, we can customize the appearance and even
|
||||
some functionality offered by \QA.
|
||||
|
||||
At first, we change the window title and icon. Instead of showing "\QA"
|
||||
it will show "Simple Text Viewer", so it is much clearer for the user
|
||||
that the help viewer actually belongs to our application.
|
||||
|
||||
\code
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<QHelpCollectionProject version="1.0">
|
||||
<assistant>
|
||||
<title>Simple Text Viewer</title>
|
||||
<applicationIcon>images/handbook.png</applicationIcon>
|
||||
<cacheDirectory>QtProject/SimpleTextViewer</cacheDirectory>
|
||||
\endcode
|
||||
|
||||
The \c cacheDirectory tag specifies a subdirectory of the users
|
||||
data directory (see the
|
||||
\l{Customizing Qt Assistant#Qt Help Collection Files}{Qt Help Collection Files})
|
||||
where the cache file for the full text search or the settings file will
|
||||
be stored.
|
||||
|
||||
After this, we set the page displayed by \QA when launched for the very
|
||||
first time in its new configuration. The URL consists of the namespace
|
||||
and virtual folder defined in the Qt help project file, followed by the
|
||||
actual page file name.
|
||||
|
||||
\code
|
||||
<startPage>qthelp://org.qt-project.examples.simpletextviewer/doc/index.html</startPage>
|
||||
\endcode
|
||||
|
||||
Next, we alter the name of the "About" menu item to "About Simple
|
||||
Text Viewer". The contents of the \gui{About} dialog are also changed
|
||||
by specifying a file where the about text or icon is taken from.
|
||||
|
||||
\code
|
||||
<aboutMenuText>
|
||||
<text>About Simple Text Viewer</text>
|
||||
</aboutMenuText>
|
||||
<aboutDialog>
|
||||
<file>about.txt</file>
|
||||
<icon>images/icon.png</icon>
|
||||
</aboutDialog>
|
||||
\endcode
|
||||
|
||||
\QA offers the possibility to add or remove documentation via its
|
||||
preferences dialog. This functionality is helpful when using \QA
|
||||
as the central help viewer for more applications, but in our case
|
||||
we want to actually prevent the user from removing the documentation.
|
||||
So, we hide the \gui Documentation tab in the \gui Preferences dialog.
|
||||
|
||||
Since the address bar is not really relevant in such a small
|
||||
documentation set we switch it off as well. By having just one filter
|
||||
section, without any filter attributes, we can also disable the filter
|
||||
functionality of \QA, which means that the filter page and the filter
|
||||
toolbar will not be available.
|
||||
|
||||
\code
|
||||
<enableDocumentationManager>false</enableDocumentationManager>
|
||||
<enableAddressBar>false</enableAddressBar>
|
||||
<enableFilterFunctionality>false</enableFilterFunctionality>
|
||||
</assistant>
|
||||
\endcode
|
||||
|
||||
For testing purposes, we already generated the compressed help file
|
||||
and registered it with \QA's default help collection. With the
|
||||
following lines we achieve the same result. The only and important
|
||||
difference is that we register the compressed help file, not in
|
||||
the default collection, but in our own collection file.
|
||||
|
||||
\code
|
||||
<docFiles>
|
||||
<generate>
|
||||
<file>
|
||||
<input>simpletextviewer.qhp</input>
|
||||
<output>simpletextviewer.qch</output>
|
||||
</file>
|
||||
</generate>
|
||||
<register>
|
||||
<file>simpletextviewer.qch</file>
|
||||
</register>
|
||||
</docFiles>
|
||||
</QHelpCollectionProject>
|
||||
\endcode
|
||||
|
||||
As the last step, we have to generate the binary collection file
|
||||
out of the help collection project file. This is done by running the
|
||||
\c qhelpgenerator tool.
|
||||
|
||||
\code
|
||||
qhelpgenerator simpletextviewer.qhcp -o simpletextviewer.qhc
|
||||
\endcode
|
||||
|
||||
To test all our customizations made to \QA, we add the collection
|
||||
file name to the command line:
|
||||
|
||||
\code
|
||||
assistant -collectionFile simpletextviewer.qhc
|
||||
\endcode
|
||||
|
||||
\section1 Controlling \QA via the Assistant Class
|
||||
|
||||
We will first take a look at how to start and operate \QA from a
|
||||
remote application. For that purpose, we create a class called
|
||||
\c Assistant.
|
||||
|
||||
This class provides a public function that is used to show pages
|
||||
of the documentation, and one private helper function to make sure
|
||||
that \QA is up and running.
|
||||
|
||||
Launching \QA is done in the function \c startAssistant() by simply
|
||||
creating and starting a QProcess. If the process is already running,
|
||||
the function returns immediately. Otherwise, the process has
|
||||
to be set up and started.
|
||||
|
||||
\snippet simpletextviewer/assistant.cpp 2
|
||||
|
||||
To start the process we need the executable name of \QA as well as the
|
||||
command line arguments for running \QA in a customized mode. The
|
||||
executable name is a little bit tricky since it depends on the
|
||||
platform, but fortunately it is only different on \macos.
|
||||
|
||||
The displayed documentation can be altered using the \c -collectionFile
|
||||
command line argument when launching \QA. When started without any options,
|
||||
\QA displays a default set of documentation. When Qt is installed,
|
||||
the default documentation set in \QA contains the Qt reference
|
||||
documentation as well as the tools that come with Qt, such as Qt
|
||||
Designer and \c qmake.
|
||||
|
||||
In our example, we replace the default documentation set with our
|
||||
custom documentation by passing our application-specific collection
|
||||
file to the process's command line options.
|
||||
|
||||
As the last argument, we add \c -enableRemoteControl, which makes \QA
|
||||
listen to its \c stdin channel for commands, such as those to display
|
||||
a certain page in the documentation.
|
||||
Then we start the process and wait until it is actually running. If,
|
||||
for some reason \QA cannot be started, \c startAssistant() will return
|
||||
false.
|
||||
|
||||
The implementation for \c showDocumentation() is now straightforward.
|
||||
Firstly, we ensure that \QA is running, then we send the request to
|
||||
display the \a page via the \c stdin channel of the process. It is very
|
||||
important here that the command is terminated by an end of line token
|
||||
to flush the channel.
|
||||
|
||||
\snippet simpletextviewer/assistant.cpp 1
|
||||
|
||||
Finally, we make sure that \QA is terminated properly in the case that
|
||||
the application is shut down. The destructor of QProcess kills the
|
||||
process, meaning that the application has no possibility to do things
|
||||
like save user settings, which would result in corrupted settings files.
|
||||
To avoid this, we ask \QA to terminate in the destructor of the
|
||||
\c Assistant class.
|
||||
|
||||
\snippet simpletextviewer/assistant.cpp 0
|
||||
|
||||
\section1 MainWindow Class
|
||||
|
||||
\image simpletextviewer-mainwindow.png
|
||||
|
||||
The \c MainWindow class provides the main application window with
|
||||
two menus: the \gui File menu lets the user open and view an
|
||||
existing file, while the \gui Help menu provides information about
|
||||
the application and about Qt, and lets the user open \QA to
|
||||
display the application's documentation.
|
||||
|
||||
To be able to access the help functionality, we initialize the
|
||||
\c Assistant object in the \c MainWindow's constructor.
|
||||
|
||||
\snippet simpletextviewer/mainwindow.cpp 0
|
||||
\dots
|
||||
\snippet simpletextviewer/mainwindow.cpp 1
|
||||
|
||||
Then we create all the actions for the Simple Text Viewer application.
|
||||
Of special interest is the \c assistantAct action accessible
|
||||
via the \key{F1} shortcut or the \gui Help > \gui {Help Contents} menu item.
|
||||
This action is connected to the \c showDocumentation() slot of
|
||||
the \c MainWindow class.
|
||||
|
||||
\snippet simpletextviewer/mainwindow.cpp 4
|
||||
\dots
|
||||
\snippet simpletextviewer/mainwindow.cpp 5
|
||||
|
||||
In the \c showDocumentation() slot, we call the \c showDocumentation()
|
||||
function of the \c Assistant class with the URL of home page of the
|
||||
documentation.
|
||||
|
||||
\snippet simpletextviewer/mainwindow.cpp 3
|
||||
|
||||
Finally, we must reimplement the protected QWidget::closeEvent()
|
||||
event handler to ensure that the application's \QA instance is
|
||||
properly closed before we terminate the application.
|
||||
|
||||
\snippet simpletextviewer/mainwindow.cpp 2
|
||||
|
||||
\section1 FindFileDialog Class
|
||||
|
||||
\image simpletextviewer-findfiledialog.png
|
||||
|
||||
The Simple Text Viewer application provides a find file dialog
|
||||
allowing the user to search for files using wildcard matching. The
|
||||
search is performed within the specified directory, and the user
|
||||
is given an option to browse the existing file system to find the
|
||||
relevant directory.
|
||||
|
||||
In the constructor we save the references to the \c Assistant
|
||||
and \c QTextEdit objects passed as arguments. The \c Assistant
|
||||
object will be used in the \c FindFileDialog's \c help() slot,
|
||||
as we will see shortly, while the QTextEdit will be used in the
|
||||
dialog's \c openFile() slot to display the chosen file.
|
||||
|
||||
\snippet simpletextviewer/findfiledialog.cpp 0
|
||||
\dots
|
||||
\snippet simpletextviewer/findfiledialog.cpp 1
|
||||
|
||||
The most relevant member to observe in the \c FindFileDialog
|
||||
class is the private \c help() slot. The slot is connected to the
|
||||
dialog's \gui Help button, and brings the current \QA instance
|
||||
to the foreground with the documentation for the dialog by
|
||||
calling \c Assistant's \c showDocumentation() function.
|
||||
|
||||
\snippet simpletextviewer/findfiledialog.cpp 2
|
||||
|
||||
\section1 Summary
|
||||
|
||||
In order to make \QA act as a customized help tool for
|
||||
your application, you must provide your application with a
|
||||
process that controls \QA in addition to a custom help collection
|
||||
file including Qt compressed help files.
|
||||
|
||||
For more information about the options and settings available to
|
||||
applications that use \QA as a custom help viewer, see
|
||||
\l{Customizing Qt Assistant}.
|
||||
*/
|
After Width: | Height: | Size: 315 B |
|
@ -0,0 +1,61 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "remotecontrol.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
RemoteControl w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
|
@ -0,0 +1,183 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "remotecontrol.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QLibraryInfo>
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
#include <QTextStream>
|
||||
|
||||
RemoteControl::RemoteControl(QWidget *parent, Qt::WindowFlags flags)
|
||||
: QMainWindow(parent, flags)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
connect(ui.indexLineEdit, SIGNAL(returnPressed()),
|
||||
this, SLOT(on_indexButton_clicked()));
|
||||
connect(ui.identifierLineEdit, SIGNAL(returnPressed()),
|
||||
this, SLOT(on_identifierButton_clicked()));
|
||||
connect(ui.urlLineEdit, SIGNAL(returnPressed()),
|
||||
this, SLOT(on_urlButton_clicked()));
|
||||
|
||||
QString rc;
|
||||
QTextStream(&rc) << QLatin1String("qthelp://org.qt-project.qtdoc.")
|
||||
<< (QT_VERSION >> 16) << ((QT_VERSION >> 8) & 0xFF)
|
||||
<< (QT_VERSION & 0xFF)
|
||||
<< QLatin1String("/qtdoc/index.html");
|
||||
|
||||
ui.startUrlLineEdit->setText(rc);
|
||||
|
||||
process = new QProcess(this);
|
||||
connect(process, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(helpViewerClosed()));
|
||||
}
|
||||
|
||||
RemoteControl::~RemoteControl()
|
||||
{
|
||||
if (process->state() == QProcess::Running) {
|
||||
process->terminate();
|
||||
process->waitForFinished(3000);
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteControl::on_actionQuit_triggered()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void RemoteControl::on_launchButton_clicked()
|
||||
{
|
||||
if (process->state() == QProcess::Running)
|
||||
return;
|
||||
|
||||
QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator();
|
||||
#if !defined(Q_OS_MAC)
|
||||
app += QLatin1String("assistant");
|
||||
#else
|
||||
app += QLatin1String("Assistant.app/Contents/MacOS/Assistant");
|
||||
#endif
|
||||
|
||||
ui.contentsCheckBox->setChecked(true);
|
||||
ui.indexCheckBox->setChecked(true);
|
||||
ui.bookmarksCheckBox->setChecked(true);
|
||||
|
||||
QStringList args;
|
||||
args << QLatin1String("-enableRemoteControl");
|
||||
process->start(app, args);
|
||||
if (!process->waitForStarted()) {
|
||||
QMessageBox::critical(this, tr("Remote Control"),
|
||||
tr("Could not start Qt Assistant from %1.").arg(app));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ui.startUrlLineEdit->text().isEmpty())
|
||||
sendCommand(QLatin1String("SetSource ")
|
||||
+ ui.startUrlLineEdit->text());
|
||||
|
||||
ui.launchButton->setEnabled(false);
|
||||
ui.startUrlLineEdit->setEnabled(false);
|
||||
ui.actionGroupBox->setEnabled(true);
|
||||
}
|
||||
|
||||
void RemoteControl::sendCommand(const QString &cmd)
|
||||
{
|
||||
if (process->state() != QProcess::Running)
|
||||
return;
|
||||
process->write(cmd.toLocal8Bit() + '\n');
|
||||
}
|
||||
|
||||
void RemoteControl::on_indexButton_clicked()
|
||||
{
|
||||
sendCommand(QLatin1String("ActivateKeyword ")
|
||||
+ ui.indexLineEdit->text());
|
||||
}
|
||||
|
||||
void RemoteControl::on_identifierButton_clicked()
|
||||
{
|
||||
sendCommand(QLatin1String("ActivateIdentifier ")
|
||||
+ ui.identifierLineEdit->text());
|
||||
}
|
||||
|
||||
void RemoteControl::on_urlButton_clicked()
|
||||
{
|
||||
sendCommand(QLatin1String("SetSource ")
|
||||
+ ui.urlLineEdit->text());
|
||||
}
|
||||
|
||||
void RemoteControl::on_syncContentsButton_clicked()
|
||||
{
|
||||
sendCommand(QLatin1String("SyncContents"));
|
||||
}
|
||||
|
||||
void RemoteControl::on_contentsCheckBox_toggled(bool checked)
|
||||
{
|
||||
sendCommand(checked ?
|
||||
QLatin1String("Show Contents") : QLatin1String("Hide Contents"));
|
||||
}
|
||||
|
||||
void RemoteControl::on_indexCheckBox_toggled(bool checked)
|
||||
{
|
||||
sendCommand(checked ?
|
||||
QLatin1String("Show Index") : QLatin1String("Hide Index"));
|
||||
}
|
||||
|
||||
void RemoteControl::on_bookmarksCheckBox_toggled(bool checked)
|
||||
{
|
||||
sendCommand(checked ?
|
||||
QLatin1String("Show Bookmarks") : QLatin1String("Hide Bookmarks"));
|
||||
}
|
||||
|
||||
void RemoteControl::helpViewerClosed()
|
||||
{
|
||||
ui.launchButton->setEnabled(true);
|
||||
ui.startUrlLineEdit->setEnabled(true);
|
||||
ui.actionGroupBox->setEnabled(false);
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef REMOTECONTROL_H
|
||||
#define REMOTECONTROL_H
|
||||
|
||||
#include "ui_remotecontrol.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QProcess;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class RemoteControl : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RemoteControl(QWidget *parent = nullptr, Qt::WindowFlags flags = {});
|
||||
~RemoteControl();
|
||||
|
||||
private:
|
||||
Ui::RemoteControlClass ui;
|
||||
QProcess *process;
|
||||
|
||||
private slots:
|
||||
void on_launchButton_clicked();
|
||||
void on_actionQuit_triggered();
|
||||
void on_indexButton_clicked();
|
||||
void on_identifierButton_clicked();
|
||||
void on_urlButton_clicked();
|
||||
void on_syncContentsButton_clicked();
|
||||
void on_contentsCheckBox_toggled(bool checked);
|
||||
void on_indexCheckBox_toggled(bool checked);
|
||||
void on_bookmarksCheckBox_toggled(bool checked);
|
||||
void helpViewerClosed();
|
||||
|
||||
void sendCommand(const QString &cmd);
|
||||
};
|
||||
|
||||
#endif // REMOTECONTROL_H
|
|
@ -0,0 +1,12 @@
|
|||
TEMPLATE = app
|
||||
QT += widgets
|
||||
|
||||
HEADERS += remotecontrol.h
|
||||
SOURCES += main.cpp \
|
||||
remotecontrol.cpp
|
||||
FORMS += remotecontrol.ui
|
||||
RESOURCES += remotecontrol.qrc
|
||||
|
||||
target.path = $$[QT_INSTALL_EXAMPLES]/assistant/remotecontrol
|
||||
INSTALLS += target
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/remotecontrol" >
|
||||
<file>enter.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
|
@ -0,0 +1,228 @@
|
|||
<ui version="4.0" >
|
||||
<class>RemoteControlClass</class>
|
||||
<widget class="QMainWindow" name="RemoteControlClass" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>344</width>
|
||||
<height>364</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>RemoteControl</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget" >
|
||||
<layout class="QGridLayout" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="QLabel" name="label" >
|
||||
<property name="text" >
|
||||
<string>Start URL:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="2" >
|
||||
<widget class="QLineEdit" name="startUrlLineEdit" />
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QPushButton" name="launchButton" >
|
||||
<property name="text" >
|
||||
<string>Launch Qt HelpViewer</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" >
|
||||
<spacer>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>101</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="1" >
|
||||
<spacer>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType" >
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>113</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3" >
|
||||
<widget class="QGroupBox" name="actionGroupBox" >
|
||||
<property name="enabled" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="title" >
|
||||
<string>Actions</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="QLabel" name="label_2" >
|
||||
<property name="text" >
|
||||
<string>Search in Index:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="2" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="spacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="indexLineEdit" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="indexButton" >
|
||||
<property name="text" >
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon" >
|
||||
<iconset resource="remotecontrol.qrc" >:/remotecontrol/enter.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QLabel" name="label_4" >
|
||||
<property name="text" >
|
||||
<string>Identifier:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" colspan="2" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="spacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="identifierLineEdit" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="identifierButton" >
|
||||
<property name="text" >
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon" >
|
||||
<iconset resource="remotecontrol.qrc" >:/remotecontrol/enter.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0" >
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="text" >
|
||||
<string>Show URL:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1" colspan="2" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="spacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="urlLineEdit" />
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="urlButton" >
|
||||
<property name="text" >
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon" >
|
||||
<iconset resource="remotecontrol.qrc" >:/remotecontrol/enter.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="1" >
|
||||
<widget class="QPushButton" name="syncContentsButton" >
|
||||
<property name="text" >
|
||||
<string>Sync Contents</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2" >
|
||||
<spacer>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>81</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="3" >
|
||||
<widget class="QCheckBox" name="contentsCheckBox" >
|
||||
<property name="text" >
|
||||
<string>Show Contents</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0" >
|
||||
<widget class="QCheckBox" name="indexCheckBox" >
|
||||
<property name="text" >
|
||||
<string>Show Index</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0" colspan="3" >
|
||||
<widget class="QCheckBox" name="bookmarksCheckBox" >
|
||||
<property name="text" >
|
||||
<string>Show Bookmarks</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>344</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile" >
|
||||
<property name="title" >
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionQuit" />
|
||||
</widget>
|
||||
<addaction name="menuFile" />
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar" />
|
||||
<action name="actionQuit" >
|
||||
<property name="text" >
|
||||
<string>Quit</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
<resources>
|
||||
<include location="remotecontrol.qrc" />
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
|
@ -0,0 +1,160 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "assistant.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QByteArray>
|
||||
#include <QDir>
|
||||
#include <QLibraryInfo>
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
|
||||
Assistant::Assistant() = default;
|
||||
|
||||
//! [0]
|
||||
Assistant::~Assistant()
|
||||
{
|
||||
if (!m_process.isNull() && m_process->state() == QProcess::Running) {
|
||||
QObject::disconnect(m_process.data(),
|
||||
QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
|
||||
nullptr, nullptr);
|
||||
m_process->terminate();
|
||||
m_process->waitForFinished(3000);
|
||||
}
|
||||
}
|
||||
//! [0]
|
||||
|
||||
//! [1]
|
||||
void Assistant::showDocumentation(const QString &page)
|
||||
{
|
||||
if (!startAssistant())
|
||||
return;
|
||||
|
||||
QByteArray ba("SetSource ");
|
||||
ba.append("qthelp://org.qt-project.examples.simpletextviewer/doc/");
|
||||
|
||||
m_process->write(ba + page.toLocal8Bit() + '\n');
|
||||
}
|
||||
//! [1]
|
||||
|
||||
QString documentationDirectory()
|
||||
{
|
||||
QStringList paths;
|
||||
#ifdef SRCDIR
|
||||
paths.append(QLatin1String(SRCDIR));
|
||||
#endif
|
||||
paths.append(QLibraryInfo::location(QLibraryInfo::ExamplesPath));
|
||||
paths.append(QCoreApplication::applicationDirPath());
|
||||
paths.append(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation));
|
||||
for (const auto &dir : qAsConst(paths)) {
|
||||
const QString path = dir + QLatin1String("/documentation");
|
||||
if (QFileInfo::exists(path))
|
||||
return path;
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
|
||||
//! [2]
|
||||
bool Assistant::startAssistant()
|
||||
{
|
||||
if (m_process.isNull()) {
|
||||
m_process.reset(new QProcess());
|
||||
QObject::connect(m_process.data(),
|
||||
QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
|
||||
m_process.data(), [this](int exitCode, QProcess::ExitStatus status) {
|
||||
this->finished(exitCode, status);
|
||||
});
|
||||
}
|
||||
|
||||
if (m_process->state() != QProcess::Running) {
|
||||
QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator();
|
||||
#ifndef Q_OS_DARWIN
|
||||
app += QLatin1String("assistant");
|
||||
#else
|
||||
app += QLatin1String("Assistant.app/Contents/MacOS/Assistant");
|
||||
#endif
|
||||
|
||||
const QString collectionDirectory = documentationDirectory();
|
||||
if (collectionDirectory.isEmpty()) {
|
||||
showError(tr("The documentation directory cannot be found"));
|
||||
return false;
|
||||
}
|
||||
|
||||
QStringList args{QLatin1String("-collectionFile"),
|
||||
collectionDirectory + QLatin1String("/simpletextviewer.qhc"),
|
||||
QLatin1String("-enableRemoteControl")};
|
||||
|
||||
m_process->start(app, args);
|
||||
|
||||
if (!m_process->waitForStarted()) {
|
||||
showError(tr("Unable to launch Qt Assistant (%1): %2").arg(app, m_process->errorString()));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//! [2]
|
||||
|
||||
void Assistant::showError(const QString &message)
|
||||
{
|
||||
QMessageBox::critical(QApplication::activeWindow(),
|
||||
tr("Simple Text Viewer"), message);
|
||||
}
|
||||
|
||||
void Assistant::finished(int exitCode, QProcess::ExitStatus status)
|
||||
{
|
||||
const QString stdErr = QString::fromLocal8Bit(m_process->readAllStandardError());
|
||||
if (status != QProcess::NormalExit) {
|
||||
showError(tr("Assistant crashed: ").arg(stdErr));
|
||||
} else if (exitCode != 0) {
|
||||
showError(tr("Assistant exited with %1: %2").arg(exitCode).arg(stdErr));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef ASSISTANT_H
|
||||
#define ASSISTANT_H
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QProcess>
|
||||
#include <QScopedPointer>
|
||||
#include <QString>
|
||||
|
||||
|
||||
class Assistant
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Assistant)
|
||||
|
||||
public:
|
||||
Assistant();
|
||||
~Assistant();
|
||||
void showDocumentation(const QString &file);
|
||||
|
||||
private:
|
||||
bool startAssistant();
|
||||
void showError(const QString &message);
|
||||
void finished(int exitCode, QProcess::ExitStatus status);
|
||||
|
||||
QScopedPointer<QProcess> m_process;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,9 @@
|
|||
The Simple Text Viewer enables the user to select and view existing
|
||||
files.
|
||||
|
||||
HTML files is displayed using rich text, while other files are
|
||||
presented as plain text. The application provides a file dialog
|
||||
allowing the user to search for files using wildcard matching. The
|
||||
search is performed within in the specified directory, and the user is
|
||||
given an option to browse the existing file system to find the
|
||||
relevant directory.
|
|
@ -0,0 +1,34 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Browse</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>Browse</h2></center></p>
|
||||
|
||||
<p>
|
||||
The file dialog let you browse the current file system to
|
||||
specify the directory in which the file you want to open
|
||||
resides.
|
||||
Note that only the specified directory will be searched, any
|
||||
subdirectories will simply be ignored.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<table align="center" cellpadding="2" cellspacing="1" border="0" width="100%">
|
||||
<tr valign="top" bgcolor="#f0f0f0">
|
||||
<td><center><img src="images/browse.png" /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
See also: <a href="filedialog.html">File Dialog</a>, <a href="wildcardmatching.html">Wildcard Matching</a>,
|
||||
<a href="findfile.html">Find File</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>File Dialog</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>File Dialog</h2></center></p>
|
||||
|
||||
<p>
|
||||
In the file dialog you can name a particular file name, or
|
||||
search for files using wildcard matching, i.e. specify a
|
||||
file name containing wildcards. In addition you must specify
|
||||
the directory in which the file you search for resides.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<table align="center" cellpadding="2" cellspacing="1" border="0" width="100%">
|
||||
<tr valign="top" bgcolor="#f0f0f0">
|
||||
<td><center><img src="images/filedialog.png" /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
By default the dialog will search for all files (*) in the
|
||||
current directory (the directory the application is run from).
|
||||
</p>
|
||||
|
||||
<p>
|
||||
When editing the file name and directory parameters, an
|
||||
overview of the matching files are displayed in the
|
||||
dialog. The overview is updated whenever the parameters
|
||||
change.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
See also: <a href="browse.html">Browse</a>, <a href="wildcardmatching.html">Wildcard Matching</a>,
|
||||
<a href="findfile.html">Find File</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Find File</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>Find File</h2></center></p>
|
||||
|
||||
<p>
|
||||
To open and view a file in the Simple Text Viewer, select the
|
||||
'Open...' option in the 'File' menu. The application will then
|
||||
provide you with a file dialog that you can use to search for
|
||||
any existing file.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<table align="center" cellpadding="2" cellspacing="1" border="0" width="100%">
|
||||
<tr valign="top" bgcolor="#f0f0f0">
|
||||
<td><center><img src="images/fadedfilemenu.png" /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
See also: <a href="openfile.html">Open File</a>, <a href="filedialog.html">File Dialog</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,41 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Manual</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>Simple Text Viewer</h2></center></p>
|
||||
|
||||
<p>
|
||||
The Simple Text Viewer enables the user to select and view
|
||||
existing files.
|
||||
</p>
|
||||
|
||||
<p><center>
|
||||
<img src="images/mainwindow.png" />
|
||||
</center></p>
|
||||
|
||||
<p>
|
||||
HTML files is displayed using rich text, while
|
||||
other files are presented as plain text. The application
|
||||
provides a file dialog allowing the user to search for files
|
||||
using wildcard matching. The search is performed within in the
|
||||
specified directory, and the user is given an option to browse
|
||||
the existing file system to find the relevant directory.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="findfile.html">Find File</a></li>
|
||||
<ul>
|
||||
<li><a href="filedialog.html">File Dialog</a></li>
|
||||
<li><a href="wildcardmatching.html">WildCard Matching</a></li>
|
||||
<li><a href="browse.html">Browse</a></li>
|
||||
</ul>
|
||||
<li><a href="openfile.html">Open File</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Manual</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>Simple Text Viewer</h2></center></p>
|
||||
|
||||
<p>
|
||||
The Simple Text Viewer enables the user to select and view
|
||||
existing files.
|
||||
</p>
|
||||
|
||||
<p><center>
|
||||
<img src="images/mainwindow.png" />
|
||||
</center></p>
|
||||
|
||||
<p>
|
||||
The application provides its own custom documentation that is
|
||||
available through the <b>Help</b> menu in the main window's menubar
|
||||
and through the <b>Help</b> button in the application's find file
|
||||
dialog.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Open File</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>Open File</h2></center></p>
|
||||
|
||||
<p>
|
||||
Once the file you want to view appears in the dialog's
|
||||
display, you can open it in two different ways.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
By pressing the 'Open' button the currently selected file will
|
||||
be opened. By default, the first file in the list of matching
|
||||
files is selected. Another way of opening a file is to simply
|
||||
double click the displayed file name.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<table align="center" cellpadding="2" cellspacing="1" border="0" width="100%">
|
||||
<tr valign="top" bgcolor="#f0f0f0">
|
||||
<td><center><img src="images/open.png" /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
See also: <a href="findfile.html">Find File</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<QHelpCollectionProject version="1.0">
|
||||
<assistant>
|
||||
<title>Simple Text Viewer</title>
|
||||
<applicationIcon>images/handbook.png</applicationIcon>
|
||||
<cacheDirectory>QtProject/SimpleTextViewer</cacheDirectory>
|
||||
<startPage>qthelp://org.qt-project.examples.simpletextviewer/doc/index.html</startPage>
|
||||
<aboutMenuText>
|
||||
<text>About Simple Text Viewer</text>
|
||||
</aboutMenuText>
|
||||
<aboutDialog>
|
||||
<file>about.txt</file>
|
||||
<icon>images/icon.png</icon>
|
||||
</aboutDialog>
|
||||
<enableDocumentationManager>false</enableDocumentationManager>
|
||||
<enableAddressBar>false</enableAddressBar>
|
||||
<enableFilterFunctionality>false</enableFilterFunctionality>
|
||||
</assistant>
|
||||
<docFiles>
|
||||
<generate>
|
||||
<file>
|
||||
<input>simpletextviewer.qhp</input>
|
||||
<output>simpletextviewer.qch</output>
|
||||
</file>
|
||||
</generate>
|
||||
<register>
|
||||
<file>simpletextviewer.qch</file>
|
||||
</register>
|
||||
</docFiles>
|
||||
</QHelpCollectionProject>
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<QtHelpProject version="1.0">
|
||||
<namespace>org.qt-project.examples.simpletextviewer</namespace>
|
||||
<virtualFolder>doc</virtualFolder>
|
||||
<filterSection>
|
||||
<toc>
|
||||
<section title="Simple Text Viewer" ref="index.html">
|
||||
<section title="Find File" ref="findfile.html">
|
||||
<section title="File Dialog" ref="filedialog.html"/>
|
||||
<section title="Wildcard Matching" ref="wildcardmatching.html"/>
|
||||
<section title="Browse" ref="browse.html"/>
|
||||
</section>
|
||||
<section title="Open File" ref="openfile.html"/>
|
||||
</section>
|
||||
</toc>
|
||||
<keywords>
|
||||
<keyword name="Display" ref="index.html"/>
|
||||
<keyword name="Rich text" ref="index.html"/>
|
||||
<keyword name="Plain text" ref="index.html"/>
|
||||
<keyword name="Find" ref="findfile.html"/>
|
||||
<keyword name="File menu" ref="findfile.html"/>
|
||||
<keyword name="File name" ref="filedialog.html"/>
|
||||
<keyword name="File dialog" ref="filedialog.html"/>
|
||||
<keyword name="File globbing" ref="wildcardmatching.html"/>
|
||||
<keyword name="Wildcard matching" ref="wildcardmatching.html"/>
|
||||
<keyword name="Wildcard syntax" ref="wildcardmatching.html"/>
|
||||
<keyword name="Browse" ref="browse.html"/>
|
||||
<keyword name="Directory" ref="browse.html"/>
|
||||
<keyword name="Open" ref="openfile.html"/>
|
||||
<keyword name="Select" ref="openfile.html"/>
|
||||
</keywords>
|
||||
<files>
|
||||
<file>browse.html</file>
|
||||
<file>filedialog.html</file>
|
||||
<file>findfile.html</file>
|
||||
<file>index.html</file>
|
||||
<file>intro.html</file>
|
||||
<file>openfile.html</file>
|
||||
<file>wildcardmatching.html</file>
|
||||
<file>images/browse.png</file>
|
||||
<file>images/fadedfilemenu.png</file>
|
||||
<file>images/filedialog.png</file>
|
||||
<file>images/handbook.png</file>
|
||||
<file>images/mainwindow.png</file>
|
||||
<file>images/open.png</file>
|
||||
<file>images/wildcard.png</file>
|
||||
</files>
|
||||
</filterSection>
|
||||
</QtHelpProject>
|
|
@ -0,0 +1,57 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Wildcard Matching</title>
|
||||
</head>
|
||||
<body style="font-size:12pt;font-family:helvetica">
|
||||
|
||||
<p><center><h2>Wildcard Matching</h2></center></p>
|
||||
|
||||
<p>
|
||||
Most command shells such as bash or cmd.exe support "file
|
||||
globbing", the ability to identify a group of files by using
|
||||
wildcards.
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<table align="center" cellpadding="2" cellspacing="1" border="0" width="100%">
|
||||
<tr valign="top" bgcolor="#f0f0f0">
|
||||
<td><center><img src="images/wildcard.png" /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
Wildcard matching provides four features:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li>Any character represents itself apart from those
|
||||
mentioned below. Thus 'c' matches the character 'c'.
|
||||
</li>
|
||||
<li>The '?' character matches any single character.</li>
|
||||
<li>The '*' matches zero or more of any characters.</li>
|
||||
<li>Sets of characters can be represented in square brackets.
|
||||
Within the character class, like outside, backslash
|
||||
has no special meaning.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
For example we could identify HTML files with
|
||||
<code>*.html</code>. This will match zero or more characters
|
||||
followed by a dot followed by 'h', 't', 'm' and 'l'.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
See also: <a href="browse.html">Browse</a>, <a href="filedialog.html">File Dialog</a>,
|
||||
<a href="findfile.html">Find File</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,229 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "assistant.h"
|
||||
#include "findfiledialog.h"
|
||||
#include "textedit.h"
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QDir>
|
||||
#include <QFileDialog>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QToolButton>
|
||||
#include <QTreeWidget>
|
||||
#include <QTreeWidgetItem>
|
||||
|
||||
//! [0]
|
||||
FindFileDialog::FindFileDialog(TextEdit *editor, Assistant *assistant)
|
||||
: QDialog(editor)
|
||||
{
|
||||
currentAssistant = assistant;
|
||||
currentEditor = editor;
|
||||
//! [0]
|
||||
|
||||
createButtons();
|
||||
createComboBoxes();
|
||||
createFilesTree();
|
||||
createLabels();
|
||||
createLayout();
|
||||
|
||||
directoryComboBox->addItem(QDir::toNativeSeparators(QDir::currentPath()));
|
||||
fileNameComboBox->addItem("*");
|
||||
findFiles();
|
||||
|
||||
setWindowTitle(tr("Find File"));
|
||||
//! [1]
|
||||
}
|
||||
//! [1]
|
||||
|
||||
void FindFileDialog::browse()
|
||||
{
|
||||
QString currentDirectory = directoryComboBox->currentText();
|
||||
QString newDirectory = QFileDialog::getExistingDirectory(this,
|
||||
tr("Select Directory"), currentDirectory);
|
||||
if (!newDirectory.isEmpty()) {
|
||||
directoryComboBox->addItem(QDir::toNativeSeparators(newDirectory));
|
||||
directoryComboBox->setCurrentIndex(directoryComboBox->count() - 1);
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
//! [2]
|
||||
void FindFileDialog::help()
|
||||
{
|
||||
currentAssistant->showDocumentation("filedialog.html");
|
||||
}
|
||||
//! [2]
|
||||
|
||||
void FindFileDialog::openFile()
|
||||
{
|
||||
auto item = foundFilesTree->currentItem();
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
QString fileName = item->text(0);
|
||||
QString path = directoryComboBox->currentText() + QDir::separator();
|
||||
|
||||
currentEditor->setContents(path + fileName);
|
||||
close();
|
||||
}
|
||||
|
||||
void FindFileDialog::update()
|
||||
{
|
||||
findFiles();
|
||||
buttonBox->button(QDialogButtonBox::Open)->setEnabled(
|
||||
foundFilesTree->topLevelItemCount() > 0);
|
||||
}
|
||||
|
||||
void FindFileDialog::findFiles()
|
||||
{
|
||||
QRegExp filePattern(fileNameComboBox->currentText() + "*");
|
||||
filePattern.setPatternSyntax(QRegExp::Wildcard);
|
||||
|
||||
QDir directory(directoryComboBox->currentText());
|
||||
|
||||
const QStringList allFiles = directory.entryList(QDir::Files | QDir::NoSymLinks);
|
||||
QStringList matchingFiles;
|
||||
|
||||
for (const QString &file : allFiles) {
|
||||
if (filePattern.exactMatch(file))
|
||||
matchingFiles << file;
|
||||
}
|
||||
showFiles(matchingFiles);
|
||||
}
|
||||
|
||||
void FindFileDialog::showFiles(const QStringList &files)
|
||||
{
|
||||
foundFilesTree->clear();
|
||||
|
||||
for (int i = 0; i < files.count(); ++i) {
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem(foundFilesTree);
|
||||
item->setText(0, files[i]);
|
||||
}
|
||||
|
||||
if (files.count() > 0)
|
||||
foundFilesTree->setCurrentItem(foundFilesTree->topLevelItem(0));
|
||||
}
|
||||
|
||||
void FindFileDialog::createButtons()
|
||||
{
|
||||
browseButton = new QToolButton;
|
||||
browseButton->setText(tr("..."));
|
||||
connect(browseButton, &QAbstractButton::clicked, this, &FindFileDialog::browse);
|
||||
|
||||
buttonBox = new QDialogButtonBox(QDialogButtonBox::Open
|
||||
| QDialogButtonBox::Cancel
|
||||
| QDialogButtonBox::Help);
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &FindFileDialog::openFile);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
connect(buttonBox, &QDialogButtonBox::helpRequested, this, &FindFileDialog::help);
|
||||
}
|
||||
|
||||
void FindFileDialog::createComboBoxes()
|
||||
{
|
||||
directoryComboBox = new QComboBox;
|
||||
fileNameComboBox = new QComboBox;
|
||||
|
||||
fileNameComboBox->setEditable(true);
|
||||
fileNameComboBox->setSizePolicy(QSizePolicy::Expanding,
|
||||
QSizePolicy::Preferred);
|
||||
|
||||
directoryComboBox->setMinimumContentsLength(30);
|
||||
directoryComboBox->setSizeAdjustPolicy(
|
||||
QComboBox::AdjustToContents);
|
||||
directoryComboBox->setSizePolicy(QSizePolicy::Expanding,
|
||||
QSizePolicy::Preferred);
|
||||
|
||||
connect(fileNameComboBox, &QComboBox::editTextChanged,
|
||||
this, &FindFileDialog::update);
|
||||
connect(directoryComboBox, &QComboBox::currentTextChanged,
|
||||
this, &FindFileDialog::update);
|
||||
}
|
||||
|
||||
void FindFileDialog::createFilesTree()
|
||||
{
|
||||
foundFilesTree = new QTreeWidget;
|
||||
foundFilesTree->setColumnCount(1);
|
||||
foundFilesTree->setHeaderLabels(QStringList(tr("Matching Files")));
|
||||
foundFilesTree->setRootIsDecorated(false);
|
||||
foundFilesTree->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
|
||||
connect(foundFilesTree, &QTreeWidget::itemActivated,
|
||||
this, &FindFileDialog::openFile);
|
||||
}
|
||||
|
||||
void FindFileDialog::createLabels()
|
||||
{
|
||||
directoryLabel = new QLabel(tr("Search in:"));
|
||||
fileNameLabel = new QLabel(tr("File name (including wildcards):"));
|
||||
}
|
||||
|
||||
void FindFileDialog::createLayout()
|
||||
{
|
||||
QHBoxLayout *fileLayout = new QHBoxLayout;
|
||||
fileLayout->addWidget(fileNameLabel);
|
||||
fileLayout->addWidget(fileNameComboBox);
|
||||
|
||||
QHBoxLayout *directoryLayout = new QHBoxLayout;
|
||||
directoryLayout->addWidget(directoryLabel);
|
||||
directoryLayout->addWidget(directoryComboBox);
|
||||
directoryLayout->addWidget(browseButton);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(fileLayout);
|
||||
mainLayout->addLayout(directoryLayout);
|
||||
mainLayout->addWidget(foundFilesTree);
|
||||
mainLayout->addStretch();
|
||||
mainLayout->addWidget(buttonBox);
|
||||
setLayout(mainLayout);
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef FINDFILEDIALOG_H
|
||||
#define FINDFILEDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QComboBox;
|
||||
class QDialogButtonBox;
|
||||
class QLabel;
|
||||
class QToolButton;
|
||||
class QTreeWidget;
|
||||
class QTreeWidgetItem;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class Assistant;
|
||||
class TextEdit;
|
||||
|
||||
//! [0]
|
||||
class FindFileDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FindFileDialog(TextEdit *editor, Assistant *assistant);
|
||||
|
||||
private slots:
|
||||
void browse();
|
||||
void help();
|
||||
void openFile();
|
||||
void update();
|
||||
|
||||
private:
|
||||
void findFiles();
|
||||
void showFiles(const QStringList &files);
|
||||
|
||||
void createButtons();
|
||||
void createComboBoxes();
|
||||
void createFilesTree();
|
||||
void createLabels();
|
||||
void createLayout();
|
||||
|
||||
Assistant *currentAssistant;
|
||||
TextEdit *currentEditor;
|
||||
QTreeWidget *foundFilesTree;
|
||||
|
||||
QComboBox *directoryComboBox;
|
||||
QComboBox *fileNameComboBox;
|
||||
|
||||
QLabel *directoryLabel;
|
||||
QLabel *fileNameLabel;
|
||||
|
||||
QDialogButtonBox *buttonBox;
|
||||
|
||||
QToolButton *browseButton;
|
||||
};
|
||||
//! [0]
|
||||
|
||||
#endif
|
|
@ -0,0 +1,61 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
MainWindow window;
|
||||
window.show();
|
||||
return app.exec();
|
||||
}
|
|
@ -0,0 +1,156 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "assistant.h"
|
||||
#include "findfiledialog.h"
|
||||
#include "mainwindow.h"
|
||||
#include "textedit.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
#include <QLibraryInfo>
|
||||
#include <QMenu>
|
||||
#include <QMenuBar>
|
||||
#include <QMessageBox>
|
||||
|
||||
// ![0]
|
||||
MainWindow::MainWindow()
|
||||
{
|
||||
assistant = new Assistant;
|
||||
// ![0]
|
||||
textViewer = new TextEdit;
|
||||
textViewer->setContents(QLibraryInfo::location(QLibraryInfo::ExamplesPath)
|
||||
+ QLatin1String("/assistant/simpletextviewer/documentation/intro.html"));
|
||||
setCentralWidget(textViewer);
|
||||
|
||||
createActions();
|
||||
createMenus();
|
||||
|
||||
setWindowTitle(tr("Simple Text Viewer"));
|
||||
resize(750, 400);
|
||||
// ![1]
|
||||
}
|
||||
//! [1]
|
||||
|
||||
//! [2]
|
||||
void MainWindow::closeEvent(QCloseEvent *)
|
||||
{
|
||||
delete assistant;
|
||||
}
|
||||
//! [2]
|
||||
|
||||
void MainWindow::about()
|
||||
{
|
||||
QMessageBox::about(this, tr("About Simple Text Viewer"),
|
||||
tr("This example demonstrates how to use\n"
|
||||
"Qt Assistant as help system for your\n"
|
||||
"own application."));
|
||||
}
|
||||
|
||||
//! [3]
|
||||
void MainWindow::showDocumentation()
|
||||
{
|
||||
assistant->showDocumentation("index.html");
|
||||
}
|
||||
//! [3]
|
||||
|
||||
void MainWindow::open()
|
||||
{
|
||||
FindFileDialog dialog(textViewer, assistant);
|
||||
dialog.exec();
|
||||
}
|
||||
|
||||
//! [4]
|
||||
void MainWindow::createActions()
|
||||
{
|
||||
assistantAct = new QAction(tr("Help Contents"), this);
|
||||
assistantAct->setShortcut(QKeySequence::HelpContents);
|
||||
connect(assistantAct, &QAction::triggered, this, &MainWindow::showDocumentation);
|
||||
//! [4]
|
||||
|
||||
openAct = new QAction(tr("&Open..."), this);
|
||||
openAct->setShortcut(QKeySequence::Open);
|
||||
connect(openAct, &QAction::triggered, this, &MainWindow::open);
|
||||
|
||||
clearAct = new QAction(tr("&Clear"), this);
|
||||
clearAct->setShortcut(tr("Ctrl+C"));
|
||||
connect(clearAct, &QAction::triggered, textViewer, &QTextEdit::clear);
|
||||
|
||||
exitAct = new QAction(tr("E&xit"), this);
|
||||
exitAct->setShortcuts(QKeySequence::Quit);
|
||||
connect(exitAct, &QAction::triggered, this, &QWidget::close);
|
||||
|
||||
aboutAct = new QAction(tr("&About"), this);
|
||||
connect(aboutAct, &QAction::triggered, this, &MainWindow::about);
|
||||
|
||||
aboutQtAct = new QAction(tr("About &Qt"), this);
|
||||
connect(aboutQtAct, &QAction::triggered, QApplication::aboutQt);
|
||||
//! [5]
|
||||
}
|
||||
//! [5]
|
||||
|
||||
void MainWindow::createMenus()
|
||||
{
|
||||
fileMenu = new QMenu(tr("&File"), this);
|
||||
fileMenu->addAction(openAct);
|
||||
fileMenu->addAction(clearAct);
|
||||
fileMenu->addSeparator();
|
||||
fileMenu->addAction(exitAct);
|
||||
|
||||
helpMenu = new QMenu(tr("&Help"), this);
|
||||
helpMenu->addAction(assistantAct);
|
||||
helpMenu->addSeparator();
|
||||
helpMenu->addAction(aboutAct);
|
||||
helpMenu->addAction(aboutQtAct);
|
||||
|
||||
|
||||
menuBar()->addMenu(fileMenu);
|
||||
menuBar()->addMenu(helpMenu);
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
class QMenu;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class Assistant;
|
||||
class TextEdit;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow();
|
||||
|
||||
private slots:
|
||||
void about();
|
||||
void showDocumentation();
|
||||
void open();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
private:
|
||||
void createActions();
|
||||
void createMenus();
|
||||
|
||||
Assistant *assistant;
|
||||
TextEdit *textViewer;
|
||||
|
||||
QMenu *fileMenu;
|
||||
QMenu *helpMenu;
|
||||
|
||||
QAction *assistantAct;
|
||||
QAction *clearAct;
|
||||
QAction *openAct;
|
||||
QAction *exitAct;
|
||||
QAction *aboutAct;
|
||||
QAction *aboutQtAct;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,19 @@
|
|||
HEADERS = mainwindow.h \
|
||||
findfiledialog.h \
|
||||
assistant.h \
|
||||
textedit.h
|
||||
SOURCES = main.cpp \
|
||||
mainwindow.cpp \
|
||||
findfiledialog.cpp \
|
||||
assistant.cpp \
|
||||
textedit.cpp
|
||||
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
||||
QT += widgets
|
||||
|
||||
target.path = $$[QT_INSTALL_EXAMPLES]/assistant/simpletextviewer
|
||||
docs.files += $$PWD/documentation
|
||||
docs.path = $$target.path
|
||||
|
||||
INSTALLS += target docs
|
|
@ -0,0 +1,84 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "textedit.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
|
||||
TextEdit::TextEdit(QWidget *parent)
|
||||
: QTextEdit(parent)
|
||||
{
|
||||
setReadOnly(true);
|
||||
}
|
||||
|
||||
void TextEdit::setContents(const QString &fileName)
|
||||
{
|
||||
QFileInfo fi(fileName);
|
||||
srcUrl = QUrl::fromLocalFile(fi.absoluteFilePath());
|
||||
QFile file(fileName);
|
||||
if (file.open(QIODevice::ReadOnly)) {
|
||||
QString data(file.readAll());
|
||||
if (fileName.endsWith(".html"))
|
||||
setHtml(data);
|
||||
else
|
||||
setPlainText(data);
|
||||
}
|
||||
}
|
||||
|
||||
QVariant TextEdit::loadResource(int type, const QUrl &name)
|
||||
{
|
||||
if (type == QTextDocument::ImageResource) {
|
||||
QFile file(srcUrl.resolved(name).toLocalFile());
|
||||
if (file.open(QIODevice::ReadOnly))
|
||||
return file.readAll();
|
||||
}
|
||||
return QTextEdit::loadResource(type, name);
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2017 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef TEXTEDIT_H
|
||||
#define TEXTEDIT_H
|
||||
|
||||
#include <QTextEdit>
|
||||
#include <QUrl>
|
||||
|
||||
class TextEdit : public QTextEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TextEdit(QWidget *parent = nullptr);
|
||||
void setContents(const QString &fileName);
|
||||
|
||||
private:
|
||||
QVariant loadResource(int type, const QUrl &name) override;
|
||||
QUrl srcUrl;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,10 @@
|
|||
Qt Designer is a capable graphical user interface designer that lets you
|
||||
create and configure forms without writing code. GUIs created with
|
||||
Qt Designer can be compiled into an application or created at run-time.
|
||||
|
||||
Some of the examples in this directory can only be used from within Qt
|
||||
Designer.
|
||||
|
||||
|
||||
Documentation for these examples can be found via the Examples
|
||||
link in the main Qt documentation.
|
|
@ -0,0 +1,10 @@
|
|||
#! [0]
|
||||
HEADERS = calculatorform.h
|
||||
RESOURCES = calculatorbuilder.qrc
|
||||
SOURCES = calculatorform.cpp \
|
||||
main.cpp
|
||||
QT += widgets uitools
|
||||
#! [0]
|
||||
|
||||
target.path = $$[QT_INSTALL_EXAMPLES]/designer/calculatorbuilder
|
||||
INSTALLS += target
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/forms">
|
||||
<file>calculatorform.ui</file>
|
||||
</qresource>
|
||||
</RCC>
|
|
@ -0,0 +1,104 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
//! [0]
|
||||
#include <QtUiTools>
|
||||
//! [0]
|
||||
#include <QSpinBox>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
#include <QFile>
|
||||
|
||||
#include "calculatorform.h"
|
||||
|
||||
//! [1]
|
||||
CalculatorForm::CalculatorForm(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
QUiLoader loader;
|
||||
|
||||
QFile file(":/forms/calculatorform.ui");
|
||||
file.open(QFile::ReadOnly);
|
||||
QWidget *formWidget = loader.load(&file, this);
|
||||
file.close();
|
||||
//! [1]
|
||||
|
||||
//! [2]
|
||||
ui_inputSpinBox1 = findChild<QSpinBox*>("inputSpinBox1");
|
||||
ui_inputSpinBox2 = findChild<QSpinBox*>("inputSpinBox2");
|
||||
ui_outputWidget = findChild<QLabel*>("outputWidget");
|
||||
//! [2]
|
||||
|
||||
//! [3]
|
||||
QMetaObject::connectSlotsByName(this);
|
||||
//! [3]
|
||||
|
||||
//! [4]
|
||||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
layout->addWidget(formWidget);
|
||||
setLayout(layout);
|
||||
|
||||
setWindowTitle(tr("Calculator Builder"));
|
||||
}
|
||||
//! [4]
|
||||
|
||||
//! [5]
|
||||
void CalculatorForm::on_inputSpinBox1_valueChanged(int value)
|
||||
{
|
||||
ui_outputWidget->setText(QString::number(value + ui_inputSpinBox2->value()));
|
||||
}
|
||||
//! [5] //! [6]
|
||||
|
||||
//! [6] //! [7]
|
||||
void CalculatorForm::on_inputSpinBox2_valueChanged(int value)
|
||||
{
|
||||
ui_outputWidget->setText(QString::number(value + ui_inputSpinBox1->value()));
|
||||
}
|
||||
//! [7]
|
|
@ -0,0 +1,80 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CALCULATORFORM_H
|
||||
#define CALCULATORFORM_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QLabel;
|
||||
class QSpinBox;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
//! [0]
|
||||
class CalculatorForm : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CalculatorForm(QWidget *parent = nullptr);
|
||||
|
||||
private slots:
|
||||
void on_inputSpinBox1_valueChanged(int value);
|
||||
void on_inputSpinBox2_valueChanged(int value);
|
||||
|
||||
private:
|
||||
QSpinBox *ui_inputSpinBox1;
|
||||
QSpinBox *ui_inputSpinBox2;
|
||||
QLabel *ui_outputWidget;
|
||||
};
|
||||
//! [0]
|
||||
|
||||
#endif
|
|
@ -0,0 +1,303 @@
|
|||
<ui version="4.0" >
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>CalculatorForm</class>
|
||||
<widget class="QWidget" name="CalculatorForm" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >CalculatorForm</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>276</width>
|
||||
<height>98</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>5</hsizetype>
|
||||
<vsizetype>5</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>Calculator Builder</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" />
|
||||
</property>
|
||||
<property name="margin" >
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item row="0" column="0" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" />
|
||||
</property>
|
||||
<property name="margin" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" />
|
||||
</property>
|
||||
<property name="margin" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >label</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>1</x>
|
||||
<y>1</y>
|
||||
<width>45</width>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Input 1</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="inputSpinBox1" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >inputSpinBox1</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>1</x>
|
||||
<y>26</y>
|
||||
<width>45</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="mouseTracking" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >label_3</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>54</x>
|
||||
<y>1</y>
|
||||
<width>7</width>
|
||||
<height>52</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>+</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" />
|
||||
</property>
|
||||
<property name="margin" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >label_2</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>1</x>
|
||||
<y>1</y>
|
||||
<width>45</width>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Input 2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="inputSpinBox2" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >inputSpinBox2</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>1</x>
|
||||
<y>26</y>
|
||||
<width>45</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="mouseTracking" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3_2" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >label_3_2</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>120</x>
|
||||
<y>1</y>
|
||||
<width>7</width>
|
||||
<height>52</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>=</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" />
|
||||
</property>
|
||||
<property name="margin" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2_2_2" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >label_2_2_2</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>1</x>
|
||||
<y>1</y>
|
||||
<width>37</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Output</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="outputWidget" >
|
||||
<property name="objectName" >
|
||||
<string notr="true" >outputWidget</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>1</x>
|
||||
<y>24</y>
|
||||
<width>37</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow" >
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<set>Qt::AlignAbsolute|Qt::AlignBottom|Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignHorizontal_Mask|Qt::AlignJustify|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing|Qt::AlignVCenter|Qt::AlignVertical_Mask</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<spacer>
|
||||
<property name="objectName" >
|
||||
<string notr="true" >verticalSpacer</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>85</x>
|
||||
<y>69</y>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<spacer>
|
||||
<property name="objectName" >
|
||||
<string notr="true" >horizontalSpacer</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>188</x>
|
||||
<y>26</y>
|
||||
<width>79</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|