Compare commits
54 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c5236ed22f | |||
| 39b67706e4 | |||
| d1bd82af26 | |||
| d91f96da42 | |||
| 63627b8b92 | |||
| 541f89a96e | |||
| 87eff6070d | |||
| 6cd22b48a9 | |||
| 7ab8e9a8d6 | |||
| 962a94bb87 | |||
| f179c01210 | |||
| 27cdd98cb7 | |||
| 4334bffa25 | |||
| 87e63e2817 | |||
| 2399563041 | |||
| 72bf58ad4c | |||
| 22432c7fea | |||
| 38ab24ba79 | |||
| ae6dccc183 | |||
| 88455247a4 | |||
| fd29d6a931 | |||
| c9f0cce564 | |||
| ad748865a6 | |||
| f304d3c6e1 | |||
| 219d434006 | |||
| b94f93780f | |||
| ce0aceb33c | |||
| 6439395833 | |||
| f5afb50041 | |||
| 52416fbf9a | |||
| aa065ec32d | |||
| 6aef6bddb8 | |||
| 56a2b13615 | |||
| ae640ed40c | |||
| a1eb193278 | |||
| 3022c1eee8 | |||
| a24318538b | |||
| 960d1b5e5b | |||
| 460f960a87 | |||
| 7cc063737c | |||
| e85eac086b | |||
| 3f8a84cd0f | |||
| 0f225c2be4 | |||
| 401ea39e5b | |||
| 9d9dd36b26 | |||
| 9515a069f3 | |||
| 4bd52f2e04 | |||
| a14b524056 | |||
| b192496ba5 | |||
| 9915fd497b | |||
| e8b5566c7a | |||
| db6feba19c | |||
| 4a3bd4b385 | |||
| f5ae800916 |
@@ -180,6 +180,7 @@ set (wsjt_qt_CXXSRCS
|
||||
NetworkMessage.cpp
|
||||
Message.cpp
|
||||
MessageClient.cpp
|
||||
TCPClient.cpp
|
||||
LettersSpinBox.cpp
|
||||
HintedSpinBox.cpp
|
||||
RestrictedSpinBox.cpp
|
||||
|
||||
@@ -24,29 +24,29 @@ Finally, every program is threatened constantly by software patents. States shou
|
||||
|
||||
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.
|
||||
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.
|
||||
"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.
|
||||
"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.
|
||||
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.
|
||||
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 "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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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 "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" 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.
|
||||
|
||||
@@ -68,15 +68,15 @@ You may charge any price or no price for each copy that you convey, and you may
|
||||
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
"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).
|
||||
|
||||
@@ -84,13 +84,13 @@ The requirement to provide Installation Information does not include a requireme
|
||||
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
|
||||
@@ -108,23 +108,23 @@ Termination of your rights under this section does not terminate the licenses of
|
||||
|
||||
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.
|
||||
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”.
|
||||
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.
|
||||
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.
|
||||
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 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.
|
||||
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.
|
||||
|
||||
@@ -134,13 +134,13 @@ Nothing in this License shall be construed as excluding or limiting any implied
|
||||
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
|
||||
|
||||
@@ -591,6 +591,7 @@ private:
|
||||
QStringList my_groups_;
|
||||
QStringList auto_whitelist_;
|
||||
QStringList auto_blacklist_;
|
||||
QString eot_;
|
||||
QString my_info_;
|
||||
QString cq_;
|
||||
QString reply_;
|
||||
@@ -628,6 +629,7 @@ private:
|
||||
qint32 RxBandwidth_;
|
||||
double degrade_;
|
||||
double txDelay_;
|
||||
bool reset_activity_;
|
||||
bool check_for_updates_;
|
||||
bool id_after_73_;
|
||||
bool tx_qsy_allowed_;
|
||||
@@ -647,6 +649,8 @@ private:
|
||||
bool ppfx_;
|
||||
bool clear_callsign_;
|
||||
bool miles_;
|
||||
bool hold_ptt_;
|
||||
bool avoid_forced_identify_;
|
||||
bool avoid_allcall_;
|
||||
bool spellcheck_;
|
||||
bool quick_call_;
|
||||
@@ -671,13 +675,12 @@ private:
|
||||
|
||||
QString udp_server_name_;
|
||||
port_type udp_server_port_;
|
||||
// QString n1mm_server_name () const;
|
||||
QString n3fjp_server_name_;
|
||||
port_type n3fjp_server_port_;
|
||||
bool broadcast_to_n3fjp_;
|
||||
QString n1mm_server_name_;
|
||||
port_type n1mm_server_port_;
|
||||
bool broadcast_to_n1mm_;
|
||||
// port_type n1mm_server_port () const;
|
||||
// bool valid_n1mm_info () const;
|
||||
// bool broadcast_to_n1mm() const;
|
||||
bool accept_udp_requests_;
|
||||
bool udpWindowToFront_;
|
||||
bool udpWindowRestore_;
|
||||
@@ -751,6 +754,7 @@ qint32 Configuration::aggressive() const {return m_->aggressive_;}
|
||||
double Configuration::degrade() const {return m_->degrade_;}
|
||||
double Configuration::txDelay() const {return m_->txDelay_;}
|
||||
qint32 Configuration::RxBandwidth() const {return m_->RxBandwidth_;}
|
||||
bool Configuration::reset_activity() const { return m_->reset_activity_;}
|
||||
bool Configuration::check_for_updates() const { return m_->check_for_updates_; }
|
||||
bool Configuration::id_after_73 () const {return m_->id_after_73_;}
|
||||
bool Configuration::tx_qsy_allowed () const {return m_->tx_qsy_allowed_;}
|
||||
@@ -768,7 +772,13 @@ void Configuration::set_spot_to_reporting_networks (bool spot)
|
||||
}
|
||||
|
||||
bool Configuration::transmit_directed() const { return m_->transmit_directed_; }
|
||||
bool Configuration::autoreply_off_at_startup () const {return m_->autoreply_off_at_startup_;}
|
||||
bool Configuration::autoreply_off_at_startup () const {
|
||||
// auto-reply cannot be on at startup if the callsign or grid is empty
|
||||
if(my_callsign().isEmpty() || my_grid().isEmpty()){
|
||||
return true;
|
||||
}
|
||||
return m_->autoreply_off_at_startup_;
|
||||
}
|
||||
bool Configuration::heartbeat_anywhere() const { return m_->heartbeat_anywhere_;}
|
||||
bool Configuration::heartbeat_qso_pause() const { return m_->heartbeat_qso_pause_;}
|
||||
bool Configuration::relay_off() const { return m_->relay_disabled_; }
|
||||
@@ -782,6 +792,8 @@ bool Configuration::DXCC () const {return m_->DXCC_;}
|
||||
bool Configuration::ppfx() const {return m_->ppfx_;}
|
||||
bool Configuration::clear_callsign () const {return m_->clear_callsign_;}
|
||||
bool Configuration::miles () const {return m_->miles_;}
|
||||
bool Configuration::hold_ptt() const {return m_->hold_ptt_;}
|
||||
bool Configuration::avoid_forced_identify() const {return m_->avoid_forced_identify_;}
|
||||
bool Configuration::avoid_allcall () const {return m_->avoid_allcall_;}
|
||||
bool Configuration::set_avoid_allcall(bool avoid) {
|
||||
if(m_->avoid_allcall_ != avoid){
|
||||
@@ -812,6 +824,9 @@ QString Configuration::aprs_passcode() const { return m_->aprs_passcode_; }
|
||||
QString Configuration::udp_server_name () const {return m_->udp_server_name_;}
|
||||
auto Configuration::udp_server_port () const -> port_type {return m_->udp_server_port_;}
|
||||
bool Configuration::accept_udp_requests () const {return m_->accept_udp_requests_;}
|
||||
QString Configuration::n3fjp_server_name () const {return m_->n3fjp_server_name_;}
|
||||
auto Configuration::n3fjp_server_port () const -> port_type {return m_->n3fjp_server_port_;}
|
||||
bool Configuration::broadcast_to_n3fjp () const {return m_->broadcast_to_n3fjp_;}
|
||||
QString Configuration::n1mm_server_name () const {return m_->n1mm_server_name_;}
|
||||
auto Configuration::n1mm_server_port () const -> port_type {return m_->n1mm_server_port_;}
|
||||
bool Configuration::broadcast_to_n1mm () const {return m_->broadcast_to_n1mm_;}
|
||||
@@ -942,6 +957,15 @@ void Configuration::sync_transceiver (bool force_signal, bool enforce_mode_and_s
|
||||
}
|
||||
}
|
||||
|
||||
bool Configuration::valid_n3fjp_info () const
|
||||
{
|
||||
// do very rudimentary checking on the n3fjp server name and port number.
|
||||
//
|
||||
auto server_name = m_->n3fjp_server_name_;
|
||||
auto port_number = m_->n3fjp_server_port_;
|
||||
return(!(server_name.trimmed().isEmpty() || port_number == 0));
|
||||
}
|
||||
|
||||
bool Configuration::valid_n1mm_info () const
|
||||
{
|
||||
// do very rudimentary checking on the n1mm server name and port number.
|
||||
@@ -986,6 +1010,10 @@ QSet<QString> Configuration::auto_blacklist() const {
|
||||
return QSet<QString>::fromList(m_->auto_blacklist_);
|
||||
}
|
||||
|
||||
QString Configuration::eot() const {
|
||||
return m_->eot_;
|
||||
}
|
||||
|
||||
QString Configuration::my_info() const
|
||||
{
|
||||
auto info = m_->my_info_;
|
||||
@@ -998,7 +1026,7 @@ QString Configuration::my_info() const
|
||||
|
||||
QString Configuration::cq_message() const
|
||||
{
|
||||
return m_->cq_.trimmed();
|
||||
return m_->cq_.trimmed().replace("CQCQCQ", "CQ CQ CQ"); // deprecate legacy
|
||||
}
|
||||
|
||||
QString Configuration::reply_message() const
|
||||
@@ -1185,10 +1213,13 @@ Configuration::impl::impl (Configuration * self, QDir const& temp_directory,
|
||||
setUppercase(ui_->groups_line_edit);
|
||||
setUppercase(ui_->auto_whitelist_line_edit);
|
||||
|
||||
ui_->udp_server_port_spin_box->setMinimum (1);
|
||||
ui_->udp_server_port_spin_box->setMinimum (0);
|
||||
ui_->udp_server_port_spin_box->setMaximum (std::numeric_limits<port_type>::max ());
|
||||
|
||||
ui_->n1mm_server_port_spin_box->setMinimum (1);
|
||||
ui_->n3fjp_server_port_spin_box->setMinimum (0);
|
||||
ui_->n3fjp_server_port_spin_box->setMaximum (std::numeric_limits<port_type>::max ());
|
||||
|
||||
ui_->n1mm_server_port_spin_box->setMinimum (0);
|
||||
ui_->n1mm_server_port_spin_box->setMaximum (std::numeric_limits<port_type>::max ());
|
||||
|
||||
//
|
||||
@@ -1375,8 +1406,9 @@ void Configuration::impl::initialize_models ()
|
||||
ui_->groups_line_edit->setText(my_groups_.join(", "));
|
||||
ui_->auto_whitelist_line_edit->setText(auto_whitelist_.join(", "));
|
||||
ui_->auto_blacklist_line_edit->setText(auto_blacklist_.join(", "));
|
||||
ui_->eot_line_edit->setText(eot_.trimmed().left(2));
|
||||
ui_->info_message_line_edit->setText (my_info_.toUpper());
|
||||
ui_->cq_message_line_edit->setText(cq_.toUpper());
|
||||
ui_->cq_message_line_edit->setText(cq_.toUpper().replace("CQCQCQ", "CQ CQ CQ"));
|
||||
ui_->reply_message_line_edit->setText (reply_.toUpper());
|
||||
ui_->use_dynamic_grid->setChecked(use_dynamic_info_);
|
||||
|
||||
@@ -1402,6 +1434,7 @@ void Configuration::impl::initialize_models ()
|
||||
ui_->sound_cq_path_display_label->setText(sound_cq_path_);
|
||||
ui_->sound_dm_path_display_label->setText(sound_dm_path_);
|
||||
ui_->sound_am_path_display_label->setText(sound_am_path_);
|
||||
ui_->reset_activity_check_box->setChecked (reset_activity_);
|
||||
ui_->checkForUpdates_checkBox->setChecked (check_for_updates_);
|
||||
ui_->CW_id_after_73_check_box->setChecked (id_after_73_);
|
||||
ui_->tx_qsy_check_box->setChecked (tx_qsy_allowed_);
|
||||
@@ -1419,7 +1452,9 @@ void Configuration::impl::initialize_models ()
|
||||
ui_->prompt_to_log_check_box->setChecked (prompt_to_log_);
|
||||
ui_->clear_callsign_check_box->setChecked (clear_callsign_);
|
||||
ui_->miles_check_box->setChecked (miles_);
|
||||
ui_->avoid_allcall_checkbox->setChecked(avoid_allcall_);
|
||||
ui_->hold_ptt_check_box->setChecked(hold_ptt_);
|
||||
ui_->avoid_forced_identify_check_box->setChecked(avoid_forced_identify_);
|
||||
ui_->avoid_allcall_check_box->setChecked(avoid_allcall_);
|
||||
ui_->spellcheck_check_box->setChecked(spellcheck_);
|
||||
ui_->quick_call_check_box->setChecked (quick_call_);
|
||||
ui_->disable_TX_on_73_check_box->setChecked (disable_TX_on_73_);
|
||||
@@ -1469,6 +1504,9 @@ void Configuration::impl::initialize_models ()
|
||||
ui_->udp_server_line_edit->setText (udp_server_name_);
|
||||
ui_->udp_server_port_spin_box->setValue (udp_server_port_);
|
||||
ui_->accept_udp_requests_check_box->setChecked (accept_udp_requests_);
|
||||
ui_->n3fjp_server_name_line_edit->setText (n3fjp_server_name_);
|
||||
ui_->n3fjp_server_port_spin_box->setValue (n3fjp_server_port_);
|
||||
ui_->enable_n3fjp_broadcast_check_box->setChecked (broadcast_to_n3fjp_);
|
||||
ui_->n1mm_server_name_line_edit->setText (n1mm_server_name_);
|
||||
ui_->n1mm_server_port_spin_box->setValue (n1mm_server_port_);
|
||||
ui_->enable_n1mm_broadcast_check_box->setChecked (broadcast_to_n1mm_);
|
||||
@@ -1524,8 +1562,9 @@ void Configuration::impl::read_settings ()
|
||||
auto_blacklist_ = settings_->value("AutoBlacklist", QStringList{}).toStringList();
|
||||
callsign_aging_ = settings_->value ("CallsignAging", 0).toInt ();
|
||||
activity_aging_ = settings_->value ("ActivityAging", 2).toInt ();
|
||||
eot_ = settings_->value("EOTCharacter", QString{"\u2662"}).toString().trimmed().left(2);
|
||||
my_info_ = settings_->value("MyInfo", QString {}).toString();
|
||||
cq_ = settings_->value("CQMessage", QString {"CQCQCQ <MYGRID4>"}).toString();
|
||||
cq_ = settings_->value("CQMessage", QString {"CQ CQ CQ <MYGRID4>"}).toString();
|
||||
reply_ = settings_->value("Reply", QString {"HW CPY?"}).toString();
|
||||
next_color_cq_ = color_cq_ = settings_->value("colorCQ","#66ff66").toString();
|
||||
next_color_mycall_ = color_mycall_ = settings_->value("colorMyCall","#ff6666").toString();
|
||||
@@ -1680,6 +1719,7 @@ void Configuration::impl::read_settings ()
|
||||
monitor_off_at_startup_ = settings_->value ("MonitorOFF", false).toBool ();
|
||||
monitor_last_used_ = settings_->value ("MonitorLastUsed", false).toBool ();
|
||||
spot_to_reporting_networks_ = settings_->value ("PSKReporter", true).toBool ();
|
||||
reset_activity_ = settings_->value("ResetActivity", false).toBool();
|
||||
check_for_updates_ = settings_->value("CheckForUpdates", true).toBool();
|
||||
id_after_73_ = settings_->value ("After73", false).toBool ();
|
||||
tx_qsy_allowed_ = settings_->value ("TxQSYAllowed", false).toBool ();
|
||||
@@ -1735,6 +1775,8 @@ void Configuration::impl::read_settings ()
|
||||
ppfx_ = settings_->value ("PrincipalPrefix", false).toBool ();
|
||||
clear_callsign_ = settings_->value ("ClearCallGrid", false).toBool ();
|
||||
miles_ = settings_->value ("Miles", false).toBool ();
|
||||
hold_ptt_ = settings_->value ("HoldPTT", false).toBool();
|
||||
avoid_forced_identify_ = settings_->value ("AvoidForcedIdentify", false).toBool ();
|
||||
avoid_allcall_ = settings_->value ("AvoidAllcall", false).toBool ();
|
||||
spellcheck_ = settings_->value ("Spellcheck", true).toBool();
|
||||
quick_call_ = settings_->value ("QuickCall", false).toBool ();
|
||||
@@ -1762,6 +1804,9 @@ void Configuration::impl::read_settings ()
|
||||
aprs_passcode_ = settings_->value ("aprsPasscode", "").toString();
|
||||
udp_server_name_ = settings_->value ("UDPServer", "127.0.0.1").toString ();
|
||||
udp_server_port_ = settings_->value ("UDPServerPort", 2237).toUInt ();
|
||||
n3fjp_server_name_ = settings_->value ("N3FJPServer", "127.0.0.1").toString ();
|
||||
n3fjp_server_port_ = settings_->value ("N3FJPServerPort", 1100).toUInt ();
|
||||
broadcast_to_n3fjp_ = settings_->value ("BroadcastToN3FJP", false).toBool ();
|
||||
n1mm_server_name_ = settings_->value ("N1MMServer", "127.0.0.1").toString ();
|
||||
n1mm_server_port_ = settings_->value ("N1MMServerPort", 2333).toUInt ();
|
||||
broadcast_to_n1mm_ = settings_->value ("BroadcastToN1MM", false).toBool ();
|
||||
@@ -1785,6 +1830,7 @@ void Configuration::impl::write_settings ()
|
||||
settings_->setValue ("MyGroups", my_groups_);
|
||||
settings_->setValue ("AutoWhitelist", auto_whitelist_);
|
||||
settings_->setValue ("AutoBlacklist", auto_blacklist_);
|
||||
settings_->setValue ("EOTCharacter", eot_);
|
||||
settings_->setValue ("MyInfo", my_info_);
|
||||
settings_->setValue ("CQMessage", cq_);
|
||||
settings_->setValue ("Reply", reply_);
|
||||
@@ -1853,6 +1899,7 @@ void Configuration::impl::write_settings ()
|
||||
settings_->setValue ("MonitorOFF", monitor_off_at_startup_);
|
||||
settings_->setValue ("MonitorLastUsed", monitor_last_used_);
|
||||
settings_->setValue ("PSKReporter", spot_to_reporting_networks_);
|
||||
settings_->setValue ("ResetActivity", reset_activity_);
|
||||
settings_->setValue ("CheckForUpdates", check_for_updates_);
|
||||
settings_->setValue ("After73", id_after_73_);
|
||||
settings_->setValue ("TxQSYAllowed", tx_qsy_allowed_);
|
||||
@@ -1876,6 +1923,8 @@ void Configuration::impl::write_settings ()
|
||||
settings_->setValue ("PrincipalPrefix", ppfx_);
|
||||
settings_->setValue ("ClearCallGrid", clear_callsign_);
|
||||
settings_->setValue ("Miles", miles_);
|
||||
settings_->setValue ("HoldPTT", hold_ptt_);
|
||||
settings_->setValue ("AvoidForcedIdentify", avoid_forced_identify_);
|
||||
settings_->setValue ("AvoidAllcall", avoid_allcall_);
|
||||
settings_->setValue ("Spellcheck", spellcheck_);
|
||||
settings_->setValue ("QuickCall", quick_call_);
|
||||
@@ -1905,6 +1954,9 @@ void Configuration::impl::write_settings ()
|
||||
settings_->setValue ("aprsPasscode", aprs_passcode_);
|
||||
settings_->setValue ("UDPServer", udp_server_name_);
|
||||
settings_->setValue ("UDPServerPort", udp_server_port_);
|
||||
settings_->setValue ("N3FJPServer", n3fjp_server_name_);
|
||||
settings_->setValue ("N3FJPServerPort", n3fjp_server_port_);
|
||||
settings_->setValue ("BroadcastToN3FJP", broadcast_to_n3fjp_);
|
||||
settings_->setValue ("N1MMServer", n1mm_server_name_);
|
||||
settings_->setValue ("N1MMServerPort", n1mm_server_port_);
|
||||
settings_->setValue ("BroadcastToN1MM", broadcast_to_n1mm_);
|
||||
@@ -2089,6 +2141,11 @@ QStringList splitCalls(QString callsString){
|
||||
|
||||
bool Configuration::impl::validate ()
|
||||
{
|
||||
if(ui_->eot_line_edit->text().trimmed().left(2).isEmpty()){
|
||||
MessageBox::critical_message (this, tr ("Please enter an end of transmission character"));
|
||||
return false;
|
||||
}
|
||||
|
||||
auto callsign = ui_->callsign_line_edit->text().toUpper().trimmed();
|
||||
if(!Varicode::isValidCallsign(callsign, nullptr) || callsign.startsWith("@")){
|
||||
MessageBox::critical_message (this, tr ("The callsign format you provided is not supported"));
|
||||
@@ -2369,13 +2426,14 @@ void Configuration::impl::accept ()
|
||||
Q_ASSERT (audio_output_channel_ <= AudioDevice::Both);
|
||||
|
||||
auto_switch_bands_ = ui_->auto_switch_bands_check_box->isChecked();
|
||||
my_callsign_ = ui_->callsign_line_edit->text ().toUpper();
|
||||
my_grid_ = ui_->grid_line_edit->text ().toUpper();
|
||||
my_callsign_ = ui_->callsign_line_edit->text ().toUpper().trimmed();
|
||||
my_grid_ = ui_->grid_line_edit->text ().toUpper().trimmed();
|
||||
my_groups_ = splitGroups(ui_->groups_line_edit->text().toUpper().trimmed(), true);
|
||||
auto_whitelist_ = splitCalls(ui_->auto_whitelist_line_edit->text().toUpper().trimmed());
|
||||
auto_blacklist_ = splitCalls(ui_->auto_blacklist_line_edit->text().toUpper().trimmed());
|
||||
cq_ = ui_->cq_message_line_edit->text().toUpper();
|
||||
reply_ = ui_->reply_message_line_edit->text().toUpper();
|
||||
eot_ = ui_->eot_line_edit->text().trimmed().left(2);
|
||||
my_info_ = ui_->info_message_line_edit->text().toUpper();
|
||||
callsign_aging_ = ui_->callsign_aging_spin_box->value();
|
||||
activity_aging_ = ui_->activity_aging_spin_box->value();
|
||||
@@ -2386,6 +2444,7 @@ void Configuration::impl::accept ()
|
||||
aggressive_ = ui_->sbAggressive->value ();
|
||||
degrade_ = ui_->sbDegrade->value ();
|
||||
RxBandwidth_ = ui_->sbBandwidth->value ();
|
||||
reset_activity_ = ui_->reset_activity_check_box->isChecked();
|
||||
check_for_updates_ = ui_->checkForUpdates_checkBox->isChecked();
|
||||
id_after_73_ = ui_->CW_id_after_73_check_box->isChecked ();
|
||||
tx_qsy_allowed_ = ui_->tx_qsy_check_box->isChecked ();
|
||||
@@ -2402,7 +2461,9 @@ void Configuration::impl::accept ()
|
||||
prompt_to_log_ = ui_->prompt_to_log_check_box->isChecked ();
|
||||
clear_callsign_ = ui_->clear_callsign_check_box->isChecked ();
|
||||
miles_ = ui_->miles_check_box->isChecked ();
|
||||
avoid_allcall_ = ui_->avoid_allcall_checkbox->isChecked();
|
||||
hold_ptt_ = ui_->hold_ptt_check_box->isChecked();
|
||||
avoid_forced_identify_ = ui_->avoid_forced_identify_check_box->isChecked();
|
||||
avoid_allcall_ = ui_->avoid_allcall_check_box->isChecked();
|
||||
spellcheck_ = ui_->spellcheck_check_box->isChecked();
|
||||
quick_call_ = ui_->quick_call_check_box->isChecked ();
|
||||
disable_TX_on_73_ = ui_->disable_TX_on_73_check_box->isChecked ();
|
||||
@@ -2450,6 +2511,12 @@ void Configuration::impl::accept ()
|
||||
}
|
||||
|
||||
accept_udp_requests_ = ui_->accept_udp_requests_check_box->isChecked ();
|
||||
auto new_n3fjp_server = ui_->n3fjp_server_name_line_edit->text ();
|
||||
n3fjp_server_name_ = new_n3fjp_server;
|
||||
auto new_n3fjp_port = ui_->n3fjp_server_port_spin_box->value ();
|
||||
n3fjp_server_port_ = new_n3fjp_port;
|
||||
broadcast_to_n3fjp_ = ui_->enable_n3fjp_broadcast_check_box->isChecked ();
|
||||
|
||||
auto new_n1mm_server = ui_->n1mm_server_name_line_edit->text ();
|
||||
n1mm_server_name_ = new_n1mm_server;
|
||||
auto new_n1mm_port = ui_->n1mm_server_port_spin_box->value ();
|
||||
|
||||
@@ -104,6 +104,7 @@ public:
|
||||
QSet<QString> auto_blacklist() const;
|
||||
int activity_aging() const;
|
||||
int callsign_aging() const;
|
||||
QString eot() const;
|
||||
QString my_info () const;
|
||||
QString cq_message () const;
|
||||
QString reply_message () const;
|
||||
@@ -118,6 +119,7 @@ public:
|
||||
qint32 RxBandwidth() const;
|
||||
double degrade() const;
|
||||
double txDelay() const;
|
||||
bool reset_activity() const;
|
||||
bool check_for_updates() const;
|
||||
bool id_after_73 () const;
|
||||
bool tx_qsy_allowed () const;
|
||||
@@ -138,6 +140,8 @@ public:
|
||||
bool ppfx() const;
|
||||
bool clear_callsign () const;
|
||||
bool miles () const;
|
||||
bool hold_ptt() const;
|
||||
bool avoid_forced_identify() const;
|
||||
bool avoid_allcall () const;
|
||||
bool set_avoid_allcall (bool avoid);
|
||||
bool spellcheck() const;
|
||||
@@ -173,6 +177,10 @@ public:
|
||||
port_type n1mm_server_port () const;
|
||||
bool valid_n1mm_info () const;
|
||||
bool broadcast_to_n1mm() const;
|
||||
QString n3fjp_server_name () const;
|
||||
port_type n3fjp_server_port () const;
|
||||
bool valid_n3fjp_info () const;
|
||||
bool broadcast_to_n3fjp() const;
|
||||
bool accept_udp_requests () const;
|
||||
bool udpWindowToFront () const;
|
||||
bool udpWindowRestore () const;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget_2">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="stationTab">
|
||||
<attribute name="title">
|
||||
@@ -63,7 +63,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>738</width>
|
||||
<height>448</height>
|
||||
<height>453</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
@@ -146,7 +146,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QCheckBox" name="avoid_allcall_checkbox">
|
||||
<widget class="QCheckBox" name="avoid_allcall_check_box">
|
||||
<property name="text">
|
||||
<string>Do not participate in the @ALLCALL group</string>
|
||||
</property>
|
||||
@@ -278,8 +278,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>726</width>
|
||||
<height>631</height>
|
||||
<width>724</width>
|
||||
<height>808</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_26">
|
||||
@@ -367,9 +367,9 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="transmit_directed_check_box">
|
||||
<widget class="QCheckBox" name="avoid_forced_identify_check_box">
|
||||
<property name="text">
|
||||
<string>Immediately transmit CQ, Reply, Info, Saved, and Directed messages from the menu</string>
|
||||
<string>Allow sending standard messages without callsign</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -387,6 +387,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="transmit_directed_check_box">
|
||||
<property name="text">
|
||||
<string>Immediately transmit CQ, Reply, Info, Saved, and Directed messages from the menu</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="spellcheck_check_box">
|
||||
<property name="text">
|
||||
@@ -394,6 +401,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="reset_activity_check_box">
|
||||
<property name="text">
|
||||
<string>Reset the Band Activity, Call Activity, and RX history at startup</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkForUpdates_checkBox">
|
||||
<property name="text">
|
||||
@@ -748,6 +762,32 @@ text message.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_12">
|
||||
<property name="title">
|
||||
<string>Customization</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_24">
|
||||
<property name="text">
|
||||
<string>End of Transmission Character:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="eot_line_edit">
|
||||
<property name="text">
|
||||
<string>♢</string>
|
||||
</property>
|
||||
<property name="maxLength">
|
||||
<number>2</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_5">
|
||||
<property name="orientation">
|
||||
@@ -896,10 +936,68 @@ text message.</string>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
||||
<item>
|
||||
<widget class="QPushButton" name="test_CAT_push_button">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Attempt to connect to the radio with these settings.</p><p>The button will turn green if the connection is successful or red if there is a problem.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Test CAT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Preferred</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="test_PTT_push_button">
|
||||
<property name="toolTip">
|
||||
<string>Attempt to activate the transmitter.
|
||||
Click again to deactivate. Normally no power should be
|
||||
output since there is no audio being generated at this time.
|
||||
Check that any Tx indication on your radio and/or your
|
||||
radio interface behave as expected.</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton:checked {
|
||||
background-color: red;
|
||||
border-style : outset;
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
border-color: black;
|
||||
min-width: 5em;
|
||||
padding: 3px;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Test PTT</string>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" rowspan="2">
|
||||
<widget class="QTabWidget" name="tabWidget_3">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="catTab">
|
||||
<attribute name="title">
|
||||
@@ -925,8 +1023,8 @@ text message.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>285</width>
|
||||
<height>397</height>
|
||||
<width>264</width>
|
||||
<height>435</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_27">
|
||||
@@ -1346,8 +1444,8 @@ a few, particularly some Kenwood rigs, require it).</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>257</width>
|
||||
<height>427</height>
|
||||
<width>718</width>
|
||||
<height>490</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_28">
|
||||
@@ -1616,53 +1714,87 @@ this setting allows you to select which audio input will be used
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_11">
|
||||
<widget class="QGroupBox" name="groupBox_14">
|
||||
<property name="title">
|
||||
<string>Advanced</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_18">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_33">
|
||||
<item>
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="lineWidth">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_3">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>Tx delay:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>sbTxDelay</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QDoubleSpinBox" name="sbTxDelay">
|
||||
<property name="toolTip">
|
||||
<string>Minimum delay between assertion of PTT and start of Tx audio.</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> s</string>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>0.000000000000000</double>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>0.500000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="text">
|
||||
<string>PTT command:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="ptt_command_line_edit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="hold_ptt_check_box">
|
||||
<property name="text">
|
||||
<string>Tx delay:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>sbTxDelay</cstring>
|
||||
<string>Hold PTT between frames while there are more to be transmitted</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QDoubleSpinBox" name="sbTxDelay">
|
||||
<property name="toolTip">
|
||||
<string>Minimum delay between assertion of PTT and start of Tx audio.</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> s</string>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>0.000000000000000</double>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>0.500000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="text">
|
||||
<string>PTT command:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="ptt_command_line_edit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -1687,64 +1819,6 @@ this setting allows you to select which audio input will be used
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
||||
<item>
|
||||
<widget class="QPushButton" name="test_CAT_push_button">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Attempt to connect to the radio with these settings.</p><p>The button will turn green if the connection is successful or red if there is a problem.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Test CAT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Preferred</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="test_PTT_push_button">
|
||||
<property name="toolTip">
|
||||
<string>Attempt to activate the transmitter.
|
||||
Click again to deactivate. Normally no power should be
|
||||
output since there is no audio being generated at this time.
|
||||
Check that any Tx indication on your radio and/or your
|
||||
radio interface behave as expected.</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton:checked {
|
||||
background-color: red;
|
||||
border-style : outset;
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
border-color: black;
|
||||
min-width: 5em;
|
||||
padding: 3px;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Test PTT</string>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="audio_tab">
|
||||
@@ -1774,8 +1848,8 @@ radio interface behave as expected.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>267</width>
|
||||
<height>302</height>
|
||||
<width>760</width>
|
||||
<height>502</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_29">
|
||||
@@ -2087,8 +2161,8 @@ both here.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>572</width>
|
||||
<height>498</height>
|
||||
<width>746</width>
|
||||
<height>663</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_30">
|
||||
@@ -2112,7 +2186,42 @@ both here.</string>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout_14">
|
||||
<item row="0" column="3">
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="report_in_comments_check_box">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Some logging programs will not accept the type of reports
|
||||
saved by this program.
|
||||
Check this option to save the sent and received reports in the
|
||||
comments field.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>d&B reports to comments</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="clear_callsign_check_box">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Check this option to force deselect callsign after logging.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Deselect callsign after logging</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_13">
|
||||
<property name="text">
|
||||
<string>Operator Callsign (if different than Station Callsign):</string>
|
||||
@@ -2135,23 +2244,7 @@ both here.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="clear_callsign_check_box">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Check this option to force deselect callsign after logging.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Deselect callsign after logging</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<item row="0" column="3">
|
||||
<widget class="QLineEdit" name="opCallEntry">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>The callsign of the operator, if different from the station callsign.</p></body></html></string>
|
||||
@@ -2171,41 +2264,6 @@ both here.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="report_in_comments_check_box">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Some logging programs will not accept the type of reports
|
||||
saved by this program.
|
||||
Check this option to save the sent and received reports in the
|
||||
comments field.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>d&B reports to comments</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
@@ -2342,8 +2400,8 @@ comments field.</string>
|
||||
<property name="title">
|
||||
<string>Network Services</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_14">
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout_5">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="psk_reporter_check_box">
|
||||
<property name="toolTip">
|
||||
<string>The program can send your station details and all
|
||||
@@ -2359,7 +2417,7 @@ for assessing propagation and system performance.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QFormLayout" name="formLayout_17">
|
||||
<property name="fieldGrowthPolicy">
|
||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||
@@ -2437,10 +2495,58 @@ for assessing propagation and system performance.</string>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_11">
|
||||
<property name="title">
|
||||
<string>N3FJP Logger</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_12">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="enable_n3fjp_broadcast_check_box">
|
||||
<property name="text">
|
||||
<string>Enable sending logged contacts to N3FJP logging software</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QFormLayout" name="formLayout_20">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="n3fjp_server_name_label">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>N3FJP Server:</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="n3fjp_server_name_line_edit">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Optional host name of N3FJP software to receive logged contacts. This is usually 'localhost' or ip address 127.0.0.1</p><p>Formats:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">hostname</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">IPv4 address</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">IPv6 address</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">IPv4 multicast group address</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">IPv6 multicast group address</li></ul><p>Clearing this field will disable broadcasting of ADIF information via UDP.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="n3fjp_server_port_label">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>N3FJP Server Port:</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="n3fjp_server_port_spin_box">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Enter the port number that should be used for N3FJP log information. For N3FJP, this value should be 1100. If this is zero, no contacts will be sent.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="n1mm_group_box">
|
||||
<property name="title">
|
||||
<string>N1MM Logger+ Broadcasts</string>
|
||||
<string>N1MM Logger</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_15">
|
||||
<property name="fieldGrowthPolicy">
|
||||
@@ -2452,7 +2558,7 @@ for assessing propagation and system performance.</string>
|
||||
<string><html><head/><body><p>When checked, the app will broadcast a logged contact in ADIF format to the configured hostname and port. </p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable logged contact ADIF broadcast</string>
|
||||
<string>Enable sending logged contacts to N1MM logging software</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -2550,8 +2656,8 @@ for assessing propagation and system performance.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>498</width>
|
||||
<height>321</height>
|
||||
<width>760</width>
|
||||
<height>502</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_31">
|
||||
@@ -3128,8 +3234,8 @@ QListView::item:hover {
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>280</width>
|
||||
<height>201</height>
|
||||
<width>738</width>
|
||||
<height>378</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_15">
|
||||
@@ -3383,8 +3489,8 @@ QListView::item:hover {
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>236</width>
|
||||
<height>258</height>
|
||||
<width>233</width>
|
||||
<height>253</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
@@ -3587,8 +3693,8 @@ QListView::item:hover {
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>288</width>
|
||||
<height>96</height>
|
||||
<width>277</width>
|
||||
<height>93</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_8">
|
||||
@@ -3996,11 +4102,10 @@ soundcard changes</string>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>configuration_tabs</tabstop>
|
||||
<tabstop>tabWidget_2</tabstop>
|
||||
<tabstop>callsign_line_edit</tabstop>
|
||||
<tabstop>grid_line_edit</tabstop>
|
||||
<tabstop>groups_line_edit</tabstop>
|
||||
<tabstop>avoid_allcall_checkbox</tabstop>
|
||||
<tabstop>avoid_allcall_check_box</tabstop>
|
||||
<tabstop>cq_message_line_edit</tabstop>
|
||||
<tabstop>reply_message_line_edit</tabstop>
|
||||
<tabstop>info_message_line_edit</tabstop>
|
||||
@@ -4009,8 +4114,6 @@ soundcard changes</string>
|
||||
<tabstop>monitor_off_check_box</tabstop>
|
||||
<tabstop>tx_qsy_check_box</tabstop>
|
||||
<tabstop>transmit_directed_check_box</tabstop>
|
||||
<tabstop>heartbeat_anywhere_check_box</tabstop>
|
||||
<tabstop>heartbeat_qso_pause_check_box</tabstop>
|
||||
<tabstop>spellcheck_check_box</tabstop>
|
||||
<tabstop>autoreply_off_check_box</tabstop>
|
||||
<tabstop>relay_disabled_check_box</tabstop>
|
||||
@@ -4052,8 +4155,6 @@ soundcard changes</string>
|
||||
<tabstop>split_emulate_radio_button</tabstop>
|
||||
<tabstop>split_rig_radio_button</tabstop>
|
||||
<tabstop>split_none_radio_button</tabstop>
|
||||
<tabstop>sbTxDelay</tabstop>
|
||||
<tabstop>ptt_command_line_edit</tabstop>
|
||||
<tabstop>test_CAT_push_button</tabstop>
|
||||
<tabstop>test_PTT_push_button</tabstop>
|
||||
<tabstop>scrollArea_5</tabstop>
|
||||
@@ -4196,12 +4297,12 @@ soundcard changes</string>
|
||||
</connection>
|
||||
</connections>
|
||||
<buttongroups>
|
||||
<buttongroup name="CAT_stop_bits_button_group"/>
|
||||
<buttongroup name="CAT_data_bits_button_group"/>
|
||||
<buttongroup name="TX_mode_button_group"/>
|
||||
<buttongroup name="CAT_handshake_button_group"/>
|
||||
<buttongroup name="split_mode_button_group"/>
|
||||
<buttongroup name="PTT_method_button_group"/>
|
||||
<buttongroup name="split_mode_button_group"/>
|
||||
<buttongroup name="CAT_handshake_button_group"/>
|
||||
<buttongroup name="TX_audio_source_button_group"/>
|
||||
<buttongroup name="TX_mode_button_group"/>
|
||||
<buttongroup name="CAT_data_bits_button_group"/>
|
||||
<buttongroup name="CAT_stop_bits_button_group"/>
|
||||
</buttongroups>
|
||||
</ui>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Allow access to audio input devices</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
||||
@@ -1,108 +1,26 @@
|
||||
Some versions of Mac OS need special system settings to allow a shared memory
|
||||
segment to be created (this is how the application communicates with the decoder).
|
||||
|
||||
Notes on JS8Call Installation for Mac OS X
|
||||
(replace all instances of WSJT-X with JS8Call)
|
||||
Included in this DMG is a sysctl.conf file that you can use to increase the
|
||||
shared memory that the operating system allows to be allocated. You only have to do this process once.
|
||||
|
||||
Notes on WSJT-X Installation for Mac OS X
|
||||
-----------------------------------------
|
||||
To install:
|
||||
|
||||
Updated 16 July 2017
|
||||
--------------------
|
||||
0) Caution! Read through these instructions completely before proceeding.
|
||||
If you are at all uncomfortable modifying your system, please feel free to
|
||||
email me and I will help you walk though steps: kn4crd@gmail.com
|
||||
|
||||
If you have already downloaded a previous version of WSJT-X then I suggest
|
||||
you change the name in the Applications folder from WSJT-X to WSJT-X_previous
|
||||
before proceeding.
|
||||
1) Copy the sysctl.conf file to your desktop
|
||||
|
||||
If you have installed a previous version of WSJT-X before then there is no
|
||||
need to change anything on your system so proceed to NEXT.
|
||||
2) Open a Terminal window (Applications -> Utilities -> Terminal.app)
|
||||
|
||||
BEGIN:
|
||||
3) Run these commands in the Terminal window to install the sysctl.conf
|
||||
|
||||
There are some system matters you must deal with first. Open a Terminal window
|
||||
by going to Applications->Utilities and clicking on Terminal.
|
||||
sudo cp $HOME/Desktop/sysctl.conf /etc/sysctl.conf
|
||||
sudo chown root:wheel /etc/sysctl.conf
|
||||
sudo chmod 0664 /etc/sysctl.conf
|
||||
|
||||
Along with this ReadMe file there is a file: sysctl.conf. Drag this file to your Desktop.
|
||||
|
||||
WSJT-X makes use of a block of memory which is shared between different parts of
|
||||
the code. The normal allocation of shared memory on a Mac is insufficient and this
|
||||
has to be increased. You should use a Mac editor to examine sysctl.conf.
|
||||
|
||||
There are two important parameters that you need to consider. shmmax determines the
|
||||
amount of shared memory that must be allocated for WSJT-X to operate. This is 14680064 (14MB)
|
||||
and this is defined in the sysctl.conf file and should not be changed.
|
||||
|
||||
It is possible to run more than one instance of WSJT-X simultaneously. See
|
||||
"Section 14. Platform Dependencies" in the User Guide. The second important parameter
|
||||
shmall=17920 determines how many instances are permitted. This is calculated as:
|
||||
(shmall x 4096/14680064) = 5.
|
||||
The sysctl.conf file is configured to permit up to 5 instances of wsjtx to run simultaneously.
|
||||
If this limitation is acceptable then you can continue to install the sysctl.conf file without making any
|
||||
alterations. Otherwise you must edit the file to increase shmall according to this calculation.
|
||||
|
||||
Now move this file into place for the system to use by typing: (Note this assumes that
|
||||
you really did drag this file to your Desktop as required earlier.)
|
||||
|
||||
sudo cp $HOME/Desktop/sysctl.conf /etc/
|
||||
sudo chmod 664 /etc/sysctl.conf
|
||||
sudo chown root:wheel /etc/sysctl.conf
|
||||
|
||||
and then reboot your Mac. This is necessary to install the changes. After the
|
||||
reboot you should re-open the Terminal window as before and you can check that the
|
||||
change has been made by typing:
|
||||
|
||||
sysctl -a | grep sysv.shm
|
||||
|
||||
If shmmax is not shown as 14680064 then contact me since WSJT-X will fail to load with
|
||||
an error message: "Unable to create shared memory segment".
|
||||
|
||||
You are now finished with system changes. You should make certain that NO error messages
|
||||
have been produced during these steps. You can now close the Terminal window. It will
|
||||
not be necessary to repeat this procedure again, even when you download an updated
|
||||
version of WSJT-X.
|
||||
|
||||
NEXT:
|
||||
|
||||
Drag the WSJT-X app to your preferred location, such as Applications.
|
||||
|
||||
You need to configure your sound card. Visit Applications > Utilities > Audio MIDI
|
||||
Setup and select your sound card and then set Format to be "48000Hz 2ch-16bit" for
|
||||
input and output.
|
||||
|
||||
Now double-click on the WSJT-X app and two windows will appear. Select Preferences
|
||||
under the WSJT-X Menu and fill in various station details on the General panel.
|
||||
I recommend checking the 4 boxes under the Display heading and the first 4 boxes under
|
||||
the Behaviour heading.
|
||||
|
||||
Next visit the Audio panel and select the Audio Codec you use to communicate between
|
||||
WSJT-X and your rig. There are so many audio interfaces available that it is not
|
||||
possible to give detailed advice on selection. If you have difficulties contact me.
|
||||
Note the location of the Save Directory. Decoded wave forms are located here.
|
||||
|
||||
Look at the Reporting panel. If you check the "Prompt me" box, a logging panel will appear
|
||||
at the end of the QSO. Two log files are provided in Library/Application Support/WSJT-X.
|
||||
These are a simple wsjtx.log file and wsjtx_log.adi which is formatted for use with
|
||||
logging databases. The "File" menu bar items include a button "Open log directory"
|
||||
to open the log directory in Finder for you, ready for processing by any logging
|
||||
application you use.
|
||||
|
||||
Finally, visit the Radio panel. WSJT-X is most effective when operated with CAT
|
||||
control. You will need to install the relevant Mac driver for your rig. This must
|
||||
be located in the device driver directory /dev. You should install your driver
|
||||
and then re-launch WSJT-X. Return to the the Radio panel in Preferences and in
|
||||
the "Serial port" panel select your driver from the list that is presented. If
|
||||
for some reason your driver is not shown, then insert the full name
|
||||
of your driver in the Serial Port panel. Such as: /dev/tty.PL2303-00002226 or
|
||||
whatever driver you have. The /dev/ prefix is mandatory. Set the relevant
|
||||
communication parameters as required by your transceiver and click "Test CAT" to
|
||||
check.
|
||||
|
||||
WSJT-X needs the Mac clock to be accurate. Visit System Preferences > Date & Time
|
||||
and make sure that date and time are set automatically. The drop-down menu will
|
||||
normally offer you several time servers to choose from.
|
||||
|
||||
On the Help menu, have a look at the new Online User's Guide for operational hints
|
||||
and tips.
|
||||
|
||||
Please email me if you have problems.
|
||||
|
||||
--- John G4KLA (g4kla@rmnjmn.co.uk)
|
||||
4) Reboot your system.
|
||||
|
||||
If you run into any problems, feel free to reach out to me and I will help you
|
||||
walk through the steps: Jordan Sherer <kn4crd@gmail.com>
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
#include "TCPClient.h"
|
||||
|
||||
#include <QTcpSocket>
|
||||
#include <QDebug>
|
||||
|
||||
#include "pimpl_impl.hpp"
|
||||
|
||||
#include "moc_TCPClient.cpp"
|
||||
|
||||
|
||||
class TCPClient::impl
|
||||
: public QTcpSocket
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using port_type = quint16;
|
||||
|
||||
impl (TCPClient * self)
|
||||
: self_ {self}
|
||||
{
|
||||
}
|
||||
|
||||
~impl ()
|
||||
{
|
||||
}
|
||||
|
||||
bool isConnected(QString host, port_type port){
|
||||
if(host_ != host || port_ != port){
|
||||
disconnectFromHost();
|
||||
return false;
|
||||
}
|
||||
return state() == QTcpSocket::ConnectedState ;
|
||||
}
|
||||
|
||||
void connectToHost(QString host, port_type port){
|
||||
host_ = host;
|
||||
port_ = port;
|
||||
|
||||
QTcpSocket::connectToHost(host_, port_);
|
||||
}
|
||||
|
||||
qint64 send(QByteArray const &message, bool crlf){
|
||||
return write(message + (crlf ? "\r\f" : ""));
|
||||
}
|
||||
|
||||
TCPClient * self_;
|
||||
QString host_;
|
||||
port_type port_;
|
||||
};
|
||||
|
||||
#include "TCPClient.moc"
|
||||
|
||||
TCPClient::TCPClient(QObject *parent) : QObject(parent)
|
||||
, m_ {this}
|
||||
{
|
||||
}
|
||||
|
||||
bool TCPClient::ensureConnected(QString host, port_type port, int msecs){
|
||||
if(!m_->isConnected(host, port)){
|
||||
m_->connectToHost(host, port);
|
||||
}
|
||||
|
||||
return m_->waitForConnected(msecs);
|
||||
}
|
||||
|
||||
bool TCPClient::sendNetworkMessage(QString host, port_type port, QByteArray const &message, bool crlf, int msecs){
|
||||
if(!ensureConnected(host, port, msecs)){
|
||||
return false;
|
||||
}
|
||||
|
||||
qint64 n = m_->send(message, crlf);
|
||||
if(n <= 0){
|
||||
return false;
|
||||
}
|
||||
|
||||
return m_->flush();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef TCPCLIENT_H
|
||||
#define TCPCLIENT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QTcpSocket>
|
||||
|
||||
#include "pimpl_h.hpp"
|
||||
|
||||
class TCPClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
using port_type = quint16;
|
||||
|
||||
explicit TCPClient(QObject *parent = nullptr);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
Q_SLOT bool ensureConnected(QString host, port_type port, int msecs = 5000);
|
||||
Q_SLOT bool sendNetworkMessage(QString host, port_type port, QByteArray const &message, bool crlf=true, int msecs=5000);
|
||||
|
||||
private:
|
||||
class impl;
|
||||
pimpl<impl> m_;
|
||||
};
|
||||
|
||||
#endif // TCPCLIENT_H
|
||||
@@ -1,6 +1,6 @@
|
||||
# Version number components
|
||||
set (WSJTX_VERSION_MAJOR 1)
|
||||
set (WSJTX_VERSION_MINOR 0)
|
||||
set (WSJTX_VERSION_MINOR 1)
|
||||
set (WSJTX_VERSION_PATCH 0)
|
||||
set (WSJTX_RC 0) # release candidate number, comment out or zero for development versions
|
||||
set (WSJTX_VERSION_IS_RELEASE 0) # set to 1 for final release build
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
viewBox="0 0 270.93333 270.93334"
|
||||
version="1.1"
|
||||
id="svg16"
|
||||
inkscape:export-filename="/home/jordan/bitmap.png"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
inkscape:export-ydpi="300.06662"
|
||||
inkscape:export-filename="/home/jordan/jtsdk/src/wsjtx/artwork/js8call_icon.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"
|
||||
sodipodi:docname="icon_1024.svg">
|
||||
<defs
|
||||
@@ -38,11 +38,11 @@
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.48333333"
|
||||
inkscape:cx="1350"
|
||||
inkscape:cy="512"
|
||||
inkscape:zoom="0.82"
|
||||
inkscape:cx="619.41789"
|
||||
inkscape:cy="491.10861"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:current-layer="g5633"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1053"
|
||||
@@ -50,7 +50,8 @@
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
units="px"
|
||||
inkscape:pagecheckerboard="true" />
|
||||
inkscape:pagecheckerboard="true"
|
||||
showguides="false" />
|
||||
<metadata
|
||||
id="metadata13">
|
||||
<rdf:RDF>
|
||||
@@ -71,25 +72,91 @@
|
||||
<g
|
||||
id="g6030"
|
||||
transform="matrix(1.5635065,0,0,1.5635065,-28.822499,6.8392367)">
|
||||
<circle
|
||||
inkscape:export-ydpi="300.06662"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
r="81.642853"
|
||||
cy="98.940475"
|
||||
cx="105.07738"
|
||||
id="path18" />
|
||||
<text
|
||||
id="text24"
|
||||
y="152.33945"
|
||||
x="52.539673"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:176.3888855px;font-family:wasy10;-inkscape-font-specification:wasy10;fill:#000000;stroke-width:0.17748445"
|
||||
y="152.33945"
|
||||
x="52.539673"
|
||||
id="tspan22"
|
||||
sodipodi:role="line">⌁</tspan></text>
|
||||
<g
|
||||
id="g4254">
|
||||
<g
|
||||
id="g5633">
|
||||
<circle
|
||||
inkscape:export-ydpi="300.06662"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
r="81.642853"
|
||||
cy="98.940475"
|
||||
cx="105.07738"
|
||||
id="path18" />
|
||||
<g
|
||||
aria-label="J"
|
||||
style="font-style:normal;font-weight:normal;font-size:6.76897335px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.49728441;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="text5787"
|
||||
transform="matrix(1.1302083,0,0,1.1302083,-44.033339,14.076171)">
|
||||
<path
|
||||
d="m 129.49154,20.211895 v 83.918925 c 0,4.1513 0.10921,9.06732 -2.40339,12.78165 -1.85716,2.73112 -5.39174,5.2316 -8.81448,5.26817 -3.95778,0.0423 -7.64506,-2.87946 -10.32017,-5.87252 -3.94648,-0.11707 -3.15405,2.04693 -4.89921,4.20943 4.04204,4.80676 9.83203,6.34006 15.8405,6.34006 6.44543,0 12.34465,-1.97028 15.51276,-7.86948 2.62187,-4.91602 2.62187,-10.05053 2.62187,-14.96655 V 20.211895 Z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:67.68972778px;font-family:Inconsolata;-inkscape-font-specification:'Inconsolata Medium';fill:#000000;stroke:#000000;stroke-width:2.4164753;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path5791"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cscaccscscc" />
|
||||
</g>
|
||||
<g
|
||||
id="g5677"
|
||||
transform="matrix(0.79962948,0,0,0.79962948,21.054409,19.824756)">
|
||||
<g
|
||||
aria-label="8"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
id="text4763"
|
||||
transform="translate(-162.89081,-6.63358)">
|
||||
<path
|
||||
d="m 243.16443,104.08489 c -16.24554,7.31049 -27.34665,23.82678 -27.34665,40.88459 0,20.30692 16.78705,46.57053 52.25647,46.57053 35.46941,0 52.25647,-26.26361 52.25647,-46.57053 0,-13.53794 -7.85201,-32.22031 -27.34665,-40.88459 16.78705,-9.205807 24.3683,-25.7221 24.3683,-40.072323 0,-24.368302 -21.38996,-44.404461 -49.27812,-44.404461 -27.88817,0 -49.27813,20.036159 -49.27813,44.404461 0,23.014508 17.05782,36.281693 24.36831,40.072323 z m 24.90982,-71.751115 c 16.51629,0 34.65714,10.559597 34.65714,31.949551 0,20.577677 -17.05781,33.574105 -34.65714,33.574105 -21.1192,0 -34.65714,-17.057811 -34.65714,-33.574105 0,-12.996428 9.47656,-31.949551 34.65714,-31.949551 z m 0,78.249325 c 24.63906,0 37.63548,18.14085 37.63548,34.38638 0,18.14085 -16.24553,33.84487 -37.63548,33.84487 -21.38996,0 -37.63549,-15.70402 -37.63549,-33.84487 0,-15.97477 12.45491,-34.38638 37.63549,-34.38638 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#4d4d4d;stroke-width:0.17748445"
|
||||
id="path4765"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<g
|
||||
id="g4796"
|
||||
transform="translate(-163.22926,-6.63358)"
|
||||
style="fill:#808080">
|
||||
<g
|
||||
transform="translate(271.30057,21.863906)"
|
||||
id="text24-5"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937811px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
aria-label="8">
|
||||
<path
|
||||
sodipodi:nodetypes="csccscc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4709"
|
||||
d="m 31.577508,38.696619 c 0.1257,1.202533 0.192036,2.442881 0.192036,3.722935 0,20.313754 -16.62316,33.238021 -33.980381,33.566241 8.5005546,1.026719 16.405272,2.973663 24.232789,6.235189 16.787053,-9.205803 24.368303,-25.7219 24.368303,-40.072123 0,-1.161245 -0.04955,-2.31239 -0.145093,-3.452242 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#808080;stroke-width:0.17748445" />
|
||||
</g>
|
||||
<g
|
||||
transform="translate(0.12624987,0.06768044)"
|
||||
aria-label="8"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:#ffff00;stroke-width:0;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="g4772">
|
||||
<path
|
||||
sodipodi:nodetypes="ccscsccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4770"
|
||||
d="m 1979.2539,532 c 0.2424,0.12732 0.5072,0.2765 0.7461,0.40039 -96,43.2 -161.5996,140.79962 -161.5996,241.59961 v 0.01 c 4.6991,-1.2883 9.9036,-2.01 15.3945,-2.01 h 71.0293 C 1905.847,678.75347 1978.3944,572.381 2124,570.83789 2072.8628,564.05663 2024.3217,559.36095 1979.2539,532 Z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#808080;stroke-width:0;stroke:#ffff00;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
transform="matrix(0.16922433,0,0,0.16922433,-91.899735,13.989866)" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect5817"
|
||||
width="16.71962"
|
||||
height="2.8891957"
|
||||
x="129.76146"
|
||||
y="62.946335" />
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect5817-3"
|
||||
width="16.71962"
|
||||
height="2.8891957"
|
||||
x="63.206753"
|
||||
y="127.60851" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 8.7 KiB |
@@ -15,11 +15,11 @@
|
||||
viewBox="0 0 33.866666 33.866667"
|
||||
version="1.1"
|
||||
id="svg16"
|
||||
inkscape:export-filename="/home/jordan/bitmap.png"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
inkscape:export-ydpi="300.06662"
|
||||
inkscape:export-filename="/home/jordan/jtsdk/src/wsjtx/artwork/js8call_icon.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"
|
||||
sodipodi:docname="icon_1024.svg">
|
||||
sodipodi:docname="icon_128.svg">
|
||||
<defs
|
||||
id="defs10">
|
||||
<linearGradient
|
||||
@@ -38,11 +38,11 @@
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.48333333"
|
||||
inkscape:cx="1350"
|
||||
inkscape:cy="512"
|
||||
inkscape:zoom="0.82"
|
||||
inkscape:cx="619.41789"
|
||||
inkscape:cy="491.10861"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:current-layer="g5633"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1053"
|
||||
@@ -50,7 +50,8 @@
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
units="px"
|
||||
inkscape:pagecheckerboard="true" />
|
||||
inkscape:pagecheckerboard="true"
|
||||
showguides="false" />
|
||||
<metadata
|
||||
id="metadata13">
|
||||
<rdf:RDF>
|
||||
@@ -70,26 +71,96 @@
|
||||
transform="translate(0,-263.13332)">
|
||||
<g
|
||||
id="g6030"
|
||||
transform="matrix(0.19543832,0,0,0.19543832,-3.6028125,260.72988)">
|
||||
<circle
|
||||
inkscape:export-ydpi="300.06662"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
r="81.642853"
|
||||
cy="98.940475"
|
||||
cx="105.07738"
|
||||
id="path18" />
|
||||
<text
|
||||
id="text24"
|
||||
y="152.33945"
|
||||
x="52.539673"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:176.3888855px;font-family:wasy10;-inkscape-font-specification:wasy10;fill:#000000;stroke-width:0.17748445"
|
||||
y="152.33945"
|
||||
x="52.539673"
|
||||
id="tspan22"
|
||||
sodipodi:role="line">⌁</tspan></text>
|
||||
transform="matrix(1.5635065,0,0,1.5635065,-28.822499,6.8392367)">
|
||||
<g
|
||||
id="g4254">
|
||||
<g
|
||||
id="g5633">
|
||||
<g
|
||||
id="g5908"
|
||||
transform="matrix(0.125,0,0,0.125,16.130209,162.38541)">
|
||||
<circle
|
||||
id="path18"
|
||||
cx="105.07738"
|
||||
cy="98.940475"
|
||||
r="81.642853"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
inkscape:export-ydpi="300.06662" />
|
||||
<g
|
||||
transform="matrix(1.1302083,0,0,1.1302083,-44.033339,14.076171)"
|
||||
id="text5787"
|
||||
style="font-style:normal;font-weight:normal;font-size:6.76897335px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.49728441;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
aria-label="J">
|
||||
<path
|
||||
sodipodi:nodetypes="cscaccscscc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5791"
|
||||
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:67.68972778px;font-family:Inconsolata;-inkscape-font-specification:'Inconsolata Medium';fill:#000000;stroke:#000000;stroke-width:2.4164753;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 129.49154,20.211895 v 83.918925 c 0,4.1513 0.10921,9.06732 -2.40339,12.78165 -1.85716,2.73112 -5.39174,5.2316 -8.81448,5.26817 -3.95778,0.0423 -7.64506,-2.87946 -10.32017,-5.87252 -3.94648,-0.11707 -3.15405,2.04693 -4.89921,4.20943 4.04204,4.80676 9.83203,6.34006 15.8405,6.34006 6.44543,0 12.34465,-1.97028 15.51276,-7.86948 2.62187,-4.91602 2.62187,-10.05053 2.62187,-14.96655 V 20.211895 Z" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.79962948,0,0,0.79962948,21.054409,19.824756)"
|
||||
id="g5677">
|
||||
<g
|
||||
transform="translate(-162.89081,-6.63358)"
|
||||
id="text4763"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
aria-label="8">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4765"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#4d4d4d;stroke-width:0.17748445"
|
||||
d="m 243.16443,104.08489 c -16.24554,7.31049 -27.34665,23.82678 -27.34665,40.88459 0,20.30692 16.78705,46.57053 52.25647,46.57053 35.46941,0 52.25647,-26.26361 52.25647,-46.57053 0,-13.53794 -7.85201,-32.22031 -27.34665,-40.88459 16.78705,-9.205807 24.3683,-25.7221 24.3683,-40.072323 0,-24.368302 -21.38996,-44.404461 -49.27812,-44.404461 -27.88817,0 -49.27813,20.036159 -49.27813,44.404461 0,23.014508 17.05782,36.281693 24.36831,40.072323 z m 24.90982,-71.751115 c 16.51629,0 34.65714,10.559597 34.65714,31.949551 0,20.577677 -17.05781,33.574105 -34.65714,33.574105 -21.1192,0 -34.65714,-17.057811 -34.65714,-33.574105 0,-12.996428 9.47656,-31.949551 34.65714,-31.949551 z m 0,78.249325 c 24.63906,0 37.63548,18.14085 37.63548,34.38638 0,18.14085 -16.24553,33.84487 -37.63548,33.84487 -21.38996,0 -37.63549,-15.70402 -37.63549,-33.84487 0,-15.97477 12.45491,-34.38638 37.63549,-34.38638 z" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#808080"
|
||||
transform="translate(-163.22926,-6.63358)"
|
||||
id="g4796">
|
||||
<g
|
||||
aria-label="8"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937811px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
id="text24-5"
|
||||
transform="translate(271.30057,21.863906)">
|
||||
<path
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#808080;stroke-width:0.17748445"
|
||||
d="m 31.577508,38.696619 c 0.1257,1.202533 0.192036,2.442881 0.192036,3.722935 0,20.313754 -16.62316,33.238021 -33.980381,33.566241 8.5005546,1.026719 16.405272,2.973663 24.232789,6.235189 16.787053,-9.205803 24.368303,-25.7219 24.368303,-40.072123 0,-1.161245 -0.04955,-2.31239 -0.145093,-3.452242 z"
|
||||
id="path4709"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="csccscc" />
|
||||
</g>
|
||||
<g
|
||||
id="g4772"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:#ffff00;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
aria-label="8"
|
||||
transform="translate(0.12624987,0.06768044)">
|
||||
<path
|
||||
transform="matrix(0.16922433,0,0,0.16922433,-91.899735,13.989866)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#808080;stroke:#ffff00;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 1979.2539,532 c 0.2424,0.12732 0.5072,0.2765 0.7461,0.40039 -96,43.2 -161.5996,140.79962 -161.5996,241.59961 v 0.01 c 4.6991,-1.2883 9.9036,-2.01 15.3945,-2.01 h 71.0293 C 1905.847,678.75347 1978.3944,572.381 2124,570.83789 2072.8628,564.05663 2024.3217,559.36095 1979.2539,532 Z"
|
||||
id="path4770"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccscsccc" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<rect
|
||||
y="62.946335"
|
||||
x="129.76146"
|
||||
height="2.8891957"
|
||||
width="16.71962"
|
||||
id="rect5817"
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
<rect
|
||||
y="127.60851"
|
||||
x="63.206753"
|
||||
height="2.8891957"
|
||||
width="16.71962"
|
||||
id="rect5817-3"
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 9.0 KiB |
@@ -16,7 +16,10 @@
|
||||
version="1.1"
|
||||
id="svg16"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"
|
||||
sodipodi:docname="icon_1024.svg">
|
||||
sodipodi:docname="installer_logo.svg"
|
||||
inkscape:export-filename="/home/jordan/jtsdk/src/wsjtx/artwork/installer_logo.svg.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96">
|
||||
<defs
|
||||
id="defs10">
|
||||
<linearGradient
|
||||
@@ -36,8 +39,8 @@
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.48333333"
|
||||
inkscape:cx="1350"
|
||||
inkscape:cy="512"
|
||||
inkscape:cx="263.79309"
|
||||
inkscape:cy="880.82504"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
@@ -65,28 +68,106 @@
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-26.06665)">
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect129"
|
||||
width="714.375"
|
||||
height="270.93332"
|
||||
x="-1.5894572e-07"
|
||||
y="26.06665" />
|
||||
<g
|
||||
id="g6030"
|
||||
transform="matrix(1.4906384,0,0,1.4906384,-20.910237,15.983062)">
|
||||
<circle
|
||||
inkscape:export-ydpi="300.06662"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
r="81.642853"
|
||||
cy="98.940475"
|
||||
cx="105.07738"
|
||||
id="path18" />
|
||||
<text
|
||||
id="text24"
|
||||
y="152.33945"
|
||||
x="52.539673"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:176.3888855px;font-family:wasy10;-inkscape-font-specification:wasy10;fill:#000000;stroke-width:0.17748445"
|
||||
y="152.33945"
|
||||
x="52.539673"
|
||||
id="tspan22"
|
||||
sodipodi:role="line">⌁</tspan></text>
|
||||
transform="matrix(0.97656252,0,0,0.97656252,7.9375003,3.2567706)"
|
||||
id="layer1-7"
|
||||
inkscape:label="Layer 1">
|
||||
<g
|
||||
transform="matrix(1.5635065,0,0,1.5635065,-28.822499,6.8392367)"
|
||||
id="g6030">
|
||||
<g
|
||||
id="g4254">
|
||||
<g
|
||||
id="g5633">
|
||||
<circle
|
||||
id="path18"
|
||||
cx="105.07738"
|
||||
cy="98.940475"
|
||||
r="81.642853"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:export-xdpi="300.06662"
|
||||
inkscape:export-ydpi="300.06662" />
|
||||
<g
|
||||
transform="matrix(1.1302083,0,0,1.1302083,-44.033339,14.076171)"
|
||||
id="text5787"
|
||||
style="font-style:normal;font-weight:normal;font-size:6.76897335px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.49728441;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
aria-label="J">
|
||||
<path
|
||||
sodipodi:nodetypes="cscaccscscc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5791"
|
||||
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:67.68972778px;font-family:Inconsolata;-inkscape-font-specification:'Inconsolata Medium';fill:#000000;stroke:#000000;stroke-width:2.4164753;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 129.49154,20.211895 v 83.918925 c 0,4.1513 0.10921,9.06732 -2.40339,12.78165 -1.85716,2.73112 -5.39174,5.2316 -8.81448,5.26817 -3.95778,0.0423 -7.64506,-2.87946 -10.32017,-5.87252 -3.94648,-0.11707 -3.15405,2.04693 -4.89921,4.20943 4.04204,4.80676 9.83203,6.34006 15.8405,6.34006 6.44543,0 12.34465,-1.97028 15.51276,-7.86948 2.62187,-4.91602 2.62187,-10.05053 2.62187,-14.96655 V 20.211895 Z" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.79962948,0,0,0.79962948,21.054409,19.824756)"
|
||||
id="g5677">
|
||||
<g
|
||||
transform="translate(-162.89081,-6.63358)"
|
||||
id="text4763"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
aria-label="8">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4765"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#4d4d4d;stroke-width:0.17748445"
|
||||
d="m 243.16443,104.08489 c -16.24554,7.31049 -27.34665,23.82678 -27.34665,40.88459 0,20.30692 16.78705,46.57053 52.25647,46.57053 35.46941,0 52.25647,-26.26361 52.25647,-46.57053 0,-13.53794 -7.85201,-32.22031 -27.34665,-40.88459 16.78705,-9.205807 24.3683,-25.7221 24.3683,-40.072323 0,-24.368302 -21.38996,-44.404461 -49.27812,-44.404461 -27.88817,0 -49.27813,20.036159 -49.27813,44.404461 0,23.014508 17.05782,36.281693 24.36831,40.072323 z m 24.90982,-71.751115 c 16.51629,0 34.65714,10.559597 34.65714,31.949551 0,20.577677 -17.05781,33.574105 -34.65714,33.574105 -21.1192,0 -34.65714,-17.057811 -34.65714,-33.574105 0,-12.996428 9.47656,-31.949551 34.65714,-31.949551 z m 0,78.249325 c 24.63906,0 37.63548,18.14085 37.63548,34.38638 0,18.14085 -16.24553,33.84487 -37.63548,33.84487 -21.38996,0 -37.63549,-15.70402 -37.63549,-33.84487 0,-15.97477 12.45491,-34.38638 37.63549,-34.38638 z" />
|
||||
</g>
|
||||
<g
|
||||
style="fill:#808080"
|
||||
transform="translate(-163.22926,-6.63358)"
|
||||
id="g4796">
|
||||
<g
|
||||
aria-label="8"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937811px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.17748445"
|
||||
id="text24-5"
|
||||
transform="translate(271.30057,21.863906)">
|
||||
<path
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#808080;stroke-width:0.17748445"
|
||||
d="m 31.577508,38.696619 c 0.1257,1.202533 0.192036,2.442881 0.192036,3.722935 0,20.313754 -16.62316,33.238021 -33.980381,33.566241 8.5005546,1.026719 16.405272,2.973663 24.232789,6.235189 16.787053,-9.205803 24.368303,-25.7219 24.368303,-40.072123 0,-1.161245 -0.04955,-2.31239 -0.145093,-3.452242 z"
|
||||
id="path4709"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="csccscc" />
|
||||
</g>
|
||||
<g
|
||||
id="g4772"
|
||||
style="font-style:normal;font-weight:normal;font-size:7.09937859px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:#ffff00;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
aria-label="8"
|
||||
transform="translate(0.12624987,0.06768044)">
|
||||
<path
|
||||
transform="matrix(0.16922433,0,0,0.16922433,-91.899735,13.989866)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:270.75891113px;font-family:Courier;-inkscape-font-specification:Courier;fill:#808080;stroke:#ffff00;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 1979.2539,532 c 0.2424,0.12732 0.5072,0.2765 0.7461,0.40039 -96,43.2 -161.5996,140.79962 -161.5996,241.59961 v 0.01 c 4.6991,-1.2883 9.9036,-2.01 15.3945,-2.01 h 71.0293 C 1905.847,678.75347 1978.3944,572.381 2124,570.83789 2072.8628,564.05663 2024.3217,559.36095 1979.2539,532 Z"
|
||||
id="path4770"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccscsccc" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<rect
|
||||
y="62.946335"
|
||||
x="129.76146"
|
||||
height="2.8891957"
|
||||
width="16.71962"
|
||||
id="rect5817"
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
<rect
|
||||
y="127.60851"
|
||||
x="63.206753"
|
||||
height="2.8891957"
|
||||
width="16.71962"
|
||||
id="rect5817-3"
|
||||
style="opacity:1;fill:#ffffff;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 75 KiB |
@@ -5,6 +5,19 @@
|
||||
#define NTMAX 300
|
||||
#define RX_SAMPLE_RATE 12000
|
||||
|
||||
|
||||
#ifndef TEST_FOX_WAVE_GEN
|
||||
#define TEST_FOX_WAVE_GEN 0
|
||||
#endif
|
||||
|
||||
#ifndef TEST_FOX_WAVE_GEN_SLOTS
|
||||
#if TEST_FOX_WAVE_GEN
|
||||
#define TEST_FOX_WAVE_GEN_SLOTS 2
|
||||
#else
|
||||
#define TEST_FOX_WAVE_GEN_SLOTS 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstdbool>
|
||||
extern "C" {
|
||||
|
||||
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 282 KiB After Width: | Height: | Size: 286 KiB |
@@ -82,7 +82,8 @@ SOURCES += \
|
||||
Message.cpp \
|
||||
Inbox.cpp \
|
||||
messagewindow.cpp \
|
||||
SpotClient.cpp
|
||||
SpotClient.cpp \
|
||||
TCPClient.cpp
|
||||
|
||||
HEADERS += qt_helpers.hpp \
|
||||
pimpl_h.hpp pimpl_impl.hpp \
|
||||
@@ -115,7 +116,9 @@ HEADERS += qt_helpers.hpp \
|
||||
Message.h \
|
||||
Inbox.h \
|
||||
messagewindow.h \
|
||||
SpotClient.h
|
||||
SpotClient.h \
|
||||
TCPClient.h \
|
||||
logbook/n3fjp.h
|
||||
|
||||
|
||||
INCLUDEPATH += qmake_only
|
||||
|
||||
@@ -42,3 +42,16 @@ bool MousePressEater::eventFilter(QObject *obj, QEvent *event){
|
||||
return QObject::eventFilter(obj, event);
|
||||
}
|
||||
|
||||
bool MouseDoubleClickEater::eventFilter(QObject *obj, QEvent *event){
|
||||
if (event->type() == QEvent::MouseButtonDblClick) {
|
||||
QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
|
||||
bool processed = false;
|
||||
emit this->mouseDoubleClicked(obj, mouseEvent, &processed);
|
||||
if(processed){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// standard event processing
|
||||
return QObject::eventFilter(obj, event);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,19 @@ public:
|
||||
Q_SIGNAL void mousePressed(QObject *obj, QMouseEvent *evt, bool *pProcessed);
|
||||
};
|
||||
|
||||
class MouseDoubleClickEater : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MouseDoubleClickEater(){}
|
||||
virtual ~MouseDoubleClickEater(){}
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
|
||||
public:
|
||||
Q_SIGNAL void mouseDoubleClicked(QObject *obj, QMouseEvent *evt, bool *pProcessed);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,163 @@
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
|
||||
const QStringList ADIF_FIELDS = {
|
||||
// ADIF 3.1.0 - pulled from http://www.adif.org/310/adx310.xsd on 2019-06-04
|
||||
"APP",
|
||||
"ADDRESS",
|
||||
"ADDRESS_INTL",
|
||||
"AGE",
|
||||
"A_INDEX",
|
||||
"ANT_AZ",
|
||||
"ANT_EL",
|
||||
"ANT_PATH",
|
||||
"ARRL_SECT",
|
||||
"AWARD_SUBMITTED",
|
||||
"AWARD_GRANTED",
|
||||
"BAND",
|
||||
"BAND_RX",
|
||||
"CALL",
|
||||
"CHECK",
|
||||
"CLASS",
|
||||
"CLUBLOG_QSO_UPLOAD_DATE",
|
||||
"CLUBLOG_QSO_UPLOAD_STATUS",
|
||||
"CNTY",
|
||||
"COMMENT",
|
||||
"COMMENT_INTL",
|
||||
"CONT",
|
||||
"CONTACTED_OP",
|
||||
"CONTEST_ID",
|
||||
"COUNTRY",
|
||||
"COUNTRY_INTL",
|
||||
"CQZ",
|
||||
"CREDIT_SUBMITTED",
|
||||
"CREDIT_GRANTED",
|
||||
"DARC_DOK",
|
||||
"DISTANCE",
|
||||
"DXCC",
|
||||
"EMAIL",
|
||||
"EQ_CALL",
|
||||
"EQSL_QSLRDATE",
|
||||
"EQSL_QSLSDATE",
|
||||
"EQSL_QSL_RCVD",
|
||||
"EQSL_QSL_SENT",
|
||||
"FISTS",
|
||||
"FISTS_CC",
|
||||
"FORCE_INIT",
|
||||
"FREQ",
|
||||
"FREQ_RX",
|
||||
"GRIDSQUARE",
|
||||
"GUEST_OP",
|
||||
"HRDLOG_QSO_UPLOAD_DATE",
|
||||
"HRDLOG_QSO_UPLOAD_STATUS",
|
||||
"IOTA",
|
||||
"IOTA_ISLAND_ID",
|
||||
"ITUZ",
|
||||
"K_INDEX",
|
||||
"LAT",
|
||||
"LON",
|
||||
"LOTW_QSLRDATE",
|
||||
"LOTW_QSLSDATE",
|
||||
"LOTW_QSL_RCVD",
|
||||
"LOTW_QSL_SENT",
|
||||
"MAX_BURSTS",
|
||||
"MODE",
|
||||
"MS_SHOWER",
|
||||
"MY_ANTENNA",
|
||||
"MY_ANTENNA_INTL",
|
||||
"MY_CITY",
|
||||
"MY_CITY_INTL",
|
||||
"MY_CNTY",
|
||||
"MY_COUNTRY",
|
||||
"MY_COUNTRY_INTL",
|
||||
"MY_CQ_ZONE",
|
||||
"MY_DXCC",
|
||||
"MY_FISTS",
|
||||
"MY_GRIDSQUARE",
|
||||
"MY_IOTA",
|
||||
"MY_IOTA_ISLAND_ID",
|
||||
"MY_ITU_ZONE",
|
||||
"MY_LAT",
|
||||
"MY_LON",
|
||||
"MY_NAME",
|
||||
"MY_NAME_INTL",
|
||||
"MY_POSTAL_CODE",
|
||||
"MY_POSTAL_CODE_INTL",
|
||||
"MY_RIG",
|
||||
"MY_RIG_INTL",
|
||||
"MY_SIG",
|
||||
"MY_SIG_INTL",
|
||||
"MY_SIG_INFO",
|
||||
"MY_SIG_INFO_INTL",
|
||||
"MY_SOTA_REF",
|
||||
"MY_STATE",
|
||||
"MY_STREET",
|
||||
"MY_STREET_INTL",
|
||||
"MY_USACA_COUNTIES",
|
||||
"MY_VUCC_GRIDS",
|
||||
"NAME",
|
||||
"NAME_INTL",
|
||||
"NOTES",
|
||||
"NOTES_INTL",
|
||||
"NR_BURSTS",
|
||||
"NR_PINGS",
|
||||
"OPERATOR",
|
||||
"OWNER_CALLSIGN",
|
||||
"PFX",
|
||||
"PRECEDENCE",
|
||||
"PROP_MODE",
|
||||
"PUBLIC_KEY",
|
||||
"QRZCOM_QSO_UPLOAD_DATE",
|
||||
"QRZCOM_QSO_UPLOAD_STATUS",
|
||||
"QSLMSG",
|
||||
"QSLMSG_INTL",
|
||||
"QSLRDATE",
|
||||
"QSLSDATE",
|
||||
"QSL_RCVD",
|
||||
"QSL_RCVD_VIA",
|
||||
"QSL_SENT",
|
||||
"QSL_SENT_VIA",
|
||||
"QSL_VIA",
|
||||
"QSO_COMPLETE",
|
||||
"QSO_DATE",
|
||||
"QSO_DATE_OFF",
|
||||
"QSO_RANDOM",
|
||||
"QTH",
|
||||
"QTH_INTL",
|
||||
"REGION",
|
||||
"RIG",
|
||||
"RIG_INTL",
|
||||
"RST_RCVD",
|
||||
"RST_SENT",
|
||||
"RX_PWR",
|
||||
"SAT_MODE",
|
||||
"SAT_NAME",
|
||||
"SFI",
|
||||
"SIG",
|
||||
"SIG_INTL",
|
||||
"SIG_INFO",
|
||||
"SIG_INFO_INTL",
|
||||
"SILENT_KEY",
|
||||
"SKCC",
|
||||
"SOTA_REF",
|
||||
"SRX",
|
||||
"SRX_STRING",
|
||||
"STATE",
|
||||
"STATION_CALLSIGN",
|
||||
"STX",
|
||||
"STX_STRING",
|
||||
"SUBMODE",
|
||||
"SWL",
|
||||
"TEN_TEN",
|
||||
"TIME_OFF",
|
||||
"TIME_ON",
|
||||
"TX_PWR",
|
||||
"UKSMG",
|
||||
"USACA_COUNTIES",
|
||||
"VUCC_GRIDS",
|
||||
"WEB",
|
||||
};
|
||||
|
||||
/*
|
||||
<CALL:4>W1XT<BAND:3>20m<FREQ:6>14.076<GRIDSQUARE:4>DM33<MODE:4>JT65<RST_RCVD:3>-21<RST_SENT:3>-14<QSO_DATE:8>20110422<TIME_ON:6>041712<TIME_OFF:6>042435<TX_PWR:1>4<COMMENT:34>1st JT65A QSO. Him: mag loop 20W<STATION_CALLSIGN:6>VK3ACF<MY_GRIDSQUARE:6>qf22lb<eor>
|
||||
<CALL:6>IK1SOW<BAND:3>20m<FREQ:6>14.076<GRIDSQUARE:4>JN35<MODE:4>JT65<RST_RCVD:3>-19<RST_SENT:3>-11<QSO_DATE:8>20110422<TIME_ON:6>052501<TIME_OFF:6>053359<TX_PWR:1>3<STATION_CALLSIGN:6>VK3ACF<MY_GRIDSQUARE:6>qf22lb<eor>
|
||||
@@ -101,6 +258,7 @@ void ADIF::load()
|
||||
, extractField (record, "BAND")
|
||||
, extractField (record, "MODE")
|
||||
, extractField (record, "SUBMODE")
|
||||
, extractField (record, "GRIDSQUARE")
|
||||
, extractField (record, "QSO_DATE")
|
||||
, extractField (record, "NAME")
|
||||
, extractField (record, "COMMENT")
|
||||
@@ -111,13 +269,14 @@ void ADIF::load()
|
||||
}
|
||||
|
||||
|
||||
void ADIF::add(QString const& call, QString const& band, QString const& mode, QString const& submode, QString const& date, QString const& name, QString const& comment)
|
||||
void ADIF::add(QString const& call, QString const& band, QString const& mode, QString const& submode, QString const &grid, QString const& date, QString const& name, QString const& comment)
|
||||
{
|
||||
QSO q;
|
||||
q.call = call;
|
||||
q.band = band;
|
||||
q.mode = mode;
|
||||
q.submode = submode;
|
||||
q.grid = grid;
|
||||
q.date = date;
|
||||
q.name = name;
|
||||
q.comment = comment;
|
||||
@@ -175,7 +334,7 @@ QByteArray ADIF::QSOToADIF(QString const& hisCall, QString const& hisGrid, QStri
|
||||
, QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn
|
||||
, QDateTime const& dateTimeOff, QString const& band, QString const& comments
|
||||
, QString const& name, QString const& strDialFreq, QString const& m_myCall
|
||||
, QString const& m_myGrid, QString const& operator_call)
|
||||
, QString const& m_myGrid, QString const& operator_call, QMap<QString, QVariant> const &additionalFields)
|
||||
{
|
||||
QString t;
|
||||
t = "<call:" + QString::number(hisCall.length()) + ">" + hisCall;
|
||||
@@ -205,6 +364,18 @@ QByteArray ADIF::QSOToADIF(QString const& hisCall, QString const& hisGrid, QStri
|
||||
if (operator_call!="")
|
||||
t+=" <operator:" + QString::number(operator_call.length()) +
|
||||
">" + operator_call;
|
||||
|
||||
foreach(auto key, additionalFields.keys()){
|
||||
auto k = key.toUpper();
|
||||
auto value = additionalFields[k].toString();
|
||||
|
||||
if(ADIF_FIELDS.contains(k)){
|
||||
t += QString(" <%1:%2>%3").arg(k).arg(value.length()).arg(value);
|
||||
} else {
|
||||
t += QString(" <APP_JS8CALL_%1:%2>%3").arg(k).arg(value.length()).arg(value);
|
||||
}
|
||||
}
|
||||
|
||||
return t.toLatin1 ();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,13 +11,17 @@
|
||||
#if defined (QT5)
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QMultiHash>
|
||||
#include <QVariant>
|
||||
#else
|
||||
#include <QtGui>
|
||||
#endif
|
||||
|
||||
class QDateTime;
|
||||
|
||||
extern const QStringList ADIF_FIELDS;
|
||||
|
||||
class ADIF
|
||||
{
|
||||
public:
|
||||
@@ -26,7 +30,7 @@ class ADIF
|
||||
|
||||
void init(QString const& filename);
|
||||
void load();
|
||||
void add(QString const& call, QString const& band, QString const& mode, const QString &submode, QString const& date, const QString &name, const QString &comment);
|
||||
void add(QString const& call, QString const& band, QString const& mode, const QString &submode, QString const& grid, QString const& date, const QString &name, const QString &comment);
|
||||
bool match(QString const& call, QString const& band) const;
|
||||
QList<ADIF::QSO> find(QString const& call) const;
|
||||
QList<QString> getCallList() const;
|
||||
@@ -35,18 +39,17 @@ class ADIF
|
||||
// open ADIF file and append the QSO details. Return true on success
|
||||
bool addQSOToFile(QByteArray const& ADIF_record);
|
||||
|
||||
QByteArray QSOToADIF(QString const& hisCall, QString const& hisGrid, QString const& mode, QString const& submode, QString const& rptSent
|
||||
QByteArray QSOToADIF(QString const& hisCall, QString const& hisGrid, QString const& mode, QString const& submode, QString const& rptSent
|
||||
, QString const& rptRcvd, QDateTime const& dateTimeOn, QDateTime const& dateTimeOff
|
||||
, QString const& band, QString const& comments, QString const& name
|
||||
, QString const& strDialFreq, QString const& m_myCall, QString const& m_myGrid
|
||||
, QString const& operator_call);
|
||||
, QString const& operator_call, const QMap<QString, QVariant> &additionalFields);
|
||||
|
||||
|
||||
|
||||
struct QSO
|
||||
{
|
||||
QString call,band,mode,submode,date,name,comment;
|
||||
};
|
||||
struct QSO
|
||||
{
|
||||
QString call,band,mode,submode,grid,date,name,comment;
|
||||
};
|
||||
|
||||
private:
|
||||
QMultiHash<QString, QSO> _data;
|
||||
|
||||
@@ -79,6 +79,7 @@ bool LogBook::findCallDetails(
|
||||
/*in*/
|
||||
const QString call,
|
||||
/*out*/
|
||||
QString &grid,
|
||||
QString &date,
|
||||
QString &name,
|
||||
QString &comment) const
|
||||
@@ -93,6 +94,7 @@ bool LogBook::findCallDetails(
|
||||
}
|
||||
|
||||
foreach(auto qso, qsos){
|
||||
if(grid.isEmpty() && !qso.grid.isEmpty()) grid = qso.grid;
|
||||
if(date.isEmpty() && !qso.date.isEmpty()) date = qso.date;
|
||||
if(name.isEmpty() && !qso.name.isEmpty()) name = qso.name;
|
||||
if(comment.isEmpty() && !qso.comment.isEmpty()) comment = qso.comment;
|
||||
@@ -101,9 +103,9 @@ bool LogBook::findCallDetails(
|
||||
return true;
|
||||
}
|
||||
|
||||
void LogBook::addAsWorked(const QString call, const QString band, const QString mode, const QString submode, const QString date, const QString name, const QString comment)
|
||||
void LogBook::addAsWorked(const QString call, const QString band, const QString mode, const QString submode, const QString grid, const QString date, const QString name, const QString comment)
|
||||
{
|
||||
_log.add(call,band,mode,submode,date,name,comment);
|
||||
_log.add(call,band,mode,submode,grid,date,name,comment);
|
||||
QString countryName = _countries.find(call);
|
||||
if (countryName.length() > 0)
|
||||
_worked.setAsWorked(countryName);
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "countrydat.h"
|
||||
#include "countriesworked.h"
|
||||
#include "adif.h"
|
||||
#include "n3fjp.h"
|
||||
|
||||
class QDir;
|
||||
|
||||
@@ -25,14 +26,14 @@ public:
|
||||
/*out*/ QString &countryName,
|
||||
bool &callWorkedBefore,
|
||||
bool &countryWorkedBefore) const;
|
||||
bool findCallDetails(
|
||||
/*in*/
|
||||
bool findCallDetails(/*in*/
|
||||
const QString call,
|
||||
/*out*/
|
||||
QString &grid,
|
||||
QString &date,
|
||||
QString &name,
|
||||
QString &comment) const;
|
||||
void addAsWorked(const QString call, const QString band, const QString mode, const QString submode, const QString date, const QString name, const QString comment);
|
||||
void addAsWorked(const QString call, const QString band, const QString mode, const QString submode, const QString grid, const QString date, const QString name, const QString comment);
|
||||
|
||||
private:
|
||||
CountryDat _countries;
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
#ifndef N3FJP_H
|
||||
#define N3FJP_H
|
||||
|
||||
|
||||
// Mapping between ADIF field to N3FJP field
|
||||
static const QMap<QString, QString> N3FJP_ADIF_MAP = {
|
||||
{"AGE", "fldAge"},
|
||||
//{"", "fldARCI"},
|
||||
{"BAND", "fldBand"},
|
||||
{"CALL", "fldCall"},
|
||||
//{"", "fldCategory"},
|
||||
{"CHECK", "fldCheck"},
|
||||
{"CLASS", "fldClass"},
|
||||
{"COMMENT", "fldComments"},
|
||||
{"COMMENT_INTL", "fldComments"},
|
||||
//{"", "fldComputerName"},
|
||||
{"CONTEST_ID", "fldContestID"},
|
||||
{"CONT", "fldContinent"},
|
||||
{"DXCC", "fldCountryDXCC"},
|
||||
//{"", "fldCountryWorked"},
|
||||
{"COUNTRY", "fldCountyR"},
|
||||
{"COUNTRY_INTL", "fldCountyR"},
|
||||
{"MY_COUNTRY", "fldCountyS"},
|
||||
{"MY_COUNTRY_INTL", "fldCountyS"},
|
||||
{"CQZ", "fldCQZone"},
|
||||
{"QSO_DATE", "fldDateStr"},
|
||||
{"FISTS", "fldFists"},
|
||||
{"FISTS_CC", "fldFists"},
|
||||
{"FREQ", "fldFrequency"},
|
||||
//{"", "fldFuture1"},
|
||||
//{"", "fldFuture2"},
|
||||
{"GRIDSQUARE", "fldGridR"},
|
||||
{"MY_GRIDSQUARE", "fldGridS"},
|
||||
//{"", "fldIARUZone"},
|
||||
//{"", "fldInitials"},
|
||||
{"IOTA", "fldIOTA"},
|
||||
{"ITUZ", "fldITUZone"},
|
||||
//{"", "fldLightHouse"},
|
||||
{"MODE", "fldMode"},
|
||||
{"CONTEST_ID", "fldModeContest"},
|
||||
{"NAME", "fldNameR"},
|
||||
{"NAME_INTL", "fldNameR"},
|
||||
{"MY_NAME", "fldNameS"},
|
||||
{"MY_NAME_INTL", "fldNameS"},
|
||||
{"OPERATOR", "fldOperator"},
|
||||
{"*1", "fldOther1"},
|
||||
{"*2", "fldOther2"},
|
||||
{"*3", "fldOther3"},
|
||||
{"*4", "fldOther4"},
|
||||
{"*5", "fldOther5"},
|
||||
{"*6", "fldOther6"},
|
||||
{"*7", "fldOther7"},
|
||||
{"*8", "fldOther8"},
|
||||
//{"", "fldPoints"},
|
||||
{"RX_PWR", "fldPower"},
|
||||
{"TX_PWR", "fldPower"},
|
||||
{"PRECEDENCE", "fldPrecedence"},
|
||||
{"PFX", "fldPrefix"},
|
||||
{"PROP_MODE", "fldPropMode"},
|
||||
{"QSL_RCVD_VIA", "fldQSLConfByR"},
|
||||
{"QSL_SENT_VIA", "fldQSLConfByS"},
|
||||
{"QSL_RCVD", "fldQSLR"},
|
||||
{"QSL_SENT", "fldQSLS"},
|
||||
{"QTH", "fldQTHGroup"},
|
||||
{"QTH_INTL", "fldQTHGroup"},
|
||||
{"RST_RCVD", "fldRstR"},
|
||||
{"RST_SENT", "fldRstS"},
|
||||
{"SAT_NAME", "fldSatName"},
|
||||
{"ARRL_SECT", "fldSection"},
|
||||
{"SRX", "fldSerialNoR"},
|
||||
{"STX", "fldSerialNoS"},
|
||||
{"SRX_STRING", "fldSPC"},
|
||||
{"SRX", "fldSPCNum"},
|
||||
{"STATE", "fldState"},
|
||||
{"STATION_CALLSIGN", "fldStation"},
|
||||
{"TEN_TEN", "fldTenTen"},
|
||||
{"TIME_OFF", "fldTimeOffStr"},
|
||||
{"TIME_ON", "fldTimeOnStr"},
|
||||
//{"", "fldTransmitterID"},
|
||||
};
|
||||
|
||||
#endif // N3FJP_H
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "Configuration.hpp"
|
||||
#include "Bands.hpp"
|
||||
#include "MaidenheadLocatorValidator.hpp"
|
||||
#include "DriftingDateTime.h"
|
||||
|
||||
#include "ui_logqso.h"
|
||||
#include "moc_logqso.cpp"
|
||||
@@ -25,7 +26,6 @@ LogQSO::LogQSO(QString const& programTitle, QSettings * settings
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowTitle(programTitle + " - Log QSO");
|
||||
loadSettings ();
|
||||
ui->grid->setValidator (new MaidenheadLocatorValidator {this});
|
||||
}
|
||||
|
||||
@@ -33,12 +33,142 @@ LogQSO::~LogQSO ()
|
||||
{
|
||||
}
|
||||
|
||||
bool LogQSO::acceptText(QString text){
|
||||
auto w = focusWidget();
|
||||
if(!w){
|
||||
return false;
|
||||
}
|
||||
|
||||
auto name = QString(w->metaObject()->className());
|
||||
if(name != "QLineEdit"){
|
||||
return false;
|
||||
}
|
||||
|
||||
auto l = static_cast<QLineEdit*>(w);
|
||||
if(l->text().isEmpty()){
|
||||
// set
|
||||
l->setText(text);
|
||||
} else {
|
||||
// append
|
||||
l->setText(QString("%1 %2").arg(l->text()).arg(text));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
QString LogQSO::currentCall(){
|
||||
return ui->call->text().trimmed();
|
||||
}
|
||||
|
||||
void LogQSO::on_start_now_button_pressed(){
|
||||
ui->start_date_time->setDateTime(DriftingDateTime::currentDateTimeUtc());
|
||||
}
|
||||
|
||||
void LogQSO::on_end_now_button_pressed(){
|
||||
ui->end_date_time->setDateTime(DriftingDateTime::currentDateTimeUtc());
|
||||
}
|
||||
|
||||
void LogQSO::on_add_new_field_button_pressed(){
|
||||
createAdditionalField();
|
||||
}
|
||||
|
||||
void LogQSO::createAdditionalField(QString key, QString value){
|
||||
QLineEdit * l = new QLineEdit(this);
|
||||
if(!value.isEmpty()){
|
||||
l->setText(value);
|
||||
}
|
||||
|
||||
QComboBox * c = new QComboBox(this);
|
||||
c->insertItems(0, ADIF_FIELDS);
|
||||
c->insertItem(0, "");
|
||||
c->setEditable(true);
|
||||
c->setAutoCompletion(true);
|
||||
c->setAutoCompletionCaseSensitivity(Qt::CaseInsensitive);
|
||||
c->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
connect(c, &QComboBox::currentTextChanged, this, [this, l](const QString &text){
|
||||
l->setProperty("fieldKey", QVariant(text));
|
||||
});
|
||||
c->setCurrentText(key);
|
||||
|
||||
auto layout = static_cast<QFormLayout*>(ui->additionalFields->layout());
|
||||
layout->addRow(c, l);
|
||||
|
||||
// set tab ordering
|
||||
if(m_additionalFieldsControls.isEmpty()){
|
||||
setTabOrder(ui->cbComments, c);
|
||||
} else {
|
||||
setTabOrder(m_additionalFieldsControls.last(), c);
|
||||
}
|
||||
setTabOrder(c, l);
|
||||
setTabOrder(l, ui->add_new_field_button);
|
||||
c->setFocus();
|
||||
|
||||
m_additionalFieldsControls.append(l);
|
||||
ui->additionalFields->setVisible(true);
|
||||
ui->additionalFields->adjustSize();
|
||||
|
||||
// update the window layout
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
QMap<QString, QVariant> LogQSO::collectAdditionalFields(){
|
||||
QMap<QString, QVariant> additionalFields;
|
||||
foreach(auto field, m_additionalFieldsControls){
|
||||
auto key = field->property("fieldKey").toString();
|
||||
if(key.isEmpty()){
|
||||
continue;
|
||||
}
|
||||
additionalFields[key] = QVariant(field->text());
|
||||
}
|
||||
return additionalFields;
|
||||
}
|
||||
|
||||
void LogQSO::resetAdditionalFields(){
|
||||
ui->additionalFields->setVisible(false);
|
||||
|
||||
if(!m_additionalFieldsControls.isEmpty()){
|
||||
auto layout = static_cast<QFormLayout*>(ui->additionalFields->layout());
|
||||
|
||||
#if QT_VERSION >= 0x050800
|
||||
for(int i = 0, count = layout->rowCount(); i < count; i++){
|
||||
layout->removeRow(0);
|
||||
}
|
||||
#else
|
||||
QLayoutItem *child;
|
||||
while((child = layout->takeAt(0)) != 0){
|
||||
delete child;
|
||||
}
|
||||
#endif
|
||||
|
||||
m_additionalFieldsControls.clear();
|
||||
}
|
||||
|
||||
setTabOrder(ui->cbComments, ui->add_new_field_button);
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
void LogQSO::loadSettings ()
|
||||
{
|
||||
m_settings->beginGroup ("LogQSO");
|
||||
restoreGeometry (m_settings->value ("geometry", saveGeometry ()).toByteArray ());
|
||||
ui->cbComments->setChecked (m_settings->value ("SaveComments", false).toBool ());
|
||||
m_comments = m_settings->value ("LogComments", "").toString();
|
||||
|
||||
resetAdditionalFields();
|
||||
auto additionalFields = m_settings->value("AdditionalFields", {}).toStringList();
|
||||
QSet<QString> additionalFieldsSet;
|
||||
foreach(auto key, additionalFields){
|
||||
if(key.isEmpty()){
|
||||
continue;
|
||||
}
|
||||
if(additionalFieldsSet.contains(key)){
|
||||
continue;
|
||||
}
|
||||
|
||||
createAdditionalField(key);
|
||||
additionalFieldsSet.insert(key);
|
||||
}
|
||||
|
||||
m_settings->endGroup ();
|
||||
}
|
||||
|
||||
@@ -48,6 +178,17 @@ void LogQSO::storeSettings () const
|
||||
m_settings->setValue ("geometry", saveGeometry ());
|
||||
m_settings->setValue ("SaveComments", ui->cbComments->isChecked ());
|
||||
m_settings->setValue ("LogComments", m_comments);
|
||||
|
||||
auto additionalFields = QStringList{};
|
||||
foreach(auto field, m_additionalFieldsControls){
|
||||
auto key = field->property("fieldKey").toString();
|
||||
if(key.isEmpty()){
|
||||
continue;
|
||||
}
|
||||
additionalFields.append(key);
|
||||
}
|
||||
m_settings->setValue ("AdditionalFields", additionalFields);
|
||||
|
||||
m_settings->endGroup ();
|
||||
}
|
||||
|
||||
@@ -55,31 +196,46 @@ void LogQSO::initLogQSO(QString const& hisCall, QString const& hisGrid, QString
|
||||
QString const& rptSent, QString const& rptRcvd,
|
||||
QDateTime const& dateTimeOn, QDateTime const& dateTimeOff,
|
||||
Radio::Frequency dialFreq, QString const& myCall, QString const& myGrid,
|
||||
bool toDATA, bool dBtoComments, bool bFox, QString const& opCall)
|
||||
bool toDATA, bool dBtoComments, bool bFox, QString const& opCall, QString const& comments)
|
||||
{
|
||||
if(!isHidden()) return;
|
||||
|
||||
loadSettings();
|
||||
|
||||
ui->call->setFocus();
|
||||
ui->call->setText(hisCall);
|
||||
ui->grid->setText(hisGrid);
|
||||
ui->name->setText("");
|
||||
ui->comments->setText("");
|
||||
|
||||
if (ui->cbComments->isChecked ()) ui->comments->setText(m_comments);
|
||||
|
||||
if(dBtoComments) {
|
||||
QString t=mode;
|
||||
if(rptSent!="") t+=" Sent: " + rptSent;
|
||||
if(rptRcvd!="") t+=" Rcvd: " + rptRcvd;
|
||||
ui->comments->setText(t);
|
||||
}
|
||||
|
||||
if(!comments.isEmpty()){
|
||||
ui->comments->setText(comments);
|
||||
}
|
||||
|
||||
if(toDATA) mode="DATA";
|
||||
|
||||
ui->mode->setText(mode);
|
||||
ui->sent->setText(rptSent);
|
||||
ui->rcvd->setText(rptRcvd);
|
||||
ui->start_date_time->setDateTime (dateTimeOn);
|
||||
ui->end_date_time->setDateTime (dateTimeOff);
|
||||
|
||||
m_dialFreq=dialFreq;
|
||||
m_myCall=myCall;
|
||||
m_myGrid=myGrid;
|
||||
|
||||
ui->band->setText (m_config->bands ()->find (dialFreq));
|
||||
ui->loggedOperator->setText(opCall);
|
||||
|
||||
if(bFox) {
|
||||
accept();
|
||||
} else {
|
||||
@@ -115,46 +271,55 @@ void LogQSO::accept()
|
||||
auto adifilePath = QDir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}.absoluteFilePath (filename);
|
||||
adifile.init(adifilePath);
|
||||
|
||||
auto additionalFields = collectAdditionalFields();
|
||||
|
||||
QByteArray ADIF {adifile.QSOToADIF (hisCall, hisGrid, mode, submode, rptSent, rptRcvd, m_dateTimeOn, m_dateTimeOff, band
|
||||
, comments, name, strDialFreq, m_myCall, m_myGrid, operator_call)};
|
||||
, comments, name, strDialFreq, m_myCall, m_myGrid, operator_call, additionalFields)};
|
||||
|
||||
if (!adifile.addQSOToFile (ADIF))
|
||||
{
|
||||
MessageBox::warning_message (this, tr ("Log file error"),
|
||||
tr ("Cannot open \"%1\"").arg (adifilePath));
|
||||
}
|
||||
|
||||
// Log to N1MM Logger
|
||||
if (m_config->broadcast_to_n1mm() && m_config->valid_n1mm_info()) {
|
||||
const QHostAddress n1mmhost = QHostAddress(m_config->n1mm_server_name());
|
||||
QUdpSocket _sock;
|
||||
auto rzult = _sock.writeDatagram (ADIF + " <eor>", n1mmhost, quint16(m_config->n1mm_server_port()));
|
||||
if (rzult == -1) {
|
||||
MessageBox::warning_message (this, tr ("Error sending log to N1MM"),
|
||||
tr ("Write returned \"%1\"").arg (rzult));
|
||||
}
|
||||
}
|
||||
|
||||
//Log this QSO to file "js8call.log"
|
||||
//Log this QSO to file "js8call.log"
|
||||
static QFile f {QDir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}.absoluteFilePath ("js8call.log")};
|
||||
if(!f.open(QIODevice::Text | QIODevice::Append)) {
|
||||
MessageBox::warning_message (this, tr ("Log file error"),
|
||||
tr ("Cannot open \"%1\" for append").arg (f.fileName ()),
|
||||
tr ("Error: %1").arg (f.errorString ()));
|
||||
} else {
|
||||
QString logEntry=m_dateTimeOn.date().toString("yyyy-MM-dd,") +
|
||||
m_dateTimeOn.time().toString("hh:mm:ss,") +
|
||||
m_dateTimeOff.date().toString("yyyy-MM-dd,") +
|
||||
m_dateTimeOff.time().toString("hh:mm:ss,") + hisCall + "," +
|
||||
hisGrid + "," + strDialFreq + "," + (mode == "MFSK" ? "JS8" : mode) +
|
||||
"," + rptSent + "," + rptRcvd +
|
||||
"," + comments + "," + name;
|
||||
QStringList logEntryItems = {
|
||||
m_dateTimeOn.date().toString("yyyy-MM-dd"),
|
||||
m_dateTimeOn.time().toString("hh:mm:ss"),
|
||||
m_dateTimeOff.date().toString("yyyy-MM-dd"),
|
||||
m_dateTimeOff.time().toString("hh:mm:ss"),
|
||||
hisCall,
|
||||
hisGrid,
|
||||
strDialFreq,
|
||||
(mode == "MFSK" ? "JS8" : mode),
|
||||
rptSent,
|
||||
rptRcvd,
|
||||
comments,
|
||||
name
|
||||
};
|
||||
|
||||
if(!additionalFields.isEmpty()){
|
||||
foreach(auto value, additionalFields.values()){
|
||||
logEntryItems.append(value.toString());
|
||||
}
|
||||
}
|
||||
|
||||
QTextStream out(&f);
|
||||
out << logEntry << endl;
|
||||
out << logEntryItems.join(",") << endl;
|
||||
f.close();
|
||||
}
|
||||
|
||||
//Clean up and finish logging
|
||||
Q_EMIT acceptQSO (m_dateTimeOff, hisCall, hisGrid, m_dialFreq, mode, submode, rptSent, rptRcvd, comments, name,m_dateTimeOn, operator_call, m_myCall, m_myGrid, ADIF);
|
||||
//Clean up and finish logging
|
||||
ui->call->clear();
|
||||
|
||||
Q_EMIT acceptQSO (m_dateTimeOff, hisCall, hisGrid, m_dialFreq, mode, submode, rptSent, rptRcvd, comments, name,m_dateTimeOn, operator_call, m_myCall, m_myGrid, ADIF, additionalFields);
|
||||
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,10 +33,12 @@ public:
|
||||
QString const& rptSent, QString const& rptRcvd, QDateTime const& dateTimeOn,
|
||||
QDateTime const& dateTimeOff,
|
||||
Radio::Frequency dialFreq, QString const& myCall, QString const& myGrid,
|
||||
bool toDATA, bool dBtoComments, bool bFox, QString const& opCall);
|
||||
bool toDATA, bool dBtoComments, bool bFox, QString const& opCall, const QString &comments);
|
||||
|
||||
public slots:
|
||||
void accept();
|
||||
bool acceptText(QString text);
|
||||
QString currentCall();
|
||||
|
||||
signals:
|
||||
void acceptQSO (QDateTime const& QSO_date_off, QString const& call, QString const& grid
|
||||
@@ -44,11 +46,19 @@ signals:
|
||||
, QString const& rpt_sent, QString const& rpt_received
|
||||
, QString const& comments
|
||||
, QString const& name, QDateTime const& QSO_date_on, QString const& operator_call
|
||||
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF);
|
||||
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF, QMap<QString, QVariant> const &additionalFields);
|
||||
|
||||
protected:
|
||||
void hideEvent (QHideEvent *);
|
||||
|
||||
private slots:
|
||||
void createAdditionalField(QString key={}, QString value={});
|
||||
void resetAdditionalFields();
|
||||
QMap<QString, QVariant> collectAdditionalFields();
|
||||
void on_add_new_field_button_pressed();
|
||||
void on_start_now_button_pressed();
|
||||
void on_end_now_button_pressed();
|
||||
|
||||
private:
|
||||
void loadSettings ();
|
||||
void storeSettings () const;
|
||||
@@ -62,6 +72,7 @@ private:
|
||||
QString m_myGrid;
|
||||
QDateTime m_dateTimeOn;
|
||||
QDateTime m_dateTimeOff;
|
||||
QList<QLineEdit*> m_additionalFieldsControls;
|
||||
};
|
||||
|
||||
#endif // LogQSO_H
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>285</height>
|
||||
<height>450</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@@ -18,404 +18,486 @@
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>600</width>
|
||||
<width>300</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_11">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Click OK to confirm the following QSO:</string>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<property name="lineWidth">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>-53</y>
|
||||
<width>568</width>
|
||||
<height>485</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lab1">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<property name="fieldGrowthPolicy">
|
||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Call</string>
|
||||
<property name="topMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<property name="rightMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="operatorLabel">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Operator Callsign:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="loggedOperator">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lab1">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Contact Callsign:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="call">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lab2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="start_now_button">
|
||||
<property name="text">
|
||||
<string>Now</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QDateTimeEdit" name="start_date_time">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="displayFormat">
|
||||
<string>yyyy-MM-dd HH:mm:ss</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="lab2_3">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>End:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="end_now_button">
|
||||
<property name="text">
|
||||
<string>Now</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QDateTimeEdit" name="end_date_time">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="displayFormat">
|
||||
<string>yyyy-MM-dd HH:mm:ss</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="lab4">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Mode:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLineEdit" name="mode">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="lab5">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Band:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLineEdit" name="band">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QLineEdit" name="sent">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="lab7">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Signal Report Received:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLineEdit" name="rcvd">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="lab8">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Grid:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLineEdit" name="grid">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="lab9">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<widget class="QLineEdit" name="name">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="lab10">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Comments:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QLineEdit" name="comments">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1">
|
||||
<widget class="QCheckBox" name="cbComments">
|
||||
<property name="text">
|
||||
<string>Retain Comments</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="lab6">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Signal Report Sent:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="additionalFields">
|
||||
<property name="title">
|
||||
<string>Additional Fields</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_2"/>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="call"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDateTimeEdit" name="start_date_time">
|
||||
<widget class="QPushButton" name="add_new_field_button">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="displayFormat">
|
||||
<string>dd/MM/yyyy HH:mm:ss</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab2_3">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>End</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<string>Add New Field</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDateTimeEdit" name="end_date_time">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="displayFormat">
|
||||
<string>dd/MM/yyyy HH:mm:ss</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab4">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Mode</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="mode">
|
||||
<property name="maximumSize">
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>70</width>
|
||||
<height>16777215</height>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="field_button_layout" stretch="">
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab5">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Band</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="band">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>50</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab6">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Rpt Sent</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="sent">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>50</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab7">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Rpt Rcvd</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="rcvd">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>50</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab8">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Grid</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="grid">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>70</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_10">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab9">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="name">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="lab10">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Comments</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="comments">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbComments">
|
||||
<property name="text">
|
||||
<string>Retain</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QLabel" name="operatorLabel">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Operator</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="loggedOperator">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
@@ -423,7 +505,7 @@
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -432,7 +514,9 @@
|
||||
<tabstops>
|
||||
<tabstop>call</tabstop>
|
||||
<tabstop>start_date_time</tabstop>
|
||||
<tabstop>start_now_button</tabstop>
|
||||
<tabstop>end_date_time</tabstop>
|
||||
<tabstop>end_now_button</tabstop>
|
||||
<tabstop>mode</tabstop>
|
||||
<tabstop>band</tabstop>
|
||||
<tabstop>sent</tabstop>
|
||||
@@ -441,6 +525,9 @@
|
||||
<tabstop>name</tabstop>
|
||||
<tabstop>comments</tabstop>
|
||||
<tabstop>cbComments</tabstop>
|
||||
<tabstop>add_new_field_button</tabstop>
|
||||
<tabstop>scrollArea</tabstop>
|
||||
<tabstop>loggedOperator</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections>
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#include <QActionGroup>
|
||||
#include <QSplashScreen>
|
||||
#include <QSound>
|
||||
#include <QUdpSocket>
|
||||
#include <QVariant>
|
||||
|
||||
#include "APRSISClient.h"
|
||||
#include "revision_utils.hpp"
|
||||
@@ -157,18 +159,6 @@ extern "C" {
|
||||
void plotsave_(float swide[], int* m_w , int* m_h1, int* irow);
|
||||
}
|
||||
|
||||
#ifndef TEST_FOX_WAVE_GEN
|
||||
#define TEST_FOX_WAVE_GEN 0
|
||||
#endif
|
||||
|
||||
#ifndef TEST_FOX_WAVE_GEN_SLOTS
|
||||
#if TEST_FOX_WAVE_GEN
|
||||
#define TEST_FOX_WAVE_GEN_SLOTS 2
|
||||
#else
|
||||
#define TEST_FOX_WAVE_GEN_SLOTS 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
const int NEAR_THRESHOLD_RX = 10;
|
||||
|
||||
int volatile itone[NUM_ISCAT_SYMBOLS]; //Audio tones for all Tx symbols
|
||||
@@ -244,6 +234,19 @@ namespace
|
||||
return QString {};
|
||||
}
|
||||
|
||||
QString timeSince(int delta){
|
||||
int seconds = delta % 60;
|
||||
delta = delta / 60;
|
||||
int minutes = delta;
|
||||
if(minutes && seconds){
|
||||
return QString("%1m %2s").arg(minutes).arg(seconds);
|
||||
} else if(minutes){
|
||||
return QString("%1m").arg(minutes);
|
||||
} else {
|
||||
return QString("%1s").arg(seconds);
|
||||
}
|
||||
}
|
||||
|
||||
void clearTableWidget(QTableWidget *widget){
|
||||
if(!widget){
|
||||
return;
|
||||
@@ -389,6 +392,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
m_multi_settings {multi_settings},
|
||||
m_configurations_button {0},
|
||||
m_settings {multi_settings->settings ()},
|
||||
m_settings_read {false},
|
||||
ui(new Ui::MainWindow),
|
||||
m_config {temp_directory, m_settings, this},
|
||||
m_WSPR_band_hopping {m_settings, &m_config, this},
|
||||
@@ -563,6 +567,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
version (), revision (),
|
||||
m_config.udp_server_name (), m_config.udp_server_port (),
|
||||
this}},
|
||||
m_n3fjpClient { new TCPClient{this}},
|
||||
m_spotClient { new SpotClient{m_messageClient, this}},
|
||||
m_aprsClient {new APRSISClient{"rotate.aprs2.net", 14580, this}},
|
||||
psk_Reporter {new PSK_Reporter {m_messageClient, this}},
|
||||
@@ -963,6 +968,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
auto t = "UTC dB DT Freq Message";
|
||||
ui->decodedTextLabel->setText(t);
|
||||
ui->decodedTextLabel2->setText(t);
|
||||
|
||||
displayDialFrequency();
|
||||
readSettings(); //Restore user's setup params
|
||||
m_audioThread.start (m_audioThreadPriority);
|
||||
|
||||
@@ -1174,6 +1181,12 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
});
|
||||
ui->extFreeTextMsgEdit->installEventFilter(enterFilter);
|
||||
|
||||
auto doubleClickFilter = new MouseDoubleClickEater();
|
||||
connect(doubleClickFilter, &MouseDoubleClickEater::mouseDoubleClicked, this, [this](QObject *, QMouseEvent *, bool *){
|
||||
QTimer::singleShot(150, this, &MainWindow::on_textEditRX_mouseDoubleClicked);
|
||||
});
|
||||
ui->textEditRX->viewport()->installEventFilter(doubleClickFilter);
|
||||
|
||||
auto clearActionSep = new QAction(nullptr);
|
||||
clearActionSep->setSeparator(true);
|
||||
|
||||
@@ -1629,13 +1642,17 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
pskSetLocal();
|
||||
aprsSetLocal();
|
||||
|
||||
clearActivity();
|
||||
displayActivity(true);
|
||||
|
||||
#if TEST_FOX_WAVE_GEN
|
||||
ui->turboButton->setVisible(true);
|
||||
ui->turboButton->setEnabled(true);
|
||||
#endif
|
||||
|
||||
m_txTextDirtyDebounce.setSingleShot(true);
|
||||
connect(&m_txTextDirtyDebounce, &QTimer::timeout, this, &MainWindow::refreshTextDisplay);
|
||||
|
||||
QTimer::singleShot(0, this, &MainWindow::initializeDummyData);
|
||||
QTimer::singleShot(500, this, &MainWindow::initializeDummyData);
|
||||
|
||||
// this must be the last statement of constructor
|
||||
if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
|
||||
@@ -1829,19 +1846,21 @@ void MainWindow::initializeDummyData(){
|
||||
cmd.utcTimestamp = dt;
|
||||
addCommandToMyInbox(cmd);
|
||||
|
||||
displayTextForFreq("KN4CRD: @ALLCALL? \u2301 ", 42, DriftingDateTime::currentDateTimeUtc().addSecs(-315), true, true, true);
|
||||
displayTextForFreq("J1Y: KN4CRD SNR -05 \u2301 ", 42, DriftingDateTime::currentDateTimeUtc().addSecs(-300), false, true, true);
|
||||
displayTextForFreq("HELLO BRAVE NEW WORLD \u2301 ", 42, DriftingDateTime::currentDateTimeUtc().addSecs(-300), false, true, true);
|
||||
QString eot = m_config.eot();
|
||||
|
||||
displayTextForFreq(QString("KN4CRD: @ALLCALL? %1 ").arg(eot), 42, DriftingDateTime::currentDateTimeUtc().addSecs(-315), true, true, true);
|
||||
displayTextForFreq(QString("J1Y: KN4CRD SNR -05 %1 ").arg(eot), 42, DriftingDateTime::currentDateTimeUtc().addSecs(-300), false, true, true);
|
||||
displayTextForFreq(QString("HELLO BRAVE NEW WORLD %1 ").arg(eot), 42, DriftingDateTime::currentDateTimeUtc().addSecs(-300), false, true, true);
|
||||
|
||||
auto now = DriftingDateTime::currentDateTimeUtc();
|
||||
displayTextForFreq("KN4CRD: JY1 ACK -12 \u2301 ", 780, now, false, true, true);
|
||||
displayTextForFreq("KN4CRD: JY1 ACK -12 \u2301 ", 780, now, false, true, true); // should be hidden (duplicate)
|
||||
displayTextForFreq("OH8STN: JY1 ACK -12 \u2301 ", 780, now, false, true, true);
|
||||
displayTextForFreq(QString("KN4CRD: JY1 ACK -12 %1 ").arg(eot), 780, now, false, true, true);
|
||||
displayTextForFreq(QString("KN4CRD: JY1 ACK -12 %1 ").arg(eot), 780, now, false, true, true); // should be hidden (duplicate)
|
||||
displayTextForFreq(QString("OH8STN: JY1 ACK -12 %1 ").arg(eot), 780, now, false, true, true);
|
||||
|
||||
displayTextForFreq("KN4CRD: JY1 ACK -10 \u2301 ", 800, now, false, true, true);
|
||||
displayTextForFreq("KN4CRD: JY1 ACK -12 \u2301 ", 780, now.addSecs(120), false, true, true);
|
||||
displayTextForFreq(QString("KN4CRD: JY1 ACK -10 %1 ").arg(eot), 800, now, false, true, true);
|
||||
displayTextForFreq(QString("KN4CRD: JY1 ACK -12 %1 ").arg(eot), 780, now.addSecs(120), false, true, true);
|
||||
|
||||
displayTextForFreq("HELLO\\nBRAVE\\nNEW\\nWORLD \u2301 ", 1500, now, false, true, true);
|
||||
displayTextForFreq(QString("HELLO\\nBRAVE\\nNEW\\nWORLD %1 ").arg(eot), 1500, now, false, true, true);
|
||||
|
||||
displayActivity(true);
|
||||
}
|
||||
@@ -2024,6 +2043,7 @@ void MainWindow::writeSettings()
|
||||
m_settings->setValue("TimeDrift", ui->driftSpinBox->value());
|
||||
m_settings->setValue("ShowTooltips", ui->actionShow_Tooltips->isChecked());
|
||||
m_settings->setValue("ShowStatusbar", ui->statusBar->isVisible());
|
||||
m_settings->setValue("RXActivity", ui->textEditRX->toHtml());
|
||||
|
||||
m_settings->endGroup();
|
||||
|
||||
@@ -2074,6 +2094,8 @@ void MainWindow::writeSettings()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// TODO: jsherer - need any other customizations?
|
||||
/*m_settings->setValue("PanelLeftGeometry", ui->tableWidgetRXAll->geometry());
|
||||
m_settings->setValue("PanelRightGeometry", ui->tableWidgetCalls->geometry());
|
||||
@@ -2091,6 +2113,34 @@ void MainWindow::writeSettings()
|
||||
m_settings->setValue ("PhaseEqualizationCoefficients", QVariant {coeffs});
|
||||
}
|
||||
m_settings->endGroup();
|
||||
|
||||
|
||||
auto now = DriftingDateTime::currentDateTimeUtc();
|
||||
int callsignAging = m_config.callsign_aging();
|
||||
|
||||
m_settings->beginGroup("CallActivity");
|
||||
m_settings->remove(""); // remove all keys in current group
|
||||
foreach(auto cd, m_callActivity.values()){
|
||||
if (cd.call.trimmed().isEmpty()){
|
||||
continue;
|
||||
}
|
||||
if (callsignAging && cd.utcTimestamp.secsTo(now) / 60 >= callsignAging) {
|
||||
continue;
|
||||
}
|
||||
m_settings->setValue(cd.call.trimmed(), QVariantMap{
|
||||
{"snr", QVariant(cd.snr)},
|
||||
{"grid", QVariant(cd.grid)},
|
||||
{"freq", QVariant(cd.freq)},
|
||||
#if CACHE_CALL_DATETIME_AS_STRINGS
|
||||
{"ackTimestamp", QVariant(cd.ackTimestamp.toString("yyyy-MM-dd hh:mm:ss"))},
|
||||
{"utcTimestamp", QVariant(cd.utcTimestamp.toString("yyyy-MM-dd hh:mm:ss"))},
|
||||
#else
|
||||
{"ackTimestamp", QVariant(cd.ackTimestamp)},
|
||||
{"utcTimestamp", QVariant(cd.utcTimestamp)},
|
||||
#endif
|
||||
});
|
||||
}
|
||||
m_settings->endGroup();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------- readSettings()
|
||||
@@ -2141,7 +2191,7 @@ void MainWindow::readSettings()
|
||||
ui->actionShow_Tooltips->setChecked(m_settings->value("ShowTooltips", true).toBool());
|
||||
ui->actionShow_Statusbar->setChecked(m_settings->value("ShowStatusbar",true).toBool());
|
||||
ui->statusBar->setVisible(ui->actionShow_Statusbar->isChecked());
|
||||
|
||||
ui->textEditRX->setHtml(m_config.reset_activity() ? "" : m_settings->value("RXActivity", "").toString());
|
||||
m_settings->endGroup();
|
||||
|
||||
// do this outside of settings group because it uses groups internally
|
||||
@@ -2238,7 +2288,47 @@ void MainWindow::readSettings()
|
||||
m_audioThreadPriority = static_cast<QThread::Priority> (m_settings->value ("Audio/ThreadPriority", QThread::HighPriority).toInt () % 8);
|
||||
m_settings->endGroup ();
|
||||
|
||||
if(m_config.reset_activity()){
|
||||
// NOOP
|
||||
} else {
|
||||
m_settings->beginGroup("CallActivity");
|
||||
foreach(auto call, m_settings->allKeys()){
|
||||
|
||||
auto values = m_settings->value(call).toMap();
|
||||
|
||||
auto snr = values.value("snr", -64).toInt();
|
||||
auto grid = values.value("grid", "").toString();
|
||||
auto freq = values.value("freq", 0).toInt();
|
||||
|
||||
#if CACHE_CALL_DATETIME_AS_STRINGS
|
||||
auto ackTimestampStr = values.value("ackTimestamp", "").toString();
|
||||
auto ackTimestamp = QDateTime::fromString(ackTimestampStr, "yyyy-MM-dd hh:mm:ss");
|
||||
ackTimestamp.setUtcOffset(0);
|
||||
|
||||
auto utcTimestampStr = values.value("utcTimestamp", "").toString();
|
||||
auto utcTimestamp = QDateTime::fromString(utcTimestampStr, "yyyy-MM-dd hh:mm:ss");
|
||||
utcTimestamp.setUtcOffset(0);
|
||||
#else
|
||||
auto ackTimestamp = values.value("ackTimestamp").toDateTime();
|
||||
auto utcTimestamp = values.value("utcTimestamp").toDateTime();
|
||||
#endif
|
||||
|
||||
CallDetail cd = {};
|
||||
cd.call = call;
|
||||
cd.snr = snr;
|
||||
cd.grid = grid;
|
||||
cd.freq = freq;
|
||||
cd.ackTimestamp = ackTimestamp;
|
||||
cd.utcTimestamp = utcTimestamp;
|
||||
|
||||
logCallActivity(cd, false);
|
||||
}
|
||||
m_settings->endGroup();
|
||||
}
|
||||
|
||||
if (displayMsgAvg) on_actionMessage_averaging_triggered();
|
||||
|
||||
m_settings_read = true;
|
||||
}
|
||||
|
||||
void MainWindow::set_application_font (QFont const& font)
|
||||
@@ -2734,6 +2824,18 @@ void MainWindow::on_menuWindow_aboutToShow(){
|
||||
ui->actionShow_Band_Heartbeats_and_ACKs->setEnabled(ui->actionShow_Band_Activity->isChecked());
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFocus_Message_Reply_Area_triggered(){
|
||||
ui->extFreeTextMsgEdit->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFocus_Band_Activity_Table_triggered(){
|
||||
ui->tableWidgetRXAll->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFocus_Call_Activity_Table_triggered(){
|
||||
ui->tableWidgetCalls->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSetOffset_triggered(){
|
||||
bool ok = false;
|
||||
auto currentFreq = currentFreqOffset();
|
||||
@@ -3132,6 +3234,38 @@ Radio::Frequency MainWindow::dialFrequency() {
|
||||
m_rigState.tx_frequency () : m_rigState.frequency ()};
|
||||
}
|
||||
|
||||
void MainWindow::updateCurrentBand(){
|
||||
QVariant state = ui->readFreq->property("state");
|
||||
if(!state.isValid()){
|
||||
return;
|
||||
}
|
||||
|
||||
auto dial_frequency = dialFrequency();
|
||||
auto const& band_name = m_config.bands ()->find(dial_frequency);
|
||||
|
||||
if (m_lastBand == band_name){
|
||||
return;
|
||||
}
|
||||
|
||||
cacheActivity(m_lastBand);
|
||||
|
||||
// clear activity on startup if asked or on when the previous band is not empty
|
||||
if(m_config.reset_activity() || !m_lastBand.isEmpty()){
|
||||
clearActivity();
|
||||
}
|
||||
|
||||
// only change this when necessary as we get called a lot and it
|
||||
// would trash any user input to the band combo box line edit
|
||||
ui->bandComboBox->setCurrentText (band_name);
|
||||
m_wideGraph->setRxBand (band_name);
|
||||
|
||||
qDebug() << "setting band" << band_name;
|
||||
m_lastBand = band_name;
|
||||
|
||||
band_changed(dial_frequency);
|
||||
restoreActivity(m_lastBand);
|
||||
}
|
||||
|
||||
void MainWindow::displayDialFrequency (){
|
||||
#if 0
|
||||
qDebug() << "rx nominal" << m_freqNominal;
|
||||
@@ -3144,45 +3278,6 @@ void MainWindow::displayDialFrequency (){
|
||||
|
||||
// lookup band
|
||||
auto const& band_name = m_config.bands ()->find (dial_frequency);
|
||||
if (m_lastBand != band_name){
|
||||
cacheActivity(m_lastBand);
|
||||
|
||||
// only change this when necessary as we get called a lot and it
|
||||
// would trash any user input to the band combo box line edit
|
||||
ui->bandComboBox->setCurrentText (band_name);
|
||||
m_wideGraph->setRxBand (band_name);
|
||||
m_lastBand = band_name;
|
||||
band_changed(dial_frequency);
|
||||
|
||||
clearActivity();
|
||||
|
||||
restoreActivity(m_lastBand);
|
||||
}
|
||||
|
||||
// TODO: jsherer - this doesn't validate anything else right? we are disabling this because as long as you're in a band, it's valid.
|
||||
/*
|
||||
// search working frequencies for one we are within 10kHz of (1 Mhz
|
||||
// of on VHF and up)
|
||||
bool valid {false};
|
||||
quint64 min_offset {99999999};
|
||||
for (auto const& item : *m_config.frequencies ())
|
||||
{
|
||||
// we need to do specific checks for above and below here to
|
||||
// ensure that we can use unsigned Radio::Frequency since we
|
||||
// potentially use the full 64-bit unsigned range.
|
||||
auto const& working_frequency = item.frequency_;
|
||||
auto const& offset = dial_frequency > working_frequency ?
|
||||
dial_frequency - working_frequency :
|
||||
working_frequency - dial_frequency;
|
||||
if (offset < min_offset) {
|
||||
min_offset = offset;
|
||||
}
|
||||
}
|
||||
if (min_offset < 10000u || (m_config.enable_VHF_features() && min_offset < 1000000u)) {
|
||||
valid = true;
|
||||
}
|
||||
*/
|
||||
|
||||
bool valid = !band_name.isEmpty();
|
||||
|
||||
update_dynamic_property (ui->labDialFreq, "oob", !valid);
|
||||
@@ -4047,6 +4142,31 @@ void MainWindow::writeAllTxt(QString message, int bits)
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::writeMsgTxt(QString message, int snr)
|
||||
{
|
||||
// Write decoded text to file "DIRECTED.TXT".
|
||||
QFile f {m_config.writeable_data_dir ().absoluteFilePath ("DIRECTED.TXT")};
|
||||
if (f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) {
|
||||
QTextStream out(&f);
|
||||
|
||||
QStringList output = {
|
||||
DriftingDateTime::currentDateTimeUtc().toString("yyyy-MM-dd hh:mm:ss"),
|
||||
Radio::frequency_MHz_string(m_freqNominal),
|
||||
QString::number(currentFreqOffset()),
|
||||
Varicode::formatSNR(snr),
|
||||
message
|
||||
};
|
||||
|
||||
out << output.join("\t") << endl;
|
||||
|
||||
f.close();
|
||||
} else {
|
||||
MessageBox::warning_message (this, tr ("File Open Error")
|
||||
, tr ("Cannot open \"%1\" for append: %2")
|
||||
.arg (f.fileName ()).arg (f.errorString ()));
|
||||
}
|
||||
}
|
||||
|
||||
QDateTime MainWindow::nextTransmitCycle(){
|
||||
auto timestamp = DriftingDateTime::currentDateTimeUtc();
|
||||
|
||||
@@ -4891,12 +5011,12 @@ void MainWindow::guiUpdate()
|
||||
foxcom_.nfreq=ui->TxFreqSpinBox->value();
|
||||
if(m_config.split_mode()) foxcom_.nfreq = foxcom_.nfreq - m_XIT; //Fox Tx freq
|
||||
strncpy(&foxcom_.cmsg[0][0], QString::fromStdString(message).toLatin1(), 12);
|
||||
foxcom_.i3bit[0] = m_i3bit | Varicode::JS8CallExtended;
|
||||
foxcom_.i3bit[0] = m_i3bit | Varicode::JS8CallFlag;
|
||||
int i = 1;
|
||||
while(!m_txFrameQueue.isEmpty() && foxcom_.nslots < TEST_FOX_WAVE_GEN_SLOTS){
|
||||
auto pair = m_txFrameQueue.dequeue();
|
||||
strncpy(&foxcom_.cmsg[i][0], pair.first.toLatin1(), 12);
|
||||
foxcom_.i3bit[i] = pair.second | Varicode::JS8CallExtended;
|
||||
foxcom_.i3bit[i] = pair.second | Varicode::JS8CallFlag;
|
||||
foxcom_.nslots += 1;
|
||||
|
||||
//m_currentMessage.append(pair.first);
|
||||
@@ -5083,6 +5203,7 @@ void MainWindow::guiUpdate()
|
||||
tx_status_label.setText(t.trimmed());
|
||||
}
|
||||
}
|
||||
transmitDisplay(true);
|
||||
|
||||
} else if(m_monitoring) {
|
||||
if (m_tx_watchdog) {
|
||||
@@ -5275,9 +5396,23 @@ void MainWindow::stopTx()
|
||||
statusUpdate ();
|
||||
}
|
||||
|
||||
void MainWindow::stopTx2()
|
||||
{
|
||||
emitPTT(false);
|
||||
/**
|
||||
* stopTx2 is called from stopTx to open the PTT
|
||||
*/
|
||||
void MainWindow::stopTx2(){
|
||||
// GM8JCF: m_txFrameCount is set to the number of frames to be transmitted when the send button is pressed
|
||||
// and remains at that count until the last frame is transmitted.
|
||||
// So, we keep the PTT ON so long as m_txFrameCount is non-zero
|
||||
|
||||
qDebug() << "stopTx2 frames left" << m_txFrameCount;
|
||||
|
||||
// If we're holding the PTT and there are more frames to transmit, do not emit the PTT signal
|
||||
if(m_config.hold_ptt() && m_txFrameCount > 0){
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise, emit the PTT signal
|
||||
emitPTT(false);
|
||||
}
|
||||
|
||||
void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
|
||||
@@ -5735,6 +5870,7 @@ void MainWindow::restoreActivity(QString key){
|
||||
}
|
||||
|
||||
void MainWindow::clearActivity(){
|
||||
qDebug() << "clear activity";
|
||||
m_bandActivity.clear();
|
||||
m_callActivity.clear();
|
||||
m_callSeenHeartbeat.clear();
|
||||
@@ -5895,7 +6031,7 @@ int MainWindow::writeMessageTextToUI(QDateTime date, QString text, int freq, boo
|
||||
c.clearSelection();
|
||||
c.movePosition(QTextCursor::EndOfBlock, QTextCursor::MoveAnchor);
|
||||
|
||||
if(!blockText.contains("\u2301")){
|
||||
if(!blockText.contains(m_config.eot())){
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
@@ -6125,7 +6261,7 @@ QString MainWindow::createMessageTransmitQueue(QString const& text, bool reset){
|
||||
// TODO: jsherer - parse outgoing message so we can add it to the inbox as an outgoing message
|
||||
|
||||
auto joined = Varicode::rstrip(lines.join(""));
|
||||
displayTextForFreq(QString("%1 \u2301 ").arg(joined), freq, DriftingDateTime::currentDateTimeUtc(), true, true, true);
|
||||
displayTextForFreq(QString("%1 %2 ").arg(joined).arg(m_config.eot()), freq, DriftingDateTime::currentDateTimeUtc(), true, true, true);
|
||||
|
||||
// if we're transmitting a message to be displayed, we should bump the repeat buttons...
|
||||
resetAutomaticIntervalTransmissions(false, false);
|
||||
@@ -6156,6 +6292,30 @@ QPair<QString, int> MainWindow::popMessageFrame(){
|
||||
return m_txFrameQueue.dequeue();
|
||||
}
|
||||
|
||||
void MainWindow::on_textEditRX_mouseDoubleClicked(){
|
||||
auto c = ui->textEditRX->textCursor();
|
||||
auto text = c.selectedText();
|
||||
if(text.isEmpty()){
|
||||
return;
|
||||
}
|
||||
|
||||
int start = c.selectionStart();
|
||||
int end = c.selectionEnd();
|
||||
|
||||
c.clearSelection();
|
||||
c.setPosition(start);
|
||||
c.movePosition(QTextCursor::PreviousCharacter, QTextCursor::MoveAnchor);
|
||||
c.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor, 1 + end-start);
|
||||
|
||||
auto prev = c.selectedText();
|
||||
if(prev.startsWith("-") || prev.startsWith("+")){
|
||||
ui->textEditRX->setTextCursor(c);
|
||||
text = prev;
|
||||
}
|
||||
|
||||
m_logDlg->acceptText(text);
|
||||
}
|
||||
|
||||
void MainWindow::on_nextFreeTextMsg_currentTextChanged (QString const& text)
|
||||
{
|
||||
msgtype(text, ui->nextFreeTextMsg);
|
||||
@@ -6212,11 +6372,14 @@ QList<QPair<QString, int>> MainWindow::buildMessageFrames(const QString &text){
|
||||
QString mycall = m_config.my_callsign();
|
||||
QString mygrid = m_config.my_grid().left(4);
|
||||
|
||||
bool forceIdentify = !m_config.avoid_forced_identify();
|
||||
|
||||
auto frames = Varicode::buildMessageFrames(
|
||||
mycall,
|
||||
mygrid,
|
||||
selectedCall,
|
||||
text);
|
||||
text,
|
||||
forceIdentify);
|
||||
|
||||
#if 0
|
||||
qDebug() << "frames:";
|
||||
@@ -6471,8 +6634,8 @@ void MainWindow::on_startTxButton_toggled(bool checked)
|
||||
}
|
||||
} else {
|
||||
resetMessage();
|
||||
stopTx();
|
||||
on_stopTxButton_clicked();
|
||||
stopTx();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6524,11 +6687,24 @@ void MainWindow::on_logQSOButton_clicked() //Log QSO button
|
||||
if(m_callActivity.contains(call)){
|
||||
grid = m_callActivity[call].grid;
|
||||
}
|
||||
QString opCall=m_opCall;
|
||||
if(opCall.isEmpty()){
|
||||
opCall = m_config.my_callsign();
|
||||
}
|
||||
|
||||
QString comments = ui->textEditRX->textCursor().selectedText();
|
||||
|
||||
// don't reset the log window if the call hasn't changed.
|
||||
if(!m_logDlg->currentCall().isEmpty() && call.trimmed() == m_logDlg->currentCall()){
|
||||
m_logDlg->show();
|
||||
return;
|
||||
}
|
||||
|
||||
m_logDlg->initLogQSO (call.trimmed(), grid.trimmed(), m_modeTx == "FT8" ? "JS8" : m_modeTx, m_rptSent, m_rptRcvd,
|
||||
m_dateTimeQSOOn, dateTimeQSOOff, m_freqNominal + ui->TxFreqSpinBox->value(),
|
||||
m_config.my_callsign(), m_config.my_grid(),
|
||||
m_config.log_as_DATA(), m_config.report_in_comments(),
|
||||
m_config.bFox(), m_opCall);
|
||||
m_config.bFox(), opCall, comments);
|
||||
}
|
||||
|
||||
void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call, QString const& grid
|
||||
@@ -6536,28 +6712,113 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call,
|
||||
, QString const& rpt_sent, QString const& rpt_received
|
||||
, QString const& comments
|
||||
, QString const& name, QDateTime const& QSO_date_on, QString const& operator_call
|
||||
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF)
|
||||
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF, QMap<QString, QVariant> const &additionalFields)
|
||||
{
|
||||
QString date = QSO_date_on.toString("yyyyMMdd");
|
||||
m_logBook.addAsWorked (m_hisCall, m_config.bands ()->find (m_freqNominal), mode, submode, date, name, comments);
|
||||
m_logBook.addAsWorked (m_hisCall, m_config.bands ()->find (m_freqNominal), mode, submode, grid, date, name, comments);
|
||||
|
||||
sendNetworkMessage("LOG.QSO", QString(ADIF), {
|
||||
{"UTC.ON", QVariant(QSO_date_on.toMSecsSinceEpoch())},
|
||||
{"UTC.OFF", QVariant(QSO_date_off.toMSecsSinceEpoch())},
|
||||
{"CALL", QVariant(call)},
|
||||
{"GRID", QVariant(grid)},
|
||||
{"FREQ", QVariant(dial_freq)},
|
||||
{"MODE", QVariant(mode)},
|
||||
{"SUBMODE", QVariant(submode)},
|
||||
{"RPT.SENT", QVariant(rpt_sent)},
|
||||
{"RPT.RECV", QVariant(rpt_received)},
|
||||
{"NAME", QVariant(name)},
|
||||
{"COMMENTS", QVariant(comments)},
|
||||
{"STATION.OP", QVariant(operator_call)},
|
||||
{"STATION.CALL", QVariant(my_call)},
|
||||
{"STATION.GRID", QVariant(my_grid)}
|
||||
});
|
||||
// Log to JS8Call API
|
||||
if(m_config.udpEnabled()){
|
||||
sendNetworkMessage("LOG.QSO", QString(ADIF), {
|
||||
{"UTC.ON", QVariant(QSO_date_on.toMSecsSinceEpoch())},
|
||||
{"UTC.OFF", QVariant(QSO_date_off.toMSecsSinceEpoch())},
|
||||
{"CALL", QVariant(call)},
|
||||
{"GRID", QVariant(grid)},
|
||||
{"FREQ", QVariant(dial_freq)},
|
||||
{"MODE", QVariant(mode)},
|
||||
{"SUBMODE", QVariant(submode)},
|
||||
{"RPT.SENT", QVariant(rpt_sent)},
|
||||
{"RPT.RECV", QVariant(rpt_received)},
|
||||
{"NAME", QVariant(name)},
|
||||
{"COMMENTS", QVariant(comments)},
|
||||
{"STATION.OP", QVariant(operator_call)},
|
||||
{"STATION.CALL", QVariant(my_call)},
|
||||
{"STATION.GRID", QVariant(my_grid)},
|
||||
{"EXTRA", additionalFields}
|
||||
});
|
||||
}
|
||||
|
||||
// Log to N1MM Logger
|
||||
if (m_config.broadcast_to_n1mm() && m_config.valid_n1mm_info()) {
|
||||
const QHostAddress n1mmhost = QHostAddress(m_config.n1mm_server_name());
|
||||
QUdpSocket _sock;
|
||||
auto rzult = _sock.writeDatagram (ADIF + " <eor>", n1mmhost, quint16(m_config.n1mm_server_port()));
|
||||
if (rzult == -1) {
|
||||
MessageBox::warning_message (this, tr ("Error sending log to N1MM"),
|
||||
tr ("Write returned \"%1\"").arg (rzult));
|
||||
}
|
||||
}
|
||||
|
||||
// Log to N3FJP Logger
|
||||
if(m_config.broadcast_to_n3fjp() && m_config.valid_n3fjp_info()){
|
||||
QString data = QString(
|
||||
"<CMD>"
|
||||
"<ADDDIRECT>"
|
||||
"<EXCLUDEDUPES>TRUE</EXCLUDEDUPES>"
|
||||
"<STAYOPEN>FALSE</STAYOPEN>"
|
||||
"<fldDateStr>%1</fldDateStr>"
|
||||
"<fldTimeOnStr>%2</fldTimeOnStr>"
|
||||
"<fldCall>%3</fldCall>"
|
||||
"<fldGridR>%4</fldGridR>"
|
||||
"<fldBand>%5</fldBand>"
|
||||
"<fldFrequency>%6</fldFrequency>"
|
||||
"<fldMode>JS8</fldMode>"
|
||||
"<fldOperator>%7</fldOperator>"
|
||||
"<fldNameR>%8</fldNameR>"
|
||||
"<fldComments>%9</fldComments>"
|
||||
"<fldRstS>%10</fldRstS>"
|
||||
"<fldRstR>%11</fldRstR>"
|
||||
"%12"
|
||||
"</CMD>");
|
||||
|
||||
data = data.arg(QSO_date_on.toString("yyyy/MM/dd"));
|
||||
data = data.arg(QSO_date_on.toString("H:mm"));
|
||||
data = data.arg(call);
|
||||
data = data.arg(grid);
|
||||
data = data.arg(m_config.bands ()->find(dial_freq).replace("m", ""));
|
||||
data = data.arg(Radio::frequency_MHz_string(dial_freq));
|
||||
data = data.arg(operator_call);
|
||||
data = data.arg(name);
|
||||
data = data.arg(comments);
|
||||
data = data.arg(rpt_sent);
|
||||
data = data.arg(rpt_received);
|
||||
|
||||
int other = 0;
|
||||
QStringList additional;
|
||||
if(!additionalFields.isEmpty()){
|
||||
foreach(auto key, additionalFields.keys()){
|
||||
QString n3key;
|
||||
if(N3FJP_ADIF_MAP.contains(key)){
|
||||
n3key = N3FJP_ADIF_MAP.value(key);
|
||||
} else {
|
||||
other++;
|
||||
n3key = N3FJP_ADIF_MAP.value(QString("*%1").arg(other));
|
||||
}
|
||||
|
||||
if(n3key.isEmpty()){
|
||||
break;
|
||||
}
|
||||
auto value = additionalFields[key].toString();
|
||||
additional.append(QString("<%1>%2</%1>").arg(n3key).arg(value));
|
||||
}
|
||||
}
|
||||
data = data.arg(additional.join(""));
|
||||
|
||||
auto host = m_config.n3fjp_server_name();
|
||||
auto port = m_config.n3fjp_server_port();
|
||||
|
||||
if(m_n3fjpClient->sendNetworkMessage(host, port, data.toLocal8Bit(), true, 500)){
|
||||
QTimer::singleShot(300, this, [this, host, port](){
|
||||
m_n3fjpClient->sendNetworkMessage(host, port, "<CMD><CHECKLOG></CMD>", true, 100);
|
||||
m_n3fjpClient->sendNetworkMessage(host, port, "\r\n", true, 100);
|
||||
});
|
||||
} else {
|
||||
MessageBox::warning_message (this, tr ("Error sending log to N3FJP"),
|
||||
tr ("Write failed for \"%1:%2\"").arg (host).arg(port));
|
||||
}
|
||||
}
|
||||
|
||||
// reload the logbook data
|
||||
m_logBook.init();
|
||||
|
||||
if (m_config.clear_callsign ()){
|
||||
@@ -8142,8 +8403,7 @@ void MainWindow::on_tableWidgetRXAll_cellDoubleClicked(int row, int col){
|
||||
|
||||
isLast = (d.bits & Varicode::JS8CallLast) == Varicode::JS8CallLast;
|
||||
if(isLast){
|
||||
// can also use \u0004 \u2666 \u2404
|
||||
activityText = QString("%1 \u2301 ").arg(Varicode::rstrip(activityText));
|
||||
activityText = QString("%1 %2 ").arg(Varicode::rstrip(activityText)).arg(m_config.eot());
|
||||
}
|
||||
}
|
||||
if(!activityText.isEmpty()){
|
||||
@@ -8596,17 +8856,19 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const&
|
||||
{
|
||||
//qDebug () << "MainWindow::handle_transceiver_update:" << s;
|
||||
Transceiver::TransceiverState old_state {m_rigState};
|
||||
//transmitDisplay (s.ptt ());
|
||||
if (s.ptt () && !m_rigState.ptt ()) // safe to start audio
|
||||
// (caveat - DX Lab Suite Commander)
|
||||
{
|
||||
|
||||
// GM8JCF: in stopTx2 we maintain PTT if there are still untransmitted JS8 frames and we are holding the PTT
|
||||
// KN4CRD: if we're not holding the PTT we need to check to ensure it's safe to transmit
|
||||
if (m_config.hold_ptt() || (s.ptt () && !m_rigState.ptt())) // safe to start audio (caveat - DX Lab Suite Commander)
|
||||
{
|
||||
if (m_tx_when_ready && g_iptt) // waiting to Tx and still needed
|
||||
{
|
||||
{
|
||||
ptt1Timer.start(1000 * m_config.txDelay ()); //Start-of-transmission sequencer delay
|
||||
}
|
||||
}
|
||||
m_tx_when_ready = false;
|
||||
}
|
||||
}
|
||||
m_rigState = s;
|
||||
|
||||
auto old_freqNominal = m_freqNominal;
|
||||
if (!old_freqNominal)
|
||||
{
|
||||
@@ -8614,6 +8876,7 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const&
|
||||
// with bogus Tx frequencies
|
||||
m_freqNominal = s.frequency ();
|
||||
}
|
||||
|
||||
if (old_state.online () == false && s.online () == true)
|
||||
{
|
||||
// initializing
|
||||
@@ -8621,6 +8884,7 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const&
|
||||
|
||||
ui->autoReplyButton->setChecked(!m_config.autoreply_off_at_startup());
|
||||
}
|
||||
|
||||
if (s.frequency () != old_state.frequency () || s.split () != m_splitMode)
|
||||
{
|
||||
m_splitMode = s.split ();
|
||||
@@ -8679,6 +8943,7 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const&
|
||||
// ensure frequency display is correct
|
||||
if (m_astroWidget && old_state.ptt () != s.ptt ()) setRig ();
|
||||
|
||||
updateCurrentBand();
|
||||
displayDialFrequency ();
|
||||
update_dynamic_property (ui->readFreq, "state", "ok");
|
||||
ui->readFreq->setEnabled (false);
|
||||
@@ -9315,24 +9580,18 @@ void MainWindow::refreshTextDisplay(){
|
||||
#else
|
||||
// prepare selected callsign for directed message
|
||||
QString selectedCall = callsignSelected();
|
||||
//qDebug() << "selected callsign for directed" << selectedCall;
|
||||
|
||||
// prepare compound
|
||||
//bool compound = Varicode::isCompoundCallsign(/*Radio::is_compound_callsign(*/m_config.my_callsign());
|
||||
QString mycall = m_config.my_callsign();
|
||||
QString mygrid = m_config.my_grid().left(4);
|
||||
//QString basecall = Radio::base_callsign(m_config.my_callsign());
|
||||
//if(basecall != mycall){
|
||||
// basecall = "<....>";
|
||||
//}
|
||||
bool forceIdentify = !m_config.avoid_forced_identify();
|
||||
|
||||
BuildMessageFramesThread *t = new BuildMessageFramesThread(
|
||||
mycall,
|
||||
//basecall,
|
||||
mygrid,
|
||||
//compound,
|
||||
selectedCall,
|
||||
text
|
||||
text,
|
||||
forceIdentify
|
||||
);
|
||||
|
||||
connect(t, &BuildMessageFramesThread::finished, t, &QObject::deleteLater);
|
||||
@@ -9394,14 +9653,37 @@ void MainWindow::updateTxButtonDisplay(){
|
||||
int sent = qMax(1, count - left);
|
||||
ui->startTxButton->setText(m_tune ? "Tuning" : QString("%1 (%2/%3)").arg(ui->turboButton->isChecked() ? "Turbo" : "Send").arg(sent).arg(count));
|
||||
#else
|
||||
int sent = count - m_txFrameQueue.count();
|
||||
ui->startTxButton->setText(
|
||||
m_tune ? "Tuning" : QString("%1 (%2/%3)").arg(m_transmitting ? "Sending" : "Ready").arg(sent).arg(count));
|
||||
int left = m_txFrameQueue.count();
|
||||
int sent = count - left;
|
||||
|
||||
QString buttonText;
|
||||
if(m_tune){
|
||||
buttonText = "Tuning";
|
||||
} else if(m_transmitting){
|
||||
auto secondsLeft = (((left + 1) * m_TRperiod) - ((m_sec0 + 1) % m_TRperiod));
|
||||
auto timeLeft = timeSince(secondsLeft);
|
||||
buttonText = QString("Sending (%1)").arg(timeLeft);
|
||||
} else {
|
||||
auto secondsLeft = sent == 1 ? ((left + 1) * m_TRperiod) :
|
||||
(((left + 2) * m_TRperiod) - ((m_sec0 + 1) % m_TRperiod));
|
||||
auto timeLeft = timeSince(secondsLeft);
|
||||
buttonText = QString("Ready (%1)").arg(timeLeft);
|
||||
}
|
||||
ui->startTxButton->setText(buttonText);
|
||||
#endif
|
||||
ui->startTxButton->setEnabled(false);
|
||||
ui->startTxButton->setFlat(true);
|
||||
} else {
|
||||
ui->startTxButton->setText(m_txFrameCountEstimate <= 0 ? QString("Send") : QString("Send (%1)").arg(m_txFrameCountEstimate));
|
||||
QString buttonText;
|
||||
if(m_txFrameCountEstimate > 0){
|
||||
auto secondsLeft = m_txFrameCountEstimate * m_TRperiod;
|
||||
auto timeLeft = timeSince(secondsLeft);
|
||||
buttonText = QString("Send (%1)").arg(timeLeft);
|
||||
} else {
|
||||
buttonText = "Send";
|
||||
}
|
||||
ui->startTxButton->setText(buttonText);
|
||||
|
||||
ui->startTxButton->setEnabled(m_txFrameCountEstimate > 0);
|
||||
ui->startTxButton->setFlat(false);
|
||||
}
|
||||
@@ -9703,17 +9985,33 @@ void MainWindow::processRxActivity() {
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
} else if(d.isDirected && d.text.contains("<....>")){
|
||||
// if this is a _partial_ directed message, skip until the complete call comes through.
|
||||
if(d.isDirected && d.text.contains("<....>")){
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
} else if(d.isDirected && d.text.contains(": HB ")){ // TODO: HEARTBEAT
|
||||
// if this is a heartbeat, process elsewhere...
|
||||
continue;
|
||||
}
|
||||
|
||||
if(d.isDirected && d.text.contains(": HB ")){ // TODO: HEARTBEAT
|
||||
continue;
|
||||
// if this is the first data frame of a standard message, parse the first word callsigns and spot them :)
|
||||
if((d.bits & Varicode::JS8CallFirst) == Varicode::JS8CallFirst && !d.isDirected && !d.isCompound){
|
||||
auto calls = Varicode::parseCallsigns(d.text);
|
||||
if(!calls.isEmpty()){
|
||||
auto theirCall = calls.first();
|
||||
if(d.text.startsWith(theirCall) && d.text.mid(theirCall.length(), 1) == ":"){
|
||||
CallDetail cd = {};
|
||||
cd.call = theirCall;
|
||||
cd.freq = d.freq;
|
||||
cd.snr = d.snr;
|
||||
cd.bits = d.bits;
|
||||
cd.tdrift = d.tdrift;
|
||||
cd.utcTimestamp = d.utcTimestamp;
|
||||
logCallActivity(cd, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// TODO: incremental printing of directed messages
|
||||
// Display if:
|
||||
// 1) this is a directed message header "to" us and should be buffered...
|
||||
@@ -9728,8 +10026,7 @@ void MainWindow::processRxActivity() {
|
||||
|
||||
// if we're the last message, let's display our EOT character
|
||||
if (isLast) {
|
||||
// can also use \u0004 \u2666 \u2404
|
||||
d.text = QString("%1 \u2301 ").arg(Varicode::rstrip(d.text));
|
||||
d.text = QString("%1 %2 ").arg(Varicode::rstrip(d.text)).arg(m_config.eot());
|
||||
}
|
||||
|
||||
// log it to the display!
|
||||
@@ -9891,7 +10188,12 @@ void MainWindow::processBufferedActivity() {
|
||||
if(!buffer.msgs.isEmpty()){
|
||||
dt = qMax(dt, buffer.msgs.last().utcTimestamp);
|
||||
}
|
||||
if(dt.secsTo(DriftingDateTime::currentDateTimeUtc()) > 60){
|
||||
if(dt.secsTo(DriftingDateTime::currentDateTimeUtc()) > 60 && !buffer.msgs.isEmpty()){
|
||||
// if the buffer has messages older than 1 minute, and we still haven't closed it, let's just mark it as the last frame
|
||||
buffer.msgs.last().bits |= Varicode::JS8CallLast;
|
||||
}
|
||||
if(dt.secsTo(DriftingDateTime::currentDateTimeUtc()) > 90){
|
||||
// but, if the buffer is older than 2 minutes, and we still haven't closed it, just remove it
|
||||
m_messageBuffer.remove(freq);
|
||||
continue;
|
||||
}
|
||||
@@ -10086,6 +10388,30 @@ void MainWindow::processCommandActivity() {
|
||||
spotCmd(d);
|
||||
}
|
||||
|
||||
// PREPARE CMD TEXT STRING
|
||||
QStringList textList = {
|
||||
QString("%1: %2%3").arg(d.from).arg(d.to).arg(d.cmd)
|
||||
};
|
||||
|
||||
if(!d.extra.isEmpty()){
|
||||
textList.append(d.extra);
|
||||
}
|
||||
|
||||
if(!d.text.isEmpty()){
|
||||
textList.append(d.text);
|
||||
}
|
||||
|
||||
QString text = textList.join(" ");
|
||||
bool isLast = (d.bits & Varicode::JS8CallLast) == Varicode::JS8CallLast;
|
||||
if (isLast) {
|
||||
// append the eot character to the text
|
||||
text = QString("%1 %2 ").arg(Varicode::rstrip(text)).arg(m_config.eot());
|
||||
}
|
||||
|
||||
// log the text to directed txt log
|
||||
writeMsgTxt(text, d.snr);
|
||||
|
||||
|
||||
// we're only responding to allcall, groupcalls, and our callsign at this point, so we'll end after logging the callsigns we've heard
|
||||
if (!isAllCall && !toMe && !isGroupCall) {
|
||||
continue;
|
||||
@@ -10097,7 +10423,6 @@ void MainWindow::processCommandActivity() {
|
||||
continue;
|
||||
}
|
||||
|
||||
// display the command activity
|
||||
ActivityDetail ad = {};
|
||||
ad.isLowConfidence = false;
|
||||
ad.isFree = true;
|
||||
@@ -10105,23 +10430,7 @@ void MainWindow::processCommandActivity() {
|
||||
ad.bits = d.bits;
|
||||
ad.freq = d.freq;
|
||||
ad.snr = d.snr;
|
||||
|
||||
QStringList text;
|
||||
text.append(QString("%1: %2%3").arg(d.from).arg(d.to).arg(d.cmd));
|
||||
|
||||
if(!d.extra.isEmpty()){
|
||||
text.append(d.extra);
|
||||
}
|
||||
if(!d.text.isEmpty()){
|
||||
text.append(d.text);
|
||||
}
|
||||
ad.text = text.join(" ");
|
||||
|
||||
bool isLast = (ad.bits & Varicode::JS8CallLast) == Varicode::JS8CallLast;
|
||||
if (isLast) {
|
||||
// can also use \u0004 \u2666 \u2404
|
||||
ad.text = QString("%1 \u2301 ").arg(Varicode::rstrip(ad.text));
|
||||
}
|
||||
ad.text = text;
|
||||
ad.utcTimestamp = d.utcTimestamp;
|
||||
|
||||
// we'd be double printing here if were on frequency, so let's be "smart" about this...
|
||||
@@ -11173,8 +11482,8 @@ void MainWindow::displayBandActivity() {
|
||||
}
|
||||
|
||||
if ((item.bits & Varicode::JS8CallLast) == Varicode::JS8CallLast) {
|
||||
// can also use \u0004 \u2666 \u2404
|
||||
item.text = QString("%1 \u2301 ").arg(Varicode::rstrip(item.text));
|
||||
// append the eot character to the text
|
||||
item.text = QString("%1 %2 ").arg(Varicode::rstrip(item.text)).arg(m_config.eot());
|
||||
}
|
||||
text.append(item.text);
|
||||
snr = item.snr;
|
||||
@@ -11214,7 +11523,7 @@ void MainWindow::displayBandActivity() {
|
||||
int colWidth = ui->tableWidgetRXAll->columnWidth(3);
|
||||
auto textItem = new QTableWidgetItem(joined);
|
||||
auto html = QString("<qt/>%1").arg(joined.toHtmlEscaped());
|
||||
html = html.replace("\u2301", "\u2301<br/><br/>");
|
||||
html = html.replace(m_config.eot(), m_config.eot() + "<br/><br/>");
|
||||
html = html.replace(QRegularExpression("([<]br[/][>])+$"), "");
|
||||
textItem->setToolTip(html);
|
||||
|
||||
@@ -11502,12 +11811,19 @@ void MainWindow::displayCallActivity() {
|
||||
workedBeforeItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
|
||||
ui->tableWidgetCalls->setItem(row, col++, workedBeforeItem);
|
||||
|
||||
QString logDetailGrid;
|
||||
QString logDetailDate;
|
||||
QString logDetailName;
|
||||
QString logDetailComment;
|
||||
|
||||
if(showColumn("call", "log") || showColumn("call", "logName") || showColumn("call", "logComment")){
|
||||
m_logBook.findCallDetails(d.call, logDetailDate, logDetailName, logDetailComment);
|
||||
if(showColumn("call", "grid") || showColumn("call", "log") || showColumn("call", "logName") || showColumn("call", "logComment")){
|
||||
m_logBook.findCallDetails(d.call, logDetailGrid, logDetailDate, logDetailName, logDetailComment);
|
||||
}
|
||||
|
||||
if(gridItem->text().isEmpty() || !logDetailGrid.isEmpty()){
|
||||
gridItem->setText(logDetailGrid.trimmed().left(4));
|
||||
gridItem->setToolTip(logDetailGrid.trimmed());
|
||||
distanceItem->setText(calculateDistance(logDetailGrid.trimmed()));
|
||||
}
|
||||
|
||||
if(!logDetailDate.isEmpty()){
|
||||
@@ -11620,6 +11936,8 @@ void MainWindow::postWSPRDecode (bool is_new, QStringList parts)
|
||||
}
|
||||
|
||||
void MainWindow::emitPTT(bool on){
|
||||
qDebug() << "PTT:" << on;
|
||||
|
||||
Q_EMIT m_config.transceiver_ptt(on);
|
||||
|
||||
// emit to network
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "qpriorityqueue.h"
|
||||
#include "varicode.h"
|
||||
#include "MessageClient.hpp"
|
||||
#include "TCPClient.h"
|
||||
#include "SpotClient.h"
|
||||
#include "APRSISClient.h"
|
||||
#include "keyeater.h"
|
||||
@@ -181,6 +182,9 @@ private slots:
|
||||
void on_actionEnable_Spotting_toggled(bool checked);
|
||||
void on_actionEnable_Auto_Reply_toggled(bool checked);
|
||||
void on_menuWindow_aboutToShow();
|
||||
void on_actionFocus_Message_Reply_Area_triggered();
|
||||
void on_actionFocus_Band_Activity_Table_triggered();
|
||||
void on_actionFocus_Call_Activity_Table_triggered();
|
||||
void on_actionSetOffset_triggered();
|
||||
void on_actionShow_Fullscreen_triggered(bool checked);
|
||||
void on_actionShow_Statusbar_triggered(bool checked);
|
||||
@@ -322,6 +326,7 @@ private slots:
|
||||
void on_tableWidgetCalls_cellDoubleClicked(int row, int col);
|
||||
void on_tableWidgetCalls_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
void on_freeTextMsg_currentTextChanged (QString const&);
|
||||
void on_textEditRX_mouseDoubleClicked();
|
||||
void on_nextFreeTextMsg_currentTextChanged (QString const&);
|
||||
void on_extFreeTextMsgEdit_currentTextChanged (QString const&);
|
||||
int currentFreqOffset();
|
||||
@@ -347,7 +352,7 @@ private slots:
|
||||
, QString const& rpt_sent, QString const& rpt_received
|
||||
, QString const& comments
|
||||
, QString const& name, QDateTime const& QSO_date_on, QString const& operator_call
|
||||
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF);
|
||||
, QString const& my_call, QString const& my_grid, QByteArray const& ADIF, const QMap<QString, QVariant> &additionalFields);
|
||||
void on_bandComboBox_currentIndexChanged (int index);
|
||||
void on_bandComboBox_activated (int index);
|
||||
void on_readFreq_clicked();
|
||||
@@ -446,6 +451,7 @@ private:
|
||||
private:
|
||||
void astroUpdate ();
|
||||
void writeAllTxt(QString message, int bits);
|
||||
void writeMsgTxt(QString message, int snr);
|
||||
void hideMenus(bool b);
|
||||
|
||||
NetworkAccessManager m_network_manager;
|
||||
@@ -456,6 +462,7 @@ private:
|
||||
MultiSettings * m_multi_settings;
|
||||
QPushButton * m_configurations_button;
|
||||
QSettings * m_settings;
|
||||
bool m_settings_read;
|
||||
QScopedPointer<Ui::MainWindow> ui;
|
||||
|
||||
// other windows
|
||||
@@ -899,6 +906,7 @@ private:
|
||||
int m_firstDecode;
|
||||
QProgressDialog m_optimizingProgress;
|
||||
MessageClient * m_messageClient;
|
||||
TCPClient * m_n3fjpClient;
|
||||
PSK_Reporter *psk_Reporter;
|
||||
SpotClient *m_spotClient;
|
||||
APRSISClient * m_aprsClient;
|
||||
@@ -933,6 +941,7 @@ private:
|
||||
void pskLogReport(QString mode, int offset, int snr, QString callsign, QString grid);
|
||||
void aprsLogReport(int offset, int snr, QString callsign, QString grid);
|
||||
Radio::Frequency dialFrequency();
|
||||
void updateCurrentBand();
|
||||
void displayDialFrequency ();
|
||||
void transmitDisplay (bool);
|
||||
void locationChange(QString const& location);
|
||||
|
||||
@@ -1988,6 +1988,9 @@ background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #2ecc71, stop:1 #00FF
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Avg Time Delta: 0 ms</string>
|
||||
</property>
|
||||
@@ -4613,7 +4616,7 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>994</width>
|
||||
<height>25</height>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
@@ -4775,8 +4778,17 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="title">
|
||||
<string>C&ontrol</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFocus">
|
||||
<property name="title">
|
||||
<string>Set Focus...</string>
|
||||
</property>
|
||||
<addaction name="actionFocus_Message_Reply_Area"/>
|
||||
<addaction name="actionFocus_Band_Activity_Table"/>
|
||||
<addaction name="actionFocus_Call_Activity_Table"/>
|
||||
</widget>
|
||||
<addaction name="actionSetFrequency"/>
|
||||
<addaction name="actionSetOffset"/>
|
||||
<addaction name="menuFocus"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionEnable_Spotting"/>
|
||||
<addaction name="actionEnable_Auto_Reply"/>
|
||||
@@ -5683,6 +5695,30 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<string>Check for Updates</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFocus_Message_Reply_Area">
|
||||
<property name="text">
|
||||
<string>Message Reply Area</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Alt+M</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFocus_Band_Activity_Table">
|
||||
<property name="text">
|
||||
<string>Band Activity Table</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Alt+B</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFocus_Call_Activity_Table">
|
||||
<property name="text">
|
||||
<string>Call Activity Table</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Alt+A</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
|
||||
</property>
|
||||
<property name="autoScroll">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
@@ -161,10 +161,10 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QTextEdit { background-color:#ffeaa7; }</string>
|
||||
<string notr="true">QTextEdit { /*background-color:#ffeaa7*/; }</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="replytextEdit">
|
||||
|
||||
@@ -33,7 +33,7 @@ QString version (bool include_patch)
|
||||
|
||||
QString program_title (QString const& revision)
|
||||
{
|
||||
QString id {"%1 DE KN4CRD (v%2)"};
|
||||
QString id {"%1 de KN4CRD (v%2)"};
|
||||
id = id.arg(QCoreApplication::applicationName());
|
||||
id = id.arg(QCoreApplication::applicationVersion ());
|
||||
return id;
|
||||
|
||||
@@ -140,7 +140,7 @@ QRegularExpression directed_re("^" +
|
||||
optional_cmd_pattern +
|
||||
optional_num_pattern);
|
||||
|
||||
QRegularExpression heartbeat_re(R"(^\s*(?<type>CQCQCQ|CQ QRP|CQ FIELD|CQ DX|CQ CONTEST|CQ( CQ){0,2}|HB( AUTO)?( RELAY)?( SPOT)?)(?:\s(?<grid>[A-R]{2}[0-9]{2}))?\b)");
|
||||
QRegularExpression heartbeat_re(R"(^\s*(?<type>CQ CQ CQ|CQ DX|CQ QRP|CQ CONTEST|CQ FIELD|CQ FD|CQ CQ|CQ|HB( AUTO)?( RELAY)?( SPOT)?)(?:\s(?<grid>[A-R]{2}[0-9]{2}))?\b)");
|
||||
|
||||
QRegularExpression compound_re("^\\s*[`]" +
|
||||
callsign_pattern +
|
||||
@@ -245,14 +245,14 @@ QMap<QString, quint32> basecalls = {
|
||||
};
|
||||
|
||||
QMap<quint32, QString> cqs = {
|
||||
{ 0, "CQCQCQ" },
|
||||
{ 0, "CQ CQ CQ" },
|
||||
{ 1, "CQ DX" },
|
||||
{ 2, "CQ QRP" },
|
||||
{ 3, "CQ CONTEST" },
|
||||
{ 4, "CQ FIELD" },
|
||||
{ 5, "CQ"},
|
||||
{ 5, "CQ FD"},
|
||||
{ 6, "CQ CQ"},
|
||||
{ 7, "CQ CQ CQ"},
|
||||
{ 7, "CQ"},
|
||||
};
|
||||
|
||||
QMap<quint32, QString> hbs = {
|
||||
@@ -1733,19 +1733,23 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
|
||||
QString const& mycall,
|
||||
QString const& mygrid,
|
||||
QString const& selectedCall,
|
||||
QString const& text
|
||||
QString const& text,
|
||||
bool forceIdentify
|
||||
){
|
||||
#define ALLOW_SEND_COMPOUND 1
|
||||
#define ALLOW_SEND_COMPOUND_DIRECTED 1
|
||||
#define AUTO_PREPEND_DIRECTED 1
|
||||
#define AUTO_REMOVE_MYCALL 1
|
||||
#define AUTO_PREPEND_DIRECTED_ALLOW_TEXT_CALLSIGNS 1
|
||||
#define ALLOW_FORCE_IDENTIFY 1
|
||||
|
||||
bool mycallCompound = Varicode::isCompoundCallsign(mycall);
|
||||
|
||||
QList<QPair<QString, int>> frames;
|
||||
QList<QPair<QString, int>> allFrames;
|
||||
|
||||
foreach(QString line, text.split(QRegExp("[\\r\\n]"), QString::SkipEmptyParts)){
|
||||
QList<QPair<QString, int>> lineFrames;
|
||||
|
||||
// once we find a directed call, data encode the rest of the line.
|
||||
bool hasDirected = false;
|
||||
|
||||
@@ -1824,6 +1828,13 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
|
||||
qDebug() << "directed message to field is compound" << dirTo;
|
||||
}
|
||||
|
||||
#if ALLOW_FORCE_IDENTIFY
|
||||
// if we're sending a data message, then ensure our callsign is included automatically
|
||||
bool isLikelyDataFrame = lineFrames.isEmpty() && selectedCall.isEmpty() && dirTo.isEmpty() && l == 0 && o == 0;
|
||||
if(forceIdentify && isLikelyDataFrame && !line.contains(mycall)){
|
||||
line = QString("%1: %2").arg(mycall).arg(line);
|
||||
}
|
||||
#endif
|
||||
int m = 0;
|
||||
QString datFrame = Varicode::packDataMessage(line, &m);
|
||||
|
||||
@@ -1857,13 +1868,13 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
|
||||
}
|
||||
|
||||
if(useBcn){
|
||||
frames.append({ frame, Varicode::JS8Call });
|
||||
lineFrames.append({ frame, Varicode::JS8Call });
|
||||
line = line.mid(l);
|
||||
}
|
||||
|
||||
#if ALLOW_SEND_COMPOUND
|
||||
if(useCmp){
|
||||
frames.append({ frame, Varicode::JS8Call });
|
||||
lineFrames.append({ frame, Varicode::JS8Call });
|
||||
line = line.mid(o);
|
||||
}
|
||||
#endif
|
||||
@@ -1897,14 +1908,14 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
|
||||
QString deCompoundMessage = QString("`%1 %2").arg(mycall).arg(mygrid);
|
||||
QString deCompoundFrame = Varicode::packCompoundMessage(deCompoundMessage, nullptr);
|
||||
if(!deCompoundFrame.isEmpty()){
|
||||
frames.append({ deCompoundFrame, Varicode::JS8Call });
|
||||
lineFrames.append({ deCompoundFrame, Varicode::JS8Call });
|
||||
}
|
||||
|
||||
// Followed, by a standard OR compound directed message...
|
||||
QString dirCompoundMessage = QString("`%1%2%3").arg(dirTo).arg(dirCmd).arg(dirNum);
|
||||
QString dirCompoundFrame = Varicode::packCompoundMessage(dirCompoundMessage, nullptr);
|
||||
if(!dirCompoundFrame.isEmpty()){
|
||||
frames.append({ dirCompoundFrame, Varicode::JS8Call });
|
||||
lineFrames.append({ dirCompoundFrame, Varicode::JS8Call });
|
||||
}
|
||||
shouldUseStandardFrame = false;
|
||||
}
|
||||
@@ -1912,7 +1923,7 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
|
||||
|
||||
if(shouldUseStandardFrame) {
|
||||
// otherwise, just send the standard directed frame
|
||||
frames.append({ frame, Varicode::JS8Call });
|
||||
lineFrames.append({ frame, Varicode::JS8Call });
|
||||
}
|
||||
|
||||
line = line.mid(n);
|
||||
@@ -1940,30 +1951,34 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
|
||||
}
|
||||
|
||||
if(useDat){
|
||||
frames.append({ frame, Varicode::JS8Call });
|
||||
lineFrames.append({ frame, Varicode::JS8Call });
|
||||
line = line.mid(m);
|
||||
}
|
||||
}
|
||||
|
||||
if(!lineFrames.isEmpty()){
|
||||
lineFrames.first().second |= Varicode::JS8CallFirst;
|
||||
lineFrames.last().second |= Varicode::JS8CallLast;
|
||||
}
|
||||
|
||||
allFrames.append(lineFrames);
|
||||
}
|
||||
|
||||
if(!frames.isEmpty()){
|
||||
frames.first().second |= Varicode::JS8CallFirst;
|
||||
frames.last().second |= Varicode::JS8CallLast;
|
||||
}
|
||||
|
||||
return frames;
|
||||
return allFrames;
|
||||
}
|
||||
|
||||
BuildMessageFramesThread::BuildMessageFramesThread(
|
||||
const QString &mycall,
|
||||
BuildMessageFramesThread::BuildMessageFramesThread(const QString &mycall,
|
||||
const QString &mygrid,
|
||||
const QString &selectedCall,
|
||||
const QString &text, QObject *parent):
|
||||
const QString &text,
|
||||
bool forceIdentify,
|
||||
QObject *parent):
|
||||
QThread(parent),
|
||||
m_mycall{mycall},
|
||||
m_mygrid{mygrid},
|
||||
m_selectedCall{selectedCall},
|
||||
m_text{text}
|
||||
m_text{text},
|
||||
m_forceIdentify{forceIdentify}
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1972,7 +1987,8 @@ void BuildMessageFramesThread::run(){
|
||||
m_mycall,
|
||||
m_mygrid,
|
||||
m_selectedCall,
|
||||
m_text
|
||||
m_text,
|
||||
m_forceIdentify
|
||||
);
|
||||
|
||||
// TODO: jsherer - we wouldn't normally use decodedtext.h here... but it's useful for computing the actual frames transmitted.
|
||||
|
||||
@@ -156,12 +156,11 @@ public:
|
||||
static QString packDataMessage(QString const& text, int *n);
|
||||
static QString unpackDataMessage(QString const& text);
|
||||
|
||||
static QList<QPair<QString, int>> buildMessageFrames(
|
||||
QString const& mycall,
|
||||
static QList<QPair<QString, int>> buildMessageFrames(QString const& mycall,
|
||||
QString const& mygrid,
|
||||
QString const& selectedCall,
|
||||
QString const& text
|
||||
);
|
||||
QString const& text,
|
||||
bool forceIdentify);
|
||||
};
|
||||
|
||||
|
||||
@@ -173,6 +172,7 @@ public:
|
||||
QString const& mygrid,
|
||||
QString const& selectedCall,
|
||||
QString const& text,
|
||||
bool forceIdentify,
|
||||
QObject *parent=nullptr);
|
||||
void run() override;
|
||||
signals:
|
||||
@@ -183,6 +183,7 @@ private:
|
||||
QString m_mygrid;
|
||||
QString m_selectedCall;
|
||||
QString m_text;
|
||||
bool m_forceIdentify;
|
||||
};
|
||||
|
||||
#endif // VARICODE_H
|
||||
|
||||
@@ -209,6 +209,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbRef">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Compute and save a reference spectrum. (Not yet fully implemented.)</p></body></html></string>
|
||||
</property>
|
||||
|
||||