commit 3f2fd9c62bc201590e9c1ba9840eaf6e65e56fb5 Author: Ahmet Inan Date: Sun Feb 18 08:15:41 2018 +0100 Initial commit imported all content from archive: http://users.telenet.be/on4qz/qsstv/downloads/qsstv_9.2.6.tar.gz diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..555f746 --- /dev/null +++ b/COPYING @@ -0,0 +1,684 @@ + +QSSTV uses Qt see http://qt.digia.com/ if any restrictions apply. + + +As far as I know, QSSTV does not use any none-public software. +If there are doubts, please let me know by email: on4qz@telenet.be + +If part of whole of this code is used, you have to include a statement to indicate that the program is based in whole or in part on QSSTV. + + + 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/README.txt b/README.txt new file mode 100644 index 0000000..7da08df --- /dev/null +++ b/README.txt @@ -0,0 +1,7 @@ +For the full manual please go to +http://users.telenet.be/on4qz/qsstv_9/manual/index.html + +There you'll find the complete installation instructions wich is part of the user manual. + + + diff --git a/qsstv/appdefs.h b/qsstv/appdefs.h new file mode 100644 index 0000000..3cd9708 --- /dev/null +++ b/qsstv/appdefs.h @@ -0,0 +1,31 @@ +#ifndef APPDEFS_H +#define APPDEFS_H +#include +#include +using namespace std; /* Because of the library: "complex" */ + +#define SOUNDFRAME quint32 + +#define BASESAMPLERATE 48000 +#define SUBSAMPLINGFACTOR 4 +#define MONOCHANNEL 1 +#define STEREOCHANNEL 2 +#define RXSTRIPE 1024 +#define TXSTRIPE 1024 +#define FILTERPARAMTYPE double +#define DOWNSAMPLESIZE (SUBSAMPLINGFACTOR*RXSTRIPE) +#define SAMPLERATE (BASESAMPLERATE/SUBSAMPLINGFACTOR) + +typedef double DSPFLOAT; +typedef unsigned char byte; + + +/* Define the application specific data-types ------------------------------- */ +typedef double _REAL; +typedef complex<_REAL> _COMPLEX; +typedef short _SAMPLE; +typedef unsigned char _BYTE; +typedef bool _BOOLEAN; +typedef unsigned char _BINARY; + +#endif // APPDEFS_H diff --git a/qsstv/appglobal.cpp b/qsstv/appglobal.cpp new file mode 100644 index 0000000..751fd8c --- /dev/null +++ b/qsstv/appglobal.cpp @@ -0,0 +1,83 @@ +#include "appglobal.h" +#include "logging.h" +#include "soundbase.h" +#include +#include + + +const QString MAJORVERSION = "9.2"; +const QString CONFIGVERSION = "9.0"; +const QString MINORVERSION = ".6"; +const QString LOGVERSION = ("qsstv."+MAJORVERSION+MINORVERSION+".log"); +const QString ORGANIZATION = "ON4QZ"; +const QString APPLICATION = ("qsstv_" +CONFIGVERSION); +const QString qsstvVersion=QString("QSSTV " + MAJORVERSION+MINORVERSION); +const QString shortName=QString("QSSTV"); + + +QSplashScreen *splashPtr; +QString splashStr; + +mainWindow *mainWindowPtr; +soundBase *soundIOPtr; +logFile *logFilePtr; +configDialog *configDialogPtr; + + +ftpInterface *notifyRXIntf; +ftpInterface *hybridTxIntf; +ftpInterface *notifyTXIntf; +ftpInterface *onlineStatusIntf; + + + +dispatcher *dispatcherPtr; +QStatusBar *statusBarPtr; +rxWidget *rxWidgetPtr; +txWidget *txWidgetPtr; +galleryWidget *galleryWidgetPtr; +waterfallText *waterfallPtr; +rigControl *rigControllerPtr; +xmlInterface *xmlIntfPtr; +logBook *logBookPtr; +fileWatcher *fileWatcherPtr; + +bool useHybrid; + + + + + +etransmissionMode transmissionModeIndex; // SSTV , DRM + + + +QPixmap *greenPXMPtr; +QPixmap *redPXMPtr; + +#ifndef QT_NO_DEBUG +scopeView *scopeViewerData; +scopeView *scopeViewerSyncNarrow; +scopeView *scopeViewerSyncWide; +#endif + + +void globalInit() +{ + logFilePtr=new logFile(); + logFilePtr->open(LOGVERSION); + QSettings qSettings; + qSettings.beginGroup("MAIN"); + logFilePtr->readSettings(); + greenPXMPtr=new QPixmap(16,16); + greenPXMPtr->fill(Qt::green); + redPXMPtr=new QPixmap(16,16); + redPXMPtr->fill(Qt::red); + qSettings.endGroup(); +} + +void globalEnd(void) +{ + logFilePtr->close(); +} + diff --git a/qsstv/appglobal.h b/qsstv/appglobal.h new file mode 100644 index 0000000..f11ec08 --- /dev/null +++ b/qsstv/appglobal.h @@ -0,0 +1,78 @@ +#ifndef APPGLOBAL_H +#define APPGLOBAL_H +#include "logging.h" +//#include "mainwindow.h" +#include "appdefs.h" + +class QSplashScreen; +class scopeView; +class rxWidget; +class txWidget; +class galleryWidget; +class waterfallText; +class rigControl; +class xmlInterface; +class logBook; +class dispatcher; +class fileWatcher; +class ftpInterface; + +enum etransmissionMode {TRXSSTV,TRXDRM,TRXNOMODE}; + +extern const QString MAJORVERSION; +extern const QString CONFIGVERSION; +extern const QString MINORVERSION; +extern const QString ORGANIZATION; +extern const QString APPLICATION; +extern const QString qsstvVersion; +extern const QString shortName; +#define MAGICNUMBER (('4'<<24)+('Q'<<16)+('Z'<<8)+'S') + +class soundBase; +class mainWindow; +class QStatusBar; +class configDialog; + +extern mainWindow *mainWindowPtr; +extern soundBase *soundIOPtr; +extern QSplashScreen *splashPtr; +extern QString splashStr; +extern dispatcher *dispatcherPtr; +extern QStatusBar *statusBarPtr; +extern fileWatcher *fileWatcherPtr; + +extern rxWidget *rxWidgetPtr; +extern txWidget *txWidgetPtr; +extern galleryWidget *galleryWidgetPtr; +extern waterfallText *waterfallPtr; +extern rigControl *rigControllerPtr; +extern xmlInterface *xmlIntfPtr; +extern configDialog *configDialogPtr; +extern logBook *logBookPtr; + + +extern QPixmap *greenPXMPtr; +extern QPixmap *redPXMPtr; + +extern logFile *logFilePtr; +extern bool useHybrid; + + +extern ftpInterface *notifyRXIntf; +extern ftpInterface *hybridTxIntf; +extern ftpInterface *notifyTXIntf; +extern ftpInterface *onlineStatusIntf; + +extern etransmissionMode transmissionModeIndex; // SSTV , DRM + + +#ifndef QT_NO_DEBUG +extern scopeView *scopeViewerData; +extern scopeView *scopeViewerSyncNarrow; +extern scopeView *scopeViewerSyncWide; +#endif + +void globalInit(void); +void globalEnd(void); + +#endif // APPGLOBAL_H diff --git a/qsstv/config/baseconfig.cpp b/qsstv/config/baseconfig.cpp new file mode 100644 index 0000000..02939cf --- /dev/null +++ b/qsstv/config/baseconfig.cpp @@ -0,0 +1,6 @@ +#include "baseconfig.h" + +baseConfig::baseConfig(QWidget *parent):QWidget(parent) +{ + changed=false; +} diff --git a/qsstv/config/baseconfig.h b/qsstv/config/baseconfig.h new file mode 100644 index 0000000..71352ea --- /dev/null +++ b/qsstv/config/baseconfig.h @@ -0,0 +1,22 @@ +#ifndef BASECONFIG_H +#define BASECONFIG_H + +#include +#include +#include +#include "utils/supportfunctions.h" + +class baseConfig: public QWidget +{ +public: + baseConfig(QWidget *parent = 0); + virtual void readSettings()=0; + virtual void writeSettings()=0; + virtual void getParams()=0; + virtual void setParams()=0; + bool hasChanged() {return changed;} +protected: + bool changed; +}; + +#endif // BASECONFIG_H diff --git a/qsstv/config/configdialog.cpp b/qsstv/config/configdialog.cpp new file mode 100644 index 0000000..cf5381e --- /dev/null +++ b/qsstv/config/configdialog.cpp @@ -0,0 +1,96 @@ +#include "configdialog.h" +#include "ui_configdialog.h" +#include "gallerywidget.h" +#include "mainwindow.h" +#include "txwidget.h" +#include "filewatcher.h" + + +configDialog::configDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::configDialog) +{ + ui->setupUi(this); + ui->catWidget->attachRigController(rigControllerPtr); + ui->configTabWidget->setCurrentIndex(0); +} + +configDialog::~configDialog() +{ + delete ui; +} + +void configDialog::readSettings() +{ + ui->cwWidget->readSettings(); + ui->directoryWidget->readSettings(); + ui->drmProfilesWidget->readSettings(); + ui->ftpWidget->readSettings(); + ui->guiWidget->readSettings(); + ui->hybridWidget->readSettings(); + ui->hybridNotifyWidget->readSettings(); + ui->operatorWidget->readSettings(); + ui->repeaterWidget->readSettings(); + ui->catWidget->readSettings(); + ui->soundWidget->readSettings(); + ui->waterfallWidget->readSettings(); + ui->freqSelectWidget->readSettings(); +} + +void configDialog::writeSettings() +{ + ui->operatorWidget->writeSettings(); + ui->directoryWidget->writeSettings(); + ui->soundWidget->writeSettings(); + ui->guiWidget->writeSettings(); + ui->catWidget->writeSettings(); + ui->ftpWidget->writeSettings(); + ui->repeaterWidget->writeSettings(); + ui->hybridWidget->writeSettings(); + ui->hybridNotifyWidget->writeSettings(); + ui->drmProfilesWidget->writeSettings(); + ui->cwWidget->writeSettings(); + ui->waterfallWidget->writeSettings(); + soundNeedsRestart=ui->soundWidget->hasChanged(); + guiNeedsRestart=ui->guiWidget->hasChanged(); + ui->freqSelectWidget->writeSettings(); + if(ui->guiWidget->backGroundColorChanged) + { + emit bgColorChanged(); + ui->guiWidget->backGroundColorChanged=false; + } + +} + +/** + Opens the configuration dialog +*/ + +int configDialog::exec() +{ + if(QDialog::exec()) + { + writeSettings(); + if(ui->directoryWidget->hasChanged() || ui->guiWidget->hasChanged()) + { + galleryWidgetPtr->changedMatrix(); + } + if(ui->drmProfilesWidget->hasChanged()) + { + txWidgetPtr->reloadProfiles(); + } + if(ui->directoryWidget->hasChanged()) + { + fileWatcherPtr->init(); + } + mainWindowPtr->setSSTVDRMPushButton(transmissionModeIndex==TRXDRM); + + return QDialog::Accepted; + } + else + { + return QDialog::Rejected; + } +} + + diff --git a/qsstv/config/configdialog.h b/qsstv/config/configdialog.h new file mode 100644 index 0000000..c954c35 --- /dev/null +++ b/qsstv/config/configdialog.h @@ -0,0 +1,33 @@ +#ifndef CONFIGDIALOG_H +#define CONFIGDIALOG_H + +#include + +namespace Ui { +class configDialog; +} + +class configDialog : public QDialog +{ + Q_OBJECT + +public: + explicit configDialog(QWidget *parent = 0); + ~configDialog(); + void readSettings(); + void writeSettings(); + int exec(); + bool soundNeedsRestart; + bool guiNeedsRestart; + + +signals: + void bgColorChanged(); + + +private: + Ui::configDialog *ui; + +}; + +#endif // CONFIGDIALOG_H diff --git a/qsstv/config/configdialog.ui b/qsstv/config/configdialog.ui new file mode 100644 index 0000000..4e4a02a --- /dev/null +++ b/qsstv/config/configdialog.ui @@ -0,0 +1,491 @@ + + + configDialog + + + + 0 + 0 + 818 + 438 + + + + Configuration + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 2 + + + + Operator + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Directories + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Gui + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Sound + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + CAT + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + CW + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Repeater + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + FTP + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Waterfall + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Hybrid + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Notifications + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + DRM Profiles + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + Frequencies + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + soundConfig + QWidget +
soundconfig.h
+ 1 +
+ + directoriesConfig + QWidget +
directoriesconfig.h
+ 1 +
+ + operatorConfig + QWidget +
operatorconfig.h
+ 1 +
+ + guiConfig + QWidget +
guiconfig.h
+ 1 +
+ + rigConfig + QWidget +
rigconfig.h
+ 1 +
+ + cwConfig + QWidget +
cwconfig.h
+ 1 +
+ + repeaterConfig + QWidget +
repeaterconfig.h
+ 1 +
+ + ftpConfig + QWidget +
ftpconfig.h
+ 1 +
+ + waterfallConfig + QWidget +
waterfallconfig.h
+ 1 +
+ + hybridConfig + QWidget +
hybridconfig.h
+ 1 +
+ + drmProfileConfig + QWidget +
drmprofileconfig.h
+ 1 +
+ + frequencySelectWidget + QWidget +
frequencyselectwidget.h
+ 1 +
+ + hybridNotifyConfig + QWidget +
hybridnotifyconfig.h
+ 1 +
+
+ + + + buttonBox + accepted() + configDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + configDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + +
diff --git a/qsstv/config/configparams.h b/qsstv/config/configparams.h new file mode 100644 index 0000000..8efe02e --- /dev/null +++ b/qsstv/config/configparams.h @@ -0,0 +1,18 @@ +#ifndef CONFIGPARAMS_H +#define CONFIGPARAMS_H + +#include "cwconfig.h" +#include "directoriesconfig.h" +#include "drmprofileconfig.h" +#include "ftpconfig.h" +#include "guiconfig.h" +#include "hybridconfig.h" +#include "hybridnotifyconfig.h" +#include "operatorconfig.h" +#include "repeaterconfig.h" +#include "rigconfig.h" +#include "soundconfig.h" +#include "waterfallconfig.h" +#include "frequencyselectwidget.h" + +#endif // CONFIGPARAMS_H diff --git a/qsstv/config/cwconfig.cpp b/qsstv/config/cwconfig.cpp new file mode 100644 index 0000000..ca79f88 --- /dev/null +++ b/qsstv/config/cwconfig.cpp @@ -0,0 +1,67 @@ +#include "cwconfig.h" +#include "ui_cwconfig.h" + +QString cwText; +int cwTone; +int cwWPM; +//bool enableCW; + +cwConfig::cwConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::cwConfig) +{ + ui->setupUi(this); +} + +cwConfig::~cwConfig() +{ + delete ui; +} + +void cwConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("CW"); + cwText=qSettings.value("cwtext","").toString(); + cwTone=qSettings.value("cwtone",800).toInt(); + cwWPM=qSettings.value("cwWPM",12).toInt(); +// enableCW=qSettings.value("enableCW",false).toBool(); + qSettings.endGroup(); + setParams(); +} + +void cwConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + + qSettings.beginGroup("CW"); + qSettings.setValue("cwtext",cwText); + qSettings.setValue("cwtone",cwTone); + qSettings.setValue("cwWPM",cwWPM); +// qSettings.setValue("enableCW",enableCW); + qSettings.endGroup(); +} + +void cwConfig::getParams() +{ + QString cwTextCopy=cwText; + int cwToneCopy=cwTone; + int cwWPMCopy=cwWPM; + getValue(cwText,ui->cwTextLineEdit); + getValue(cwTone,ui->cwToneSpinBox); + getValue(cwWPM,ui->cwWPMSpinBox); +// getValue(enableCW,ui->enableCWCheckBox); + changed=false; + if(cwTextCopy!=cwText + || cwToneCopy!=cwTone + || cwWPMCopy!=cwWPM) + changed=true; +} + +void cwConfig::setParams() +{ + setValue(cwText,ui->cwTextLineEdit); + setValue(cwTone,ui->cwToneSpinBox); + setValue(cwWPM,ui->cwWPMSpinBox); +// setValue(enableCW,ui->enableCWCheckBox); + +} diff --git a/qsstv/config/cwconfig.h b/qsstv/config/cwconfig.h new file mode 100644 index 0000000..9ca1bde --- /dev/null +++ b/qsstv/config/cwconfig.h @@ -0,0 +1,32 @@ +#ifndef CWCONFIG_H +#define CWCONFIG_H + +#include "baseconfig.h" + +extern QString cwText; +extern int cwTone; +extern int cwWPM; +//extern bool enableCW; + + +namespace Ui { +class cwConfig; +} + +class cwConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit cwConfig(QWidget *parent = 0); + ~cwConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +private: + Ui::cwConfig *ui; +}; + +#endif // CWCONFIG_H diff --git a/qsstv/config/cwconfig.ui b/qsstv/config/cwconfig.ui new file mode 100644 index 0000000..16228a1 --- /dev/null +++ b/qsstv/config/cwconfig.ui @@ -0,0 +1,255 @@ + + + cwConfig + + + + 0 + 0 + 482 + 182 + + + + Dialog + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Words PerMinute + + + false + + + + + + + 4 + + + 30 + + + 12 + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Text to send + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Tone + + + false + + + + + + + 300 + + + 2300 + + + 50 + + + 800 + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 54 + + + + + + + + + diff --git a/qsstv/config/directoriesconfig.cpp b/qsstv/config/directoriesconfig.cpp new file mode 100644 index 0000000..0698491 --- /dev/null +++ b/qsstv/config/directoriesconfig.cpp @@ -0,0 +1,184 @@ +#include "directoriesconfig.h" +#include "ui_directoriesconfig.h" + + +QString rxSSTVImagesPath; +QString rxDRMImagesPath; +QString txSSTVImagesPath; +QString txDRMImagesPath; +QString txStockImagesPath; +QString templatesPath; +QString audioPath; +bool saveTXimages; +QString docURL; + + + +directoriesConfig::directoriesConfig(QWidget *parent) :baseConfig(parent), + ui(new Ui::directoriesConfig) +{ + ui->setupUi(this); + connect(ui->rxSSTVImagesPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseRxSSTVImagesPath())); + connect(ui->rxDRMImagesPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseRxDRMImagesPath())); + connect(ui->txSSTVImagesPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseTxSSTVImagesPath())); + connect(ui->txDRMImagesPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseTxDRMImagesPath())); + connect(ui->txStockImagesPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseTxStockImagesPath())); + connect(ui->templatesPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseTemplatesPath())); + connect(ui->audioPathBrowseButton,SIGNAL(clicked()),SLOT(slotBrowseAudioPath())); +} + +directoriesConfig::~directoriesConfig() +{ + delete ui; +} + +void directoriesConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("DIRECTORIES"); + rxSSTVImagesPath=qSettings.value("rxSSTVImagesPath",QString(getenv("HOME"))+"/qsstv/rx_sstv/").toString(); + rxDRMImagesPath=qSettings.value("rxDRMImagesPath",QString(getenv("HOME"))+"/qsstv/rx_drm/").toString(); + txSSTVImagesPath=qSettings.value("txSSTVImagesPath",QString(getenv("HOME"))+"/qsstv/tx_sstv/").toString(); + txDRMImagesPath=qSettings.value("txDRMImagesPath",QString(getenv("HOME"))+"/tx_drm/").toString(); + txStockImagesPath=qSettings.value("txStockImagesPath",QString(getenv("HOME"))+"/tx_stock/").toString(); + templatesPath=qSettings.value("templatesPath",QString(getenv("HOME"))+"/templates/").toString(); + audioPath=qSettings.value("audioPath",QString(getenv("HOME"))+"/audio/").toString(); + docURL=qSettings.value("docURL","http://users.telenet.be/on4qz/qsstv/manual").toString(); + saveTXimages=qSettings.value("saveTXimages",false).toBool(); + qSettings.endGroup(); + setParams(); +} + +void directoriesConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("DIRECTORIES"); + qSettings.setValue("rxSSTVImagesPath",rxSSTVImagesPath); + qSettings.setValue("rxDRMImagesPath",rxDRMImagesPath); + qSettings.setValue("txSSTVImagesPath",txSSTVImagesPath); + qSettings.setValue("txDRMImagesPath",txDRMImagesPath); + qSettings.setValue("txStockImagesPath",txStockImagesPath); + qSettings.setValue("templatesPath",templatesPath); + qSettings.setValue("audioPath",audioPath); + qSettings.setValue("docURL",docURL); + qSettings.setValue("saveTXimages",saveTXimages); + + qSettings.endGroup(); +} + +void directoriesConfig::getParams() +{ + QString rxSSTVImagePathSaved=rxSSTVImagesPath; + QString rxDRMImagePathSaved=rxDRMImagesPath; + QString txSSTVImagePathSaved=txSSTVImagesPath; + QString txDRMImagePathSaved=txDRMImagesPath; + QString txStockImagePathSaved=txStockImagesPath; + QString templatesPathSaved=templatesPath; + getValue(rxSSTVImagesPath,ui->rxSSTVImagesPathLineEdit); + getValue(rxDRMImagesPath,ui->rxDRMImagesPathLineEdit); + getValue(txSSTVImagesPath,ui->txSSTVImagesPathLineEdit); + getValue(txDRMImagesPath,ui->txDRMImagesPathLineEdit); + getValue(txStockImagesPath,ui->txStockImagesPathLineEdit); + getValue(templatesPath,ui->templatesPathLineEdit); + getValue(audioPath,ui->audioPathLineEdit); + getValue(docURL,ui->docPathLineEdit); + getValue(saveTXimages,ui->saveTXcheckBox); + changed=false; + if(rxSSTVImagePathSaved!=rxSSTVImagesPath || rxDRMImagePathSaved!=rxDRMImagesPath || + txSSTVImagePathSaved!=txSSTVImagesPath || + txDRMImagePathSaved!=txDRMImagesPath || + txStockImagePathSaved!=txStockImagesPath || + templatesPathSaved!=templatesPath + ) + changed=true; // always save it +} + +void directoriesConfig::setParams() +{ + setValue(rxSSTVImagesPath,ui->rxSSTVImagesPathLineEdit); + setValue(rxDRMImagesPath,ui->rxDRMImagesPathLineEdit); + setValue(txSSTVImagesPath,ui->txSSTVImagesPathLineEdit); + setValue(txDRMImagesPath,ui->txDRMImagesPathLineEdit); + setValue(txStockImagesPath,ui->txStockImagesPathLineEdit); + setValue(templatesPath,ui->templatesPathLineEdit); + setValue(audioPath,ui->audioPathLineEdit); + setValue(docURL,ui->docPathLineEdit); + setValue(saveTXimages,ui->saveTXcheckBox); + // create directories if not exist + createDir(rxSSTVImagesPath); + createDir(rxDRMImagesPath); + createDir(txSSTVImagesPath); + createDir(txDRMImagesPath); + createDir(txStockImagesPath); + createDir(templatesPath); + + createDir(rxSSTVImagesPath+"/cache"); + createDir(rxDRMImagesPath+"/cache"); + createDir(txSSTVImagesPath+"/cache"); + createDir(txDRMImagesPath+"/cache"); + createDir(txStockImagesPath+"/cache"); + createDir(audioPath); +} + +void directoriesConfig::createDir(QString path) +{ + QDir dd(path); + if(!dd.exists()) + { + dd.mkpath(path); + } +} + + +/** + Browse function for path where the rximages are stored +*/ + + +void directoriesConfig::slotBrowseRxSSTVImagesPath() +{ + browseDir(ui->rxSSTVImagesPathLineEdit,rxSSTVImagesPath); +} + +void directoriesConfig::slotBrowseRxDRMImagesPath() +{ + browseDir(ui->rxDRMImagesPathLineEdit,rxDRMImagesPath); +} + +/** + Browse function for path where the tximages are stored +*/ + +void directoriesConfig::slotBrowseTxSSTVImagesPath() +{ + browseDir(ui->txSSTVImagesPathLineEdit,txSSTVImagesPath); +} + +void directoriesConfig::slotBrowseTxDRMImagesPath() +{ + browseDir(ui->txDRMImagesPathLineEdit,txDRMImagesPath); +} + +void directoriesConfig::slotBrowseTxStockImagesPath() +{ + browseDir(ui->txStockImagesPathLineEdit,txStockImagesPath); +} + +/** + Browse function for path where the templates are stored +*/ + +void directoriesConfig::slotBrowseTemplatesPath() +{ + browseDir(ui->templatesPathLineEdit,templatesPath); +} + +/** + Browse function for audio path +*/ + +void directoriesConfig::slotBrowseAudioPath() +{ + browseDir(ui->audioPathLineEdit,audioPath); +} diff --git a/qsstv/config/directoriesconfig.h b/qsstv/config/directoriesconfig.h new file mode 100644 index 0000000..5fb911f --- /dev/null +++ b/qsstv/config/directoriesconfig.h @@ -0,0 +1,46 @@ +#ifndef DIRECTORIES_H +#define DIRECTORIES_H + +#include "baseconfig.h" + +extern QString rxSSTVImagesPath; +extern QString rxDRMImagesPath; +extern QString txSSTVImagesPath; +extern QString txDRMImagesPath; +extern QString txStockImagesPath; +extern QString templatesPath; +extern QString audioPath; +extern bool saveTXimages; +extern QString docURL; + +namespace Ui { +class directoriesConfig; +} + +class directoriesConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit directoriesConfig(QWidget *parent = 0); + ~directoriesConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +private slots: + void slotBrowseRxSSTVImagesPath(); + void slotBrowseRxDRMImagesPath(); + void slotBrowseTxSSTVImagesPath(); + void slotBrowseTxDRMImagesPath(); + void slotBrowseTxStockImagesPath(); + void slotBrowseTemplatesPath(); + void slotBrowseAudioPath(); + +private: + Ui::directoriesConfig *ui; + void createDir(QString path); +}; + +#endif // DIRECTORIES_H diff --git a/qsstv/config/directoriesconfig.ui b/qsstv/config/directoriesconfig.ui new file mode 100644 index 0000000..40a8fc3 --- /dev/null +++ b/qsstv/config/directoriesconfig.ui @@ -0,0 +1,502 @@ + + + directoriesConfig + + + + 0 + 0 + 700 + 345 + + + + Dialog + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + RX SSTV Images + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + RX DRM Images + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + TX SSTV Images + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + TX DRM Images + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + TX Stock Images + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + Templates + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + Audio Records + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + Save TX images in TX SSTV or TX DRM directory + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 184 + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 150 + 25 + + + + Documentation + + + false + + + + + + + + + + + + + diff --git a/qsstv/config/drmprofileconfig.cpp b/qsstv/config/drmprofileconfig.cpp new file mode 100644 index 0000000..8bd9ea5 --- /dev/null +++ b/qsstv/config/drmprofileconfig.cpp @@ -0,0 +1,189 @@ +#include "drmprofileconfig.h" +#include "ui_drmprofileconfig.h" +#include "utils/supportfunctions.h" +#include "configparams.h" + +sprofile drmPFArray[NUMBEROFPROFILES]; + +drmProfileConfig *drmProfileConfigPtr; + + +drmProfileConfig::drmProfileConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::drmProfileConfig) +{ + ui->setupUi(this); + readSettings(); +} + +drmProfileConfig::~drmProfileConfig() +{ + writeSettings(); + delete ui; +} + + +void drmProfileConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup ("DRMPROFILE" ); + drmPFArray[0].name=qSettings.value ("drmPF1Name","Profile 1").toString(); + drmPFArray[0].params.robMode=qSettings.value ("drmPF1Mode",0).toInt(); + drmPFArray[0].params.qam=qSettings.value("drmPF1QAM",0).toInt(); + drmPFArray[0].params.bandwith=qSettings.value("drmPF1Bandwidth",0).toInt(); + drmPFArray[0].params.protection=qSettings.value("drmPF1Protection",0).toInt(); + drmPFArray[0].params.interleaver=qSettings.value("drmPF1Interleave",0).toInt(); + drmPFArray[0].params.reedSolomon=qSettings.value("drmPF1ReedSolomon",0).toInt(); + + drmPFArray[1].name=qSettings.value ("drmPF2Name","Profile 2").toString(); + drmPFArray[1].params.robMode=qSettings.value ("drmPF2Mode",0).toInt(); + drmPFArray[1].params.qam=qSettings.value("drmPF2QAM",0).toInt(); + drmPFArray[1].params.bandwith=qSettings.value("drmPF2Bandwidth",0).toInt(); + drmPFArray[1].params.protection=qSettings.value("drmPF2Protection",0).toInt(); + drmPFArray[1].params.interleaver=qSettings.value("drmPF2Interleave",0).toInt(); + drmPFArray[1].params.reedSolomon=qSettings.value("drmPF2ReedSolomon",0).toInt(); + + drmPFArray[2].name=qSettings.value ("drmPF3Name","Profile 3").toString(); + drmPFArray[2].params.robMode=qSettings.value ("drmPF3Mode",0).toInt(); + drmPFArray[2].params.qam=qSettings.value("drmPF3QAM",0).toInt(); + drmPFArray[2].params.bandwith=qSettings.value("drmPF3Bandwidth",0).toInt(); + drmPFArray[2].params.protection=qSettings.value("drmPF3Protection",0).toInt(); + drmPFArray[2].params.interleaver=qSettings.value("drmPF3Interleave",0).toInt(); + drmPFArray[2].params.reedSolomon=qSettings.value("drmPF3ReedSolomon",0).toInt(); + qSettings.endGroup(); + setParams(); + +} + +void drmProfileConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup ("DRMPROFILE" ); + qSettings.setValue ("drmPF1Name",drmPFArray[0].name); + qSettings.setValue ("drmPF1Mode",drmPFArray[0].params.robMode); + qSettings.setValue("drmPF1QAM",drmPFArray[0].params.qam); + qSettings.setValue("drmPF1Bandwidth",drmPFArray[0].params.bandwith); + qSettings.setValue("drmPF1Protection",drmPFArray[0].params.protection); + qSettings.setValue("drmPF1Interleave",drmPFArray[0].params.interleaver); + qSettings.setValue("drmPF1ReedSolomon",drmPFArray[0].params.reedSolomon); + qSettings.setValue ("drmPF2Name",drmPFArray[1].name); + qSettings.setValue ("drmPF2Mode",drmPFArray[1].params.robMode); + qSettings.setValue("drmPF2QAM",drmPFArray[1].params.qam); + qSettings.setValue("drmPF2Bandwidth",drmPFArray[1].params.bandwith); + qSettings.setValue("drmPF2Protection",drmPFArray[1].params.protection); + qSettings.setValue("drmPF2Interleave",drmPFArray[1].params.interleaver); + qSettings.setValue("drmPF2ReedSolomon",drmPFArray[1].params.reedSolomon); + + qSettings.setValue ("drmPF3Name",drmPFArray[2].name); + qSettings.setValue ("drmPF3Mode",drmPFArray[2].params.robMode); + qSettings.setValue("drmPF3QAM",drmPFArray[2].params.qam); + qSettings.setValue("drmPF3Bandwidth",drmPFArray[2].params.bandwith); + qSettings.setValue("drmPF3Protection",drmPFArray[2].params.protection); + qSettings.setValue("drmPF3Interleave",drmPFArray[2].params.interleaver); + qSettings.setValue("drmPF3ReedSolomon",drmPFArray[2].params.reedSolomon); + qSettings.endGroup(); +} + + +void drmProfileConfig::getParams() +{ + sprofile drmPFArrayCopy[NUMBEROFPROFILES]; + drmPFArrayCopy[0]=drmPFArray[0]; + drmPFArrayCopy[1]=drmPFArray[1]; + drmPFArrayCopy[2]=drmPFArray[2]; + + getValue(drmPFArray[0].name,ui->namePF1LineEdit); + drmPFArray[0].params.callsign=myCallsign; + getIndex(drmPFArray[0].params.robMode,ui->drmPF1ModeComboBox); + getIndex(drmPFArray[0].params.qam,ui->drmPF1QAMComboBox); + getIndex(drmPFArray[0].params.bandwith,ui->drmPF1BandwidthComboBox); + getIndex(drmPFArray[0].params.protection,ui->drmPF1ProtectionComboBox); + getIndex(drmPFArray[0].params.interleaver,ui->drmPF1InterleaveComboBox); + getIndex(drmPFArray[0].params.reedSolomon,ui->drmPF1ReedSolomonComboBox); + + getValue(drmPFArray[1].name,ui->namePF2LineEdit); + drmPFArray[1].params.callsign=myCallsign; + getIndex(drmPFArray[1].params.robMode,ui->drmPF2ModeComboBox); + getIndex(drmPFArray[1].params.qam,ui->drmPF2QAMComboBox); + getIndex(drmPFArray[1].params.bandwith,ui->drmPF2BandwidthComboBox); + getIndex(drmPFArray[1].params.protection,ui->drmPF2ProtectionComboBox); + getIndex(drmPFArray[1].params.interleaver,ui->drmPF2InterleaveComboBox); + getIndex(drmPFArray[1].params.reedSolomon,ui->drmPF2ReedSolomonComboBox); + + getValue(drmPFArray[2].name,ui->namePF3LineEdit); + drmPFArray[2].params.callsign=myCallsign; + getIndex(drmPFArray[2].params.robMode,ui->drmPF3ModeComboBox); + getIndex(drmPFArray[2].params.qam,ui->drmPF3QAMComboBox); + getIndex(drmPFArray[2].params.bandwith,ui->drmPF3BandwidthComboBox); + getIndex(drmPFArray[2].params.protection,ui->drmPF3ProtectionComboBox); + getIndex(drmPFArray[2].params.interleaver,ui->drmPF3InterleaveComboBox); + getIndex(drmPFArray[2].params.reedSolomon,ui->drmPF3ReedSolomonComboBox); + changed=false; + if( diff(drmPFArrayCopy[0],drmPFArray[0]) + || diff(drmPFArrayCopy[1],drmPFArray[1]) + || diff(drmPFArrayCopy[2],drmPFArray[2])) + changed=true; + +} + +bool drmProfileConfig::diff(sprofile a,sprofile b) +{ + return + (a.name!=b.name + || a.params.robMode!=b.params.robMode + || a.params.qam!= b.params.qam + || a.params.bandwith!=b.params.bandwith + || a.params.protection!=b.params.protection + || a.params.interleaver!=b.params.interleaver + || a.params.reedSolomon!=b.params.reedSolomon); + +} + +void drmProfileConfig::setParams() +{ + setValue(drmPFArray[0].name,ui->namePF1LineEdit); + setIndex(drmPFArray[0].params.robMode,ui->drmPF1ModeComboBox); + setIndex(drmPFArray[0].params.qam,ui->drmPF1QAMComboBox); + setIndex(drmPFArray[0].params.bandwith,ui->drmPF1BandwidthComboBox); + setIndex(drmPFArray[0].params.protection,ui->drmPF1ProtectionComboBox); + setIndex(drmPFArray[0].params.interleaver,ui->drmPF1InterleaveComboBox); + setIndex(drmPFArray[0].params.reedSolomon,ui->drmPF1ReedSolomonComboBox); + + setValue(drmPFArray[1].name,ui->namePF2LineEdit); + setIndex(drmPFArray[1].params.robMode,ui->drmPF2ModeComboBox); + setIndex(drmPFArray[1].params.qam,ui->drmPF2QAMComboBox); + setIndex(drmPFArray[1].params.bandwith,ui->drmPF2BandwidthComboBox); + setIndex(drmPFArray[1].params.protection,ui->drmPF2ProtectionComboBox); + setIndex(drmPFArray[1].params.interleaver,ui->drmPF2InterleaveComboBox); + setIndex(drmPFArray[1].params.reedSolomon,ui->drmPF2ReedSolomonComboBox); + + setValue(drmPFArray[2].name,ui->namePF3LineEdit); + setIndex(drmPFArray[2].params.robMode,ui->drmPF3ModeComboBox); + setIndex(drmPFArray[2].params.qam,ui->drmPF3QAMComboBox); + setIndex(drmPFArray[2].params.bandwith,ui->drmPF3BandwidthComboBox); + setIndex(drmPFArray[2].params.protection,ui->drmPF3ProtectionComboBox); + setIndex(drmPFArray[2].params.interleaver,ui->drmPF3InterleaveComboBox); + setIndex(drmPFArray[2].params.reedSolomon,ui->drmPF3ReedSolomonComboBox); +} + + +bool drmProfileConfig::getDRMParams(int idx,drmTxParams &d) +{ + if((idx<0)||(idx>=NUMBEROFPROFILES)) + { + return false; + } + d=drmPFArray[idx].params; + return true; +} + +bool drmProfileConfig::getName(int idx, QString &n) +{ + + if((idx<0)||(idx>=NUMBEROFPROFILES)) + { + return false; + } + n=drmPFArray[idx].name; + return true; + +} diff --git a/qsstv/config/drmprofileconfig.h b/qsstv/config/drmprofileconfig.h new file mode 100644 index 0000000..9b6a045 --- /dev/null +++ b/qsstv/config/drmprofileconfig.h @@ -0,0 +1,55 @@ +#ifndef DRMPROFILECONFIG_H +#define DRMPROFILECONFIG_H +#include "drmtx/drmparams.h" + + +#include "baseconfig.h" + +#define NUMBEROFPROFILES 3 + + + +struct sprofile +{ + QString name; + drmTxParams params; + +}; + +extern sprofile drmPFArray[NUMBEROFPROFILES]; + +bool getDRMParams(int idx, drmTxParams &d); +bool getName(int idx,QString &n); + + + + +namespace Ui { +class drmProfileConfig; +} + +class drmProfileConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit drmProfileConfig(QWidget *parent = 0); + ~drmProfileConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + bool getDRMParams(int idx,drmTxParams &d); + bool getName(int idx, QString &n); + +private: + Ui::drmProfileConfig *ui; + bool diff(sprofile a,sprofile b); + +}; + +extern drmProfileConfig *drmProfileConfigPtr; + + + +#endif // DRMPROFILECONFIG diff --git a/qsstv/config/drmprofileconfig.ui b/qsstv/config/drmprofileconfig.ui new file mode 100644 index 0000000..073189b --- /dev/null +++ b/qsstv/config/drmprofileconfig.ui @@ -0,0 +1,866 @@ + + + drmProfileConfig + + + + 0 + 0 + 434 + 330 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 1 + + + + Profile 1 + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Profile Name + + + + + + + + + + + + 6 + + + 1 + + + + + + 30 + 0 + + + + Mode + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + A + + + + + B + + + + + E + + + + + + + + + 30 + 0 + + + + BW + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + 2.2 kHz + + + + 2.2 kHz + + + + + 2.5 kHz + + + + + + + + + 30 + 0 + + + + QAM + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 4 + + + + + 16 + + + + + 64 + + + + + + + + + 30 + 0 + + + + Interleave + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + Short + + + + + Long + + + + + + + + + 30 + 0 + + + + Prot. + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + High + + + + + Low + + + + + + + + + 30 + 0 + + + + Rs + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + None + + + + + RS1 + + + + + RS2 + + + + + RS3 + + + + + RS4 + + + + + + + + + + + Profile 2 + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Profile Name + + + + + + + + + + + + 1 + + + + + + 30 + 0 + + + + Mode + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + A + + + + + B + + + + + E + + + + + + + + + 30 + 0 + + + + BW + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + 2.2 kHz + + + + 2.2 kHz + + + + + 2.5 kHz + + + + + + + + + 30 + 0 + + + + QAM + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 4 + + + + + 16 + + + + + 64 + + + + + + + + + 30 + 0 + + + + Interleave + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + Short + + + + + Long + + + + + + + + + 30 + 0 + + + + Prot. + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + High + + + + + Low + + + + + + + + + 30 + 0 + + + + Rs + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + None + + + + + RS1 + + + + + RS2 + + + + + RS3 + + + + + RS4 + + + + + + + + + + + Profile 3 + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Profile Name + + + + + + + + + + + + 1 + + + + + + 30 + 0 + + + + Mode + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + A + + + + + B + + + + + E + + + + + + + + + 30 + 0 + + + + BW + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + 2.2 kHz + + + + 2.2 kHz + + + + + 2.5 kHz + + + + + + + + + 30 + 0 + + + + QAM + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 4 + + + + + 16 + + + + + 64 + + + + + + + + + 30 + 0 + + + + Interleave + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + Short + + + + + Long + + + + + + + + + 30 + 0 + + + + Prot. + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + High + + + + + Low + + + + + + + + + 30 + 0 + + + + Rs + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + None + + + + + RS1 + + + + + RS2 + + + + + RS3 + + + + + RS4 + + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 121 + + + + + + + + + diff --git a/qsstv/config/frequencyselectwidget.cpp b/qsstv/config/frequencyselectwidget.cpp new file mode 100644 index 0000000..ee07cc7 --- /dev/null +++ b/qsstv/config/frequencyselectwidget.cpp @@ -0,0 +1,251 @@ +#include "frequencyselectwidget.h" +#include "ui_frequencyselectwidget.h" + +QStringList freqList; +QStringList modeList; +QStringList sbModeList; +QString additionalCommand; +bool additionalCommandHex; + +frequencySelectWidget::frequencySelectWidget(QWidget *parent) :baseConfig(parent), + ui(new Ui::frequencySelectWidget) +{ + ui->setupUi(this); + QStringList sl; + sl<<"Frequencyy"<<"Mode"<<"Modulation"; + ui->tableWidget->setAlternatingRowColors (false); + ui->tableWidget->setColumnCount(3); + ui->tableWidget->setHorizontalHeaderLabels(sl); + connect(ui->tableWidget,SIGNAL(itemChanged(QTableWidgetItem *)),this,SLOT(slotItemChanged())); + connect(ui->tableWidget,SIGNAL(cellClicked(int,int)),this,SLOT(slotCellClicked(int,int))); + connect(ui->addFreqPushButton,SIGNAL(clicked()),this,SLOT(slotFreqAdd())); + connect(ui->deleteFreqPushButton,SIGNAL(clicked()),this,SLOT(slotFreqDelete())); + connect(ui->moveUpFreqPushButton,SIGNAL(clicked()),this,SLOT(slotFreqUp())); + connect(ui->moveDownFreqPushButton,SIGNAL(clicked()),this,SLOT(slotFreqDown())); + lastRowSelected=-1; +} + +frequencySelectWidget::~frequencySelectWidget() +{ + writeSettings(); + delete ui; + +} + +void frequencySelectWidget::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("FREQSELECT"); + freqList=qSettings.value("frequencyList",QStringList()).toStringList(); + modeList=qSettings.value("modeList",QStringList()).toStringList(); + sbModeList=qSettings.value("sbModeList",QStringList()).toStringList(); + additionalCommand=qSettings.value("additionalCommand",QString()).toString(); + additionalCommandHex=qSettings.value("additionalCommandHex",false).toBool(); + if(modeList.count()!=freqList.count() || sbModeList.count()!=freqList.count()) + { + // invalid config + freqList.clear(); + modeList.clear(); + sbModeList.clear(); + } + setParams(); + qSettings.endGroup(); +} + +void frequencySelectWidget::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("FREQSELECT"); + qSettings.setValue("frequencyList",freqList); + qSettings.setValue("modeList",modeList); + qSettings.setValue("sbModeList",sbModeList); + qSettings.setValue("additionalCommand",additionalCommand); + qSettings.setValue("additionalCommandHex",additionalCommandHex); + qSettings.endGroup(); +} + +void frequencySelectWidget::constructTable() +{ + int i; + while(ui->tableWidget->rowCount()>0) + { + ui->tableWidget->removeRow(0); + } + ui->tableWidget->setRowCount(freqList.count()); + + for(i=0;itableWidget->setRowCount(freqList.count()); + } + } +} + +void frequencySelectWidget:: getParams() +{ + int i; + bool ok; + freqList.clear(); + modeList.clear(); + sbModeList.clear(); + for(i=0;itableWidget->rowCount();i++) + { + ui->tableWidget->item(i,0)->text().toDouble(&ok); + { + if (!ok) + { + blockSignals(true); + ui->tableWidget->item(i,0)->setText(""); + blockSignals(false); + } + } + freqList.append(ui->tableWidget->item(i,0)->text()); + modeList.append(((QComboBox *)ui->tableWidget->cellWidget(i,1))->currentText()); + sbModeList.append(((QComboBox *)ui->tableWidget->cellWidget(i,2))->currentText()); + } + getValue(additionalCommand,ui->additionalCommandLineEdit); + getValue(additionalCommandHex,ui->additionalCommandHexCheckBox); +} + +void frequencySelectWidget::setParams() +{ + constructTable(); + setValue(additionalCommand,ui->additionalCommandLineEdit); + setValue(additionalCommandHex,ui->additionalCommandHexCheckBox); +} + + + + + + + +void frequencySelectWidget::slotFreqAdd() +{ + freqList.append(""); + modeList.append("SSTV"); + sbModeList.append("LSB"); + createEntry(freqList.count()-1); +} + +void frequencySelectWidget::slotFreqDelete() +{ + int curRow=lastRowSelected; + freqList.takeAt(curRow); + modeList.takeAt(curRow); + sbModeList.takeAt(curRow); + constructTable(); + if((curRowtableWidget->setCurrentCell(curRow-1,0); + ui->tableWidget->item(curRow-1, 0)->setSelected(true); + setLastRowSelected(); + } +} +void frequencySelectWidget::slotFreqUp() +{ + int curRow=lastRowSelected; + QString f,m,sb; + if(curRow>0) + { + f=freqList.at(curRow-1); + m=modeList.at(curRow-1); + sb=sbModeList.at(curRow-1); + freqList[curRow-1]=freqList.at(curRow); + modeList[curRow-1]=modeList.at(curRow); + sbModeList[curRow-1]=sbModeList.at(curRow); + freqList[curRow]=f; + modeList[curRow]=m; + sbModeList[curRow]=sb; + constructTable(); + ui->tableWidget->setCurrentCell(curRow-1,0); + ui->tableWidget->item(curRow-1, 0)->setSelected(true); + setLastRowSelected(); + + } +} + +void frequencySelectWidget::slotFreqDown() +{ + int curRow=lastRowSelected; + QString f,m,sb; + if(curRow<(ui->tableWidget->rowCount()-1) && curRow>=0) + { + f=freqList.at(curRow+1); + m=modeList.at(curRow+1); + sb=sbModeList.at(curRow+1); + freqList[curRow+1]=freqList.at(curRow); + modeList[curRow+1]=modeList.at(curRow); + sbModeList[curRow+1]=sbModeList.at(curRow); + freqList[curRow]=f; + modeList[curRow]=m; + sbModeList[curRow]=sb; + constructTable(); + ui->tableWidget->setCurrentCell(curRow+1,0); + ui->tableWidget->item(curRow+1, 0)->setSelected(true); + setLastRowSelected(); + + } +} + +void frequencySelectWidget::createEntry(int row) +{ + QComboBox *cb, *sb; + QTableWidgetItem *ct; + if(row>(ui->tableWidget->rowCount()-1)) + { + ui->tableWidget->setRowCount(row+1); + } + ui->tableWidget-> blockSignals(true); + ct=new QTableWidgetItem(); + ct->setText(freqList.at(row)); + ui->tableWidget->setItem(row,0,ct); + + cb=new QComboBox(this); + cb->addItem("SSTV"); + cb->addItem("DRM"); +// cb->setCurrentText(modeList.at(row)); + setValue(modeList.at(row),cb); + + ui->tableWidget->setCellWidget(row,1,cb); + + sb=new QComboBox(this); + sb->addItem("LSB"); + sb->addItem("USB"); + sb->addItem("FM"); + sb->addItem("AM"); + +// sb->setCurrentText(sbModeList.at(row)); + setValue(sbModeList.at(row),sb); + ui->tableWidget->setCellWidget(row,2,sb); + connect(cb,SIGNAL(currentIndexChanged(int)),SLOT(slotItemChanged())); + connect(sb,SIGNAL(currentIndexChanged(int)),SLOT(slotItemChanged())); + ui->tableWidget->blockSignals(false); +} + +void frequencySelectWidget::slotItemChanged() +{ + getParams(); +} + +void frequencySelectWidget::setLastRowSelected() +{ + lastRowSelected=ui->tableWidget->currentRow(); + if(lastRowSelected>=ui->tableWidget->rowCount()) + { + lastRowSelected=-1; + } +} +void frequencySelectWidget::slotCellClicked(int r,int) +{ + lastRowSelected=r; +} diff --git a/qsstv/config/frequencyselectwidget.h b/qsstv/config/frequencyselectwidget.h new file mode 100644 index 0000000..9ab76ff --- /dev/null +++ b/qsstv/config/frequencyselectwidget.h @@ -0,0 +1,46 @@ +#ifndef FREQUENCYSELECTWIDGET_H +#define FREQUENCYSELECTWIDGET_H +#include "baseconfig.h" + +#include + +extern QStringList freqList; +extern QStringList modeList; +extern QStringList sbModeList; +extern QString additionalCommand; +extern bool additionalCommandHex; + +namespace Ui { +class frequencySelectWidget; +} + +class frequencySelectWidget : public baseConfig +{ + Q_OBJECT + +public: + explicit frequencySelectWidget(QWidget *parent = 0); + ~frequencySelectWidget(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +private slots: + void slotFreqAdd(); + void slotFreqDelete(); + void slotFreqUp(); + void slotFreqDown(); + void slotItemChanged(); + void slotCellClicked(int r, int); + +private: + Ui::frequencySelectWidget *ui; + void constructTable(); + void createEntry(int row); + void setLastRowSelected(); + int lastRowSelected; + +}; + +#endif // FREQUENCYSELECTWIDGET_H diff --git a/qsstv/config/frequencyselectwidget.ui b/qsstv/config/frequencyselectwidget.ui new file mode 100644 index 0000000..850555e --- /dev/null +++ b/qsstv/config/frequencyselectwidget.ui @@ -0,0 +1,164 @@ + + + frequencySelectWidget + + + + 0 + 0 + 788 + 473 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + + + Add + + + + + + + Delete + + + + + + + Qt::Vertical + + + + 20 + 13 + + + + + + + + Qt::StrongFocus + + + + + + + :/icons/up.png:/icons/up.png + + + + + + + Qt::Vertical + + + + 20 + 18 + + + + + + + + Qt::StrongFocus + + + + + + + :/icons/down.png:/icons/down.png + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + true + + + Enter the frequency in MHz and select the mode. +Example: +14.230 SSTV USB +7.058 DRM LSB + + + + + + + + + + + Hamlib Data Command + + + + + + + + + + Hex + + + + + + + + + + + + diff --git a/qsstv/config/ftpconfig.cpp b/qsstv/config/ftpconfig.cpp new file mode 100644 index 0000000..7491310 --- /dev/null +++ b/qsstv/config/ftpconfig.cpp @@ -0,0 +1,153 @@ +#include "ftpconfig.h" +#include "ui_ftpconfig.h" +#include "ftp.h" + +#include +#include + + +bool enableFTP; +int ftpPort; +QString ftpRemoteHost; +QString ftpRemoteSSTVDirectory; +QString ftpRemoteDRMDirectory; +QString ftpLogin; +QString ftpPassword; +QString ftpDefaultImageFormat; +eftpSaveFormat ftpSaveFormat; +int ftpNumImages; + +ftpConfig::ftpConfig(QWidget *parent) : baseConfig (parent), ui(new Ui::ftpConfig) +{ + ui->setupUi(this); + foreach (QByteArray format, QImageWriter::supportedImageFormats()) + { + QString text = tr("%1").arg(QString(format)); + ui->ftpDefaultImageFormatComboBox->addItem(text); + } + connect(ui->testFTPPushButton,SIGNAL(clicked()),SLOT(slotTestFTPPushButton())); +} + +ftpConfig::~ftpConfig() +{ + delete ui; +} + +void ftpConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("FTPCONFIG"); + enableFTP=qSettings.value("enableFTP",false).toBool(); + ftpPort=qSettings.value("ftpPort",21).toInt(); + ftpRemoteHost=qSettings.value("ftpRemoteHost","").toString(); + ftpRemoteSSTVDirectory=qSettings.value("ftpRemoteSSTVDirectory","").toString(); + ftpRemoteDRMDirectory=qSettings.value("ftpRemoteDRMDirectory","").toString(); + ftpLogin=qSettings.value("ftpLogin","").toString(); + ftpPassword=qSettings.value("ftpPassword","").toString(); + ftpDefaultImageFormat=qSettings.value("ftpDefaultImageFormat","png").toString(); + ftpSaveFormat=(eftpSaveFormat)qSettings.value("ftpSaveFormat",0).toInt(); + ftpNumImages=qSettings.value("ftpNumImages",30).toInt(); + qSettings.endGroup(); + setParams(); +} + +void ftpConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("FTPCONFIG"); + qSettings.setValue("enableFTP",enableFTP); + qSettings.setValue("ftpPort",ftpPort); + qSettings.setValue("ftpRemoteHost",ftpRemoteHost); + qSettings.setValue("ftpRemoteSSTVDirectory",ftpRemoteSSTVDirectory); + qSettings.setValue("ftpRemoteDRMDirectory",ftpRemoteDRMDirectory); + qSettings.setValue("ftpLogin",ftpLogin); + qSettings.setValue("ftpPassword",ftpPassword); + qSettings.setValue("ftpDefaultImageFormat",ftpDefaultImageFormat); + qSettings.setValue("ftpSaveFormat",(int)ftpSaveFormat); + qSettings.setValue("ftpNumImages",ftpNumImages); + qSettings.endGroup(); +} + +void ftpConfig::getParams() +{ + bool enableFTPCopy=enableFTP; + int ftpPortCopy=ftpPort; + QString ftpRemoteHostCopy=ftpRemoteHost; + QString ftpRemoteSSTVDirectoryCopy=ftpRemoteSSTVDirectory; + QString ftpRemoteDRMDirectoryCopy=ftpRemoteDRMDirectory; + QString ftpLoginCopy=ftpLogin; + QString ftpPasswordCopy=ftpPassword; + QString ftpDefaultImageFormatCopy=ftpDefaultImageFormat; + eftpSaveFormat ftpSaveFormatCopy=ftpSaveFormat; + + + getValue(enableFTP,ui->enableFTPCheckBox); + getValue(ftpPort,ui->ftpPortSpinBox); + getValue(ftpRemoteHost,ui->remoteHostLineEdit); + getValue(ftpNumImages,ui->ftpNumImagesSpinBox); + getValue(ftpRemoteSSTVDirectory,ui->remoteSSTVDirectoryLineEdit); + getValue(ftpRemoteDRMDirectory,ui->remoteDRMDirectoryLineEdit); + getValue(ftpLogin,ui->ftpLoginLineEdit); + getValue(ftpPassword,ui->ftpPasswordLineEdit); + getValue(ftpDefaultImageFormat,ui->ftpDefaultImageFormatComboBox); + if(ui->imageRadioButton->isChecked()) + { + ftpSaveFormat=FTPIM; + } + else + { + ftpSaveFormat=FTPFILE; + } + changed=false; + if(enableFTPCopy!=enableFTP + || ftpPortCopy!=ftpPort + || ftpRemoteHostCopy!=ftpRemoteHost + || ftpRemoteSSTVDirectoryCopy!=ftpRemoteSSTVDirectory + || ftpRemoteDRMDirectoryCopy!=ftpRemoteDRMDirectory + || ftpLoginCopy!=ftpLogin + || ftpPasswordCopy!=ftpPassword + || ftpDefaultImageFormatCopy!=ftpDefaultImageFormat + || ftpSaveFormatCopy!=ftpSaveFormat) + changed=true; +} + +void ftpConfig::setParams() +{ + setValue(enableFTP,ui->enableFTPCheckBox); + setValue(ftpPort,ui->ftpPortSpinBox); + setValue(ftpRemoteHost,ui->remoteHostLineEdit); + setValue(ftpNumImages,ui->ftpNumImagesSpinBox); + setValue(ftpRemoteSSTVDirectory,ui->remoteSSTVDirectoryLineEdit); + setValue(ftpRemoteDRMDirectory,ui->remoteDRMDirectoryLineEdit); + setValue(ftpLogin,ui->ftpLoginLineEdit); + setValue(ftpPassword,ui->ftpPasswordLineEdit); + if(ftpSaveFormat==FTPIM) + { + ui->imageRadioButton->setChecked(true); + } + else + { + ui->filenameRadioButton->setChecked(true); + } + setValue(ftpDefaultImageFormat,ui->ftpDefaultImageFormatComboBox); +} + + +void ftpConfig::slotTestFTPPushButton() +{ + QString r1,r2; + QApplication::setOverrideCursor(Qt::WaitCursor); + ftpInterface fInt("TestUploadConnection"); + ui->testFTPPushButton->setDisabled(true); + getParams(); + fInt.setupConnection(ftpRemoteHost,ftpPort,ftpLogin,ftpPassword,ftpRemoteSSTVDirectory); + r1=fInt.execFTPTest(); + fInt.init(); + fInt.setupConnection(ftpRemoteHost,ftpPort,ftpLogin,ftpPassword,ftpRemoteDRMDirectory); + r2=fInt.execFTPTest(); + QApplication::restoreOverrideCursor(); + ui->testFTPPushButton->setDisabled(false); + QMessageBox::information(this,"Testing Connection","",QString("SSTV: %1\nDRM: %2").arg(r1).arg(r2)); +} + diff --git a/qsstv/config/ftpconfig.h b/qsstv/config/ftpconfig.h new file mode 100644 index 0000000..9539d8d --- /dev/null +++ b/qsstv/config/ftpconfig.h @@ -0,0 +1,48 @@ +#ifndef FTPCONFIG_H +#define FTPCONFIG_H + + +#include "baseconfig.h" + + +#define NUMFTPRXIMAGES 30 + +enum eftpSaveFormat {FTPIM,FTPFILE}; + +extern bool enableFTP; +extern int ftpPort; +extern QString ftpRemoteHost; +extern QString ftpRemoteSSTVDirectory; +extern QString ftpRemoteDRMDirectory; +extern QString ftpLogin; +extern QString ftpPassword; +extern QString ftpFilename; +extern QString ftpDefaultImageFormat; +extern eftpSaveFormat ftpSaveFormat; +extern int ftpNumImages; + + +namespace Ui { +class ftpConfig; +} + +class ftpConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit ftpConfig(QWidget *parent = 0); + ~ftpConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +private slots: + void slotTestFTPPushButton(); + +private: + Ui::ftpConfig *ui; +}; + +#endif // FTPCONFIG_H diff --git a/qsstv/config/ftpconfig.ui b/qsstv/config/ftpconfig.ui new file mode 100644 index 0000000..d80bef1 --- /dev/null +++ b/qsstv/config/ftpconfig.ui @@ -0,0 +1,585 @@ + + + ftpConfig + + + + 0 + 0 + 751 + 517 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Enable File Upload to FTP Server + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + FTP Port + + + false + + + + + + + 1 + + + 10000 + + + 21 + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + Default Image Format + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Host + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Login + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Password + + + false + + + + + + + QLineEdit::Password + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Directory SSTV + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Directory DRM + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + + + Image store + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + image1 to image + + + + + + + 1 + + + 50 + + + 30 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + filename + + + + + + + + + + This ftp server is used to upload your received pictures. You can save them as a rotating sequence of images (image1 being the latest and image30 being the oldest) or simply under their own filename. + + + true + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Test connection + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 6 + + + + + + + + + diff --git a/qsstv/config/guiconfig.cpp b/qsstv/config/guiconfig.cpp new file mode 100644 index 0000000..5ef1abd --- /dev/null +++ b/qsstv/config/guiconfig.cpp @@ -0,0 +1,119 @@ +#include "guiconfig.h" +#include "ui_guiconfig.h" +#include +#include + + +int galleryRows; +int galleryColumns; +bool imageStretch; +QColor backGroundColor; +QColor imageBackGroundColor; +bool slowCPU; +bool lowRes; + +guiConfig::guiConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::guiConfig) +{ + ui->setupUi(this); + backGroundColorChanged=false; + connect(ui->backgroundColorPushButton,SIGNAL(clicked()),SLOT(slotBGColorSelect())); + connect(ui->imageBackgroundColorPushButton,SIGNAL(clicked()),SLOT(slotIBGColorSelect())); +} + +guiConfig::~guiConfig() +{ + delete ui; +} + +void guiConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("GUI"); + galleryRows=qSettings.value("galleryRows",4).toInt(); + galleryColumns=qSettings.value("galleryColumns",4).toInt(); + imageStretch=qSettings.value("imageStretch",true).toBool(); + backGroundColor=qSettings.value("backGroundColor",QColor(128,128,128)).value(); + imageBackGroundColor=qSettings.value("imageBackGroundColor",QColor(0,0,128)).value(); + slowCPU=qSettings.value("slowCPU",false).toBool(); + lowRes=qSettings.value("lowRes",false).toBool(); + qSettings.endGroup(); + setParams(); +} + +void guiConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("GUI"); + qSettings.setValue("galleryRows",galleryRows); + qSettings.setValue("galleryColumns",galleryColumns); + qSettings.setValue("imageStretch",imageStretch); + qSettings.setValue("backGroundColor",backGroundColor); + qSettings.setValue("imageBackGroundColor",imageBackGroundColor); + qSettings.setValue("slowCPU",slowCPU); + qSettings.setValue("lowRes",lowRes); + qSettings.endGroup(); +} + +void guiConfig::getParams() +{ + int galleryRowsCopy=galleryRows; + int galleryColumnsCopy=galleryColumns; + getValue(galleryRows,ui->rowsSpinBox); + getValue(galleryColumns, ui->columnsSpinBox); + changed=false; + if( galleryRowsCopy!=galleryRows || galleryColumnsCopy!=galleryColumns) + changed=true; + getValue(imageStretch,ui->stretchCheckBox); + getValue(slowCPU,ui->slowCPUCheckBox); + getValue(lowRes,ui->lowResCheckBox); +} + +void guiConfig::setParams() +{ + setValue(galleryRows,ui->rowsSpinBox); + setValue(galleryColumns, ui->columnsSpinBox); + setValue(imageStretch,ui->stretchCheckBox); + setColorLabel(backGroundColor,false); + setColorLabel(imageBackGroundColor,true); + setValue(slowCPU,ui->slowCPUCheckBox); + setValue(lowRes,ui->lowResCheckBox); +} + + +void guiConfig::slotBGColorSelect() +{ + QColor c; + c=QColorDialog::getColor(backGroundColor,this,"",QColorDialog::ShowAlphaChannel); + setColorLabel(c,false); +} + +void guiConfig::slotIBGColorSelect() +{ + QColor c; + c=QColorDialog::getColor(imageBackGroundColor,this,"",QColorDialog::ShowAlphaChannel); + setColorLabel(c,true); +} + + +void guiConfig::setColorLabel(QColor c,bool image) +{ +if (c.isValid()) + { + if(!image) + { + backGroundColorChanged=true; + QPalette palette = ui->backGroundColorLabel->palette(); + palette.setColor(ui->backGroundColorLabel->backgroundRole(), c); + ui->backGroundColorLabel->setPalette(palette); + backGroundColor=c; + } + else + { + QPalette palette = ui->imageBackGroundColorLabel->palette(); + palette.setColor(ui->imageBackGroundColorLabel->backgroundRole(), c); + ui->imageBackGroundColorLabel->setPalette(palette); + imageBackGroundColor=c; + } + } +} diff --git a/qsstv/config/guiconfig.h b/qsstv/config/guiconfig.h new file mode 100644 index 0000000..b0e8971 --- /dev/null +++ b/qsstv/config/guiconfig.h @@ -0,0 +1,43 @@ +#ifndef GUICONFIG_H +#define GUICONFIG_H + +#include +#include "baseconfig.h" + +extern int galleryRows; +extern int galleryColumns; +extern bool imageStretch; +extern QString defaultImageFormat; +extern QColor backGroundColor; +extern QColor imageBackGroundColor; +extern bool slowCPU; +extern bool lowRes; + +namespace Ui +{ +class guiConfig; +} + +class guiConfig :public baseConfig +{ + Q_OBJECT + +public: + explicit guiConfig(QWidget *parent = 0); + ~guiConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + bool backGroundColorChanged; +private slots: + void slotBGColorSelect(); + void slotIBGColorSelect(); + +private: + Ui::guiConfig *ui; + void setColorLabel(QColor c, bool image); + +}; + +#endif // GUICONFIG_H diff --git a/qsstv/config/guiconfig.ui b/qsstv/config/guiconfig.ui new file mode 100644 index 0000000..a48b7e3 --- /dev/null +++ b/qsstv/config/guiconfig.ui @@ -0,0 +1,267 @@ + + + guiConfig + + + + 0 + 0 + 548 + 446 + + + + Form + + + + + + + + Images + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Background Color + + + + + + + Qt::RightToLeft + + + Stretch + + + + + + + Image Background color + + + + + + + + 60 + 0 + + + + true + + + QFrame::Box + + + QFrame::Sunken + + + 3 + + + + + + + + + + + 60 + 0 + + + + true + + + QFrame::Box + + + QFrame::Sunken + + + 3 + + + + + + + + + + + + + + + Gallery + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Rows + + + + + + + + + + + + + Columns + + + + + + + + + + + + + + Exit and restart QSSTV If slow CPU or Low Resolution has changed. + + + + + + + + + Performance + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Qt::LeftToRight + + + Check if slow CPU + + + + + + + + + + Resolution + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Qt::LeftToRight + + + Check if Low Screen Resolution + + + + + + + + + + + + Qt::Vertical + + + + 20 + 238 + + + + + + + + + diff --git a/qsstv/config/hybridconfig.cpp b/qsstv/config/hybridconfig.cpp new file mode 100644 index 0000000..35e1cc1 --- /dev/null +++ b/qsstv/config/hybridconfig.cpp @@ -0,0 +1,121 @@ +#include "hybridconfig.h" +#include "ui_hybridconfig.h" +#include "ftp.h" +#include "hybridcrypt.h" + +#include + +bool enableHybridRx; +//bool enableSpecialServer; +int hybridFtpPort; +QString hybridFtpRemoteHost; +QString hybridFtpRemoteDirectory; +QString hybridFtpLogin; +QString hybridFtpPassword; +QString hybridFtpHybridFilesDirectory; + + +hybridConfig::hybridConfig(QWidget *parent) :baseConfig(parent), ui(new Ui::hybridConfig) +{ + ui->setupUi(this); + // connect(testFTPPushButton,SIGNAL(clicked()),SLOT(slotTestFTPPushButton())); + connect(ui->testHybridPushButton,SIGNAL(clicked()),SLOT(slotTestHybridPushButton())); +} + +hybridConfig::~hybridConfig() +{ + delete ui; +} + +void hybridConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("HYBRID"); + enableHybridRx=qSettings.value("enableHybridRx",true).toBool(); +// enableSpecialServer=qSettings.value("enableSpecialServer",false).toBool(); + hybridFtpPort=qSettings.value("hybridFtpPort",21).toInt(); + hybridFtpRemoteHost=qSettings.value("hybridFtpRemoteHost","").toString(); + hybridFtpRemoteDirectory=qSettings.value("hybridFtpRemoteDirectory","").toString(); + hybridFtpLogin=qSettings.value("hybridFtpLogin","").toString(); + hybridFtpPassword=qSettings.value("hybridFtpPassword","").toString(); + hybridFtpHybridFilesDirectory=qSettings.value("hybridFtpHybridFilesDirectory","HybridFiles1").toString(); + + qSettings.endGroup(); + setParams(); +} + +void hybridConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("HYBRID"); + qSettings.setValue("enableHybridRx",enableHybridRx); +// qSettings.setValue("enableSpecialServer",enableSpecialServer); + qSettings.setValue("hybridFtpPort",hybridFtpPort); + qSettings.setValue("hybridFtpRemoteHost",hybridFtpRemoteHost); + qSettings.setValue("hybridFtpRemoteDirectory",hybridFtpRemoteDirectory); + qSettings.setValue("hybridFtpLogin",hybridFtpLogin); + qSettings.setValue("hybridFtpPassword",hybridFtpPassword); + qSettings.setValue("hybridFtpHybridFilesDirectory",hybridFtpHybridFilesDirectory); + qSettings.endGroup(); +} + +void hybridConfig::getParams() +{ + bool enableHybridRxCopy=enableHybridRx; +// bool enableSpecialServerCopy=enableSpecialServer; + int hybridFtpPortCopy=hybridFtpPort; + QString hybridFtpRemoteHostCopy=hybridFtpRemoteHost; + QString hybridFtpRemoteDirectoryCopy=hybridFtpRemoteDirectory; + QString hybridFtpLoginCopy=hybridFtpLogin; + QString hybridFtpPasswordCopy=hybridFtpPassword; + + + getValue(enableHybridRx,ui->enableHybridRxCheckBox); +// getValue(enableSpecialServer,ui->enableSpecialServerCheckBox); + getValue(hybridFtpPort,ui->hybridFtpPortSpinBox); + getValue(hybridFtpRemoteHost,ui->hybridRemoteHostLineEdit); + getValue(hybridFtpRemoteDirectory,ui->hybridRemoteDirectoryLineEdit); + getValue(hybridFtpLogin,ui->hybridFtpLoginLineEdit); + getValue(hybridFtpPassword,ui->hybridFtpPasswordLineEdit); + getValue(hybridFtpHybridFilesDirectory,ui->hybridFilesDirectoryLineEdit); + changed=false; + if( enableHybridRxCopy!=enableHybridRx +// || enableSpecialServerCopy!=enableSpecialServer + || hybridFtpPortCopy!=hybridFtpPort + || hybridFtpRemoteHostCopy!=hybridFtpRemoteHost + || hybridFtpRemoteDirectoryCopy!=hybridFtpRemoteDirectory + || hybridFtpLoginCopy!=hybridFtpLogin + || hybridFtpPasswordCopy!=hybridFtpPassword) + changed=true; + + + + +} + +void hybridConfig::setParams() +{ + setValue(enableHybridRx,ui->enableHybridRxCheckBox); +// setValue(enableSpecialServer,ui->enableSpecialServerCheckBox); + setValue(hybridFtpPort,ui->hybridFtpPortSpinBox); + setValue(hybridFtpRemoteHost,ui->hybridRemoteHostLineEdit); + setValue(hybridFtpRemoteDirectory,ui->hybridRemoteDirectoryLineEdit); + setValue(hybridFtpLogin,ui->hybridFtpLoginLineEdit); + setValue(hybridFtpPassword,ui->hybridFtpPasswordLineEdit); + setValue(hybridFtpHybridFilesDirectory,ui->hybridFilesDirectoryLineEdit); +} + + +void hybridConfig::slotTestHybridPushButton() +{ + QString msg; + ftpInterface fInt("TestHybridConnection"); + ui->testHybridPushButton->setDisabled(true); + getParams(); + fInt.setupConnection(hybridFtpRemoteHost,hybridFtpPort,hybridFtpLogin,hybridFtpPassword,hybridFtpRemoteDirectory+"/"+hybridFtpHybridFilesDirectory); +// fInt.setupConnection(hc.host(),hc.port(),hc.user(),hc.passwd(),hc.dir()+"/"+hybridFtpHybridFilesDirectory); + msg=fInt.execFTPTest(); + ui->testHybridPushButton->setDisabled(false); + QMessageBox::information(this,"Test Connection",msg); +} diff --git a/qsstv/config/hybridconfig.h b/qsstv/config/hybridconfig.h new file mode 100644 index 0000000..c80a7c1 --- /dev/null +++ b/qsstv/config/hybridconfig.h @@ -0,0 +1,38 @@ +#ifndef HYBRIDCONFIG_H +#define HYBRIDCONFIG_H + +#include "baseconfig.h" + +extern bool enableHybridRx; +//extern bool enableSpecialServer; +extern int hybridFtpPort; +extern QString hybridFtpRemoteHost; +extern QString hybridFtpRemoteDirectory; +extern QString hybridFtpLogin; +extern QString hybridFtpPassword; +extern QString hybridFtpHybridFilesDirectory; + + +namespace Ui { +class hybridConfig; +} + +class hybridConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit hybridConfig(QWidget *parent = 0); + ~hybridConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); +private slots: + void slotTestHybridPushButton(); + +private: + Ui::hybridConfig *ui; +}; + +#endif // HYBRIDCONFIG_H diff --git a/qsstv/config/hybridconfig.ui b/qsstv/config/hybridconfig.ui new file mode 100644 index 0000000..1885033 --- /dev/null +++ b/qsstv/config/hybridconfig.ui @@ -0,0 +1,450 @@ + + + hybridConfig + + + + 0 + 0 + 730 + 372 + + + + Form + + + + + + + + Enable Reception in Hybrid Mode + + + true + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + FTP Port + + + false + + + + + + + true + + + 1 + + + 10000 + + + 21 + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Host + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Login + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Password + + + false + + + + + + + QLineEdit::Password + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Directory + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Hybrid Files Directory + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Test connection + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 38 + + + + + + + + + diff --git a/qsstv/config/hybridnotifyconfig.cpp b/qsstv/config/hybridnotifyconfig.cpp new file mode 100644 index 0000000..67b8c42 --- /dev/null +++ b/qsstv/config/hybridnotifyconfig.cpp @@ -0,0 +1,123 @@ +#include "hybridnotifyconfig.h" +#include "ui_hybridnotifyconfig.h" +#include "ftp.h" + +#include + +bool enableHybridNotify; +bool enableHybridNotifySnoop; +int hybridNotifyPort; +QString hybridNotifyRemoteHost; +QString hybridNotifyRemoteDir; +QString hybridNotifyLogin; +QString hybridNotifyPassword; +QString hybridNotifyDir; + + +hybridNotifyConfig::hybridNotifyConfig(QWidget *parent) :baseConfig(parent), ui(new Ui::hybridNotifyConfig) +{ + ui->setupUi(this); +// connect(testFTPPushButton,SIGNAL(clicked()),SLOT(slotTestFTPPushButton())); + connect(ui->testNotifyPushButton,SIGNAL(clicked()),SLOT(slotTestNotifyPushButton())); +} + +hybridNotifyConfig::~hybridNotifyConfig() +{ + delete ui; +} + +void hybridNotifyConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("HYBRID_NOTIFY"); + enableHybridNotify=qSettings.value("enableHybridNotify",true).toBool(); + enableHybridNotifySnoop=qSettings.value("enableHybridNotifySnoop",true).toBool(); + hybridNotifyPort=qSettings.value("hybridNotifyPort",21).toInt(); + hybridNotifyRemoteHost=qSettings.value("hybridNotifyRemoteHost","").toString(); + hybridNotifyRemoteDir=qSettings.value("hybridNotifyRemoteDir","").toString(); + hybridNotifyLogin=qSettings.value("hybridNotifyLogin","").toString(); + hybridNotifyPassword=qSettings.value("hybridNotifyPassword","").toString(); + hybridNotifyDir=qSettings.value("hybridNotifyDirectory","RxOkNotifications1").toString(); + + qSettings.endGroup(); + setParams(); +} + +void hybridNotifyConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("HYBRID_NOTIFY"); + qSettings.setValue("enableHybridNotify",enableHybridNotify); + qSettings.setValue("enableHybridNotifySnoop",enableHybridNotifySnoop); + qSettings.setValue("hybridNotifyPort",hybridNotifyPort); + qSettings.setValue("hybridNotifyRemoteHost",hybridNotifyRemoteHost); + qSettings.setValue("hybridNotifyRemoteDir",hybridNotifyRemoteDir); + qSettings.setValue("hybridNotifyLogin",hybridNotifyLogin); + qSettings.setValue("hybridNotifyPassword",hybridNotifyPassword); + qSettings.setValue("hybridNotifyDir",hybridNotifyDir); + qSettings.endGroup(); +} + +void hybridNotifyConfig::getParams() +{ + bool enableHybridNotifyCopy=enableHybridNotify; + bool enableHybridNotifySnoopCopy=enableHybridNotifySnoop; + int hybridNotifyPortCopy=hybridNotifyPort; + QString hybridNotifyRemoteHostCopy=hybridNotifyRemoteHost; + QString hybridNotifyRemoteDirCopy=hybridNotifyRemoteDir; + QString hybridNotifyDirCopy=hybridNotifyDir; + QString hybridNotifyLoginCopy=hybridNotifyLogin; + QString hybridNotifyPasswordCopy=hybridNotifyPassword; + + + getValue(enableHybridNotify,ui->enableHybridNotifyCheckBox); + getValue(enableHybridNotifySnoop,ui->enableHybridNotifySnoopCheckBox); + getValue(hybridNotifyPort,ui->hybridNotifyPortSpinBox); + getValue(hybridNotifyRemoteHost,ui->hybridNotifyRemoteHostLineEdit); + getValue(hybridNotifyRemoteDir,ui->hybridNotifyRemoteDirLineEdit); + getValue(hybridNotifyLogin,ui->hybridNotifyLoginLineEdit); + getValue(hybridNotifyPassword,ui->hybridNotifyPasswordLineEdit); + getValue(hybridNotifyDir,ui->hybridNotifyDirLineEdit); + changed=false; + if( enableHybridNotifyCopy!=enableHybridNotify + || enableHybridNotifySnoopCopy!=enableHybridNotifySnoop + || hybridNotifyPortCopy!=hybridNotifyPort + || hybridNotifyRemoteHostCopy!=hybridNotifyRemoteHost + || hybridNotifyRemoteDirCopy!=hybridNotifyRemoteDir + || hybridNotifyDirCopy!=hybridNotifyDir + || hybridNotifyLoginCopy!=hybridNotifyLogin + || hybridNotifyPasswordCopy!=hybridNotifyPassword) + changed=true; + + + + +} + +void hybridNotifyConfig::setParams() +{ + setValue(enableHybridNotify,ui->enableHybridNotifyCheckBox); + setValue(enableHybridNotifySnoop,ui->enableHybridNotifySnoopCheckBox); + setValue(hybridNotifyPort,ui->hybridNotifyPortSpinBox); + setValue(hybridNotifyRemoteHost,ui->hybridNotifyRemoteHostLineEdit); + setValue(hybridNotifyRemoteDir,ui->hybridNotifyRemoteDirLineEdit); + setValue(hybridNotifyLogin,ui->hybridNotifyLoginLineEdit); + setValue(hybridNotifyPassword,ui->hybridNotifyPasswordLineEdit); + setValue(hybridNotifyDir,ui->hybridNotifyDirLineEdit); +} + + +void hybridNotifyConfig::slotTestNotifyPushButton() +{ + QString msg; + ftpInterface fInt("TestNotifyConnection"); + ui->testNotifyPushButton->setDisabled(true); + getParams(); + fInt.setupConnection(hybridNotifyRemoteHost,hybridNotifyPort, + hybridNotifyLogin,hybridNotifyPassword,hybridNotifyRemoteDir+"/"+hybridNotifyDir); + msg=fInt.execFTPTest(); + ui->testNotifyPushButton->setDisabled(false); + + QMessageBox::information(this,"Test Connection",msg); +} diff --git a/qsstv/config/hybridnotifyconfig.h b/qsstv/config/hybridnotifyconfig.h new file mode 100644 index 0000000..41f42d9 --- /dev/null +++ b/qsstv/config/hybridnotifyconfig.h @@ -0,0 +1,38 @@ +#ifndef HYBRIDNOTIFYCONFIG_H +#define HYBRIDNOTIFYCONFIG_H + +#include "baseconfig.h" + +extern bool enableHybridNotify; +extern bool enableHybridNotifySnoop; +extern int hybridNotifyPort; +extern QString hybridNotifyRemoteHost; +extern QString hybridNotifyRemoteDir; +extern QString hybridNotifyLogin; +extern QString hybridNotifyPassword; +extern QString hybridNotifyDir; + + +namespace Ui { +class hybridNotifyConfig; +} + +class hybridNotifyConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit hybridNotifyConfig(QWidget *parent = 0); + ~hybridNotifyConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); +private slots: + void slotTestNotifyPushButton(); + +private: + Ui::hybridNotifyConfig *ui; +}; + +#endif // HYBRIDNOTIFYCONFIG_H diff --git a/qsstv/config/hybridnotifyconfig.ui b/qsstv/config/hybridnotifyconfig.ui new file mode 100644 index 0000000..9cfdd7c --- /dev/null +++ b/qsstv/config/hybridnotifyconfig.ui @@ -0,0 +1,469 @@ + + + hybridNotifyConfig + + + + 0 + 0 + 806 + 388 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Send RX Notifications in Hybrid Mode + + + true + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Check who else got it + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 28 + 24 + + + + + + + + FTP Port + + + false + + + + + + + true + + + 1 + + + 10000 + + + 21 + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Host + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Login + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Password + + + false + + + + + + + QLineEdit::Password + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Directory + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 145 + 25 + + + + Notifications Directory + + + false + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 20 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Test connection + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 38 + + + + + + + + + diff --git a/qsstv/config/operatorconfig.cpp b/qsstv/config/operatorconfig.cpp new file mode 100644 index 0000000..c95d131 --- /dev/null +++ b/qsstv/config/operatorconfig.cpp @@ -0,0 +1,91 @@ +#include "operatorconfig.h" +#include "ui_operatorconfig.h" + +QString myCallsign; +QString myQth; +QString myLocator; +QString myLastname; +QString myFirstname; +QString lastReceivedCall; +bool onlineStatusEnabled; +QString onlineStatusText; + +operatorConfig::operatorConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::operatorConfig) +{ + ui->setupUi(this); +} + +operatorConfig::~operatorConfig() +{ + delete ui; +} + +void operatorConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("PERSONAL"); + myCallsign=qSettings.value("callsign",QString("NOCALL")).toString(); + myQth=qSettings.value("qth",QString("NOWHERE")).toString(); + myLastname=qSettings.value("lastname",QString("NONAME")).toString(); + myFirstname=qSettings.value("firstname",QString("NOFIRSTNAME")).toString(); + myLocator=qSettings.value("locator",QString("NOLOCATOR")).toString(); + onlineStatusEnabled=qSettings.value("onlinestatusenabled",true).toBool(); + onlineStatusText=qSettings.value("onlinestatustext",QString("")).toString(); + qSettings.endGroup(); + setParams(); +} + +void operatorConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("PERSONAL"); + qSettings.setValue("callsign",myCallsign); + qSettings.setValue("qth",myQth); + qSettings.setValue("locator",myLocator); + qSettings.setValue("lastname",myLastname); + qSettings.setValue("firstname",myFirstname); + qSettings.setValue("onlinestatusenabled",onlineStatusEnabled); + qSettings.setValue("onlinestatustext",onlineStatusText); + qSettings.endGroup(); +} + +void operatorConfig::getParams() +{ + QString myCallsignCopy=myCallsign; + QString myQthCopy=myQth; + QString myLocatorCopy= myLocator; + QString myLastnameCopy=myLastname; + QString myFirstnameCopy=myFirstname; + QString onlineStatusTextCopy=onlineStatusText; + bool onlineStatusEnabledCopy=onlineStatusEnabled; + + getValue(myCallsign,ui->callsignLineEdit); + getValue(myLastname,ui->lastnameLineEdit); + getValue(myFirstname,ui->firstnameLineEdit); + getValue(myQth,ui->qthLineEdit); + getValue(myLocator,ui->locatorLineEdit); + getValue(onlineStatusText,ui->onlineStatusText); + getValue(onlineStatusEnabled,ui->onlineStatusCheckbox); + + changed=false; + if( myCallsignCopy!=myCallsign + || myQthCopy!=myQth + || myLocatorCopy!= myLocator + || myLastnameCopy!=myLastname + || myFirstnameCopy!=myFirstname + || onlineStatusEnabledCopy!=onlineStatusEnabled + || onlineStatusTextCopy!=onlineStatusText) + changed=true; +} + +void operatorConfig::setParams() +{ + setValue(myCallsign,ui->callsignLineEdit); + setValue(myLastname,ui->lastnameLineEdit); + setValue(myFirstname,ui->firstnameLineEdit); + setValue(myQth,ui->qthLineEdit); + setValue(myLocator,ui->locatorLineEdit); + setValue(onlineStatusEnabled,ui->onlineStatusCheckbox); + setValue(onlineStatusText,ui->onlineStatusText); +} diff --git a/qsstv/config/operatorconfig.h b/qsstv/config/operatorconfig.h new file mode 100644 index 0000000..9cfee85 --- /dev/null +++ b/qsstv/config/operatorconfig.h @@ -0,0 +1,36 @@ +#ifndef OPERATORCONFIG_H +#define OPERATORCONFIG_H +#include "baseconfig.h" + +extern QString myCallsign; +extern QString myQth; +extern QString myLocator; +extern QString myLastname; +extern QString myFirstname; +extern QString lastReceivedCall; + +extern bool onlineStatusEnabled; +extern QString onlineStatusText; + + +namespace Ui { +class operatorConfig; +} + +class operatorConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit operatorConfig(QWidget *parent = 0); + ~operatorConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +private: + Ui::operatorConfig *ui; +}; + +#endif // OPERATORCONFIG_H diff --git a/qsstv/config/operatorconfig.ui b/qsstv/config/operatorconfig.ui new file mode 100644 index 0000000..b4ad8df --- /dev/null +++ b/qsstv/config/operatorconfig.ui @@ -0,0 +1,325 @@ + + + operatorConfig + + + + 0 + 0 + 680 + 272 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + 0 + 0 + + + + + 130 + 25 + + + + Firstname + + + false + + + + + + + Qt::AlignRight + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 120 + 20 + + + + + + + + + + + + + 0 + 0 + + + + + 130 + 25 + + + + Lastname + + + false + + + + + + + Qt::AlignRight + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 120 + 20 + + + + + + + + + + + + + 0 + 0 + + + + + 130 + 25 + + + + Callsign + + + false + + + + + + + Qt::AlignRight + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 120 + 20 + + + + + + + + + + + + + 0 + 0 + + + + + 130 + 25 + + + + QTH + + + false + + + + + + + Qt::AlignRight + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 120 + 20 + + + + + + + + + + + + + 0 + 0 + + + + + 130 + 25 + + + + Locator + + + false + + + + + + + Qt::AlignRight + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 120 + 20 + + + + + + + + + + Allow other users to see your online status via the notification server + + + + + + + + + Online Status Text + + + + + + + 120 + + + antenna, radio, operating freq or other info + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 21 + 30 + + + + + + + + + diff --git a/qsstv/config/repeaterconfig.cpp b/qsstv/config/repeaterconfig.cpp new file mode 100644 index 0000000..7f3e623 --- /dev/null +++ b/qsstv/config/repeaterconfig.cpp @@ -0,0 +1,110 @@ +#include "repeaterconfig.h" +#include "ui_repeaterconfig.h" + + +bool repeaterEnable; +int repeaterImageInterval; +esstvMode repeaterTxMode; +QString repeaterImage1; +QString repeaterImage2; +QString repeaterImage3; +QString repeaterImage4; +QString repeaterAcknowledge; +QString repeaterTemplate; +QString idleTemplate; + +repeaterConfig::repeaterConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::repeaterConfig) +{ + ui->setupUi(this); +} + +repeaterConfig::~repeaterConfig() +{ + delete ui; +} + +void repeaterConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("REPEATER"); + repeaterImageInterval=qSettings.value("repeaterImageInterval",10).toInt(); + repeaterEnable=qSettings.value("repeaterEnable",false).toBool(); + repeaterTxMode=(esstvMode)qSettings.value("repeaterTxMode",0).toInt(); + repeaterImage1=qSettings.value("repeaterImage1","").toString(); + repeaterImage2=qSettings.value("repeaterImage2","").toString(); + repeaterImage3=qSettings.value("repeaterImage3","").toString(); + repeaterImage4=qSettings.value("repeaterImage4","").toString(); + repeaterAcknowledge=qSettings.value("repeaterAcknowledge","").toString(); + repeaterTemplate=qSettings.value("repeaterTemplate","").toString(); + idleTemplate=qSettings.value("idleTemplate","").toString(); + qSettings.endGroup(); + setParams(); +} + +void repeaterConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("REPEATER"); + qSettings.setValue("repeaterImageInterval",repeaterImageInterval); + qSettings.setValue("repeaterEnable",repeaterEnable); + qSettings.setValue("repeaterTxMode",repeaterTxMode); + qSettings.setValue("repeaterImage1",repeaterImage1); + qSettings.setValue("repeaterImage2",repeaterImage2); + qSettings.setValue("repeaterImage3",repeaterImage3); + qSettings.setValue("repeaterImage4",repeaterImage4); + qSettings.setValue("repeaterAcknowledge",repeaterAcknowledge); + qSettings.setValue("repeaterTemplate",repeaterTemplate); + qSettings.setValue("idleTemplate",idleTemplate); + qSettings.endGroup(); +} + +void repeaterConfig::getParams() +{ + int temp; + bool repeaterEnableCopy=repeaterEnable; + int repeaterImageIntervalCopy=repeaterImageInterval; + esstvMode repeaterTxModeCopy=repeaterTxMode; + QString repeaterImage1Copy=repeaterImage1; + QString repeaterImage2Copy=repeaterImage2; + QString repeaterImage3Copy=repeaterImage3; + QString repeaterImage4Copy=repeaterImage4; + QString repeaterAcknowledgeCopy=repeaterAcknowledge; + QString repeaterTemplateCopy=repeaterTemplate; + QString idleTemplateCopy=idleTemplate; + getValue(repeaterImageInterval,ui->imageIntervalSpinBox); + getValue(repeaterEnable,ui->repeaterEnableCheckBox); + getIndex(temp,ui->repeaterTxModeComboBox); + repeaterTxMode=(esstvMode)temp; + getValue(repeaterImage1,ui->repeaterImage1LineEdit); + getValue(repeaterImage2,ui->repeaterImage2LineEdit); + getValue(repeaterImage3,ui->repeaterImage3LineEdit); + getValue(repeaterImage4,ui->repeaterImage4LineEdit); + getValue(idleTemplate,ui->idleTemplateLineEdit); + getValue(repeaterTemplate,ui->repeaterTemplateLineEdit); + changed=false; + if( repeaterEnableCopy!=repeaterEnable + || repeaterImageIntervalCopy!=repeaterImageInterval + || repeaterTxModeCopy!=repeaterTxMode + || repeaterImage1Copy!=repeaterImage1 + || repeaterImage2Copy!=repeaterImage2 + || repeaterImage3Copy!=repeaterImage3 + || repeaterImage4Copy!=repeaterImage4 + || repeaterAcknowledgeCopy!=repeaterAcknowledge + || repeaterTemplateCopy!=repeaterTemplate + || idleTemplateCopy!=idleTemplate) + changed=true; +} + +void repeaterConfig::setParams() +{; + setValue(repeaterImageInterval,ui->imageIntervalSpinBox); + setValue(repeaterEnable,ui->repeaterEnableCheckBox); + setIndex(repeaterTxMode,ui->repeaterTxModeComboBox); + setValue(repeaterImage1,ui->repeaterImage1LineEdit); + setValue(repeaterImage2,ui->repeaterImage2LineEdit); + setValue(repeaterImage3,ui->repeaterImage3LineEdit); + setValue(repeaterImage4,ui->repeaterImage4LineEdit); + setValue(idleTemplate,ui->idleTemplateLineEdit); + setValue(repeaterTemplate,ui->repeaterTemplateLineEdit); +} diff --git a/qsstv/config/repeaterconfig.h b/qsstv/config/repeaterconfig.h new file mode 100644 index 0000000..ec47ca6 --- /dev/null +++ b/qsstv/config/repeaterconfig.h @@ -0,0 +1,39 @@ +#ifndef REPEATERCONFIG_H +#define REPEATERCONFIG_H + +#include "baseconfig.h" +#include "sstv/sstvparam.h" + + +extern bool repeaterEnable; +extern int repeaterImageInterval; +extern esstvMode repeaterTxMode; +extern QString repeaterImage1; +extern QString repeaterImage2; +extern QString repeaterImage3; +extern QString repeaterImage4; +extern QString repeaterAcknowledge; +extern QString repeaterTemplate; +extern QString idleTemplate; + +namespace Ui { +class repeaterConfig; +} + +class repeaterConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit repeaterConfig(QWidget *parent = 0); + ~repeaterConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +private: + Ui::repeaterConfig *ui; +}; + +#endif // REPEATERCONFIG_H diff --git a/qsstv/config/repeaterconfig.ui b/qsstv/config/repeaterconfig.ui new file mode 100644 index 0000000..bfc3847 --- /dev/null +++ b/qsstv/config/repeaterconfig.ui @@ -0,0 +1,401 @@ + + + repeaterConfig + + + + 0 + 0 + 624 + 474 + + + + Form + + + + + + + + Enable Repeater + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Image Interval (min) + + + false + + + + + + + 5 + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 60 + 20 + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Repeater TX mode + + + false + + + + + + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Idle Image 1 + + + false + + + + + + + false + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Idle Image 2 + + + false + + + + + + + false + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Idle Image 3 + + + false + + + + + + + false + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + 6 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Idle Image 4 + + + false + + + + + + + false + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + + + Idle Template + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + + + Repeater Template + + + false + + + + + + + + + + + 0 + 0 + + + + Browse ... + + + + + + + + + Qt::Vertical + + + + 20 + 202 + + + + + + + + + diff --git a/qsstv/config/rigconfig.cpp b/qsstv/config/rigconfig.cpp new file mode 100644 index 0000000..867cc35 --- /dev/null +++ b/qsstv/config/rigconfig.cpp @@ -0,0 +1,299 @@ +#include "rigconfig.h" +#include "ui_rigconfig.h" +#include "appglobal.h" +#include "configparams.h" +#include "utils/supportfunctions.h" +#include "rigcontrol.h" +#include +#include + + +rigConfig::rigConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::rigConfig) +{ + ui->setupUi(this); + connect(ui->enableCATCheckBox,SIGNAL(clicked()),SLOT(slotEnableCAT())); + connect(ui->enablePTTCheckBox,SIGNAL(clicked()),SLOT(slotEnablePTT())); + connect(ui->enableXMLRPCCheckBox,SIGNAL(clicked()),SLOT(slotEnableXMLRPC())); + connect(ui->restartPushButton,SIGNAL(clicked()),SLOT(slotRestart())); + connect(ui->RTSCheckBox,SIGNAL(clicked()),SLOT(slotCheckPTT0())); + connect(ui->DTRCheckBox,SIGNAL(clicked()),SLOT(slotCheckPTT1())); + connect(ui->nRTSCheckBox,SIGNAL(clicked()),SLOT(slotCheckPTT2())); + connect(ui->nDTRCheckBox,SIGNAL(clicked()),SLOT(slotCheckPTT3())); + rigController=NULL; + cp=NULL; +} + + +rigConfig::~rigConfig() +{ + delete ui; +} + +void rigConfig::attachRigController(rigControl *rigCtrl) +{ + rigController=rigCtrl; +} + +void rigConfig::readSettings() +{ + cp=rigController->params(); + QSettings qSettings; + qSettings.beginGroup(cp->configLabel); + cp->serialPort=qSettings.value("serialPort","/dev/ttyS0").toString(); + cp->radioModel=qSettings.value("radioModel","dummy").toString(); + cp->civAddress=qSettings.value("civAddress","").toString(); + cp->baudrate=qSettings.value("baudrate",9600).toInt(); + cp->parity=qSettings.value("parity","None").toString(); + cp->stopbits=qSettings.value("stopbits",1).toInt(); + cp->databits=qSettings.value("databits",8).toInt(); + cp->handshake=qSettings.value("handshake","None").toString(); + cp->enableCAT=qSettings.value("enableCAT",0).toBool(); + cp->enableSerialPTT=qSettings.value("enableSerialPTT",0).toBool(); + cp->pttSerialPort=qSettings.value("pttSerialPort","/dev/ttyS0").toString(); + cp->activeRTS=qSettings.value("activeRTS",1).toBool(); + cp->activeDTR=qSettings.value("activeDTR",0).toBool(); + cp->nactiveRTS=qSettings.value("nactiveRTS",1).toBool(); + cp->nactiveDTR=qSettings.value("nactiveDTR",0).toBool(); + cp->enableXMLRPC=qSettings.value("enableXMLRPC",0).toBool(); + cp->XMLRPCPort=qSettings.value("XMLRPCPort","7362").toInt(); + cp->txOnDelay=qSettings.value("txOnDelay",0.0).toDouble(); + cp->pttType=(ptt_type_t)qSettings.value("pttType",(int)RIG_PTT_RIG).toInt(); + qSettings.endGroup(); + setParams(); +} + +void rigConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup(cp->configLabel); + qSettings.setValue("serialPort",cp->serialPort); + qSettings.setValue("radioModel",cp->radioModel); + qSettings.setValue("civAddress",cp->civAddress); + qSettings.setValue("baudrate",cp->baudrate); + qSettings.setValue("parity",cp->parity); + qSettings.setValue("stopbits",cp->stopbits); + qSettings.setValue("databits",cp->databits); + qSettings.setValue("handshake",cp->handshake); + qSettings.setValue("enableCAT",cp->enableCAT); + qSettings.setValue("enableSerialPTT",cp->enableSerialPTT); + qSettings.setValue("pttSerialPort",cp->pttSerialPort); + qSettings.setValue("activeRTS",cp->activeRTS); + qSettings.setValue("activeDTR",cp->activeDTR); + qSettings.setValue("nactiveRTS",cp->nactiveRTS); + qSettings.setValue("nactiveDTR",cp->nactiveDTR); + qSettings.setValue("pttType",(int) cp->pttType); + qSettings.setValue("enableXMLRPC",cp->enableXMLRPC); + qSettings.setValue("XMLRPCPort",cp->XMLRPCPort); + qSettings.setValue("txOnDelay",cp->txOnDelay); + qSettings.endGroup(); +} + +void rigConfig::getParams() +{ + scatParams *cpCopy=new scatParams; + *cpCopy=*cp; + getValue(cp->serialPort,ui->serialPortLineEdit); + if(ui->radioModelComboBox->count()!=0) getValue(cp->radioModel,ui->radioModelComboBox); + getValue(cp->civAddress,ui->civAddressLineEdit); + getValue(cp->baudrate,ui->baudrateComboBox); + getValue(cp->parity,ui->parityComboBox); + getValue(cp->stopbits,ui->stopbitsComboBox); + getValue(cp->databits,ui->databitsComboBox); + getValue(cp->handshake,ui->handshakeComboBox); + getValue(cp->enableCAT,ui->enableCATCheckBox); + getValue(cp->enableSerialPTT,ui->enablePTTCheckBox); + getValue(cp->pttSerialPort,ui->pttSerialPortLineEdit); + getValue(cp->activeRTS,ui->RTSCheckBox); + getValue(cp->activeDTR,ui->DTRCheckBox); + getValue(cp->nactiveRTS,ui->nRTSCheckBox); + getValue(cp->nactiveDTR,ui->nDTRCheckBox); + if(ui->catVoiceRadioButton->isChecked()) cp->pttType=RIG_PTT_RIG; + if(ui->catDataRadioButton->isChecked()) cp->pttType=RIG_PTT_RIG_MICDATA; + if(ui->rtsRadioButton->isChecked()) cp->pttType=RIG_PTT_SERIAL_RTS; + if(ui->dtrRadioButton->isChecked()) cp->pttType=RIG_PTT_SERIAL_DTR; + getValue(cp->txOnDelay,ui->txOnDelayDoubleSpinBox); + getValue(cp->enableXMLRPC,ui->enableXMLRPCCheckBox); + getValue(cp->XMLRPCPort,ui->XMLRPCPortLineEdit); + changed=false; + if( cpCopy->serialPort!=cp->serialPort + || cpCopy->radioModel!=cp->radioModel + || cpCopy->civAddress!=cp->civAddress + || cpCopy->baudrate!=cp->baudrate + || cpCopy->stopbits!=cp->stopbits + || cpCopy->databits!=cp->databits + || cpCopy->handshake!=cp->handshake + || cpCopy->enableCAT!=cp->enableCAT + || cpCopy->enableSerialPTT!=cp->enableSerialPTT + || cpCopy->pttSerialPort!=cp->pttSerialPort + || cpCopy->activeRTS!=cp->activeRTS + || cpCopy->activeDTR!=cp->activeDTR + || cpCopy->nactiveRTS!=cp->nactiveRTS + || cpCopy->nactiveDTR!=cp->nactiveDTR + || cpCopy->pttType!=cp->pttType + || cpCopy->enableXMLRPC!=cp->enableXMLRPC + || cpCopy->XMLRPCPort!=cp->XMLRPCPort + ) + changed=true; + delete cpCopy; +} + + +void rigConfig::setParams() +{ + if(rigController->getRadioList(ui->radioModelComboBox)) setValue(cp->radioModel,ui->radioModelComboBox); + setValue(cp->serialPort,ui->serialPortLineEdit); + setValue(cp->civAddress,ui->civAddressLineEdit); + setValue(cp->baudrate,ui->baudrateComboBox); + setValue(cp->parity,ui->parityComboBox); + setValue(cp->stopbits,ui->stopbitsComboBox); + setValue(cp->databits,ui->databitsComboBox); + setValue(cp->handshake,ui->handshakeComboBox); + setValue(cp->enableCAT,ui->enableCATCheckBox); + setValue(cp->enableSerialPTT,ui->enablePTTCheckBox); + setValue(cp->pttSerialPort,ui->pttSerialPortLineEdit); + if(cp->activeRTS) cp->nactiveRTS=false; + if(cp->activeDTR) cp->nactiveDTR=false; + + setValue(cp->activeRTS,ui->RTSCheckBox); + setValue(cp->activeDTR,ui->DTRCheckBox); + setValue(cp->nactiveRTS,ui->nRTSCheckBox); + setValue(cp->nactiveDTR,ui->nDTRCheckBox); + switch(cp->pttType) + { + case RIG_PTT_RIG: + setValue(true,ui->catVoiceRadioButton); + break; + case RIG_PTT_RIG_MICDATA: + setValue(true,ui->catDataRadioButton); + break; + case RIG_PTT_SERIAL_RTS: + setValue(true,ui->rtsRadioButton); + break; + case RIG_PTT_SERIAL_DTR: + setValue(true,ui->dtrRadioButton); + break; + default: + setValue(true,ui->catVoiceRadioButton); + break; + } + if(cp->enableCAT && cp->enableSerialPTT) + { + if(cp->serialPort==cp->pttSerialPort) + { + cp->enableSerialPTT=false; + } + } + setValue(cp->enableSerialPTT,ui->enablePTTCheckBox); + setValue(cp->txOnDelay,ui->txOnDelayDoubleSpinBox); + setValue(cp->enableXMLRPC,ui->enableXMLRPCCheckBox); + setValue(cp->XMLRPCPort,ui->XMLRPCPortLineEdit); +} + + + +void rigConfig::slotEnableCAT() +{ + if(ui->enableCATCheckBox->isChecked() && ui->enablePTTCheckBox->isChecked()) + { + if(ui->pttSerialPortLineEdit->text()==ui->serialPortLineEdit->text()) + { + QMessageBox::critical(this,"Configuration error", + "The PTT serialport must be different from the CAT serial port if both are enabled"); + ui->enablePTTCheckBox->setChecked(false); + } + + } + if(ui->enableCATCheckBox->isChecked()) + { + ui->enableXMLRPCCheckBox->setChecked(false); + rigController->init(); + } + else + { + rigController->disable(); + } + getParams(); +} + + + +void rigConfig::slotEnablePTT() +{ + if(ui->enableCATCheckBox->isChecked() && ui->enablePTTCheckBox->isChecked()) + { + if(ui->pttSerialPortLineEdit->text()==ui->serialPortLineEdit->text()) + { + QMessageBox::critical(this,"Configuration error", + "The PTT serialport must be different from the CAT serial port if both are enabled"); + ui->enablePTTCheckBox->setChecked(false); + return; + } + + } + if(ui->enablePTTCheckBox->isChecked()) + { + ui->enableXMLRPCCheckBox->setChecked(false); + } + getParams(); +} + +void rigConfig::slotEnableXMLRPC() +{ + ui->enableCATCheckBox->setChecked(false); + ui->enablePTTCheckBox->setChecked(false); +} + +void rigConfig::slotRestart() +{ + getParams(); + if(ui->enableCATCheckBox->isChecked()) + { + if(rigController->init()) + { + ui->restartPushButton->setStyleSheet("background-color: green"); + } + else + { + ui->restartPushButton->setStyleSheet("background-color: red"); + } + } +} + + +void rigConfig::slotCheckPTT0() +{ + checkPTT(0,ui->RTSCheckBox->isChecked()); +} +void rigConfig::slotCheckPTT1() +{checkPTT(1,ui->DTRCheckBox->isChecked()); +} +void rigConfig::slotCheckPTT2() +{ + checkPTT(2,ui->nRTSCheckBox->isChecked()); +} +void rigConfig::slotCheckPTT3() +{ + checkPTT(3,ui->nDTRCheckBox->isChecked()); +} + +void rigConfig::checkPTT(int p,bool b) +{ + if(!b) return; + switch (p) + { + case 0: + setValue(false,ui->nRTSCheckBox); + break; + case 1: + setValue(false,ui->nDTRCheckBox); + break; + case 2: + setValue(false,ui->RTSCheckBox); + break; + case 3: + setValue(false,ui->DTRCheckBox); + break; + } +} + diff --git a/qsstv/config/rigconfig.h b/qsstv/config/rigconfig.h new file mode 100644 index 0000000..4f40789 --- /dev/null +++ b/qsstv/config/rigconfig.h @@ -0,0 +1,45 @@ +#ifndef RIGCONFIG_H +#define RIGCONFIG_H + +#include "baseconfig.h" + +class rigControl; +struct scatParams; + + +namespace Ui { +class rigConfig; +} + +class rigConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit rigConfig(QWidget *parent = 0); + ~rigConfig(); + void attachRigController(rigControl *rigCtrl); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +public slots: + void slotEnableCAT(); + void slotEnablePTT(); + void slotEnableXMLRPC(); + void slotRestart(); + void slotCheckPTT0(); + void slotCheckPTT1(); + void slotCheckPTT2(); + void slotCheckPTT3(); + +private: + + Ui::rigConfig *ui; + scatParams *cp; + rigControl *rigController; + void checkPTT(int p,bool b); +}; + +#endif // RIGCONFIG_H diff --git a/qsstv/config/rigconfig.ui b/qsstv/config/rigconfig.ui new file mode 100644 index 0000000..07295d4 --- /dev/null +++ b/qsstv/config/rigconfig.ui @@ -0,0 +1,849 @@ + + + rigConfig + + + + 0 + 0 + 633 + 426 + + + + + 9 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + true + + + Special Serial Port + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Enable PTT serial Interface + + + + + + + Qt::Horizontal + + + + 19 + 20 + + + + + + + + + 60 + 0 + + + + PTT Serial Port + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 0 + 0 + + + + + + + + Qt::Horizontal + + + + 20 + 20 + + + + + + + + +RTS + + + + + + + +DTR + + + + + + + -RTS + + + + + + + -DTR + + + + + + + Qt::Horizontal + + + + 19 + 20 + + + + + + + + + + + true + + + Hamlib Control + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Enable Hamlib Cat Interface + + + + + + + + + 1 + + + + + + 60 + 0 + + + + Radio Model + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + Ubuntu Mono + 75 + false + true + false + + + + + + + + + 60 + 0 + + + + CIV Address + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 50 + 16777215 + + + + + + + + + 108 + 0 + + + + Serial Port/Host + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 0 + 0 + + + + + + + + + + 1 + + + + + + 60 + 0 + + + + Parity + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 70 + 16777215 + + + + + None + + + + + Odd + + + + + Even + + + + + + + + + 60 + 0 + + + + Databits + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 7 + + + + + 8 + + + + + + + + + 60 + 0 + + + + Baudrate + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 70 + 16777215 + + + + 5 + + + + 300 + + + + + 600 + + + + + 1200 + + + + + 2400 + + + + + 4800 + + + + + 9600 + + + + + 19200 + + + + + 38400 + + + + + 57600 + + + + + 115200 + + + + + 230400 + + + + + 460800 + + + + + + + + + 60 + 0 + + + + StopBits + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 1 + + + + + 2 + + + + + + + + + 60 + 0 + + + + Handshake + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 0 + 0 + + + + + None + + + + + Hardware + + + + + XOn/XOff + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + PTT Control via: + + + + + + + true + + + + + + CAT (Voice port) + + + true + + + + + + + true + + + + + + + + + CAT (Data port) + + + + + + + RTS + + + + + + + DTR + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Restart CAT Interface + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + true + + + XMLRPC Interface + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Enable XMLRPC Interface + + + + + + + Qt::Horizontal + + + + 138 + 20 + + + + + + + + + 60 + 0 + + + + Port + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + + 0 + 0 + + + + + + + + Qt::Horizontal + + + + 138 + 20 + + + + + + + + + + + + + + 60 + 0 + + + + TX on Delay + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + 1 + + + 5.000000000000000 + + + 0.100000000000000 + + + + + + + + 60 + 0 + + + + in seconds + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + + 20 + 17 + + + + + + + + + diff --git a/qsstv/config/soundconfig.cpp b/qsstv/config/soundconfig.cpp new file mode 100644 index 0000000..65f4de3 --- /dev/null +++ b/qsstv/config/soundconfig.cpp @@ -0,0 +1,158 @@ +/************************************************************************** +* Copyright (C) 2000-2012 by Johan Maes * +* on4qz@telenet.be * +* http://users.telenet.be/on4qz * +* * +* 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., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ +#include "soundconfig.h" +#include "ui_soundconfig.h" +#include "configparams.h" +#include "supportfunctions.h" +#include "soundalsa.h" + +#include + +#include + +int samplingrate; +double rxClock; +double txClock; +bool pulseSelected; +bool alsaSelected; +bool swapChannel; +bool pttToneOtherChannel; +QString inputAudioDevice; +QString outputAudioDevice; +soundBase::edataSrc soundRoutingInput; +soundBase::edataDst soundRoutingOutput; + +quint32 recordingSize; + + + +soundConfig::soundConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::soundConfig) +{ + QStringList inputPCMList, outputPCMList; + ui->setupUi(this); + getCardList(inputPCMList, outputPCMList); + ui->inputPCMNameComboBox->addItems(inputPCMList); + ui->outputPCMNameComboBox->addItems(outputPCMList); +} + + +soundConfig::~soundConfig() +{ + delete ui; +} + +void soundConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("SOUND"); + rxClock=qSettings.value("rxclock",BASESAMPLERATE).toDouble(); + txClock=qSettings.value("txclock",BASESAMPLERATE).toDouble(); + if(fabs(1-rxClock/BASESAMPLERATE)>0.002) rxClock=BASESAMPLERATE; + if(fabs(1-txClock/BASESAMPLERATE)>0.002) txClock=BASESAMPLERATE; + samplingrate=BASESAMPLERATE; + inputAudioDevice=qSettings.value("inputAudioDevice","default").toString(); + outputAudioDevice=qSettings.value("outputAudioDevice","default").toString(); + alsaSelected=qSettings.value("alsaSelected",false).toBool(); + pulseSelected=qSettings.value("pulseSelected",false).toBool(); + swapChannel=qSettings.value("swapChannel",false).toBool(); + pttToneOtherChannel=qSettings.value("pttToneOtherChannel",false).toBool(); + soundRoutingInput= (soundBase::edataSrc)qSettings.value("soundRoutingInput", 0 ).toInt(); + soundRoutingOutput= (soundBase::edataDst)qSettings.value("soundRoutingOutput", 0 ).toInt(); + recordingSize= qSettings.value("recordingSize", 100 ).toInt(); + qSettings.endGroup(); + setParams(); +} + +void soundConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("SOUND"); + qSettings.setValue("rxclock",rxClock); + qSettings.setValue("txclock",txClock); + qSettings.setValue("inputAudioDevice",inputAudioDevice); + qSettings.setValue("outputAudioDevice",outputAudioDevice); + qSettings.setValue("alsaSelected",alsaSelected); + qSettings.setValue("pulseSelected",pulseSelected); + qSettings.setValue("swapChannel",swapChannel); + qSettings.setValue("pttToneOtherChannel",pttToneOtherChannel); + qSettings.setValue ("soundRoutingInput", soundRoutingInput ); + qSettings.setValue ("soundRoutingOutput",soundRoutingOutput ); + qSettings.setValue ("recordingSize",recordingSize ); + qSettings.endGroup(); +} + + +void soundConfig::setParams() +{ + setValue(rxClock,ui->inputClockLineEdit,9); + setValue(txClock,ui->outputClockLineEdit,9); + setValue(inputAudioDevice,ui->inputPCMNameComboBox); + setValue(outputAudioDevice,ui->outputPCMNameComboBox); + setValue(alsaSelected,ui->alsaRadioButton); + setValue(pulseSelected,ui->pulseRadioButton); + setValue(swapChannel,ui->swapChannelCheckBox); + setValue(pttToneOtherChannel,ui->pttToneCheckBox); + if(soundRoutingInput==soundBase::SNDINCARD) ui->inFromCard->setChecked(true); + else if (soundRoutingInput==soundBase::SNDINFROMFILE) ui->inFromFile->setChecked(true); + else ui->inRecordFromCard->setChecked(true); + + if(soundRoutingOutput==soundBase::SNDOUTCARD) ui->outToCard->setChecked(true); + else ui->outRecord->setChecked(true); + setValue(recordingSize,ui->mbSpinBox); +} + +void soundConfig::getParams() +{ + QString inputAudioDeviceCopy=inputAudioDevice; + QString outputAudioDeviceCopy=outputAudioDevice; + bool alsaSelectedCopy=alsaSelected; + + + soundBase::edataSrc soundRoutingInputCopy=soundRoutingInput; + soundBase::edataDst soundRoutingOutputCopy=soundRoutingOutput; + + getValue(rxClock,ui->inputClockLineEdit); + getValue(txClock,ui->inputClockLineEdit); + getValue(inputAudioDevice,ui->inputPCMNameComboBox); + getValue(outputAudioDevice,ui->outputPCMNameComboBox); + getValue(alsaSelected,ui->alsaRadioButton); + getValue(pulseSelected,ui->pulseRadioButton); + getValue(swapChannel,ui->swapChannelCheckBox); + getValue(pttToneOtherChannel,ui->pttToneCheckBox); + + if (ui->inFromCard->isChecked()) soundRoutingInput=soundBase::SNDINCARD; + else if(ui->inFromFile->isChecked()) soundRoutingInput=soundBase::SNDINFROMFILE; + else soundRoutingInput=soundBase::SNDINCARDTOFILE; + + if (ui->outToCard->isChecked()) soundRoutingOutput=soundBase::SNDOUTCARD; + else soundRoutingOutput=soundBase::SNDOUTTOFILE; + getValue(recordingSize,ui->mbSpinBox); + changed=false; + if(inputAudioDeviceCopy!=inputAudioDevice + || outputAudioDeviceCopy!=outputAudioDevice + || soundRoutingInputCopy!=soundRoutingInput + || soundRoutingOutputCopy!=soundRoutingOutput + || alsaSelectedCopy!=alsaSelected) + { + changed=true; + } +} diff --git a/qsstv/config/soundconfig.h b/qsstv/config/soundconfig.h new file mode 100644 index 0000000..7112898 --- /dev/null +++ b/qsstv/config/soundconfig.h @@ -0,0 +1,44 @@ +#ifndef soundConfig_H +#define soundConfig_H + +#include "baseconfig.h" +#include "soundbase.h" + +extern int samplingrate; +extern double rxClock; +extern double txClock; +extern bool pulseSelected; +extern bool alsaSelected; +extern bool swapChannel; +extern bool pttToneOtherChannel; +extern QString inputAudioDevice; +extern QString outputAudioDevice; +extern soundBase::edataSrc soundRoutingInput; +extern soundBase::edataDst soundRoutingOutput; +extern quint32 recordingSize; + + +namespace Ui { + class soundConfig; + } + +class soundConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit soundConfig(QWidget *parent = 0); + ~soundConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + + + +private: + Ui::soundConfig *ui; + +}; + +#endif // soundConfig_H diff --git a/qsstv/config/soundconfig.ui b/qsstv/config/soundconfig.ui new file mode 100644 index 0000000..ec488af --- /dev/null +++ b/qsstv/config/soundconfig.ui @@ -0,0 +1,362 @@ + + + soundConfig + + + + 0 + 0 + 490 + 326 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Audio Interface + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + ALSA + + + + + + + 1 + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Input Audio Device + + + false + + + + + + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Output Audio Device + + + false + + + + + + + + + + + + + + PulseAudio + + + true + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + Input Clock Frequency + + + false + + + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + Output Clock Frequency + + + false + + + + + + + + + + + + + + Sound Input + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + From sound card + + + true + + + + + + + From file + + + + + + + From sound card and record + + + + + + + + + + Sound Output + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + To sound card + + + true + + + + + + + To sound card and record + + + + + + + + + + + + + + Swap left and right channel + + + + + + + PTT tone on other audio channel + + + + + + + + + + + 1 + + + 999 + + + 5 + + + 100 + + + + + + + Maximum recording size (in MB) + + + false + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 51 + 20 + + + + + + + + + + Qt::Vertical + + + + 20 + 25 + + + + + + + + + diff --git a/qsstv/config/waterfallconfig.cpp b/qsstv/config/waterfallconfig.cpp new file mode 100644 index 0000000..bbbad9b --- /dev/null +++ b/qsstv/config/waterfallconfig.cpp @@ -0,0 +1,112 @@ +#include "waterfallconfig.h" +#include "ui_waterfallconfig.h" +#include + + +QString startPicWF; +QString endPicWF; +QString fixWF; +QString bsrWF; +QString startBinWF; +QString endBinWF; +QString wfFont; +int wfFontSize; +bool wfBold; +QString sampleString; + +waterfallConfig::waterfallConfig(QWidget *parent) : baseConfig(parent), ui(new Ui::waterfallConfig) +{ + ui->setupUi(this); + connect(ui->fontComboBox,SIGNAL(currentIndexChanged(QString)),SLOT(slotFontChanged())); + connect(ui->sizeSpinBox,SIGNAL(valueChanged(int)),SLOT(slotFontChanged())); + connect(ui->boldCheckBox,SIGNAL(clicked(bool)),SLOT(slotFontChanged())); +} + +waterfallConfig::~waterfallConfig() +{ + delete ui; +} + + +void waterfallConfig::readSettings() +{ + QSettings qSettings; + qSettings.beginGroup("WATERFALL"); + startPicWF=qSettings.value("startPicWF","START PIC").toString(); + endPicWF=qSettings.value("endPicWF","END PIC").toString(); + fixWF=qSettings.value("fixWF","FIX").toString(); + bsrWF=qSettings.value("bsrWF","BSR").toString(); + startBinWF=qSettings.value("startBinWF","START BIN").toString(); + endBinWF=qSettings.value("endBinWF","END BIN").toString(); + wfFont=qSettings.value("wfFont","Arial").toString(); + wfFontSize=qSettings.value("wfFontSize",12).toInt(); + wfBold=qSettings.value("wfBold",false).toBool(); + sampleString=qSettings.value("sampleString","Sample Text").toString(); + qSettings.endGroup(); + setParams(); +} + +void waterfallConfig::writeSettings() +{ + QSettings qSettings; + getParams(); + qSettings.beginGroup("WATERFALL"); + qSettings.setValue("startPicWF",startPicWF); + qSettings.setValue("endPicWF",endPicWF); + qSettings.setValue("fixWF",fixWF); + qSettings.setValue("bsrWF",bsrWF); + qSettings.setValue("startBinWF",startBinWF); + qSettings.setValue("endBinWF",endBinWF); + qSettings.setValue("wfFont",wfFont); + qSettings.setValue("wfFontSize",wfFontSize); + qSettings.setValue("wfBold",wfBold); + qSettings.setValue("sampleString",sampleString); + + qSettings.endGroup(); +} + +void waterfallConfig::getParams() +{ + getValue(startPicWF,ui->startPicTextEdit); + getValue(endPicWF,ui->endPicTextEdit); + getValue(fixWF,ui->fixTextEdit); + getValue(bsrWF,ui->bsrTextEdit); + getValue(startBinWF,ui->startBinTextEdit); + getValue(endBinWF,ui->endBinTextEdit); + getValue(wfFont,ui->fontComboBox); + getValue(wfFontSize,ui->sizeSpinBox); + getValue(wfBold,ui->boldCheckBox); + getValue(sampleString,ui->sampleLineEdit); +} + +void waterfallConfig::setParams() +{ + setValue(startPicWF,ui->startPicTextEdit); + setValue(endPicWF,ui->endPicTextEdit); + setValue(fixWF,ui->fixTextEdit); + setValue(bsrWF,ui->bsrTextEdit); + setValue(startBinWF,ui->startBinTextEdit); + setValue(endBinWF,ui->endBinTextEdit); + ui->fontComboBox->blockSignals(true); + ui->sizeSpinBox->blockSignals(true); + setValue(sampleString,ui->sampleLineEdit); + setValue(wfFont,ui->fontComboBox); + setValue(wfFontSize,ui->sizeSpinBox); + ui->fontComboBox->blockSignals(false); + ui->sizeSpinBox->blockSignals(false); + setValue(wfBold,ui->boldCheckBox); + slotFontChanged(); + + +} + +void waterfallConfig::slotFontChanged() +{ + getParams(); + QFont f(wfFont); + f.setBold(wfBold); + f.setPixelSize(wfFontSize); + ui->sampleLineEdit->setFont(f); +} + + diff --git a/qsstv/config/waterfallconfig.h b/qsstv/config/waterfallconfig.h new file mode 100644 index 0000000..73a6693 --- /dev/null +++ b/qsstv/config/waterfallconfig.h @@ -0,0 +1,41 @@ +#ifndef WATERFALLCONFIG_H +#define WATERFALLCONFIG_H + +#include "baseconfig.h" + +extern QString startPicWF; +extern QString endPicWF; +extern QString fixWF; +extern QString bsrWF; +extern QString startBinWF; +extern QString endBinWF; +extern QString wfFont; +extern int wfFontSize; +extern bool wfBold; + + + +namespace Ui { +class waterfallConfig; +} + +class waterfallConfig : public baseConfig +{ + Q_OBJECT + +public: + explicit waterfallConfig(QWidget *parent = 0); + ~waterfallConfig(); + void readSettings(); + void writeSettings(); + void getParams(); + void setParams(); + +public slots: + void slotFontChanged(); + +private: + Ui::waterfallConfig *ui; +}; + +#endif // WATERFALLCONFIG_H diff --git a/qsstv/config/waterfallconfig.ui b/qsstv/config/waterfallconfig.ui new file mode 100644 index 0000000..664a2ca --- /dev/null +++ b/qsstv/config/waterfallconfig.ui @@ -0,0 +1,268 @@ + + + waterfallConfig + + + + 0 + 0 + 683 + 437 + + + + Form + + + + 1 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + 0 + 0 + + + + FIX + + + false + + + + + + + Start Binary + + + + + + + + 0 + 0 + + + + BSR + + + false + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + End Picture + + + false + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + 2 + + + 1 + + + + + + + + 0 + 0 + + + + Start Picture + + + false + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + + End Binary + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + + + + Qt::Vertical + + + + 20 + 3 + + + + + + + + + + Font + + + + + + + + + + Size + + + + + + + 8 + + + 12 + + + + + + + Qt::RightToLeft + + + Bold + + + + + + + Sample + + + + + + + + + + fontLabel + fontLabel + + + + diff --git a/qsstv/dispatch/dispatcher.cpp b/qsstv/dispatch/dispatcher.cpp new file mode 100644 index 0000000..238b1b8 --- /dev/null +++ b/qsstv/dispatch/dispatcher.cpp @@ -0,0 +1,662 @@ +/*************************************************************************** + * Copyright (C) 2000-2008 by Johan Maes * + * on4qz@telenet.be * + * http://users.telenet.be/on4qz * + * * + * 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +/*! + The dispatcher is the central system that routes all messages from the different threads. +It also starts, stops and synchronizes the threads. + +*/ +#include "dispatcher.h" +#include "appglobal.h" +#include "configparams.h" +#include "rxwidget.h" +#include "txwidget.h" +#include "gallerywidget.h" +#include "widgets/spectrumwidget.h" +#include "widgets/vumeter.h" +#include "rxfunctions.h" +#include "mainwindow.h" +#include "utils/ftp.h" +#include "rigcontrol.h" +#include "logbook/logbook.h" +#include "dirdialog.h" +#include +#include + + + +/*! +creates dispatcher instance + */ + +dispatcher::dispatcher() +{ + mbox=NULL; + progressFTP=NULL; + lastFileName.clear(); + prTimerIndex=0; +} + +/*! +delete dispatcher instance + */ + +dispatcher::~dispatcher() +{ +} + +void dispatcher::init() +{ + editorActive=false; + infoTextPtr=new textDisplay(mainWindowPtr); + mainWindowPtr->spectrumFramePtr->init(RXSTRIPE,1,BASESAMPLERATE/SUBSAMPLINGFACTOR); + infoTextPtr->hide(); + setOnlineStatus(true, onlineStatusText); + connect(notifyRXIntf, SIGNAL(notification(QString)), this, SLOT(slotRXNotification(QString))); + connect(notifyTXIntf, SIGNAL(notification(QString)), this, SLOT(slotTXNotification(QString))); + connect(hybridTxIntf, SIGNAL(commandsDone(bool)), this, SLOT(slotHybridTxDone(bool))); + +} + +void dispatcher::setOnlineStatus(bool online, QString info) +{ + txWidgetPtr->functionsPtr()->setOnlineStatus(online, info); + + // TODO: move to rxWidget->functions->? + if (!online && enableFTP) + { + ftpInterface rxftp("RX Image Cleanup"); + rxftp.setupConnection(ftpRemoteHost,ftpPort,ftpLogin,ftpPassword,ftpRemoteSSTVDirectory); + rxftp.uploadToRXServer(""); // mark SSTV offline + rxftp.changePath(ftpRemoteDRMDirectory); + rxftp.uploadToRXServer(""); // mark DSSTV/DRM offline + } +} + +void dispatcher::who() +{ + txWidgetPtr->functionsPtr()->who(); +} + + +/*! + All communication between the threads are passed via this eventhandler. +*/ + +void dispatcher::customEvent( QEvent * e ) +{ + dispatchEventType type; + ftpInterface * iPtr; + QString fn; + type=(dispatchEventType)e->type(); + addToLog(((baseEvent*)e)->description,LOGDISPATCH); + switch(type) + { + case displayFFT: + addToLog("dispatcher: displayFFT",LOGDISPATCH); + mainWindowPtr->spectrumFramePtr->realFFT(((displayFFTEvent*)e)->data()); + rxWidgetPtr->vMeterPtr()->setValue(soundIOPtr->getVolumeDb()); + // addToLog(QString::number(soundIOPtr->getVolumeDb()),LOGALL); + + break; + case displaySync: + // addToLog("dispatcher: displaySync",LOGDISPATCH); + uint s; + ((displaySyncEvent*)e)->getInfo(s); + rxWidgetPtr->sMeterPtr()->setValue((double)s); + break; + case rxSSTVStatus: + rxWidgetPtr->setSSTVStatusText(((rxSSTVStatusEvent*)e)->getStr()); + break; + + case startImageRX: + addToLog("dispatcher: clearing RxImage",LOGDISPATCH); + // rxWidgetPtr->getImageViewerPtr()->createImage( ((startImageRXEvent*)e)->getSize(),QColor(0,0,128),imageStretch); + rxWidgetPtr->getImageViewerPtr()->createImage( ((startImageRXEvent*)e)->getSize(),imageBackGroundColor,imageStretch); + lastCallsign=""; + break; + + case lineDisplay: + { + rxWidgetPtr->getImageViewerPtr()->displayImage(); + } + break; + case endSSTVImageRX: + if(autoSave) + { + addToLog("dispatcher:endImage savingRxImage",LOGDISPATCH); + saveRxSSTVImage(((endImageSSTVRXEvent*)e)->getModeName()); + } + break; + + + case rxDRMStatus: + rxWidgetPtr->setDRMStatusText(((rxDRMStatusEvent*)e)->getStr()); + + break; + + case statusBarMsg: + statusBarPtr->showMessage(((statusBarMsgEvent*)e)->getStr()); + break; + case callEditor: + if(editorActive) break; + editorActive=true; + ed=new editor(); + ed->show(); + iv=((callEditorEvent*)e)->getImageViewer(); + addToLog (QString(" callEditorEvent imageViewPtr: %1").arg(QString::number((ulong)iv,16)),LOGDISPATCH); + addToLog(QString("editor: filename %1").arg(((callEditorEvent*)e)->getFilename()),LOGDISPATCH); + ed->openFile(((callEditorEvent*)e)->getFilename()); + break; + + case rxDRMNotify: + rxWidgetPtr->setDRMNotifyText(((rxDRMNotifyEvent*)e)->getStr()); + break; + case rxDRMNotifyAppend: + rxWidgetPtr->appendDRMNotifyText(((rxDRMNotifyAppendEvent*)e)->getStr()); + break; + case txDRMNotify: + txWidgetPtr->setDRMNotifyText(((txDRMNotifyEvent*)e)->getStr()); + break; + case txDRMNotifyAppend: + txWidgetPtr->appendDRMNotifyText(((txDRMNotifyAppendEvent*)e)->getStr()); + break; + case txPrepareComplete: + txWidgetPtr->prepareTxComplete(((txPrepareCompleteEvent *)e)->ok()); + break; + + case editorFinished: + if(!editorActive) break; + if(((editorFinishedEvent*)e)->isOK()) + { + addToLog (QString(" editorFinishedEvent imageViewPtr: %1").arg(QString::number((ulong)iv,16)),LOGDISPATCH); + iv->reload(); + } + editorActive=false; + delete ed; + break; + + case templatesChanged: + galleryWidgetPtr->changedMatrix(imageViewer::TEMPLATETHUMB); + txWidgetPtr->setupTemplatesComboBox(); + break; + + case progressTX: + txTimeCounter=0; + addToLog(QString("dispatcher: progress duration=%1").arg(((progressTXEvent*)e)->getInfo()),LOGDISPATCH); + prTimerIndex=startTimer(((progressTXEvent*)e)->getInfo()*10); // time in seconds -> times 1000 for msec,divide by 100 for progress + break; + + case stoppingTX: + addToLog("dispatcher: endTXImage",LOGDISPATCH); + break; + + case endImageTX: + //addToLog("dispatcher: endTXImage",LOGDISPATCH); + while(soundIOPtr->isPlaying()) + { + qApp->processEvents(); + } + addToLog("dispatcher: endTXImage",LOGDISPATCH); + startRX(); + break; + + case displayDRMInfo: + if(!slowCPU) + { + rxWidgetPtr->mscWdg()->setConstellation(MSC); + rxWidgetPtr->facWdg()->setConstellation(FAC); + } + rxWidgetPtr->statusWdg()->setStatus(); + break; + + case displayDRMStat: + DSPFLOAT s1; + ((displayDRMStatEvent*)e)->getInfo(s1); + rxWidgetPtr->sMeterPtr()->setValue(s1); + break; + + case loadRXImage: + { + QString fn=((loadRXImageEvent *)e)->getFilename(); + rxWidgetPtr->getImageViewerPtr()->openImage(fn,false,false,false); + } + break; + case moveToTx: + { + txWidgetPtr->setImage(((moveToTxEvent *)e)->getFilename()); + } + break; + case saveDRMImage: + { + QString info; + ((saveDRMImageEvent*)e)->getFilename(fn); + ((saveDRMImageEvent*)e)->getInfo(info); + if(!rxWidgetPtr->getImageViewerPtr()->openImage(fn,false,false,false)) + { + if(mbox==NULL) delete mbox; + mbox = new QMessageBox(mainWindowPtr); + mbox->setWindowTitle("Received file"); + mbox->setText(QString("Saved file %1").arg(fn)); + mbox->show(); + QTimer::singleShot(4000, mbox, SLOT(hide())); + break; + } + saveImage(fn, info); + } + break; + + case prepareFix: + addToLog("prepareFix",LOGDISPATCH); + startDRMFIXTx( ((prepareFixEvent*)e)->getData()); + break; + case displayText: + infoTextPtr->clear(); + infoTextPtr->setWindowTitle(QString("Received from %1").arg(drmCallsign)); + infoTextPtr->append(((displayTextEvent*)e)->getStr()); + infoTextPtr->show(); + break; + + case displayMBox: + if(mbox==NULL) delete mbox; + mbox = new QMessageBox(mainWindowPtr); + mbox->setWindowTitle(((displayMBoxEvent*)e)->getTitle()); + mbox->setText(((displayMBoxEvent*)e)->getStr()); + mbox->show(); + QTimer::singleShot(4000, mbox, SLOT(hide())); + break; + + case displayProgressFTP: + { + if(((displayProgressFTPEvent*)e)->getTotal()==0) + { + delete progressFTP; + progressFTP=NULL; + break; + } + if(progressFTP==NULL) + { + progressFTP=new QProgressDialog("FTP Transfer","Cancel",0,0,mainWindowPtr); + } + progressFTP->show(); + progressFTP->setMaximum(((displayProgressFTPEvent*)e)->getTotal()); + progressFTP->setValue(((displayProgressFTPEvent*)e)->getBytes()); + } + break; + case ftpSetup: + + iPtr=((ftpSetupEvent*)e)->getFtpIntfPtr(); + if(iPtr==notifyRXIntf) + { + notifyRXDone=DFTPWAITING; + } + else if(iPtr==hybridTxIntf) + { + hybridTxDone=DFTPWAITING; + } + else if(iPtr==notifyTXIntf) + { + notifyTxDone=DFTPWAITING; + } + iPtr->setupConnection( + ((ftpSetupEvent*)e)->getHost(), + ((ftpSetupEvent*)e)->getPort(), + ((ftpSetupEvent*)e)->getUser(), + ((ftpSetupEvent*)e)->getPassword(), + ((ftpSetupEvent*)e)->getDir()); + break; + + case ftpUploadFile: + + ((ftpUploadFileEvent*)e)->getFtpIntfPtr()->uploadFile( + ((ftpUploadFileEvent*)e)->getSrcFn(), + ((ftpUploadFileEvent*)e)->getDstFn(), + ((ftpUploadFileEvent*)e)->getReconnect() + ); + break; + + + case notifyAction: + notifyRXIntf->mremove(((notifyActionEvent*)e)->getToRemove()); + notifyRXIntf->uploadData(((notifyActionEvent*)e)->getMsg().toLatin1(), ((notifyActionEvent*)e)->getFilename()); + break; + + case notifyCheck: + + + iPtr=((ftpSetupEvent*)e)->getFtpIntfPtr(); + + iPtr->startNotifyCheck( + ((notifyCheckEvent*)e)->getFilename(), + ((notifyCheckEvent*)e)->getInterval(), + ((notifyCheckEvent*)e)->getRepeats(), + ((notifyCheckEvent*)e)->getToRemove() + ); + break; + default: + addToLog(QString("unsupported event: %1").arg(((baseEvent*)e)->description), LOGALL); + break; + } + ((baseEvent *)e)->setDone(); +} + + +void dispatcher::idleAll() +{ + if(prTimerIndex>=0) + { + killTimer(prTimerIndex); + prTimerIndex=-1; + txWidgetPtr->setProgress(0); + } + rigControllerPtr->activatePTT(false); + rxWidgetPtr->functionsPtr()->stopAndWait(); + txWidgetPtr->functionsPtr()->stopAndWait(); +} + + +void dispatcher::startRX() +{ + idleAll(); + soundIOPtr->startCapture(); + rxWidgetPtr->functionsPtr()->startRX(); +} + +void dispatcher::startTX(txFunctions::etxState state) +{ + idleAll(); + rigControllerPtr->activatePTT(true); + soundIOPtr->startPlayback(); + txWidgetPtr->functionsPtr()->startTX(state); +} + +void dispatcher::prepareTX(txFunctions::etxState state) +{ + txWidgetPtr->functionsPtr()->prepareTX(state); +} + +void dispatcher::startDRMFIXTx(QByteArray ba) +{ + if(!txWidgetPtr->functionsPtr()->prepareFIX(ba)) return; + startTX(txFunctions::TXSENDDRMFIX); +} + +void dispatcher::startDRMTxBinary() +{ + //TODO: this whole thing should probably live in txWidget::slotBinary + QFileInfo finfo; + int txtime=0; + QMessageBox mbox(mainWindowPtr); + QPushButton *sendButton; + + dirDialog d((QWidget *)mainWindowPtr,"Binary File"); + QString filename=d.openFileName("","*"); + if(filename.isEmpty()) return; + if(!txWidgetPtr->functionsPtr()->prepareBinary(filename)) return; + + txtime = txWidgetPtr->functionsPtr()->calcTxTime(true,0); + finfo.setFile(filename); + + if (txtime > (3*60)) + mbox.setIcon(QMessageBox::Warning); + + mbox.setWindowTitle("TX Binary File"); + mbox.setText(QString("'%1'").arg(filename)); + mbox.setInformativeText(QString("The file is %1Kb and will take %2 seconds on air to send"). + arg(finfo.size()/1000.0,0,'f',0).arg(txtime)); + + if (useHybrid) + sendButton = mbox.addButton(tr("Upload ready to transmit"), QMessageBox::AcceptRole); + else + sendButton = mbox.addButton(tr("Start Transmitting"), QMessageBox::AcceptRole); + mbox.setStandardButtons(QMessageBox::Cancel); + + mbox.exec(); + if (mbox.clickedButton() == sendButton) { + txWidgetPtr->functionsPtr()->prepareTX(txFunctions::TXPREPAREDRMBINARY); + } +} + + + +void dispatcher::logSSTV(QString call,bool fromFSKID) +{ + if(lastFileName.isEmpty()) + { + return; + } + if(fromFSKID) + { + QDateTime dt(QDateTime::currentDateTime().toUTC()); + int diffsec=saveTimeStamp.secsTo(dt); + if(diffsec<2) + { + logBookPtr->logQSO(call,"SSTV",lastFileName); + } + lastCallsign=call; + } + else + { + logBookPtr->logQSO(call,"SSTV",""); + } + +} + + +void dispatcher::saveRxSSTVImage(QString shortModeName) +{ + QString info,s,fileName; + int m; + QDateTime dt(QDateTime::currentDateTime().toUTC()); //this is compatible with QT 4.6 + dt.setTimeSpec(Qt::UTC); + if (shortModeName.isEmpty()) + { + lastFileName.clear(); + return; + } + if(!autoSave) + { + lastFileName=shortModeName; + } + else + { + fileName=QString("%1/%2_%3.%4").arg(rxSSTVImagesPath).arg(shortModeName).arg(dt.toString("yyyyMMdd_HHmmss")).arg(defaultImageFormat); + addToLog(QString("dispatcher: saveRxImage():%1 ").arg(fileName),LOGDISPATCH); + rxWidgetPtr->getImageViewerPtr()->save(fileName,defaultImageFormat,true,false); + + info=""; + m=0; + while (m<=NUMSSTVMODES && shortModeName!=SSTVTable[m].shortName) m++; + if (m<=NUMSSTVMODES) + info += SSTVTable[m].name; + else + info += shortModeName; + + if (!lastCallsign.isEmpty()) + info += " de "+lastCallsign; + + saveImage(fileName, info); + lastFileName=QString("%1_%2.%3").arg(shortModeName).arg(dt.toString("yyyyMMdd_HHmmss")).arg(defaultImageFormat); + saveTimeStamp= dt; + } +} + +void dispatcher::saveImage(QString fileName, QString infotext) +{ + QFileInfo info(fileName); + QString fn="/tmp/"+info.baseName()+"."+ftpDefaultImageFormat; + galleryWidgetPtr->putRxImage(fileName); + txWidgetPtr->setPreviewWidget(fileName); + if(enableFTP) + { + QImage *imp = rxWidgetPtr->getImageViewerPtr()->getImagePtr(); + QImage im; + + if (imp && imp->width()) { + // the original source image is available, possibly in higher quality + // than the displayed image. Only for DRM Images. + im = QImage(imp->convertToFormat(QImage::Format_RGB32)); + } + else { + // Uses the displayed image in whatever quality is displayed. + // Applies to SSTV images. + rxWidgetPtr->getImageViewerPtr()->save(fn,ftpDefaultImageFormat,true,false); + im = QImage(fn); + } + QString text, remoteDir; + QPainter p; + double freq=0; + int pixelSize, height, width; + + rigControllerPtr->getFrequency(freq); + + text = QString("%1 UTC %2 kHz "). + arg(QDateTime::currentDateTime().toUTC().toString("hh:mm ddd MMM d, yyyy")). + arg(freq/1000,1,'f',0); + + if (transmissionModeIndex==TRXSSTV) { + remoteDir = ftpRemoteSSTVDirectory; + } + else { + remoteDir = ftpRemoteDRMDirectory; + } + + if (!infotext.isEmpty()) text += " "+infotext; + + // Limit uploaded size + if ((im.width() > 960) || (im.height() > 768)) { + im = im.scaled(960,768, Qt::KeepAspectRatio); + } + + // Stamp text over the top left of the image + // and keep it the same portion, unless the + // font would be unreadable + QFont font("Arial"); + pixelSize = 9 * im.width()/320; + if (pixelSize<8) pixelSize=8; + font.setPixelSize(pixelSize); + QFontMetrics fontm(font); + + width = fontm.width(text) + 6; + height= fontm.height() + 2; + + p.begin(&im); + p.setPen(Qt::black); + p.fillRect(0,0,width,height, Qt::black); + p.setPen(Qt::white); + p.setBrush(Qt::white); + p.setFont(font); + p.drawText(2,height-fontm.descent()-1, text); + + im.save(fn, ftpDefaultImageFormat.toUpper().toLatin1().data()); + p.end(); + + uploadToRXServer(remoteDir, fn); + QFile::remove(fn); + } +} + +void dispatcher::uploadToRXServer(QString remoteDir, QString fn) +{ + displayMBoxEvent *stmb=0; + eftpError ftpResult; + + ftpInterface ftpIntf("Save RX Image"); + + ftpIntf.setupConnection(ftpRemoteHost,ftpPort,ftpLogin,ftpPassword,remoteDir); + + ftpResult=ftpIntf.uploadToRXServer(fn); + switch(ftpResult) + { + case FTPOK: + break; + case FTPERROR: + stmb= new displayMBoxEvent("FTP Error",QString("Host: %1: %2").arg(ftpRemoteHost).arg(ftpIntf.getLastError())); + break; + case FTPNAMEERROR: + stmb= new displayMBoxEvent("FTP Error",QString("Host: %1, Error in filename").arg(ftpRemoteHost)); + break; + case FTPCANCELED: + stmb= new displayMBoxEvent("FTP Error",QString("Connection to %1 Canceled").arg(ftpRemoteHost)); + break; + case FTPTIMEOUT: + stmb= new displayMBoxEvent("FTP Error",QString("Connection to %1 timed out").arg(ftpRemoteHost)); + break; + default: + stmb= new displayMBoxEvent("FTP Error",QString("Unknown FTP error: %1").arg(ftpResult)); + break; + } + if(ftpResult!=FTPOK) + { + QApplication::postEvent( dispatcherPtr, stmb ); // Qt will delete it when done + } +} + + + +void dispatcher::timerEvent(QTimerEvent *event) +{ + if(event->timerId()==prTimerIndex) + { + txWidgetPtr->setProgress(++txTimeCounter); + if(txTimeCounter>=100) + { + if(prTimerIndex>=0) + { + killTimer(prTimerIndex); + prTimerIndex=-1; + txWidgetPtr->setProgress(0); + } + } + txWidgetPtr->setProgress(txTimeCounter); + } +} + +void dispatcher::slotRXNotification(QString info) +{ + if (info != "") + { + rxWidgetPtr->appendDRMNotifyText(info); + } +} + +void dispatcher::slotTXNotification(QString info) +{ + if (info != "") + { + txWidgetPtr->appendDRMNotifyText(info); + } +} + + +void dispatcher::slotHybridTxDone(bool error) +{ + if(error) + { + hybridTxDone=DFTPERROR; + } + else + { + hybridTxDone=DFTPOK; + } + +} + + diff --git a/qsstv/dispatch/dispatcher.h b/qsstv/dispatch/dispatcher.h new file mode 100644 index 0000000..d35d18b --- /dev/null +++ b/qsstv/dispatch/dispatcher.h @@ -0,0 +1,92 @@ +/*************************************************************************** + * Copyright (C) 2000-2008 by Johan Maes * + * on4qz@telenet.be * + * http://users.telenet.be/on4qz * + * * + * 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef DISPATCHER_H +#define DISPATCHER_H +#include "dispatchevents.h" +#include "appglobal.h" +#include +#include "textdisplay.h" +#include "txfunctions.h" +class editor; +class imageViewer; +#include + +enum eftpResult {DFTPWAITING,DFTPOK,DFTPERROR}; + +/** +@author Johan Maes +*/ +class dispatcher : public QObject +{ + Q_OBJECT + +public: + + dispatcher(); + ~dispatcher(); + void init(); + void idleAll(); + void startRX(); + void startTX(txFunctions::etxState state); + void prepareTX(txFunctions::etxState state); + void readSettings(); + void writeSettings(); + void customEvent( QEvent * e ); + void startDRMFIXTx(QByteArray ba); + void startDRMTxBinary(); + // void startDRMHybridTx(QString fn); + // void startDRMHybridText(QString txt); + // void sendSweepTone(double duration,double lowerFreq,double upperFreq); + void saveImage(QString fileName, QString infotext); + void uploadToRXServer(QString remoteDir, QString fn); + void logSSTV(QString call, bool fromFSKID); + void setOnlineStatus(bool online, QString info=""); + void who(); + eftpResult notifyRXDone; + eftpResult hybridTxDone; + eftpResult notifyTxDone; + + +private slots: + void slotRXNotification(QString info); + void slotTXNotification(QString); +// void slotWhoResult(); + void slotHybridTxDone(bool error); + + +private: + void saveRxSSTVImage(QString shortModeName); + void timerEvent(QTimerEvent *event); + bool editorActive; + editor *ed; + imageViewer *iv; + int txTimeCounter; + int prTimerIndex; + int logTimerIndex; + textDisplay *infoTextPtr; + QMessageBox *mbox; + QProgressDialog *progressFTP; + QString lastFileName; + QString lastCallsign; + QDateTime saveTimeStamp; +}; +#endif + diff --git a/qsstv/dispatch/dispatchevents.h b/qsstv/dispatch/dispatchevents.h new file mode 100644 index 0000000..bcd82cd --- /dev/null +++ b/qsstv/dispatch/dispatchevents.h @@ -0,0 +1,758 @@ +/*************************************************************************** + * Copyright (C) 2000-2008 by Johan Maes * + * on4qz@telenet.be * + * http://users.telenet.be/on4qz * + * * + * 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef DISPATCHEVENT_H +#define DISPATCHEVENT_H +#include +#include "widgets/imageviewer.h" +#include "appdefs.h" +#include + +class ftpInterface; + + +/** dispatch events are used to communicate with the different threads */ +enum dispatchEventType +{ + info = QEvent::User, //!< send when dsp stops running + soundcardIdle, //!< send when soundcard stops running + displayFFT, + displaySync, + displayDRMStat, + displayDRMInfo, + syncDisp, //!< synchro display event + lineDisplay, //!< display 1 line + eraseDisp, + createMode, + startImageRX, + endSSTVImageRX, + endImageTX, + stoppingTX, + progressTX, + // verticalRetrace, + // syncLost, + outOfSync, +// statusMsg, //!< display status message + rxSSTVStatus, //! shows message in sstv tab + rxDRMStatus, //! shows message in drm tab + rxDRMNotify, //! shows text in rx notifications box + rxDRMNotifyAppend, + txDRMNotify, //! shows text in tx notifications box + txDRMNotifyAppend, + txPrepareComplete, //!< tx preparations (uploading etc) complete + closeWindows, + callEditor, + templatesChanged, + editorFinished, + changeRXFilter, + startAutoRepeater, + startRepeater, + stopRxTx, + loadRXImage, + saveDRMImage, + prepareFix, + displayText, + displayMBox, + displayProgressFTP, + moveToTx, + notifyAction, + ftpSetup, + notifyCheck, + ftpUploadFile, + statusBarMsg +}; + +class baseEvent: public QEvent +{ +public: + baseEvent(QEvent::Type t):QEvent(t) {doneIt=NULL;} + void waitFor(bool *d) {doneIt=d;} + void setDone() + { + if(doneIt!=NULL) *doneIt=true; + } + QString description; +private: + bool *doneIt; + +}; + +/** + this event is send when the dspfunc thread stops running +*/ +class infoEvent : public baseEvent +{ +public: + /** create event */ + infoEvent(QString t):baseEvent( (QEvent::Type) info ), str(t) + { + description="infoEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +/** + this event is send when the soundcard thread goes to idle +*/ +class soundcardIdleEvent : public baseEvent +{ +public: + /** create event */ + soundcardIdleEvent():baseEvent( (QEvent::Type) soundcardIdle ) + { + { + description=" soudcardIdleEvent"; + } + } +}; + + +/** + this event is send with teh sync quality info and the signal volume +*/ +class displaySyncEvent : public baseEvent +{ +public: + /** create event */ + displaySyncEvent(uint s):baseEvent( (QEvent::Type) displaySync), sync(s) + { + description=" displaySyncEvent"; + } + /** returns int sync value */ + void getInfo(uint &s) {s=sync;} + +private: + uint sync; + DSPFLOAT vol; +}; + +class displayDRMStatEvent : public baseEvent +{ +public: + /** create event */ + displayDRMStatEvent(uint s):baseEvent( (QEvent::Type) displayDRMStat), snr(s) + { + description=" displayDRMStatEvent"; + } + /** returns length and pointer from the event */ + void getInfo(DSPFLOAT &s) {s=snr;} + +private: + DSPFLOAT snr; +}; + +//class statusMsgEvent : public baseEvent +//{ +//public: +// /** create event */ +// statusMsgEvent(QString t):baseEvent( (QEvent::Type)statusMsg ), str(t) +// { +// description="statusMsgEvent"; +// } +// /** returns info string from the event */ +// QString getStr() const { return str; } +//private: +// QString str; +//}; + +class ftpSetupEvent : public baseEvent +{ +public: + /** create event */ + ftpSetupEvent(ftpInterface * ftpIntf,QString h,int p,QString u,QString pwd,QString d) + :baseEvent( (QEvent::Type)ftpSetup ),ftpIntfPtr(ftpIntf), host(h),port(p),user(u),password(pwd),dir(d) + { + description="ftpSetupEvent"; + } + /** returns settings from the event */ + ftpInterface *getFtpIntfPtr() const { return ftpIntfPtr; } + QString getHost() const { return host; } + int getPort() const { return port; } + QString getUser() const { return user; } + QString getPassword() const { return password; } + QString getDir() const { return dir; } +private: + ftpInterface *ftpIntfPtr; + QString host; + int port; + QString user; + QString password; + QString dir; +}; + +class ftpUploadFileEvent : public baseEvent +{ +public: + /** create event */ + ftpUploadFileEvent(ftpInterface * ftpIntf,QString srcFn,QString dstFn,bool recon) + :baseEvent( (QEvent::Type)ftpUploadFile ),ftpIntfPtr(ftpIntf),sourceFilename(srcFn), destFilename(dstFn),reconnect(recon) + { + description="ftpUploadFileEvent"; + } + /** returns settings from the event */ + ftpInterface *getFtpIntfPtr() const { return ftpIntfPtr; } + QString getSrcFn() const { return sourceFilename; } + QString getDstFn() const { return destFilename; } + bool getReconnect() const { return reconnect; } +private: + ftpInterface *ftpIntfPtr; + QString sourceFilename; + QString destFilename; + bool reconnect; +}; + + + +class notifyActionEvent : public baseEvent +{ +public: + /** create event */ + notifyActionEvent(QString toRem,QString message,QString fn) + :baseEvent( (QEvent::Type)notifyAction ), toRemove(toRem),msg(message),filename(fn) + { + description="notifyActionEvent"; + } + /** returns settings from the event */ + QString getToRemove() const { return toRemove; } + QString getMsg() const { return msg; } + QString getFilename() const { return filename; } +private: + QString toRemove; + QString msg; + QString filename; +}; + + +class notifyCheckEvent : public baseEvent +{ +public: + /** create event */ + notifyCheckEvent(ftpInterface * ftpIntf,QString fn,int intv, int rp, bool rm) + :baseEvent( (QEvent::Type)notifyCheck),ftpIntfPtr(ftpIntf), filename(fn),interval(intv),repeats(rp),remove(rm) + { + description="notifyCheckEvent"; + } + /** returns settings from the event */ + ftpInterface *getFtpIntfPtr() const { return ftpIntfPtr; } + QString getFilename() const { return filename; } + int getInterval() const { return interval; } + int getRepeats() const { return repeats; } + bool getToRemove() const { return remove; } +private: + ftpInterface *ftpIntfPtr; + QString filename; + int interval; + int repeats; + bool remove; +}; + + + +class rxSSTVStatusEvent : public baseEvent +{ +public: + /** create event */ + rxSSTVStatusEvent(QString t):baseEvent( (QEvent::Type)rxSSTVStatus ), str(t) + { + description="rxSSTVStatusEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class rxDRMStatusEvent : public baseEvent +{ +public: + /** create event */ + rxDRMStatusEvent(QString t):baseEvent( (QEvent::Type)rxDRMStatus ), str(t) + { + description="rxDRMStatusEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class rxDRMNotifyEvent : public baseEvent +{ +public: + /** create event */ + rxDRMNotifyEvent(QString t):baseEvent( (QEvent::Type)rxDRMNotify ), str(t) + { + description="rxDRMNotifyEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class rxDRMNotifyAppendEvent : public baseEvent +{ +public: + /** create event */ + rxDRMNotifyAppendEvent(QString t):baseEvent( (QEvent::Type)rxDRMNotifyAppend ), str(t) + { + description="rxDRMNotifyAppendEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class txDRMNotifyEvent : public baseEvent +{ +public: + /** create event */ + txDRMNotifyEvent(QString t):baseEvent( (QEvent::Type)txDRMNotify ), str(t) + { + description="txDRMNotifyEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class txDRMNotifyAppendEvent : public baseEvent +{ +public: + /** create event */ + txDRMNotifyAppendEvent(QString t):baseEvent( (QEvent::Type)txDRMNotifyAppend ), str(t) + { + description="txDRMNotifyAppendEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class txPrepareCompleteEvent : public baseEvent +{ +public: + /** create event */ + txPrepareCompleteEvent(bool tok):baseEvent( (QEvent::Type)txPrepareComplete ), _ok(tok) + { + description="txPrepareCompleteEvent"; + } + /** returns info string from the event */ + bool ok() const { return _ok; } +private: + bool _ok; +}; + +class lineDisplayEvent : public baseEvent +{ +public: + /** create event */ + lineDisplayEvent(uint lineNbr):baseEvent( (QEvent::Type)lineDisplay ), lineNumber(lineNbr) + { + description="lineDisplayEvent"; + } + /** returns length and pointer from the event */ + void getInfo(uint &lineNbr) const { lineNbr=lineNumber;} + +private: + uint lineNumber; +}; + +class eraseDisplayEvent : public baseEvent +{ +public: + /** create event */ + eraseDisplayEvent():baseEvent( (QEvent::Type)eraseDisp ) + { + description="eraseDisplayEvent"; + } +}; + + + +class displayDRMInfoEvent : public baseEvent +{ +public: + /** create event */ + displayDRMInfoEvent():baseEvent( (QEvent::Type)displayDRMInfo) + { + description="displayDRMInfo"; + } +}; + +class startAutoRepeaterEvent: public baseEvent +{ +public: + /** create event */ + startAutoRepeaterEvent():baseEvent( (QEvent::Type)startAutoRepeater ) + { + description="startAutoRepeaterEvent"; + } +}; + +class startRepeaterEvent: public baseEvent +{ +public: + /** create event */ + startRepeaterEvent():baseEvent( (QEvent::Type)startRepeater ) + { + description="startRepeaterEvent"; + } +}; + + +class createModeEvent : public baseEvent +{ +public: + /** create event */ + createModeEvent(uint m,QString t):baseEvent( (QEvent::Type)createMode ), mode(m) ,str(t) + { + description="createModeEvent"; + } + /** returns info string from the event */ + void getMode(uint &m,QString &s) const { m=mode;s=str; } +private: + uint mode; + QString str; +}; + +class loadRXImageEvent : public baseEvent +{ +public: + loadRXImageEvent(QString fn):baseEvent( (QEvent::Type)loadRXImage),fileName(fn) + { + description="loadRXImageEvent"; + } + QString getFilename() {return fileName;} +private: + QString fileName; +}; + + +class moveToTxEvent : public baseEvent +{ +public: + moveToTxEvent(QString fn):baseEvent( (QEvent::Type)moveToTx),fileName(fn) + { + description="moveToTxEvent"; + } + QString getFilename() {return fileName;} +private: + QString fileName; +}; + + + +class saveDRMImageEvent : public baseEvent +{ +public: + saveDRMImageEvent(QString fn,QString i):baseEvent( (QEvent::Type)saveDRMImage),fileName(fn),info(i) + { + description="saveDRMImageEvent"; + } + void getFilename(QString &fn) {fn=fileName;} + void getInfo(QString &i) {i=info;} +private: + QString fileName; + QString info; +}; + + + +class startImageRXEvent : public baseEvent +{ +public: + /** create event */ + startImageRXEvent(QSize ims):baseEvent( (QEvent::Type)startImageRX ),imSize(ims) + { + description="startImageRXEvent"; + } + QSize getSize() {return imSize;} +private: + QSize imSize; + +}; + +class endImageSSTVRXEvent : public baseEvent +{ +public: + /** create event */ + endImageSSTVRXEvent(QString mn):baseEvent( (QEvent::Type)endSSTVImageRX ),modeName(mn) + { + description="endImageSSTVRXEvent"; + } + QString getModeName() {return modeName;} +private: + QString modeName; +}; + +class endImageTXEvent : public baseEvent +{ +public: + /** create event */ + endImageTXEvent():baseEvent( (QEvent::Type)endImageTX ) + { + description="endImageTXEvent"; + } +}; + + +class stopTXEvent : public baseEvent +{ +public: + /** create event */ + stopTXEvent():baseEvent( (QEvent::Type)stoppingTX ) + { + description="stopTXEvent"; + } +}; + +//class verticalRetraceEvent : public baseEvent +//{ +//public: +// /** create event */ +// verticalRetraceEvent():baseEvent( (QEvent::Type) verticalRetrace ) +// { +// description="verticalRetraceEvent"; +// } +//}; + +//class syncLostEvent : public baseEvent +//{ +//public: +// /** create event */ +// syncLostEvent():baseEvent( (QEvent::Type) syncLost ) +// { +// description="syncLostEvent"; +// } +//}; + + + +class outOfSyncEvent : public baseEvent +{ +public: + /** create event */ + outOfSyncEvent():baseEvent( (QEvent::Type)outOfSync ) + { + description="outOfSyncEvent"; + } +}; + + + +class progressTXEvent : public baseEvent +{ +public: + /** create event */ + progressTXEvent(double tim):baseEvent( (QEvent::Type)progressTX ), txTime(tim) + { + description="progressTXEvent"; + } + /** returns length and pointer from the event */ + double getInfo() { return txTime;} + +private: + double txTime; +}; + +class closeWindowsEvent : public baseEvent +{ +public: + /** create event */ + closeWindowsEvent():baseEvent( (QEvent::Type)closeWindows) + { + description="closeWindowEvent"; + } + /** returns length and pointer from the event */ +}; + + + +class callEditorEvent : public baseEvent +{ +public: + /** create event */ + callEditorEvent(imageViewer *iv,QString fn):baseEvent( (QEvent::Type) callEditor ), filename(fn),imviewer(iv) + { + description="callEditorEvent"; + } + /** returns info string from the event */ + QString getFilename() const { return filename; } + imageViewer *getImageViewer() { return imviewer; } +private: + QString filename; + imageViewer *imviewer; +}; + + +class templatesChangedEvent : public baseEvent +{ +public: + /** create event */ + templatesChangedEvent():baseEvent( (QEvent::Type) templatesChanged ) + { + description="templateChangeEvent"; + } +}; + +class editorFinishedEvent : public baseEvent +{ +public: + /** create event */ + editorFinishedEvent(bool b,QString fn):baseEvent( (QEvent::Type)editorFinished),ok(b),filename(fn) + { + description="editorFinishedEvent"; + } + bool isOK() { return ok;} + QString getFilename() const { return filename; } + +private: + bool ok; + QString filename; + +}; + + +class displayFFTEvent : public baseEvent +{ +public: + /** create event */ + displayFFTEvent(DSPFLOAT *buf):baseEvent( (QEvent::Type)displayFFT),buffer(buf) + { + description="displayFFTEvent"; + } + DSPFLOAT *data() { return buffer;} +private: + DSPFLOAT *buffer; + +}; + +class filterRXChangedEvent: public baseEvent +{ +public: + /** create event */ + filterRXChangedEvent(int fIndex):baseEvent( (QEvent::Type)changeRXFilter),filterIndex(fIndex) + { + description="filterChangedEvent"; + } + int index() { return filterIndex;} +private: + int filterIndex; +}; + +class stopRxTxEvent : public baseEvent +{ +public: + /** create event */ + stopRxTxEvent():baseEvent( (QEvent::Type)stopRxTx) + { + description="stopRxTxEvent"; + } +}; + + +class prepareFixEvent: public baseEvent +{ +public: + prepareFixEvent(QByteArray ba):baseEvent( (QEvent::Type)prepareFix),data(ba) + { + description="filterChangedEvent"; + } + QByteArray &getData() {return data;} +private: + QByteArray data; +}; + + +/** + this event is send when the dspfunc thread stops running +*/ +class displayTextEvent : public baseEvent +{ +public: + /** create event */ + displayTextEvent(QString t):baseEvent( (QEvent::Type) displayText ), str(t) + { + description="displayTextEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +class displayMBoxEvent : public baseEvent +{ +public: + /** create event */ + displayMBoxEvent(QString title,QString text):baseEvent( (QEvent::Type) displayMBox ), str(text), title(title) + { + description="displayMBoxEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } + QString getTitle() const { return title; } + +private: + QString str; + QString title; +}; + + +class displayProgressFTPEvent : public baseEvent +{ +public: + /** create event */ + displayProgressFTPEvent(quint64 byts,quint64 tot):baseEvent( (QEvent::Type) displayProgressFTP ), bytes(byts),total(tot) + { + description="displayMBoxEvent"; + } + /** returns info string from the event */ + quint64 getTotal() const { return total; } + quint64 getBytes() const { return bytes; } + +private: + quint64 bytes; + quint64 total; + +}; + +class statusBarMsgEvent : public baseEvent +{ +public: + /** create event */ + statusBarMsgEvent(QString t):baseEvent( (QEvent::Type)statusBarMsg ), str(t) + { + description="statusBarMsgEvent"; + } + /** returns info string from the event */ + QString getStr() const { return str; } +private: + QString str; +}; + +#endif diff --git a/qsstv/documentation/manual/doxygen_sqlite3.db b/qsstv/documentation/manual/doxygen_sqlite3.db new file mode 100644 index 0000000..7208c19 Binary files /dev/null and b/qsstv/documentation/manual/doxygen_sqlite3.db differ diff --git a/qsstv/documentation/manual/images/Gallery_image_options.png b/qsstv/documentation/manual/images/Gallery_image_options.png new file mode 100644 index 0000000..e46c156 Binary files /dev/null and b/qsstv/documentation/manual/images/Gallery_image_options.png differ diff --git a/qsstv/documentation/manual/images/Gallery_rx.png b/qsstv/documentation/manual/images/Gallery_rx.png new file mode 100644 index 0000000..3de5831 Binary files /dev/null and b/qsstv/documentation/manual/images/Gallery_rx.png differ diff --git a/qsstv/documentation/manual/images/Gallery_template.png b/qsstv/documentation/manual/images/Gallery_template.png new file mode 100644 index 0000000..f7f8d8a Binary files /dev/null and b/qsstv/documentation/manual/images/Gallery_template.png differ diff --git a/qsstv/documentation/manual/images/Gallery_templates.png b/qsstv/documentation/manual/images/Gallery_templates.png new file mode 100644 index 0000000..ff922fb Binary files /dev/null and b/qsstv/documentation/manual/images/Gallery_templates.png differ diff --git a/qsstv/documentation/manual/images/Gallery_tx.png b/qsstv/documentation/manual/images/Gallery_tx.png new file mode 100644 index 0000000..b776f9f Binary files /dev/null and b/qsstv/documentation/manual/images/Gallery_tx.png differ diff --git a/qsstv/documentation/manual/images/Gallery_txdrm.png b/qsstv/documentation/manual/images/Gallery_txdrm.png new file mode 100644 index 0000000..fd5e4c1 Binary files /dev/null and b/qsstv/documentation/manual/images/Gallery_txdrm.png differ diff --git a/qsstv/documentation/manual/images/binary.png b/qsstv/documentation/manual/images/binary.png new file mode 100644 index 0000000..eae4e50 Binary files /dev/null and b/qsstv/documentation/manual/images/binary.png differ diff --git a/qsstv/documentation/manual/images/bsr_nfy.png b/qsstv/documentation/manual/images/bsr_nfy.png new file mode 100644 index 0000000..62f029a Binary files /dev/null and b/qsstv/documentation/manual/images/bsr_nfy.png differ diff --git a/qsstv/documentation/manual/images/bsr_select.png b/qsstv/documentation/manual/images/bsr_select.png new file mode 100644 index 0000000..fb4cecb Binary files /dev/null and b/qsstv/documentation/manual/images/bsr_select.png differ diff --git a/qsstv/documentation/manual/images/calibration.png b/qsstv/documentation/manual/images/calibration.png new file mode 100644 index 0000000..4a3ca0e Binary files /dev/null and b/qsstv/documentation/manual/images/calibration.png differ diff --git a/qsstv/documentation/manual/images/config.png b/qsstv/documentation/manual/images/config.png new file mode 100644 index 0000000..cb13e09 Binary files /dev/null and b/qsstv/documentation/manual/images/config.png differ diff --git a/qsstv/documentation/manual/images/config1.png b/qsstv/documentation/manual/images/config1.png new file mode 100644 index 0000000..d49b745 Binary files /dev/null and b/qsstv/documentation/manual/images/config1.png differ diff --git a/qsstv/documentation/manual/images/config10.png b/qsstv/documentation/manual/images/config10.png new file mode 100644 index 0000000..148c32a Binary files /dev/null and b/qsstv/documentation/manual/images/config10.png differ diff --git a/qsstv/documentation/manual/images/config11.png b/qsstv/documentation/manual/images/config11.png new file mode 100644 index 0000000..f66fc63 Binary files /dev/null and b/qsstv/documentation/manual/images/config11.png differ diff --git a/qsstv/documentation/manual/images/config12.png b/qsstv/documentation/manual/images/config12.png new file mode 100644 index 0000000..1aba6de Binary files /dev/null and b/qsstv/documentation/manual/images/config12.png differ diff --git a/qsstv/documentation/manual/images/config2.png b/qsstv/documentation/manual/images/config2.png new file mode 100644 index 0000000..489b299 Binary files /dev/null and b/qsstv/documentation/manual/images/config2.png differ diff --git a/qsstv/documentation/manual/images/config3.png b/qsstv/documentation/manual/images/config3.png new file mode 100644 index 0000000..80c64b4 Binary files /dev/null and b/qsstv/documentation/manual/images/config3.png differ diff --git a/qsstv/documentation/manual/images/config4.png b/qsstv/documentation/manual/images/config4.png new file mode 100644 index 0000000..be24342 Binary files /dev/null and b/qsstv/documentation/manual/images/config4.png differ diff --git a/qsstv/documentation/manual/images/config5.png b/qsstv/documentation/manual/images/config5.png new file mode 100644 index 0000000..1816297 Binary files /dev/null and b/qsstv/documentation/manual/images/config5.png differ diff --git a/qsstv/documentation/manual/images/config6.png b/qsstv/documentation/manual/images/config6.png new file mode 100644 index 0000000..7c84704 Binary files /dev/null and b/qsstv/documentation/manual/images/config6.png differ diff --git a/qsstv/documentation/manual/images/config7.png b/qsstv/documentation/manual/images/config7.png new file mode 100644 index 0000000..5c1acb6 Binary files /dev/null and b/qsstv/documentation/manual/images/config7.png differ diff --git a/qsstv/documentation/manual/images/config8.png b/qsstv/documentation/manual/images/config8.png new file mode 100644 index 0000000..9a052c3 Binary files /dev/null and b/qsstv/documentation/manual/images/config8.png differ diff --git a/qsstv/documentation/manual/images/config9.png b/qsstv/documentation/manual/images/config9.png new file mode 100644 index 0000000..9192705 Binary files /dev/null and b/qsstv/documentation/manual/images/config9.png differ diff --git a/qsstv/documentation/manual/images/cqrlog1.png b/qsstv/documentation/manual/images/cqrlog1.png new file mode 100644 index 0000000..94c740a Binary files /dev/null and b/qsstv/documentation/manual/images/cqrlog1.png differ diff --git a/qsstv/documentation/manual/images/cqrlog2.png b/qsstv/documentation/manual/images/cqrlog2.png new file mode 100644 index 0000000..a7ebcf9 Binary files /dev/null and b/qsstv/documentation/manual/images/cqrlog2.png differ diff --git a/qsstv/documentation/manual/images/editor_1.png b/qsstv/documentation/manual/images/editor_1.png new file mode 100644 index 0000000..5e4102e Binary files /dev/null and b/qsstv/documentation/manual/images/editor_1.png differ diff --git a/qsstv/documentation/manual/images/editor_2.png b/qsstv/documentation/manual/images/editor_2.png new file mode 100644 index 0000000..ebb5617 Binary files /dev/null and b/qsstv/documentation/manual/images/editor_2.png differ diff --git a/qsstv/documentation/manual/images/editor_3.png b/qsstv/documentation/manual/images/editor_3.png new file mode 100644 index 0000000..babb764 Binary files /dev/null and b/qsstv/documentation/manual/images/editor_3.png differ diff --git a/qsstv/documentation/manual/images/editor_image_size.png b/qsstv/documentation/manual/images/editor_image_size.png new file mode 100644 index 0000000..35d5a97 Binary files /dev/null and b/qsstv/documentation/manual/images/editor_image_size.png differ diff --git a/qsstv/documentation/manual/images/entertext.png b/qsstv/documentation/manual/images/entertext.png new file mode 100644 index 0000000..83c76e6 Binary files /dev/null and b/qsstv/documentation/manual/images/entertext.png differ diff --git a/qsstv/documentation/manual/images/eraser.png b/qsstv/documentation/manual/images/eraser.png new file mode 100644 index 0000000..78632a5 Binary files /dev/null and b/qsstv/documentation/manual/images/eraser.png differ diff --git a/qsstv/documentation/manual/images/fix.png b/qsstv/documentation/manual/images/fix.png new file mode 100644 index 0000000..099c640 Binary files /dev/null and b/qsstv/documentation/manual/images/fix.png differ diff --git a/qsstv/documentation/manual/images/flrig1.png b/qsstv/documentation/manual/images/flrig1.png new file mode 100644 index 0000000..430c469 Binary files /dev/null and b/qsstv/documentation/manual/images/flrig1.png differ diff --git a/qsstv/documentation/manual/images/hybrid_checkbox.png b/qsstv/documentation/manual/images/hybrid_checkbox.png new file mode 100644 index 0000000..36bb44e Binary files /dev/null and b/qsstv/documentation/manual/images/hybrid_checkbox.png differ diff --git a/qsstv/documentation/manual/images/hybrid_dis_checkbox.png b/qsstv/documentation/manual/images/hybrid_dis_checkbox.png new file mode 100644 index 0000000..ee13f95 Binary files /dev/null and b/qsstv/documentation/manual/images/hybrid_dis_checkbox.png differ diff --git a/qsstv/documentation/manual/images/multiline.png b/qsstv/documentation/manual/images/multiline.png new file mode 100644 index 0000000..f6f79ca Binary files /dev/null and b/qsstv/documentation/manual/images/multiline.png differ diff --git a/qsstv/documentation/manual/images/receivedrm.png b/qsstv/documentation/manual/images/receivedrm.png new file mode 100644 index 0000000..d20660a Binary files /dev/null and b/qsstv/documentation/manual/images/receivedrm.png differ diff --git a/qsstv/documentation/manual/images/refreshbutton.png b/qsstv/documentation/manual/images/refreshbutton.png new file mode 100644 index 0000000..85c0db8 Binary files /dev/null and b/qsstv/documentation/manual/images/refreshbutton.png differ diff --git a/qsstv/documentation/manual/images/rxdrm_constellation.png b/qsstv/documentation/manual/images/rxdrm_constellation.png new file mode 100644 index 0000000..9041cb7 Binary files /dev/null and b/qsstv/documentation/manual/images/rxdrm_constellation.png differ diff --git a/qsstv/documentation/manual/images/rxdrm_segments.png b/qsstv/documentation/manual/images/rxdrm_segments.png new file mode 100644 index 0000000..8586a6b Binary files /dev/null and b/qsstv/documentation/manual/images/rxdrm_segments.png differ diff --git a/qsstv/documentation/manual/images/rxdrm_status.png b/qsstv/documentation/manual/images/rxdrm_status.png new file mode 100644 index 0000000..fd337bf Binary files /dev/null and b/qsstv/documentation/manual/images/rxdrm_status.png differ diff --git a/qsstv/documentation/manual/images/rxwidget1.png b/qsstv/documentation/manual/images/rxwidget1.png new file mode 100644 index 0000000..c276288 Binary files /dev/null and b/qsstv/documentation/manual/images/rxwidget1.png differ diff --git a/qsstv/documentation/manual/images/sstvdrmselect.png b/qsstv/documentation/manual/images/sstvdrmselect.png new file mode 100644 index 0000000..4fa00a5 Binary files /dev/null and b/qsstv/documentation/manual/images/sstvdrmselect.png differ diff --git a/qsstv/documentation/manual/images/statusbar.png b/qsstv/documentation/manual/images/statusbar.png new file mode 100644 index 0000000..99a2ee6 Binary files /dev/null and b/qsstv/documentation/manual/images/statusbar.png differ diff --git a/qsstv/documentation/manual/images/statusleds.png b/qsstv/documentation/manual/images/statusleds.png new file mode 100644 index 0000000..36f8769 Binary files /dev/null and b/qsstv/documentation/manual/images/statusleds.png differ diff --git a/qsstv/documentation/manual/images/transmitdrm.png b/qsstv/documentation/manual/images/transmitdrm.png new file mode 100644 index 0000000..c3b029a Binary files /dev/null and b/qsstv/documentation/manual/images/transmitdrm.png differ diff --git a/qsstv/documentation/manual/images/tx-with-template.png b/qsstv/documentation/manual/images/tx-with-template.png new file mode 100644 index 0000000..d8b1d26 Binary files /dev/null and b/qsstv/documentation/manual/images/tx-with-template.png differ diff --git a/qsstv/documentation/manual/images/txdrm_compression.png b/qsstv/documentation/manual/images/txdrm_compression.png new file mode 100644 index 0000000..55f1585 Binary files /dev/null and b/qsstv/documentation/manual/images/txdrm_compression.png differ diff --git a/qsstv/documentation/manual/images/txdrm_options.png b/qsstv/documentation/manual/images/txdrm_options.png new file mode 100644 index 0000000..0b12bf2 Binary files /dev/null and b/qsstv/documentation/manual/images/txdrm_options.png differ diff --git a/qsstv/documentation/manual/images/txdrm_status.png b/qsstv/documentation/manual/images/txdrm_status.png new file mode 100644 index 0000000..f9a69e8 Binary files /dev/null and b/qsstv/documentation/manual/images/txdrm_status.png differ diff --git a/qsstv/documentation/manual/images/txwidget1.png b/qsstv/documentation/manual/images/txwidget1.png new file mode 100644 index 0000000..460a2d5 Binary files /dev/null and b/qsstv/documentation/manual/images/txwidget1.png differ diff --git a/qsstv/documentation/manual/images/vk4aes.jpg b/qsstv/documentation/manual/images/vk4aes.jpg new file mode 100644 index 0000000..a18b81a Binary files /dev/null and b/qsstv/documentation/manual/images/vk4aes.jpg differ diff --git a/qsstv/documentation/manual/images/waterfall.png b/qsstv/documentation/manual/images/waterfall.png new file mode 100644 index 0000000..7564382 Binary files /dev/null and b/qsstv/documentation/manual/images/waterfall.png differ diff --git a/qsstv/documentation/manual/images/wf_bsr_id.png b/qsstv/documentation/manual/images/wf_bsr_id.png new file mode 100644 index 0000000..799a83c Binary files /dev/null and b/qsstv/documentation/manual/images/wf_bsr_id.png differ diff --git a/qsstv/documentation/manual/images/wftextpopup.png b/qsstv/documentation/manual/images/wftextpopup.png new file mode 100644 index 0000000..7fb9b93 Binary files /dev/null and b/qsstv/documentation/manual/images/wftextpopup.png differ diff --git a/qsstv/documentation/manual/manual.doxy b/qsstv/documentation/manual/manual.doxy new file mode 100644 index 0000000..ee00246 --- /dev/null +++ b/qsstv/documentation/manual/manual.doxy @@ -0,0 +1,1776 @@ +# Doxyfile 1.8.1.2 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or sequence of words) that should +# identify the project. Note that if you do not use Doxywizard you need +# to put quotes around the project name if it contains spaces. + +PROJECT_NAME = QSSTV + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 9.2 + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding +# "class=itcl::class" will allow you to use the command class in the +# itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all +# comments according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you +# can mix doxygen, HTML, and XML commands with Markdown formatting. +# Disable only in case of backward compatibilities issues. + +MARKDOWN_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and +# unions with only public data fields will be shown inline in the documentation +# of the scope in which they are defined (i.e. file, namespace, or group +# documentation), provided this scope is documented. If set to NO (the default), +# structs, classes, and unions are shown on a separate page (for HTML and Man +# pages) or section (for LaTeX and RTF). + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be +# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given +# their name and scope. Since this can be an expensive process and often the +# same symbol appear multiple times in the code, doxygen keeps a cache of +# pre-resolved symbols. If the cache is too small doxygen will become slower. +# If the cache is too large, memory is wasted. The cache size is given by this +# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files +# containing the references data. This must be a list of .bib files. The +# .bib extension is automatically appended if omitted. Using this command +# requires the bibtex tool to be installed. See also +# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style +# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this +# feature you need bibtex and perl available in the search path. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = manual.txt + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = *.txt + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = images \ + ../../icons + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C, C++ and Fortran comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = NO + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = manual + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is advised to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when +# changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# style sheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = qsstv.css + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the style sheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of +# entries shown in the various tree structured indices initially; the user +# can expand and collapse entries dynamically later on. Doxygen will expand +# the tree to such a level that at most the specified number of entries are +# visible (unless a fully collapsed tree already exceeds this amount). +# So setting the number of entries 1 will produce a full collapsed tree by +# default. 0 is a special value representing an infinite number of entries +# and will result in a full expanded tree by default. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) +# at top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. Since the tabs have the same information as the +# navigation tree you can set this option to NO if you already set +# GENERATE_TREEVIEW to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. +# Since the tree basically has the same information as the tab index you +# could consider to set DISABLE_INDEX to NO when enabling this option. + +GENERATE_TREEVIEW = YES + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you may also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to +# the MathJax Content Delivery Network so you can quickly see the result without +# installing MathJax. +# However, it is strongly recommended to install a local +# copy of MathJax from http://www.mathjax.org before deployment. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension +# names that should be enabled during MathJax rendering. + +MATHJAX_EXTENSIONS = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = NO + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the +# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See +# http://en.wikipedia.org/wiki/BibTeX for more info. + +LATEX_BIB_STYLE = plain + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load style sheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. For each +# tag file the location of the external documentation should be added. The +# format of a tag file without this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths +# or URLs. Note that each tag file must have a unique name (where the name does +# NOT include the path). If a tag file is not located in the directory in which +# doxygen is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = NO + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will use the Helvetica font for all dot files that +# doxygen generates. When you want a differently looking font you can specify +# the font name using DOT_FONTNAME. You need to make sure dot is able to find +# the font, which can be done by putting it in a standard location or by setting +# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the +# directory containing the font. + +#DOT_FONTNAME = FreeSans.ttf + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the Helvetica font. +# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to +# set the path where dot can find it. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If the UML_LOOK tag is enabled, the fields and methods are shown inside +# the class node. If there are many fields or methods and many nodes the +# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS +# threshold limits the number of items for each type to make the size more +# managable. Set this to 0 for no limit. Note that the threshold may be +# exceeded by 50% before the limit is enforced. + +UML_LIMIT_NUM_FIELDS = 10 + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. If you choose svg you need to set +# HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible in IE 9+ (other browsers do not have this requirement). + +DOT_IMAGE_FORMAT = png + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to +# enable generation of interactive SVG images that allow zooming and panning. +# Note that this requires a modern browser other than Internet Explorer. +# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you +# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible. Older versions of IE do not have SVG support. + +INTERACTIVE_SVG = NO + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/qsstv/documentation/manual/manual.txt b/qsstv/documentation/manual/manual.txt new file mode 100644 index 0000000..e20c66c --- /dev/null +++ b/qsstv/documentation/manual/manual.txt @@ -0,0 +1,966 @@ +n/*************************************************************************** + * Copyright (C) 2000-2011 by Johan Maes * + * on4qz@telenet.be * + * http://users.telenet.be/on4qz * + * * + * 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +/** \file */ + +// Documentation +/*! \mainpage QSSTV 9.2 +\author Johan Maes ON4QZ + +\section intro_sec Introduction + +QSSTV 9 is a program for receiving and transmitting SSTV and HAMDRM (sometimes called DSSTV). It is compatible with most of MMSSTV and EasyPal
+ + +!!! ALSO READ THE FAQ AT http://users.telenet.be/on4qz/qsstv_9/faq.html !!! + +This manual is divided in the following sections: +- \subpage whatsnew +- \subpage changelog +- \subpage installation +- \subpage gettingstarted +- \subpage statusbar +- \subpage imagepopup +- \subpage RXSSTV +- \subpage TXSSTV +- \subpage RXDRM +- \subpage TXDRM +- \subpage fixdrm +- \subpage gallery +- \subpage editor +- \subpage externalprog +- \subpage todo1 +- \subpage credits +- \subpage Copying + +73's +Johan ON4QZ + + +\page whatsnew What's New +QSSTV 9.2.x has the following new features compared to QSSTV 8.2.x + +- Build on top QT 5.x ( and also compatible with Qt 4.8) +- Better synchronization in SSTV mode +- New SSTV narrow band modes (MP73-N,MP110-N,MP140-N,MC110-N,MC140-N,MC180-N) +- Changed GUI layout +- Gallery window now shows all the rx/tx images. +- RX and TX images for SSTV and DRM now in separate gallery tab. +- TX Stock Images for fast selecting preferred TX Images. +- SSTV Images only saved after a configurable percentage completed +- Setting and reading frequency via CAT interface +- Preferred fast frequency selection for SSTV and DRM +- Editor/templates: multi-line inputs for x,y and z +- Pulse audio direct interface + + + + +\page changelog Change log + +\li 20170817 QSSTV 9.2.6 + - Changed the .pro file for autodetecing correct libopenjpg2 (DL1JBE -Tom) + - ftp transfer - initialize bug fix (VK6MN- Mike) + - Help manual -> path correction and corrected some typo's (DJ0MBA- Marinus) + - SSTV initialize bug fix (Adrian) + - Camera support for Raspberry PI Cam + - fixed audio loopback use + - fixed transmission after stop, image was not restarted at top + + + +\li 20161022 QSSTV 9.2.5 +- Screen size reduced for use with smaller screens-fixed. +- rig control - added capabilities test. + +\li 20161022 QSSTV 9.2.4 +- some minor bugfixing +- eliminated online status setting in Config Notication tab (doubled with setting in Operator settings) +- bug fix: incremental counter on filename wih hybrid mode +- added filename to statusbar when sending DRM image + +\li 20161021 QSSTV 9.2.3 +- bug fix: memory leak in tx DRM when loading/resizing images +- faster compression of tx images +- bug-fix: hybrid mode saved images with wrong file extension. Receivers tried downloading wrong file. +- Added all the patches (more then 20) from Mike, VK6M: rx/tx notifications and a large number of patches for image handling +- Added new features (such a save waterfall image) implmented by Mike, VK6M +- Todo: update the documentation ! + + + +\li 20160929 QSSTV 9.2.2 +- added CTRL_F keyboard shortcut to switch to and from full screen. This is mainly used on low resolution screens where the top and/or +bottom taskbars are masking part of the QSSTV window. + +\li 20160929 QSSTV 9.2.1 +- added low Resolution mode +- changed SSTV sync detection +- some minor bug fixes + + +\li 20160703 QSSTV 9.1.8 + - The program uses jp2 files for sending images in DRM mode. The file extensions were not correct. ->fixed + - changes of the configuration do not need a restart of the program anymore (adding templates, stock images, DRM Profiles) + - images in the gallery are now resized. + - added menu option To Tx in Gallery Images RX and TX. + - image in viewer is zoomed when resized while keeping aspect ratio. + - Screen size reduced to 791x684 for use with smaller screens. + - Added voice/data port selection for PTT (thanks to David VK3DCU) + + +\li 20160701 QSSTV 9.1.7 + - Normally the audio is generated on the left channel. There is now an option in the soundconfig + to swap left and right channel. Some radios like the TS590 are using the right audio channel via USB (test done by PE1DFQ - Gerard). + - On request from Michael DL3YAP: Added CW ID button to manually send the CW ID as specified in the CW config. + - Name of ID button in the lower status bar changed to WF ID (waterfall ID) to avoid confusion with CW ID. + - Fixed bug: Waterfall font size was not correctly saved. + - Added "Bold" option for Waterfall font. + + +\li 20160628 QSSTV 9.1.6 + - ftp transfer crashes when transmitting in hybrid mode-> solved + +\li 20160416 QSSTV 9.1.5 + - upload received images to ftp server (sstv and drm) gave file error -> solved + +\li 20160415 QSSTV 9.1.4 + - rx image save button was not working -> fixed + +\li 20160410 QSSTV 9.1.3 + - fixing compiler error: missing function cleanupcache in release mode + +\li 20160409 QSSTV 9.1.2 + - implementation of image cache for faster image display in the gallery + - bug fix ,race condition for RxNotification + +\li 20160408 QSSTV 9.1.1 + - replaced jpeg2000 library Jasper with openjpeg because some distros won't support Jasper anymore. Jasper has not been maintained for more than 10 years. + +\li 20151130 QSSTV 9.0.9 +- directories are auto-created if they don't exist +- additional CAT command now also works with rigctld + + +\li 20150930 QSSTV 9.0.8 +- fix DRM status update + +\li 20150929 QSSTV 9.0.7 +- fixed hang on exit + +\li 20150928 QSSTV 9.0.6 +- performace optimization (especially for Raspberry Pi 2) + +\li 20150926 QSSTV 9.0.4 +- added option for slow cpu (see Options ->GUI) This makes it possible to run QSSTV running on a Raspberry Pi 2. +- minor change to ALSA sound interface. +- some more bug fixing + +\li 20150910 QSSTV 9.0.3 +- xmlrpc bug fix (persistent connections) +- manual (a lot of) spelling corrections +- compatibility with Qt 4.8 + +\li 20150907 QSSTV 9.0.2 +- changed configuration frequencies to allow for data modes on Icom +- changed Editor, you may need to check/re-edit your template files (text offsets may have changed) + +\li 20150831 QSSTV 9.0.1 +- first release + + + +\page installation Installation + +Warning: from version 9.1.1 and higher, Jasper library is dropped and openjpeg is used +We need openjpeg2 (e.g. libopenjpeg2.1 or higher) and not libopenjpeg 1.5 + +\section step1 Step 1: Prerequisites +Before you can compile QSSTV make sure that you have installed the following software +- g++ +- libfftw3-dev +- qt5-default (qt4-default) +- hamlib-dev +- libasound2-dev +- libpulse-dev +- libopenjp2-7 +- libopenjp2-7-dev +- libv4l-dev + + +QSSTV is compatible with Qt 4.8.6 but mostly tested on Qt 5.4.x or higher + +

On Ubuntu, Debian or Mint you can type: + +

sudo apt-get install g++ libfftw3-dev qt5-default libpulse-dev
+
sudo apt-get install hamlib-dev libasound-dev  libv4l-dev
+
sudo apt-get install libopenjp2-7 libopenjp2-7-dev
+ +If you don't find libopenjp2-7 you can download it with the follwing commands if you're running a Debian derived distribution: + +
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.1.0-2_i386.deb
+
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.1.0-2_i386.deb
+or +
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.1.0-2_amd64.deb
+
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.1.0-2_amd64.deb
+ +and install the packages with the package manager or simply by double clicking on them. +First install the library and then the development package. This is the case for example for Linux Mint 17.3. + + +For specific instructions on installation on different distributions: have a look at the FAQ +html http://users.telenet.be/on4qz/qsstv_9/faq.html + +\section step2 Step 2: Getting the software + +The latest versions of QSSTV is always available at http://users.telenet.be/on4qz +Download the latest tar file to a local directory (e.g. ~/Downloads) + +\section step3 Step 3: Compile and Install the software +Go to the directory you have chosen and extract the tar file. +Note: replace the 9.1.1 with the appropriate version you have downloaded +
+>cd ~/Downloads
+>tar -xvzf qsstv_9.1.1.tar.gz
+>cd qsstv_9.1.1
+>qmake
+>make
+>sudo make install
+
+\section step4 Step 4: Run QSSTV +You can now run the program by typing qsstv at the prompt of a terminal session, or make a short cut on your desktop. +
>qsstv
+If you have problems compiling the software, please give as much information as possible but at least: +- Linux Distribution (e.g. Ubuntu 12.10) +- QT Version (e.g Qt 5.4.1) +- Dump of the compile process showing the error + +\page gettingstarted Getting Started + +The program is build around 3 windows +- Receive window: Receive functions and configuration +- Transmit window: Transmit functions and camera control +- Gallery window: History of received images, transmit images and templates +The program will remember the last position and the size of each window on restart. + +\section config Configuration + +Before we can use QSSTV you need to do some configuration. +\image html config.png +The configuration tool is accessed through the "Options" menu in the receive window. +The following tabs are available +

+\li Personal Settings +

+\image html config1.png +

+- Call sign +- First Name +- Last Name +- QTH +- Locator (Grid Square) +
This information can also be used in templates (see also \ref editor) +

+ +\li Directories +

+\image html config2.png +

+- RX SSTV Images: directory for saving the SSTV received images +- RX DRM Images: directory for saving the DRM received images +- TX Images: directory for images to transmit +- Templates: directory where the template files are stored +- Audio Records: directory for audio files (where you save/read recorded audio files) +- Documentation: URL of the user manual (if you copied the manual locally then you can point to it with e.g. file:///usr/share/doc/qsstv/manual +

+ +\li Gui +

+\image html config3.png +

+- Stretch: if checked, the image will fill the receive window (keeping the aspect ratio) else it will be displayed as is. +- Background Colour: colour used for image borders and background in the gallery +- Image Background Colour: Default image background +Push the push button to select the colour selector. +- Gallery: Rows and columns: set-up the number of rows and columns to be used in the Gallery tab. If you're running on a slow CPU (like on a Raspberry Pi) select row=1 and columns=1. +- Slow CPU: Select this option if you're running on a slow CPU (e.g. Rapsberry Pi) +- Low Resolution: Select this option if your display is for example 800x480. This options sets the maximum vertical resolution of QSSTV to less than 480 lines. It therefore removes some features +from the receive window (Rx Notification Window in DRM) and the transmit window (Image replay Preview and TX Notifications in DRM mode). +You can toggle to and from full screen by using the CTRL_F key combination. + + +

+ +\li Audio +

+\image html config4.png +

+- ALSA Input Audio Device : depending on your hardware (e.g. default,hw:0,0) +- ALSA Output Audio Device : depending on your hardware (e.g. default,hw:0,0) +- PulseAudio: native pulse audio interface +
Note: Most distributions use Pulse Audio interface.. You can select the audio card settings through the audio applet by right clicking on the Speaker icon and selecting the Sound Preferences +- RX Clock frequency : clock used while receiving SSTV images,(see also \ref calib) +- TX Clock frequency : clock used while transmitting SSTV images,(see also \ref calib) +- Sound Input routing + - From sound card: default mode + - From file: decode a previously recorded file + - From sound card and record: decode and record to a file (wav type, stereo 48000) + - Maximum recording size: limits the size of the recorded file +- Sound Output routing + - To sound card: default + - Playback: playback a wav-file (use 48000 samples per second recording in mono or stereo) + - Playback and record: playback the sound and record at the same time. + - Swap left and right channel + - If selected, audio will be sent on the right audio channel instead of the left channel (e.g Kenwood tranceivers using USB sound interfaces) + - PTT tone on other audio channel + - A tone will be sent on the right channel to enable PTT. If the above "Swap left and right channel" is selected, it will be sent on the left channel. +

+Note: To playback an audio file, be sure the format is of type wav and has a samplerate of 48000 samples/second. You can always open the file with audacity and export the file to adapt the type and/or + samplerate
+ + +\li CAT +

+\image html config5.png +

+ +- Special Serial Port: If you have a separate serial interface to control the PTT you can enable Special Serial Port to control it. +You can select RTS and or DTR in inverted or non-inverted mode (i.e. +RTS will assert RTS at +12V when the PTT is active +and -RTS will assert RTS at -12V). +RTS and/or +DTR is used most of the time. +The same goes for DTR. +
+You cannot select both +RTS and -RTS or +DTR and -DTR at the same time. +- Enable Hamlib Cat Interface + - Radio Model: drop down list from the radio models + - CIV Address: only used for ICOM, if left empty, the default address of the radio will be used + - Serial Port/host: either the serial port (e.g. /dev/ttyUSB0) or the host address (e.g. localhost:4532) + - Handshake, Parity, Data bits, Stop bits, Baud rate: serial port settings + - PTT Serial Port: serial port (e.g. /dev/ttyS0) only used if "Enable PTT serial Interface" is selected + - PTT Control via: If the radio uses a CAT command to activate Transmission then select "CAT". If you have a radio that does not support such a CAT command, you can +let Hamlib use the RTS or DTR on the serial port specified by "PTT Serial Port". +- There are 2 CAT ports: + -CAT (voice port): the normal setting + -CAT (data port): to be used with some kenwood tranceivers(e.g. kenwood TS-480) to force data port instead of audio port (source: David VK3DCU) +Example: IC-706MKIIG via a cat interface such as interfaceOne. +\anchor flrigconfig +- Enable XMLRPC + This allows you to connect to the Flrig program using the XMLRPC protocol. Flrig will handle all the communication with the transceiver (including PTT). +- TX Delay: The program will wait for the selected delay before transmitting any audio. + + +Note: The option Enable XMLRPC excludes the use of hamlib. + +A sample set-up of Flrig is shown below. +

+\image html flrig1.png +

+ + + + +\li CW +

+\image html config6.png +

+- Tone: frequency of the CW tone +- Words per Minute: CW transmission speed +- Text To Send: this text will be send at the end of an image transmission if the option is enabled. + + + + +\li Repeater +

+\image html config7.png +

+- Enable repeater: enable repeater operation +- Image Interval (min): interval time before sending one of the Idle Images +- Repeater TX mode: the mode the repeater will use to send the images +- Idle Image[1-4]: images send by the repeater if there is no activity for more than the interval time +- Idle Template:template that will be super-imposed on the idle images +- Repeater Template: template that will be super-imposed on the repeated(received) images + +\li FTP +

+\image html config8.png +

+This is used to save the received images to an FTP server. The images will also still be saved in the local rx folder. +- Enable FTP: enable ftp operation +- FTP Port: default 21 +- Default Image Format: select the image format from the drop down bow (used only in SSTV) +- Remote Hostname: hostname of the ftp server (e.g. myftp.home.net or 192.168.0.1) +- Remote directory:the ftp server directory where you'll store the images +- FTP Login name: your login name on the server (can be anonymous) +- FTP Password: if you need one, otherwise leave blank +- Image store: + - Image1 - image30: The files will be saved under the generic name imageXX, where xx ranges from 1 to 30. When a new image arrives, the old images are shifted down + (i.e. image29 becomes image30, image28 becomes image 29 etc ..) and the new one is stored as image1. + -file name: the image (or other type of file) is stored with a file name derived from the mode (SSTV) or from the file name transmitted in DRM. + +Note: This FTP server is unrelated to the FTP server for Hybrid Mode. + +You can test the connection by clicking the Test connection button. It will set-up a connection to the server and send a test file to check if all parameters are correct. +You will either see a pop-up with "Connection OK" or an error message showing the reason of the fail. + + + + +\li Waterfall +

+\image html config9.png +

+- Start Pic: Waterfall text to send at the beginning of a DRM transmission +- End Pic: Waterfall text to send at the end of a DRM transmission +- FIX: Waterfall text to send at the beginning of a DRM retransmission +- BSR: Waterfall text to send at the beginning of a DRM request for retransmission +
Note: you can also use %%m. This will be replaced by your call sign + + +\li Hybrid +

+\image html config10.png +

+- Enable Reception in Hybrid Mode: allows reception of hamDRM in hybrid mode. If this is not enabled, hybrid mode files will not be shown or stored. +- FTP Port: default 21 (cannot be modified at this moment for compatibility with EasyPal) +- Remote Hostname: hostname of your ftp server +- Remote directory:the ftp server directory where the stored images are +- FTP Login name: the login name on the server +- FTP Password: will be encrypted + +Login name, password,hostname and directories will be encrypted before being sent on the air. + +If you want to use the special server, the directories to store images is relative to the directory HybridFiles1. So first create a top level directory HybridFiles1. +If you leave the Remote Directory empty, then the files will be placed in the directory HybridFiles1. +If you put for example "testdir" in the Remote Directory (as shown in the above screen shot), then you need to create testdir under HybridFiles (HybridFiles1/testdir). + +QSSTV will not create those directories for you. + +EasyPal also use two other directories on the same level as HybridFiles1 +- OnlineCallsigns1 +- RxOkNotifications1 + +You can create them on your server but they are not used by QSSTV at this moment. + +You can test the connection by clicking the Test connection button. It will setup a connection to the server and send a test file to check if all parameters are correct. +You will either see a pop-up with "Connection OK" or an error message showing the reason of the fail. + +\li DRM Profiles +

+\image html config11.png +

+Used for quick selection of the most common settings you use in DRM. +Choose a short name for the profile and make a selection for all the parameters. +The name will appear in the Profiles drop-down box in the Transmit window for DRM. + +\li Frequencies +\anchor configFreq +

+\image html config12.png +

+- List of selectable frequencies. Click Add to add a new combo frequency/mode/modulation. Enter the frequency and select the mode and modulation type.
+To move a frequency/mode/modulation up or down the list, click first on the entry in the table and then click on one of the arrow buttons. + +- Hamlib Data Command: (only used with Hamlib) As far a I know Hamlib does not support switching the Icomxxx to data mode. +As a result, if you for example selected USB-D1 on a Icom 7600,changing the frequency will switch the rig back to the regular USB (data mode off).
+Hamlib Data Command allows you to send a "raw command" that will be executed when you change frequencies. + +- Example: FEFE7AE01A060101FD and Hex button checked: will put the Icom in data mode D1 (LSB, USB or FM) and the Filter 1. + +- Hex: if checked the text is interpreted as hex values else it will be interpreted as a regular ASCII string. + +- Note 1: you can put any valid raw command here, it will be send on every frequency change + +- Note 2: Flrig does not support FM data modes. + + + +\section calib Calibration +Note: Calibration is only needed for SSTV mode +All SSTV applications need an accurate and stable clock. The accuracy of a PC clock is not always correct. +Therefore it's necessary to execute some sort of calibration. +You need to synchronize your PC with an network time server via the ntp protocol. +Every Linux distribution has some configuration tool that allows you to install the ntp client. Be sure it's active. +You can check it with: +
+>ntpdc -p
+
+ +The selected ntp server should have an asterisk in the first column. +
+remote           local      st poll reach  delay   offset    disp
+=======================================================================
+*stratum1dc1.bc  10.119.37.19     2   64  377 0.00386  0.036853 0.06850
+
+ +You can now launch the Calibration.

+It will take several minutes to complete. Be sure to wait long enough, the progress is extremely slow +

+\image html calibration.png +When RX and TX calibration is finished, press the OK button to accept the new values. + +\li Note: You can always enter the clock values manually. + + +\page statusbar Statusbar +\image html statusbar.png +- Radio Frequency: the current frequency of the radio (only if CAT interface is enabled) +- Drop down menu to set the radio on the selected frequency (only if CAT interface is enabled) (see also \ref configFreq Config freq) +- WF Text: gives you a selection of user defined text you can send to appear as waterfall text. +

+\image html wftextpopup.png +
+Send the text by clicking the tx button next to it
+The %%m will be substituted by your callsign and the %%s by the average SNR of the last received DRM stream. +

+ +- BSR: When a file is not completely received, you can ask for a retransmission. + \image html bsr_select.png + By default the latest received file is selected (you can select another one through the drop-down box). +
There are two modes: EasyPal and Compatible. EasyPal mode is more advanced and is normally used as EasyPal is the de facto standard on Windows and QSSTV also uses this mode in BSR reception. +
Note: BSR is greyed out in SSTV. +

+- WF ID: send callsign in waterfall - this is a short-cut to send your own callsign in the waterfall +- CW ID: send callsign in CW +

+- PTT indicator: turns red while the PTT is activated. + +\page imagepopup Image Viewer +All the images displayed in QSSTV have pop-up actions. This is an example for the Gallery. + +
+\image html Gallery_image_options.png +

+By right clicking on the images, a pop-up window appears that can have one or more of the following actions: +- New: open the editor to create a new image. +- Load: load new file into window +- To TX: send image to TX window +- Edit: edit the selected image +- Print: print the selected image +- Delete: delete the selected image, a pop-up will ask if you want to delete the file also from disk., if so the file will be moved to the trash folder. +- View: Display the image in a new window actual size (the window is resizeable). +- Properties: displays the image and file properties if available + + + + +\page RXSSTV Receive SSTV Window +\image html rxwidget1.png +Menu toolbar: +\li \image html start.png +start receiving images +\li \image html stop.png +stop receiving images +\li \image html replay.png +force a restart (e.g. when you see a wrong synchronization then click the restart button). +\li \image html filesave.png +save the image at any time using the save button. You will probably want to use this if the Auto-save is not selected. Note only active in SSTV mode. +\li \image html eraser.png +erase the screen + + + +Sync Indicator (vu-meter S): +- sync quality ranging from 0-10 + +Volume (vu-meter V): +- adjust your recording level to half scale. + +SSTV tab: +- Use VIS Code: the reception will only start if a correct VIS code is received. If left unchecked, QSSTV will auto-detect the modes (this is the most used method). +- Auto-slant: A lot of times the receive clock of the local station is not equal to the transmit clock of the sending station. The result is a slanted image. +If The auto-slant is activated, the program will automatically try to compensate for those clock differences. +You may notice a momentary freeze of the image build-up while the program is recalculating the image. +- Auto-save: When the program detect the end of the image, the image will be saved to disk. +- Save if Complete %: Auto-save if the image is at least completed for the indicated percentage. +- Mode: you can either select AUTO or one of the supported SSTV modes. +When AUTO is selected, the program will try to determine the mode of the image it is receiving. +If a specific mode is selected the program will reject all images except if they are transmitted in the selected mode. +- Signals: Normal and DX. +When the Sensitivity is set to DX the signal will run until the end of the image before resynchronization. + + +Spectrum and Waterfall:
+There are three markers for SSTV (red lines): +- 1200: Sync frequency +- 1500: Lower video frequency +- 2300: Upper video frequency +In DRM, the markers indicate the 3 unmodulated carrier frequencies + + +\page TXSSTV Transmit SSTV Window +\image html txwidget1.png + + +The TX progress-bar indicates the progress of the transmission.

+\anchor sstvMenu +Menu toolbar: +\li \image html start.png +start transmitting images +\li \image html stop.png +stop transmitting images +\li \image html tone.png +sends a repeater tone of 1750 Hz +\li \image html fileopen.png +loads a file in the transmit window +\li \image html edit.png +opens the image editor +\li \image html camera.png +takes a snapshot if there is a camera installed that is supported by v4l2 +\li \image html binary.png +only used in DRM mode +\li \image html doubletone.png +let you select frequency and duration of a tone to send +\li \image html sweep.png +let you select the sweep frequencies and duration to send +\li \image html hybrid_dis_checkbox.png +This check-box is disabled in SSTV mode +\li \image html refreshbutton.png +You can refresh the content of the replay image by clicking the Refresh button (e.g. when you have loaded a new image in the preview image window). + + +

+- Select the transmission mode (Martin 1, Scottie etc.).

+ +\anchor Control +- Select CW if you want to append a morse message after the image (the message is set in Options->Configuration->CW) . +- If the VOX check-box is set a tone will be sent before the actual image is sent so that you can use the VOX +on your transceiver (if you do not have PTT control). +- Select the template (or none) you want as an overlay (see \ref gallery). Only the templates +that are in the Gallery will be available. + +The text inputs correspond to the following macros: + +\li TO: %%c - call of the contacted station +\li RSV %%r - RSV (radio-strength-video best is 595) +\li Op: %%o - name of the operator of the contacted station +\li x %%x - comment1 +\li y %%y - comment2 +\li z %%z - comment3 +\n see also \ref editor + +- The last received image is displayed at the bottom right. It will be updated automatically as +new images are received. They can be inserted if you use a template containing an "image replay object" see also \ref editor +
+Right clicking on this image also allows you to load other images for insertion. Use the refresh button to update the main window if necessary. + + +\page RXDRM Receive DRM Window +\image html receivedrm.png + +SNR (vu-meter S): +- SNR in dB + +Volume (vu-meter V): +- adjust your recording level to half scale (better too low than too high). + +Received segments: +\image html rxdrm_segments.png +- green: correctly received segments +- red: missing segments + +Constellation: +\image html rxdrm_constellation.png + +- FAC constellation (always QAM 4) +- MSC constellation. + + +Receive status +\image html rxdrm_status.png +- Mode (A,B or E) +- Bandwidth (2.2 kHz or 2.5 kHz) +- Interleave (Short or Long) +- Protection (Normal or High) +- QAM (4,16 or 64) +- SNR (should be above 6 dBm) +- Offset (0 Hz if no frequency offset) +- Total Segm.: total number of segments in the file +- RX Sgmnts.: number of correctly received segment +- Cur. Sgmnt.: segment currently transmitted +- Transp. ID; unique identifier for the current stream. +- Callsign from the transmitting station + + +\image html statusleds.png +- TIME: green if time sync else red +- FRAME: green if frame sync else red +- FAC: green if FAC correctly received else red +- MSC: + - red: incorrectly received + - green: correctly received + - yellow: already received + +When an data stream is received , the program will try to decode it and save it in the receive image directory. +If the data stream is a text file it will be displayed in a separate window. Just click OK to close it. + +\image html waterfall.png +Spectrum:
+You can select the spectrum or the waterfall by clicking in this window. In DRM the waterfall gives you better view. +The three markers above the waterfall indicate the position of the pilot frequencies. This helps tuning the radio to the correct frequency. +

+(8) see \ref RXSSTV + + +\page TXDRM Transmit DRM Window +\image html transmitdrm.png + + + +see also \ref sstvMenu under SSTV TX + +- \image html binary.png +Click here to send a binary file (basically any file will do) + +- \image html hybrid_checkbox.png +When this check-box is checked, the image is transmitted in hybrid mode. + +For the other icons and actions see also \ref TXSSTV +
+
+Mode Selection +\image html txdrm_options.png +
+- Mode (A,B or E) +- Bandwidth (2.2 kHz or 2.5 kHz) +- Interleave (Short or Long) +- Protection (Normal or High) +- QAM (4,16 or 64) +- Reed Solomon: (rs1, rs2, rs3 or rs4).File encoder for forward error correction. On HF it is recommended to always use Reed Solomon. The most often used is rs2. +The higher the number, the more protection but also the more overhead. +- Profile: quick selection of a profile (i.e. settings of mode,QAM ...) as defined in the Options->Configuration->DRM Profiles) +
+ +\image html txdrm_status.png + +The TX progress-bar indicates the progress of the transmission. + +see also \ref Control under SSTV TX +- Last received image will be updated automatically as +new images are received. They can be inserted if you use a template containing an "image replay object" see also \ref editor +
+- Compression +

+ +\image html txdrm_compression.png +
Avoid to send huge images (especially if you're not in hybrid mode).
+You can drag the slider to compress the image before it is sent (the original image is not modified). The file size is shown on the right. You can see the result in the image frame when you release the handle. +
+Note: This does not include the overhead of the RS-encoding. + + +\page fixdrm Sending FIX in DRM +\image html fix.png + +When the image you transmitted is not correctly received, the other station can send a BSR. When you receive a BSR and it is destined for you, then the above popup will show. +You can either send the fix or cancel.
+If the BSR is not for you then the following window will pop-up for a few seconds. +\image html bsr_nfy.png + + + +\page gallery Gallery +The Gallery contains six tabs. The directories where the different images are stored are configured in the Directories tab of the Configuration. +
+\image html Gallery_rx.png +
+- RX SSTV: SSTV images are stored on disk and shown here if the Auto-save is enabled in the receive window and the minimum percentage is reached +- RX DRM: All images received in DRM mode are stored on disk and shown here. +- TX SSTV: When sending an image in SSTV mode then the resulting images is stored on disk and shown here (this includes the template overlay). +- TX DRM: When sending an image in SSTV mode then the resulting images is stored on disk and shown here (this includes the template overlay). +- TX Stock: Contains your selection of "Stock" images you want to use for transmission. +- Templates: template images to be used as overlay on tx images +

+Some examles +\image html Gallery_txdrm.png +
+\image html Gallery_templates.png + + + + +\page editor Editor +The editor can be used for regular image editing and for the creation and editing of template images. +Template images are used as overlays. They will be dynamically adapted when you select the template in the TX-window. +While in edit mode, you can change all the attributes (such as size, position, colours etc ...). If you save the canvas as an +image, the scene will be rendered (i.e. flattened) and become a single image object. If you save the canvas as a template, all objects +will be accessible again when loaded. + +
+To create an object, click on the left menu to select the type of object (e.g circle) and then click on the canvas where you want the object positioned. +Just click on an item to select it. A outline of the item will be shown by a dashed line. +If you hoover over the object you will see the cursor change to a hand-icon (in the middle of the object) to move it, or to a resize-icon if you are on a border. + +The attributes (line colour, fill colour, gradients etc ..) that are active in the top menu will be used to create the item. +Object have also a z-component, i.e they can be in front our behind another object. This can be changed by right clicking on the item and use the Arrange selection. + + +\image html editor_1.png +\li Top menu 1 +- Image Size: Select the size of the image: the outline of the image will be shown on the canvas. +\image html editor_image_size.png +- Font: drop down box where you can select the text font +- Font size: text size +- Bold : bold text +- Italic: italic text +- Underline: underlined text +- Pen width: width of lines in number of pixels +\li Top menu 2 +- Fill: Fill colour drop down menu +- Line: Line colour drop down menu +- Gradient: Gradient selection menu + +\li Left menu +- \image html arrow.png +select/deselect objects +- \image html fcircle.png + create filled circle/ellipse +- \image html frect.png + create filled rectangle +-\image html line.png + create line +-\image html camera.png +insert image +-\image html replay.png + insert replay image place-holder. When the template will be loaded in the TX-window, this place-holder will replaced by the last received image +-\image html text.png +create text. When you select this option a window will pop-up to enter text. +
+-\image html entertext.png +
You can enter multiple lines of text. Click OK, the window will be hidden and you can click on the canvas to position the text. +The text will appear on the canvas. +-\image html multiline.png +
+ +\li Bottom menu +- Horizontal Shear: shear selected object horizontally +- Rotate: rotate selected object +\li Right menu +- Vertical Shear: shear selected object vertically +

+If you right click on an object then the following pop-up menu will be shown:

+\li Arrange +- Forward - one level forward +- Backward - one level backward +- Bring to Front - all the way to the front +- Sent to Back - all the way to the back +\li Change text - change the text of a text object +\li Expand - object will expand horizontally and vertically to fill the complete canvas +\li Delete - remove selected object from the canvas +\li Lock - lock items so that they can not be moved or resized +\li Unlock - unlock selected items + +

We need some sort of macro's to enable variable text when transmitting images. The editor uses predefined strings that will be replaced by +the "actual content" when the template is processed just before transmission.
+ +Here's an example of the editor using macros and the result in the transmitter.

+
+\image html editor_2.png +

+\image html transmitdrm.png + + +Following macro's are supported:
+Macro's where the value is defined in the configuration +\li %%m - my callsign +\li %%q - my QTH +\li %%l - my locator +\li %%n - my last name +\li %%f - my first name + +Macro's where the value is entered in the TX-window prior to transmission +\li %%c - call of the contacted station +\li %%r - RSV (radio-strength-video best is 595) You can also input free text as is sometimes required for contest (e.g. 595#007 or Good Copy) +\li %%o - name of the operator of the contacted station +\li %%x - comment1 +\li %%y - comment2 +\li %%z - comment3 + +Note: comment 1,2 and 3 can be multi-line. + +Macro's where the value is defined by the system +\li %%t - time in hours:minutes format +\li %%d - date in year/month/day format +\li %%v - qsstv_version +\li %%s - SNR - only to be used for DRM in the WF Text see also \ref statusbar + + + +\page credits Credits +- SSTV:
+Many thanks to all testers and users of QSSTV - too many to name them all. +

+- DRM:
+I started developing the DRM functionality in QSSTV after studying the excellent work Ties Bos (PA0MBO) did on txrxamadrm.
+see: http://www.pa0mbo.nl/ties/public_html/hamradio/txamadrm/index.html
+The software is NOT based on the hamdrm.dll but on DIORAMA (http://nt.eit.uni-kl.de/static/diorama/index.html)
and adapted by PA0MBO. For more information , see the manual of txrxamadrm. + +This document contains references to Easypal (by VK4AES). Erik Sundstrup was kind enough to give me permission to use the extended BSR functionality and the DRM Hybrid mode. +Easypal was used extensively to test my program.
+
+\image html vk4aes.jpg +

+ +Erik is now silent key as of 14th march 2015. We will miss him. +
+I hope there will be other OM's that take up the maintenance,enhancements and development of EasyPal so that people running Windows will continue to enjoy his software. + +\page externalprog External Programs + +QSSTV can interface with other programs. +

Flrig see \ref flrigconfig + +

+Cqrlog: QSSTV (when in DRM mode) sends the following information to Cqrlog: +- program: identifies QSSTV +- version: protocol version +- date: based on UTC +- time: based on UTC (time when the images is correctly received) +- endtime: based on UTC (always = time) +- call: call sign of the received station +- mhz: frequency in MHz +- mode: SSTV (ADIF restriction: there is no DSSTV nor DRM specified in ADIF, SSTV is the closest match) +- notes: contains file name, DRM mode information (i.e mode, QAM, protection.. hybrid) + +

+- Setup:

\image html cqrlog1.png
+

+- Do not enable Run Fldigi ... +- Start Cqrlog and select Remote mode for Fldigi +- If you want to see the QSO's: Select "Show QSO list" from the file menu.

+\image html cqrlog2.png +
+Note: Unless you configured the Automatic refresh, you will only see the QSO's if you hit the Refresh button. + + +\page todo1 To Do +\li fax implementation and testing +\li expand function in editor +\li improve documentation + + +\page Copying Copying + +This software uses Qt for Linux: see http://qt.digia.com/ +The application is released under GPLv3 + +*/ + + diff --git a/qsstv/documentation/manual/manual/Copying.html b/qsstv/documentation/manual/manual/Copying.html new file mode 100644 index 0000000..c96f98b --- /dev/null +++ b/qsstv/documentation/manual/manual/Copying.html @@ -0,0 +1,77 @@ + + + + + + +QSSTV: Copying + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Copying
+
+
+

This software uses Qt for Linux: see http://qt.digia.com/ The application is released under GPLv3

+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/Gallery_image_options.png b/qsstv/documentation/manual/manual/Gallery_image_options.png new file mode 100644 index 0000000..e46c156 Binary files /dev/null and b/qsstv/documentation/manual/manual/Gallery_image_options.png differ diff --git a/qsstv/documentation/manual/manual/Gallery_rx.png b/qsstv/documentation/manual/manual/Gallery_rx.png new file mode 100644 index 0000000..3de5831 Binary files /dev/null and b/qsstv/documentation/manual/manual/Gallery_rx.png differ diff --git a/qsstv/documentation/manual/manual/Gallery_templates.png b/qsstv/documentation/manual/manual/Gallery_templates.png new file mode 100644 index 0000000..ff922fb Binary files /dev/null and b/qsstv/documentation/manual/manual/Gallery_templates.png differ diff --git a/qsstv/documentation/manual/manual/Gallery_txdrm.png b/qsstv/documentation/manual/manual/Gallery_txdrm.png new file mode 100644 index 0000000..fd5e4c1 Binary files /dev/null and b/qsstv/documentation/manual/manual/Gallery_txdrm.png differ diff --git a/qsstv/documentation/manual/manual/RXDRM.html b/qsstv/documentation/manual/manual/RXDRM.html new file mode 100644 index 0000000..23fe890 --- /dev/null +++ b/qsstv/documentation/manual/manual/RXDRM.html @@ -0,0 +1,138 @@ + + + + + + +QSSTV: Receive DRM Window + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Receive DRM Window
+
+
+
+receivedrm.png +
+

SNR (vu-meter S):

    +
  • SNR in dB
  • +
+

Volume (vu-meter V):

    +
  • adjust your recording level to half scale (better too low than too high).
  • +
+

Received segments:

+rxdrm_segments.png +
+
    +
  • green: correctly received segments
  • +
  • red: missing segments
  • +
+

Constellation:

+rxdrm_constellation.png +
+
    +
  • FAC constellation (always QAM 4)
  • +
  • MSC constellation.
  • +
+

Receive status

+rxdrm_status.png +
+
    +
  • Mode (A,B or E)
  • +
  • Bandwidth (2.2 kHz or 2.5 kHz)
  • +
  • Interleave (Short or Long)
  • +
  • Protection (Normal or High)
  • +
  • QAM (4,16 or 64)
  • +
  • SNR (should be above 6 dBm)
  • +
  • Offset (0 Hz if no frequency offset)
  • +
  • Total Segm.: total number of segments in the file
  • +
  • RX Sgmnts.: number of correctly received segment
  • +
  • Cur. Sgmnt.: segment currently transmitted
  • +
  • Transp. ID; unique identifier for the current stream.
  • +
  • Callsign from the transmitting station
  • +
+
+statusleds.png +
+
    +
  • TIME: green if time sync else red
  • +
  • FRAME: green if frame sync else red
  • +
  • FAC: green if FAC correctly received else red
  • +
  • MSC:
      +
    • red: incorrectly received
    • +
    • green: correctly received
    • +
    • yellow: already received
    • +
    +
  • +
+

When an data stream is received , the program will try to decode it and save it in the receive image directory. If the data stream is a text file it will be displayed in a separate window. Just click OK to close it.

+
+waterfall.png +
+

Spectrum:
+ You can select the spectrum or the waterfall by clicking in this window. In DRM the waterfall gives you better view. The three markers above the waterfall indicate the position of the pilot frequencies. This helps tuning the radio to the correct frequency.
+
+ (8) see Receive SSTV Window

+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/RXSSTV.html b/qsstv/documentation/manual/manual/RXSSTV.html new file mode 100644 index 0000000..7dd6969 --- /dev/null +++ b/qsstv/documentation/manual/manual/RXSSTV.html @@ -0,0 +1,121 @@ + + + + + + +QSSTV: Receive SSTV Window + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Receive SSTV Window
+
+
+
+rxwidget1.png +
+

Menu toolbar:

    +
  • +start.png +
    + start receiving images
  • +
  • +stop.png +
    + stop receiving images
  • +
  • +replay.png +
    + force a restart (e.g. when you see a wrong synchronization then click the restart button).
  • +
  • +filesave.png +
    + save the image at any time using the save button. You will probably want to use this if the Auto-save is not selected. Note only active in SSTV mode.
  • +
  • +eraser.png +
    + erase the screen
  • +
+

Sync Indicator (vu-meter S):

    +
  • sync quality ranging from 0-10
  • +
+

Volume (vu-meter V):

    +
  • adjust your recording level to half scale.
  • +
+

SSTV tab:

    +
  • Use VIS Code: the reception will only start if a correct VIS code is received. If left unchecked, QSSTV will auto-detect the modes (this is the most used method).
  • +
  • Auto-slant: A lot of times the receive clock of the local station is not equal to the transmit clock of the sending station. The result is a slanted image. If The auto-slant is activated, the program will automatically try to compensate for those clock differences. You may notice a momentary freeze of the image build-up while the program is recalculating the image.
  • +
  • Auto-save: When the program detect the end of the image, the image will be saved to disk.
  • +
  • Save if Complete %: Auto-save if the image is at least completed for the indicated percentage.
  • +
  • Mode: you can either select AUTO or one of the supported SSTV modes. When AUTO is selected, the program will try to determine the mode of the image it is receiving. If a specific mode is selected the program will reject all images except if they are transmitted in the selected mode.
  • +
  • Signals: Normal and DX. When the Sensitivity is set to DX the signal will run until the end of the image before resynchronization.
  • +
+

Spectrum and Waterfall:
+ There are three markers for SSTV (red lines):

    +
  • 1200: Sync frequency
  • +
  • 1500: Lower video frequency
  • +
  • 2300: Upper video frequency In DRM, the markers indicate the 3 unmodulated carrier frequencies
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/TXDRM.html b/qsstv/documentation/manual/manual/TXDRM.html new file mode 100644 index 0000000..f37d90e --- /dev/null +++ b/qsstv/documentation/manual/manual/TXDRM.html @@ -0,0 +1,124 @@ + + + + + + +QSSTV: Transmit DRM Window + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Transmit DRM Window
+
+
+
+transmitdrm.png +
+

see also sstvMenu under SSTV TX

+
    +
  • +binary.png +
    + Click here to send a binary file (basically any file will do)
  • +
  • +hybrid_checkbox.png +
    + When this check-box is checked, the image is transmitted in hybrid mode.
  • +
+

For the other icons and actions see also Transmit SSTV Window
+
+ Mode Selection

+txdrm_options.png +
+


+

    +
  • Mode (A,B or E)
  • +
  • Bandwidth (2.2 kHz or 2.5 kHz)
  • +
  • Interleave (Short or Long)
  • +
  • Protection (Normal or High)
  • +
  • QAM (4,16 or 64)
  • +
  • Reed Solomon: (rs1, rs2, rs3 or rs4).File encoder for forward error correction. On HF it is recommended to always use Reed Solomon. The most often used is rs2. The higher the number, the more protection but also the more overhead.
  • +
  • Profile: quick selection of a profile (i.e. settings of mode,QAM ...) as defined in the Options->Configuration->DRM Profiles)
    +
  • +
+
+txdrm_status.png +
+

The TX progress-bar indicates the progress of the transmission.

+

see also Control under SSTV TX

    +
  • Last received image will be updated automatically as new images are received. They can be inserted if you use a template containing an "image replay object" see also Editor
    +
  • +
  • Compression
    +
    +
  • +
+
+txdrm_compression.png +
+


+Avoid to send huge images (especially if you're not in hybrid mode).
+ You can drag the slider to compress the image before it is sent (the original image is not modified). The file size is shown on the right. You can see the result in the image frame when you release the handle.
+ Note: This does not include the overhead of the RS-encoding.

+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/TXSSTV.html b/qsstv/documentation/manual/manual/TXSSTV.html new file mode 100644 index 0000000..7b6a646 --- /dev/null +++ b/qsstv/documentation/manual/manual/TXSSTV.html @@ -0,0 +1,149 @@ + + + + + + +QSSTV: Transmit SSTV Window + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Transmit SSTV Window
+
+
+
+txwidget1.png +
+

The TX progress-bar indicates the progress of the transmission.
+
+ Menu toolbar:

    +
  • +start.png +
    + start transmitting images
  • +
  • +stop.png +
    + stop transmitting images
  • +
  • +tone.png +
    + sends a repeater tone of 1750 Hz
  • +
  • +fileopen.png +
    + loads a file in the transmit window
  • +
  • +edit.png +
    + opens the image editor
  • +
  • +camera.png +
    + takes a snapshot if there is a camera installed that is supported by v4l2
  • +
  • +binary.png +
    + only used in DRM mode
  • +
  • +doubletone.png +
    + let you select frequency and duration of a tone to send
  • +
  • +sweep.png +
    + let you select the sweep frequencies and duration to send
  • +
  • +hybrid_dis_checkbox.png +
    + This check-box is disabled in SSTV mode
  • +
  • +refreshbutton.png +
    + You can refresh the content of the replay image by clicking the Refresh button (e.g. when you have loaded a new image in the preview image window).
  • +
+
    +
  • Select the transmission mode (Martin 1, Scottie etc.).
  • +
+

    +
  • Select CW if you want to append a morse message after the image (the message is set in Options->Configuration->CW) .
  • +
  • If the VOX check-box is set a tone will be sent before the actual image is sent so that you can use the VOX on your transceiver (if you do not have PTT control).
  • +
  • Select the template (or none) you want as an overlay (see Gallery). Only the templates that are in the Gallery will be available.
  • +
+

The text inputs correspond to the following macros:

+
    +
  • TO: %c - call of the contacted station
  • +
  • RSV %r - RSV (radio-strength-video best is 595)
  • +
  • Op: %o - name of the operator of the contacted station
  • +
  • x %x - comment1
  • +
  • y %y - comment2
  • +
  • z %z - comment3
    + see also Editor
  • +
+
    +
  • The last received image is displayed at the bottom right. It will be updated automatically as new images are received. They can be inserted if you use a template containing an "image replay object" see also Editor
    + Right clicking on this image also allows you to load other images for insertion. Use the refresh button to update the main window if necessary.
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/arrow.png b/qsstv/documentation/manual/manual/arrow.png new file mode 100644 index 0000000..62229be Binary files /dev/null and b/qsstv/documentation/manual/manual/arrow.png differ diff --git a/qsstv/documentation/manual/manual/arrowdown.png b/qsstv/documentation/manual/manual/arrowdown.png new file mode 100644 index 0000000..0b63f6d Binary files /dev/null and b/qsstv/documentation/manual/manual/arrowdown.png differ diff --git a/qsstv/documentation/manual/manual/arrowright.png b/qsstv/documentation/manual/manual/arrowright.png new file mode 100644 index 0000000..c6ee22f Binary files /dev/null and b/qsstv/documentation/manual/manual/arrowright.png differ diff --git a/qsstv/documentation/manual/manual/bc_s.png b/qsstv/documentation/manual/manual/bc_s.png new file mode 100644 index 0000000..224b29a Binary files /dev/null and b/qsstv/documentation/manual/manual/bc_s.png differ diff --git a/qsstv/documentation/manual/manual/bdwn.png b/qsstv/documentation/manual/manual/bdwn.png new file mode 100644 index 0000000..940a0b9 Binary files /dev/null and b/qsstv/documentation/manual/manual/bdwn.png differ diff --git a/qsstv/documentation/manual/manual/binary.png b/qsstv/documentation/manual/manual/binary.png new file mode 100644 index 0000000..eae4e50 Binary files /dev/null and b/qsstv/documentation/manual/manual/binary.png differ diff --git a/qsstv/documentation/manual/manual/bsr_nfy.png b/qsstv/documentation/manual/manual/bsr_nfy.png new file mode 100644 index 0000000..62f029a Binary files /dev/null and b/qsstv/documentation/manual/manual/bsr_nfy.png differ diff --git a/qsstv/documentation/manual/manual/bsr_select.png b/qsstv/documentation/manual/manual/bsr_select.png new file mode 100644 index 0000000..fb4cecb Binary files /dev/null and b/qsstv/documentation/manual/manual/bsr_select.png differ diff --git a/qsstv/documentation/manual/manual/calibration.png b/qsstv/documentation/manual/manual/calibration.png new file mode 100644 index 0000000..4a3ca0e Binary files /dev/null and b/qsstv/documentation/manual/manual/calibration.png differ diff --git a/qsstv/documentation/manual/manual/camera.png b/qsstv/documentation/manual/manual/camera.png new file mode 100644 index 0000000..6876fa9 Binary files /dev/null and b/qsstv/documentation/manual/manual/camera.png differ diff --git a/qsstv/documentation/manual/manual/changelog.html b/qsstv/documentation/manual/manual/changelog.html new file mode 100644 index 0000000..bb08374 --- /dev/null +++ b/qsstv/documentation/manual/manual/changelog.html @@ -0,0 +1,242 @@ + + + + + + +QSSTV: Change log + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Change log
+
+
+
    +
  • 20170817 QSSTV 9.2.6
      +
    • Changed the .pro file for autodetecing correct libopenjpg2 (DL1JBE -Tom)
    • +
    • ftp transfer - initialize bug fix (VK6MN- Mike)
    • +
    • Help manual -> path correction and corrected some typo's (DJ0MBA- Marinus)
    • +
    • SSTV initialize bug fix (Adrian)
    • +
    • Camera support for Raspberry PI Cam
    • +
    • fixed audio loopback use
    • +
    • fixed transmission after stop, image was not restarted at top
    • +
    +
  • +
+
    +
  • 20161022 QSSTV 9.2.5
      +
    • Screen size reduced for use with smaller screens-fixed.
    • +
    • rig control - added capabilities test.
    • +
    +
  • +
+
    +
  • 20161022 QSSTV 9.2.4
      +
    • some minor bugfixing
    • +
    • eliminated online status setting in Config Notication tab (doubled with setting in Operator settings)
    • +
    • bug fix: incremental counter on filename wih hybrid mode
    • +
    • added filename to statusbar when sending DRM image
    • +
    +
  • +
+
    +
  • 20161021 QSSTV 9.2.3
      +
    • bug fix: memory leak in tx DRM when loading/resizing images
    • +
    • faster compression of tx images
    • +
    • bug-fix: hybrid mode saved images with wrong file extension. Receivers tried downloading wrong file.
    • +
    • Added all the patches (more then 20) from Mike, VK6M: rx/tx notifications and a large number of patches for image handling
    • +
    • Added new features (such a save waterfall image) implmented by Mike, VK6M
    • +
    • Todo: update the documentation !
    • +
    +
  • +
+
    +
  • 20160929 QSSTV 9.2.2
      +
    • added CTRL_F keyboard shortcut to switch to and from full screen. This is mainly used on low resolution screens where the top and/or bottom taskbars are masking part of the QSSTV window.
    • +
    +
  • +
+
    +
  • 20160929 QSSTV 9.2.1
      +
    • added low Resolution mode
    • +
    • changed SSTV sync detection
    • +
    • some minor bug fixes
    • +
    +
  • +
+
    +
  • 20160703 QSSTV 9.1.8
      +
    • The program uses jp2 files for sending images in DRM mode. The file extensions were not correct. ->fixed
    • +
    • changes of the configuration do not need a restart of the program anymore (adding templates, stock images, DRM Profiles)
    • +
    • images in the gallery are now resized.
    • +
    • added menu option To Tx in Gallery Images RX and TX.
    • +
    • image in viewer is zoomed when resized while keeping aspect ratio.
    • +
    • Screen size reduced to 791x684 for use with smaller screens.
    • +
    • Added voice/data port selection for PTT (thanks to David VK3DCU)
    • +
    +
  • +
+
    +
  • 20160701 QSSTV 9.1.7
      +
    • Normally the audio is generated on the left channel. There is now an option in the soundconfig to swap left and right channel. Some radios like the TS590 are using the right audio channel via USB (test done by PE1DFQ - Gerard).
    • +
    • On request from Michael DL3YAP: Added CW ID button to manually send the CW ID as specified in the CW config.
    • +
    • Name of ID button in the lower status bar changed to WF ID (waterfall ID) to avoid confusion with CW ID.
    • +
    • Fixed bug: Waterfall font size was not correctly saved.
    • +
    • Added "Bold" option for Waterfall font.
    • +
    +
  • +
+
    +
  • 20160628 QSSTV 9.1.6
      +
    • ftp transfer crashes when transmitting in hybrid mode-> solved
    • +
    +
  • +
+
    +
  • 20160416 QSSTV 9.1.5
      +
    • upload received images to ftp server (sstv and drm) gave file error -> solved
    • +
    +
  • +
+
    +
  • 20160415 QSSTV 9.1.4
      +
    • rx image save button was not working -> fixed
    • +
    +
  • +
+
    +
  • 20160410 QSSTV 9.1.3
      +
    • fixing compiler error: missing function cleanupcache in release mode
    • +
    +
  • +
+
    +
  • 20160409 QSSTV 9.1.2
      +
    • implementation of image cache for faster image display in the gallery
    • +
    • bug fix ,race condition for RxNotification
    • +
    +
  • +
+
    +
  • 20160408 QSSTV 9.1.1
      +
    • replaced jpeg2000 library Jasper with openjpeg because some distros won't support Jasper anymore. Jasper has not been maintained for more than 10 years.
    • +
    +
  • +
+
    +
  • 20151130 QSSTV 9.0.9
      +
    • directories are auto-created if they don't exist
    • +
    • additional CAT command now also works with rigctld
    • +
    +
  • +
+
    +
  • 20150930 QSSTV 9.0.8
      +
    • fix DRM status update
    • +
    +
  • +
+
    +
  • 20150929 QSSTV 9.0.7
      +
    • fixed hang on exit
    • +
    +
  • +
+
    +
  • 20150928 QSSTV 9.0.6
      +
    • performace optimization (especially for Raspberry Pi 2)
    • +
    +
  • +
+
    +
  • 20150926 QSSTV 9.0.4
      +
    • added option for slow cpu (see Options ->GUI) This makes it possible to run QSSTV running on a Raspberry Pi 2.
    • +
    • minor change to ALSA sound interface.
    • +
    • some more bug fixing
    • +
    +
  • +
+
    +
  • 20150910 QSSTV 9.0.3
      +
    • xmlrpc bug fix (persistent connections)
    • +
    • manual (a lot of) spelling corrections
    • +
    • compatibility with Qt 4.8
    • +
    +
  • +
+
    +
  • 20150907 QSSTV 9.0.2
      +
    • changed configuration frequencies to allow for data modes on Icom
    • +
    • changed Editor, you may need to check/re-edit your template files (text offsets may have changed)
    • +
    +
  • +
+
    +
  • 20150831 QSSTV 9.0.1
      +
    • first release
    • +
    +
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/closed.png b/qsstv/documentation/manual/manual/closed.png new file mode 100644 index 0000000..98cc2c9 Binary files /dev/null and b/qsstv/documentation/manual/manual/closed.png differ diff --git a/qsstv/documentation/manual/manual/config.png b/qsstv/documentation/manual/manual/config.png new file mode 100644 index 0000000..cb13e09 Binary files /dev/null and b/qsstv/documentation/manual/manual/config.png differ diff --git a/qsstv/documentation/manual/manual/config1.png b/qsstv/documentation/manual/manual/config1.png new file mode 100644 index 0000000..d49b745 Binary files /dev/null and b/qsstv/documentation/manual/manual/config1.png differ diff --git a/qsstv/documentation/manual/manual/config10.png b/qsstv/documentation/manual/manual/config10.png new file mode 100644 index 0000000..148c32a Binary files /dev/null and b/qsstv/documentation/manual/manual/config10.png differ diff --git a/qsstv/documentation/manual/manual/config11.png b/qsstv/documentation/manual/manual/config11.png new file mode 100644 index 0000000..f66fc63 Binary files /dev/null and b/qsstv/documentation/manual/manual/config11.png differ diff --git a/qsstv/documentation/manual/manual/config12.png b/qsstv/documentation/manual/manual/config12.png new file mode 100644 index 0000000..1aba6de Binary files /dev/null and b/qsstv/documentation/manual/manual/config12.png differ diff --git a/qsstv/documentation/manual/manual/config2.png b/qsstv/documentation/manual/manual/config2.png new file mode 100644 index 0000000..489b299 Binary files /dev/null and b/qsstv/documentation/manual/manual/config2.png differ diff --git a/qsstv/documentation/manual/manual/config3.png b/qsstv/documentation/manual/manual/config3.png new file mode 100644 index 0000000..80c64b4 Binary files /dev/null and b/qsstv/documentation/manual/manual/config3.png differ diff --git a/qsstv/documentation/manual/manual/config4.png b/qsstv/documentation/manual/manual/config4.png new file mode 100644 index 0000000..be24342 Binary files /dev/null and b/qsstv/documentation/manual/manual/config4.png differ diff --git a/qsstv/documentation/manual/manual/config5.png b/qsstv/documentation/manual/manual/config5.png new file mode 100644 index 0000000..1816297 Binary files /dev/null and b/qsstv/documentation/manual/manual/config5.png differ diff --git a/qsstv/documentation/manual/manual/config6.png b/qsstv/documentation/manual/manual/config6.png new file mode 100644 index 0000000..7c84704 Binary files /dev/null and b/qsstv/documentation/manual/manual/config6.png differ diff --git a/qsstv/documentation/manual/manual/config7.png b/qsstv/documentation/manual/manual/config7.png new file mode 100644 index 0000000..5c1acb6 Binary files /dev/null and b/qsstv/documentation/manual/manual/config7.png differ diff --git a/qsstv/documentation/manual/manual/config8.png b/qsstv/documentation/manual/manual/config8.png new file mode 100644 index 0000000..9a052c3 Binary files /dev/null and b/qsstv/documentation/manual/manual/config8.png differ diff --git a/qsstv/documentation/manual/manual/config9.png b/qsstv/documentation/manual/manual/config9.png new file mode 100644 index 0000000..9192705 Binary files /dev/null and b/qsstv/documentation/manual/manual/config9.png differ diff --git a/qsstv/documentation/manual/manual/cqrlog1.png b/qsstv/documentation/manual/manual/cqrlog1.png new file mode 100644 index 0000000..94c740a Binary files /dev/null and b/qsstv/documentation/manual/manual/cqrlog1.png differ diff --git a/qsstv/documentation/manual/manual/cqrlog2.png b/qsstv/documentation/manual/manual/cqrlog2.png new file mode 100644 index 0000000..a7ebcf9 Binary files /dev/null and b/qsstv/documentation/manual/manual/cqrlog2.png differ diff --git a/qsstv/documentation/manual/manual/credits.html b/qsstv/documentation/manual/manual/credits.html new file mode 100644 index 0000000..a47994e --- /dev/null +++ b/qsstv/documentation/manual/manual/credits.html @@ -0,0 +1,97 @@ + + + + + + +QSSTV: Credits + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Credits
+
+
+
+

This document contains references to Easypal (by VK4AES). Erik Sundstrup was kind enough to give me permission to use the extended BSR functionality and the DRM Hybrid mode. Easypal was used extensively to test my program.
+
+

+vk4aes.jpg +
+


+
+

+

Erik is now silent key as of 14th march 2015. We will miss him.
+ I hope there will be other OM's that take up the maintenance,enhancements and development of EasyPal so that people running Windows will continue to enjoy his software.

+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/doc.png b/qsstv/documentation/manual/manual/doc.png new file mode 100644 index 0000000..17edabf Binary files /dev/null and b/qsstv/documentation/manual/manual/doc.png differ diff --git a/qsstv/documentation/manual/manual/doubletone.png b/qsstv/documentation/manual/manual/doubletone.png new file mode 100644 index 0000000..c60ca1f Binary files /dev/null and b/qsstv/documentation/manual/manual/doubletone.png differ diff --git a/qsstv/documentation/manual/manual/doxygen.png b/qsstv/documentation/manual/manual/doxygen.png new file mode 100644 index 0000000..3ff17d8 Binary files /dev/null and b/qsstv/documentation/manual/manual/doxygen.png differ diff --git a/qsstv/documentation/manual/manual/dynsections.js b/qsstv/documentation/manual/manual/dynsections.js new file mode 100644 index 0000000..85e1836 --- /dev/null +++ b/qsstv/documentation/manual/manual/dynsections.js @@ -0,0 +1,97 @@ +function toggleVisibility(linkObj) +{ + var base = $(linkObj).attr('id'); + var summary = $('#'+base+'-summary'); + var content = $('#'+base+'-content'); + var trigger = $('#'+base+'-trigger'); + var src=$(trigger).attr('src'); + if (content.is(':visible')===true) { + content.hide(); + summary.show(); + $(linkObj).addClass('closed').removeClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); + } else { + content.show(); + summary.hide(); + $(linkObj).removeClass('closed').addClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); + } + return false; +} + +function updateStripes() +{ + $('table.directory tr'). + removeClass('even').filter(':visible:even').addClass('even'); +} + +function toggleLevel(level) +{ + $('table.directory tr').each(function() { + var l = this.id.split('_').length-1; + var i = $('#img'+this.id.substring(3)); + var a = $('#arr'+this.id.substring(3)); + if (l + + + + + +QSSTV: Editor + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Editor
+
+
+

The editor can be used for regular image editing and for the creation and editing of template images. Template images are used as overlays. They will be dynamically adapted when you select the template in the TX-window. While in edit mode, you can change all the attributes (such as size, position, colours etc ...). If you save the canvas as an image, the scene will be rendered (i.e. flattened) and become a single image object. If you save the canvas as a template, all objects will be accessible again when loaded.

+


+ To create an object, click on the left menu to select the type of object (e.g circle) and then click on the canvas where you want the object positioned. Just click on an item to select it. A outline of the item will be shown by a dashed line. If you hoover over the object you will see the cursor change to a hand-icon (in the middle of the object) to move it, or to a resize-icon if you are on a border.

+

The attributes (line colour, fill colour, gradients etc ..) that are active in the top menu will be used to create the item. Object have also a z-component, i.e they can be in front our behind another object. This can be changed by right clicking on the item and use the Arrange selection.

+
+editor_1.png +
+
    +
  • Top menu 1
      +
    • Image Size: Select the size of the image: the outline of the image will be shown on the canvas.
      +editor_image_size.png +
      +
    • +
    • Font: drop down box where you can select the text font
    • +
    • Font size: text size
    • +
    • Bold : bold text
    • +
    • Italic: italic text
    • +
    • Underline: underlined text
    • +
    • Pen width: width of lines in number of pixels
    • +
    +
  • +
  • Top menu 2
      +
    • Fill: Fill colour drop down menu
    • +
    • Line: Line colour drop down menu
    • +
    • Gradient: Gradient selection menu
    • +
    +
  • +
+
    +
  • Left menu
      +
    • +arrow.png +
      + select/deselect objects
    • +
    • +fcircle.png +
      + create filled circle/ellipse
    • +
    • +frect.png +
      + create filled rectangle -
      +line.png +
      + create line -
      +camera.png +
      + insert image -
      +replay.png +
      + insert replay image place-holder. When the template will be loaded in the TX-window, this place-holder will replaced by the last received image -
      +text.png +
      + create text. When you select this option a window will pop-up to enter text.
      + -
      +entertext.png +
      +
      +You can enter multiple lines of text. Click OK, the window will be hidden and you can click on the canvas to position the text. The text will appear on the canvas. -
      +multiline.png +
      +
      +
    • +
    +
  • +
+
    +
  • Bottom menu
      +
    • Horizontal Shear: shear selected object horizontally
    • +
    • Rotate: rotate selected object
    • +
    +
  • +
  • Right menu
      +
    • Vertical Shear: shear selected object vertically
    • +
    +
  • +
+

If you right click on an object then the following pop-up menu will be shown:

+
    +
  • Arrange
      +
    • Forward - one level forward
    • +
    • Backward - one level backward
    • +
    • Bring to Front - all the way to the front
    • +
    • Sent to Back - all the way to the back
    • +
    +
  • +
  • Change text - change the text of a text object
  • +
  • Expand - object will expand horizontally and vertically to fill the complete canvas
  • +
  • Delete - remove selected object from the canvas
  • +
  • Lock - lock items so that they can not be moved or resized
  • +
  • Unlock - unlock selected items
  • +
+

We need some sort of macro's to enable variable text when transmitting images. The editor uses predefined strings that will be replaced by the "actual content" when the template is processed just before transmission.
+

+

Here's an example of the editor using macros and the result in the transmitter.

+


+

+editor_2.png +
+


+
+

+transmitdrm.png +
+

Following macro's are supported:
+ Macro's where the value is defined in the configuration

    +
  • %m - my callsign
  • +
  • %q - my QTH
  • +
  • %l - my locator
  • +
  • %n - my last name
  • +
  • %f - my first name
  • +
+

Macro's where the value is entered in the TX-window prior to transmission

    +
  • %c - call of the contacted station
  • +
  • %r - RSV (radio-strength-video best is 595) You can also input free text as is sometimes required for contest (e.g. 595#007 or Good Copy)
  • +
  • %o - name of the operator of the contacted station
  • +
  • %x - comment1
  • +
  • %y - comment2
  • +
  • %z - comment3
  • +
+

Note: comment 1,2 and 3 can be multi-line.

+

Macro's where the value is defined by the system

    +
  • %t - time in hours:minutes format
  • +
  • %d - date in year/month/day format
  • +
  • %v - qsstv_version
  • +
  • %s - SNR - only to be used for DRM in the WF Text see also Statusbar
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/editor_1.png b/qsstv/documentation/manual/manual/editor_1.png new file mode 100644 index 0000000..5e4102e Binary files /dev/null and b/qsstv/documentation/manual/manual/editor_1.png differ diff --git a/qsstv/documentation/manual/manual/editor_2.png b/qsstv/documentation/manual/manual/editor_2.png new file mode 100644 index 0000000..ebb5617 Binary files /dev/null and b/qsstv/documentation/manual/manual/editor_2.png differ diff --git a/qsstv/documentation/manual/manual/editor_image_size.png b/qsstv/documentation/manual/manual/editor_image_size.png new file mode 100644 index 0000000..35d5a97 Binary files /dev/null and b/qsstv/documentation/manual/manual/editor_image_size.png differ diff --git a/qsstv/documentation/manual/manual/entertext.png b/qsstv/documentation/manual/manual/entertext.png new file mode 100644 index 0000000..83c76e6 Binary files /dev/null and b/qsstv/documentation/manual/manual/entertext.png differ diff --git a/qsstv/documentation/manual/manual/eraser.png b/qsstv/documentation/manual/manual/eraser.png new file mode 100644 index 0000000..78632a5 Binary files /dev/null and b/qsstv/documentation/manual/manual/eraser.png differ diff --git a/qsstv/documentation/manual/manual/externalprog.html b/qsstv/documentation/manual/manual/externalprog.html new file mode 100644 index 0000000..b870f9f --- /dev/null +++ b/qsstv/documentation/manual/manual/externalprog.html @@ -0,0 +1,113 @@ + + + + + + +QSSTV: External Programs + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
External Programs
+
+
+

QSSTV can interface with other programs.
+
+ Flrig see flrigconfig

+


+
+ Cqrlog: QSSTV (when in DRM mode) sends the following information to Cqrlog:

    +
  • program: identifies QSSTV
  • +
  • version: protocol version
  • +
  • date: based on UTC
  • +
  • time: based on UTC (time when the images is correctly received)
  • +
  • endtime: based on UTC (always = time)
  • +
  • call: call sign of the received station
  • +
  • mhz: frequency in MHz
  • +
  • mode: SSTV (ADIF restriction: there is no DSSTV nor DRM specified in ADIF, SSTV is the closest match)
  • +
  • notes: contains file name, DRM mode information (i.e mode, QAM, protection.. hybrid)
  • +
+


+
+

    +
  • Setup:
    +
    +
    +cqrlog1.png +
    +
    +
    +
  • +
  • Do not enable Run Fldigi ...
  • +
  • Start Cqrlog and select Remote mode for Fldigi
  • +
  • If you want to see the QSO's: Select "Show QSO list" from the file menu.
    +
    +
    +cqrlog2.png +
    +
    + Note: Unless you configured the Automatic refresh, you will only see the QSO's if you hit the Refresh button.
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/fcircle.png b/qsstv/documentation/manual/manual/fcircle.png new file mode 100644 index 0000000..4f5fcc7 Binary files /dev/null and b/qsstv/documentation/manual/manual/fcircle.png differ diff --git a/qsstv/documentation/manual/manual/fileopen.png b/qsstv/documentation/manual/manual/fileopen.png new file mode 100644 index 0000000..a79982e Binary files /dev/null and b/qsstv/documentation/manual/manual/fileopen.png differ diff --git a/qsstv/documentation/manual/manual/filesave.png b/qsstv/documentation/manual/manual/filesave.png new file mode 100644 index 0000000..3bc2a37 Binary files /dev/null and b/qsstv/documentation/manual/manual/filesave.png differ diff --git a/qsstv/documentation/manual/manual/fix.png b/qsstv/documentation/manual/manual/fix.png new file mode 100644 index 0000000..099c640 Binary files /dev/null and b/qsstv/documentation/manual/manual/fix.png differ diff --git a/qsstv/documentation/manual/manual/fixdrm.html b/qsstv/documentation/manual/manual/fixdrm.html new file mode 100644 index 0000000..e1283b0 --- /dev/null +++ b/qsstv/documentation/manual/manual/fixdrm.html @@ -0,0 +1,83 @@ + + + + + + +QSSTV: Sending FIX in DRM + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Sending FIX in DRM
+
+
+
+fix.png +
+

When the image you transmitted is not correctly received, the other station can send a BSR. When you receive a BSR and it is destined for you, then the above popup will show. You can either send the fix or cancel.
+ If the BSR is not for you then the following window will pop-up for a few seconds.

+bsr_nfy.png +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/flrig1.png b/qsstv/documentation/manual/manual/flrig1.png new file mode 100644 index 0000000..430c469 Binary files /dev/null and b/qsstv/documentation/manual/manual/flrig1.png differ diff --git a/qsstv/documentation/manual/manual/folderclosed.png b/qsstv/documentation/manual/manual/folderclosed.png new file mode 100644 index 0000000..bb8ab35 Binary files /dev/null and b/qsstv/documentation/manual/manual/folderclosed.png differ diff --git a/qsstv/documentation/manual/manual/folderopen.png b/qsstv/documentation/manual/manual/folderopen.png new file mode 100644 index 0000000..d6c7f67 Binary files /dev/null and b/qsstv/documentation/manual/manual/folderopen.png differ diff --git a/qsstv/documentation/manual/manual/frect.png b/qsstv/documentation/manual/manual/frect.png new file mode 100644 index 0000000..2aa6af8 Binary files /dev/null and b/qsstv/documentation/manual/manual/frect.png differ diff --git a/qsstv/documentation/manual/manual/gallery.html b/qsstv/documentation/manual/manual/gallery.html new file mode 100644 index 0000000..4e053a7 --- /dev/null +++ b/qsstv/documentation/manual/manual/gallery.html @@ -0,0 +1,98 @@ + + + + + + +QSSTV: Gallery + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Gallery
+
+
+

The Gallery contains six tabs. The directories where the different images are stored are configured in the Directories tab of the Configuration.
+

+Gallery_rx.png +
+


+

    +
  • RX SSTV: SSTV images are stored on disk and shown here if the Auto-save is enabled in the receive window and the minimum percentage is reached
  • +
  • RX DRM: All images received in DRM mode are stored on disk and shown here.
  • +
  • TX SSTV: When sending an image in SSTV mode then the resulting images is stored on disk and shown here (this includes the template overlay).
  • +
  • TX DRM: When sending an image in SSTV mode then the resulting images is stored on disk and shown here (this includes the template overlay).
  • +
  • TX Stock: Contains your selection of "Stock" images you want to use for transmission.
  • +
  • Templates: template images to be used as overlay on tx images
    +
    + Some examles
    +Gallery_txdrm.png +
    +
    +
    +Gallery_templates.png +
    +
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/gettingstarted.html b/qsstv/documentation/manual/manual/gettingstarted.html new file mode 100644 index 0000000..00dd130 --- /dev/null +++ b/qsstv/documentation/manual/manual/gettingstarted.html @@ -0,0 +1,379 @@ + + + + + + +QSSTV: Getting Started + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Getting Started
+
+
+

The program is build around 3 windows

    +
  • Receive window: Receive functions and configuration
  • +
  • Transmit window: Transmit functions and camera control
  • +
  • Gallery window: History of received images, transmit images and templates The program will remember the last position and the size of each window on restart.
  • +
+

+Configuration

+

Before we can use QSSTV you need to do some configuration.

+config.png +
+

The configuration tool is accessed through the "Options" menu in the receive window. The following tabs are available
+
+

    +
  • Personal Settings
    +
    +
    +config1.png +
    +
    +
    +
      +
    • Call sign
    • +
    • First Name
    • +
    • Last Name
    • +
    • QTH
    • +
    • Locator (Grid Square)
      +This information can also be used in templates (see also Editor)
      +
      +
    • +
    +
  • +
+
    +
  • Directories
    +
    +
    +config2.png +
    +
    +
    +
      +
    • RX SSTV Images: directory for saving the SSTV received images
    • +
    • RX DRM Images: directory for saving the DRM received images
    • +
    • TX Images: directory for images to transmit
    • +
    • Templates: directory where the template files are stored
    • +
    • Audio Records: directory for audio files (where you save/read recorded audio files)
    • +
    • Documentation: URL of the user manual (if you copied the manual locally then you can point to it with e.g. file:///usr/share/doc/qsstv/manual
      +
      +
    • +
    +
  • +
+
    +
  • Gui
    +
    +
    +config3.png +
    +
    +
    +
      +
    • Stretch: if checked, the image will fill the receive window (keeping the aspect ratio) else it will be displayed as is.
    • +
    • Background Colour: colour used for image borders and background in the gallery
    • +
    • Image Background Colour: Default image background Push the push button to select the colour selector.
    • +
    • Gallery: Rows and columns: set-up the number of rows and columns to be used in the Gallery tab. If you're running on a slow CPU (like on a Raspberry Pi) select row=1 and columns=1.
    • +
    • Slow CPU: Select this option if you're running on a slow CPU (e.g. Rapsberry Pi)
    • +
    • Low Resolution: Select this option if your display is for example 800x480. This options sets the maximum vertical resolution of QSSTV to less than 480 lines. It therefore removes some features from the receive window (Rx Notification Window in DRM) and the transmit window (Image replay Preview and TX Notifications in DRM mode). You can toggle to and from full screen by using the CTRL_F key combination.
    • +
    +
  • +
+


+
+

+
    +
  • Audio
    +
    +
    +config4.png +
    +
    +
    +
      +
    • ALSA Input Audio Device : depending on your hardware (e.g. default,hw:0,0)
    • +
    • ALSA Output Audio Device : depending on your hardware (e.g. default,hw:0,0)
    • +
    • PulseAudio: native pulse audio interface
      +Note: Most distributions use Pulse Audio interface.. You can select the audio card settings through the audio applet by right clicking on the Speaker icon and selecting the Sound Preferences
    • +
    • RX Clock frequency : clock used while receiving SSTV images,(see also Calibration)
    • +
    • TX Clock frequency : clock used while transmitting SSTV images,(see also Calibration)
    • +
    • Sound Input routing
        +
      • From sound card: default mode
      • +
      • From file: decode a previously recorded file
      • +
      • From sound card and record: decode and record to a file (wav type, stereo 48000)
      • +
      • Maximum recording size: limits the size of the recorded file
      • +
      +
    • +
    • Sound Output routing
        +
      • To sound card: default
      • +
      • Playback: playback a wav-file (use 48000 samples per second recording in mono or stereo)
      • +
      • Playback and record: playback the sound and record at the same time.
      • +
      +
    • +
    +
  • +
+
    +
  • Swap left and right channel
      +
    • If selected, audio will be sent on the right audio channel instead of the left channel (e.g Kenwood tranceivers using USB sound interfaces)
    • +
    +
  • +
  • PTT tone on other audio channel
      +
    • A tone will be sent on the right channel to enable PTT. If the above "Swap left and right channel" is selected, it will be sent on the left channel.
      +
      + Note: To playback an audio file, be sure the format is of type wav and has a samplerate of 48000 samples/second. You can always open the file with audacity and export the file to adapt the type and/or samplerate
      +
    • +
    +
  • +
+
    +
  • CAT
    +
    +
    +config5.png +
    +
    +
    +
  • +
+
    +
  • Special Serial Port: If you have a separate serial interface to control the PTT you can enable Special Serial Port to control it. You can select RTS and or DTR in inverted or non-inverted mode (i.e. +RTS will assert RTS at +12V when the PTT is active and -RTS will assert RTS at -12V). +RTS and/or +DTR is used most of the time. The same goes for DTR.
    + You cannot select both +RTS and -RTS or +DTR and -DTR at the same time.
  • +
  • Enable Hamlib Cat Interface
      +
    • Radio Model: drop down list from the radio models
    • +
    • CIV Address: only used for ICOM, if left empty, the default address of the radio will be used
    • +
    • Serial Port/host: either the serial port (e.g. /dev/ttyUSB0) or the host address (e.g. localhost:4532)
    • +
    • Handshake, Parity, Data bits, Stop bits, Baud rate: serial port settings
    • +
    • PTT Serial Port: serial port (e.g. /dev/ttyS0) only used if "Enable PTT serial Interface" is selected
    • +
    • PTT Control via: If the radio uses a CAT command to activate Transmission then select "CAT". If you have a radio that does not support such a CAT command, you can let Hamlib use the RTS or DTR on the serial port specified by "PTT Serial Port".
    • +
    +
  • +
  • There are 2 CAT ports: -CAT (voice port): the normal setting -CAT (data port): to be used with some kenwood tranceivers(e.g. kenwood TS-480) to force data port instead of audio port (source: David VK3DCU) Example: IC-706MKIIG via a cat interface such as interfaceOne.
  • +
  • Enable XMLRPC This allows you to connect to the Flrig program using the XMLRPC protocol. Flrig will handle all the communication with the transceiver (including PTT).
  • +
  • TX Delay: The program will wait for the selected delay before transmitting any audio.
  • +
+

Note: The option Enable XMLRPC excludes the use of hamlib.

+

A sample set-up of Flrig is shown below.
+
+

+flrig1.png +
+


+
+

+
    +
  • CW
    +
    +
    +config6.png +
    +
    +
    +
      +
    • Tone: frequency of the CW tone
    • +
    • Words per Minute: CW transmission speed
    • +
    • Text To Send: this text will be send at the end of an image transmission if the option is enabled.
    • +
    +
  • +
+
    +
  • Repeater
    +
    +
    +config7.png +
    +
    +
    +
      +
    • Enable repeater: enable repeater operation
    • +
    • Image Interval (min): interval time before sending one of the Idle Images
    • +
    • Repeater TX mode: the mode the repeater will use to send the images
    • +
    • Idle Image[1-4]: images send by the repeater if there is no activity for more than the interval time
    • +
    • Idle Template:template that will be super-imposed on the idle images
    • +
    • Repeater Template: template that will be super-imposed on the repeated(received) images
    • +
    +
  • +
+
    +
  • FTP
    +
    +
    +config8.png +
    +
    +
    + This is used to save the received images to an FTP server. The images will also still be saved in the local rx folder.
      +
    • Enable FTP: enable ftp operation
    • +
    • FTP Port: default 21
    • +
    • Default Image Format: select the image format from the drop down bow (used only in SSTV)
    • +
    • Remote Hostname: hostname of the ftp server (e.g. myftp.home.net or 192.168.0.1)
    • +
    • Remote directory:the ftp server directory where you'll store the images
    • +
    • FTP Login name: your login name on the server (can be anonymous)
    • +
    • FTP Password: if you need one, otherwise leave blank
    • +
    • Image store:
        +
      • Image1 - image30: The files will be saved under the generic name imageXX, where xx ranges from 1 to 30. When a new image arrives, the old images are shifted down (i.e. image29 becomes image30, image28 becomes image 29 etc ..) and the new one is stored as image1. -file name: the image (or other type of file) is stored with a file name derived from the mode (SSTV) or from the file name transmitted in DRM.
      • +
      +
    • +
    +
  • +
+

Note: This FTP server is unrelated to the FTP server for Hybrid Mode.

+

You can test the connection by clicking the Test connection button. It will set-up a connection to the server and send a test file to check if all parameters are correct. You will either see a pop-up with "Connection OK" or an error message showing the reason of the fail.

+
    +
  • Waterfall
    +
    +
    +config9.png +
    +
    +
    +
      +
    • Start Pic: Waterfall text to send at the beginning of a DRM transmission
    • +
    • End Pic: Waterfall text to send at the end of a DRM transmission
    • +
    • FIX: Waterfall text to send at the beginning of a DRM retransmission
    • +
    • BSR: Waterfall text to send at the beginning of a DRM request for retransmission
      + Note: you can also use %m. This will be replaced by your call sign
    • +
    +
  • +
+
    +
  • Hybrid
    +
    +
    +config10.png +
    +
    +
    +
      +
    • Enable Reception in Hybrid Mode: allows reception of hamDRM in hybrid mode. If this is not enabled, hybrid mode files will not be shown or stored.
    • +
    • FTP Port: default 21 (cannot be modified at this moment for compatibility with EasyPal)
    • +
    • Remote Hostname: hostname of your ftp server
    • +
    • Remote directory:the ftp server directory where the stored images are
    • +
    • FTP Login name: the login name on the server
    • +
    • FTP Password: will be encrypted
    • +
    +
  • +
+

Login name, password,hostname and directories will be encrypted before being sent on the air.

+

If you want to use the special server, the directories to store images is relative to the directory HybridFiles1. So first create a top level directory HybridFiles1. If you leave the Remote Directory empty, then the files will be placed in the directory HybridFiles1. If you put for example "testdir" in the Remote Directory (as shown in the above screen shot), then you need to create testdir under HybridFiles (HybridFiles1/testdir).

+

QSSTV will not create those directories for you.

+

EasyPal also use two other directories on the same level as HybridFiles1

    +
  • OnlineCallsigns1
  • +
  • RxOkNotifications1
  • +
+

You can create them on your server but they are not used by QSSTV at this moment.

+

You can test the connection by clicking the Test connection button. It will setup a connection to the server and send a test file to check if all parameters are correct. You will either see a pop-up with "Connection OK" or an error message showing the reason of the fail.

+
    +
  • DRM Profiles
    +
    +
    +config11.png +
    +
    +
    + Used for quick selection of the most common settings you use in DRM. Choose a short name for the profile and make a selection for all the parameters. The name will appear in the Profiles drop-down box in the Transmit window for DRM.
  • +
+
    +
  • Frequencies
    +
    +
    +config12.png +
    +
    +
    +
      +
    • List of selectable frequencies. Click Add to add a new combo frequency/mode/modulation. Enter the frequency and select the mode and modulation type.
      + To move a frequency/mode/modulation up or down the list, click first on the entry in the table and then click on one of the arrow buttons.
    • +
    • Hamlib Data Command: (only used with Hamlib) As far a I know Hamlib does not support switching the Icomxxx to data mode. As a result, if you for example selected USB-D1 on a Icom 7600,changing the frequency will switch the rig back to the regular USB (data mode off).
      + Hamlib Data Command allows you to send a "raw command" that will be executed when you change frequencies.
    • +
    • Example: FEFE7AE01A060101FD and Hex button checked: will put the Icom in data mode D1 (LSB, USB or FM) and the Filter 1.
    • +
    • Hex: if checked the text is interpreted as hex values else it will be interpreted as a regular ASCII string.
    • +
    • Note 1: you can put any valid raw command here, it will be send on every frequency change
    • +
    • Note 2: Flrig does not support FM data modes.
    • +
    +
  • +
+

+Calibration

+

Note: Calibration is only needed for SSTV mode All SSTV applications need an accurate and stable clock. The accuracy of a PC clock is not always correct. Therefore it's necessary to execute some sort of calibration. You need to synchronize your PC with an network time server via the ntp protocol. Every Linux distribution has some configuration tool that allows you to install the ntp client. Be sure it's active. You can check it with:

+>ntpdc -p
+

The selected ntp server should have an asterisk in the first column.

+remote           local      st poll reach  delay   offset    disp
+=======================================================================
+*stratum1dc1.bc  10.119.37.19     2   64  377 0.00386  0.036853 0.06850
+

You can now launch the Calibration.
+
+ It will take several minutes to complete. Be sure to wait long enough, the progress is extremely slow
+
+

+calibration.png +
+

When RX and TX calibration is finished, press the OK button to accept the new values.

+
    +
  • Note: You can always enter the clock values manually.
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/hybrid_checkbox.png b/qsstv/documentation/manual/manual/hybrid_checkbox.png new file mode 100644 index 0000000..36bb44e Binary files /dev/null and b/qsstv/documentation/manual/manual/hybrid_checkbox.png differ diff --git a/qsstv/documentation/manual/manual/hybrid_dis_checkbox.png b/qsstv/documentation/manual/manual/hybrid_dis_checkbox.png new file mode 100644 index 0000000..ee13f95 Binary files /dev/null and b/qsstv/documentation/manual/manual/hybrid_dis_checkbox.png differ diff --git a/qsstv/documentation/manual/manual/imagepopup.html b/qsstv/documentation/manual/manual/imagepopup.html new file mode 100644 index 0000000..2ed60f8 --- /dev/null +++ b/qsstv/documentation/manual/manual/imagepopup.html @@ -0,0 +1,93 @@ + + + + + + +QSSTV: Image Viewer + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Image Viewer
+
+
+

All the images displayed in QSSTV have pop-up actions. This is an example for the Gallery.

+


+

+Gallery_image_options.png +
+


+
+ By right clicking on the images, a pop-up window appears that can have one or more of the following actions:

    +
  • New: open the editor to create a new image.
  • +
  • Load: load new file into window
  • +
  • To TX: send image to TX window
  • +
  • Edit: edit the selected image
  • +
  • Print: print the selected image
  • +
  • Delete: delete the selected image, a pop-up will ask if you want to delete the file also from disk., if so the file will be moved to the trash folder.
  • +
  • View: Display the image in a new window actual size (the window is resizeable).
  • +
  • Properties: displays the image and file properties if available
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/index.html b/qsstv/documentation/manual/manual/index.html new file mode 100644 index 0000000..ae838f5 --- /dev/null +++ b/qsstv/documentation/manual/manual/index.html @@ -0,0 +1,101 @@ + + + + + + +QSSTV: QSSTV 9.2 + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
QSSTV 9.2
+
+
+
Author
Johan Maes ON4QZ
+

+Introduction

+

QSSTV 9 is a program for receiving and transmitting SSTV and HAMDRM (sometimes called DSSTV). It is compatible with most of MMSSTV and EasyPal
+

+

!!! ALSO READ THE FAQ AT http://users.telenet.be/on4qz/qsstv_9/faq.html !!!

+

This manual is divided in the following sections:

+

73's Johan ON4QZ

+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/index.js b/qsstv/documentation/manual/manual/index.js new file mode 100644 index 0000000..2a58eef --- /dev/null +++ b/qsstv/documentation/manual/manual/index.js @@ -0,0 +1,29 @@ +var index = +[ + [ "Introduction", "index.html#intro_sec", null ], + [ "What's New", "whatsnew.html", null ], + [ "Change log", "changelog.html", null ], + [ "Installation", "installation.html", [ + [ "Step 1: Prerequisites", "installation.html#step1", null ], + [ "Step 2: Getting the software", "installation.html#step2", null ], + [ "Step 3: Compile and Install the software", "installation.html#step3", null ], + [ "Step 4: Run QSSTV", "installation.html#step4", null ] + ] ], + [ "Getting Started", "gettingstarted.html", [ + [ "Configuration", "gettingstarted.html#config", null ], + [ "Calibration", "gettingstarted.html#calib", null ] + ] ], + [ "Statusbar", "statusbar.html", null ], + [ "Image Viewer", "imagepopup.html", null ], + [ "Receive SSTV Window", "RXSSTV.html", null ], + [ "Transmit SSTV Window", "TXSSTV.html", null ], + [ "Receive DRM Window", "RXDRM.html", null ], + [ "Transmit DRM Window", "TXDRM.html", null ], + [ "Sending FIX in DRM", "fixdrm.html", null ], + [ "Gallery", "gallery.html", null ], + [ "Editor", "editor.html", null ], + [ "External Programs", "externalprog.html", null ], + [ "To Do", "todo1.html", null ], + [ "Credits", "credits.html", null ], + [ "Copying", "Copying.html", null ] +]; \ No newline at end of file diff --git a/qsstv/documentation/manual/manual/installation.html b/qsstv/documentation/manual/manual/installation.html new file mode 100644 index 0000000..c8cdda0 --- /dev/null +++ b/qsstv/documentation/manual/manual/installation.html @@ -0,0 +1,114 @@ + + + + + + +QSSTV: Installation + + + + + + + + + + + +
+
+ + + + + + +
+
QSSTV +  9.2 +
+
+
+ + + +
+
+ +
+
+
+ +
+
+
+
Installation
+
+
+

Warning: from version 9.1.1 and higher, Jasper library is dropped and openjpeg is used We need openjpeg2 (e.g. libopenjpeg2.1 or higher) and not libopenjpeg 1.5

+

+Step 1: Prerequisites

+

Before you can compile QSSTV make sure that you have installed the following software

    +
  • g++
  • +
  • libfftw3-dev
  • +
  • qt5-default (qt4-default)
  • +
  • hamlib-dev
  • +
  • libasound2-dev
  • +
  • libpulse-dev
  • +
  • libopenjp2-7
  • +
  • libopenjp2-7-dev
  • +
  • libv4l-dev
  • +
+

QSSTV is compatible with Qt 4.8.6 but mostly tested on Qt 5.4.x or higher

+

On Ubuntu, Debian or Mint you can type:

+
sudo apt-get install g++ libfftw3-dev qt5-default libpulse-dev
sudo apt-get install hamlib-dev libasound-dev  libv4l-dev
sudo apt-get install libopenjp2-7 libopenjp2-7-dev

If you don't find libopenjp2-7 you can download it with the follwing commands if you're running a Debian derived distribution:

+
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.1.0-2_i386.deb
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.1.0-2_i386.deb

or

wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.1.0-2_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.1.0-2_amd64.deb

and install the packages with the package manager or simply by double clicking on them. First install the library and then the development package. This is the case for example for Linux Mint 17.3.

+

For specific instructions on installation on different distributions: have a look at the FAQ html http://users.telenet.be/on4qz/qsstv_9/faq.html

+

+Step 2: Getting the software

+

The latest versions of QSSTV is always available at http://users.telenet.be/on4qz Download the latest tar file to a local directory (e.g. ~/Downloads)

+

+Step 3: Compile and Install the software

+

Go to the directory you have chosen and extract the tar file. Note: replace the 9.1.1 with the appropriate version you have downloaded

+>cd ~/Downloads
+>tar -xvzf qsstv_9.1.1.tar.gz
+>cd qsstv_9.1.1
+>qmake
+>make
+>sudo make install
+

+Step 4: Run QSSTV

+

You can now run the program by typing qsstv at the prompt of a terminal session, or make a short cut on your desktop.

>qsstv

If you have problems compiling the software, please give as much information as possible but at least:

    +
  • Linux Distribution (e.g. Ubuntu 12.10)
  • +
  • QT Version (e.g Qt 5.4.1)
  • +
  • Dump of the compile process showing the error
  • +
+
+
+ + + + diff --git a/qsstv/documentation/manual/manual/jquery.js b/qsstv/documentation/manual/manual/jquery.js new file mode 100644 index 0000000..d52a1c7 --- /dev/null +++ b/qsstv/documentation/manual/manual/jquery.js @@ -0,0 +1,68 @@ +/* + * jQuery JavaScript Library v1.7.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Mon Nov 21 21:11:03 2011 -0500 + */ +(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozilla)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1){return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.toString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainObject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.context}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bK.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArray(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindReady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.slice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(this,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){return this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bz,sort:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b40){return}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("ready")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameElement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !isNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?String(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.constructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}return b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw new Error(b0)},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb.JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@").replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.error("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").length){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].call(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replace(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b40&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b21?aJ.call(arguments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return function(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(bE,bB)}}if(e>1){for(;bv
a";bI=bv.getElementsByTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){return{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("option"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.firstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,htmlSerialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",enctype:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checked=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.optDisabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}if(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("onclick",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclick")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.appendChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if(bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginRight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB="on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[bB]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE=null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTagName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+bS+"border:5px solid #000;padding:0;'";bP="
";bM=av.createElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;top:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createElement("div");bM.appendChild(bv);bv.innerHTML="
t
";bz=bv.getElementsByTagName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.innerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv.style.display="";bv.innerHTML="
";bJ.shrinkWrapBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv.firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doesNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTop===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV.offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.style.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOverflowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ.offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD,bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?bx[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data))&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[bw].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!==L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:function(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=bx.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.camelCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.length;bA-1){return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!arguments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value;return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.isFunction(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeType!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map(bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"value")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){var bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;for(;bv=0});if(!e.length){bv.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nodeType;if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx,bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx]||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}else{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAttribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))!==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},removeAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.toLowerCase().split(af);e=bA.length;for(;bw=0)}}})});var bd=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^key/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};return((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nodeType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handler){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeof b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.apply(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".")>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusive=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.event.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target){bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.special[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA,bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView||bz.parentWindow||bb,bI])}}for(bC=0;bCbA){bH.push({elem:this,matches:bz.slice(bA)})}for(bC=0;bC0?this.on(e,null,bx,bw):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bf.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}}); +/* + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototype.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV;do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.relative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.match.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift(),e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}if(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=function(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if(!bX){return[]}for(bS=0,bU=bE.order.length;bS":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=bE.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,null,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1},lt:function(bS,bR,e){return bRe[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){return"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var bF=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if(bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[]}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.createElement("div"),bS="__sizzle__";bT.innerHTML="

";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=function(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="
";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="",bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.replace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.length;bT0){for(bB=bA;bB=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(by,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.ownerDocument&&bz!==bx){for(bw=0;bw-1:b.find.matchesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ownerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nodeType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bv,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nextSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(arguments).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.matches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeType!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;by=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function(bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.push(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){return b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}else{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}else{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeType===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)}}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}function a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createElement){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},ac=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div
","
"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,bw))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;while(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.each(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}else{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.each(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e,[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}return this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.nodeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild){bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==null?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,bv,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""])[1].toLowerCase()]){bx=bx.replace(R,"<$1>");try{for(var bw=0,bv=this.length;bw1&&bw0?this.clone(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStack(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az(e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createElement("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChild}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.isXMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!=null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz==="string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$1>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._default,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastChild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild&&bv.firstChild.childNodes:bx[1]===""&&!e?bv.childNodes:[];for(bB=bC.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.length){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespace&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstChild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeof(bG=bz.length)==="number"){for(bB=0;bB=0){return bx+"px"}}else{return bx}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.currentStyle?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter||"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e):bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},function(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.ownerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getPropertyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){bv=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=function(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;function p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=bw==="width"?an:a1,bx=0,e=bz.length;if(bA>0){if(bv!=="border"){for(;bx)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"];try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().split(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw=0){var e=bw.slice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.traditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",data:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC.done(function(bE){bD=bE});bv.html(e?b("
").append(bD.replace(a6,"")).find(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,bx){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){return b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aV},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(typeof bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.context||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Deferred(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getAllResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:function(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLowerCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"abort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(bA===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.lastModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this};bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.data,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.type=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===false){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.contentType!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.contentType)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestHeader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestHeader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataTypes[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(bS,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,error:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transport")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.async&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var bx in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModified:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHeader("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.unshift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!==bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){bz=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.length,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hide()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,true)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.timers,e=0;for(;e").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.width=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWindow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"":"")+"");m.close()}bv=m.createElement(bx);m.body.appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI){return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.ownerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bodyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDocument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.support.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxModel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentElement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.currentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scrollLeft;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bC.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="static"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scrollLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var bB=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var bz=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="absolute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloat(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=this.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=parseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e){var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOffset":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.toLowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"border")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e],bx=bA.document.body;return bA.document.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNumeric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);/* + * jQuery UI 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI + */ +(function(a,d){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{e=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!e.length?a(document):e},zIndex:function(h){if(h!==d){return this.css("zIndex",h)}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==document){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function j(m,l,i,n){a.each(f,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(i){l-=parseFloat(a.curCSS(m,"border"+this+"Width",true))||0}if(n){l-=parseFloat(a.curCSS(m,"margin"+this,true))||0}});return l}a.fn["inner"+e]=function(i){if(i===d){return k["inner"+e].call(this)}return this.each(function(){a(this).css(h,j(this,i)+"px")})};a.fn["outer"+e]=function(i,l){if(typeof i!=="number"){return k["outer"+e].call(this,i)}return this.each(function(){a(this).css(h,j(this,i,true,l)+"px")})}});function c(g,e){var j=g.nodeName.toLowerCase();if("area"===j){var i=g.parentNode,h=i.name,f;if(!g.href||!h||i.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+h+"]")[0];return !!f&&b(f)}return(/input|select|textarea|button|object/.test(j)?!g.disabled:"a"==j?g.href||e:e)&&b(g)}function b(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(g,f,e){return !!a.data(g,e[3])},focusable:function(e){return c(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(g){var e=a.attr(g,"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f)}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));f.offsetHeight;a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(e,g,f){var j=e.plugins[g];if(!j||!e.element[0].parentNode){return}for(var h=0;h0){return true}h[e]=1;g=(h[e]>0);h[e]=0;return g},isOverAxis:function(f,e,g){return(f>e)&&(f<(e+g))},isOver:function(j,f,i,h,e,g){return a.ui.isOverAxis(j,i,e)&&a.ui.isOverAxis(f,h,g)}})})(jQuery);/* + * jQuery UI Widget 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Widget + */ +(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){for(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove")}catch(j){}}c(f)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(g){}})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,f,g){var j,i,h=this.options[e];g=g||{};f=b.Event(f);f.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();f.target=this.element[0];i=f.originalEvent;if(i){for(j in i){if(!(j in f)){f[j]=i[j]}}}this.element.trigger(f,g);return !(b.isFunction(h)&&h.call(this.element[0],f,g)===false||f.isDefaultPrevented())}}})(jQuery);/* + * jQuery UI Mouse 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Mouse + * + * Depends: + * jquery.ui.widget.js + */ +(function(b,c){var a=false;b(document).mouseup(function(d){a=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(f){if(a){return}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1),d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true}}if(true===b.data(f.target,this.widgetName+".preventClickEvent")){b.removeData(f.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(h){return e._mouseMove(h)};this._mouseUpDelegate=function(h){return e._mouseUp(h)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();a=true;return true},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDelayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true}})})(jQuery);(function(c,d){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var f=this,k=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(k.aspectRatio),aspectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(c('
').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=k.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var l=this.handles.split(",");this.handles={};for(var g=0;g
');if(/sw|se|ne|nw/.test(j)){h.css({zIndex:++k.zIndex})}if("se"==j){h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[j]=".ui-resizable-"+j;this.element.append(h)}}this._renderAxis=function(q){q=q||this.element;for(var n in this.handles){if(this.handles[n].constructor==String){this.handles[n]=c(this.handles[n],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var o=c(this.handles[n],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth();var m=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");q.css(m,p);this._proportionallyResize()}if(!c(this.handles[n]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!f.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}f.axis=i&&i[1]?i[1]:"se"}});if(k.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){if(k.disabled){return}c(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(k.disabled){return}if(!f.resizing){c(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){c(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(f){var g=false;for(var e in this.handles){if(c(this.handles[e])[0]==f.target){g=true}}return !this.options.disabled&&g},_mouseStart:function(g){var j=this.options,f=this.element.position(),e=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(e.is(".ui-draggable")||(/absolute/).test(e.css("position"))){e.css({position:"absolute",top:f.top,left:f.left})}this._renderProxy();var k=b(this.helper.css("left")),h=b(this.helper.css("top"));if(j.containment){k+=c(j.containment).scrollLeft()||0;h+=c(j.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:k,top:h};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:k,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=(typeof j.aspectRatio=="number")?j.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var i=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",i=="auto"?this.axis+"-resize":i);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(e){var h=this.helper,g=this.options,m={},q=this,j=this.originalMousePosition,n=this.axis;var r=(e.pageX-j.left)||0,p=(e.pageY-j.top)||0;var i=this._change[n];if(!i){return false}var l=i.apply(this,[e,r,p]),k=c.browser.msie&&c.browser.version<7,f=this.sizeDiff;this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey){l=this._updateRatio(l,e)}l=this._respectSize(l,e);this._propagate("resize",e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(l);this._trigger("resize",e,this.ui());return false},_mouseStop:function(h){this.resizing=false;var i=this.options,m=this;if(this._helper){var g=this._proportionallyResizeElements,e=g.length&&(/textarea/i).test(g[0].nodeName),f=e&&c.ui.hasScroll(g[0],"left")?0:m.sizeDiff.height,k=e?0:m.sizeDiff.width;var n={width:(m.helper.width()-k),height:(m.helper.height()-f)},j=(parseInt(m.element.css("left"),10)+(m.position.left-m.originalPosition.left))||null,l=(parseInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top))||null;if(!i.animate){this.element.css(c.extend(n,{top:l,left:j}))}m.helper.height(m.size.height);m.helper.width(m.size.width);if(this._helper&&!i.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(g){var j=this.options,i,h,f,k,e;e={minWidth:a(j.minWidth)?j.minWidth:0,maxWidth:a(j.maxWidth)?j.maxWidth:Infinity,minHeight:a(j.minHeight)?j.minHeight:0,maxHeight:a(j.maxHeight)?j.maxHeight:Infinity};if(this._aspectRatio||g){i=e.minHeight*this.aspectRatio;f=e.minWidth/this.aspectRatio;h=e.maxHeight*this.aspectRatio;k=e.maxWidth/this.aspectRatio;if(i>e.minWidth){e.minWidth=i}if(f>e.minHeight){e.minHeight=f}if(hl.width),s=a(l.height)&&i.minHeight&&(i.minHeight>l.height);if(h){l.width=i.minWidth}if(s){l.height=i.minHeight}if(t){l.width=i.maxWidth}if(m){l.height=i.maxHeight}var f=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height;var k=/sw|nw|w/.test(q),e=/nw|ne|n/.test(q);if(h&&k){l.left=f-i.minWidth}if(t&&k){l.left=f-i.maxWidth}if(s&&e){l.top=p-i.minHeight}if(m&&e){l.top=p-i.maxHeight}var n=!l.width&&!l.height;if(n&&!l.left&&l.top){l.top=null}else{if(n&&!l.top&&l.left){l.left=null}}return l},_proportionallyResize:function(){var k=this.options;if(!this._proportionallyResizeElements.length){return}var g=this.helper||this.element;for(var f=0;f');var e=c.browser.msie&&c.browser.version<7,g=(e?1:0),h=(e?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++i.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(g,f,e){return{width:this.originalSize.width+f}},w:function(h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;return{left:i.left+f,width:g.width-f}},n:function(h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;return{top:i.top+e,height:g.height-e}},s:function(g,f,e){return{height:this.originalSize.height+e}},se:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},sw:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,e]))},ne:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},nw:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,e]))}},_propagate:function(f,e){c.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.18"});c.ui.plugin.add("resizable","alsoResize",{start:function(f,g){var e=c(this).data("resizable"),i=e.options;var h=function(j){c(j).each(function(){var k=c(this);k.data("resizable-alsoresize",{width:parseInt(k.width(),10),height:parseInt(k.height(),10),left:parseInt(k.css("left"),10),top:parseInt(k.css("top"),10)})})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.parentNode){if(i.alsoResize.length){i.alsoResize=i.alsoResize[0];h(i.alsoResize)}else{c.each(i.alsoResize,function(j){h(j)})}}else{h(i.alsoResize)}},resize:function(g,i){var f=c(this).data("resizable"),j=f.options,h=f.originalSize,l=f.originalPosition;var k={height:(f.size.height-h.height)||0,width:(f.size.width-h.width)||0,top:(f.position.top-l.top)||0,left:(f.position.left-l.left)||0},e=function(m,n){c(m).each(function(){var q=c(this),r=c(this).data("resizable-alsoresize"),p={},o=n&&n.length?n:q.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(o,function(s,u){var t=(r[u]||0)+(k[u]||0);if(t&&t>=0){p[u]=t||null}});q.css(p)})};if(typeof(j.alsoResize)=="object"&&!j.alsoResize.nodeType){c.each(j.alsoResize,function(m,n){e(m,n)})}else{e(j.alsoResize)}},stop:function(e,f){c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(i,n){var p=c(this).data("resizable"),j=p.options;var h=p._proportionallyResizeElements,e=h.length&&(/textarea/i).test(h[0].nodeName),f=e&&c.ui.hasScroll(h[0],"left")?0:p.sizeDiff.height,l=e?0:p.sizeDiff.width;var g={width:(p.size.width-l),height:(p.size.height-f)},k=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,m=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(c.extend(g,m&&k?{top:m,left:k}:{}),{duration:j.animateDuration,easing:j.animateEasing,step:function(){var o={width:parseInt(p.element.css("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10),left:parseInt(p.element.css("left"),10)};if(h&&h.length){c(h[0]).css({width:o.width,height:o.height})}p._updateCache(o);p._propagate("resize",i)}})}});c.ui.plugin.add("resizable","containment",{start:function(f,r){var t=c(this).data("resizable"),j=t.options,l=t.element;var g=j.containment,k=(g instanceof c)?g.get(0):(/parent/.test(g))?l.parent().get(0):g;if(!k){return}t.containerElement=c(k);if(/document/.test(g)||g==document){t.containerOffset={left:0,top:0};t.containerPosition={left:0,top:0};t.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var n=c(k),i=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){i[p]=b(n.css("padding"+o))});t.containerOffset=n.offset();t.containerPosition=n.position();t.containerSize={height:(n.innerHeight()-i[3]),width:(n.innerWidth()-i[1])};var q=t.containerOffset,e=t.containerSize.height,m=t.containerSize.width,h=(c.ui.hasScroll(k,"left")?k.scrollWidth:m),s=(c.ui.hasScroll(k)?k.scrollHeight:e);t.parentData={element:k,left:q.left,top:q.top,width:h,height:s}}},resize:function(g,q){var t=c(this).data("resizable"),i=t.options,f=t.containerSize,p=t.containerOffset,m=t.size,n=t.position,r=t._aspectRatio||g.shiftKey,e={top:0,left:0},h=t.containerElement;if(h[0]!=document&&(/static/).test(h.css("position"))){e=p}if(n.left<(t._helper?p.left:0)){t.size.width=t.size.width+(t._helper?(t.position.left-p.left):(t.position.left-e.left));if(r){t.size.height=t.size.width/i.aspectRatio}t.position.left=i.helper?p.left:0}if(n.top<(t._helper?p.top:0)){t.size.height=t.size.height+(t._helper?(t.position.top-p.top):t.position.top);if(r){t.size.width=t.size.height*i.aspectRatio}t.position.top=t._helper?p.top:0}t.offset.left=t.parentData.left+t.position.left;t.offset.top=t.parentData.top+t.position.top;var l=Math.abs((t._helper?t.offset.left-e.left:(t.offset.left-e.left))+t.sizeDiff.width),s=Math.abs((t._helper?t.offset.top-e.top:(t.offset.top-p.top))+t.sizeDiff.height);var k=t.containerElement.get(0)==t.element.parent().get(0),j=/relative|absolute/.test(t.containerElement.css("position"));if(k&&j){l-=t.parentData.left}if(l+t.size.width>=t.parentData.width){t.size.width=t.parentData.width-l;if(r){t.size.height=t.size.width/t.aspectRatio}}if(s+t.size.height>=t.parentData.height){t.size.height=t.parentData.height-s;if(r){t.size.width=t.size.height*t.aspectRatio}}},stop:function(f,n){var q=c(this).data("resizable"),g=q.options,l=q.position,m=q.containerOffset,e=q.containerPosition,i=q.containerElement;var j=c(q.helper),r=j.offset(),p=j.outerWidth()-q.sizeDiff.width,k=j.outerHeight()-q.sizeDiff.height;if(q._helper&&!g.animate&&(/relative/).test(i.css("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}if(q._helper&&!g.animate&&(/static/).test(i.css("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}}});c.ui.plugin.add("resizable","ghost",{start:function(g,h){var e=c(this).data("resizable"),i=e.options,f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.ghost:"");e.ghost.appendTo(e.helper)},resize:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(e,m){var p=c(this).data("resizable"),h=p.options,k=p.size,i=p.originalSize,j=p.originalPosition,n=p.axis,l=h._aspectRatio||e.shiftKey;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var g=Math.round((k.width-i.width)/(h.grid[0]||1))*(h.grid[0]||1),f=Math.round((k.height-i.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f}else{if(/^(ne)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f}else{if(/^(sw)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f;p.position.left=j.left-g}else{p.size.width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f;p.position.left=j.left-g}}}}});var b=function(e){return parseInt(e,10)||0};var a=function(e){return !isNaN(parseInt(e,10))}})(jQuery);/* + * jQuery hashchange event - v1.3 - 7/21/2010 + * http://benalman.com/projects/jquery-hashchange-plugin/ + * + * Copyright (c) 2010 "Cowboy" Ben Alman + * Dual licensed under the MIT and GPL licenses. + * http://benalman.com/about/license/ + */ +(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('