diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/COPYING b/COPYING
old mode 100644
new mode 100755
index 818433ecc0e094a4db1023c68b33f24344643ad8..94a9ed024d3859793618152ea559a168bbcbb5e2
--- a/COPYING
+++ b/COPYING
@@ -1,674 +1,674 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- 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.
-
-
- Copyright (C)
-
- 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 .
-
-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:
-
- Copyright (C)
- 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
-.
-
- 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
-.
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ 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.
+
+
+ Copyright (C)
+
+ 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 .
+
+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:
+
+ Copyright (C)
+ 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
+.
+
+ 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
+.
diff --git a/DSView/CMake/FindFFTW.cmake b/DSView/CMake/FindFFTW.cmake
old mode 100644
new mode 100755
diff --git a/DSView/CMake/Findlibusb-1.0.cmake b/DSView/CMake/Findlibusb-1.0.cmake
old mode 100644
new mode 100755
diff --git a/DSView/CMake/Findlibzip.cmake b/DSView/CMake/Findlibzip.cmake
old mode 100644
new mode 100755
diff --git a/DSView/CMakeLists.txt b/DSView/CMakeLists.txt
old mode 100644
new mode 100755
index c1c33e10f7eee360023fa16223952070c846f2ad..6e70b639f871bdedff3737b6c9f9c5029d9e2f3a
--- a/DSView/CMakeLists.txt
+++ b/DSView/CMakeLists.txt
@@ -104,9 +104,9 @@ find_package(FFTW REQUIRED)
set(DS_TITLE DSView)
set(DS_DESCRIPTION "A GUI for instruments of DreamSourceLab")
-set(DS_VERSION_MAJOR 0)
-set(DS_VERSION_MINOR 9)
-set(DS_VERSION_MICRO 9)
+set(DS_VERSION_MAJOR 1)
+set(DS_VERSION_MINOR 0)
+set(DS_VERSION_MICRO 0)
set(DS_VERSION_STRING
${DS_VERSION_MAJOR}.${DS_VERSION_MINOR}.${DS_VERSION_MICRO}
)
@@ -121,95 +121,102 @@ configure_file (
#-------------------------------------------------------------------------------
set(DSView_SOURCES
- main.cpp
- pv/sigsession.cpp
- pv/mainwindow.cpp
- pv/devicemanager.cpp
- pv/data/snapshot.cpp
- pv/data/signaldata.cpp
- pv/data/logicsnapshot.cpp
- pv/data/logic.cpp
- pv/data/analogsnapshot.cpp
- pv/data/analog.cpp
- pv/dialogs/deviceoptions.cpp
- pv/prop/property.cpp
- pv/prop/int.cpp
- pv/prop/enum.cpp
- pv/prop/double.cpp
- pv/prop/bool.cpp
- pv/prop/binding/binding.cpp
- pv/toolbars/samplingbar.cpp
- pv/view/viewport.cpp
- pv/view/view.cpp
- pv/view/timemarker.cpp
- pv/view/signal.cpp
- pv/view/ruler.cpp
- pv/view/logicsignal.cpp
- pv/view/header.cpp
- pv/view/cursor.cpp
- pv/view/analogsignal.cpp
- pv/prop/binding/deviceoptions.cpp
- pv/toolbars/trigbar.cpp
- pv/toolbars/filebar.cpp
- pv/dock/protocoldock.cpp
- pv/dock/triggerdock.cpp
- pv/dock/measuredock.cpp
- pv/dock/searchdock.cpp
- pv/toolbars/logobar.cpp
- pv/data/groupsnapshot.cpp
- pv/view/groupsignal.cpp
- pv/data/group.cpp
- pv/dialogs/about.cpp
- pv/dialogs/search.cpp
- pv/data/dsosnapshot.cpp
+ main.cpp
+ pv/sigsession.cpp
+ pv/mainwindow.cpp
+ pv/devicemanager.cpp
+ pv/data/snapshot.cpp
+ pv/data/signaldata.cpp
+ pv/data/logicsnapshot.cpp
+ pv/data/logic.cpp
+ pv/data/analogsnapshot.cpp
+ pv/data/analog.cpp
+ pv/dialogs/deviceoptions.cpp
+ pv/prop/property.cpp
+ pv/prop/int.cpp
+ pv/prop/enum.cpp
+ pv/prop/double.cpp
+ pv/prop/bool.cpp
+ pv/prop/binding/binding.cpp
+ pv/toolbars/samplingbar.cpp
+ pv/view/viewport.cpp
+ pv/view/view.cpp
+ pv/view/timemarker.cpp
+ pv/view/signal.cpp
+ pv/view/ruler.cpp
+ pv/view/logicsignal.cpp
+ pv/view/header.cpp
+ pv/view/cursor.cpp
+ pv/view/analogsignal.cpp
+ pv/prop/binding/deviceoptions.cpp
+ pv/toolbars/trigbar.cpp
+ pv/toolbars/filebar.cpp
+ pv/dock/protocoldock.cpp
+ pv/dock/triggerdock.cpp
+ pv/dock/measuredock.cpp
+ pv/dock/searchdock.cpp
+ pv/toolbars/logobar.cpp
+ pv/data/groupsnapshot.cpp
+ pv/view/groupsignal.cpp
+ pv/data/group.cpp
+ pv/dialogs/about.cpp
+ pv/dialogs/search.cpp
+ pv/data/dsosnapshot.cpp
pv/data/dso.cpp
- pv/view/dsosignal.cpp
- pv/view/dsldial.cpp
- pv/dock/dsotriggerdock.cpp
- pv/view/trace.cpp
- pv/view/selectableitem.cpp
- pv/data/decoderstack.cpp
- pv/data/decode/rowdata.cpp
- pv/data/decode/row.cpp
- pv/data/decode/decoder.cpp
- pv/data/decode/annotation.cpp
- pv/view/decodetrace.cpp
- pv/prop/binding/decoderoptions.cpp
- pv/widgets/fakelineedit.cpp
- pv/widgets/decodermenu.cpp
- pv/widgets/decodergroupbox.cpp
- pv/prop/string.cpp
- pv/device/sessionfile.cpp
- pv/device/inputfile.cpp
- pv/device/file.cpp
- pv/device/devinst.cpp
- pv/dialogs/storeprogress.cpp
- pv/storesession.cpp
- pv/view/devmode.cpp
- pv/device/device.cpp
- pv/dialogs/waitingdialog.cpp
- pv/dialogs/dsomeasure.cpp
- pv/dialogs/calibration.cpp
- pv/data/decodermodel.cpp
- pv/dialogs/protocollist.cpp
- pv/dialogs/protocolexp.cpp
- pv/dialogs/fftoptions.cpp
- pv/data/mathstack.cpp
- pv/view/mathtrace.cpp
- dsapplication.cpp
- pv/widgets/viewstatus.cpp
- pv/toolbars/titlebar.cpp
- pv/mainframe.cpp
- pv/widgets/border.cpp
- pv/dialogs/dsmessagebox.cpp
- pv/dialogs/shadow.cpp
+ pv/view/dsosignal.cpp
+ pv/view/dsldial.cpp
+ pv/dock/dsotriggerdock.cpp
+ pv/view/trace.cpp
+ pv/view/selectableitem.cpp
+ pv/data/decoderstack.cpp
+ pv/data/decode/rowdata.cpp
+ pv/data/decode/row.cpp
+ pv/data/decode/decoder.cpp
+ pv/data/decode/annotation.cpp
+ pv/view/decodetrace.cpp
+ pv/prop/binding/decoderoptions.cpp
+ pv/widgets/fakelineedit.cpp
+ pv/widgets/decodermenu.cpp
+ pv/widgets/decodergroupbox.cpp
+ pv/prop/string.cpp
+ pv/device/sessionfile.cpp
+ pv/device/inputfile.cpp
+ pv/device/file.cpp
+ pv/device/devinst.cpp
+ pv/dialogs/storeprogress.cpp
+ pv/storesession.cpp
+ pv/view/devmode.cpp
+ pv/device/device.cpp
+ pv/dialogs/waitingdialog.cpp
+ pv/dialogs/dsomeasure.cpp
+ pv/dialogs/calibration.cpp
+ pv/data/decodermodel.cpp
+ pv/dialogs/protocollist.cpp
+ pv/dialogs/protocolexp.cpp
+ pv/dialogs/fftoptions.cpp
+ pv/data/mathstack.cpp
+ pv/view/mathtrace.cpp
+ dsapplication.cpp
+ pv/toolbars/titlebar.cpp
+ pv/mainframe.cpp
+ pv/widgets/border.cpp
+ pv/dialogs/dsmessagebox.cpp
+ pv/dialogs/shadow.cpp
pv/dialogs/dsdialog.cpp
pv/dialogs/interval.cpp
pv/prop/binding/probeoptions.cpp
+ pv/view/viewstatus.cpp
+ pv/dialogs/lissajousoptions.cpp
+ pv/view/lissajoustrace.cpp
+ pv/view/spectrumtrace.cpp
+ pv/data/spectrumstack.cpp
+ pv/dialogs/mathoptions.cpp
+ pv/dialogs/regionoptions.cpp
+ pv/view/xcursor.cpp
)
set(DSView_HEADERS
- pv/sigsession.h
+ pv/sigsession.h
pv/mainwindow.h
pv/dialogs/deviceoptions.h
pv/prop/property.h
@@ -254,7 +261,7 @@ set(DSView_HEADERS
pv/dialogs/fftoptions.h
pv/data/mathstack.h
pv/view/mathtrace.h
- pv/widgets/viewstatus.h
+ pv/view/viewstatus.h
pv/toolbars/titlebar.h
pv/mainframe.h
pv/widgets/border.h
@@ -262,6 +269,17 @@ set(DSView_HEADERS
pv/dialogs/shadow.h
pv/dialogs/dsdialog.h
pv/dialogs/interval.h
+ pv/dialogs/lissajousoptions.h
+ pv/view/lissajoustrace.h
+ pv/view/spectrumtrace.h
+ pv/data/spectrumstack.h
+ pv/dialogs/mathoptions.h
+ pv/dialogs/regionoptions.h
+ pv/view/xcursor.h
+ pv/view/signal.h
+ pv/view/logicsignal.h
+ pv/view/analogsignal.h
+ pv/view/dsosignal.h
)
set(DSView_FORMS
@@ -269,7 +287,8 @@ set(DSView_FORMS
set(DSView_RESOURCES
DSView.qrc
- darkstyle/style.qrc
+ themes/breeze.qrc
+ languages/language.qrc
)
if(ENABLE_DECODE)
@@ -401,8 +420,10 @@ set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_
install(TARGETS ${PROJECT_NAME} DESTINATION bin/)
install(DIRECTORY res DESTINATION share/${PROJECT_NAME})
install(FILES icons/logo.png DESTINATION share/${PROJECT_NAME} RENAME logo.png)
-install(FILES ../NEWS DESTINATION share/${PROJECT_NAME} RENAME NEWS)
-install(FILES ../ug.pdf DESTINATION share/${PROJECT_NAME} RENAME ug.pdf)
+install(FILES ../NEWS25 DESTINATION share/${PROJECT_NAME} RENAME NEWS25)
+install(FILES ../NEWS31 DESTINATION share/${PROJECT_NAME} RENAME NEWS31)
+install(FILES ../ug25.pdf DESTINATION share/${PROJECT_NAME} RENAME ug25.pdf)
+install(FILES ../ug31.pdf DESTINATION share/${PROJECT_NAME} RENAME ug31.pdf)
install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/)
install(FILES DSView.desktop DESTINATION /usr/share/applications/)
diff --git a/DSView/COPYING b/DSView/COPYING
old mode 100644
new mode 100755
diff --git a/DSView/DSView.desktop b/DSView/DSView.desktop
old mode 100644
new mode 100755
diff --git a/DSView/DSView.qrc b/DSView/DSView.qrc
old mode 100644
new mode 100755
index 54259634e0b2510cc6fbd557ad894db2c1f74751..a50ef6b97ebb35dee2b2293c855aebdb929e1415
--- a/DSView/DSView.qrc
+++ b/DSView/DSView.qrc
@@ -1,71 +1,137 @@
- icons/search.png
- icons/next.png
- icons/pre.png
- icons/file.png
- icons/save.png
- icons/open.png
- icons/params.png
- stylesheet.qss
- icons/down-arrow.png
- icons/slider-handle.png
- icons/trigger.png
- icons/measure.png
- icons/search-bar.png
- icons/protocol.png
- icons/logo_noColor.png
- icons/logo_color.png
- icons/capture.png
- icons/stop.png
- icons/start.png
- icons/dsl_logo.png
- icons/logo.png
- icons/hidden.png
- icons/shown.png
- icons/instant.png
- icons/trigger_dis.png
- icons/file_dis.png
- icons/measure_dis.png
- icons/protocol_dis.png
- icons/search-bar_dis.png
- icons/params_dis.png
- icons/gear.png
- icons/wait.gif
- icons/instant_dis.png
- icons/start_dis.png
- icons/settings.png
- darkstyle/style.qss
- icons/export.png
- icons/single.png
- icons/single_dis.png
- icons/math.png
- icons/math_dis.png
- icons/fft.pngicons/Blackman.png
+ icons/dsl_logo.pngicons/Flat_top.pngicons/Hamming.pngicons/Hann.png
+ icons/logo.pngicons/Rectangle.png
- icons/close.png
- icons/maximize.png
- icons/minimize.png
- icons/restore.png
- icons/nav.png
- icons/oneloop.png
- icons/repeat.png
- icons/moder.png
- icons/moder_dis.png
- icons/modes.png
- icons/modes_dis.png
- icons/add.png
- icons/del.png
- icons/add_dis.png
- icons/del_dis.png
- icons/about.png
- icons/manual.png
- icons/bug.png
- icons/support.png
- icons/showDoc.png
+ icons/search.png
+ icons/dark/about.png
+ icons/dark/add.png
+ icons/dark/bug.png
+ icons/dark/capture.png
+ icons/dark/close.png
+ icons/dark/dark.png
+ icons/dark/del.png
+ icons/dark/display.png
+ icons/dark/down-arrow.png
+ icons/dark/export.png
+ icons/dark/fft.png
+ icons/dark/file.png
+ icons/dark/gear.png
+ icons/dark/hidden.png
+ icons/dark/instant.png
+ icons/dark/light.png
+ icons/dark/logo_color.png
+ icons/dark/logo_noColor.png
+ icons/dark/manual.png
+ icons/dark/maximize.png
+ icons/dark/measure.png
+ icons/dark/minimize.png
+ icons/dark/moder.png
+ icons/dark/modes.png
+ icons/dark/nav.png
+ icons/dark/next.png
+ icons/dark/oneloop.png
+ icons/dark/open.png
+ icons/dark/params.png
+ icons/dark/pre.png
+ icons/dark/protocol.png
+ icons/dark/repeat.png
+ icons/dark/restore.png
+ icons/dark/save.png
+ icons/dark/search.png
+ icons/dark/search-bar.png
+ icons/dark/shown.png
+ icons/dark/single.png
+ icons/dark/start.png
+ icons/dark/stop.png
+ icons/dark/support.png
+ icons/dark/trigger.png
+ icons/light/about.png
+ icons/light/add.png
+ icons/light/bug.png
+ icons/light/capture.png
+ icons/light/close.png
+ icons/light/dark.png
+ icons/light/del.png
+ icons/light/display.png
+ icons/light/down-arrow.png
+ icons/light/export.png
+ icons/light/fft.png
+ icons/light/file.png
+ icons/light/gear.png
+ icons/light/hidden.png
+ icons/light/instant.png
+ icons/light/light.png
+ icons/light/logo_color.png
+ icons/light/logo_noColor.png
+ icons/light/manual.png
+ icons/light/maximize.png
+ icons/light/measure.png
+ icons/light/minimize.png
+ icons/light/moder.png
+ icons/light/modes.png
+ icons/light/nav.png
+ icons/light/next.png
+ icons/light/oneloop.png
+ icons/light/open.png
+ icons/light/params.png
+ icons/light/pre.png
+ icons/light/protocol.png
+ icons/light/repeat.png
+ icons/light/restore.png
+ icons/light/save.png
+ icons/light/search.png
+ icons/light/search-bar.png
+ icons/light/shown.png
+ icons/light/single.png
+ icons/light/start.png
+ icons/light/stop.png
+ icons/light/support.png
+ icons/light/trigger.png
+ icons/mAmplitude.png
+ icons/mBurst.png
+ icons/mDelay.png
+ icons/mFall.png
+ icons/mFreq.png
+ icons/mHigh.png
+ icons/mLow.png
+ icons/mMax.png
+ icons/mMean.png
+ icons/mMin.png
+ icons/mNduty.png
+ icons/mNover.png
+ icons/mNwidth.png
+ icons/mPcount.png
+ icons/mPduty.png
+ icons/mPeriod.png
+ icons/mPover.png
+ icons/mPwidth.png
+ icons/mRise.png
+ icons/mRms.png
+ icons/mVpp.png
+ icons/light/lissajous.png
+ icons/dark/lissajous.png
+ icons/light/function.png
+ icons/dark/function.png
+ icons/light/math.png
+ icons/dark/math.png
+ icons/math.png
+ icons/Chinese.png
+ icons/English.png
+ icons/lissajous.png
+ icons/light/wait.gif
+ icons/dark/wait.gif
+ icons/light/daq.png
+ icons/light/la.png
+ icons/light/osc.png
+ icons/dark/daq.png
+ icons/dark/la.png
+ icons/dark/osc.png
+ icons/showDoc25.png
+ icons/showDoc31.png
diff --git a/DSView/DreamSourceLab.rules b/DSView/DreamSourceLab.rules
old mode 100644
new mode 100755
diff --git a/DSView/INSTALL b/DSView/INSTALL
old mode 100644
new mode 100755
index 9b20e3a5344aed9e0a57998cea2389ae323007eb..bb41a599aa1323c23752689a7e9c15b811616095
--- a/DSView/INSTALL
+++ b/DSView/INSTALL
@@ -1,49 +1,49 @@
--------------------------------------------------------------------------------
-INSTALL
--------------------------------------------------------------------------------
-
-Requirements
-------------
-
- - git
- - g++
- - make
- - libtool
- - pkg-config >= 0.22
- - cmake >= 2.6
- - libglib >= 2.28.0
- - Qt >= 4.5
- - libboost >= 1.42 (including the following libs):
- - libboost-system
- - libboost-thread
- - libsigrok4DSL >= 0.2.0
-
-
-Building and installing
------------------------
-Get the DSView source code from: www.dreamsourcelab.com/download.html
-In order to build it, run:
-
- $ cd DSView
- $ cmake .
- $ make
-
-For installing PulseView:
-
- $ make install
-
-See the following wiki page for more (OS-specific) instructions:
-
- http://sigrok.org/wiki/Building
-
-
-Creating a source distribution package
---------------------------------------
-
-In order to build a source package begin with an unconfigured source tree.
-
- $ mkdir dist
- $ cd dist
- $ cmake ..
- $ make package_source
-
+-------------------------------------------------------------------------------
+INSTALL
+-------------------------------------------------------------------------------
+
+Requirements
+------------
+
+ - git
+ - g++
+ - make
+ - libtool
+ - pkg-config >= 0.22
+ - cmake >= 2.6
+ - libglib >= 2.28.0
+ - Qt >= 4.5
+ - libboost >= 1.42 (including the following libs):
+ - libboost-system
+ - libboost-thread
+ - libsigrok4DSL >= 0.2.0
+
+
+Building and installing
+-----------------------
+Get the DSView source code from: www.dreamsourcelab.com/download.html
+In order to build it, run:
+
+ $ cd DSView
+ $ cmake .
+ $ make
+
+For installing PulseView:
+
+ $ make install
+
+See the following wiki page for more (OS-specific) instructions:
+
+ http://sigrok.org/wiki/Building
+
+
+Creating a source distribution package
+--------------------------------------
+
+In order to build a source package begin with an unconfigured source tree.
+
+ $ mkdir dist
+ $ cd dist
+ $ cmake ..
+ $ make package_source
+
diff --git a/DSView/NEWS b/DSView/NEWS
old mode 100644
new mode 100755
index e7c2c79cc62872ac7beff8ce48ddf8cfa67266a1..dbbe97099c9ce15b360a29c8761b04fb7ecf0b98
--- a/DSView/NEWS
+++ b/DSView/NEWS
@@ -1,5 +1,5 @@
-0.1.0 (2013-12-15)
-------------------
-
- * Initial release.
-
+0.1.0 (2013-12-15)
+------------------
+
+ * Initial release.
+
diff --git a/DSView/README b/DSView/README
old mode 100644
new mode 100755
diff --git a/DSView/config.h.in b/DSView/config.h.in
old mode 100644
new mode 100755
diff --git a/DSView/darkstyle/rc/branch_closed-on.png b/DSView/darkstyle/rc/branch_closed-on.png
deleted file mode 100755
index d081e9b3b90d774450a8ea48f1184019e33a755a..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/branch_closed-on.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/branch_closed.png b/DSView/darkstyle/rc/branch_closed.png
deleted file mode 100755
index d652159a365396a046329cfc7695c89ee54431ca..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/branch_closed.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/branch_open-on.png b/DSView/darkstyle/rc/branch_open-on.png
deleted file mode 100755
index ec372b27d1adc1268321a1ffaa9a884daf6de7e6..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/branch_open-on.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/branch_open.png b/DSView/darkstyle/rc/branch_open.png
deleted file mode 100755
index 66f8e1ac619d242f3d5a31ffb11291c09ea40468..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/branch_open.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_checked.png b/DSView/darkstyle/rc/checkbox_checked.png
deleted file mode 100755
index 830cfee6568b718535c61564b95caf2d17c0958a..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_checked.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_checked_disabled.png b/DSView/darkstyle/rc/checkbox_checked_disabled.png
deleted file mode 100755
index cb63cc2fac47ad304451f864be5fb9b9085910ee..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_checked_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_checked_focus.png b/DSView/darkstyle/rc/checkbox_checked_focus.png
deleted file mode 100755
index 3cf0e54059775600a8e836deedb6554ad585602d..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_checked_focus.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_indeterminate.png b/DSView/darkstyle/rc/checkbox_indeterminate.png
deleted file mode 100755
index 41024f7688c0623c853ee9ceb8138949cb167738..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_indeterminate.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_indeterminate_disabled.png b/DSView/darkstyle/rc/checkbox_indeterminate_disabled.png
deleted file mode 100755
index abdc01d906626d5954b7eaa611fabcce80653251..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_indeterminate_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_indeterminate_focus.png b/DSView/darkstyle/rc/checkbox_indeterminate_focus.png
deleted file mode 100755
index a9a16f7e0616b4da40c0f19775dd02bcf28ce948..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_indeterminate_focus.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_unchecked.png b/DSView/darkstyle/rc/checkbox_unchecked.png
deleted file mode 100755
index 2159aca9a10f75729912579b33a1226e575799aa..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_unchecked.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_unchecked_disabled.png b/DSView/darkstyle/rc/checkbox_unchecked_disabled.png
deleted file mode 100755
index ade721e81ba47fa792d4586516b8744f8c49c8bb..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_unchecked_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/checkbox_unchecked_focus.png b/DSView/darkstyle/rc/checkbox_unchecked_focus.png
deleted file mode 100755
index 66f5bf5644e361728813470be3910ead5471f67f..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/checkbox_unchecked_focus.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/close-hover.png b/DSView/darkstyle/rc/close-hover.png
deleted file mode 100755
index 657943a668b734138256aa7bb178661030fd4a1f..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/close-hover.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/close-pressed.png b/DSView/darkstyle/rc/close-pressed.png
deleted file mode 100755
index 937d0059839ba44ac5cf03f8c047ee05815954d9..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/close-pressed.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/close.png b/DSView/darkstyle/rc/close.png
deleted file mode 100755
index bc0f5761096ef24b8b4461d9252b42dad48d0d45..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/close.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/down_arrow.png b/DSView/darkstyle/rc/down_arrow.png
deleted file mode 100755
index e271f7f90b4132c9d740058d8b6c915dbdd626d2..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/down_arrow.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/down_arrow_disabled.png b/DSView/darkstyle/rc/down_arrow_disabled.png
deleted file mode 100755
index 5805d9842bb3c8bdf9ae741ebabc690a4929585a..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/down_arrow_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/left_arrow.png b/DSView/darkstyle/rc/left_arrow.png
deleted file mode 100755
index f808d2d7208ea2fe99f6bf25bc2302fc4f36c00b..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/left_arrow.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/left_arrow_disabled.png b/DSView/darkstyle/rc/left_arrow_disabled.png
deleted file mode 100755
index f5b9af8a34edb5f8dd767bf6afa303b89a31d38f..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/left_arrow_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/radio_checked.png b/DSView/darkstyle/rc/radio_checked.png
deleted file mode 100755
index 235e6b0ba7849fa48efdd88799c29b703cac25a8..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/radio_checked.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/radio_checked_disabled.png b/DSView/darkstyle/rc/radio_checked_disabled.png
deleted file mode 100755
index bf0051ede5f00d8cecf17b37c6bb9de38bb24e19..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/radio_checked_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/radio_checked_focus.png b/DSView/darkstyle/rc/radio_checked_focus.png
deleted file mode 100755
index 14b1cb1c73089fdcbb45abe1a20425adb2dc229a..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/radio_checked_focus.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/radio_unchecked.png b/DSView/darkstyle/rc/radio_unchecked.png
deleted file mode 100755
index 9a4def65c64a9d55441f82fe66fc7f46e5b73a75..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/radio_unchecked.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/radio_unchecked_disabled.png b/DSView/darkstyle/rc/radio_unchecked_disabled.png
deleted file mode 100755
index 6ece890e750b0685bbd818f22e5fbf999ccd35e1..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/radio_unchecked_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/radio_unchecked_focus.png b/DSView/darkstyle/rc/radio_unchecked_focus.png
deleted file mode 100755
index 27af8112b4ef7fb383e10da7ff20cdc02d1119e5..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/radio_unchecked_focus.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/right_arrow.png b/DSView/darkstyle/rc/right_arrow.png
deleted file mode 100755
index 9b0a4e6a7a8097818d9c0626c84f19f4d690dd31..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/right_arrow.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/right_arrow_disabled.png b/DSView/darkstyle/rc/right_arrow_disabled.png
deleted file mode 100755
index 5c0bee402ff962fe285183b321feba59dac4f3d6..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/right_arrow_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/sizegrip.png b/DSView/darkstyle/rc/sizegrip.png
deleted file mode 100755
index 350583aaac4aa474ac449eaea2cc7ddd060276b9..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/sizegrip.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/stylesheet-branch-end.png b/DSView/darkstyle/rc/stylesheet-branch-end.png
deleted file mode 100755
index cb5d3b51f8cf7fd0f0ed26cfea722fa5a632dc1a..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/stylesheet-branch-end.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/stylesheet-branch-more.png b/DSView/darkstyle/rc/stylesheet-branch-more.png
deleted file mode 100755
index 62711409d7ed69ec98979394795822630458d9eb..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/stylesheet-branch-more.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/stylesheet-vline.png b/DSView/darkstyle/rc/stylesheet-vline.png
deleted file mode 100755
index 87536cce16aabb3710663f720f8d354b1bb0b757..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/stylesheet-vline.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/transparent.png b/DSView/darkstyle/rc/transparent.png
deleted file mode 100755
index 483df25137d1f267b9793bb6068bb58e8825f11f..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/transparent.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/undock.png b/DSView/darkstyle/rc/undock.png
deleted file mode 100755
index 88691d779507c9b809391396407f5cb4a6497c40..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/undock.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/up_arrow.png b/DSView/darkstyle/rc/up_arrow.png
deleted file mode 100755
index abcc7245212f19a5dbff1bb19647b1dd4bb05b6a..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/up_arrow.png and /dev/null differ
diff --git a/DSView/darkstyle/rc/up_arrow_disabled.png b/DSView/darkstyle/rc/up_arrow_disabled.png
deleted file mode 100755
index b9c8e3b53519f086536accd2e8adb193b66817d8..0000000000000000000000000000000000000000
Binary files a/DSView/darkstyle/rc/up_arrow_disabled.png and /dev/null differ
diff --git a/DSView/darkstyle/style.qrc b/DSView/darkstyle/style.qrc
deleted file mode 100755
index 055e402fedb09b1a69b111059621aa04c24b0347..0000000000000000000000000000000000000000
--- a/DSView/darkstyle/style.qrc
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- rc/up_arrow_disabled.png
- rc/stylesheet-branch-end.png
- rc/branch_closed-on.png
- rc/stylesheet-vline.png
- rc/branch_closed.png
- rc/branch_open-on.png
- rc/transparent.png
- rc/right_arrow_disabled.png
- rc/sizegrip.png
- rc/close.png
- rc/close-hover.png
- rc/close-pressed.png
- rc/down_arrow.png
- rc/left_arrow.png
- rc/stylesheet-branch-more.png
- rc/up_arrow.png
- rc/right_arrow.png
- rc/left_arrow_disabled.png
- rc/branch_open.png
- rc/down_arrow_disabled.png
- rc/undock.png
- rc/checkbox_checked_disabled.png
- rc/checkbox_checked_focus.png
- rc/checkbox_checked.png
- rc/checkbox_indeterminate.png
- rc/checkbox_indeterminate_focus.png
- rc/checkbox_unchecked_disabled.png
- rc/checkbox_unchecked_focus.png
- rc/checkbox_unchecked.png
- rc/radio_checked_disabled.png
- rc/radio_checked_focus.png
- rc/radio_checked.png
- rc/radio_unchecked_disabled.png
- rc/radio_unchecked_focus.png
- rc/radio_unchecked.png
-
-
- style.qss
-
-
diff --git a/DSView/darkstyle/style.qss b/DSView/darkstyle/style.qss
deleted file mode 100755
index 28636f46c645c2eb4f50b6f3fdf0122183cf5fbe..0000000000000000000000000000000000000000
--- a/DSView/darkstyle/style.qss
+++ /dev/null
@@ -1,1302 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) <2013-2014>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
-
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
-
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-QProgressBar:horizontal {
- border: 1px solid #3A3939;
- text-align: center;
- padding: 1px;
- background: #201F1F;
-}
-QProgressBar::chunk:horizontal {
- background-color: qlineargradient(spread:reflect, x1:1, y1:0.545, x2:1, y2:0, stop:0 rgba(28, 66, 111, 255), stop:1 rgba(37, 87, 146, 255));
-}
-
-QToolTip
-{
- border: 1px solid #3A3939;
- background-color: rgb(90, 102, 117);;
- color: white;
- padding: 1px;
- opacity: 200;
-}
-
-QWidget
-{
- color: silver;
- background-color: #302F2F;
- selection-background-color:#3d8ec9;
- selection-color: black;
- background-clip: border;
- border-image: none;
- outline: 0;
-}
-
-QWidget:item:hover
-{
- background-color: #78879b;
- color: black;
-}
-
-QWidget:item:selected
-{
- background-color: #3d8ec9;
-}
-
-QCheckBox
-{
- spacing: 0px;
- outline: none;
- color: #bbb;
- margin-bottom: 2px;
-}
-
-QCheckBox:disabled
-{
- color: #777777;
-}
-QCheckBox::indicator,
-QGroupBox::indicator
-{
- width: 18px;
- height: 18px;
-}
-QGroupBox::indicator
-{
- margin-left: 2px;
-}
-
-QCheckBox::indicator:unchecked,
-QCheckBox::indicator:unchecked:hover,
-QGroupBox::indicator:unchecked,
-QGroupBox::indicator:unchecked:hover
-{
- image: url(:/qss_icons/rc/checkbox_unchecked.png);
-}
-
-QCheckBox::indicator:unchecked:focus,
-QCheckBox::indicator:unchecked:pressed,
-QGroupBox::indicator:unchecked:focus,
-QGroupBox::indicator:unchecked:pressed
-{
- border: none;
- image: url(:/qss_icons/rc/checkbox_unchecked_focus.png);
-}
-
-QCheckBox::indicator:checked,
-QCheckBox::indicator:checked:hover,
-QGroupBox::indicator:checked,
-QGroupBox::indicator:checked:hover
-{
- image: url(:/qss_icons/rc/checkbox_checked.png);
-}
-
-QCheckBox::indicator:checked:focus,
-QCheckBox::indicator:checked:pressed,
-QGroupBox::indicator:checked:focus,
-QGroupBox::indicator:checked:pressed
-{
- border: none;
- image: url(:/qss_icons/rc/checkbox_checked_focus.png);
-}
-
-QCheckBox::indicator:indeterminate,
-QCheckBox::indicator:indeterminate:hover,
-QCheckBox::indicator:indeterminate:pressed
-QGroupBox::indicator:indeterminate,
-QGroupBox::indicator:indeterminate:hover,
-QGroupBox::indicator:indeterminate:pressed
-{
- image: url(:/qss_icons/rc/checkbox_indeterminate.png);
-}
-
-QCheckBox::indicator:indeterminate:focus,
-QGroupBox::indicator:indeterminate:focus
-{
- image: url(:/qss_icons/rc/checkbox_indeterminate_focus.png);
-}
-
-QCheckBox::indicator:checked:disabled,
-QGroupBox::indicator:checked:disabled
-{
- image: url(:/qss_icons/rc/checkbox_checked_disabled.png);
-}
-
-QCheckBox::indicator:unchecked:disabled,
-QGroupBox::indicator:unchecked:disabled
-{
- image: url(:/qss_icons/rc/checkbox_unchecked_disabled.png);
-}
-
-QRadioButton
-{
- spacing: 5px;
- outline: none;
- color: #bbb;
- margin-bottom: 2px;
-}
-
-QRadioButton:disabled
-{
- color: #777777;
-}
-QRadioButton::indicator
-{
- width: 21px;
- height: 21px;
-}
-
-QRadioButton::indicator:unchecked,
-QRadioButton::indicator:unchecked:hover
-{
- image: url(:/qss_icons/rc/radio_unchecked.png);
-}
-
-QRadioButton::indicator:unchecked:focus,
-QRadioButton::indicator:unchecked:pressed
-{
- border: none;
- outline: none;
- image: url(:/qss_icons/rc/radio_unchecked_focus.png);
-}
-
-QRadioButton::indicator:checked,
-QRadioButton::indicator:checked:hover
-{
- border: none;
- outline: none;
- image: url(:/qss_icons/rc/radio_checked.png);
-}
-
-QRadioButton::indicator:checked:focus,
-QRadioButton::indicato::menu-arrowr:checked:pressed
-{
- border: none;
- outline: none;
- image: url(:/qss_icons/rc/radio_checked_focus.png);
-}
-
-QRadioButton::indicator:indeterminate,
-QRadioButton::indicator:indeterminate:hover,
-QRadioButton::indicator:indeterminate:pressed
-{
- image: url(:/qss_icons/rc/radio_indeterminate.png);
-}
-
-QRadioButton::indicator:checked:disabled
-{
- outline: none;
- image: url(:/qss_icons/rc/radio_checked_disabled.png);
-}
-
-QRadioButton::indicator:unchecked:disabled
-{
- image: url(:/qss_icons/rc/radio_unchecked_disabled.png);
-}
-
-
-QMenuBar
-{
- background-color: #302F2F;
- color: silver;
-}
-
-QMenuBar::item
-{
- background: transparent;
-}
-
-QMenuBar::item:selected
-{
- background: transparent;
- border: 1px solid #3A3939;
-}
-
-QMenuBar::item:pressed
-{
- border: 1px solid #3A3939;
- background-color: #3d8ec9;
- color: black;
- margin-bottom:-1px;
- padding-bottom:1px;
-}
-
-QMenu
-{
- border: 1px solid #3A3939;
- color: silver;
- margin: 0px;
-}
-
-QMenu::item
-{
- padding: 5px 30px 5px 30px;
- margin-left: 2px;
- border: 1px solid transparent; /* reserve space for selection border */
-}
-
-QMenu::item:selected
-{
- color: black;
-}
-
-QMenu::separator {
- height: 2px;
- background: lightblue;
- margin-left: 10px;
- margin-right: 5px;
-}
-
-QMenu::indicator {
- width: 18px;
- height: 18px;
-}
-
-/* non-exclusive indicator = check box style indicator
- (see QActionGroup::setExclusive) */
-QMenu::indicator:non-exclusive:unchecked {
- image: url(:/qss_icons/rc/checkbox_unchecked.png);
-}
-
-QMenu::indicator:non-exclusive:unchecked:selected {
- image: url(:/qss_icons/rc/checkbox_unchecked_disabled.png);
-}
-
-QMenu::indicator:non-exclusive:checked {
- image: url(:/qss_icons/rc/checkbox_checked.png);
-}
-
-QMenu::indicator:non-exclusive:checked:selected {
- image: url(:/qss_icons/rc/checkbox_checked_disabled.png);
-}
-
-/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
-QMenu::indicator:exclusive:unchecked {
- image: url(:/qss_icons/rc/radio_unchecked.png);
-}
-
-QMenu::indicator:exclusive:unchecked:selected {
- image: url(:/qss_icons/rc/radio_unchecked_disabled.png);
-}
-
-QMenu::indicator:exclusive:checked {
- image: url(:/qss_icons/rc/radio_checked.png);
-}
-
-QMenu::indicator:exclusive:checked:selected {
- image: url(:/qss_icons/rc/radio_checked_disabled.png);
-}
-
-QMenu::right-arrow {
- margin: 5px;
- image: url(:/qss_icons/rc/right_arrow.png)
-}
-
-
-QWidget:disabled
-{
- color: #404040;
- background-color: #302F2F;
-}
-
-QAbstractItemView
-{
- alternate-background-color: #3A3939;
- color: silver;
- border: 1px solid 3A3939;
- border-radius: 2px;
- padding: 1px;
-}
-
-QTabWidget:focus, QCheckBox:focus, QRadioButton:focus, QSlider:focus
-{
- border: none;
-}
-
-QLineEdit
-{
- background-color: #201F1F;
- padding: 2px;
- border-style: solid;
- border: 1px solid #3A3939;
- border-radius: 2px;
- color: silver;
-}
-
-QGroupBox {
- border:1px solid #3A3939;
- border-radius: 2px;
- margin-top: 20px;
-}
-
-QGroupBox::title {
- subcontrol-origin: margin;
- subcontrol-position: top center;
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 10px;
-}
-
-QScrollBar:horizontal
-{
- height: 15px;
- margin: 3px 15px 3px 15px;
- border: 1px transparent #2A2929;
- border-radius: 4px;
- background-color: #2A2929;
-}
-
-QScrollBar::handle:horizontal
-{
- background-color: #605F5F;
- min-width: 15px;
- border-radius: 4px;
-}
-
-QScrollBar::add-line:horizontal
-{
- margin: 0px 3px 0px 3px;
- border-image: url(:/qss_icons/rc/right_arrow_disabled.png);
- width: 10px;
- height: 10px;
- subcontrol-position: right;
- subcontrol-origin: margin;
-}
-
-QScrollBar::sub-line:horizontal
-{
- margin: 0px 3px 0px 3px;
- border-image: url(:/qss_icons/rc/left_arrow_disabled.png);
- height: 10px;
- width: 10px;
- subcontrol-position: left;
- subcontrol-origin: margin;
-}
-
-QScrollBar::add-line:horizontal:hover,QScrollBar::add-line:horizontal:on
-{
- border-image: url(:/qss_icons/rc/right_arrow.png);
- height: 10px;
- width: 10px;
- subcontrol-position: right;
- subcontrol-origin: margin;
-}
-
-
-QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on
-{
- border-image: url(:/qss_icons/rc/left_arrow.png);
- height: 10px;
- width: 10px;
- subcontrol-position: left;
- subcontrol-origin: margin;
-}
-
-QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal
-{
- background: none;
-}
-
-
-QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
-{
- background: none;
-}
-
-QScrollBar:vertical
-{
- background-color: #2A2929;
- width: 15px;
- margin: 15px 3px 15px 3px;
- border: 1px transparent #2A2929;
- border-radius: 4px;
-}
-
-QScrollBar::handle:vertical
-{
- background-color: #605F5F;
- min-height: 15px;
- border-radius: 4px;
-}
-
-QScrollBar::sub-line:vertical
-{
- margin: 3px 0px 3px 0px;
- border-image: url(:/qss_icons/rc/up_arrow_disabled.png);
- height: 10px;
- width: 10px;
- subcontrol-position: top;
- subcontrol-origin: margin;
-}
-
-QScrollBar::add-line:vertical
-{
- margin: 3px 0px 3px 0px;
- border-image: url(:/qss_icons/rc/down_arrow_disabled.png);
- height: 10px;
- width: 10px;
- subcontrol-position: bottom;
- subcontrol-origin: margin;
-}
-
-QScrollBar::sub-line:vertical:hover,QScrollBar::sub-line:vertical:on
-{
-
- border-image: url(:/qss_icons/rc/up_arrow.png);
- height: 10px;
- width: 10px;
- subcontrol-position: top;
- subcontrol-origin: margin;
-}
-
-
-QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on
-{
- border-image: url(:/qss_icons/rc/down_arrow.png);
- height: 10px;
- width: 10px;
- subcontrol-position: bottom;
- subcontrol-origin: margin;
-}
-
-QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical
-{
- background: none;
-}
-
-
-QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
-{
- background: none;
-}
-
-QTextEdit
-{
- background-color: #201F1F;
- color: silver;
- border: 1px solid #3A3939;
- margin: 0;
-}
-
-QPlainTextEdit
-{
- background-color: #201F1F;;
- color: silver;
- border-radius: 2px;
- border: 1px solid #3A3939;
-}
-
-QHeaderView::section
-{
- background-color: #3A3939;
- color: silver;
- padding-left: 4px;
- border: 1px solid #6c6c6c;
-}
-
-QSizeGrip {
- image: url(:/qss_icons/rc/sizegrip.png);
- width: 12px;
- height: 12px;
-}
-
-
-QMenu::separator
-{
- height: 1px;
- background-color: #3A3939;
- color: white;
- padding-left: 4px;
- margin-left: 10px;
- margin-right: 5px;
-}
-
-QFrame
-{
- border-radius: 2px;
- border: 1px solid #444;
-}
-
-QFrame[frameShape="0"]
-{
- border-radius: 2px;
- border: 1px transparent #444;
-}
-
-QStackedWidget
-{
- border: 1px transparent black;
-}
-
-QToolBar {
- border: 1px transparent #393838;
- background: 1px solid #302F2F;
- font-weight: bold;
-}
-
-QPushButton
-{
- color: silver;
- background-color: #302F2F;
- border-width: 1px;
- border-color: #202020;
- border-style: solid;
- padding-top: 5px;
- padding-bottom: 5px;
- padding-left: 5px;
- padding-right: 5px;
- border-radius: 5px;
- outline: none;
-}
-
-QPushButton:disabled
-{
- background-color: #302F2F;
- border-width: 1px;
- border-color: #3A3939;
- border-style: solid;
- padding-top: 5px;
- padding-bottom: 5px;
- padding-left: 10px;
- padding-right: 10px;
- border-radius: 5px;
- color: #454545;
-}
-
-QComboBox
-{
- selection-background-color: #3d8ec9;
- background-color: #201F1F;
- border-style: solid;
- border: 1px solid #3A3939;
- border-radius: 2px;
- padding: 2px;
- min-width: 30px;
-}
-
-QPushButton:checked{
-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F,
- stop: 0.5 #6a6868,
- stop: 1 #302F2F);
-}
-
-QPushButton:hover
-{
-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F, stop: 0.4 #4E4D4D,
- stop: 0.5 #6a6868,
- stop: 0.6 #4E4D4D, stop: 1 #302F2F);
-}
-
-QComboBox:hover,QAbstractSpinBox:hover,QLineEdit:hover,QPlainTextEdit:hover,QAbstractView:hover,QTreeView:hover
-{
- border: 1px solid #606060;
- color: silver;
-}
-
-QComboBox:on
-{
- background-color: #626873;
- padding-top: 3px;
- padding-left: 4px;
- selection-background-color: #4a4a4a;
-}
-
-QComboBox QAbstractItemView
-{
- background-color: #201F1F;
- border-radius: 2px;
- border: 1px solid #444;
- selection-background-color: #3d8ec9;
-}
-
-QComboBox::drop-down
-{
- subcontrol-origin: padding;
- subcontrol-position: top right;
- width: 10px;
-
- border-left-width: 0px;
- border-left-color: darkgray;
- border-left-style: solid;
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
-}
-
-QComboBox::down-arrow
-{
- image: url(:/qss_icons/rc/down_arrow_disabled.png);
-}
-
-QComboBox::down-arrow:on, QComboBox::down-arrow:hover,
-QComboBox::down-arrow:focus
-{
- image: url(:/qss_icons/rc/down_arrow.png);
-}
-
-QAbstractSpinBox {
- padding-top: 2px;
- padding-bottom: 2px;
- border: 1px solid #3A3939;
- background-color: #201F1F;
- color: silver;
- border-radius: 2px;
- min-width: 60px;
-}
-
-QAbstractSpinBox:up-button
-{
- background-color: transparent;
- subcontrol-origin: border;
- subcontrol-position: center right;
-}
-
-QAbstractSpinBox:down-button
-{
- background-color: transparent;
- subcontrol-origin: border;
- subcontrol-position: center left;
-}
-
-QAbstractSpinBox::up-arrow,QAbstractSpinBox::up-arrow:disabled,QAbstractSpinBox::up-arrow:off {
- image: url(:/qss_icons/rc/up_arrow_disabled.png);
- width: 10px;
- height: 10px;
-}
-QAbstractSpinBox::up-arrow:hover
-{
- image: url(:/qss_icons/rc/up_arrow.png);
-}
-
-
-QAbstractSpinBox::down-arrow,QAbstractSpinBox::down-arrow:disabled,QAbstractSpinBox::down-arrow:off
-{
- image: url(:/qss_icons/rc/down_arrow_disabled.png);
- width: 10px;
- height: 10px;
-}
-QAbstractSpinBox::down-arrow:hover
-{
- image: url(:/qss_icons/rc/down_arrow.png);
-}
-
-
-QLabel
-{
- border: 0px solid black;
- margin-left: 2px;
- margin-right: 2px;
-}
-
-QTabWidget{
- border: 1px transparent black;
-}
-
-QTabWidget::pane {
- border: 1px transparent #444;
- border-radius: 3px;
- padding: 3px;
-}
-
-QTabBar
-{
- qproperty-drawBase: 0;
- left: 5px; /* move to the right by 5px */
-}
-
-QTabBar:focus
-{
- border: 0px transparent black;
-}
-
-QTabBar::close-button {
- image: url(:/qss_icons/rc/close.png);
- background: transparent;
-}
-
-QTabBar::close-button:hover
-{
- image: url(:/qss_icons/rc/close-hover.png);
- background: transparent;
-}
-
-QTabBar::close-button:pressed {
- image: url(:/qss_icons/rc/close-pressed.png);
- background: transparent;
-}
-
-/* TOP TABS */
-QTabBar::tab:top {
- color: #b1b1b1;
- border: 1px solid #4A4949;
- border-bottom: 1px transparent black;
- background-color: #302F2F;
- padding: 5px;
- border-top-left-radius: 2px;
- border-top-right-radius: 2px;
-}
-
-QTabBar::tab:top:!selected
-{
- color: #b1b1b1;
- background-color: #201F1F;
- border: 1px transparent #4A4949;
- border-bottom: 1px transparent #4A4949;
- border-top-left-radius: 0px;
- border-top-right-radius: 0px;
-}
-
-QTabBar::tab:top:!selected:hover {
- background-color: #48576b;
-}
-
-/* BOTTOM TABS */
-QTabBar::tab:bottom {
- color: #b1b1b1;
- border: 1px solid #4A4949;
- border-top: 1px transparent black;
- background-color: #302F2F;
- padding: 5px;
- border-bottom-left-radius: 2px;
- border-bottom-right-radius: 2px;
-}
-
-QTabBar::tab:bottom:!selected
-{
- color: #b1b1b1;
- background-color: #201F1F;
- border: 1px transparent #4A4949;
- border-top: 1px transparent #4A4949;
- border-bottom-left-radius: 0px;
- border-bottom-right-radius: 0px;
-}
-
-QTabBar::tab:bottom:!selected:hover {
- background-color: #78879b;
-}
-
-/* LEFT TABS */
-QTabBar::tab:left {
- color: #b1b1b1;
- border: 1px transparent #4A4949;
- border-left: 1px transparent black;
- background-color: #48576b;
- padding: 5px;
- border-top-right-radius: 0px;
- border-bottom-right-radius: 0px;
-}
-
-QTabBar::tab:left:!selected
-{
- color: #b1b1b1;
- background-color: #302F2F;
- border: 1px transparent #4A4949;
- border-right: 1px transparent #4A4949;
- border-top-right-radius: 0px;
- border-bottom-right-radius: 0px;
-}
-
-QTabBar::tab:left:hover {
- background-color: #48576b;
-}
-
-QTabBar::tab:left:disabled
-{
- color: #3A3939;
- background-color: #302F2F;
- border: 1px transparent #4A4949;
- border-right: 1px transparent #4A4949;
- border-top-right-radius: 0px;
- border-bottom-right-radius: 0px;
-}
-
-
-
-/* RIGHT TABS */
-QTabBar::tab:right {
- color: #b1b1b1;
- border: 1px solid #4A4949;
- border-right: 1px transparent black;
- background-color: #302F2F;
- padding: 5px;
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-
-QTabBar::tab:right:!selected
-{
- color: #b1b1b1;
- background-color: #201F1F;
- border: 1px transparent #4A4949;
- border-right: 1px transparent #4A4949;
- border-top-left-radius: 0px;
- border-bottom-left-radius: 0px;
-}
-
-QTabBar::tab:right:!selected:hover {
- background-color: #48576b;
-}
-
-QTabBar QToolButton::right-arrow:enabled {
- image: url(:/qss_icons/rc/right_arrow.png);
- }
-
- QTabBar QToolButton::left-arrow:enabled {
- image: url(:/qss_icons/rc/left_arrow.png);
- }
-
-QTabBar QToolButton::right-arrow:disabled {
- image: url(:/qss_icons/rc/right_arrow_disabled.png);
- }
-
- QTabBar QToolButton::left-arrow:disabled {
- image: url(:/qss_icons/rc/left_arrow_disabled.png);
- }
-
-
-QDockWidget {
- border: 1px transparent #403F3F;
- titlebar-close-icon: url(:/qss_icons/rc/close.png);
- titlebar-normal-icon: url(:/qss_icons/rc/undock.png);
-}
-
-QDockWidget::title {
- border: 1px solid #282727;
- background-color: #2b2a2a;
-}
-
-QDockWidget::close-button, QDockWidget::float-button {
- border: 1px solid transparent;
- border-radius: 2px;
- background: transparent;
-}
-
-QDockWidget::close-button:hover, QDockWidget::float-button:hover {
- background: rgba(255, 255, 255, 10);
-}
-
-QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
- padding: 1px -1px -1px 1px;
- background: rgba(255, 255, 255, 10);
-}
-
-QTreeView, QListView
-{
- border: 1px solid #444;
- background-color: #201F1F;
-}
-
-QTreeView:branch:selected, QTreeView:branch:hover
-{
- background: url(:/qss_icons/rc/transparent.png);
-}
-
-QTreeView::branch:has-siblings:!adjoins-item {
- border-image: url(:/qss_icons/rc/transparent.png);
-}
-
-QTreeView::branch:has-siblings:adjoins-item {
- border-image: url(:/qss_icons/rc/transparent.png);
-}
-
-QTreeView::branch:!has-children:!has-siblings:adjoins-item {
- border-image: url(:/qss_icons/rc/transparent.png);
-}
-
-QTreeView::branch:has-children:!has-siblings:closed,
-QTreeView::branch:closed:has-children:has-siblings {
- image: url(:/qss_icons/rc/branch_closed.png);
-}
-
-QTreeView::branch:open:has-children:!has-siblings,
-QTreeView::branch:open:has-children:has-siblings {
- image: url(:/qss_icons/rc/branch_open.png);
-}
-
-QTreeView::branch:has-children:!has-siblings:closed:hover,
-QTreeView::branch:closed:has-children:has-siblings:hover {
- image: url(:/qss_icons/rc/branch_closed-on.png);
- }
-
-QTreeView::branch:open:has-children:!has-siblings:hover,
-QTreeView::branch:open:has-children:has-siblings:hover {
- image: url(:/qss_icons/rc/branch_open-on.png);
- }
-
-QListView::item:!selected:hover, QListView::item:!selected:hover, QTreeView::item:!selected:hover {
- background: rgba(0, 0, 0, 0);
- outline: 0;
- color: #FFFFFF
-}
-
-QListView::item:selected:hover, QListView::item:selected:hover, QTreeView::item:selected:hover {
- background: #3d8ec9;
- color: #FFFFFF;
-}
-
-QSlider::groove:horizontal {
- border: 1px solid #3A3939;
- height: 8px;
- background: #201F1F;
- margin: 2px 0;
- border-radius: 2px;
-}
-
-QSlider::groove:horizontal:disabled {
- border: 1px solid #3A3939;
- height: 8px;
- background: #282727;
- margin: 2px 0;
- border-radius: 2px;
-}
-
-QSlider::handle:horizontal {
- background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 silver, stop: 0.2 #a8a8a8, stop: 1 #727272);
- border: 1px solid #3A3939;
- width: 10px;
- height: 14px;
- margin: -4px 0;
- border-radius: 2px;
-}
-
-QSlider::handle:horizontal:disabled {
- background: #4A4949;
- border: 1px solid #3A3939;
- width: 10px;
- height: 14px;
- margin: -4px 0;
- border-radius: 2px;
-}
-
-QSlider::groove:vertical {
- border: 1px solid #3A3939;
- width: 8px;
- background: #201F1F;
- margin: 0 0px;
- border-radius: 2px;
-}
-
-QSlider::groove:vertical:disabled {
- border: 1px solid #3A3939;
- height: 8px;
- background: #403F3F;
- margin: 2px 0;
- border-radius: 2px;
-}
-
-QSlider::handle:vertical {
- background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 silver,
- stop: 0.2 #a8a8a8, stop: 1 #727272);
- border: 1px solid #3A3939;
- width: 14px;
- height: 10px;
- margin: 0 -4px;
- border-radius: 2px;
-}
-
-QSlider::handle:vertical:disabled {
- background: #4A4949;
- border: 1px solid #3A3939;
- width: 14px;
- height: 10px;
- margin: 0 -4px;
- border-radius: 2px;
-}
-
-QToolButton#MaximizeButton {
- background-color: transparent;
- border-left: 1px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F, stop: 0.3 #606060,
- stop: 0.5 #707070,
- stop: 0.7 #606060, stop: 1 #302F2F);
- border-right: 1px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F, stop: 0.3 #606060,
- stop: 0.5 #707070,
- stop: 0.7 #606060, stop: 1 #302F2F);
- border-radius: 0px;
- margin: 0px;
- padding: 0px;
-}
-
-QToolButton#MinimizeButton,
-QToolButton#CloseButton {
- background-color: transparent;
- border: 1px transparent #808080;
- border-radius: 0px;
- margin: 0px;
- padding: 0px;
-}
-
-QToolButton#MinimizeButton:hover, QToolButton#MinimizeButton::menu-button:hover,
-QToolButton#MaximizeButton:hover, QToolButton#MaximizeButton::menu-button:hover{
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F, stop: 0.4 #4E4D4D,
- stop: 0.5 #4A4949,
- stop: 0.6 #4E4D4D, stop: 1 #302F2F);
-}
-
-QToolButton#CloseButton:hover, QToolButton#CloseButton::menu-button:hover {
-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F, stop: 0.2 #A82F2F,
- stop: 0.5 #E83E4A,
- stop: 0.8 #A82F2F, stop: 1 #302F2F);
-}
-
-QToolButton {
- background-color: transparent;
- border: 1px transparent #4A4949;
- border-radius: 2px;
- margin: 3px;
- padding: 3px;
-}
-
-QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
- padding-right: 20px; /* make way for the popup button */
- border: 1px transparent #4A4949;
- border-radius: 5px;
-}
-
-QToolButton[popupMode="2"] { /* only for InstantPopup */
- padding-right: 10px; /* make way for the popup button */
- border: 1px transparent #4A4949;
-}
-
-
-QToolButton:hover, QToolButton::menu-button:hover {
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F, stop: 0.4 #4E4D4D,
- stop: 0.5 #4A4949,
- stop: 0.6 #4E4D4D, stop: 1 #302F2F);
-}
-
-QToolButton:checked, QToolButton:pressed,
-QToolButton::menu-button:pressed {
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F,
- stop: 0.5 #4A4949,
- stop: 1.0 #302F2F);
-}
-
-/* the subcontrol below is used only in the InstantPopup or DelayedPopup mode */
-QToolButton::menu-indicator {
- image: url(:/qss_icons/rc/down_arrow.png);
- top: -7px; left: -2px; /* shift it a bit */
-}
-
-/* the subcontrols below are used only in the MenuButtonPopup mode */
-QToolButton::menu-button {
- border: 1px transparent #4A4949;
- border-top-right-radius: 6px;
- border-bottom-right-radius: 6px;
- /* 16px width + 4px for border = 20px allocated above */
- width: 16px;
- outline: none;
-}
-
-QToolButton::menu-arrow {
- image: url(:/qss_icons/rc/down_arrow.png);
-}
-
-QToolButton::menu-arrow:open {
- top: 1px; left: 1px; /* shift it a bit */
- border: 1px solid #3A3939;
-}
-
-QPushButton::menu-indicator {
- subcontrol-origin: padding;
- subcontrol-position: bottom right;
- left: 8px;
-}
-
-QTableView
-{
- border: 1px transparent #444;
- gridline-color: #6c6c6c;
- background-color: #201F1F;
-}
-
-
-QTableView, QHeaderView
-{
- border-radius: 0px;
-}
-
-QTableView::item:pressed, QListView::item:pressed, QTreeView::item:pressed {
- background: #78879b;
- color: #FFFFFF;
-}
-
-QTableView::item:selected:active, QTreeView::item:selected:active, QListView::item:selected:active {
- background: #3d8ec9;
- color: #FFFFFF;
-}
-
-QHeaderView
-{
- border: 1px transparent;
- border-radius: 2px;
- margin: 0px;
- padding: 0px;
-}
-
-QHeaderView::section {
- background-color: #302F2F;
- color: silver;
- padding: 4px;
- border: 1px transparent #6c6c6c;
- border-radius: 0px;
- text-align: center;
-}
-
-QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one
-{
- border-top: 1px transparent #6c6c6c;
-}
-
-QHeaderView::section::vertical
-{
- border-top: transparent;
-}
-
-QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one
-{
- border-left: 1px transparent #6c6c6c;
-}
-
-QHeaderView::section::horizontal
-{
- border-left: transparent;
-}
-
-
-QHeaderView::section:checked
- {
- color: white;
- background-color: #5A5959;
- }
-
- /* style the sort indicator */
-QHeaderView::down-arrow {
- image: url(:/qss_icons/rc/down_arrow.png);
-}
-
-QHeaderView::up-arrow {
- image: url(:/qss_icons/rc/up_arrow.png);
-}
-
-
-QTableCornerButton::section {
- background-color: #3A3939;
- border: 1px solid #3A3939;
- border-radius: 2px;
-}
-
-QToolBox {
- padding: 3px;
- border: 1px transparent black;
-}
-
-QToolBox::tab {
- color: #b1b1b1;
- background-color: #302F2F;
- border: 1px solid #4A4949;
- border-bottom: 1px transparent #302F2F;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
-}
-
- QToolBox::tab:selected { /* italicize selected tabs */
- font: italic;
- background-color: #302F2F;
- border-color: #3d8ec9;
- }
-
-QStatusBar::item {
- border: 1px solid #3A3939;
- border-radius: 2px;
- }
-
-QFrame[height="3"], QFrame[width="3"] {
- background-color: #444;
-}
-
-QAbstractScrollArea
-{
- border-radius: 2px;
- border: 0px transparent #3A3939;
- background-color: #302F2F;
-}
-
-QSplitter::handle:horizontal,
-QMainWindow::separator
-{
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F,
- stop: 0.4 #333333,
- stop: 0.5 #404040,
- stop: 0.6 #333333,
- stop: 1 #302F2F);
- color: white;
- padding-left: 0px;
- spacing: 0px;
- width: 3px;
- border: 0px solid #202020;
-}
-
-QSplitter::handle:horizontal:hover,
-QMainWindow::separator:hover
-{
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
- stop: 0.0 #302F2F,
- stop: 0.1 #333333,
- stop: 0.5 #404040,
- stop: 0.9 #333333,
- stop: 1 #302F2F);
- color: white;
- padding-left: 0px;
- spacing: 0px;
- width: 3px;
- border: 0px solid #202020;
-}
-
-QSplitter::handle:vertical {
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0,
- stop: 0.0 #302F2F,
- stop: 0.3 #505050,
- stop: 0.5 #606060,
- stop: 0.7 #505050,
- stop: 1 #302F2F);
- height: 3px;
-}
-
-QSplitter::handle:vertical:hover {
- background-color: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0,
- stop: 0.0 #302F2F,
- stop: 0.1 #505050,
- stop: 0.5 #606060,
- stop: 0.8 #505050,
- stop: 1 #302F2F);
- height: 3px;
-}
diff --git a/DSView/dsapplication.cpp b/DSView/dsapplication.cpp
old mode 100644
new mode 100755
diff --git a/DSView/dsapplication.h b/DSView/dsapplication.h
old mode 100644
new mode 100755
diff --git a/DSView/extdef.h b/DSView/extdef.h
old mode 100644
new mode 100755
diff --git a/DSView/icons/Blackman.png b/DSView/icons/Blackman.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/Chinese.png b/DSView/icons/Chinese.png
new file mode 100755
index 0000000000000000000000000000000000000000..f138711303a1dcc7a23adb8ce2a180175ee44fb6
Binary files /dev/null and b/DSView/icons/Chinese.png differ
diff --git a/DSView/icons/English.png b/DSView/icons/English.png
new file mode 100755
index 0000000000000000000000000000000000000000..deee73f0f48a02f1ab6ced271d0dc876f602eddb
Binary files /dev/null and b/DSView/icons/English.png differ
diff --git a/DSView/icons/Flat_top.png b/DSView/icons/Flat_top.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/Hamming.png b/DSView/icons/Hamming.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/Hann.png b/DSView/icons/Hann.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/Rectangle.png b/DSView/icons/Rectangle.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/arrow-loop.png b/DSView/icons/arrow-loop.png
deleted file mode 100755
index d3df3243d4e4cc3a43f4d6547bd8a15580dcea38..0000000000000000000000000000000000000000
Binary files a/DSView/icons/arrow-loop.png and /dev/null differ
diff --git a/DSView/icons/close.png b/DSView/icons/close.png
deleted file mode 100644
index 529f2ed10e43787bbd9fda3fa60703185ac607d3..0000000000000000000000000000000000000000
Binary files a/DSView/icons/close.png and /dev/null differ
diff --git a/DSView/icons/about.png b/DSView/icons/dark/about.png
similarity index 100%
rename from DSView/icons/about.png
rename to DSView/icons/dark/about.png
diff --git a/DSView/icons/add.png b/DSView/icons/dark/add.png
similarity index 100%
rename from DSView/icons/add.png
rename to DSView/icons/dark/add.png
diff --git a/DSView/icons/bug.png b/DSView/icons/dark/bug.png
similarity index 100%
rename from DSView/icons/bug.png
rename to DSView/icons/dark/bug.png
diff --git a/DSView/icons/capture.png b/DSView/icons/dark/capture.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/capture.png
rename to DSView/icons/dark/capture.png
diff --git a/DSView/icons/dark/close.png b/DSView/icons/dark/close.png
new file mode 100755
index 0000000000000000000000000000000000000000..8eb85178daae840b51054b777f5d3ca7282c6775
Binary files /dev/null and b/DSView/icons/dark/close.png differ
diff --git a/DSView/icons/dark/daq.png b/DSView/icons/dark/daq.png
new file mode 100755
index 0000000000000000000000000000000000000000..69be862f9fd8e9f6ff93d82b298a1bafcf8b69ac
Binary files /dev/null and b/DSView/icons/dark/daq.png differ
diff --git a/DSView/icons/dark/dark.png b/DSView/icons/dark/dark.png
new file mode 100755
index 0000000000000000000000000000000000000000..8f822aa8d7222160ee7337f2b6fc7ab40eb3c944
Binary files /dev/null and b/DSView/icons/dark/dark.png differ
diff --git a/DSView/icons/del.png b/DSView/icons/dark/del.png
similarity index 100%
rename from DSView/icons/del.png
rename to DSView/icons/dark/del.png
diff --git a/DSView/icons/dark/display.png b/DSView/icons/dark/display.png
new file mode 100755
index 0000000000000000000000000000000000000000..6ca6c96e2eda2127276120cf860d5346220918eb
Binary files /dev/null and b/DSView/icons/dark/display.png differ
diff --git a/DSView/icons/down-arrow.png b/DSView/icons/dark/down-arrow.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/down-arrow.png
rename to DSView/icons/dark/down-arrow.png
diff --git a/DSView/icons/export.png b/DSView/icons/dark/export.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/export.png
rename to DSView/icons/dark/export.png
diff --git a/DSView/icons/fft.png b/DSView/icons/dark/fft.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/fft.png
rename to DSView/icons/dark/fft.png
diff --git a/DSView/icons/dark/file.png b/DSView/icons/dark/file.png
new file mode 100755
index 0000000000000000000000000000000000000000..926ac2462da2a8f010295daaf06ff940772717b3
Binary files /dev/null and b/DSView/icons/dark/file.png differ
diff --git a/DSView/icons/dark/function.png b/DSView/icons/dark/function.png
new file mode 100755
index 0000000000000000000000000000000000000000..718edebb30db9cbbf4957e7e98d10eba0a36fa53
Binary files /dev/null and b/DSView/icons/dark/function.png differ
diff --git a/DSView/icons/gear.png b/DSView/icons/dark/gear.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/gear.png
rename to DSView/icons/dark/gear.png
diff --git a/DSView/icons/hidden.png b/DSView/icons/dark/hidden.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/hidden.png
rename to DSView/icons/dark/hidden.png
diff --git a/DSView/icons/dark/instant.png b/DSView/icons/dark/instant.png
new file mode 100755
index 0000000000000000000000000000000000000000..c74c674cef9f046fa09a90bd3d31e055df48f66b
Binary files /dev/null and b/DSView/icons/dark/instant.png differ
diff --git a/DSView/icons/dark/la.png b/DSView/icons/dark/la.png
new file mode 100755
index 0000000000000000000000000000000000000000..d77009bb3f9a6f6c5e7ffedfdf96055d1a4b5368
Binary files /dev/null and b/DSView/icons/dark/la.png differ
diff --git a/DSView/icons/dark/light.png b/DSView/icons/dark/light.png
new file mode 100755
index 0000000000000000000000000000000000000000..23882479a6df1ee0c0cd708da3bcd782a8d3995e
Binary files /dev/null and b/DSView/icons/dark/light.png differ
diff --git a/DSView/icons/dark/lissajous.png b/DSView/icons/dark/lissajous.png
new file mode 100755
index 0000000000000000000000000000000000000000..632a722d6df8ea209ad74efcd92d3d94b5dde7c9
Binary files /dev/null and b/DSView/icons/dark/lissajous.png differ
diff --git a/DSView/icons/dark/logo_color.png b/DSView/icons/dark/logo_color.png
new file mode 100755
index 0000000000000000000000000000000000000000..65ae5c6d2bb4831c57fe6200ff3506d2ebdd5d55
Binary files /dev/null and b/DSView/icons/dark/logo_color.png differ
diff --git a/DSView/icons/dark/logo_noColor.png b/DSView/icons/dark/logo_noColor.png
new file mode 100755
index 0000000000000000000000000000000000000000..9ee4aad67c743a02f2610cde5e93db4066530e69
Binary files /dev/null and b/DSView/icons/dark/logo_noColor.png differ
diff --git a/DSView/icons/manual.png b/DSView/icons/dark/manual.png
similarity index 100%
rename from DSView/icons/manual.png
rename to DSView/icons/dark/manual.png
diff --git a/DSView/icons/dark/math.png b/DSView/icons/dark/math.png
new file mode 100755
index 0000000000000000000000000000000000000000..f84625f7960e3339cca0cb05e0c5f1238e926c7a
Binary files /dev/null and b/DSView/icons/dark/math.png differ
diff --git a/DSView/icons/dark/maximize.png b/DSView/icons/dark/maximize.png
new file mode 100755
index 0000000000000000000000000000000000000000..51d6577aa612a64af060b8ab73a4c1e070e6e2a0
Binary files /dev/null and b/DSView/icons/dark/maximize.png differ
diff --git a/DSView/icons/dark/measure.png b/DSView/icons/dark/measure.png
new file mode 100755
index 0000000000000000000000000000000000000000..d0ce0421faae356cd85af1ebd04df75a952eda4c
Binary files /dev/null and b/DSView/icons/dark/measure.png differ
diff --git a/DSView/icons/dark/minimize.png b/DSView/icons/dark/minimize.png
new file mode 100755
index 0000000000000000000000000000000000000000..132ef21c0092ddaf26e3a485e5cc231b9b944057
Binary files /dev/null and b/DSView/icons/dark/minimize.png differ
diff --git a/DSView/icons/dark/moder.png b/DSView/icons/dark/moder.png
new file mode 100755
index 0000000000000000000000000000000000000000..0f13a3fcc1e9f29afbf722a8cb6d5e330f9911ef
Binary files /dev/null and b/DSView/icons/dark/moder.png differ
diff --git a/DSView/icons/dark/modes.png b/DSView/icons/dark/modes.png
new file mode 100755
index 0000000000000000000000000000000000000000..fca07844146e35b59ef228e2230bff29a3fe728b
Binary files /dev/null and b/DSView/icons/dark/modes.png differ
diff --git a/DSView/icons/nav.png b/DSView/icons/dark/nav.png
similarity index 100%
rename from DSView/icons/nav.png
rename to DSView/icons/dark/nav.png
diff --git a/DSView/icons/next.png b/DSView/icons/dark/next.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/next.png
rename to DSView/icons/dark/next.png
diff --git a/DSView/icons/oneloop.png b/DSView/icons/dark/oneloop.png
similarity index 100%
rename from DSView/icons/oneloop.png
rename to DSView/icons/dark/oneloop.png
diff --git a/DSView/icons/open.png b/DSView/icons/dark/open.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/open.png
rename to DSView/icons/dark/open.png
diff --git a/DSView/icons/dark/osc.png b/DSView/icons/dark/osc.png
new file mode 100755
index 0000000000000000000000000000000000000000..233027f6817f44dfdc009ab4fa24c7dae30f993b
Binary files /dev/null and b/DSView/icons/dark/osc.png differ
diff --git a/DSView/icons/dark/params.png b/DSView/icons/dark/params.png
new file mode 100755
index 0000000000000000000000000000000000000000..e64cd54b208ba1cb908a7c02f87d9afedb58dc5e
Binary files /dev/null and b/DSView/icons/dark/params.png differ
diff --git a/DSView/icons/pre.png b/DSView/icons/dark/pre.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/pre.png
rename to DSView/icons/dark/pre.png
diff --git a/DSView/icons/dark/protocol.png b/DSView/icons/dark/protocol.png
new file mode 100755
index 0000000000000000000000000000000000000000..75378de680f31367af88722760efb9dd528002b6
Binary files /dev/null and b/DSView/icons/dark/protocol.png differ
diff --git a/DSView/icons/repeat.png b/DSView/icons/dark/repeat.png
similarity index 100%
rename from DSView/icons/repeat.png
rename to DSView/icons/dark/repeat.png
diff --git a/DSView/icons/dark/restore.png b/DSView/icons/dark/restore.png
new file mode 100755
index 0000000000000000000000000000000000000000..2079882a76e044e1c68d967e15dc0965120e8785
Binary files /dev/null and b/DSView/icons/dark/restore.png differ
diff --git a/DSView/icons/save.png b/DSView/icons/dark/save.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/save.png
rename to DSView/icons/dark/save.png
diff --git a/DSView/icons/dark/search-bar.png b/DSView/icons/dark/search-bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..e3a3298f0187a3374791d1fef3eed8a922223df8
Binary files /dev/null and b/DSView/icons/dark/search-bar.png differ
diff --git a/DSView/icons/dark/search.png b/DSView/icons/dark/search.png
new file mode 100755
index 0000000000000000000000000000000000000000..5a67758ef6a0fb268a29a71f5e5dff8a632b4f71
Binary files /dev/null and b/DSView/icons/dark/search.png differ
diff --git a/DSView/icons/shown.png b/DSView/icons/dark/shown.png
old mode 100644
new mode 100755
similarity index 100%
rename from DSView/icons/shown.png
rename to DSView/icons/dark/shown.png
diff --git a/DSView/icons/dark/single.png b/DSView/icons/dark/single.png
new file mode 100755
index 0000000000000000000000000000000000000000..4c44569802e738914e43c554f64a387a6928bfd1
Binary files /dev/null and b/DSView/icons/dark/single.png differ
diff --git a/DSView/icons/dark/start.png b/DSView/icons/dark/start.png
new file mode 100755
index 0000000000000000000000000000000000000000..40e181d08fb6b97d2dc8ffc2882b8ff1fdc229cc
Binary files /dev/null and b/DSView/icons/dark/start.png differ
diff --git a/DSView/icons/dark/stop.png b/DSView/icons/dark/stop.png
new file mode 100755
index 0000000000000000000000000000000000000000..7017ec467280334d4a5192681c5e16a8b78f6f3a
Binary files /dev/null and b/DSView/icons/dark/stop.png differ
diff --git a/DSView/icons/support.png b/DSView/icons/dark/support.png
similarity index 100%
rename from DSView/icons/support.png
rename to DSView/icons/dark/support.png
diff --git a/DSView/icons/dark/trigger.png b/DSView/icons/dark/trigger.png
new file mode 100755
index 0000000000000000000000000000000000000000..9ccd6c0c8e203183b229d90eea7f506bf39608a4
Binary files /dev/null and b/DSView/icons/dark/trigger.png differ
diff --git a/DSView/icons/dark/wait.gif b/DSView/icons/dark/wait.gif
new file mode 100755
index 0000000000000000000000000000000000000000..8cff358c7859c14f9768531328fdcfdc7f8f5a6f
Binary files /dev/null and b/DSView/icons/dark/wait.gif differ
diff --git a/DSView/icons/del_dis.png b/DSView/icons/del_dis.png
deleted file mode 100755
index d4f418c34e7b466334fd3d2d55e3816e0c3ac048..0000000000000000000000000000000000000000
Binary files a/DSView/icons/del_dis.png and /dev/null differ
diff --git a/DSView/icons/file.png b/DSView/icons/file.png
deleted file mode 100644
index 78c469cc13bf521c2874e3235ab4d0f9ba9c70ab..0000000000000000000000000000000000000000
Binary files a/DSView/icons/file.png and /dev/null differ
diff --git a/DSView/icons/file_dis.png b/DSView/icons/file_dis.png
deleted file mode 100644
index 5c27e1aee3179f32ab81f94a3d6829fc4951b98c..0000000000000000000000000000000000000000
Binary files a/DSView/icons/file_dis.png and /dev/null differ
diff --git a/DSView/icons/instant.png b/DSView/icons/instant.png
deleted file mode 100644
index c3e249d3732fe960f037ce142a99a624616727a9..0000000000000000000000000000000000000000
Binary files a/DSView/icons/instant.png and /dev/null differ
diff --git a/DSView/icons/instant_dis.png b/DSView/icons/instant_dis.png
deleted file mode 100644
index 9c24bf07831aed72d80998e1c49c5363abae5ab0..0000000000000000000000000000000000000000
Binary files a/DSView/icons/instant_dis.png and /dev/null differ
diff --git a/DSView/icons/light/about.png b/DSView/icons/light/about.png
new file mode 100755
index 0000000000000000000000000000000000000000..e1810a34088bcb1afc73cd7e7061b6224dd11d51
Binary files /dev/null and b/DSView/icons/light/about.png differ
diff --git a/DSView/icons/add_dis.png b/DSView/icons/light/add.png
similarity index 50%
rename from DSView/icons/add_dis.png
rename to DSView/icons/light/add.png
index b0349001446dd2c939e26bacb484377b56703652..fdb05911e5b0e9150815bc65182937aaa16ba20e 100755
Binary files a/DSView/icons/add_dis.png and b/DSView/icons/light/add.png differ
diff --git a/DSView/icons/light/bug.png b/DSView/icons/light/bug.png
new file mode 100755
index 0000000000000000000000000000000000000000..56b70a64bdccf3b0da6297a285ae01e4c69cda03
Binary files /dev/null and b/DSView/icons/light/bug.png differ
diff --git a/DSView/icons/light/capture.png b/DSView/icons/light/capture.png
new file mode 100755
index 0000000000000000000000000000000000000000..f581e561d7ccbf2d0cb58c0b95782153fb2f5674
Binary files /dev/null and b/DSView/icons/light/capture.png differ
diff --git a/DSView/icons/light/close.png b/DSView/icons/light/close.png
new file mode 100755
index 0000000000000000000000000000000000000000..a3de9ec9696f8676419c3d027d3e22ce31408c6e
Binary files /dev/null and b/DSView/icons/light/close.png differ
diff --git a/DSView/icons/light/daq.png b/DSView/icons/light/daq.png
new file mode 100755
index 0000000000000000000000000000000000000000..ac80361f39725ac47a103c9332dfa2db5e198efe
Binary files /dev/null and b/DSView/icons/light/daq.png differ
diff --git a/DSView/icons/light/dark.png b/DSView/icons/light/dark.png
new file mode 100755
index 0000000000000000000000000000000000000000..889cac2b84021474adea0d0b86f7501d04a317ac
Binary files /dev/null and b/DSView/icons/light/dark.png differ
diff --git a/DSView/icons/light/del.png b/DSView/icons/light/del.png
new file mode 100755
index 0000000000000000000000000000000000000000..d361cfe3b38d5ee94504c6aaea36569ee9b1b00b
Binary files /dev/null and b/DSView/icons/light/del.png differ
diff --git a/DSView/icons/light/display.png b/DSView/icons/light/display.png
new file mode 100755
index 0000000000000000000000000000000000000000..966d0e5a76a2d0abfb6935d2a70b434028472bc0
Binary files /dev/null and b/DSView/icons/light/display.png differ
diff --git a/DSView/icons/light/down-arrow.png b/DSView/icons/light/down-arrow.png
new file mode 100755
index 0000000000000000000000000000000000000000..d1b987efb402596e0d9a60954b0c91cff68a5ce3
Binary files /dev/null and b/DSView/icons/light/down-arrow.png differ
diff --git a/DSView/icons/light/export.png b/DSView/icons/light/export.png
new file mode 100755
index 0000000000000000000000000000000000000000..02b237608fe0b2d19a2e784eecb74babfa12381a
Binary files /dev/null and b/DSView/icons/light/export.png differ
diff --git a/DSView/icons/light/fft.png b/DSView/icons/light/fft.png
new file mode 100755
index 0000000000000000000000000000000000000000..cc26ab4977f351836de9f5c6c4b627f4f1af7b36
Binary files /dev/null and b/DSView/icons/light/fft.png differ
diff --git a/DSView/icons/light/file.png b/DSView/icons/light/file.png
new file mode 100755
index 0000000000000000000000000000000000000000..4dfc6ae949ff67eb53a21994911bd5af7e9dd591
Binary files /dev/null and b/DSView/icons/light/file.png differ
diff --git a/DSView/icons/light/function.png b/DSView/icons/light/function.png
new file mode 100755
index 0000000000000000000000000000000000000000..9092101926b17f15dba89c88f4c15786c36e8c8d
Binary files /dev/null and b/DSView/icons/light/function.png differ
diff --git a/DSView/icons/light/gear.png b/DSView/icons/light/gear.png
new file mode 100755
index 0000000000000000000000000000000000000000..794195c65030b1a8ae706352b299ae9200a1f023
Binary files /dev/null and b/DSView/icons/light/gear.png differ
diff --git a/DSView/icons/light/hidden.png b/DSView/icons/light/hidden.png
new file mode 100755
index 0000000000000000000000000000000000000000..427eaa41d6bf38baf68268b2ebd02a04578d9ad6
Binary files /dev/null and b/DSView/icons/light/hidden.png differ
diff --git a/DSView/icons/light/instant.png b/DSView/icons/light/instant.png
new file mode 100755
index 0000000000000000000000000000000000000000..8acd5871abb3acb61e7e066f54ed90fde5734841
Binary files /dev/null and b/DSView/icons/light/instant.png differ
diff --git a/DSView/icons/light/la.png b/DSView/icons/light/la.png
new file mode 100755
index 0000000000000000000000000000000000000000..25a361aa03e40934de86d0ca7f06f725e569b1a1
Binary files /dev/null and b/DSView/icons/light/la.png differ
diff --git a/DSView/icons/light/light.png b/DSView/icons/light/light.png
new file mode 100755
index 0000000000000000000000000000000000000000..ab90576cabd1f782c2cb5a83b2f59367b859fdb5
Binary files /dev/null and b/DSView/icons/light/light.png differ
diff --git a/DSView/icons/light/lissajous.png b/DSView/icons/light/lissajous.png
new file mode 100755
index 0000000000000000000000000000000000000000..868be40afe0e057e0144662b88218b871c67048b
Binary files /dev/null and b/DSView/icons/light/lissajous.png differ
diff --git a/DSView/icons/light/logo_color.png b/DSView/icons/light/logo_color.png
new file mode 100755
index 0000000000000000000000000000000000000000..65ae5c6d2bb4831c57fe6200ff3506d2ebdd5d55
Binary files /dev/null and b/DSView/icons/light/logo_color.png differ
diff --git a/DSView/icons/light/logo_noColor.png b/DSView/icons/light/logo_noColor.png
new file mode 100755
index 0000000000000000000000000000000000000000..3a39b2e852ef51030cf38f1436a8fba4eb2c19d0
Binary files /dev/null and b/DSView/icons/light/logo_noColor.png differ
diff --git a/DSView/icons/light/manual.png b/DSView/icons/light/manual.png
new file mode 100755
index 0000000000000000000000000000000000000000..b0b6a71f33b87a93932eb6c2cfb69e89e25dec7d
Binary files /dev/null and b/DSView/icons/light/manual.png differ
diff --git a/DSView/icons/light/math.png b/DSView/icons/light/math.png
new file mode 100755
index 0000000000000000000000000000000000000000..39168f0d8ca2990b85bf3b24ce2465c2a2fcac6a
Binary files /dev/null and b/DSView/icons/light/math.png differ
diff --git a/DSView/icons/light/maximize.png b/DSView/icons/light/maximize.png
new file mode 100755
index 0000000000000000000000000000000000000000..08d9385395e8627c5d1a9c52d9e425498d04e710
Binary files /dev/null and b/DSView/icons/light/maximize.png differ
diff --git a/DSView/icons/light/measure.png b/DSView/icons/light/measure.png
new file mode 100755
index 0000000000000000000000000000000000000000..41c711e7dc5828b4310fbccc39f2d00993df8694
Binary files /dev/null and b/DSView/icons/light/measure.png differ
diff --git a/DSView/icons/light/minimize.png b/DSView/icons/light/minimize.png
new file mode 100755
index 0000000000000000000000000000000000000000..e4be4c91033a0c4bcf24c294434aec05b89f96fe
Binary files /dev/null and b/DSView/icons/light/minimize.png differ
diff --git a/DSView/icons/light/moder.png b/DSView/icons/light/moder.png
new file mode 100755
index 0000000000000000000000000000000000000000..09e01af27efe98949ce6461777b522f70b6095c4
Binary files /dev/null and b/DSView/icons/light/moder.png differ
diff --git a/DSView/icons/light/modes.png b/DSView/icons/light/modes.png
new file mode 100755
index 0000000000000000000000000000000000000000..62a348b05430710396f2193e4211bea48e396b83
Binary files /dev/null and b/DSView/icons/light/modes.png differ
diff --git a/DSView/icons/light/nav.png b/DSView/icons/light/nav.png
new file mode 100755
index 0000000000000000000000000000000000000000..1f5736727d19ac43d6ba709e31316a15fab36d38
Binary files /dev/null and b/DSView/icons/light/nav.png differ
diff --git a/DSView/icons/light/next.png b/DSView/icons/light/next.png
new file mode 100755
index 0000000000000000000000000000000000000000..ebec6e154a750e7b9e183babc314293acdc29b31
Binary files /dev/null and b/DSView/icons/light/next.png differ
diff --git a/DSView/icons/light/oneloop.png b/DSView/icons/light/oneloop.png
new file mode 100755
index 0000000000000000000000000000000000000000..4eee0d71f4b5d2f0e88836323b648414c9b4250b
Binary files /dev/null and b/DSView/icons/light/oneloop.png differ
diff --git a/DSView/icons/light/open.png b/DSView/icons/light/open.png
new file mode 100755
index 0000000000000000000000000000000000000000..38cd27cb0a191c070d0378136f3324fcbcdea245
Binary files /dev/null and b/DSView/icons/light/open.png differ
diff --git a/DSView/icons/light/osc.png b/DSView/icons/light/osc.png
new file mode 100755
index 0000000000000000000000000000000000000000..2811d95de0b2e02096dd58276a4b44a1c71e1d38
Binary files /dev/null and b/DSView/icons/light/osc.png differ
diff --git a/DSView/icons/light/params.png b/DSView/icons/light/params.png
new file mode 100755
index 0000000000000000000000000000000000000000..6531faa964ed18cfecbd0b19d5f33f485ef07bb9
Binary files /dev/null and b/DSView/icons/light/params.png differ
diff --git a/DSView/icons/light/pre.png b/DSView/icons/light/pre.png
new file mode 100755
index 0000000000000000000000000000000000000000..600842db8641d3ab0f332ea01c81f0ac99cea4cd
Binary files /dev/null and b/DSView/icons/light/pre.png differ
diff --git a/DSView/icons/light/protocol.png b/DSView/icons/light/protocol.png
new file mode 100755
index 0000000000000000000000000000000000000000..a726aab69b8001b587e862de44aff278aca423d7
Binary files /dev/null and b/DSView/icons/light/protocol.png differ
diff --git a/DSView/icons/light/repeat.png b/DSView/icons/light/repeat.png
new file mode 100755
index 0000000000000000000000000000000000000000..2a5826560df458b8cf3564a8d49fde085cbc081c
Binary files /dev/null and b/DSView/icons/light/repeat.png differ
diff --git a/DSView/icons/light/restore.png b/DSView/icons/light/restore.png
new file mode 100755
index 0000000000000000000000000000000000000000..adc7957aeed37c7c5f6594b789ffcd77c454f8d4
Binary files /dev/null and b/DSView/icons/light/restore.png differ
diff --git a/DSView/icons/light/save.png b/DSView/icons/light/save.png
new file mode 100755
index 0000000000000000000000000000000000000000..60804f4c2abf378ce859d9929a3fcde474bca16b
Binary files /dev/null and b/DSView/icons/light/save.png differ
diff --git a/DSView/icons/light/search-bar.png b/DSView/icons/light/search-bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..5f85363cf2ab2fd329c8456418ceb5e9e16b56f4
Binary files /dev/null and b/DSView/icons/light/search-bar.png differ
diff --git a/DSView/icons/light/search.png b/DSView/icons/light/search.png
new file mode 100755
index 0000000000000000000000000000000000000000..5a67758ef6a0fb268a29a71f5e5dff8a632b4f71
Binary files /dev/null and b/DSView/icons/light/search.png differ
diff --git a/DSView/icons/light/shown.png b/DSView/icons/light/shown.png
new file mode 100755
index 0000000000000000000000000000000000000000..cab7c021bccc43f3a2cc9cf069d877e222911d72
Binary files /dev/null and b/DSView/icons/light/shown.png differ
diff --git a/DSView/icons/light/single.png b/DSView/icons/light/single.png
new file mode 100755
index 0000000000000000000000000000000000000000..48862af49ff462329814cbbeb63731b3fffa72f1
Binary files /dev/null and b/DSView/icons/light/single.png differ
diff --git a/DSView/icons/light/start.png b/DSView/icons/light/start.png
new file mode 100755
index 0000000000000000000000000000000000000000..8f1b00531a562365be3980852de6d2203c294026
Binary files /dev/null and b/DSView/icons/light/start.png differ
diff --git a/DSView/icons/light/stop.png b/DSView/icons/light/stop.png
new file mode 100755
index 0000000000000000000000000000000000000000..7f2b01e56448af3b0019e730dfd031625a987e36
Binary files /dev/null and b/DSView/icons/light/stop.png differ
diff --git a/DSView/icons/light/support.png b/DSView/icons/light/support.png
new file mode 100755
index 0000000000000000000000000000000000000000..0c8abcb5f7915880b5b16d45d73ca841253e2af5
Binary files /dev/null and b/DSView/icons/light/support.png differ
diff --git a/DSView/icons/light/trigger.png b/DSView/icons/light/trigger.png
new file mode 100755
index 0000000000000000000000000000000000000000..83c1d1872b049ec06c7e63867e649b19b0d4a99a
Binary files /dev/null and b/DSView/icons/light/trigger.png differ
diff --git a/DSView/icons/light/wait.gif b/DSView/icons/light/wait.gif
new file mode 100755
index 0000000000000000000000000000000000000000..97142aa2da7e7299a9bc1cb79e64068f2fffaadd
Binary files /dev/null and b/DSView/icons/light/wait.gif differ
diff --git a/DSView/icons/lissajous.png b/DSView/icons/lissajous.png
new file mode 100755
index 0000000000000000000000000000000000000000..f767b6b614e68821962c9eeffe2c022d7a90dbfa
Binary files /dev/null and b/DSView/icons/lissajous.png differ
diff --git a/DSView/icons/load.gif b/DSView/icons/load.gif
deleted file mode 100644
index ffcb5622b8c2d86b3eaf3d840a881edb8434e3d4..0000000000000000000000000000000000000000
Binary files a/DSView/icons/load.gif and /dev/null differ
diff --git a/DSView/icons/logo.png b/DSView/icons/logo.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/logo.svg b/DSView/icons/logo.svg
deleted file mode 100755
index b713c3045e9a61b61df594d5e6a0561711828574..0000000000000000000000000000000000000000
--- a/DSView/icons/logo.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
diff --git a/DSView/icons/logo_128.png b/DSView/icons/logo_128.png
deleted file mode 100755
index 0d46a075e34e2644f08d9387589d41dad485f5a8..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_128.png and /dev/null differ
diff --git a/DSView/icons/logo_16.png b/DSView/icons/logo_16.png
deleted file mode 100755
index 67042eb351714c83d8f85a59b47251a47faef19b..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_16.png and /dev/null differ
diff --git a/DSView/icons/logo_256.png b/DSView/icons/logo_256.png
deleted file mode 100755
index ca65932dba42d47c3b34759ac84cf0302fcb5eb4..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_256.png and /dev/null differ
diff --git a/DSView/icons/logo_32.png b/DSView/icons/logo_32.png
deleted file mode 100755
index ed7b1a4ea8849a0abc8fbb07be1447f3aa0d6436..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_32.png and /dev/null differ
diff --git a/DSView/icons/logo_48.png b/DSView/icons/logo_48.png
deleted file mode 100755
index eb8b41628fe9ef3f10ff36a826e8e56b29de5ef6..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_48.png and /dev/null differ
diff --git a/DSView/icons/logo_64.png b/DSView/icons/logo_64.png
deleted file mode 100755
index 8691e8903a40d8b6da71b99fbab4cfa6800bb5d1..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_64.png and /dev/null differ
diff --git a/DSView/icons/logo_color.png b/DSView/icons/logo_color.png
deleted file mode 100755
index 0761dd75243d998014e4d7822092b13f6483db50..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_color.png and /dev/null differ
diff --git a/DSView/icons/logo_noColor.png b/DSView/icons/logo_noColor.png
deleted file mode 100755
index a532a178c317ef52a724f6256c7d9f5b41dc2aa7..0000000000000000000000000000000000000000
Binary files a/DSView/icons/logo_noColor.png and /dev/null differ
diff --git a/DSView/icons/mAmplitude.png b/DSView/icons/mAmplitude.png
new file mode 100755
index 0000000000000000000000000000000000000000..68814aa7f1c7b5ecda4e15114adc122f9ff1f1ce
Binary files /dev/null and b/DSView/icons/mAmplitude.png differ
diff --git a/DSView/icons/mBurst.png b/DSView/icons/mBurst.png
new file mode 100755
index 0000000000000000000000000000000000000000..cb449f9c9e85658fca695ae6a0b33fb08de99d40
Binary files /dev/null and b/DSView/icons/mBurst.png differ
diff --git a/DSView/icons/mDelay.png b/DSView/icons/mDelay.png
new file mode 100755
index 0000000000000000000000000000000000000000..1a992d1ad7e50b12273d0fb04f8dda8f2d6f1af7
Binary files /dev/null and b/DSView/icons/mDelay.png differ
diff --git a/DSView/icons/mFall.png b/DSView/icons/mFall.png
new file mode 100755
index 0000000000000000000000000000000000000000..1b2a9ac3ad5d8703fe7cc8ef448c8cfd93e91b0c
Binary files /dev/null and b/DSView/icons/mFall.png differ
diff --git a/DSView/icons/mFreq.png b/DSView/icons/mFreq.png
new file mode 100755
index 0000000000000000000000000000000000000000..ed8ccf14a56bab9550d49d9253acd482db569ce1
Binary files /dev/null and b/DSView/icons/mFreq.png differ
diff --git a/DSView/icons/mHigh.png b/DSView/icons/mHigh.png
new file mode 100755
index 0000000000000000000000000000000000000000..665d4c0c376ec9a68efb1db1951d73f590eec5d9
Binary files /dev/null and b/DSView/icons/mHigh.png differ
diff --git a/DSView/icons/mLow.png b/DSView/icons/mLow.png
new file mode 100755
index 0000000000000000000000000000000000000000..779a0e16192a03a7fc1aab05f54a59da625ef26e
Binary files /dev/null and b/DSView/icons/mLow.png differ
diff --git a/DSView/icons/mMax.png b/DSView/icons/mMax.png
new file mode 100755
index 0000000000000000000000000000000000000000..36572e3a39cc297335c78ad6a364a806a12a9532
Binary files /dev/null and b/DSView/icons/mMax.png differ
diff --git a/DSView/icons/mMean.png b/DSView/icons/mMean.png
new file mode 100755
index 0000000000000000000000000000000000000000..a65dd0980b3ae46fab919d608784a5176c4f31e9
Binary files /dev/null and b/DSView/icons/mMean.png differ
diff --git a/DSView/icons/mMin.png b/DSView/icons/mMin.png
new file mode 100755
index 0000000000000000000000000000000000000000..b9779a23638f740d83b510f4597cc30350c2c9f2
Binary files /dev/null and b/DSView/icons/mMin.png differ
diff --git a/DSView/icons/mNduty.png b/DSView/icons/mNduty.png
new file mode 100755
index 0000000000000000000000000000000000000000..fb2ea68e03b76dd41ae1be0939f5af7c98ff9a2a
Binary files /dev/null and b/DSView/icons/mNduty.png differ
diff --git a/DSView/icons/mNover.png b/DSView/icons/mNover.png
new file mode 100755
index 0000000000000000000000000000000000000000..80342c5967cc037b791914ccd35c241c18be1c47
Binary files /dev/null and b/DSView/icons/mNover.png differ
diff --git a/DSView/icons/mNwidth.png b/DSView/icons/mNwidth.png
new file mode 100755
index 0000000000000000000000000000000000000000..52782332d3144d9d2c1cd4802f1a56e0e65b1eb0
Binary files /dev/null and b/DSView/icons/mNwidth.png differ
diff --git a/DSView/icons/mPcount.png b/DSView/icons/mPcount.png
new file mode 100755
index 0000000000000000000000000000000000000000..eab790723cfa772054a69364c39140862fe47459
Binary files /dev/null and b/DSView/icons/mPcount.png differ
diff --git a/DSView/icons/mPduty.png b/DSView/icons/mPduty.png
new file mode 100755
index 0000000000000000000000000000000000000000..ab4a48d3e961fd1d3a311b67a7c9b749462170c5
Binary files /dev/null and b/DSView/icons/mPduty.png differ
diff --git a/DSView/icons/mPeriod.png b/DSView/icons/mPeriod.png
new file mode 100755
index 0000000000000000000000000000000000000000..d7722656b5ce69e9894f415e4244f52a9f8f1a09
Binary files /dev/null and b/DSView/icons/mPeriod.png differ
diff --git a/DSView/icons/mPover.png b/DSView/icons/mPover.png
new file mode 100755
index 0000000000000000000000000000000000000000..d7077a8febcaebba754df1c51af372c5f7864c58
Binary files /dev/null and b/DSView/icons/mPover.png differ
diff --git a/DSView/icons/mPwidth.png b/DSView/icons/mPwidth.png
new file mode 100755
index 0000000000000000000000000000000000000000..1bd4c4b3a576443dcb93ad46eef802b6670bff65
Binary files /dev/null and b/DSView/icons/mPwidth.png differ
diff --git a/DSView/icons/mRise.png b/DSView/icons/mRise.png
new file mode 100755
index 0000000000000000000000000000000000000000..69eef45fa4e85b80fb49d6a866f30f505f88e046
Binary files /dev/null and b/DSView/icons/mRise.png differ
diff --git a/DSView/icons/mRms.png b/DSView/icons/mRms.png
new file mode 100755
index 0000000000000000000000000000000000000000..a44db72764f553ac1ee0eb14bf8c1b20a0023dae
Binary files /dev/null and b/DSView/icons/mRms.png differ
diff --git a/DSView/icons/mVpp.png b/DSView/icons/mVpp.png
new file mode 100755
index 0000000000000000000000000000000000000000..4c42d1a3a80432f5c3e612ee05f151273c9706de
Binary files /dev/null and b/DSView/icons/mVpp.png differ
diff --git a/DSView/icons/math.png b/DSView/icons/math.png
old mode 100644
new mode 100755
index dbb83a78fec272e7b6a5b1b20f0431491b6a66af..a468dc6a166540339b6e04d21f2d42569707aaa5
Binary files a/DSView/icons/math.png and b/DSView/icons/math.png differ
diff --git a/DSView/icons/math_dis.png b/DSView/icons/math_dis.png
deleted file mode 100644
index 9850dd5e09f1ac5da0cd70726cc86e942c89cc38..0000000000000000000000000000000000000000
Binary files a/DSView/icons/math_dis.png and /dev/null differ
diff --git a/DSView/icons/maximize.png b/DSView/icons/maximize.png
deleted file mode 100644
index bb4bffb855e02052ad8655447158c97c2fae48fd..0000000000000000000000000000000000000000
Binary files a/DSView/icons/maximize.png and /dev/null differ
diff --git a/DSView/icons/measure.png b/DSView/icons/measure.png
deleted file mode 100644
index 461bb7c99808d5a89e4d115bcff04f829bc77daa..0000000000000000000000000000000000000000
Binary files a/DSView/icons/measure.png and /dev/null differ
diff --git a/DSView/icons/measure_dis.png b/DSView/icons/measure_dis.png
deleted file mode 100644
index 3f152eee474dd2a7e85cbf21166381409004c8d9..0000000000000000000000000000000000000000
Binary files a/DSView/icons/measure_dis.png and /dev/null differ
diff --git a/DSView/icons/minimize.png b/DSView/icons/minimize.png
deleted file mode 100644
index 7c9a9fd3e0899a367b7e4a1c71481a0499e10d7b..0000000000000000000000000000000000000000
Binary files a/DSView/icons/minimize.png and /dev/null differ
diff --git a/DSView/icons/moder.png b/DSView/icons/moder.png
deleted file mode 100755
index d94f826a75321345566e1513bba0eb6e17b7eed8..0000000000000000000000000000000000000000
Binary files a/DSView/icons/moder.png and /dev/null differ
diff --git a/DSView/icons/moder_dis.png b/DSView/icons/moder_dis.png
deleted file mode 100755
index 8bc447215db1bf8ff2b8d4614f61ca88f38acb07..0000000000000000000000000000000000000000
Binary files a/DSView/icons/moder_dis.png and /dev/null differ
diff --git a/DSView/icons/modes.png b/DSView/icons/modes.png
deleted file mode 100755
index c8e465ceb7b8e1864e096e8bdd45d9aa09ec062b..0000000000000000000000000000000000000000
Binary files a/DSView/icons/modes.png and /dev/null differ
diff --git a/DSView/icons/modes_dis.png b/DSView/icons/modes_dis.png
deleted file mode 100755
index 375a2a509dc81301caa746bfd05c54498b34e199..0000000000000000000000000000000000000000
Binary files a/DSView/icons/modes_dis.png and /dev/null differ
diff --git a/DSView/icons/params.png b/DSView/icons/params.png
deleted file mode 100644
index d6a9fff7e00b5d973b0859be97ddc3fa2fba6ed3..0000000000000000000000000000000000000000
Binary files a/DSView/icons/params.png and /dev/null differ
diff --git a/DSView/icons/params_dis.png b/DSView/icons/params_dis.png
deleted file mode 100644
index af2518a79d3016b5e09083dee660d0d91d47e994..0000000000000000000000000000000000000000
Binary files a/DSView/icons/params_dis.png and /dev/null differ
diff --git a/DSView/icons/protocol.png b/DSView/icons/protocol.png
deleted file mode 100644
index acf434e2f3c3dd55e53709aaf3ee9080d72308fc..0000000000000000000000000000000000000000
Binary files a/DSView/icons/protocol.png and /dev/null differ
diff --git a/DSView/icons/protocol_dis.png b/DSView/icons/protocol_dis.png
deleted file mode 100644
index 3836866f0769ed16e48aa236c50a4b08ec39e6e6..0000000000000000000000000000000000000000
Binary files a/DSView/icons/protocol_dis.png and /dev/null differ
diff --git a/DSView/icons/restore.png b/DSView/icons/restore.png
deleted file mode 100644
index ceaa6235a050f53d3828477e6cb885cd34148c29..0000000000000000000000000000000000000000
Binary files a/DSView/icons/restore.png and /dev/null differ
diff --git a/DSView/icons/search-bar.png b/DSView/icons/search-bar.png
deleted file mode 100644
index 1e58096d44e309e6efab825b0200958c308c0f66..0000000000000000000000000000000000000000
Binary files a/DSView/icons/search-bar.png and /dev/null differ
diff --git a/DSView/icons/search-bar_dis.png b/DSView/icons/search-bar_dis.png
deleted file mode 100644
index 1b2d6955dd5e18ac6a6d65ff378f5c1c238ec7b3..0000000000000000000000000000000000000000
Binary files a/DSView/icons/search-bar_dis.png and /dev/null differ
diff --git a/DSView/icons/search.png b/DSView/icons/search.png
old mode 100644
new mode 100755
diff --git a/DSView/icons/settings.png b/DSView/icons/settings.png
deleted file mode 100644
index b0065b510a7b42f26f5cece13c439feef66091a4..0000000000000000000000000000000000000000
Binary files a/DSView/icons/settings.png and /dev/null differ
diff --git a/DSView/icons/showDoc.png b/DSView/icons/showDoc.png
deleted file mode 100755
index 7a306d110a9f760c8b1b8c9c01b59045a354a12d..0000000000000000000000000000000000000000
Binary files a/DSView/icons/showDoc.png and /dev/null differ
diff --git a/DSView/icons/showDoc25.png b/DSView/icons/showDoc25.png
new file mode 100755
index 0000000000000000000000000000000000000000..c1ea34c40e4e0ac193ca2f214ad41c808dc25570
Binary files /dev/null and b/DSView/icons/showDoc25.png differ
diff --git a/DSView/icons/showDoc31.png b/DSView/icons/showDoc31.png
new file mode 100755
index 0000000000000000000000000000000000000000..0bbfebeb174c1f1b339e59d20086d996270e818e
Binary files /dev/null and b/DSView/icons/showDoc31.png differ
diff --git a/DSView/icons/single.png b/DSView/icons/single.png
deleted file mode 100644
index c0565af0449c936b4e0e6cb575004112efdeec9c..0000000000000000000000000000000000000000
Binary files a/DSView/icons/single.png and /dev/null differ
diff --git a/DSView/icons/single_dis.png b/DSView/icons/single_dis.png
deleted file mode 100644
index 4e1221f83739bd06294778e61b0f596b17d90473..0000000000000000000000000000000000000000
Binary files a/DSView/icons/single_dis.png and /dev/null differ
diff --git a/DSView/icons/slider-handle.png b/DSView/icons/slider-handle.png
deleted file mode 100644
index ac1f6e22cc975c9c462ac86c8de49a56c72c80b1..0000000000000000000000000000000000000000
Binary files a/DSView/icons/slider-handle.png and /dev/null differ
diff --git a/DSView/icons/start.png b/DSView/icons/start.png
deleted file mode 100644
index 4c2d7e611bdf1f57704ce7f9f80499288125493c..0000000000000000000000000000000000000000
Binary files a/DSView/icons/start.png and /dev/null differ
diff --git a/DSView/icons/start_dis.png b/DSView/icons/start_dis.png
deleted file mode 100644
index 56f6e90117665371851f3fe421852cac938698eb..0000000000000000000000000000000000000000
Binary files a/DSView/icons/start_dis.png and /dev/null differ
diff --git a/DSView/icons/stop.png b/DSView/icons/stop.png
deleted file mode 100644
index 77aa105d9f535a2f89d6aafb65464da8b78cc45e..0000000000000000000000000000000000000000
Binary files a/DSView/icons/stop.png and /dev/null differ
diff --git a/DSView/icons/trigger.png b/DSView/icons/trigger.png
deleted file mode 100644
index 6b1ca1b8e3bd865f2d0d50a2e64a25bdc05d909e..0000000000000000000000000000000000000000
Binary files a/DSView/icons/trigger.png and /dev/null differ
diff --git a/DSView/icons/trigger_dis.png b/DSView/icons/trigger_dis.png
deleted file mode 100644
index eb401cff315562160b57869f5f18811b853cac56..0000000000000000000000000000000000000000
Binary files a/DSView/icons/trigger_dis.png and /dev/null differ
diff --git a/DSView/icons/wait.gif b/DSView/icons/wait.gif
deleted file mode 100644
index b3ba36a619d15ef20c1e7f5087fcfcef2ea452f9..0000000000000000000000000000000000000000
Binary files a/DSView/icons/wait.gif and /dev/null differ
diff --git a/DSView/languages/language.qrc b/DSView/languages/language.qrc
new file mode 100755
index 0000000000000000000000000000000000000000..e0eacdf859074171a2ec3bcae89543e90d30f345
--- /dev/null
+++ b/DSView/languages/language.qrc
@@ -0,0 +1,6 @@
+
+
+ my_25.qm
+ qt_25.qm
+
+
diff --git a/DSView/languages/my_25.qm b/DSView/languages/my_25.qm
new file mode 100755
index 0000000000000000000000000000000000000000..2430370fea5fdfd37b1dc4487c6df93ed087dea3
Binary files /dev/null and b/DSView/languages/my_25.qm differ
diff --git a/DSView/languages/qt_25.qm b/DSView/languages/qt_25.qm
new file mode 100755
index 0000000000000000000000000000000000000000..3e5c146b14e0e5bd643a55a9f4fa625c547ad2b0
Binary files /dev/null and b/DSView/languages/qt_25.qm differ
diff --git a/DSView/main.cpp b/DSView/main.cpp
old mode 100644
new mode 100755
index e8157ff5e14103866ad3330acddf50039cfe694b..7350d34f390a40ccbbc59c48d15374a6fa2a1673
--- a/DSView/main.cpp
+++ b/DSView/main.cpp
@@ -63,12 +63,15 @@ int main(int argc, char *argv[])
struct sr_context *sr_ctx = NULL;
const char *open_file = NULL;
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication a(argc, argv);
// Set some application metadata
QApplication::setApplicationVersion(DS_VERSION_STRING);
QApplication::setApplicationName("DSView");
- QApplication::setOrganizationDomain("http://www.DreamSourceLab.com");
+ QApplication::setOrganizationName("DreamSourceLab");
+ QApplication::setOrganizationDomain("www.DreamSourceLab.com");
// Parse arguments
while (1) {
@@ -115,7 +118,7 @@ int main(int argc, char *argv[])
} else if (argc - optind == 1)
open_file = argv[argc - 1];
- // Initialise DS_RES_PATH
+ // Initialise DS_RES_PATH
QDir dir(QCoreApplication::applicationDirPath());
if (dir.cd("..") &&
dir.cd("share") &&
@@ -153,11 +156,6 @@ int main(int argc, char *argv[])
// Initialise the main frame
pv::MainFrame w(device_manager, open_file);
- //QFile qss(":/stylesheet.qss");
- QFile qss(":darkstyle/style.qss");
- qss.open(QFile::ReadOnly);
- a.setStyleSheet(qss.readAll());
- qss.close();
w.show();
w.readSettings();
w.show_doc();
diff --git a/DSView/pv/data/analog.cpp b/DSView/pv/data/analog.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/analog.h b/DSView/pv/data/analog.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/analogsnapshot.cpp b/DSView/pv/data/analogsnapshot.cpp
old mode 100644
new mode 100755
index bd73ae91190dac1a820f2c1556048ec4cab25e1a..91e11e6d2465a29f2216309d8eb48bf1c7449691
--- a/DSView/pv/data/analogsnapshot.cpp
+++ b/DSView/pv/data/analogsnapshot.cpp
@@ -123,18 +123,16 @@ void AnalogSnapshot::first_payload(const sr_datafeed_analog &analog, uint64_t to
for (unsigned int i = 0; i < _channel_num; i++) {
uint64_t envelop_count = _total_sample_count / EnvelopeScaleFactor;
for (unsigned int level = 0; level < ScaleStepCount; level++) {
- envelop_count = ((envelop_count + EnvelopeDataUnit - 1) /
- EnvelopeDataUnit) * EnvelopeDataUnit;
+// envelop_count = ((envelop_count + EnvelopeDataUnit - 1) /
+// EnvelopeDataUnit) * EnvelopeDataUnit;
+ _envelope_levels[i][level].count = envelop_count;
+ if (envelop_count == 0)
+ break;
_envelope_levels[i][level].samples = (EnvelopeSample*)malloc(envelop_count * sizeof(EnvelopeSample));
- _envelope_levels[i][level].max = (uint8_t *)malloc(envelop_count * _unit_bytes);
- _envelope_levels[i][level].min = (uint8_t *)malloc(envelop_count * _unit_bytes);
- if (!_envelope_levels[i][level].samples ||
- !_envelope_levels[i][level].max ||
- !_envelope_levels[i][level].min) {
+ if (!_envelope_levels[i][level].samples) {
isOk = false;
break;
}
- _envelope_levels[i][level].count = envelop_count;
envelop_count = envelop_count / EnvelopeScaleFactor;
}
if (!isOk)
@@ -277,7 +275,7 @@ void AnalogSnapshot::append_payload_to_envelope_levels()
if (e0.length == 0)
continue;
- reallocate_envelope(e0);
+ //reallocate_envelope(e0);
dest_ptr = e0.samples + prev_length;
@@ -324,13 +322,13 @@ void AnalogSnapshot::append_payload_to_envelope_levels()
if (e.ring_length == prev_length)
break;
- reallocate_envelope(e);
+ //reallocate_envelope(e);
// Subsample the level lower level
const EnvelopeSample *src_ptr =
el.samples + prev_length * EnvelopeScaleFactor;
- const EnvelopeSample *const end_dest_ptr = e.samples + e.ring_length;
- dest_ptr = e.samples + prev_length;
+ const EnvelopeSample *const end_dest_ptr = (e.ring_length == e.count) ? e.samples : e.samples + e.ring_length;
+ dest_ptr = (prev_length == e.count) ? e.samples : e.samples + prev_length;
while(dest_ptr != end_dest_ptr) {
const EnvelopeSample * end_src_ptr =
src_ptr + EnvelopeScaleFactor;
diff --git a/DSView/pv/data/analogsnapshot.h b/DSView/pv/data/analogsnapshot.h
old mode 100644
new mode 100755
index 25d1c0d6256d909212a77e5df3c8deaac8364878..644dbfaa0bfc768933ca811054bee5e34a6875da
--- a/DSView/pv/data/analogsnapshot.h
+++ b/DSView/pv/data/analogsnapshot.h
@@ -54,8 +54,6 @@ public:
uint64_t length;
uint64_t samples_num;
EnvelopeSample *samples;
- uint8_t *max;
- uint8_t *min;
};
private:
diff --git a/DSView/pv/data/decode/annotation.cpp b/DSView/pv/data/decode/annotation.cpp
old mode 100644
new mode 100755
index 3581817d11b49a29f7390c7d6939af7bbc382c34..c433a2883d412a6678b749e59b4b9f76a1a044a3
--- a/DSView/pv/data/decode/annotation.cpp
+++ b/DSView/pv/data/decode/annotation.cpp
@@ -45,7 +45,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
_type = pda->ann_type;
const char *const *annotations = (char**)pda->ann_text;
- while(*annotations) {
+ while(*annotations) {
_annotations.push_back(QString::fromUtf8(*annotations));
annotations++;
}
diff --git a/DSView/pv/data/decode/annotation.h b/DSView/pv/data/decode/annotation.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decode/decoder.cpp b/DSView/pv/data/decode/decoder.cpp
old mode 100644
new mode 100755
index fed10d7714511e1e3c7b6fa12ed5c632ef966f1c..486340cc020a09a137d02f7a4fe062526b31bf7e
--- a/DSView/pv/data/decode/decoder.cpp
+++ b/DSView/pv/data/decode/decoder.cpp
@@ -43,7 +43,8 @@ Decoder::~Decoder()
{
for (map::const_iterator i = _options_back.begin();
i != _options_back.end(); i++)
- g_variant_unref((*i).second);
+ if ((*i).second)
+ g_variant_unref((*i).second);
}
const srd_decoder* Decoder::decoder() const
@@ -81,7 +82,9 @@ const std::map& Decoder::options() const
void Decoder::set_option(const char *id, GVariant *value)
{
assert(value);
- g_variant_unref(_options_back[id]);
+ if (_options_back[id]) {
+ g_variant_unref(_options_back[id]);
+ }
g_variant_ref(value);
_options_back[id] = value;
_setted = true;
diff --git a/DSView/pv/data/decode/decoder.h b/DSView/pv/data/decode/decoder.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decode/row.cpp b/DSView/pv/data/decode/row.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decode/row.h b/DSView/pv/data/decode/row.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decode/rowdata.cpp b/DSView/pv/data/decode/rowdata.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decode/rowdata.h b/DSView/pv/data/decode/rowdata.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decodermodel.cpp b/DSView/pv/data/decodermodel.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decodermodel.h b/DSView/pv/data/decodermodel.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/decoderstack.cpp b/DSView/pv/data/decoderstack.cpp
old mode 100644
new mode 100755
index 8e6a80396d4a116b8af186334db84f998e6dff8a..61a66dac8d8114fe582ef46a0aed52e6f647a7d7
--- a/DSView/pv/data/decoderstack.cpp
+++ b/DSView/pv/data/decoderstack.cpp
@@ -478,7 +478,6 @@ void DecoderStack::decode_data(
}
uint64_t entry_cnt = 0;
- uint8_t chunk_type = 0;
uint64_t i = decode_start;
char *error = NULL;
while(!boost::this_thread::interruption_requested() &&
@@ -492,6 +491,7 @@ void DecoderStack::decode_data(
int sig_index = logic_di->dec_channelmap[j];
if (sig_index == -1) {
chunk.push_back(NULL);
+ chunk_const.push_back(0);
} else {
if (_snapshot->has_data(sig_index)) {
chunk.push_back(_snapshot->get_samples(i, chunk_end, sig_index));
@@ -502,57 +502,17 @@ void DecoderStack::decode_data(
}
}
}
+ if (chunk_end > decode_end)
+ chunk_end = decode_end;
if (chunk_end - i > MaxChunkSize)
chunk_end = i + MaxChunkSize;
- if (srd_session_send(session, chunk_type, i, chunk_end,
- chunk.data(), chunk_const.data(), &error) != SRD_OK) {
+ if (srd_session_send(session, i, chunk_end,
+ chunk.data(), chunk_const.data(), chunk_end - i, &error) != SRD_OK) {
_error_message = QString::fromLocal8Bit(error);
break;
}
-
- if (logic_di && logic_di->logic_mask != 0 && logic_di->cur_pos < decode_end) {
- uint64_t cur_pos = logic_di->cur_pos;
- uint64_t sample;
- if (logic_di->edge_index == -1) {
- std::vector pos_vector;
- cur_pos++;
- for (int j =0 ; j < logic_di->dec_num_channels; j++) {
- int index = logic_di->dec_channelmap[j];
- if (index != -1 && (logic_di->logic_mask & (1 << j))) {
- bool last_sample = _snapshot->get_sample(cur_pos - 1, index);
- pos_vector.push_back(cur_pos);
- _snapshot->get_nxt_edge(pos_vector.back(), last_sample, decode_end, 1, index);
- }
- }
- cur_pos = *std::min_element(pos_vector.begin(), pos_vector.end());
- } else {
- bool last_sample = _snapshot->get_sample(cur_pos, logic_di->edge_index);
- do {
- sample = 0;
- cur_pos++;
- if (!_snapshot->get_nxt_edge(cur_pos, last_sample, decode_end, 1, logic_di->edge_index))
- break;
- for (int j =0 ; j < logic_di->dec_num_channels; j++) {
- if (logic_di->logic_mask & (1 << j)) {
- int index = logic_di->dec_channelmap[j];
- bool index_sample = _snapshot->get_sample(cur_pos, index);
- sample += index_sample << j;
- if (index == logic_di->edge_index)
- last_sample = index_sample;
- }
- }
- } while(sample != logic_di->exp_logic);
- }
-
- i = cur_pos;
- if (i >= decode_end)
- i = decode_end;
- chunk_type = 0;
- } else {
- i = chunk_end + 1;
- chunk_type = 1;
- }
+ i = chunk_end;
{
boost::lock_guard lock(_output_mutex);
diff --git a/DSView/pv/data/decoderstack.h b/DSView/pv/data/decoderstack.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/dso.cpp b/DSView/pv/data/dso.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/dso.h b/DSView/pv/data/dso.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/dsosnapshot.cpp b/DSView/pv/data/dsosnapshot.cpp
old mode 100644
new mode 100755
index f90b8e71d9236d5492568376f6d9983cfcd3f1fd..ae576be246cdb27ed09806e269f4b1b5d9a09f9d
--- a/DSView/pv/data/dsosnapshot.cpp
+++ b/DSView/pv/data/dsosnapshot.cpp
@@ -163,16 +163,20 @@ void DsoSnapshot::append_payload(const sr_datafeed_dso &dso)
append_data(dso.data, dso.num_samples, _instant);
// Generate the first mip-map from the data
+ //if (_envelope_en)
+ // append_payload_to_envelope_levels(dso.samplerate_tog);
if (_envelope_en)
- append_payload_to_envelope_levels(dso.samplerate_tog);
+ append_payload_to_envelope_levels(true);
}
}
void DsoSnapshot::append_data(void *data, uint64_t samples, bool instant)
{
if (instant) {
+ if(_sample_count + samples > _total_sample_count)
+ samples = _total_sample_count - _sample_count;
memcpy((uint8_t*)_data + _sample_count * _channel_num, data, samples*_channel_num);
- _sample_count = (_sample_count + samples) % (_total_sample_count + 1);
+ _sample_count += samples;
} else {
memcpy((uint8_t*)_data, data, samples*_channel_num);
_sample_count = samples;
@@ -304,12 +308,17 @@ void DsoSnapshot::append_payload_to_envelope_levels(bool header)
const Envelope &el = _envelope_levels[i][level-1];
// Expand the data buffer to fit the new samples
- prev_length = e.length;
+ if (header)
+ prev_length = 0;
+ else
+ prev_length = e.length;
e.length = el.length / EnvelopeScaleFactor;
// Break off if there are no more samples to computed
// if (e.length == prev_length)
// break;
+ if (e.length == 0)
+ break;
if (e.length == prev_length)
prev_length = 0;
diff --git a/DSView/pv/data/dsosnapshot.h b/DSView/pv/data/dsosnapshot.h
old mode 100644
new mode 100755
index 7b56c47aa63c197dacbacf7cb0e041f445795bc9..aa19cca56db7656448ef2d199377dd2130115b35
--- a/DSView/pv/data/dsosnapshot.h
+++ b/DSView/pv/data/dsosnapshot.h
@@ -82,7 +82,8 @@ public:
void clear();
void init();
- void first_payload(const sr_datafeed_dso &dso, uint64_t total_sample_count, std::map ch_enable, bool instant);
+ void first_payload(const sr_datafeed_dso &dso, uint64_t total_sample_count,
+ std::map ch_enable, bool instant);
void append_payload(const sr_datafeed_dso &dso);
diff --git a/DSView/pv/data/group.cpp b/DSView/pv/data/group.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/group.h b/DSView/pv/data/group.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/groupsnapshot.cpp b/DSView/pv/data/groupsnapshot.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/groupsnapshot.h b/DSView/pv/data/groupsnapshot.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/logic.cpp b/DSView/pv/data/logic.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/logic.h b/DSView/pv/data/logic.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/logicsnapshot.cpp b/DSView/pv/data/logicsnapshot.cpp
old mode 100644
new mode 100755
index d0cfec73390aee333b6f91a68a9cd40431b7d7b7..0542672259cde7d52cdc61cfb47681ab234a6764
--- a/DSView/pv/data/logicsnapshot.cpp
+++ b/DSView/pv/data/logicsnapshot.cpp
@@ -222,11 +222,14 @@ void LogicSnapshot::append_cross_payload(
_src_ptr = logic.data;
uint64_t len = logic.length;
+ // samples not accurate, lead to a larger _sampole_count
+ // _sample_count should be fixed in the last packet
+ // so _total_sample_count must be align to LeafBlock
uint64_t samples = ceil(logic.length * 8.0 / _channel_num);
if (_sample_count + samples < _total_sample_count) {
_sample_count += samples;
} else {
- len = ceil((_total_sample_count - _sample_count) * _channel_num / 8.0);
+ //len = ceil((_total_sample_count - _sample_count) * _channel_num / 8.0);
_sample_count = _total_sample_count;
}
@@ -471,7 +474,7 @@ const uint8_t *LogicSnapshot::get_samples(uint64_t start_sample, uint64_t &end_s
{
//assert(data);
assert(start_sample < get_sample_count());
- assert(end_sample < get_sample_count());
+ assert(end_sample <= get_sample_count());
assert(start_sample <= end_sample);
int order = get_ch_order(sig_index);
@@ -481,7 +484,7 @@ const uint8_t *LogicSnapshot::get_samples(uint64_t start_sample, uint64_t &end_s
end_sample = (root_index << (LeafBlockPower + RootScalePower)) +
(root_pos << LeafBlockPower) +
~(~0ULL << LeafBlockPower);
- end_sample = min(end_sample, get_sample_count() - 1);
+ end_sample = min(end_sample + 1, get_sample_count());
if (order == -1 ||
_ch_data[order][root_index].lbp[root_pos] == NULL)
diff --git a/DSView/pv/data/logicsnapshot.h b/DSView/pv/data/logicsnapshot.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/mathstack.cpp b/DSView/pv/data/mathstack.cpp
old mode 100644
new mode 100755
index e33df5e84fba91d2b805c8688a65b736766f874a..5b9ce7a30d0de86a1e408214dccc4f3a40799f6b
--- a/DSView/pv/data/mathstack.cpp
+++ b/DSView/pv/data/mathstack.cpp
@@ -36,39 +36,75 @@ using namespace std;
namespace pv {
namespace data {
-const QString MathStack::windows_support[5] = {
- QT_TR_NOOP("Rectangle"),
- QT_TR_NOOP("Hann"),
- QT_TR_NOOP("Hamming"),
- QT_TR_NOOP("Blackman"),
- QT_TR_NOOP("Flat_top")
+const int MathStack::EnvelopeScalePower = 8;
+const int MathStack::EnvelopeScaleFactor = 1 << EnvelopeScalePower;
+const float MathStack::LogEnvelopeScaleFactor = logf(EnvelopeScaleFactor);
+const uint64_t MathStack::EnvelopeDataUnit = 4*1024; // bytes
+
+const uint64_t MathStack::vDialValue[MathStack::vDialValueCount] = {
+ 1,
+ 2,
+ 5,
+ 10,
+ 20,
+ 50,
+ 100,
+ 200,
+ 500,
+ 1000,
+ 2000,
+ 5000,
+ 10000,
+ 20000,
+ 50000,
+ 100000,
+ 200000,
+ 500000,
+ 1000000,
};
-
-const uint64_t MathStack::length_support[5] = {
- 1024,
- 2048,
- 4096,
- 8192,
- 16384,
+const QString MathStack::vDialAddUnit[MathStack::vDialUnitCount] = {
+ "mV",
+ "V",
+};
+const QString MathStack::vDialMulUnit[MathStack::vDialUnitCount] = {
+ "mV*V",
+ "V*V",
+};
+const QString MathStack::vDialDivUnit[MathStack::vDialUnitCount] = {
+ "mV/V",
+ "V/V",
};
-MathStack::MathStack(pv::SigSession &session, int index) :
+MathStack::MathStack(pv::SigSession &session,
+ boost::shared_ptr dsoSig1,
+ boost::shared_ptr dsoSig2,
+ MathType type) :
_session(session),
- _index(index),
- _dc_ignore(true),
- _sample_interval(1),
+ _dsoSig1(dsoSig1),
+ _dsoSig2(dsoSig2),
+ _type(type),
+ _sample_num(0),
+ _total_sample_num(0),
_math_state(Init),
- _fft_plan(NULL)
+ _envelope_en(false),
+ _envelope_done(false)
{
+ memset(_envelope_level, 0, sizeof(_envelope_level));
}
MathStack::~MathStack()
{
- _xn.clear();
- _xk.clear();
- _power_spectrum.clear();
- if (_fft_plan)
- fftw_destroy_plan(_fft_plan);
+ _math.clear();
+ free_envelop();
+}
+
+void MathStack::free_envelop()
+{
+ BOOST_FOREACH(Envelope &e, _envelope_level) {
+ if (e.samples)
+ free(e.samples);
+ }
+ memset(_envelope_level, 0, sizeof(_envelope_level));
}
void MathStack::clear()
@@ -77,11 +113,13 @@ void MathStack::clear()
void MathStack::init()
{
+ _sample_num = 0;
+ _envelope_done = false;
}
-int MathStack::get_index() const
+MathStack::MathType MathStack::get_type() const
{
- return _index;
+ return _type;
}
uint64_t MathStack::get_sample_num() const
@@ -89,158 +127,351 @@ uint64_t MathStack::get_sample_num() const
return _sample_num;
}
-void MathStack::set_sample_num(uint64_t num)
+void MathStack::realloc(uint64_t num)
{
- _sample_num = num;
- _xn.resize(_sample_num);
- _xk.resize(_sample_num);
- _power_spectrum.resize(_sample_num/2+1);
- _fft_plan = fftw_plan_r2r_1d(_sample_num, _xn.data(), _xk.data(),
- FFTW_R2HC, FFTW_ESTIMATE);
+ if (num != _total_sample_num) {
+ free_envelop();
+ _total_sample_num = num;
+
+ _math.resize(_total_sample_num);
+ uint64_t envelop_count = _total_sample_num / EnvelopeScaleFactor;
+ for (unsigned int level = 0; level < ScaleStepCount; level++) {
+ envelop_count = ((envelop_count + EnvelopeDataUnit - 1) /
+ EnvelopeDataUnit) * EnvelopeDataUnit;
+ _envelope_level[level].samples = (EnvelopeSample*)malloc(envelop_count * sizeof(EnvelopeSample));
+ envelop_count = envelop_count / EnvelopeScaleFactor;
+ }
+ }
}
-int MathStack::get_windows_index() const
+void MathStack::enable_envelope(bool enable)
{
- return _windows_index;
+ if (!_envelope_done && enable)
+ append_to_envelope_level(true);
+ _envelope_en = enable;
}
-void MathStack::set_windows_index(int index)
+uint64_t MathStack::default_vDialValue()
{
- _windows_index = index;
-}
+ uint64_t value = 0;
+ view::dslDial *dial1 = _dsoSig1->get_vDial();
+ view::dslDial *dial2 = _dsoSig1->get_vDial();
+ const uint64_t dial1_value = dial1->get_value() * dial1->get_factor();
+ const uint64_t dial2_value = dial2->get_value() * dial2->get_factor();
+
+ switch(_type) {
+ case MATH_ADD:
+ case MATH_SUB:
+ value = max(dial1_value, dial2_value);
+ break;
+ case MATH_MUL:
+ value = dial1_value * dial2_value / 1000.0;
+ break;
+ case MATH_DIV:
+ value = dial1_value * 1000.0 / dial2_value;
+ break;
+ }
-bool MathStack::dc_ignored() const
-{
- return _dc_ignore;
-}
+ for (int i = 0; i < vDialValueCount; i++) {
+ if (vDialValue[i] >= value) {
+ value = vDialValue[i];
+ break;
+ }
+ }
-void MathStack::set_dc_ignore(bool ignore)
-{
- _dc_ignore = ignore;
+ return value;
}
-int MathStack::get_sample_interval() const
+view::dslDial * MathStack::get_vDial()
{
- return _sample_interval;
-}
+ QVector vValue;
+ QVector vUnit;
+ view::dslDial *dial1 = _dsoSig1->get_vDial();
+ view::dslDial *dial2 = _dsoSig2->get_vDial();
+ const uint64_t dial1_min = dial1->get_value(0) * dial1->get_factor();
+ const uint64_t dial1_max = dial1->get_value(dial1->get_count() - 1) * dial1->get_factor();
+ const uint64_t dial2_min = dial2->get_value(0) * dial2->get_factor();
+ const uint64_t dial2_max = dial2->get_value(dial2->get_count() - 1) * dial2->get_factor();
+
+ switch(_type) {
+ case MATH_ADD:
+ case MATH_SUB:
+ for (int i = 0; i < vDialValueCount; i++) {
+ if (vDialValue[i] < min(dial1_min, dial2_min))
+ continue;
+ vValue.append(vDialValue[i]);
+ if (vDialValue[i] > max(dial1_max, dial2_max))
+ break;
+ }
+ for(int i = 0; i < vDialUnitCount; i++)
+ vUnit.append(vDialAddUnit[i]);
+ break;
+ case MATH_MUL:
+ for (int i = 0; i < vDialValueCount; i++) {
+ if (vDialValue[i] < dial1_min * dial2_min / 1000.0)
+ continue;
+ vValue.append(vDialValue[i]);
+ if (vDialValue[i] > dial1_max * dial2_max / 1000.0)
+ break;
+ }
+ for(int i = 0; i < vDialUnitCount; i++)
+ vUnit.append(vDialMulUnit[i]);
+ break;
+ case MATH_DIV:
+ for (int i = 0; i < vDialValueCount; i++) {
+ if (vDialValue[i] < min(dial1_min * 1000.0 / dial2_max, dial2_min * 1000.0 / dial1_max))
+ continue;
+ vValue.append(vDialValue[i]);
+ if (vDialValue[i] > max(dial1_max * 1000.0 / dial2_min, dial2_max * 1000.0 / dial1_min))
+ break;
+ }
+ for(int i = 0; i < vDialUnitCount; i++)
+ vUnit.append(vDialDivUnit[i]);
+ break;
+ }
-void MathStack::set_sample_interval(int interval)
-{
- _sample_interval = interval;
+ view::dslDial *vDial = new view::dslDial(vValue.count(), vDialValueStep, vValue, vUnit);
+ return vDial;
}
-const std::vector MathStack::get_windows_support() const
+QString MathStack::get_unit(int level)
{
- std::vector windows;
- for (size_t i = 0; i < sizeof(windows_support)/sizeof(windows_support[0]); i++)
- {
- windows.push_back(windows_support[i]);
+ if (level >= vDialUnitCount)
+ return tr(" ");
+
+ QString unit;
+ switch(_type) {
+ case MATH_ADD:
+ case MATH_SUB:
+ unit = vDialAddUnit[level];
+ break;
+ case MATH_MUL:
+ unit = vDialMulUnit[level];
+ break;
+ case MATH_DIV:
+ unit = vDialDivUnit[level];
+ break;
}
- return windows;
+
+ return unit;
}
-const std::vector MathStack::get_length_support() const
+double MathStack::get_math_scale()
{
- std::vector length;
- for (size_t i = 0; i < sizeof(length_support)/sizeof(length_support[0]); i++)
- {
- length.push_back(length_support[i]);
+ double scale = 0;
+ switch(_type) {
+ case MATH_ADD:
+ case MATH_SUB:
+ scale = 1.0 / DS_CONF_DSO_VDIVS;
+ break;
+ case MATH_MUL:
+ //scale = 1.0 / (DS_CONF_DSO_VDIVS * DS_CONF_DSO_VDIVS);
+ scale = 1.0 / DS_CONF_DSO_VDIVS;
+ break;
+ case MATH_DIV:
+ scale = 1.0 / DS_CONF_DSO_VDIVS;
+ break;
}
- return length;
+
+ return scale;
}
-const std::vector MathStack::get_fft_spectrum() const
+const double* MathStack::get_math(uint64_t start) const
{
- std::vector empty;
- if (_math_state == Stopped)
- return _power_spectrum;
- else
- return empty;
+ return _math.data() + start;
}
-double MathStack::get_fft_spectrum(uint64_t index)
+void MathStack::get_math_envelope_section(EnvelopeSection &s,
+ uint64_t start, uint64_t end, float min_length) const
{
- double ret = -1;
- if (_math_state == Stopped && index < _power_spectrum.size())
- ret = _power_spectrum[index];
+ assert(end <= get_sample_num());
+ assert(start <= end);
+ assert(min_length > 0);
+
+ if (!_envelope_done) {
+ s.length = 0;
+ return;
+ }
+
+ const unsigned int min_level = max((int)floorf(logf(min_length) /
+ LogEnvelopeScaleFactor) - 1, 0);
+ const unsigned int scale_power = (min_level + 1) *
+ EnvelopeScalePower;
+ start >>= scale_power;
+ end >>= scale_power;
+
+ s.start = start << scale_power;
+ s.scale = 1 << scale_power;
+ if (_envelope_level[min_level].length == 0)
+ s.length = 0;
+ else
+ s.length = end - start;
- return ret;
+ s.samples = _envelope_level[min_level].samples + start;
}
-void MathStack::calc_fft()
+void MathStack::calc_math()
{
_math_state = Running;
- // Get the dso data
- boost::shared_ptr data;
- boost::shared_ptr dsoSig;
- BOOST_FOREACH(const boost::shared_ptr s, _session.get_signals()) {
- if ((dsoSig = dynamic_pointer_cast(s))) {
- if (dsoSig->get_index() == _index && dsoSig->enabled()) {
- data = dsoSig->dso_data();
- break;
- }
- }
- }
- if (!data)
- return;
-
- // Check we have a snapshot of data
+ const boost::shared_ptr data = _dsoSig1->dso_data();
const deque< boost::shared_ptr > &snapshots =
data->get_snapshots();
if (snapshots.empty())
return;
- _snapshot = snapshots.front();
- if (_snapshot->get_sample_count() < _sample_num*_sample_interval)
+ const boost::shared_ptr &snapshot =
+ snapshots.front();
+ if (snapshot->empty())
return;
- // Get the samplerate
- _samplerate = data->samplerate();
- if (_samplerate == 0.0)
- _samplerate = 1.0;
-
- // prepare _xn data
- const double offset = dsoSig->get_hw_offset();
- const double vscale = dsoSig->get_vDialValue() * dsoSig->get_factor() * DS_CONF_DSO_VDIVS / (1000*255.0);
- const uint16_t step = _snapshot->get_channel_num() * _sample_interval;
- const uint8_t *const samples = _snapshot->get_samples(0, _sample_num*_sample_interval-1, _index);
- double wsum = 0;
- for (unsigned int i = 0; i < _sample_num; i++) {
- double w = window(i, _windows_index);
- _xn[i] = ((double)samples[i*step] - offset) * vscale * w;
- wsum += w;
- }
+ if (_math.size() < _total_sample_num)
+ return;
- // fft
- fftw_execute(_fft_plan);
+ if (!_dsoSig1->enabled() || !_dsoSig2->enabled())
+ return;
- // calculate power spectrum
- _power_spectrum[0] = abs(_xk[0])/wsum; /* DC component */
- for (unsigned int k = 1; k < (_sample_num + 1) / 2; ++k) /* (k < N/2 rounded up) */
- _power_spectrum[k] = sqrt((_xk[k]*_xk[k] + _xk[_sample_num-k]*_xk[_sample_num-k]) * 2) / wsum;
- if (_sample_num % 2 == 0) /* N is even */
- _power_spectrum[_sample_num/2] = abs(_xk[_sample_num/2])/wsum; /* Nyquist freq. */
+ const double scale1 = _dsoSig1->get_vDialValue() / 1000.0 * _dsoSig1->get_factor() * DS_CONF_DSO_VDIVS *
+ _dsoSig1->get_scale() / _dsoSig1->get_view_rect().height();
+ const double delta1 = _dsoSig1->get_hw_offset() * scale1;
+
+ const double scale2 = _dsoSig2->get_vDialValue() / 1000.0 * _dsoSig2->get_factor() * DS_CONF_DSO_VDIVS *
+ _dsoSig2->get_scale() / _dsoSig2->get_view_rect().height();
+ const double delta2 = _dsoSig2->get_hw_offset() * scale2;
+
+ const int index1 = _dsoSig1->get_index();
+ const int index2 = _dsoSig2->get_index();
+
+ const int num_channels = snapshot->get_channel_num();
+ const uint8_t* value = snapshot->get_samples(0, 0, 0);
+ _sample_num = snapshot->get_sample_count();
+ assert(_sample_num <= _total_sample_num);
+
+ double value1, value2;
+ for (uint64_t sample = 0; sample < _sample_num; sample++) {
+ value1 = value[sample * num_channels + index1];
+ value2 = value[sample * num_channels + index2];
+ switch(_type) {
+ case MATH_ADD:
+ _math[sample] = (delta1 - scale1 * value1) + (delta2 - scale2 * value2);
+ break;
+ case MATH_SUB:
+ _math[sample] = (delta1 - scale1 * value1) - (delta2 - scale2 * value2);
+ break;
+ case MATH_MUL:
+ _math[sample] = (delta1 - scale1 * value1) * (delta2 - scale2 * value2);
+ break;
+ case MATH_DIV:
+ _math[sample] = (delta1 - scale1 * value1) / (delta2 - scale2 * value2);
+ break;
+ }
+ }
+ if (_envelope_en)
+ append_to_envelope_level(true);
+
+ // stop
_math_state = Stopped;
}
-double MathStack::window(uint64_t i, int type)
-{
- const double n_m_1 = _sample_num-1;
- switch(type) {
- case 1: // Hann window
- return 0.5*(1-cos(2*PI*i/n_m_1));
- case 2: // Hamming window
- return 0.54-0.46*cos(2*PI*i/n_m_1);
- case 3: // Blackman window
- return 0.42659-0.49656*cos(2*PI*i/n_m_1) + 0.076849*cos(4*PI*i/n_m_1);
- case 4: // Flat_top window
- return 1-1.93*cos(2*PI*i/n_m_1)+1.29*cos(4*PI*i/n_m_1)-
- 0.388*cos(6*PI*i/n_m_1)+0.028*cos(8*PI*i/n_m_1);
- default:
- return 1;
+void MathStack::reallocate_envelope(Envelope &e)
+{
+ const uint64_t new_data_length = ((e.length + EnvelopeDataUnit - 1) /
+ EnvelopeDataUnit) * EnvelopeDataUnit;
+ if (new_data_length > e.data_length)
+ {
+ e.data_length = new_data_length;
+ }
+}
+
+void MathStack::append_to_envelope_level(bool header)
+{
+ Envelope &e0 = _envelope_level[0];
+ uint64_t prev_length;
+ EnvelopeSample *dest_ptr;
+
+ if (header)
+ prev_length = 0;
+ else
+ prev_length = e0.length;
+ e0.length = _sample_num / EnvelopeScaleFactor;
+
+ if (e0.length == 0)
+ return;
+ if (e0.length == prev_length)
+ prev_length = 0;
+
+ // Expand the data buffer to fit the new samples
+ reallocate_envelope(e0);
+
+ dest_ptr = e0.samples + prev_length;
+
+ // Iterate through the samples to populate the first level mipmap
+ const double *const stop_src_ptr = (double*)_math.data() +
+ e0.length * EnvelopeScaleFactor;
+ for (const double *src_ptr = (double*)_math.data() +
+ prev_length * EnvelopeScaleFactor;
+ src_ptr < stop_src_ptr; src_ptr += EnvelopeScaleFactor)
+ {
+ const double * begin_src_ptr =
+ src_ptr;
+ const double *const end_src_ptr =
+ src_ptr + EnvelopeScaleFactor;
+
+ EnvelopeSample sub_sample;
+ sub_sample.min = *begin_src_ptr;
+ sub_sample.max = *begin_src_ptr;
+ //begin_src_ptr += _channel_num;
+ while (begin_src_ptr < end_src_ptr)
+ {
+ sub_sample.min = min(sub_sample.min, *begin_src_ptr);
+ sub_sample.max = max(sub_sample.max, *begin_src_ptr);
+ begin_src_ptr ++;
+ }
+ *dest_ptr++ = sub_sample;
+ }
+
+ // Compute higher level mipmaps
+ for (unsigned int level = 1; level < ScaleStepCount; level++)
+ {
+ Envelope &e = _envelope_level[level];
+ const Envelope &el = _envelope_level[level-1];
+
+ // Expand the data buffer to fit the new samples
+ prev_length = e.length;
+ e.length = el.length / EnvelopeScaleFactor;
+
+ // Break off if there are no more samples to computed
+// if (e.length == prev_length)
+// break;
+ if (e.length == prev_length)
+ prev_length = 0;
+
+ reallocate_envelope(e);
+
+ // Subsample the level lower level
+ const EnvelopeSample *src_ptr =
+ el.samples + prev_length * EnvelopeScaleFactor;
+ const EnvelopeSample *const end_dest_ptr = e.samples + e.length;
+ for (dest_ptr = e.samples + prev_length;
+ dest_ptr < end_dest_ptr; dest_ptr++)
+ {
+ const EnvelopeSample *const end_src_ptr =
+ src_ptr + EnvelopeScaleFactor;
+
+ EnvelopeSample sub_sample = *src_ptr++;
+ while (src_ptr < end_src_ptr)
+ {
+ sub_sample.min = min(sub_sample.min, src_ptr->min);
+ sub_sample.max = max(sub_sample.max, src_ptr->max);
+ src_ptr++;
+ }
+
+ *dest_ptr = sub_sample;
+ }
}
+
+ _envelope_done = true;
}
} // namespace data
diff --git a/DSView/pv/data/mathstack.h b/DSView/pv/data/mathstack.h
old mode 100644
new mode 100755
index 88c5fca3b3b3f255004cf1c64c7da951c24fd8da..ffb80db45a6f5ddf705cf8f8c4a36f3f3552dce9
--- a/DSView/pv/data/mathstack.h
+++ b/DSView/pv/data/mathstack.h
@@ -29,8 +29,6 @@
#include
#include
-#include
-
#include
#include
@@ -40,6 +38,7 @@ class SigSession;
namespace view {
class DsoSignal;
+class dslDial;
}
namespace data {
@@ -51,10 +50,6 @@ class MathStack : public QObject, public SignalData
{
Q_OBJECT
-private:
- static const QString windows_support[5];
- static const uint64_t length_support[5];
-
public:
enum math_state {
Init,
@@ -62,56 +57,95 @@ public:
Running
};
+ enum MathType {
+ MATH_ADD,
+ MATH_SUB,
+ MATH_MUL,
+ MATH_DIV,
+ };
+
+ struct EnvelopeSample
+ {
+ double min;
+ double max;
+ };
+
+ struct EnvelopeSection
+ {
+ uint64_t start;
+ unsigned int scale;
+ uint64_t length;
+ EnvelopeSample *samples;
+ };
+
+private:
+ struct Envelope
+ {
+ uint64_t length;
+ uint64_t data_length;
+ EnvelopeSample *samples;
+ };
+
+private:
+ static const unsigned int ScaleStepCount = 10;
+ static const int EnvelopeScalePower;
+ static const int EnvelopeScaleFactor;
+ static const float LogEnvelopeScaleFactor;
+ static const uint64_t EnvelopeDataUnit;
+
+ static const uint64_t vDialValueStep = 1000;
+ static const int vDialValueCount = 19;
+ static const uint64_t vDialValue[vDialValueCount];
+ static const int vDialUnitCount = 2;
+ static const QString vDialAddUnit[vDialUnitCount];
+ static const QString vDialMulUnit[vDialUnitCount];
+ static const QString vDialDivUnit[vDialUnitCount];
+
public:
- MathStack(pv::SigSession &_session, int index);
+ MathStack(pv::SigSession &_session,
+ boost::shared_ptr dsoSig1,
+ boost::shared_ptr dsoSig2, MathType type);
virtual ~MathStack();
void clear();
void init();
+ void free_envelop();
+ void realloc(uint64_t num);
- int get_index() const;
-
+ MathType get_type() const;
uint64_t get_sample_num() const;
- void set_sample_num(uint64_t num);
-
- int get_windows_index() const;
- void set_windows_index(int index);
- const std::vector get_windows_support() const;
- const std::vector get_length_support() const;
+ void enable_envelope(bool enable);
- bool dc_ignored() const;
- void set_dc_ignore(bool ignore);
+ uint64_t default_vDialValue();
+ view::dslDial *get_vDial();
+ QString get_unit(int level);
+ double get_math_scale();
- int get_sample_interval() const;
- void set_sample_interval(int interval);
+ const double *get_math(uint64_t start) const;
+ void get_math_envelope_section(EnvelopeSection &s,
+ uint64_t start, uint64_t end, float min_length) const;
- const std::vector get_fft_spectrum() const;
- double get_fft_spectrum(uint64_t index);
-
- void calc_fft();
-
- double window(uint64_t i, int type);
+ void calc_math();
+ void reallocate_envelope(Envelope &e);
+ void append_to_envelope_level(bool header);
signals:
private:
pv::SigSession &_session;
+ boost::shared_ptr _dsoSig1;
+ boost::shared_ptr _dsoSig2;
- int _index;
+ MathType _type;
uint64_t _sample_num;
- int _windows_index;
- bool _dc_ignore;
- int _sample_interval;
-
- boost::shared_ptr _snapshot;
-
- std::unique_ptr _math_thread;
+ uint64_t _total_sample_num;
math_state _math_state;
- fftw_plan _fft_plan;
- std::vector _xn;
- std::vector _xk;
- std::vector _power_spectrum;
+ struct Envelope _envelope_level[ScaleStepCount];
+ std::vector _math;
+
+ bool _envelope_en;
+ bool _envelope_done;
};
} // namespace data
diff --git a/DSView/pv/data/signaldata.cpp b/DSView/pv/data/signaldata.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/signaldata.h b/DSView/pv/data/signaldata.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/snapshot.cpp b/DSView/pv/data/snapshot.cpp
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/snapshot.h b/DSView/pv/data/snapshot.h
old mode 100644
new mode 100755
diff --git a/DSView/pv/data/spectrumstack.cpp b/DSView/pv/data/spectrumstack.cpp
new file mode 100755
index 0000000000000000000000000000000000000000..d040eb9be27e3539e30564cbe380070963c95833
--- /dev/null
+++ b/DSView/pv/data/spectrumstack.cpp
@@ -0,0 +1,247 @@
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2016 DreamSourceLab
+ *
+ * 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 St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "spectrumstack.h"
+
+#include
+#include
+
+#include
+#include
+#include
+#include
+
+#define PI 3.1415
+
+using namespace boost;
+using namespace std;
+
+namespace pv {
+namespace data {
+
+const QString SpectrumStack::windows_support[5] = {
+ QT_TR_NOOP("Rectangle"),
+ QT_TR_NOOP("Hann"),
+ QT_TR_NOOP("Hamming"),
+ QT_TR_NOOP("Blackman"),
+ QT_TR_NOOP("Flat_top")
+};
+
+const uint64_t SpectrumStack::length_support[5] = {
+ 1024,
+ 2048,
+ 4096,
+ 8192,
+ 16384,
+};
+
+SpectrumStack::SpectrumStack(pv::SigSession &session, int index) :
+ _session(session),
+ _index(index),
+ _dc_ignore(true),
+ _sample_interval(1),
+ _spectrum_state(Init),
+ _fft_plan(NULL)
+{
+}
+
+SpectrumStack::~SpectrumStack()
+{
+ _xn.clear();
+ _xk.clear();
+ _power_spectrum.clear();
+ if (_fft_plan)
+ fftw_destroy_plan(_fft_plan);
+}
+
+void SpectrumStack::clear()
+{
+}
+
+void SpectrumStack::init()
+{
+}
+
+int SpectrumStack::get_index() const
+{
+ return _index;
+}
+
+uint64_t SpectrumStack::get_sample_num() const
+{
+ return _sample_num;
+}
+
+void SpectrumStack::set_sample_num(uint64_t num)
+{
+ _sample_num = num;
+ _xn.resize(_sample_num);
+ _xk.resize(_sample_num);
+ _power_spectrum.resize(_sample_num/2+1);
+ _fft_plan = fftw_plan_r2r_1d(_sample_num, _xn.data(), _xk.data(),
+ FFTW_R2HC, FFTW_ESTIMATE);
+}
+
+int SpectrumStack::get_windows_index() const
+{
+ return _windows_index;
+}
+
+void SpectrumStack::set_windows_index(int index)
+{
+ _windows_index = index;
+}
+
+bool SpectrumStack::dc_ignored() const
+{
+ return _dc_ignore;
+}
+
+void SpectrumStack::set_dc_ignore(bool ignore)
+{
+ _dc_ignore = ignore;
+}
+
+int SpectrumStack::get_sample_interval() const
+{
+ return _sample_interval;
+}
+
+void SpectrumStack::set_sample_interval(int interval)
+{
+ _sample_interval = interval;
+}
+
+const std::vector SpectrumStack::get_windows_support() const
+{
+ std::vector windows;
+ for (size_t i = 0; i < sizeof(windows_support)/sizeof(windows_support[0]); i++)
+ {
+ windows.push_back(windows_support[i]);
+ }
+ return windows;
+}
+
+const std::vector SpectrumStack::get_length_support() const
+{
+ std::vector length;
+ for (size_t i = 0; i < sizeof(length_support)/sizeof(length_support[0]); i++)
+ {
+ length.push_back(length_support[i]);
+ }
+ return length;
+}
+
+const std::vector SpectrumStack::get_fft_spectrum() const
+{
+ std::vector empty;
+ if (_spectrum_state == Stopped)
+ return _power_spectrum;
+ else
+ return empty;
+}
+
+double SpectrumStack::get_fft_spectrum(uint64_t index)
+{
+ double ret = -1;
+ if (_spectrum_state == Stopped && index < _power_spectrum.size())
+ ret = _power_spectrum[index];
+
+ return ret;
+}
+
+void SpectrumStack::calc_fft()
+{
+ _spectrum_state = Running;
+ // Get the dso data
+ boost::shared_ptr data;
+ boost::shared_ptr dsoSig;
+ BOOST_FOREACH(const boost::shared_ptr s, _session.get_signals()) {
+ if ((dsoSig = dynamic_pointer_cast(s))) {
+ if (dsoSig->get_index() == _index && dsoSig->enabled()) {
+ data = dsoSig->dso_data();
+ break;
+ }
+ }
+ }
+
+ if (!data)
+ return;
+
+ // Check we have a snapshot of data
+ const deque< boost::shared_ptr > &snapshots =
+ data->get_snapshots();
+ if (snapshots.empty())
+ return;
+ _snapshot = snapshots.front();
+
+ if (_snapshot->get_sample_count() < _sample_num*_sample_interval)
+ return;
+
+ // Get the samplerate
+ _samplerate = data->samplerate();
+ if (_samplerate == 0.0)
+ _samplerate = 1.0;
+
+ // prepare _xn data
+ const int offset = dsoSig->get_hw_offset();
+ const double vscale = dsoSig->get_vDialValue() * dsoSig->get_factor() * DS_CONF_DSO_VDIVS / (1000*255.0);
+ const uint16_t step = _snapshot->get_channel_num() * _sample_interval;
+ const uint8_t *const samples = _snapshot->get_samples(0, _sample_num*_sample_interval-1, _index);
+ double wsum = 0;
+ for (unsigned int i = 0; i < _sample_num; i++) {
+ double w = window(i, _windows_index);
+ _xn[i] = (samples[i*step] - offset) * vscale * w;
+ wsum += w;
+ }
+
+ // fft
+ fftw_execute(_fft_plan);
+
+ // calculate power spectrum
+ _power_spectrum[0] = abs(_xk[0])/wsum; /* DC component */
+ for (unsigned int k = 1; k < (_sample_num + 1) / 2; ++k) /* (k < N/2 rounded up) */
+ _power_spectrum[k] = sqrt((_xk[k]*_xk[k] + _xk[_sample_num-k]*_xk[_sample_num-k]) * 2) / wsum;
+ if (_sample_num % 2 == 0) /* N is even */
+ _power_spectrum[_sample_num/2] = abs(_xk[_sample_num/2])/wsum; /* Nyquist freq. */
+
+ _spectrum_state = Stopped;
+}
+
+double SpectrumStack::window(uint64_t i, int type)
+{
+ const double n_m_1 = _sample_num-1;
+ switch(type) {
+ case 1: // Hann window
+ return 0.5*(1-cos(2*PI*i/n_m_1));
+ case 2: // Hamming window
+ return 0.54-0.46*cos(2*PI*i/n_m_1);
+ case 3: // Blackman window
+ return 0.42659-0.49656*cos(2*PI*i/n_m_1) + 0.076849*cos(4*PI*i/n_m_1);
+ case 4: // Flat_top window
+ return 1-1.93*cos(2*PI*i/n_m_1)+1.29*cos(4*PI*i/n_m_1)-
+ 0.388*cos(6*PI*i/n_m_1)+0.028*cos(8*PI*i/n_m_1);
+ default:
+ return 1;
+ }
+}
+
+} // namespace data
+} // namespace pv
diff --git a/DSView/pv/data/spectrumstack.h b/DSView/pv/data/spectrumstack.h
new file mode 100755
index 0000000000000000000000000000000000000000..caa4d268136cf5cc2e5ef391f57d8ef50c8d0562
--- /dev/null
+++ b/DSView/pv/data/spectrumstack.h
@@ -0,0 +1,118 @@
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2016 DreamSourceLab
+ *
+ * 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 St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef DSVIEW_PV_DATA_SPECTRUMSTACK_H
+#define DSVIEW_PV_DATA_SPECTRUMSTACK_H
+
+#include "signaldata.h"
+
+#include
+
+#include
+#include
+#include
+
+#include
+
+#include
+#include
+
+namespace pv {
+
+class SigSession;
+
+namespace view {
+class DsoSignal;
+}
+
+namespace data {
+
+class DsoSnapshot;
+class Dso;
+
+class SpectrumStack : public QObject, public SignalData
+{
+ Q_OBJECT
+
+private:
+ static const QString windows_support[5];
+ static const uint64_t length_support[5];
+
+public:
+ enum spectrum_state {
+ Init,
+ Stopped,
+ Running
+ };
+
+public:
+ SpectrumStack(pv::SigSession &_session, int index);
+ virtual ~SpectrumStack();
+ void clear();
+ void init();
+
+ int get_index() const;
+
+ uint64_t get_sample_num() const;
+ void set_sample_num(uint64_t num);
+
+ int get_windows_index() const;
+ void set_windows_index(int index);
+
+ const std::vector get_windows_support() const;
+ const std::vector get_length_support() const;
+
+ bool dc_ignored() const;
+ void set_dc_ignore(bool ignore);
+
+ int get_sample_interval() const;
+ void set_sample_interval(int interval);
+
+ const std::vector get_fft_spectrum() const;
+ double get_fft_spectrum(uint64_t index);
+
+ void calc_fft();
+
+ double window(uint64_t i, int type);
+
+signals:
+
+private:
+ pv::SigSession &_session;
+
+ int _index;
+ uint64_t _sample_num;
+ int _windows_index;
+ bool _dc_ignore;
+ int _sample_interval;
+
+ boost::shared_ptr _snapshot;
+ spectrum_state _spectrum_state;
+
+ fftw_plan _fft_plan;
+ std::vector _xn;
+ std::vector _xk;
+ std::vector _power_spectrum;
+};
+
+} // namespace data
+} // namespace pv
+
+#endif // DSVIEW_PV_DATA_SPECTRUMSTACK_H
diff --git a/DSView/pv/device/device.cpp b/DSView/pv/device/device.cpp
old mode 100644
new mode 100755
index 8214f415d8eca4e150071824b6a1e39148b1b96a..4eb77b33eb3f1e3f2e7c6c8bcc72932bb260b2eb
--- a/DSView/pv/device/device.cpp
+++ b/DSView/pv/device/device.cpp
@@ -40,7 +40,7 @@ sr_dev_inst* Device::dev_inst() const
return _sdi;
}
-void Device::use(SigSession *owner) throw(QString)
+void Device::use(SigSession *owner)
{
DevInst::use(owner);
diff --git a/DSView/pv/device/device.h b/DSView/pv/device/device.h
old mode 100644
new mode 100755
index a98ffc0d1e71219dec6327ae2284727f6b668687..f1ec24f1a5ad6dab89e48c0ba96d8c091a16614e
--- a/DSView/pv/device/device.h
+++ b/DSView/pv/device/device.h
@@ -34,7 +34,7 @@ public:
sr_dev_inst* dev_inst() const;
- void use(SigSession *owner) throw(QString);
+ void use(SigSession *owner);
void release();
diff --git a/DSView/pv/device/devinst.cpp b/DSView/pv/device/devinst.cpp
old mode 100644
new mode 100755
index 494a681e738fac26866625a01b5c4570dc610b10..6aeeeb876c1ac4fbf5be2aa463877ef9ffafdeef
--- a/DSView/pv/device/devinst.cpp
+++ b/DSView/pv/device/devinst.cpp
@@ -50,7 +50,7 @@ void* DevInst::get_id() const
return _id;
}
-void DevInst::use(SigSession *owner) throw(QString)
+void DevInst::use(SigSession *owner)
{
assert(owner);
assert(!_owner);
@@ -125,7 +125,7 @@ uint64_t DevInst::get_sample_limit()
uint64_t sample_limit;
GVariant* gvar = get_config(NULL, NULL, SR_CONF_LIMIT_SAMPLES);
if (gvar != NULL) {
- sample_limit = g_variant_get_uint64(gvar);
+ sample_limit = g_variant_get_uint64(gvar);
g_variant_unref(gvar);
} else {
sample_limit = 0U;
diff --git a/DSView/pv/device/devinst.h b/DSView/pv/device/devinst.h
old mode 100644
new mode 100755
index c35fd95245a475c616adf08d8f94399d71ef3e7d..b7c7f8c38b4e33d974e06df66b285953d722ab05
--- a/DSView/pv/device/devinst.h
+++ b/DSView/pv/device/devinst.h
@@ -53,7 +53,7 @@ protected:
public:
virtual sr_dev_inst* dev_inst() const = 0;
- virtual void use(SigSession *owner) throw(QString);
+ virtual void use(SigSession *owner);
virtual void release();
diff --git a/DSView/pv/device/file.cpp b/DSView/pv/device/file.cpp
old mode 100644
new mode 100755
index 04b6eb4acfba6d8cd338c2daa8be97b0d54b836d..46376082c4cb06cc719d730220416e3c3f87eb0b
--- a/DSView/pv/device/file.cpp
+++ b/DSView/pv/device/file.cpp
@@ -91,10 +91,43 @@ QJsonArray File::get_decoders()
dec_array = sessionDoc.array();
}
}
+
+ zip_close(archive);
}
return dec_array;
}
+QJsonDocument File::get_session()
+{
+ struct zip *archive;
+ struct zip_file *zf;
+ struct zip_stat zs;
+ int ret;
+ char *dec_file;
+ QJsonDocument sessionDoc;
+ QJsonParseError error;
+
+ archive = zip_open(_path.toLocal8Bit().data(), 0, &ret);
+ if (archive) {
+ /* read "decoders" */
+ if (zip_stat(archive, "session", 0, &zs) != -1) {
+ dec_file = (char *)g_try_malloc(zs.size);
+ if (dec_file) {
+ zf = zip_fopen_index(archive, zs.index, 0);
+ zip_fread(zf, dec_file, zs.size);
+ zip_fclose(zf);
+
+ //QString sessionData = QString::fromUtf8(dec_file);
+ sessionDoc = QJsonDocument::fromJson(QByteArray::fromRawData(dec_file, zs.size), &error);
+ }
+ }
+
+ zip_close(archive);
+ }
+
+ return sessionDoc;
+}
+
} // device
} // pv
diff --git a/DSView/pv/device/file.h b/DSView/pv/device/file.h
old mode 100644
new mode 100755
index 000b950bc060f61c1b4894fd6e48d8efe477cc34..d4299e7b9b102375dd08d6e285dc42832e8eb0fa
--- a/DSView/pv/device/file.h
+++ b/DSView/pv/device/file.h
@@ -26,6 +26,7 @@
#include
#include
+#include
#include "devinst.h"
@@ -42,6 +43,8 @@ public:
QJsonArray get_decoders();
+ QJsonDocument get_session();
+
public:
QString format_device_title() const;
diff --git a/DSView/pv/device/inputfile.cpp b/DSView/pv/device/inputfile.cpp
old mode 100644
new mode 100755
index 84d8957b4973c010fb8b13d3f11a4717b15a2ea4..32b63cc4e872eff59c0234b80a82808a362ee4e3
--- a/DSView/pv/device/inputfile.cpp
+++ b/DSView/pv/device/inputfile.cpp
@@ -43,7 +43,7 @@ sr_dev_inst* InputFile::dev_inst() const
return _input->sdi;
}
-void InputFile::use(SigSession *owner) throw(QString)
+void InputFile::use(SigSession *owner)
{
(void)owner;
assert(!_input);
diff --git a/DSView/pv/device/inputfile.h b/DSView/pv/device/inputfile.h
old mode 100644
new mode 100755
index c063deaf54c8a8bbf266908e5357d84ac2129222..e1c1e1792455345d9b110cde5c2b5da8fc294db2
--- a/DSView/pv/device/inputfile.h
+++ b/DSView/pv/device/inputfile.h
@@ -39,7 +39,7 @@ public:
sr_dev_inst* dev_inst() const;
- virtual void use(SigSession *owner) throw(QString);
+ virtual void use(SigSession *owner);
virtual void release();
diff --git a/DSView/pv/device/sessionfile.cpp b/DSView/pv/device/sessionfile.cpp
old mode 100644
new mode 100755
index 5540e42b763fbbe00e7c4356a99baffcb56a5af9..2a3368a5abd9af75af475f39ada6b10b79b1f6d1
--- a/DSView/pv/device/sessionfile.cpp
+++ b/DSView/pv/device/sessionfile.cpp
@@ -35,7 +35,7 @@ sr_dev_inst* SessionFile::dev_inst() const
return _sdi;
}
-void SessionFile::use(SigSession *owner) throw(QString)
+void SessionFile::use(SigSession *owner)
{
assert(!_sdi);
diff --git a/DSView/pv/device/sessionfile.h b/DSView/pv/device/sessionfile.h
old mode 100644
new mode 100755
index 51d6d3f22dc374abf946ca594a30e9b336d5a624..08783bddea5c10cebb1274380b2b2a50b105a3b4
--- a/DSView/pv/device/sessionfile.h
+++ b/DSView/pv/device/sessionfile.h
@@ -34,7 +34,7 @@ public:
sr_dev_inst* dev_inst() const;
- virtual void use(SigSession *owner) throw(QString);
+ virtual void use(SigSession *owner);
virtual void release();
diff --git a/DSView/pv/devicemanager.cpp b/DSView/pv/devicemanager.cpp
old mode 100644
new mode 100755
index 3b760f93fa21abf79536d84fb932dd9763961db2..d7778be56657db5a34ac2b5bce776ac08dfccb35
--- a/DSView/pv/devicemanager.cpp
+++ b/DSView/pv/devicemanager.cpp
@@ -72,6 +72,21 @@ void DeviceManager::add_device(boost::shared_ptr device)
_devices.push_front(device);
}
+void DeviceManager::del_device(boost::shared_ptr device)
+{
+ assert(device);
+ BOOST_FOREACH(shared_ptr dev, _devices) {
+ assert(dev);
+ if(dev == device) {
+ dev->release();
+ break;
+ }
+ }
+ if (std::find(_devices.begin(), _devices.end(), device) !=
+ _devices.end())
+ _devices.remove(device);
+}
+
std::list > DeviceManager::driver_scan(
struct sr_dev_driver *const driver, GSList *const drvopts)
{
diff --git a/DSView/pv/devicemanager.h b/DSView/pv/devicemanager.h
old mode 100644
new mode 100755
index 3f0b313ad8b4be010444110e5f0b43ee264b0936..426b9aa8d43982436777f06e15ef25f62ba40311
--- a/DSView/pv/devicemanager.h
+++ b/DSView/pv/devicemanager.h
@@ -61,6 +61,7 @@ public:
const std::list< boost::shared_ptr >& devices() const;
void add_device(boost::shared_ptr device);
+ void del_device(boost::shared_ptr device);
std::list< boost::shared_ptr > driver_scan(
struct sr_dev_driver *const driver,
diff --git a/DSView/pv/dialogs/about.cpp b/DSView/pv/dialogs/about.cpp
old mode 100644
new mode 100755
index 4b800908d1441f14d4c78c5172e6371808ba9fa6..5dea3737240481292c73c488373acd642aad09e6
--- a/DSView/pv/dialogs/about.cpp
+++ b/DSView/pv/dialogs/about.cpp
@@ -54,9 +54,11 @@ About::About(QWidget *parent) :
QString url = tr("Website: %1 "
"Gitbub: %2 "
+ "Copyright:%3 "
"