[
  {
    "path": ".gitignore",
    "content": "**/._*\n**/.DS_Store\n*.txt\n*.log\nHERE*\nhere.zip\naas/**\ncfg/**\ncfg/config.json\ncfg/stationLogos.json\nmap/**\nlinux_binary\nmacOS_binary\n\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "MSYS2/.gitignore",
    "content": "\n"
  },
  {
    "path": "MSYS2/nrsc5-dui-msys2.py",
    "content": "#!/usr/bin/env python3\n#!/usr/bin/python3\n# -*- coding: utf-8 -*-\n\n#    NRSC5 DUI - A graphical interface for nrsc5\n#    Copyright (C) 2017-2019  Cody Nybo & Clayton Smith, 2019 zefie, 2021-26 Mark J. Fine\n#\n#    This program is free software: you can redistribute it and/or modify\n#    it under the terms of the GNU General Public License as published by\n#    the Free Software Foundation, either version 3 of the License, or\n#    (at your option) any later version.\n#\n#    This program is distributed in the hope that it will be useful,\n#    but WITHOUT ANY WARRANTY; without even the implied warranty of\n#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n#    GNU General Public License for more details.\n#\n#    You should have received a copy of the GNU General Public License\n#    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#    Updated by zefie for modern nrsc5 ~ 2019\n#    Updated and enhanced by markjfine ~ 2021-26\n#    Stability and MSYS2 enhancements by ferrellsl ~ 2026\n\nimport os, select, sys, shutil, re, json, datetime, numpy, glob, time, platform, io\nfrom subprocess import Popen, PIPE\nfrom threading import Timer, Thread\nfrom dateutil import tz\nfrom PIL import Image, ImageFont, ImageDraw, __version__\nimport gc\n\nprint('Using Pillow v'+__version__)\n\nif (int(__version__[0]) < 9):\n    imgLANCZOS = Image.LANCZOS\nelse:\n    imgLANCZOS = Image.Resampling.LANCZOS\n\nimport gi\ngi.require_version(\"Gtk\", \"3.0\")\nfrom gi.repository import Gtk, GObject, Gdk, GdkPixbuf, GLib\n\nimport urllib3\nfrom OpenSSL import SSL\n\nimport musicbrainzngs\n\n# print debug messages to stdout (if debugger is attached)\ndebugMessages = (sys.gettrace() != None)\ndebugAutoStart = True\n\nif hasattr(sys, 'frozen'):\n    runtimeDir = os.path.dirname(sys.executable)  # for py2exe\nelse:\n    runtimeDir = sys.path[0]\n\nif \"NRSC5DUI_DATA\" in os.environ:\n    userDataDir = os.environ[\"NRSC5DUI_DATA\"]\n    os.makedirs(userDataDir, exist_ok=True)\nelse:\n    userDataDir = runtimeDir\n\naasDir = os.path.join(userDataDir, \"aas\")  # aas (data from nrsc5) file directory\nmapDir = os.path.join(userDataDir, \"map\")  # map (data we process) file directory\nresDir = os.path.join(runtimeDir, \"res\")   # resource (application dependencies) file directory\ncfgDir = os.path.join(userDataDir, \"cfg\")  # config file directory\n\nclass NRSC5_DUI(object):\n    def __init__(self):\n        global runtimeDir, userDataDir, resDir, imgLANCZOS\n\n        self.windowsOS = False          # save our determination as a var in case we change how we determine.\n\n        self.debugLog(\"Local path determined as \" + runtimeDir)\n        self.debugLog(\"User data base directory: \" + userDataDir)\n\n        # Detect MSYS2 environment\n        is_msys2 = os.environ.get('MSYSTEM') is not None or 'msys' in sys.platform.lower()\n        \n        if (platform.system() == 'Windows' and not is_msys2):\n            # Native Windows release layout\n            self.windowsOS = True\n            self.binDir = os.path.join(runtimeDir, \"bin\")  # windows binaries directory\n            self.nrsc5Path = os.path.join(self.binDir,'nrsc5.exe')\n        else:\n            # Linux/Mac/MSYS2/proper posix\n            # if nrsc5 is not in the system path, set the full path here\n            arg1 = \"\"\n            if (len(sys.argv[1:]) > 0):\n                arg1 = sys.argv[1].strip()\n            \n            # For MSYS2, try to find nrsc5 in PATH\n            if is_msys2:\n                import shutil as sh\n                nrsc5_in_path = sh.which('nrsc5')\n                if nrsc5_in_path:\n                    self.nrsc5Path = nrsc5_in_path\n                    self.debugLog(f\"Found nrsc5 in PATH: {nrsc5_in_path}\")\n                else:\n                    self.nrsc5Path = arg1 + \"nrsc5\"\n            else:\n                self.nrsc5Path = arg1 + \"nrsc5\"\n \n        self.debugLog(\"OS Determination: Windows = {}, MSYS2 = {}\".format(self.windowsOS, is_msys2))\n        self.debugLog(\"nrsc5 path: {}\".format(self.nrsc5Path))\n\n        self.app_name       = \"NRSC5-DUI\"\n        self.version        = \"2.2.6\"\n        self.web_addr       = \"https://github.com/markjfine/nrsc5-dui\"\n        self.copyright      = \"Copyright © 2017-2019 Cody Nybo & Clayton Smith, 2019 zefie, 2021-26 Mark J. Fine\"\n        musicbrainzngs.set_useragent(self.app_name,self.version,self.web_addr)\n\n        self.width          = 0         # window width\n        self.height         = 0         # window height\n        self.mapFile        = os.path.join(resDir, \"map.png\")\n        self.defaultSize    = [490,250] # default width,height of main app\n        self.nrsc5          = None      # nrsc5 process\n        self.nrsc5master    = None      # required for pipe\n        self.nrsc5slave     = None      # required for pipe\n        self.playerThread   = None      # player thread\n        self.playing        = False     # currently playing\n        self.statusTimer    = None      # status update timer\n        self.imageChanged   = False     # has the album art changed\n        self.xhdrChanged    = False     # has the HDDR data changed\n        self.nrsc5Args      = []        # arguments for nrsc5\n        self.logFile        = None      # nrsc5 log file\n        self.lastImage      = \"\"        # last image file displayed\n        self.coverImage     = \"\"        # cover image to display\n        self.id3Changed     = False     # if the track info changed\n        self.lastXHDR       = \"\"        # the last XHDR data received\n        self.lastLOT        = \"\"        # the last LOT received with XHDR\n        self.stationStr     = \"\"        # current station frequency (string)\n        self.streamNum      = 0         # current station stream number\n        self.nrsc5msg       = \"\"        # send key command to nrsc5 (streamNum)\n        self.update_btns    = True      # whether to update the stream buttons\n        self.bookmarks      = []        # station bookmarks\n        self.booknames      = [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] # station bookmark names\n        self.stationLogos   = {}        # station logos\n        self.coverMetas     = {}        # cover metadata\n        self.bookmarked     = False     # is current station bookmarked\n        self.mapViewer      = None      # map viewer window\n        self.weatherMaps    = []        # list of current weathermaps sorted by time\n        self.waittime       = 10        # time in seconds to wait for file to exist\n        self.waitdivider    = 4         # check this many times per second for file\n        self.pixbuf         = None      # store image buffer for rescaling on resize\n        self.tLat1          = 0.0       # store upper left lat of HERE traffic image\n        self.tLat2          = 0.0       # store lower right lat of HERE traffic image\n        self.mimeTypes      = {         # as defined by iHeartRadio anyway, defined here for possible future use\n            \"4F328CA0\":[\"image/png\",\"png\"],\n            \"1E653E9C\":[\"image/jpg\",\"jpg\"],\n            \"BB492AAC\":[\"text/plain\",\"txt\"]\n        }\n        self.mapData        = {\n            \"mapMode\"       : 1,\n            \"mapTiles\"      : [[0,0,0],[0,0,0],[0,0,0]],\n            \"mapComplete\"   : False,\n            \"weatherTime\"   : 0,\n            \"weatherPos\"    : [0,0,0,0],\n            \"weatherNow\"    : \"\",\n            \"weatherID\"     : \"\",\n            \"viewerConfig\"  : {\n                \"mode\"           : 1,\n                \"animate\"        : False,\n                \"scale\"          : True,\n                \"windowPos\"      : (0,0),\n                \"windowSize\"     : (764,632),\n                \"animationSpeed\" : 0.5\n            }\n        }\n        self.maxWeatherMaps = 50  # Limit weather map history to prevent unbounded growth\n\n        # Now initialize components in correct order\n        self.getControls()              # get controls and windows\n        self.set_program_btns()         # set the stream buttons (needs GUI widgets)\n        self.initStreamInfo()           # initilize stream info and clear status widgets\n        self.initializeData()           # initialize regex patterns and data structures\n        self.http = urllib3.PoolManager()\n        \n        # Now that GUI is set up, load settings and process maps\n        self.loadSettings()\n        self.proccessWeatherMaps()\n\n    def __del__(self):\n        \"\"\"Destructor to clean up resources and prevent memory leaks\"\"\"\n        try:\n            if hasattr(self, 'http') and self.http is not None:\n                self.http.clear()\n            if hasattr(self, 'statusTimer') and self.statusTimer is not None:\n                self.statusTimer.cancel()\n                self.statusTimer = None\n        except:\n            pass\n\n    def initializeData(self):\n        \"\"\"Initialize regex patterns and data structures\"\"\"\n        self.slPopup        = None      # entry for external station logo URL\n        self.slData = {\n        \"externalURL\"   : \"\"\n        }\n\n        self.ServiceDataType = {\n        0 : \"Non_Specific\",            \n        1 : \"News\",                     \n        3 : \"Sports\",                   \n        29 : \"Weather\",                  \n        31 : \"Emergency\",                \n        65 : \"Traffic\",                  \n        66 : \"Image Maps\",               \n        80 : \"Text\",                     \n        256 : \"Advertising\",              \n        257 : \"Financial\",                \n        258 : \"Stock Ticker\",             \n        259 : \"Navigation\",               \n        260 : \"Electronic Program Guide\", \n        261 : \"Audio\",                    \n        262 : \"Private Data Network\",     \n        263 : \"Service Maintenance\",      \n        264 : \"HD Radio System Services\", \n        265 : \"Audio-Related Objects\",       \n        511 : \"Reserved for Special Tests\"               \n        }\n\n        self.ProgramType = {\n        0 : \"None\",\n        1 : \"News\",\n        2 : \"Information\",\n        3 : \"Sports\",\n        4 : \"Talk\",\n        5 : \"Rock\",\n        6 : \"Classic Rock\",\n        7 : \"Adult Hits\",\n        8 : \"Soft Rock\",\n        9 : \"Top 40\",\n        10 : \"Country\",\n        11 : \"Oldies\",\n        12 : \"Soft\",\n        13 : \"Nostalgia\",\n        14 : \"Jazz\",\n        15 : \"Classical\",\n        16 : \"Rhythm and Blues\",\n        17 : \"Soft Rhythm and Blues\",\n        18 : \"Foreign Language\",\n        19 : \"Religious Music\",\n        20 : \"Religious Talk\",\n        21 : \"Personality\",\n        22 : \"Public\",\n        23 : \"College\",\n        24 : \"Spanish Talk\",\n        25 : \"Spanish Music\",\n        26 : \"Hip-Hop\",\n        29 : \"Weather\",\n        30 : \"Emergency Test\",\n        31 : \"Emergency\",\n        65 : \"Traffic\",\n        76 : \"Special Reading Services\"\n        }\n\n        self.MIMETypes = {\n        0x1E653E9C : \"JPEG\",\n        0x2D42AC3E : \"NavTeq\",\n        0x4F328CA0 : \"PNG\",\n        0x4DC66C5A : \"HDC\",\n        0x4EB03469 : \"TTN TPEG 2\",\n        0x52103469 : \"TTN TPEG 3\",\n        0x82F03DFC : \"HERE TPEG\",\n        0xB39EBEB2 : \"TTN TPEG 1\",\n        0xB7F03DFC : \"HERE Image\",\n        0xB81FFAA8 : \"Unknown Test\",\n        0xBB492AAC : \"Text\",\n        0xBE4B7536 : \"Primary Image\",\n        0xD9C72536 : \"Station Logo\",\n        0xEECB55B6 : \"HD TMC\",\n        0xEF042E96 : \"TTN STM Weather\",\n        0xFF8422D7 : \"TTN STM Traffic\"\n        }\n\n        self.pointer_cursor = Gdk.Cursor(Gdk.CursorType.LEFT_PTR)\n        #       self.hand_cursor = Gdk.Cursor(Gdk.CursorType.HAND2)\n\n        # set events on info labels\n        self.set_tuning_actions(self.btnAudioPrgs0, \"btn_prg0\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs1, \"btn_prg1\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs2, \"btn_prg2\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs3, \"btn_prg3\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs4, \"btn_prg4\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs5, \"btn_prg5\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs6, \"btn_prg6\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs7, \"btn_prg7\", False, False)\n\n        self.set_tuning_actions(self.lblAudioPrgs0, \"prg0\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs1, \"prg1\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs2, \"prg2\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs3, \"prg3\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs4, \"prg4\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs5, \"prg5\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs6, \"prg6\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs7, \"prg7\", True, True)\n\n        self.set_tuning_actions(self.lblAudioSvcs0, \"svc0\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs1, \"svc1\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs2, \"svc2\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs3, \"svc3\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs4, \"svc4\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs5, \"svc5\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs6, \"svc6\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs7, \"svc7\", True, True)\n\n        # setup bookmarks listview\n        nameRenderer = Gtk.CellRendererText()\n        nameRenderer.set_property(\"editable\", True)\n        nameRenderer.connect(\"edited\", self.on_bookmarkNameEdited)\n        \n        colStation = Gtk.TreeViewColumn(\"Station\", Gtk.CellRendererText(), text=0)\n        colName    = Gtk.TreeViewColumn(\"Name\", nameRenderer, text=1)\n\n        colStation.set_resizable(True)\n        colStation.set_sort_column_id(2)\n        colName.set_resizable(True)\n        colName.set_sort_column_id(1)\n        \n        self.lvBookmarks.append_column(colStation)\n        self.lvBookmarks.append_column(colName)\n        \n        # regex for getting nrsc5 output\n        self.regex = [\n        re.compile(\"^[0-9:]{8,8} Station name: (.*)$\"),                                                    #  0 match station name\n        re.compile(\"^[0-9:]{8,8} Station location: (-?[0-9.]+), (-?[0-9.]+), ([0-9]+)m$\"),                 #  1 match station location\n        re.compile(\"^[0-9:]{8,8} Slogan: (.*)$\"),                                                          #  2 match station slogan\n        re.compile(\"^[0-9:]{8,8} Audio bit rate: (.*) kbps$\"),                                             #  3 match audio bit rate\n        re.compile(\"^[0-9:]{8,8} Title: (.*)$\"),                                                           #  4 match title\n        re.compile(\"^[0-9:]{8,8} Artist: (.*)$\"),                                                          #  5 match artist\n        re.compile(\"^[0-9:]{8,8} Album: (.*)$\"),                                                           #  6 match album\n        re.compile(\"^[0-9:]{8,8} LOT file: port=([0-9]+) lot=([0-9]+) name=(.*[.](?:jpg|jpeg|png|txt)) size=([0-9]+) mime=([a-zA-Z0-9_]+).*$\"), #  7 match file (album art, maps, weather info)\n        re.compile(\"^[0-9:]{8,8} MER: (-?[0-9]+[.][0-9]+) dB [(]lower[)], (-?[0-9]+[.][0-9]+) dB [(]upper[)]$\"), #  8 match MER\n        re.compile(\"^[0-9:]{8,8} BER: (0[.][0-9]+), avg: (0[.][0-9]+), min: (0[.][0-9]+), max: (0[.][0-9]+)$\"), #  9 match BER\n        re.compile(\"^[0-9:]{8,8} Best gain: (.*) dB,.*$\"),                                                 # 10 match gain\n        re.compile(\"^[0-9:]{8,8} SIG Service: type=(.*) number=(.*) name=(.*)$\"),                          # 11 match stream\n        re.compile(\"^[0-9:]{8,8} .*Data component:.* id=([0-9]+).* port=([0-9]+).* service_data_type=([0-9]+) .*$\"), # 12 match port (and data_service_type)\n        re.compile(\"^[0-9:]{8,8} XHDR: (.*) ([0-9A-Fa-f]{8}) (.*)$\"),                                      # 13 match xhdr tag\n        re.compile(\"^[0-9:]{8,8} Unique file identifier: PPC;07; ([a-zA-Z0-9_.]+).*$\"),                    # 14 match unique file id\n        re.compile(\"^[0-9:]{8,8} Genre: (.*)$\"),                                                           # 15 match genre\n        re.compile(\"^[0-9:]{8,8} Message: (.*)$\"),                                                         # 16 match message\n        re.compile(\"^[0-9:]{8,8} Alert: (.*)$\"),                                                           # 17 match alert\n        re.compile(\"^[0-9:]{8,8} .*Audio component:.* id=([0-9]+).* port=([0-9]+).* type=([0-9]+) .*$\"),   # 18 match port (and type)\n        re.compile(\"^[0-9:]{8,8} Synchronized$\"),                                                          # 19 synchronized\n        re.compile(\"^[0-9:]{8,8} Lost synchronization$\"),                                                  # 20 lost synch\n        re.compile(\"^[0-9:]{8,8} Lost device$\"),                                                           # 21 lost device\n        re.compile(\"^[0-9:]{8,8} Open device failed.$\"),                                                   # 22 No device\n        re.compile(\"^[0-9:]{8,8} HERE Image: type=([A-Z]{7,7}), seq=([0-9]+), n1=([0-9]+), n2=([0-9]+), time=(.*), lat1=(-?[0-9.]+), lon1=(-?[0-9.]+), lat2=(-?[0-9.]+), lon2=(-?[0-9.]+), name=(.*[.](?:jpg|jpeg|png)), size=([0-9]+)$\"), # 23 Navteq/HERE image info\n        re.compile(\"^[0-9:]{8,8} Packet data: port=([0-9]+).* mime=([a-zA-Z0-9_]+) size=([0-9]+)$\")        # 24 Navteq/HERE packet info\n        ]\n        \n        # Use PIPE for stdin (works on all platforms)\n        self.nrsc5master = None  # Not used with PIPE\n        self.nrsc5slave = PIPE   # Will use stdin PIPE\n\n\n    def set_tuning_actions(self, widget, name, has_win, set_curs):\n        widget.set_property(\"name\",name)\n        widget.set_sensitive(False)\n        if has_win:\n            widget.set_has_window(True)\n        widget.set_events(Gdk.EventMask.BUTTON_PRESS_MASK)\n        widget.connect(\"button-press-event\", self.on_program_select)\n        if set_curs:\n            widget.add_events(Gdk.EventMask.ENTER_NOTIFY_MASK)\n            widget.connect(\"enter-notify-event\", self.on_enter_set_cursor)\n\n    def on_enter_set_cursor(self, widget, event):\n        if (widget.get_label() != \"\"):\n            widget.get_window().set_cursor(self.default)\n\n    def on_cbCovers_clicked(self, btn):\n        dlCoversSet = self.cbCovers.get_active()\n        self.lblCoverIncl.set_sensitive(dlCoversSet)\n        self.cbCoverIncl.set_sensitive(dlCoversSet)\n        self.lblExtend.set_sensitive(dlCoversSet)\n        self.cbExtend.set_sensitive(dlCoversSet)\n\n    def restart_program(self):\n        python = sys.executable\n        os.execl(python, python, *sys.argv)\n\n    def confirm_dialog(self, title, message):\n        dialog = Gtk.MessageDialog(parent=self.mainWindow, flags=0, message_type=Gtk.MessageType.WARNING, buttons=Gtk.ButtonsType.YES_NO, text=title)\n        dialog.format_secondary_text(message)\n        dialog.set_default_response(Gtk.ResponseType.YES)\n        response = dialog.run()\n        dialog.destroy()\n        return (response == Gtk.ResponseType.YES)\n\n    def on_cbxAspect_changed(self, btn):\n        screenAspect = self.cbxAspect.get_active_text()\n        if (screenAspect == \"narrow\") or (screenAspect == \"wide\"):\n            mainFile = os.path.join(resDir, \"mainForm.glade\")\n            gladeFile = os.path.join(resDir, \"mainForm-\"+screenAspect+\".glade\")\n            if (os.path.isfile(gladeFile)):\n                shutil.copy(gladeFile,mainFile)\n                title = \"Aspect Changed\"\n                message = \"You have change the display layout to \"+screenAspect+\". This change will not happen until the application is restarted. Would you like to restart it now?\"\n                if (self.confirm_dialog(title,message)):\n                    self.restart_program()\n                    \n    def on_cbxSDRRadio_changed(self, btn):\n        useSDRPlay = (self.cbxSDRRadio.get_active_text() == \"SDRPlay\")\n        self.lblSdrPlaySer.set_visible(useSDRPlay)\n        self.txtSDRPlaySer.set_visible(useSDRPlay)\n        self.txtSDRPlaySer.set_can_focus(useSDRPlay)\n        self.label14d.set_visible(useSDRPlay)\n        self.lblSDRPlayAnt.set_visible(useSDRPlay)\n        self.cbxSDRPlayAnt.set_visible(useSDRPlay)\n        self.cbxSDRPlayAnt.set_can_focus(useSDRPlay)\n        self.label14a.set_visible(useSDRPlay)\n        self.lblRTL.set_visible(not(useSDRPlay))\n        self.spinRTL.set_visible(not(useSDRPlay))\n        self.spinRTL.set_can_focus(not(useSDRPlay))\n        self.label14b.set_visible(useSDRPlay)\n        self.lblDevIP.set_visible(not(useSDRPlay))\n        self.txtDevIP.set_visible(not(useSDRPlay))\n        self.txtDevIP.set_can_focus(not(useSDRPlay))\n        self.cbDevIP.set_visible(not(useSDRPlay))\n        self.cbDevIP.set_can_focus(not(useSDRPlay))\n\n    def img_to_pixbuf(self,img):\n        \"\"\"convert PIL.Image to GdkPixbuf.Pixbuf\"\"\"\n        data = GLib.Bytes.new(img.tobytes())\n        return GdkPixbuf.Pixbuf.new_from_bytes(data, GdkPixbuf.Colorspace.RGB, 'A' in img.getbands(),8, img.width, img.height, len(img.getbands())*img.width)\n\n    def did_resize(self):\n        result = False\n        width, height = self.mainWindow.get_size()\n        if (self.width != width) or (self.height != height):\n            self.width = width\n            self.height = height\n            result = True\n        return result\n\n    def on_cover_resize(self, container):\n        global mapDir, imgLANCZOS\n        if (self.did_resize()):\n            self.showArtwork(self.coverImage)\n\n            img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12           \n            if (self.mapData[\"mapMode\"] == 0):\n                map_file = os.path.join(mapDir, \"TrafficMap.png\")\n                if os.path.isfile(map_file):\n                    with Image.open(map_file) as img:\n                        map_img = img.resize((img_size, img_size), imgLANCZOS)\n                    self.imgMap.set_from_pixbuf(self.img_to_pixbuf(map_img))\n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n            elif (self.mapData[\"mapMode\"] == 1):\n                if os.path.isfile(self.mapData[\"weatherNow\"]):\n                    with Image.open(self.mapData[\"weatherNow\"]) as img:\n                        map_img = img.resize((img_size, img_size), imgLANCZOS)\n                    self.imgMap.set_from_pixbuf(self.img_to_pixbuf(map_img))\n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n\n    def id3_did_change(self):\n        oldTitle = self.txtTitle.get_label().strip()\n        oldArtist = self.txtArtist.get_label().strip()\n        newTitle = self.streamInfo[\"Title\"].strip()\n        newArtist = self.streamInfo[\"Artist\"].strip()\n        return ((newArtist != oldArtist) and (newTitle != oldTitle))\n\n    def fix_artist(self):\n        newArtist = self.streamInfo[\"Artist\"]\n        if (\"/\" in newArtist):\n            m = re.search(r\"/\",newArtist)\n            if (m.start() > -1):\n                newArtist = newArtist[:m.start()].strip()\n        return newArtist\n\n    def check_value(self,arg,group,default):\n        result = default\n        if(arg in group):\n            result = group[arg]\n        return result\n\n    def check_terms(self,inStr,terms):\n        result = False\n        for term in terms:\n            result=(term in inStr)\n            if result:\n                break\n        return result\n  \n    def check_musicbrainz_cover(self,inID):\n        result = False\n        imageList = None\n\n        try:\n            imageList = musicbrainzngs.get_image_list(inID)\n        except:\n            print(\"MusicBrainz image list retrieval error for id \"+inID)\n\n        if (imageList is not None) and ('images' in imageList):\n            for (idx, image) in enumerate(imageList['images']):\n                imgTypes = self.check_value('types', image, None)\n                imgApproved = self.check_value('approved', image, \"False\")\n                result = ('Front' in imgTypes) and imgApproved\n                if (result):\n                    break\n        return result\n\n    def save_musicbrainz_cover(self,inID,saveStr):\n        imgData = None\n        result = False\n\n        try:\n            imgData = musicbrainzngs.get_image_front(inID, size=\"500\")\n        except:\n            print(\"MusicBrainz image retrieval error for id \"+inID)\n\n        if (imgData is not None) and (len(imgData) > 0):\n            dataBytes = io.BytesIO(imgData)\n            with Image.open(dataBytes) as img_temp:\n                imgCvr = img_temp.copy()  # Make a copy to persist after close\n            imgCvr.save(saveStr)\n            result = True\n        return result\n\n    def get_cover_image_online(self):\n        global aasDir\n        got_cover = False\n        albumExclude = ['hitzone','now that’s what i call music']\n\n        # only care about the first artist listed if separated by slashes\n        newArtist = self.fix_artist().replace(\"'\",\"’\")\n\n        setExtend = (self.cbExtend.get_sensitive() and self.cbExtend.get_active())\n        searchArtist = newArtist\n        newTitle = self.streamInfo[\"Title\"].replace(\"'\",\"’\")\n        baseStr = str(newArtist+\" - \"+self.streamInfo[\"Title\"]).replace(\" \",\"_\").replace(\"/\",\"_\").replace(\":\",\"_\")+\".jpg\"\n        saveStr = os.path.join(aasDir, baseStr)\n\n        if ((newArtist==\"\") and (newTitle==\"\")):\n            self.displayLogo()\n            self.streamInfo['Album']=\"\"\n            self.streamInfo['Genre']=\"\"\n            return\n\n        # does it already exist?\n        if (os.path.isfile(saveStr)):\n            self.coverImage = saveStr\n            if (baseStr in self.coverMetas):\n                self.streamInfo['Album'] = self.coverMetas[baseStr][2]\n                self.streamInfo['Genre'] = self.coverMetas[baseStr][3]\n\n        # if not, get it from MusicBrainz\n        else:\n            try:\n                imgSaved = False\n                i = 1\n\n                while (not imgSaved):\n                    setStrict = (i in [1,3,5,7])\n                    setType = ''\n                    if (i in [1,2,3,4]):\n                        setType = 'Album'\n                    setStatus = ''\n                    if (i in [1,2,5,6]):\n                        setStatus = 'Official'\n\n                    result = None\n    \n                    try:\n                        result = musicbrainzngs.search_recordings(strict=setStrict, artist=searchArtist, recording=newTitle, type=setType, status=setStatus)\n                    except:\n                        print(\"MusicBrainz recording search error\")\n                        print(\"iteration =\",i,\".\")\n                        print(\"imgSaved =\",imgSaved,\".\")\n                        print(\"strict =\",setStrict,\".\")\n                        print(\"artist =\",searchArtist,\".\")\n                        print(\"recording =\",newTitle,\".\")\n                        print(\"type =\",setType,\".\")\n                        print(\"status =\",setStatus,\".\")\n    \n                    if (result is not None) and ('recording-list' in result) and (len(result['recording-list']) != 0):    \n                        # loop through the list until you get a match\n                        for (idx, release) in enumerate(result['recording-list']):\n                            resultID = self.check_value('id',release,\"\")\n                            resultScore = self.check_value('ext:score',release,\"0\")\n                            resultArtist = self.check_value('artist-credit-phrase',release,\"\")\n                            resultTitle = self.check_value('title',release,\"\")\n                            resultGenre = self.check_value('name',self.check_value('tag-list',release,\"\"),\"\")\n                            scoreMatch = (int(resultScore) > 90)\n                            artistMatch = (newArtist.lower() in resultArtist.lower())\n                            titleMatch = (newTitle.lower() in resultTitle.lower())\n                            recordingMatch = (artistMatch and titleMatch and scoreMatch)\n    \n                            # don't bother dealing with releases if artist, title and score don't match\n                            resultStatus = \"\"\n                            resultType = \"\"\n                            resultAlbum = \"\"\n                            resultArtist2 = \"\"\n                            releaseMatch = False\n                            imageMatch = False\n                            if recordingMatch and ('release-list' in release):\n                                for (idx2, release2) in enumerate(release['release-list']):\n                                    imageMatch = False\n                                    resultID = self.check_value('id',release2,\"\")\n                                    resultStatus = self.check_value('status',release2,\"Official\")\n                                    resultType = self.check_value('type',self.check_value('release-group',release2,\"\"),\"\")\n                                    resultAlbum = self.check_value('title',release2,\"\")\n                                    resultArtist2 = self.check_value('artist-credit-phrase',release2,\"\")\n                                    typeMatch = (resultType in ['Single','Album','EP'])\n                                    statusMatch = (resultStatus == 'Official')\n                                    albumMatch = (not self.check_terms(resultAlbum, albumExclude))\n                                    artistMatch2 = (not ('Various' in resultArtist2))\n                                    releaseMatch = (artistMatch2 and albumMatch and typeMatch and statusMatch)\n                                    # don't bother checking for covers unless album, type, and status match\n                                    if releaseMatch:\n                                        imageMatch = self.check_musicbrainz_cover(resultID)\n                                    if (releaseMatch and imageMatch and ((idx2+1) < len(release['release-list']))):\n                                        break\n    \n                            if (recordingMatch and releaseMatch and imageMatch):\n     \n                                # got a full match, now get the cover art\n                                if self.save_musicbrainz_cover(resultID,saveStr):\n                                    self.coverImage = saveStr\n                                    imgSaved = True\n                                    self.streamInfo['Album']=resultAlbum\n                                    self.streamInfo['Genre']=resultGenre\n                                    self.coverMetas[baseStr] = [self.streamInfo[\"Title\"],self.streamInfo[\"Artist\"],self.streamInfo[\"Album\"],self.streamInfo[\"Genre\"]]\n\n                            if (imgSaved) and ((idx+1) < len(result['recording-list'])) or (not scoreMatch):\n                                break\n\n                    i = i + 1\n                    # if we got an image or Strict was false the first time through, there's no need to run through it again\n                    if (imgSaved) or (i == 9) or ((not setExtend) and (i == 2)):\n                        break\n\n                # If no match use the station logo if there is one\n                if (not imgSaved):\n                    self.coverImage = os.path.join(aasDir, self.stationLogos[self.stationStr][self.streamNum])\n                    self.streamInfo['Album']=\"\"\n                    self.streamInfo['Genre']=\"\"\n            except:\n                print(\"general error in the musicbrainz routine\")\n\n        # now display it by simulating a window resize\n        # Use GLib.idle_add because this might be called from a background thread\n        GLib.idle_add(self.showArtwork, self.coverImage)\n\n    def showArtwork(self, art):\n        if (art != \"\") and (art[-5:] != \"/aas/\"):\n            img_size = min(self.alignmentCover.get_allocated_height(), self.alignmentCover.get_allocated_width()) - 12\n            self.pixbuf = GdkPixbuf.Pixbuf.new_from_file(art)\n            self.pixbuf = self.pixbuf.scale_simple(img_size, img_size, GdkPixbuf.InterpType.BILINEAR)\n            self.imgCover.set_from_pixbuf(self.pixbuf)\n\n    def displayLogo(self):\n        global aasDir\n        if (self.stationStr in self.stationLogos):\n            # show station logo if it's cached\n            logo = os.path.join(aasDir, self.stationLogos[self.stationStr][self.streamNum])\n            if (os.path.isfile(logo)):\n                self.streamInfo[\"Logo\"] = self.stationLogos[self.stationStr][self.streamNum]\n                self.coverImage = logo\n                self.showArtwork(logo)\n        else:\n            # add entry in database for the station if it doesn't exist\n            self.stationLogos[self.stationStr] = [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"]\n\n    def service_data_type_name(self, type):\n        for key, value in self.ServiceDataType.items():\n            if (key == type):\n               return value\n\n    def program_type_name(self, type):\n        for key, value in self.ProgramType.items():\n            if (key == type):\n               return value\n\n    def handle_window_resize(self):\n        if (self.pixbuf != None):\n            desired_size = min(self.alignmentCover.get_allocated_height(), self.alignmentCover.get_allocated_width()) - 12\n            self.pixbuf = self.pixbuf.scale_simple(desired_size, desired_size, GdkPixbuf.InterpType.BILINEAR)\n            self.imgCover.set_from_pixbuf(self.pixbuf)\n\n    def on_window_resized(self,window):\n        self.handle_window_resize()\n\n    def on_btnPlay_clicked(self, btn):\n        global aasDir\n        # start playback\n        if (not self.playing):\n\n            self.nrsc5Args = [self.nrsc5Path]\n            \n            # update all of the spin buttons to prevent the text from sticking \n            self.spinFreq.update()\n            self.spinGain.update()\n            self.spinPPM.update()\n            self.spinRTL.update()\n            \n            useSDRPlay = (self.cbxSDRRadio.get_active_text() == \"SDRPlay\")\n            \n            # enable aas output if temp dir was created\n            if (aasDir is not None):\n                self.nrsc5Args.append(\"--dump-aas-files\")\n                self.nrsc5Args.append(aasDir)\n            \n            # set IP address if rtl_tcp is used\n            if (not(useSDRPlay)) and (self.cbDevIP.get_active()):\n                self.nrsc5Args.append(\"-H\")\n                self.nrsc5Args.append(self.txtDevIP.get_text())\n            \n            # set gain if auto gain is not selected\n            if (not self.cbAutoGain.get_active()):\n                self.streamInfo[\"Gain\"] = round(self.spinGain.get_value(),2)\n                self.nrsc5Args.append(\"-g\")\n                self.nrsc5Args.append(str(self.streamInfo[\"Gain\"]))\n            \n            # set ppm error if not zero\n            if (self.spinPPM.get_value() != 0):\n                self.nrsc5Args.append(\"-p\")\n                self.nrsc5Args.append(str(int(self.spinPPM.get_value())))\n            \n            # set rtl device number if not zero\n            if (not(useSDRPlay)) and (self.spinRTL.get_value() != 0):\n                self.nrsc5Args.append(\"-d\")\n                self.nrsc5Args.append(str(int(self.spinRTL.get_value())))\n\n            # set log level to 2 if SDRPLay enabled\n            if (useSDRPlay):\n                self.nrsc5Args.append(\"-l2\")\n            \n            # set SDRPlay serial number if not blank\n            if (useSDRPlay) and (self.txtSDRPlaySer.get_text() != \"\"):\n                self.nrsc5Args.append(\"-d\")\n                self.nrsc5Args.append(self.txtSDRPlaySer.get_text())\n            \n            # set SDRPlay antenna if not blank\n            if (useSDRPlay) and (self.cbxSDRPlayAnt.get_active_text() != \"\"):\n                if self.cbxSDRPlayAnt.get_active_text() != \"Auto\":\n                    self.nrsc5Args.append(\"-A\")\n                    self.nrsc5Args.append(\"Antenna \"+self.cbxSDRPlayAnt.get_active_text())\n            \n            # set frequency and stream\n            self.nrsc5Args.append(str(self.spinFreq.get_value()))\n            self.nrsc5Args.append(str(int(self.streamNum)))\n\n            # to emulate reading an IQ file use two lines below, instead of the above:\n            # (make sure to set the frequency spinner to the station's frequency before hitting play)\n            # FIXME - Create interface and option so these things don't have to be hardcoded\n            #self.nrsc5Args.append(\"-r\")\n            #self.nrsc5Args.append(\"/Users/mark/downloads/detroit-1043-HERE.cu8\")\n            #self.nrsc5Args.append(\"0\")\n            #self.spinFreq.set_value(104.3)\n\n            print(self.nrsc5Args)\n\n            # start the timer\n            self.statusTimer = Timer(1, self.checkStatus)\n            self.statusTimer.start()\n            \n            # disable the controls\n            self.spinFreq.set_sensitive(False)\n            self.cbxAspect.set_sensitive(False)\n            self.cbxSDRRadio.set_sensitive(False)\n            self.spinGain.set_sensitive(False)\n            self.spinPPM.set_sensitive(False)\n            self.spinRTL.set_sensitive(False)\n            self.txtDevIP.set_sensitive(False)\n            self.cbDevIP.set_sensitive(False)\n            self.txtSDRPlaySer.set_sensitive(False)\n            self.cbxSDRPlayAnt.set_sensitive(False)\n            self.btnPlay.set_sensitive(False)\n            self.btnStop.set_sensitive(True)\n            self.cbAutoGain.set_sensitive(False)\n            self.playing = True\n            self.lastXHDR = \"\"\n            self.lastLOT = \"\"\n\n            # start the player thread\n            self.playerThread = Thread(target=self.play)\n            self.playerThread.start()\n            \n            self.stationStr = str(self.spinFreq.get_value())\n            self.displayLogo()         \n\n            self.update_bookmark_buttons()\n    \n    def update_bookmark_buttons(self):\n        # check if station is bookmarked\n        self.bookmarked = False\n        freq = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n        for b in self.bookmarks:\n            if (b[2] == freq):\n                self.bookmarked = True\n                break\n\n        self.get_bookmark_names()\n\n        self.btnBookmark.set_sensitive(not self.bookmarked)\n        if (self.notebookMain.get_current_page() == 3):\n            self.btnDelete.set_sensitive(self.bookmarked)\n        else:\n            self.btnDelete.set_sensitive(False)\n            \n    def get_bookmark_names(self):\n        self.booknames = [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]\n        freq = str(int((self.spinFreq.get_value()+0.005)*10))\n        for b in self.bookmarks:\n            test = str(b[2])\n            if (test[:-1] == freq):\n                self.booknames[int(test[-1])-1] = b[1]\n\n    def on_btnStop_clicked(self, btn):\n        # stop playback\n        if (self.playing):\n            self.playing = False\n            \n            # shutdown nrsc5 \n            if (self.nrsc5 is not None):\n                try:\n                    # Check if process is still running before trying to terminate\n                    if self.nrsc5.poll() is None:\n                        self.nrsc5.terminate()\n                        # Give it a moment to terminate gracefully\n                        time.sleep(0.1)\n                        if self.nrsc5.poll() is None:\n                            # Still running, force kill\n                            self.nrsc5.kill()\n                except:\n                    pass  # Process may have already died\n            \n            if (self.playerThread is not None) and (btn is not None):\n                self.playerThread.join(1)\n            \n            # stop timer\n            self.statusTimer.cancel()\n            self.statusTimer = None\n            \n            # enable controls\n            if (not self.cbAutoGain.get_active()):\n                self.spinGain.set_sensitive(True)\n            self.spinFreq.set_sensitive(True)\n            self.cbxAspect.set_sensitive(True)\n            self.cbxSDRRadio.set_sensitive(True)\n            self.spinPPM.set_sensitive(True)\n            self.spinRTL.set_sensitive(True)\n            self.txtDevIP.set_sensitive(True)\n            self.cbDevIP.set_sensitive(True)\n            self.txtSDRPlaySer.set_sensitive(True)\n            self.cbxSDRPlayAnt.set_sensitive(True)\n            self.btnPlay.set_sensitive(True)\n            self.btnStop.set_sensitive(False)\n            self.btnBookmark.set_sensitive(False)\n            self.cbAutoGain.set_sensitive(True)\n            \n            # clear stream info\n            self.initStreamInfo()\n            \n            self.btnBookmark.set_sensitive(False)\n            if (self.notebookMain.get_current_page() != 3):\n                self.btnDelete.set_sensitive(False)\n\n    def on_btnBookmark_clicked(self, btn):         \n        # pack frequency and channel number into one int\n        freq = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n        \n        # create bookmark\n        bookmark = [\n            \"{:4.1f}-{:1.0f}\".format(self.spinFreq.get_value(), self.streamNum + 1),\n            self.streamInfo[\"Callsign\"],\n            freq\n        ]\n        self.bookmarked = True                  # mark as bookmarked\n        self.bookmarks.append(bookmark)         # store bookmark in array\n        self.lsBookmarks.append(bookmark)       # add bookmark to listview\n        self.btnBookmark.set_sensitive(False)   # disable bookmark button\n        \n        if (self.notebookMain.get_current_page() != 3):\n            self.btnDelete.set_sensitive(True)  # enable delete button\n\n        self.get_bookmark_names()\n\n    def on_btnDelete_clicked(self, btn):\n        # select current station if not on bookmarks page\n        if (self.notebookMain.get_current_page() != 3):\n            station = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n            for i in range(0, len(self.lsBookmarks)):\n                if (self.lsBookmarks[i][2] == station):            \n                    self.lvBookmarks.set_cursor(i)\n                    break\n        \n        # get station of selected row\n        (model, iter) = self.lvBookmarks.get_selection().get_selected()\n        station = model.get_value(iter, 2)\n        \n        # remove row\n        model.remove(iter)\n        \n        # remove bookmark\n        for i in range(0, len(self.bookmarks)):\n            if (self.bookmarks[i][2] == station):\n                self.bookmarks.pop(i)\n                break\n        \n        if (self.notebookMain.get_current_page() != 3 and self.playing):\n            self.btnBookmark.set_sensitive(True)\n            self.bookmarked = False\n\n        self.get_bookmark_names()\n\n    def on_btnAbout_activate(self, btn):\n        global resDir\n        # sets up and displays about dialog\n        if self.about_dialog:\n            self.about_dialog.present()\n            return\n\n        authors = [\n            \"Cody Nybo <cmnybo@gmail.com>\",\n            \"Clayton Smith <argilo@gmail.com>\",\n            \"zefie <zefie@zefie.net>\",\n            \"Mark J. Fine <mark.fine@fineware-swl.com>\",\n            \"Stephen Ferrell <sferrellblue@yahoo.com>\"\n        ]\n\n        license = \"\"\"\n        NRSC5 DUI - A second-generation graphical interface for nrsc5\n        Copyright (C) 2017-2019  Cody Nybo & Clayton Smith, 2019 zefie, 2021-26 Mark J. Fine\n        This program is free software: you can redistribute it and/or modify\n        it under the terms of the GNU General Public License as published by\n        the Free Software Foundation, either version 3 of the License, or\n        (at your option) any later version.\n        This program is distributed in the hope that it will be useful,\n        but WITHOUT ANY WARRANTY; without even the implied warranty of\n        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n        GNU General Public License for more details.\n        You should have received a copy of the GNU General Public License\n        along with this program.  If not, see <http://www.gnu.org/licenses/>.\"\"\"\n\n        about_dialog = Gtk.AboutDialog()\n        about_dialog.set_transient_for(self.mainWindow)\n        about_dialog.set_destroy_with_parent(True)\n        about_dialog.set_name(self.app_name)\n        about_dialog.set_program_name(self.app_name)\n        about_dialog.set_version(self.version)\n        about_dialog.set_copyright(self.copyright)\n        about_dialog.set_website(self.web_addr)\n        about_dialog.set_comments(\"A second-generation graphical interface for nrsc5.\")\n        about_dialog.set_authors(authors)\n        about_dialog.set_license(license)\n        about_dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"logo.png\")))\n\n        # callbacks for destroying the dialog\n        def close(dialog, response, editor):\n            editor.about_dialog = None\n            dialog.destroy()\n\n        def delete_event(dialog, event, editor):\n            editor.about_dialog = None\n            return True\n\n        about_dialog.connect(\"response\", close, self)\n        about_dialog.connect(\"delete-event\", delete_event, self)\n\n        self.about_dialog = about_dialog\n        about_dialog.show()\n\n    def on_stream_changed(self):\n        self.lastXHDR = \"\"\n        self.lastLOT = \"\"\n        self.streamInfo[\"Title\"] = \"\"\n        self.streamInfo[\"Album\"] = \"\"\n        self.streamInfo[\"Artist\"] = \"\"\n        self.streamInfo[\"Genre\"] = \"\"\n        self.streamInfo[\"Cover\"] = \"\"\n        self.streamInfo[\"Logo\"] = \"\"\n        self.streamInfo[\"Bitrate\"] = 0\n        self.set_program_btns()\n        if self.playing:\n            # Instead of sending to stdin (which doesn't work without PTY),\n            # restart nrsc5 with the new stream number\n            print(f\"[STREAM] Restarting nrsc5 on stream {self.streamNum}\")\n            self.restart_nrsc5_with_stream(self.streamNum)\n            self.displayLogo()\n        self.update_bookmark_buttons()\n    \n    def restart_nrsc5_with_stream(self, stream_num):\n        \"\"\"Restart nrsc5 with a different stream number (Windows-compatible)\"\"\"\n        if self.nrsc5 is not None:\n            try:\n                # Terminate the current nrsc5 process\n                self.nrsc5.terminate()\n                self.nrsc5.wait(timeout=2)\n            except:\n                # Force kill if it doesn't terminate\n                try:\n                    self.nrsc5.kill()\n                except:\n                    pass\n        \n        # Update the args with the new stream number\n        # The stream number is the last argument\n        self.nrsc5Args[-1] = str(int(stream_num))\n        print(f\"[STREAM] New args: {self.nrsc5Args}\")\n        \n        # Start nrsc5 again with the new stream\n        FNULL = open(os.devnull, 'w')\n        self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=PIPE, stdout=FNULL, stderr=PIPE, \n                          universal_newlines=False, bufsize=0)\n\n    def set_program_btns(self):\n        self.btnAudioPrgs0.set_active(self.update_btns and self.streamNum == 0)\n        self.btnAudioPrgs1.set_active(self.update_btns and self.streamNum == 1)\n        self.btnAudioPrgs2.set_active(self.update_btns and self.streamNum == 2)\n        self.btnAudioPrgs3.set_active(self.update_btns and self.streamNum == 3)\n        self.btnAudioPrgs4.set_active(self.update_btns and self.streamNum == 4)\n        self.btnAudioPrgs5.set_active(self.update_btns and self.streamNum == 5)\n        self.btnAudioPrgs6.set_active(self.update_btns and self.streamNum == 6)\n        self.btnAudioPrgs7.set_active(self.update_btns and self.streamNum == 7)\n        self.update_btns = True\n\n    def on_program_select(self, _label, evt):\n        stream_num = int(_label.get_property(\"name\")[-1])\n        is_lbl = _label.get_property(\"name\")[0] != \"b\"\n        self.update_btns = is_lbl\n        self.streamNum = stream_num\n        self.on_stream_changed()\n\n    def on_cbAutoGain_toggled(self, btn):\n        self.spinGain.set_sensitive(not btn.get_active())\n        self.lblGain.set_visible(btn.get_active())\n\n    def on_listviewBookmarks_row_activated(self, treeview, path, view_column):\n        if (len(path) != 0):\n            # get station from bookmark row\n            tree_iter = treeview.get_model().get_iter(path[0])\n            station   = treeview.get_model().get_value(tree_iter, 2)\n\n            # capture target freq/stream before doing anything else\n            target_freq   = float(int(station/10)/10.0)\n            target_stream = (station%10)-1\n\n            # Do the stop/switch/play in a background thread so the GTK main\n            # thread is never blocked by sleep() or join(), which would freeze the GUI.\n            def _switch():\n                # 1. Stop the current player cleanly (kill process, join thread)\n                if self.playing:\n                    self.playing = False\n                    if self.nrsc5 is not None:\n                        try:\n                            if self.nrsc5.poll() is None:\n                                self.nrsc5.terminate()\n                                time.sleep(0.2)\n                            if self.nrsc5.poll() is None:\n                                self.nrsc5.kill()\n                        except Exception:\n                            pass\n                    # Wait for the old player thread to fully exit before starting a new one\n                    if self.playerThread is not None:\n                        self.playerThread.join(3)\n\n                # 2. Update frequency/stream *after* the old process is dead\n                GLib.idle_add(self._apply_bookmark_and_play, target_freq, target_stream)\n\n            Thread(target=_switch, daemon=True).start()\n\n    def _apply_bookmark_and_play(self, freq, stream):\n        \"\"\"Called on the GTK main thread after the old player has been stopped.\"\"\"\n        self.spinFreq.set_value(freq)\n        self.streamNum = stream\n        # Update stream info display without triggering a nrsc5 restart (we are already stopped)\n        self.on_stream_changed_silent()\n        # Now start fresh playback\n        self.on_btnPlay_clicked(None)\n        return False  # remove idle callback\n\n    def on_stream_changed_silent(self):\n        \"\"\"Like on_stream_changed but skips the nrsc5 restart (used when already stopped).\"\"\"\n        self.streamInfo[\"Title\"]   = \"\"\n        self.streamInfo[\"Album\"]   = \"\"\n        self.streamInfo[\"Artist\"]  = \"\"\n        self.streamInfo[\"Genre\"]   = \"\"\n        self.streamInfo[\"Cover\"]   = \"\"\n        self.streamInfo[\"Logo\"]    = \"\"\n        self.streamInfo[\"Bitrate\"] = 0\n        self.set_program_btns()\n        self.displayLogo()\n        self.update_bookmark_buttons()\n\n    def on_lvBookmarks_selection_changed(self, tree_selection):\n        # enable delete button if bookmark is selected\n        (model, pathlist) = self.lvBookmarks.get_selection().get_selected_rows()\n        self.btnDelete.set_sensitive(len(pathlist) != 0)\n\n    def on_bookmarkNameEdited(self, cell, path, text, data=None):\n        # update name in listview\n        iter = self.lsBookmarks.get_iter(path)\n        self.lsBookmarks.set(iter, 1, text)\n        \n        # update name in bookmarks array\n        for b in self.bookmarks:\n            if (b[2] == self.lsBookmarks[path][2]):\n                b[1] = text\n                break\n\n    def on_notebookMain_switch_page(self, notebook, page, page_num):\n        # disable delete button if not on bookmarks page and station is not bookmarked\n        if (page_num != 3): #and (not self.bookmarked or not self.playing)):\n            self.btnDelete.set_sensitive(False)\n        # enable delete button if on bookmarks page and a bookmark is selected\n        else:\n            (model, iter) = self.lvBookmarks.get_selection().get_selected()\n            self.btnDelete.set_sensitive(iter is not None)\n    \n    def on_radMap_toggled(self, btn):\n        global mapDir, imgLANCZOS\n        if (btn.get_active()):\n            img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12\n            if (img_size < 200):\n                img_size = 200\n            if (btn == self.radMapTraffic):\n                self.mapData[\"mapMode\"] = 0\n                mapFile = os.path.join(mapDir, \"TrafficMap.png\")\n                if (os.path.isfile(mapFile)):                                                           # check if map exists\n                    with Image.open(mapFile) as img:\n                        mapImg = img.resize((img_size, img_size), imgLANCZOS)               # scale map to fit window\n                        self.imgMap.set_from_pixbuf(imgToPixbuf(mapImg))                                    # convert image to pixbuf and display\n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)                # display missing image if file is not found\n            \n            elif (btn == self.radMapWeather):\n                self.mapData[\"mapMode\"] = 1\n                if (os.path.isfile(self.mapData[\"weatherNow\"])):\n                    with Image.open(self.mapData[\"weatherNow\"]) as img:\n                        mapImg = img.resize((img_size, img_size), imgLANCZOS)    # scale map to fit window\n                        self.imgMap.set_from_pixbuf(imgToPixbuf(mapImg))                                    # convert image to pixbuf and display \n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)                # display missing image if file is not found\n    \n    def on_btnMap_clicked(self, btn):\n        # open map viewer window\n        if (self.mapViewer is None):\n            self.mapViewer = NRSC5_Map(self, self.mapViewerCallback, self.mapData)\n            self.mapViewer.mapWindow.show()\n    \n    def mapViewerCallback(self):\n        # delete the map viewer\n        self.mapViewer = None\n\n    def on_alignmentCover_clicked(self, widget, event):\n        if (event.button == Gdk.BUTTON_SECONDARY):\n            if (self.slPopup is None) and (self.playing):\n                self.slPopup = NRSC5_SLPopup(self, self.slPopupCallback, self.slData)\n                self.slPopup.txtEntry.set_text(self.slData['externalURL'])\n                self.slPopup.entryWindow.show()\n                # now center it\n                winX, winY = self.mainWindow.get_position()\n                winW, winH = self.mainWindow.get_size()\n                slW, slH = self.slPopup.entryWindow.get_size()\n                self.slPopup.entryWindow.move(int(winW/2 - slW/2)+winX, int(winH/2 - slH/2)+winY)\n                self.slPopup.entryWindow.set_keep_above(True)\n\n    def slPopupCallback(self):\n        extensions = ['.gif','.jpg','.jpeg','.png']\n        useExt = \"\"\n        self.slData['externalURL'] = self.slPopup.txtEntry.get_text()\n        self.slPopup = None\n        if (self.slData['externalURL'] != \"\"):\n            freq = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n            fileName = str(freq)+\"_SL\"+self.streamInfo[\"Callsign\"]+\"$$\"+str(int(self.streamNum + 1))\n            for extension in extensions:\n                if extension in self.slData['externalURL']:\n                    useExt = extension\n                    break\n            if (useExt != \"\"):\n                fileName = fileName + useExt\n                saveStr=os.path.join(aasDir,fileName)\n                with self.http.request('GET',self.slData['externalURL'], preload_content=False) as r, open(saveStr, 'wb') as out_file:\n                    if(r.status == 200):\n                        shutil.copyfileobj(r, out_file)\n                        self.stationLogos[self.stationStr][self.streamNum] = fileName\n                        self.displayLogo()\n\n    def play(self):\n        FNULL = open(os.devnull, 'w')\n        FTMP = open('tmp.log','w')\n\n        # run nrsc5 and output stderr to pipe, stdout to /dev/null\n        # CRITICAL: stdout must not use PIPE or it will fill up and block nrsc5\n        # Use unbuffered stdin (bufsize=0) for immediate command processing\n        self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=PIPE, stdout=FNULL, stderr=PIPE, \n                          universal_newlines=False, bufsize=0)\n        \n        try:\n            while True:\n                # Capture a local reference to avoid race condition where another thread\n                # (e.g. switching stations from bookmarks) sets self.nrsc5 = None between\n                # our None-check and subsequent use of the object.\n                proc = self.nrsc5\n                if proc is None:\n                    break\n                \n                # Note: We no longer send stream changes via stdin\n                # Stream changes now restart nrsc5 with the new stream number\n                # This works on all platforms without requiring PTY\n                    \n                # read output from nrsc5 (now in binary mode)\n                output_bytes = proc.stderr.readline()\n                if not output_bytes:\n                    # EOF\n                    output = \"\"\n                else:\n                    output = output_bytes.decode('utf-8', errors='replace')\n                \n                # Check if we got EOF (empty string means process ended)\n                if not output:\n                    self.debugLog(\"nrsc5 stderr closed (process may have ended)\")\n                    if proc.poll() is not None:\n                        # Process has definitely exited\n                        if self.playing:\n                            self.debugLog(\"Restarting NRSC5 (unexpected termination)\")\n                            time.sleep(1)\n                            self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=PIPE, stdout=FNULL, stderr=PIPE, universal_newlines=False, bufsize=0)\n                            continue\n                        else:\n                            self.debugLog(\"Process Terminated\")\n                            self.nrsc5 = None\n                            break\n                    else:\n                        # Process still running but stderr gave us nothing, try again\n                        time.sleep(0.1)\n                        continue\n                \n                # parse the output\n                self.parseFeedback(output)\n                \n                # write output to log file if enabled\n                if (self.cbLog.get_active() and self.logFile is not None):\n                    self.logFile.write(output)\n                    self.logFile.flush()\n                \n                # check if nrsc5 has exited (use local proc ref — safe even if self.nrsc5\n                # was set to None by another thread mid-iteration)\n                poll_result = proc.poll()\n                if poll_result is not None:\n                    # Process has exited\n                    if not self.playing:\n                        # User stopped it - clean shutdown\n                        self.debugLog(\"Process Terminated\")\n                        self.nrsc5 = None\n                        break\n                    else:\n                        # Unexpected exit - restart\n                        self.debugLog(\"Restarting NRSC5 (exit code: {})\".format(poll_result))\n                        time.sleep(1)\n                        self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=self.nrsc5slave, stdout=FNULL, stderr=PIPE, universal_newlines=True)\n        finally:\n            # Clean up file handles\n            FNULL.close()\n            FTMP.close()\n\n    def set_synchronization(self, state):\n        self.imgNoSynch.set_visible(state == 0)\n        self.imgSynch.set_visible(state == 1)\n        self.imgLostDevice.set_visible(state == -1)\n\n    def set_button_name(self, btnWidget, lblWidget, stream):\n        temp = self.streamInfo[\"Streams\"][stream]\n        if ((temp == \"\") or (temp == \"MPS\") or (temp[0:3] == \"SPS\") or (temp[0:2] == \"HD\") ):\n            if (self.booknames[stream] != \"\"):\n                temp = self.booknames[stream]\n        lblWidget.set_label(temp)\n        btnWidget.set_sensitive(temp != \"\")\n\n    def set_label_name(self, lblWidget, inString, doSens):\n        lblWidget.set_label(inString)\n        lblWidget.set_tooltip_text(inString)\n        if (doSens):\n            lblWidget.set_sensitive(inString != \"\")\n\n    def getImageLot(self,imgStr):\n        r = re.compile(\"^([0-9]+)_.*$\")\n        m = r.match(imgStr)\n        return m.group(1)\n\n    def checkStatus(self):\n        # update status information\n        def update():\n            global aasDir\n            try:\n                imagePath = \"\"\n                image = \"\"\n                ber = [self.streamInfo[\"BER\"][i]*100 for i in range(4)]\n                self.id3Changed = self.id3_did_change()\n                self.txtTitle.set_text(self.streamInfo[\"Title\"])\n                self.txtTitle.set_tooltip_text(self.streamInfo[\"Title\"])\n                self.txtArtist.set_text(self.streamInfo[\"Artist\"])\n                self.txtArtist.set_tooltip_text(self.streamInfo[\"Artist\"])\n                self.txtAlbum.set_text(self.streamInfo[\"Album\"])\n                self.txtAlbum.set_tooltip_text(self.streamInfo[\"Album\"])\n                self.txtGenre.set_text(self.streamInfo[\"Genre\"])\n                self.txtGenre.set_tooltip_text(self.streamInfo[\"Genre\"])\n                self.lblBitRate.set_label(\"{:3.1f} kbps\".format(self.streamInfo[\"Bitrate\"]))\n                self.lblBitRate2.set_label(\"{:3.1f} kbps\".format(self.streamInfo[\"Bitrate\"]))\n                self.lblError.set_label(\"{:2.2f}% BER \".format(self.streamInfo[\"BER\"][0]*100))\n                self.lblCall.set_label(\" \" + self.streamInfo[\"Callsign\"])\n                self.lblName.set_label(self.streamInfo[\"Callsign\"])\n                self.lblSlogan.set_label(self.streamInfo[\"Slogan\"])\n                self.lblSlogan.set_tooltip_text(self.streamInfo[\"Slogan\"])\n                self.lblMessage.set_label(self.streamInfo[\"Message\"])\n                self.lblMessage.set_tooltip_text(self.streamInfo[\"Message\"])\n                if (self.txtMessage2):\n                    self.txtMessage2.set_label(self.streamInfo[\"Message\"])\n                    self.txtMessage2.set_tooltip_text(self.streamInfo[\"Message\"])\n                self.lblAlert.set_label(self.streamInfo[\"Alert\"])\n                self.lblAlert.set_tooltip_text(self.streamInfo[\"Alert\"])\n                if (self.txtAlert2):\n                    self.txtAlert2.set_label(self.streamInfo[\"Alert\"])\n                    self.txtAlert2.set_tooltip_text(self.streamInfo[\"Alert\"])\n                self.set_button_name(self.btnAudioPrgs0,self.btnAudioLbl0,0)\n                self.set_button_name(self.btnAudioPrgs1,self.btnAudioLbl1,1)\n                self.set_button_name(self.btnAudioPrgs2,self.btnAudioLbl2,2)\n                self.set_button_name(self.btnAudioPrgs3,self.btnAudioLbl3,3)\n                self.set_button_name(self.btnAudioPrgs4,self.btnAudioLbl4,4)\n                self.set_button_name(self.btnAudioPrgs5,self.btnAudioLbl5,5)\n                self.set_button_name(self.btnAudioPrgs6,self.btnAudioLbl6,6)\n                self.set_button_name(self.btnAudioPrgs7,self.btnAudioLbl7,7)\n                self.set_label_name(self.lblAudioPrgs0, self.streamInfo[\"Streams\"][0], True)\n                self.set_label_name(self.lblAudioPrgs1, self.streamInfo[\"Streams\"][1], True)\n                self.set_label_name(self.lblAudioPrgs2, self.streamInfo[\"Streams\"][2], True)\n                self.set_label_name(self.lblAudioPrgs3, self.streamInfo[\"Streams\"][3], True)\n                self.set_label_name(self.lblAudioPrgs4, self.streamInfo[\"Streams\"][4], True)\n                self.set_label_name(self.lblAudioPrgs5, self.streamInfo[\"Streams\"][5], True)\n                self.set_label_name(self.lblAudioPrgs6, self.streamInfo[\"Streams\"][6], True)\n                self.set_label_name(self.lblAudioPrgs7, self.streamInfo[\"Streams\"][7], True)\n                self.set_label_name(self.lblAudioSvcs0, self.streamInfo[\"Programs\"][0], True)\n                self.set_label_name(self.lblAudioSvcs1, self.streamInfo[\"Programs\"][1], True)\n                self.set_label_name(self.lblAudioSvcs2, self.streamInfo[\"Programs\"][2], True)\n                self.set_label_name(self.lblAudioSvcs3, self.streamInfo[\"Programs\"][3], True)\n                self.set_label_name(self.lblAudioSvcs4, self.streamInfo[\"Programs\"][4], True)\n                self.set_label_name(self.lblAudioSvcs5, self.streamInfo[\"Programs\"][5], True)\n                self.set_label_name(self.lblAudioSvcs6, self.streamInfo[\"Programs\"][6], True)\n                self.set_label_name(self.lblAudioSvcs7, self.streamInfo[\"Programs\"][7], True)\n                self.set_label_name(self.lblDataSvcs0, self.streamInfo[\"Services\"][0], False)\n                self.set_label_name(self.lblDataSvcs1, self.streamInfo[\"Services\"][1], False)\n                self.set_label_name(self.lblDataSvcs2, self.streamInfo[\"Services\"][2], False)\n                self.set_label_name(self.lblDataSvcs3, self.streamInfo[\"Services\"][3], False)\n                self.set_label_name(self.lblDataType0, self.streamInfo[\"SvcTypes\"][0], False)\n                self.set_label_name(self.lblDataType1, self.streamInfo[\"SvcTypes\"][1], False)\n                self.set_label_name(self.lblDataType2, self.streamInfo[\"SvcTypes\"][2], False)\n                self.set_label_name(self.lblDataType3, self.streamInfo[\"SvcTypes\"][3], False)\n                self.lblMerLower.set_label(\"{:1.2f} dB\".format(self.streamInfo[\"MER\"][0]))\n                self.lblMerUpper.set_label(\"{:1.2f} dB\".format(self.streamInfo[\"MER\"][1]))\n                self.lblBerNow.set_label(\"{:1.3f}% (Now)\".format(ber[0]))\n                self.lblBerAvg.set_label(\"{:1.3f}% (Avg)\".format(ber[1]))\n                self.lblBerMin.set_label(\"{:1.3f}% (Min)\".format(ber[2]))\n                self.lblBerMax.set_label(\"{:1.3f}% (Max)\".format(ber[3]))\n\n                if (self.cbAutoGain.get_active()):\n                    self.spinGain.set_value(self.streamInfo[\"Gain\"])\n                    self.lblGain.set_label(\"{:2.1f} dB\".format(self.streamInfo[\"Gain\"]))\n                \n                # second param is lot id, if -1, show cover, otherwise show cover\n                # technically we should show the file with the matching lot id\n\n                lot = -1\n                if ((self.lastXHDR == \"0\") and (self.streamInfo[\"Cover\"] != \"\")):\n                    imagePath = os.path.join(aasDir, self.streamInfo[\"Cover\"])\n                    image = self.streamInfo[\"Cover\"]\n                    lot = self.getImageLot(image)\n                elif (((self.lastXHDR == \"1\") or (self.lastImage != \"\")) and (self.streamInfo[\"Logo\"] != \"\")):\n                    imagePath = os.path.join(aasDir, self.streamInfo[\"Logo\"])\n                    image = self.streamInfo[\"Logo\"]\n                    if (not os.path.isfile(imagePath)):\n                        self.imgCover.clear()\n                        self.coverImage = \"\"\n                    \n                # resize and display image if it changed and exists\n                if (self.xhdrChanged and (self.lastImage != image) and ((self.lastLOT == lot) or (lot == -1)) and os.path.isfile(imagePath)):\n                    self.xhdrChanged = False\n                    self.lastImage = image\n                    self.coverImage = imagePath\n                    self.showArtwork(imagePath)\n                    self.debugLog(\"Image Changed\")\n\n                # Disable downloaded cover images until fixed with MusicBrainz\n                # CRITICAL: Run in separate thread to avoid blocking GTK main thread with network I/O\n                if (self.cbCovers.get_active() and self.id3Changed):\n                    Thread(target=self.get_cover_image_online, daemon=True).start()\n\n            finally:\n                pass        \n        \n        if (self.playing):\n            GLib.idle_add(update)\n            self.statusTimer = Timer(1, self.checkStatus)\n            self.statusTimer.start()\n\n    def processHERETrafficMap(self, fileName, timeStr):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})Z$\")\n        m = r.match(timeStr)\n\n        if (m):\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(1)), int(m.group(2)), int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                            # local time\n            ts = dtToTs(dt)                                                                             # unix timestamp (etc)\n\n            r = re.compile(\"^trafficMap_([0-9])_([0-9])_(.*).png$\")\n            n = r.match(fileName)\n            if (n):\n                x = int(n.group(1))\n                y = int(n.group(2))\n                self.map_progress.set_fraction((x*3+y)/8)\n\n                # prepend filename with timestamp\n                fileName = \"{0}_{1}\".format(ts,fileName)\n                self.finishTrafficMap(fileName, ts, t, x, y)\n                return False  # CRITICAL: Tell GTK not to call this again\n            \n    def processTrafficMap(self, fileName):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^[0-9]+_TMT_.*_([1-3])_([1-3])_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})_([0-9A-Fa-f]{4})[.].*$\")     # match file name\n        m = r.match(fileName)\n        \n        if (m):\n            x       = int(m.group(1))-1 # X position\n            y       = int(m.group(2))-1 # Y position\n            self.map_progress.set_fraction((x*3+y)/8)\n\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), int(m.group(7)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                        # local time\n            ts = dtToTs(dt)\n            self.finishTrafficMap(fileName, ts, t, x, y)                                            # unix timestamp (utc)\n            return False  # CRITICAL: Tell GTK not to call this again\n            \n    def finishTrafficMap(self, fileName, ts, t, x, y):\n        global aasDir, mapDir, imgLANCZOS\n        # check if the tile has already been loaded\n        if (self.mapData[\"mapTiles\"][x][y] == ts):\n            try:\n                os.remove(os.path.join(aasDir, fileName))                                           # delete this tile, it's not needed\n            except:\n                pass\n            return                                                                                  # no need to recreate the map if it hasn't changed\n            \n        self.debugLog(\"Got Traffic Map Tile: {:g},{:g}\".format(x,y))\n                \n        self.mapData[\"mapComplete\"]    = False                                                      # new tiles are coming in, the map is nolonger complete\n        self.mapData[\"mapTiles\"][x][y] = ts                                                         # store time for current tile\n            \n        try:\n            currentPath = os.path.join(aasDir,fileName)\n            newPath = os.path.join(mapDir, \"TrafficMap_{:g}_{:g}.png\".format(x,y))                  # create path to new tile location\n            if(os.path.exists(newPath)): os.remove(newPath)                                         # delete old image if it exists (only necessary on windows)\n            shutil.move(currentPath, newPath)                                                       # move and rename map tile\n        except:\n            self.debugLog(\"Error moving map tile (src: \"+currentPath+\", dest: \"+newPath+\")\", True)\n            self.mapData[\"mapTiles\"][x][y] = 0\n                \n        # check if all of the tiles are loaded\n        if (self.checkTiles(ts)):\n            self.debugLog(\"Got complete traffic map\")\n            self.mapData[\"mapComplete\"] = True                                                      # map is complete\n                \n            # stitch the map tiles into one image\n            imgMap = Image.new(\"RGB\", (600, 600), \"white\")                                          # create blank image for traffic map\n            for i in range(0,3):\n                for j in range(0,3):\n                    tileFile = os.path.join(mapDir, \"TrafficMap_{:g}_{:g}.png\".format(i,j))         # get path to tile\n                    with Image.open(tileFile) as tile:\n                        imgMap.paste(tile, (j*200, i*200))                              # paste tile into map\n                    os.remove(tileFile)                                                             # delete tile image\n\n            # now put a timestamp on it.\n            imgMap   = imgMap.convert(\"RGBA\")\n            imgBig   = (981,981)                                                                    # size of a weather map\n            posTS    = (imgBig[0]-235, imgBig[1]-29)                                                # calculate position to put timestamp (bottom right)\n            imgTS    = self.mkTimestamp(t, imgBig, posTS)                                           # create timestamp for a weather map\n            imgTS    = imgTS.resize((imgMap.size[0], imgMap.size[1]), imgLANCZOS)                   # resize it so it's proportional to the size of a traffic map (981 -> 600)\n            imgMap   = Image.alpha_composite(imgMap, imgTS)                                         # overlay timestamp on traffic map\n\n            imgMap.save(os.path.join(mapDir, \"TrafficMap.png\"))                                     # save traffic map\n                \n            # display on map page\n            if (self.radMapTraffic.get_active()):\n                img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12\n                imgMap = imgMap.resize((img_size, img_size), imgLANCZOS)                            # scale map to fit window\n                self.imgMap.set_from_pixbuf(imgToPixbuf(imgMap))                                    # convert image to pixbuf and display\n                \n            if (self.mapViewer is not None): self.mapViewer.updated(0)                              # notify map viwerer if it's open\n    \n    def processHEREWeatherOverlay(self, fileName, timeStr):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})Z$\")\n        m = r.match(timeStr)\n\n        if (m):\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(1)), int(m.group(2)), int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                        # local time\n            ts = dtToTs(dt)                                                                         # unix timestamp (etc)\n\n            r = re.compile(\"^WeatherImage_([0-9])_([0-9])_(.*).png$\")\n            n = r.match(fileName)\n            if (n):\n                id = n.group(3)\n\n            # prepend filename with timestamp\n            fileName = \"{0}_{1}\".format(ts,fileName)\n            self.finishWeatherOverlay(fileName, ts, t, id)\n            return False  # CRITICAL: Tell GTK not to call this again\n    \n    def processWeatherOverlay(self, fileName):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^[0-9]+_DWRO_(.*)_.*_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]{2})([0-9]{2})_([0-9A-Fa-f]+)[.].*$\")                    # match file name\n        m = r.match(fileName)\n        \n        if (m):\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(2)), int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                        # local time\n            ts = dtToTs(dt)                                                                         # unix timestamp (utc)\n            id = self.mapData[\"weatherID\"]\n            \n            if (m.group(1) != id):\n                if (id == \"\"):\n                    self.debugLog(\"Received weather overlay before metadata, ignoring...\");\n                else:\n                    self.debugLog(\"Received weather overlay with the wrong ID: \" + m.group(1) + \" (wanted \" + id +\")\")\n                return False  # CRITICAL: Tell GTK not to call this again\n                \n            self.finishWeatherOverlay(fileName, ts, t, id)\n            return False  # CRITICAL: Tell GTK not to call this again\n            \n    def finishWeatherOverlay(self, fileName, ts, t, id):\n        global aasDir, mapDir, imgLANCZOS\n\n        if (self.mapData[\"weatherTime\"] == ts):\n            try:\n                os.remove(os.path.join(aasDir, fileName))                                           # delete this tile, it's not needed\n            except:\n                pass\n            return                                                                                  # no need to recreate the map if it hasn't changed\n            \n        self.debugLog(\"Got Weather Overlay\")\n            \n        self.mapData[\"weatherTime\"] = ts                                                            # store time for current overlay\n        wxOlPath  = os.path.join(mapDir,\"WeatherOverlay_{:s}_{:}.png\".format(id, ts))\n        wxMapPath = os.path.join(mapDir,\"WeatherMap_{:s}_{:}.png\".format(id, ts))\n            \n        # move new overlay to map directory\n        try:\n            if(os.path.exists(wxOlPath)): os.remove(wxOlPath)                                       # delete old image if it exists (only necessary on windows)\n            shutil.move(os.path.join(aasDir, fileName), wxOlPath)                                   # move and rename map tile\n        except:\n            self.debugLog(\"Error moving weather overlay\", True)\n            self.mapData[\"weatherTime\"] = 0\n                \n        # create weather map\n        try:\n            mapPath = os.path.join(mapDir, \"BaseMap_\" + id + \".png\")                                # get path to base map\n            if (os.path.isfile(mapPath) == False):                                                  # make sure base map exists\n                self.makeBaseMap(self.mapData[\"weatherID\"], self.mapData[\"weatherPos\"])             # create base map if it doesn't exist\n                \n            with Image.open(mapPath) as img:\n                imgMap = img.convert(\"RGBA\")                                          # open map image\n                imgBig   = (981,981)                                                                    # size of a weather map\n                imgMap   = imgMap.resize(imgBig, imgLANCZOS)                                            # resize if tiny\n            posTS    = (imgBig[0]-235, imgBig[1]-29)\n            imgTS    = self.mkTimestamp(t, imgBig, posTS)                                           # create timestamp\n            imgTS    = imgTS.resize((imgMap.size[0], imgMap.size[1]), imgLANCZOS)                   # resize it so it's proportional to the size of a traffic map (981 -> 600)\n            \n            # Open overlay image once and properly handle palette mode with transparency\n            with Image.open(wxOlPath) as img:\n                # Convert palette images to RGBA first to avoid transparency warnings\n                if img.mode == 'P':\n                    imgRadar = img.convert(\"RGBA\")\n                else:\n                    imgRadar = img.convert(\"RGBA\")\n                # Keep the image data by copying before the with block closes\n                imgRadar = imgRadar.copy()\n            \n            # Resize after copying to avoid issues with closed images\n            imgRadar = imgRadar.resize(imgMap.size, imgLANCZOS)\n            \n            # Create alpha channel from grayscale version\n            with Image.open(wxOlPath) as img:\n                if img.mode == 'P':\n                    # For palette images, convert to RGBA first, then to grayscale\n                    imgAlpha = img.convert(\"RGBA\").convert(\"L\")\n                else:\n                    imgAlpha = img.convert(\"L\")\n                imgAlpha = imgAlpha.copy()\n            \n            imgAlpha = imgAlpha.resize(imgMap.size, imgLANCZOS)\n            imgRadar.putalpha(imgAlpha)                                                             # use grayscale overlay to create variable alpha channel.\n            del imgAlpha  # Clean up alpha channel image\n\n            imgMap   = Image.alpha_composite(imgMap, imgRadar)                                      # overlay radar image on map\n            del imgRadar  # Clean up radar image\n            imgMap   = Image.alpha_composite(imgMap, imgTS)                                         # overlay timestamp\n            del imgTS  # Clean up timestamp image\n            imgMap.save(wxMapPath)                                                                  # save weather map\n            os.remove(wxOlPath)                                                                     # remove overlay image\n            self.mapData[\"weatherNow\"] = wxMapPath\n                \n            # display on map page\n            if (self.radMapWeather.get_active()):\n                img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12\n                imgMapResized = imgMap.resize((img_size, img_size), imgLANCZOS)                     # scale map to fit window\n                self.imgMap.set_from_pixbuf(imgToPixbuf(imgMapResized))                             # convert image to pixbuf and display\n                del imgMapResized  # Clean up resized image\n            \n            del imgMap  # Clean up main map image\n                \n            self.proccessWeatherMaps()                                                              # get rid of old maps and add new ones to the list\n            if (self.mapViewer is not None): self.mapViewer.updated(1)                              # notify map viwerer if it's open\n                    \n        except Exception as e:\n            self.debugLog(\"Error creating weather map: {}\".format(str(e)), True)\n            self.mapData[\"weatherTime\"] = 0\n            \n    def proccessWeatherInfo(self, fileName):\n        global aasDir\n        weatherID = None\n        weatherPos = None\n\n        try:\n            with open(os.path.join(aasDir, fileName)) as weatherInfo:                                   # open weather info file\n                for line in weatherInfo:                                                                # read line by line\n                    if (\"DWR_Area_ID=\" in line):                                                        # look for line with \"DWR_Area_ID=\" in it\n                        # get ID from line\n                        r = re.compile(\"^DWR_Area_ID=\\\"(.+)\\\"$\")\n                        m = r.match(line)\n                        weatherID = m.group(1)\n\n                    elif (\"Coordinates=\" in line):                                                      # look for line with \"Coordinates=\" in it\n                        # get coordinates from line\n                        r = re.compile(\"^Coordinates=.*[(](-?[0-9]+[.][0-9]+),(-?[0-9]+[.][0-9]+)[)].*[(](-?[0-9]+[.][0-9]+),(-?[0-9]+[.][0-9]+)[)].*$\")\n                        m = r.match(line)\n                        weatherPos = [float(m.group(1)),float(m.group(2)), float(m.group(3)), float(m.group(4))]\n        except:\n            self.debugLog(\"Error opening weather info\", True)\n        \n        if (weatherID is not None and weatherPos is not None):                                          # check if ID and position were found\n            if (self.mapData[\"weatherID\"] != weatherID or self.mapData[\"weatherPos\"] != weatherPos):    # check if ID or position has changed\n                self.debugLog(\"Got position: ({:n}, {:n}) ({:n}, {:n})\".format(*weatherPos))\n                self.mapData[\"weatherID\"]  = weatherID                                                  # set weather ID\n                self.mapData[\"weatherPos\"] = weatherPos                                                 # set weather map position\n                \n                # Make base map creation asynchronous to avoid blocking nrsc5 stderr reading (HEAVY OPERATION)\n                GLib.idle_add(self.makeBaseMap, weatherID, weatherPos)\n                self.weatherMaps = []\n                GLib.idle_add(self.proccessWeatherMaps)\n    \n    def proccessHEREWeatherInfo(self, fileName, lat1, lon1, lat2, lon2):\n        global aasDir\n        weatherID = None\n        weatherPos = None\n\n        r = re.compile(\"^.*WeatherImage_([0-9])_([0-9])_(.*).png$\")\n        m = r.match(fileName)\n        if (m):\n            weatherID = m.group(3)\n            # make weather image the same size/aspect ratio as Traffic image\n            if ((self.tLat1 != 0.0) and (self.tLat2 != 0.0)):\n                lat1 = (self.tLat1 - self.tLat2) + lat2\n            else:\n                return\n            weatherPos = [lat1, lon1, lat2, lon2]\n        \n        if (weatherID is not None and weatherPos is not None):                                          # check if ID and position were found\n            if (self.mapData[\"weatherID\"] != weatherID or self.mapData[\"weatherPos\"] != weatherPos):    # check if ID or position has changed\n                self.debugLog(\"Got position: ({:n}, {:n}) ({:n}, {:n})\".format(*weatherPos))\n                self.mapData[\"weatherID\"]  = weatherID                                                  # set weather ID\n                self.mapData[\"weatherPos\"] = weatherPos                                                 # set weather map position\n                \n                # Make base map creation asynchronous to avoid blocking nrsc5 stderr reading (HEAVY OPERATION)\n                GLib.idle_add(self.makeBaseMap, weatherID, weatherPos)\n                self.weatherMaps = []\n                GLib.idle_add(self.proccessWeatherMaps)\n    \n    def proccessWeatherMaps(self):\n        global mapDir\n        numberOfMaps = 0\n        r     = re.compile(\"^.*map.WeatherMap_([a-zA-Z0-9]+)_([0-9]+).png\")\n        now   = dtToTs(datetime.datetime.now(tz.tzutc()))                                               # get current time\n        files = glob.glob(os.path.join(mapDir, \"WeatherMap_\") + \"*.png\")                                # look for weather map files\n        files.sort()                                                                                    # sort files\n        for f in files:  \n            m = r.match(f)                                                                              # match regex\n            if (m):\n                id = m.group(1)                                                                         # location ID\n                ts = int(m.group(2))                                                                    # timestamp (UTC)\n                \n                # remove weather maps older than 12 hours\n                if (now - ts > 60*60*12):\n                    try:\n                        if (f in self.weatherMaps):\n                            self.weatherMaps.pop(self.weatherMaps.index(f))                             # remove from list\n                        os.remove(f)                                                                    # remove file\n                        self.debugLog(\"Deleted old weather map: \" + f)\n                    except:\n                        self.debugLog(\"Error Failed to Delete: \" + f)\n                        \n                # skip if not the correct location\n                elif (id == self.mapData[\"weatherID\"]):\n                    if (f not in self.weatherMaps):\n                        self.addWeatherMap(f)                                                      # add to list\n                    numberOfMaps += 1\n        \n\n        self.debugLog(\"Found {} weather maps\".format(numberOfMaps))\n        return False  # CRITICAL: Tell GTK not to call this again\n        \n    def getMapArea(self, lat1, lon1, lat2, lon2):\n        from math import asinh, tan, radians\n        \n        # get pixel coordinates from latitude and longitude\n        # calculations taken from https://github.com/KYDronePilot/hdfm\n        top  = asinh(tan(radians(52.482780)))\n        lat1 = top - asinh(tan(radians(lat1)))\n        lat2 = top - asinh(tan(radians(lat2)))\n        x1   = (lon1 + 130.781250) * 7162 / 39.34135\n        x2   = (lon2 + 130.781250) * 7162 / 39.34135\n        y1   = lat1 * 3565 / (top - asinh(tan(radians(38.898))))\n        y2   = lat2 * 3565 / (top - asinh(tan(radians(38.898))))\n        \n        return (int(round(x1)), int(round(y1)), int(round(x2)), int(round(y2)))\n    \n    def makeBaseMap(self, id, pos):\n        global mapDir\n        mapPath = os.path.join(mapDir, \"BaseMap_\" + id + \".png\")                                # get map path\n        if (os.path.isfile(self.mapFile)):\n            if (os.path.isfile(mapPath) == False):                                              # check if the map has already been created for this location\n                self.debugLog(\"Creating new map: \" + mapPath)\n                px     = self.getMapArea(*pos)                                                  # convert map locations to pixel coordinates\n                with Image.open(self.mapFile) as img:\n                    mapImg = img.crop(px)                                      # open the full map and crop it to the coordinates\n                    mapImg.save(mapPath)                                                            # save the cropped map to disk for later use\n                self.debugLog(\"Finished creating map\")\n        else:\n            self.debugLog(\"Error map file not found: \" + self.mapFile, True)\n            mapImg = Image.new(\"RGBA\", (pos[2]-pos[1], pos[3]-pos[1]), \"white\")                 # if the full map is not available, use a blank image\n            mapImg.save(mapPath)\n        return False  # CRITICAL: Tell GTK not to call this again\n    \n    def checkTiles(self, t):\n        # check if all the tiles have been received\n        for i in range(0,3):\n            for j in range(0,3):\n                if (self.mapData[\"mapTiles\"][i][j] != t):\n                    return False\n        return True\n    \n    def mkTimestamp(self, t, size, pos):\n        global resDir\n        # create a timestamp image to overlay on the weathermap\n        x,y   = pos\n        text  = \"{:04g}-{:02g}-{:02g} {:02g}:{:02g}\".format(t.year, t.month, t.day, t.hour, t.minute)   # format timestamp\n        imgTS = Image.new(\"RGBA\", size, (0,0,0,0))                                                      # create a blank image\n        draw  = ImageDraw.Draw(imgTS)                                                                   # the drawing object\n        font  = ImageFont.truetype(os.path.join(resDir,\"DejaVuSansMono.ttf\"), 24)                       # DejaVu Sans Mono 24pt font\n        draw.rectangle((x,y, x+231,y+25), outline=\"black\", fill=(128,128,128,96))                       # draw a box around the text\n        draw.text((x+3,y), text, fill=\"black\", font=font)                                               # draw the text\n        return imgTS                                                                                    # return the image\n\n    def checkPorts(self, port, type):\n        result = -1\n        for i in range(0,7):\n            if (len(self.streams[i]) > type):\n                if (port == self.streams[i][type]):\n                    result = i\n        return result\n\n    def parseFeedback(self, line):\n        global aasDir, mapDir\n        line = line.strip()\n        if (self.regex[4].match(line)):\n            # match title\n            m = self.regex[4].match(line)\n            self.streamInfo[\"Title\"] = m.group(1)\n        elif (self.regex[5].match(line)):\n            # match artist\n            m = self.regex[5].match(line)\n            self.streamInfo[\"Artist\"] = m.group(1)\n        elif (self.regex[6].match(line)):\n            # match album\n            m = self.regex[6].match(line)\n            self.streamInfo[\"Album\"] = m.group(1)\n        elif (self.regex[15].match(line)):\n            # match genre\n            m = self.regex[15].match(line)\n            self.streamInfo[\"Genre\"] = m.group(1)\n        elif (self.regex[3].match(line)):\n            # match audio bit rate\n            m = self.regex[3].match(line)\n            self.streamInfo[\"Bitrate\"] = float(m.group(1))\n        elif (self.regex[8].match(line)):\n            # match MER\n            m = self.regex[8].match(line)\n            self.streamInfo[\"MER\"] = [float(m.group(1)), float(m.group(2))]\n        elif (self.regex[9].match(line)):\n            # match BER\n            m = self.regex[9].match(line)\n            self.streamInfo[\"BER\"] = [float(m.group(1)), float(m.group(2)), float(m.group(3)), float(m.group(4))]\n        elif (self.regex[13].match(line)):\n            # match xhdr\n            m = self.regex[13].match(line)\n            xhdr = m.group(1)\n            mime = m.group(2)\n            lot  = m.group(3)\n            if (xhdr != self.lastXHDR) or (lot != self.lastLOT):\n                self.lastXHDR = xhdr\n                self.lastLOT = lot\n                self.xhdrChanged = True\n                self.debugLog(\"XHDR Changed: {:s} (lot {:s})\".format(xhdr,lot))\n        elif (self.regex[23].match(line)):\n            # match HERE Images\n            m = self.regex[23].match(line)\n            if (m):\n                type = m.group(1)\n                seq = int(m.group(2))\n                n1 = int(m.group(3))\n                n2 = int(m.group(4))\n                timeStr = m.group(5)\n                lat1 = float(m.group(6))\n                lon1 = float(m.group(7))\n                lat2 = float(m.group(8))\n                lon2 = float(m.group(9))\n                fileName = m.group(10)\n                fileSize = m.group(11)\n                #temporary print statement until HERE testing done\n                print(\"got HERE image: {} {} of {} {} {} {} {} {} {} {}\".format(type,n1,n2,timeStr,lat1,lon1,lat2,lon2,fileName,fileSize))\n\n                # check file existance and size .. right now we just debug log\n                #if (not os.path.isfile(os.path.join(aasDir,fileName))):\n                #    self.debugLog(\"Missing file: \" + fileName)\n                #else:\n                #    actualFileSize = os.path.getsize(os.path.join(aasDir,fileName))\n                #    if (fileSize != actualFileSize):\n                #        self.debugLog(\"Corrupt file: \" + fileName + \" (expected: \"+str(fileSize)+\" bytes, got \"+str(actualFileSize)+\" bytes)\")\n\n                if(type == \"WEATHER\" and mapDir is not None):\n                    self.proccessHEREWeatherInfo(fileName,lat1,lon1,lat2,lon2)\n                    # Process weather overlay asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processHEREWeatherOverlay, fileName, timeStr)\n                elif(type == \"TRAFFIC\" and mapDir is not None):\n                    #save lat at corners of resulting traffic image for later.\n                    if (n1 == 1):\n                        self.tLat1 = lat1\n                    if (n1 == n2):\n                        self.tLat2 = lat2\n                    # Process traffic map asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processHERETrafficMap, fileName, timeStr)\n                    \n        elif (self.regex[7].match(line)):\n            # match album art\n            m = self.regex[7].match(line)\n            if (m):\n                fileName = \"{}_{}\".format(m.group(2),m.group(3))\n                fileSize = int(m.group(4))\n                headerOffset = int(len(m.group(2))) + 1\n\n                p = int(m.group(1),16)\n                coverStream = self.checkPorts(p,0)\n                logoStream = self.checkPorts(p,1)\n\n                # check file existance and size .. right now we just debug log\n                if (not os.path.isfile(os.path.join(aasDir,fileName))):\n                    self.debugLog(\"Missing file: \" + fileName)\n                else:\n                    actualFileSize = os.path.getsize(os.path.join(aasDir,fileName))\n                    if (fileSize != actualFileSize):\n                        self.debugLog(\"Corrupt file: \" + fileName + \" (expected: \"+str(fileSize)+\" bytes, got \"+str(actualFileSize)+\" bytes)\")\n\n                if (coverStream > -1):\n                    if coverStream == self.streamNum:\n                        #set cover only if downloading covers and including station covers\n                        if (self.cbCoverIncl.get_active() or (not self.cbCovers.get_active())):\n                            self.streamInfo[\"Cover\"] = fileName\n                    self.debugLog(\"Got Album Cover: \" + fileName)\n                elif (logoStream > -1):\n                    if logoStream == self.streamNum:\n                        self.streamInfo[\"Logo\"] = fileName\n                    self.stationLogos[self.stationStr][logoStream] = fileName         # add station logo to database\n                    self.debugLog(\"Got Station Logo: \"+fileName)\n\n                elif(fileName[headerOffset:(5+headerOffset)] == \"DWRO_\" and mapDir is not None):\n                    # Process weather overlay asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processWeatherOverlay, fileName)\n                elif(fileName[headerOffset:(4+headerOffset)] == \"TMT_\" and mapDir is not None):\n                    # Process traffic map asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processTrafficMap, fileName)\n                elif(fileName[headerOffset:(5+headerOffset)] == \"DWRI_\" and mapDir is not None):\n                    self.proccessWeatherInfo(fileName)\n\n        elif (self.regex[0].match(line)):\n            # match station name\n            m = self.regex[0].match(line)\n            self.streamInfo[\"Callsign\"] = m.group(1)\n        elif (self.regex[2].match(line)):\n            # match station slogan\n            m = self.regex[2].match(line)\n            self.streamInfo[\"Slogan\"] = m.group(1)\n        elif (self.regex[16].match(line)):\n            # match message\n            m = self.regex[16].match(line)\n            self.streamInfo[\"Message\"] = m.group(1)\n        elif (self.regex[17].match(line)):\n            # match alert\n            m = self.regex[17].match(line)\n            self.streamInfo[\"Alert\"] = m.group(1)\n        elif (self.regex[10].match(line)):\n            # match gain\n            m = self.regex[10].match(line)\n            self.streamInfo[\"Gain\"] = float(m.group(1))\n        elif (self.regex[11].match(line)):\n            # match stream\n            m = self.regex[11].match(line)\n            t = m.group(1)          # stream type\n            s = int(m.group(2), 10) # stream number\n            n = m.group(3)\n\n            self.debugLog(\"Found Stream: Type {:s}, Number {:02X}\". format(t, s))\n            self.lastType = t\n            if (t == \"audio\" and s >= 1 and s <= 8):\n                self.numStreams = s\n                self.streamInfo[\"Streams\"][s-1] = n\n            if (t == \"data\"):\n                # CRITICAL FIX: Bounds check to prevent crash during nrsc5 restart\n                if self.numServices < len(self.streamInfo[\"Services\"]):\n                    self.streamInfo[\"Services\"][self.numServices] = n\n                    self.numServices += 1\n                else:\n                    self.debugLog(f\"Warning: numServices={self.numServices} exceeds Services array size\")\n        elif (self.regex[12].match(line)):\n            # match port and data_service_type\n            m = self.regex[12].match(line)\n            id = int(m.group(1), 10)\n            p = int(m.group(2), 16)\n            t = int(m.group(3), 10)\n            self.debugLog(\"\\tFound Port: {:03X}\". format(p))\n            \n            if (self.lastType == \"audio\" and self.numStreams > 0):\n                self.streams[self.numStreams-1].append(p)\n            if ((self.lastType == \"data\") and (id == 0) and (self.numServices > 0)):\n                # CRITICAL FIX: Bounds check\n                if self.numServices <= len(self.streamInfo[\"SvcTypes\"]):\n                    self.streamInfo[\"SvcTypes\"][self.numServices-1] = self.service_data_type_name(t)\n        elif (self.regex[18].match(line)):\n            # match program type\n            m = self.regex[18].match(line)\n            id = int(m.group(1), 10)\n            p = int(m.group(2), 16)\n            t = int(m.group(3), 10)\n            \n            if ((self.lastType == \"audio\") and (id == 0) and (self.numStreams > 0)):\n                self.streamInfo[\"Programs\"][self.numStreams-1] = self.program_type_name(t)\n        elif (self.regex[19].match(line)):\n            # match synchronized\n            self.set_synchronization(1)\n        elif (self.regex[20].match(line)):\n            # match lost synch\n            self.set_synchronization(0)\n        elif (self.regex[21].match(line)):\n            # match lost device\n            self.set_synchronization(-1)\n        elif (self.regex[22].match(line)):\n            # match Open device failed\n            self.on_btnStop_clicked(None)\n            self.set_synchronization(-1)\n            \n    def getControls(self):\n        global resDir\n        # setup gui\n        builder = Gtk.Builder()\n        builder.add_from_file(os.path.join(resDir,\"mainForm.glade\"))\n        builder.connect_signals(self)\n        \n        # Windows\n        self.mainWindow = builder.get_object(\"mainWindow\")\n        self.mainWindow.set_icon_from_file(os.path.join(resDir,\"logo.png\"))\n        self.mainWindow.connect(\"delete-event\", self.shutdown)\n        self.mainWindow.connect(\"destroy\", Gtk.main_quit)\n        self.about_dialog = None\n        \n        # get controls\n        self.image1        = builder.get_object(\"image1\")\n        self.notebookMain  = builder.get_object(\"notebookMain\")\n        self.frameCover    = builder.get_object(\"frameCover\")\n        self.alignmentCover = builder.get_object(\"alignmentCover\")\n        self.imgCover      = builder.get_object(\"imgCover\")\n        self.alignmentMap  = builder.get_object(\"alignment_map\")\n        self.imgMap        = builder.get_object(\"imgMap\")\n        self.spinFreq      = builder.get_object(\"spinFreq\")\n        self.cbxAspect     = builder.get_object(\"cbxAspect\")\n        self.cbxSDRRadio   = builder.get_object(\"cbxSDRRadio\")\n        self.spinGain      = builder.get_object(\"spinGain\")\n        self.cbAutoGain    = builder.get_object(\"cbAutoGain\")\n        self.spinPPM       = builder.get_object(\"spinPPM\")\n        self.lblRTL        = builder.get_object(\"lblRTL\")\n        self.spinRTL       = builder.get_object(\"spinRTL\")\n        self.label14b      = builder.get_object(\"label14b\")\n        self.lblDevIP      = builder.get_object(\"lblDevIP\")\n        self.txtDevIP      = builder.get_object(\"txtDevIP\")\n        self.cbDevIP       = builder.get_object(\"cbDevIP\")\n        self.lblSdrPlaySer = builder.get_object(\"lblSdrPlaySer\")\n        self.txtSDRPlaySer = builder.get_object(\"txtSDRPlaySer\")\n        self.label14d      = builder.get_object(\"label14d\")\n        self.lblSDRPlayAnt = builder.get_object(\"lblSDRPlayAnt\")\n        self.cbxSDRPlayAnt = builder.get_object(\"cbxSDRPlayAnt\")\n        self.label14a      = builder.get_object(\"label14a\")\n        self.cbLog         = builder.get_object(\"cbLog\")\n        self.cbCovers      = builder.get_object(\"cbCovers\")\n        self.lblCoverIncl  = builder.get_object(\"lblCoverIncl\")\n        self.cbCoverIncl   = builder.get_object(\"cbCoverIncl\")\n        self.lblExtend     = builder.get_object(\"lblExtend\")\n        self.cbExtend      = builder.get_object(\"cbExtend\")\n        self.btnPlay       = builder.get_object(\"btnPlay\")\n        self.btnStop       = builder.get_object(\"btnStop\")\n        self.btnBookmark   = builder.get_object(\"btnBookmark\")\n        self.btnDelete     = builder.get_object(\"btnDelete\")\n        self.btnMap        = builder.get_object(\"btnMap\")\n        self.radMapTraffic = builder.get_object(\"radMapTraffic\")\n        self.radMapWeather = builder.get_object(\"radMapWeather\")\n        self.map_progress  = builder.get_object(\"map_progress\")\n        self.txtTitle      = builder.get_object(\"txtTitle\")\n        self.txtArtist     = builder.get_object(\"txtArtist\")\n        self.txtAlbum      = builder.get_object(\"txtAlbum\")\n        self.txtGenre      = builder.get_object(\"txtGenre\")\n        self.lblName       = builder.get_object(\"lblName\")\n        self.lblSlogan     = builder.get_object(\"lblSlogan\")\n        self.lblMessage    = builder.get_object(\"lblMessage\")\n        self.lblAlert      = builder.get_object(\"lblAlert\")\n        self.txtMessage2   = builder.get_object(\"txtMessage2\")\n        self.txtAlert2     = builder.get_object(\"txtAlert2\")\n        self.btnAudioPrgs0 = builder.get_object(\"btn_audio_prgs0\")\n        self.btnAudioPrgs1 = builder.get_object(\"btn_audio_prgs1\")\n        self.btnAudioPrgs2 = builder.get_object(\"btn_audio_prgs2\")\n        self.btnAudioPrgs3 = builder.get_object(\"btn_audio_prgs3\")\n        self.btnAudioPrgs4 = builder.get_object(\"btn_audio_prgs4\")\n        self.btnAudioPrgs5 = builder.get_object(\"btn_audio_prgs5\")\n        self.btnAudioPrgs6 = builder.get_object(\"btn_audio_prgs6\")\n        self.btnAudioPrgs7 = builder.get_object(\"btn_audio_prgs7\")\n        self.btnAudioLbl0  = builder.get_object(\"btn_audio_lbl0\")\n        self.btnAudioLbl1  = builder.get_object(\"btn_audio_lbl1\")\n        self.btnAudioLbl2  = builder.get_object(\"btn_audio_lbl2\")\n        self.btnAudioLbl3  = builder.get_object(\"btn_audio_lbl3\")\n        self.btnAudioLbl4  = builder.get_object(\"btn_audio_lbl4\")\n        self.btnAudioLbl5  = builder.get_object(\"btn_audio_lbl5\")\n        self.btnAudioLbl6  = builder.get_object(\"btn_audio_lbl6\")\n        self.btnAudioLbl7  = builder.get_object(\"btn_audio_lbl7\")\n        self.lblAudioPrgs0 = builder.get_object(\"lbl_audio_prgs0\")\n        self.lblAudioPrgs1 = builder.get_object(\"lbl_audio_prgs1\")\n        self.lblAudioPrgs2 = builder.get_object(\"lbl_audio_prgs2\")\n        self.lblAudioPrgs3 = builder.get_object(\"lbl_audio_prgs3\")\n        self.lblAudioPrgs4 = builder.get_object(\"lbl_audio_prgs4\")\n        self.lblAudioPrgs5 = builder.get_object(\"lbl_audio_prgs5\")\n        self.lblAudioPrgs6 = builder.get_object(\"lbl_audio_prgs6\")\n        self.lblAudioPrgs7 = builder.get_object(\"lbl_audio_prgs7\")\n        self.lblAudioSvcs0 = builder.get_object(\"lbl_audio_svcs0\")\n        self.lblAudioSvcs1 = builder.get_object(\"lbl_audio_svcs1\")\n        self.lblAudioSvcs2 = builder.get_object(\"lbl_audio_svcs2\")\n        self.lblAudioSvcs3 = builder.get_object(\"lbl_audio_svcs3\")\n        self.lblAudioSvcs4 = builder.get_object(\"lbl_audio_svcs4\")\n        self.lblAudioSvcs5 = builder.get_object(\"lbl_audio_svcs5\")\n        self.lblAudioSvcs6 = builder.get_object(\"lbl_audio_svcs6\")\n        self.lblAudioSvcs7 = builder.get_object(\"lbl_audio_svcs7\")\n        self.lblDataSvcs0  = builder.get_object(\"lbl_data_svcs0\")\n        self.lblDataSvcs1  = builder.get_object(\"lbl_data_svcs1\")\n        self.lblDataSvcs2  = builder.get_object(\"lbl_data_svcs2\")\n        self.lblDataSvcs3  = builder.get_object(\"lbl_data_svcs3\")\n        self.lblDataType0  = builder.get_object(\"lbl_data_svcs10\")\n        self.lblDataType1  = builder.get_object(\"lbl_data_svcs11\")\n        self.lblDataType2  = builder.get_object(\"lbl_data_svcs12\")\n        self.lblDataType3  = builder.get_object(\"lbl_data_svcs13\")\n        self.lblCall       = builder.get_object(\"lblCall\")\n        self.lblGain       = builder.get_object(\"lblGain\")\n        self.lblBitRate    = builder.get_object(\"lblBitRate\")\n        self.lblBitRate2   = builder.get_object(\"lblBitRate2\")\n        self.lblError      = builder.get_object(\"lblError\")\n        self.lblMerLower   = builder.get_object(\"lblMerLower\")\n        self.lblMerUpper   = builder.get_object(\"lblMerUpper\")\n        self.lblBerNow     = builder.get_object(\"lblBerNow\")\n        self.lblBerAvg     = builder.get_object(\"lblBerAvg\")\n        self.lblBerMin     = builder.get_object(\"lblBerMin\")\n        self.lblBerMax     = builder.get_object(\"lblBerMax\")\n        self.imgNoSynch    = builder.get_object(\"img_nosynch\")\n        self.imgSynch      = builder.get_object(\"img_synchpilot\")\n        self.imgLostDevice = builder.get_object(\"img_lostdevice\")\n        self.lvBookmarks   = builder.get_object(\"listviewBookmarks\")\n        self.lsBookmarks   = Gtk.ListStore(str, str, int)\n        \n        self.lvBookmarks.set_model(self.lsBookmarks)\n        self.lvBookmarks.get_selection().connect(\"changed\", self.on_lvBookmarks_selection_changed)\n        \n        self.image1.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"weather.png\")))\n        self.imgNoSynch.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"nosynch.png\")))\n        self.imgSynch.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"synchpilot.png\")))\n        self.imgLostDevice.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"lostdevice.png\")))\n        self.btnMap.set_icon_widget(self.image1)\n    \n        self.mainWindow.connect(\"check-resize\", self.on_cover_resize)\n\n        self.alignmentCover.set_sensitive(True)\n        self.alignmentCover.set_has_window(True)\n        self.alignmentCover.set_events(Gdk.EventMask.BUTTON_PRESS_MASK)\n        self.alignmentCover.connect(\"button-press-event\", self.on_alignmentCover_clicked)\n\n    def initStreamInfo(self):\n        # stream information\n        self.streamInfo = {\n            \"Callsign\": \"\",         # station callsign\n            \"Slogan\": \"\",           # station slogan\n            \"Message\": \"\",          # station message\n            \"Alert\": \"\",            # station alert\n            \"Title\": \"\",            # track title\n            \"Album\": \"\",            # track album\n            \"Genre\": \"\",            # track genre\n            \"Artist\": \"\",           # track artist\n            \"Cover\": \"\",            # filename of track cover\n            \"Logo\": \"\",             # station logo\n            \"Streams\": [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"], # audio stream names\n            \"Programs\": [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"], # audio stream types\n            \"Services\": [\"\",\"\",\"\",\"\"], # data service names\n            \"SvcTypes\": [\"\",\"\",\"\",\"\"], # data service types\n            \"Bitrate\": 0,           # current stream bit rate\n            \"MER\": [0,0],           # modulation error ratio: lower, upper\n            \"BER\": [0,0,0,0],       # bit error rate: current, average, min, max\n            \"Gain\": 0               # automatic gain\n        }\n        \n        self.streams      = [[],[],[],[],[],[],[],[]]\n        self.numStreams   = 0\n        self.numServices  = 0\n        self.lastType     = 0\n        \n        # clear status info\n        self.lblCall.set_label(\"\")\n        self.btnAudioLbl0.set_label(\"\")\n        self.btnAudioLbl1.set_label(\"\")\n        self.btnAudioLbl2.set_label(\"\")\n        self.btnAudioLbl3.set_label(\"\")\n        self.btnAudioLbl4.set_label(\"\")\n        self.btnAudioLbl5.set_label(\"\")\n        self.btnAudioLbl6.set_label(\"\")\n        self.btnAudioLbl7.set_label(\"\")\n        self.lblBitRate.set_label(\"\")\n        self.lblBitRate2.set_label(\"\")\n        self.lblError.set_label(\"\")\n        self.lblGain.set_label(\"\")\n        self.txtTitle.set_text(\"\")\n        self.txtArtist.set_text(\"\")\n        self.txtAlbum.set_text(\"\")\n        self.txtGenre.set_text(\"\")\n        self.imgCover.clear()\n        self.coverImage = \"\"\n        self.lblName.set_label(\"\")\n        self.lblSlogan.set_label(\"\")\n        self.lblSlogan.set_tooltip_text(\"\")\n        self.lblMessage.set_label(\"\")\n        self.lblMessage.set_tooltip_text(\"\")\n        if (self.txtMessage2):\n            self.txtMessage2.set_label(\"\")\n            self.txtMessage2.set_tooltip_text(\"\")\n        self.lblAlert.set_label(\"\")\n        self.lblAlert.set_tooltip_text(\"\")\n        if (self.txtAlert2):\n            self.txtAlert2.set_label(\"\")\n            self.txtAlert2.set_tooltip_text(\"\")\n        self.btnAudioPrgs0.set_sensitive(False)\n        self.btnAudioPrgs1.set_sensitive(False)\n        self.btnAudioPrgs2.set_sensitive(False)\n        self.btnAudioPrgs3.set_sensitive(False)\n        self.btnAudioPrgs4.set_sensitive(False)\n        self.btnAudioPrgs5.set_sensitive(False)\n        self.btnAudioPrgs6.set_sensitive(False)\n        self.btnAudioPrgs7.set_sensitive(False)\n        self.lblAudioPrgs0.set_label(\"\")\n        self.lblAudioPrgs0.set_sensitive(False)\n        self.lblAudioPrgs1.set_label(\"\")\n        self.lblAudioPrgs1.set_sensitive(False)\n        self.lblAudioPrgs2.set_label(\"\")\n        self.lblAudioPrgs2.set_sensitive(False)\n        self.lblAudioPrgs3.set_label(\"\")\n        self.lblAudioPrgs3.set_sensitive(False)\n        self.lblAudioPrgs4.set_label(\"\")\n        self.lblAudioPrgs4.set_sensitive(False)\n        self.lblAudioPrgs5.set_label(\"\")\n        self.lblAudioPrgs5.set_sensitive(False)\n        self.lblAudioPrgs6.set_label(\"\")\n        self.lblAudioPrgs6.set_sensitive(False)\n        self.lblAudioPrgs7.set_label(\"\")\n        self.lblAudioPrgs7.set_sensitive(False)\n        self.lblAudioSvcs0.set_label(\"\")\n        self.lblAudioSvcs0.set_sensitive(False)\n        self.lblAudioSvcs1.set_label(\"\")\n        self.lblAudioSvcs1.set_sensitive(False)\n        self.lblAudioSvcs2.set_label(\"\")\n        self.lblAudioSvcs2.set_sensitive(False)\n        self.lblAudioSvcs3.set_label(\"\")\n        self.lblAudioSvcs3.set_sensitive(False)\n        self.lblAudioSvcs4.set_label(\"\")\n        self.lblAudioSvcs4.set_sensitive(False)\n        self.lblAudioSvcs5.set_label(\"\")\n        self.lblAudioSvcs5.set_sensitive(False)\n        self.lblAudioSvcs6.set_label(\"\")\n        self.lblAudioSvcs6.set_sensitive(False)\n        self.lblAudioSvcs7.set_label(\"\")\n        self.lblAudioSvcs7.set_sensitive(False)\n        self.lblDataSvcs0.set_label(\"\")\n        self.lblDataSvcs1.set_label(\"\")\n        self.lblDataSvcs2.set_label(\"\")\n        self.lblDataSvcs3.set_label(\"\")\n        self.lblDataType0.set_label(\"\")\n        self.lblDataType1.set_label(\"\")\n        self.lblDataType2.set_label(\"\")\n        self.lblDataType3.set_label(\"\")\n        self.lblMerLower.set_label(\"\")\n        self.lblMerUpper.set_label(\"\")\n        self.lblBerNow.set_label(\"\")\n        self.lblBerAvg.set_label(\"\")\n        self.lblBerMin.set_label(\"\")\n        self.lblBerMax.set_label(\"\")\n        self.set_synchronization(0)\n    \n    def loadSettings(self):\n        global aasDir, cfgDir, mapDir\n\n        # load station logos\n        try:\n            stationLogos = os.path.join(cfgDir,\"stationLogos.json\")\n            if (os.path.isfile(stationLogos)):\n                with open(stationLogos, mode='r') as f:\n                    self.stationLogos = json.load(f)\n                for station in self.stationLogos:\n                    while (len(self.stationLogos[station]) < 8):\n                        self.stationLogos[station].append(\"\")\n        except:\n            self.debugLog(\"Error: Unable to load station logo database\", True)\n\n        #load cover metadata\n        try:\n            coverMetas = os.path.join(cfgDir,\"coverMetas.json\")\n            if (os.path.isfile(coverMetas)):\n                with open(coverMetas, mode='r') as f:\n                    self.coverMetas = json.load(f)\n        except:\n            self.debugLog(\"Error: Unable to load cover metadata database\", True)\n\n        self.mainWindow.resize(self.defaultSize[0],self.defaultSize[1])\n\n        # load settings\n        try:\n            configFile = os.path.join(cfgDir,\"config.json\")\n            if (os.path.isfile(configFile)):\n                with open(configFile, mode='r') as f:\n                    config = json.load(f)\n                \n                if \"MapData\" in config:\n                    self.mapData = config[\"MapData\"]\n                    if   (self.mapData[\"mapMode\"] == 0):\n                        self.radMapTraffic.set_active(True)\n                        self.radMapTraffic.toggled()\n                    elif (self.mapData[\"mapMode\"] == 1):\n                        self.radMapWeather.set_active(True)\n                        self.radMapWeather.toggled()\n                \n                if \"Width\" and \"Height\" in config:\n                    self.mainWindow.resize(config[\"Width\"],config[\"Height\"])\n                else:\n                    self.mainWindow.resize(self.defaultSize)\n\n                self.mainWindow.move(config[\"WindowX\"], config[\"WindowY\"])\n                self.spinFreq.set_value(config[\"Frequency\"])\n                self.streamNum = config[\"Stream\"]-1\n                if (self.streamNum < 0):\n                    self.streamNum = 0\n                self.set_program_btns()\n                self.spinGain.set_value(config[\"Gain\"])\n                self.cbAutoGain.set_active(config[\"AutoGain\"])\n                self.spinPPM.set_value(config[\"PPMError\"])\n                self.spinRTL.set_value(config[\"RTL\"])\n                if (\"SDRRadio\" in config):\n                    self.cbxSDRRadio.set_active_id(\"rcvr\"+config[\"SDRRadio\"])\n                if (\"SDRPlaySer\" in config):\n                    self.txtSDRPlaySer.set_text(config[\"SDRPlaySer\"])\n                if (\"SDRPlayAnt\" in config):\n                    self.cbxSDRPlayAnt.set_active_id(\"ant\"+config[\"SDRPlayAnt\"])\n                self.cbLog.set_active(config[\"LogToFile\"])\n                if (\"DLoadArt\" in config):\n                    self.cbCovers.set_active(config[\"DLoadArt\"])\n                if (\"StationArt\" in config):\n                    self.cbCoverIncl.set_active(config[\"StationArt\"])\n                if (\"ExtendQ\" in config):\n                    self.cbExtend.set_active(config[\"ExtendQ\"])\n                if (\"UseIP\" in config):\n                    self.cbDevIP.set_active(config[\"UseIP\"])\n                if (\"DevIP\" in config):\n                    self.txtDevIP.set_text(config[\"DevIP\"])\n                self.bookmarks = config[\"Bookmarks\"]\n                for bookmark in self.bookmarks:\n                    self.lsBookmarks.append(bookmark)\n        except:\n            self.debugLog(\"Error: Unable to load config\", True)\n        \n        # create cfg directory\n        if (not os.path.isdir(cfgDir)):\n            try:\n                os.mkdir(cfgDir)\n                self.debugLog(\"Needed to create config directory!\")\n            except:\n                self.debugLog(\"Error: Unable to create config directory\", True)\n                cfgDir = None\n\n        # create aas directory\n        if (not os.path.isdir(aasDir)):\n            try:\n                os.mkdir(aasDir)\n            except:\n                self.debugLog(\"Error: Unable to create AAS directory\", True)\n                aasDir = None\n        \n        # create map directory\n        if (not os.path.isdir(mapDir)):\n            try:\n                os.mkdir(mapDir)\n            except:\n                self.debugLog(\"Error: Unable to create Map directory\", True)\n                mapDir = None\n        \n        # open log file\n        try:\n            # Close existing logFile to prevent memory leak before opening new one\n            if hasattr(self, 'logFile') and self.logFile is not None and not self.logFile.closed:\n                self.logFile.close()\n            self.logFile = open(\"nrsc5.log\", mode='a')\n        except:\n            self.debugLog(\"Error: Unable to create log file\", True) \n    \n    def shutdown(self, *args):\n        global cfgDir\n        # stop map viewer animation if it's running\n        if (self.mapViewer is not None and self.mapViewer.animateTimer is not None):\n            self.mapViewer.animateTimer.cancel()\n            self.mapViewer.animateStop = True\n            \n            while (self.mapViewer.animateBusy):\n                self.debugLog(\"Animation Busy - Stopping\")\n                if (self.mapViewer.animateTimer is not None):\n                    self.mapViewer.animateTimer.cancel()\n                time.sleep(0.25)\n        \n        self.playing = False\n        \n        # kill nrsc5 if it's running\n        if (self.nrsc5 is not None and not self.nrsc5.poll()):\n            self.nrsc5.kill()\n        \n        # shut down status timer if it's running\n        if (self.statusTimer is not None):\n            self.statusTimer.cancel()\n        \n        # wait for player thread to exit\n        if (self.playerThread is not None and self.playerThread.is_alive()):\n            self.playerThread.join(1)\n        \n        # close log file if it's enabled\n        if (self.logFile is not None):\n            self.logFile.close()\n        \n        # save settings\n        try:\n            with open(os.path.join(cfgDir,\"config.json\"), mode='w') as f:\n                winX, winY = self.mainWindow.get_position()\n                width, height = self.mainWindow.get_size()\n                config = {\n                    \"CfgVersion\": \"1.1.0\",\n                    \"WindowX\"   : winX,\n                    \"WindowY\"   : winY,\n                    \"Width\"     : width,\n                    \"Height\"    : height,\n                    \"Frequency\" : self.spinFreq.get_value(),\n                    \"Stream\"    : int(self.streamNum)+1,\n                    \"Gain\"      : self.spinGain.get_value(),\n                    \"AutoGain\"  : self.cbAutoGain.get_active(),\n                    \"PPMError\"  : int(self.spinPPM.get_value()),\n                    \"RTL\"       : int(self.spinRTL.get_value()),\n                    \"DevIP\"     : self.txtDevIP.get_text(),\n                    \"SDRRadio\"   : self.cbxSDRRadio.get_active_text(),\n                    \"SDRPlaySer\" : self.txtSDRPlaySer.get_text(),\n                    \"SDRPlayAnt\" : self.cbxSDRPlayAnt.get_active_text(),\n                    \"LogToFile\" : self.cbLog.get_active(),\n                    \"DLoadArt\"  : self.cbCovers.get_active(),\n                    \"StationArt\" : self.cbCoverIncl.get_active(),\n                    \"ExtendQ\"   : self.cbExtend.get_active(),\n                    \"UseIP\"     : self.cbDevIP.get_active(),\n                    \"Bookmarks\" : self.bookmarks,\n                    \"MapData\"   : self.mapData,\n                }\n                # sort bookmarks\n                config[\"Bookmarks\"].sort(key=lambda t: t[2])\n                \n                json.dump(config, f, indent=2)\n            \n            with open(os.path.join(cfgDir,\"stationLogos.json\"), mode='w') as f:\n                json.dump(self.stationLogos, f, indent=2)\n\n            with open(os.path.join(cfgDir,\"coverMetas.json\"), mode='w') as f:\n                json.dump(self.coverMetas, f, indent=2)\n        except Exception as e:\n            try:\n                print(e.message, e.args)\n            except:\n                print(e)\n            self.debugLog(\"Error: Unable to save config\", True)\n    \n    def addWeatherMap(self, mapFile):\n        \"\"\"Add a weather map file and maintain size limit\"\"\"\n        self.weatherMaps.append(mapFile)\n        \n        # Limit the size of weatherMaps list to prevent unbounded growth\n        if len(self.weatherMaps) > self.maxWeatherMaps:\n            # Remove oldest maps from the list\n            self.weatherMaps = self.weatherMaps[-self.maxWeatherMaps:]\n    \n    def debugLog(self, message, force=False):\n        if (debugMessages or force):\n            now = datetime.datetime.now()\n            print (now.strftime(\"%b %d %H:%M:%S : \") + message)\n\nclass NRSC5_SLPopup(object):\n    def __init__(self, parent, callback, data):\n        global resDir\n        # setup gui\n        builder = Gtk.Builder()\n        builder.add_from_file(os.path.join(resDir,\"entryForm.glade\"))\n        builder.connect_signals(self)\n\n        self.parent        = parent\n        self.callback      = callback\n        self.data          = data\n        \n        # get the controls\n        self.entryWindow    = builder.get_object(\"entryWindow\")\n        self.txtEntry       = builder.get_object(\"txtEntry\")\n        self.btn_cancel     = builder.get_object(\"btn_cancel\")\n        self.btn_ok         = builder.get_object(\"btn_ok\")\n\n        self.entryWindow.connect(\"delete-event\", self.on_entryWindow_delete)\n\n    def on_cleanup(self, btn):\n        if (btn == self.btn_cancel):\n            self.txtEntry.set_text('')\n        self.entryWindow.close()\n\n    def on_entryWindow_delete(self, *args):\n        self.callback()                                                             # run the callback    \n\nclass NRSC5_Map(object):\n    def __init__(self, parent, callback, data):\n        global resDir\n        # setup gui\n        builder = Gtk.Builder()\n        builder.add_from_file(os.path.join(resDir,\"mapForm.glade\"))\n        builder.connect_signals(self)\n        \n        self.parent         = parent                                                # parent class\n        self.callback       = callback                                              # callback function\n        self.data           = data                                                  # map data\n        self.animateTimer   = None                                                  # timer used to animate weather maps\n        self.animateBusy    = False\n        self.animateStop    = False\n        self.weatherMaps    = parent.weatherMaps                                    # list of weather maps sorted by time \n        self.mapIndex       = 0                                                     # the index of the next weather map to display\n        \n        # get the controls\n        self.mapWindow      = builder.get_object(\"mapWindow\")\n        self.imgMap         = builder.get_object(\"imgMap\")\n        self.radMapWeather  = builder.get_object(\"radMapWeather\")\n        self.radMapTraffic  = builder.get_object(\"radMapTraffic\")\n        self.chkAnimate     = builder.get_object(\"chkAnimate\")\n        self.chkScale       = builder.get_object(\"chkScale\")\n        self.spnSpeed       = builder.get_object(\"spnSpeed\")\n        self.adjSpeed       = builder.get_object(\"adjSpeed\")\n        self.imgKey         = builder.get_object(\"imgKey\")\n\n        self.imgKey.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"radar_key.png\")))\n        self.mapWindow.connect(\"delete-event\", self.on_mapWindow_delete)\n        \n        self.config = data[\"viewerConfig\"]                                          # get the map viewer config\n        self.mapWindow.resize(*self.config[\"windowSize\"])                           # set the window size\n        self.mapWindow.move(*self.config[\"windowPos\"])                              # set the window position\n        if (self.config[\"mode\"] == 0):\n            self.radMapTraffic.set_active(True)                                     # set the map radio buttons\n        elif (self.config[\"mode\"] == 1):\n            self.radMapWeather.set_active(True)\n        self.setMap(self.config[\"mode\"])                                            # display the current map\n        \n        self.chkAnimate.set_active(self.config[\"animate\"])                          # set the animation mode\n        self.chkScale.set_active(self.config[\"scale\"])                              # set the scale mode\n        self.spnSpeed.set_value(self.config[\"animationSpeed\"])                      # set the animation speed\n    \n    def on_radMap_toggled(self, btn):\n        if (btn.get_active()):\n            if (btn == self.radMapTraffic):\n                self.config[\"mode\"] = 0\n                self.imgKey.set_visible(False)\n                \n                # CRITICAL FIX: Properly cancel and clear timer\n                if (self.animateTimer is not None):\n                    self.animateTimer.cancel()\n                    self.animateTimer = None\n                \n                self.setMap(0)\n                \n            elif (btn == self.radMapWeather):\n                self.config[\"mode\"] = 1\n                self.imgKey.set_visible(True)\n                \n                # CRITICAL FIX: Cancel any existing timer first\n                if (self.animateTimer is not None):\n                    self.animateTimer.cancel()\n                    self.animateTimer = None\n                \n                # check if animate is enabled and start animation\n                if (self.config[\"animate\"]):\n                    self.animateTimer = Timer(0.05, self.animate)\n                    self.animateTimer.start()\n                else:\n                    self.setMap(1)\n    \n    def on_chkAnimate_toggled(self, btn):\n        self.config[\"animate\"] = self.chkAnimate.get_active()\n        \n        # CRITICAL FIX: Always cancel existing timer first\n        if (self.animateTimer is not None):\n            self.animateTimer.cancel()\n            self.animateTimer = None\n        \n        if (self.config[\"animate\"] and self.config[\"mode\"] == 1):\n            # start animation\n            self.animateTimer = Timer(self.config[\"animationSpeed\"], self.animate)\n            self.animateTimer.start()\n        else:\n            # animation already stopped above\n            self.mapIndex = len(self.weatherMaps)-1\n            self.setMap(self.config[\"mode\"])\n    \n    def on_chkScale_toggled(self, btn):\n        self.config[\"scale\"] = btn.get_active()\n        if (self.config[\"mode\"] == 1):\n            if (self.config[\"animate\"]):\n                i = len(self.weatherMaps)-1 if (self.mapIndex-1 < 0) else self.mapIndex-1               # get the index for the current map in the animation\n                self.showImage(self.weatherMaps[i], self.config[\"scale\"])                               # show the current map in the animation\n            else:\n                self.showImage(self.data[\"weatherNow\"], self.config[\"scale\"])                           # show the most recent map\n    \n    def on_spnSpeed_value_changed(self, spn):\n        self.config[\"animationSpeed\"] = self.adjSpeed.get_value()                                       # get the animation speed\n    \n    def on_mapWindow_delete(self, *args):\n        # cancel the timer if it's running\n        if (self.animateTimer is not None):\n            self.animateTimer.cancel()\n            self.animateStop = True\n        \n        # wait for animation to finish\n        while (self.animateBusy):\n            self.parent.debugLog(\"Waiting for animation to finish\")\n            if (self.animateTimer is not None):\n                self.animateTimer.cancel()\n            time.sleep(0.25)\n        \n        self.config[\"windowPos\"]  = self.mapWindow.get_position()                                       # store current window position\n        self.config[\"windowSize\"] = self.mapWindow.get_size()                                           # store current window size\n        self.callback()                                                                                 # run the callback\n    \n    def animate(self):\n        global imgLANCZOS\n        fileName = self.weatherMaps[self.mapIndex] if len(self.weatherMaps) else \"\"\n        if (os.path.isfile(fileName)):\n            self.animateBusy = True\n            \n            # CRITICAL FIX: Cancel existing timer before creating new one\n            if (self.animateTimer is not None):\n                self.animateTimer.cancel()\n                self.animateTimer = None\n\n            try:\n                if (self.config[\"scale\"]):\n                    with Image.open(fileName) as img:\n                        resized = img.resize((600,600), imgLANCZOS)\n                        mapImg = imgToPixbuf(resized)\n                        del resized  # Explicit cleanup\n                else:\n                    with Image.open(fileName) as img:\n                        img_copy = img.copy()\n                        mapImg = imgToPixbuf(img_copy)\n                        del img_copy  # Explicit cleanup\n             \n                if (self.config[\"animate\"] and self.config[\"mode\"] == 1 and not self.animateStop):\n                    self.imgMap.set_from_pixbuf(mapImg)\n                    del mapImg  # Free pixbuf memory\n                    \n                    self.mapIndex += 1\n                    if (self.mapIndex >= len(self.weatherMaps)):\n                        self.mapIndex = 0\n                        self.animateTimer = Timer(2, self.animate)\n                    else:\n                        self.animateTimer = Timer(self.config[\"animationSpeed\"], self.animate)\n                     \n                    self.animateTimer.start()\n                else:\n                    del mapImg\n                    self.animateTimer = None\n            finally:\n                # Always reset busy flag\n                self.animateBusy = False\n        else:\n            self.chkAnimate.set_active(False)\n            self.mapIndex = 0\n    \n    def showImage(self, fileName, scale):\n        global imgLANCZOS\n        \n        if (os.path.isfile(fileName)):\n            try:\n                if (scale):\n                    with Image.open(fileName) as img:\n                        mapImg = img.resize((600,600), imgLANCZOS)\n                        pixbuf = imgToPixbuf(mapImg)\n                        self.imgMap.set_from_pixbuf(pixbuf)\n                        del mapImg\n                        del pixbuf\n                else:\n                    with Image.open(fileName) as img:\n                        img_copy = img.copy()\n                        pixbuf = imgToPixbuf(img_copy)\n                        self.imgMap.set_from_pixbuf(pixbuf)\n                        del img_copy\n                        del pixbuf\n            except Exception as e:\n                print(f\"Error loading image {fileName}: {e}\")\n                self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n        else:\n            self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n    \n    def setMap(self, map):\n        global mapDir\n        if (map == 0):\n            self.showImage(os.path.join(mapDir, \"TrafficMap.png\"), False)                    # show traffic map\n        elif (map == 1):\n            self.showImage(self.data[\"weatherNow\"], self.config[\"scale\"])                    # show weather map\n    \n    def updated(self, imageType):\n        if   (self.config[\"mode\"] == 0):\n            self.setMap(0)\n        elif (self.config[\"mode\"] == 1):\n            self.setMap(1)\n            self.mapIndex = len(self.weatherMaps)-1\n\ndef dtToTs(dt):\n    # convert datetime to timestamp\n    return int((dt - datetime.datetime(1970, 1, 1, tzinfo=tz.tzutc())).total_seconds())\n\ndef tsToDt(ts):\n    # convert timestamp to datetime\n    return datetime.datetime.utcfromtimestamp(ts)\n\ndef imgToPixbuf(img):\n    # convert PIL.Image to gdk.pixbuf\n    img_bytes = img.tobytes()\n    data = GLib.Bytes.new(img_bytes)\n    pixbuf = GdkPixbuf.Pixbuf.new_from_bytes(data, GdkPixbuf.Colorspace.RGB, 'A' in img.getbands(),\n                                           8, img.width, img.height, len(img.getbands())*img.width)\n    del img_bytes\n    del data\n    return pixbuf\n\n\nif __name__ == \"__main__\":\n    # show main window and start main thread\n    nrsc5_dui = NRSC5_DUI()\n    nrsc5_dui.mainWindow.show()\n    if (debugMessages and debugAutoStart):\n        nrsc5_dui.on_btnPlay_clicked(nrsc5_dui)\n\n    Gtk.main()\n"
  },
  {
    "path": "README.md",
    "content": "NRSC5-DUI is a graphical interface for [nrsc5](https://github.com/theori-io/nrsc5). It makes it easy to play your favorite FM HD radio stations using an RTL-SDR or SDRPlay dongle. It will also display weather radar and traffic maps found on most iHeart radio stations.\n\nThis version is really a fork of a fork of the original nrsc5-gui: The first was developed by [cmnybo](https://github.com/cmnybo/nrsc5-gui) and subsequently modified by [zefie](https://github.com/zefie/nrsc5-gui). It merges the features of the former to the architecture of the latter, while adding several additional control and display features.\n\nAs such, we have changed the name to 'DUI' as a play on the Italian word for 'two', this being a second generation graphical user interface for nrsc5. (I'll be here all week. Please tip your waitresses.)\n\n# Dependencies\n\nThe following programs are required to run NRSC5-DUI\n\n* [Python 3](https://www.python.org/downloads/release)\n* [PyGObject](https://pygobject.readthedocs.io/en/latest/)\n* [Pillow](https://pillow.readthedocs.io/en/stable/)\n* [NumPy](http://www.numpy.org)\n* [Python Dateutil](https://pypi.org/project/python-dateutil)\n* [urllib3](https://pypi.org/project/urllib3)\n* [pyOpenSSL](https://pypi.org/project/pyOpenSSL)\n* [musicbrainzngs](https://pypi.org/project/musicbrainzngs)\n* [nrsc5 for RTL_SDR only](https://github.com/theori-io/nrsc5) or [nrsc5 for SDRPlay](https://github.com/fventuri/nrsc5)\n\nIt is also assumed you have a fully operational Gtk3 environment installed from [Homebrew](https://brew.sh/), if running on macOS.\n\n# Setup\n1. Install the latest version of Python, PyGObject, Pillow, and other python dependencies. Once Python is installed, you may install the dependencies by giving the command `pip install -r <path_to requirements.txt>`  \n2. Compile and install nrsc5. If using an SDRPlay, you must compile and install the version provided by [fventuri](https://github.com/fventuri/nrsc5).  \n3. Install nrsc5-dui files in a directory where you have write permissions.  \n4. Optional: To use either the `macOS arm64` or `linux intel x86_64` binary version of nrsc5-dui, download the the appropriate file from the [Releases page](https://github.com/markjfine/nrsc5-dui/releases). Uncompress it and copy the file `nrsc5-dui` to the same directory where `nrsc5-dui.py` resides. Note that the macOS version has only been tested on a MacBook Pro with an Apple M1 chip, running Tahoe 26.3 in an arm64 architecture. Similarly, the linux version has only been tested on a Lenovo Legion 5 Pro with a 12th Gen Intel Core i7 chip, running Fedora 43 in an x86_64 architecture. Your mileage may vary.  \n\nThe configuration and resource directories will be created in a new `cfg` and `res` directory under where nrsc5-dui.py resides. Similarly, an `aas` directory will be created for downloaded files and a `map` directory will be created to store weather & traffic maps. The `aas`, `cfg`, and `map` directories may optionally be created in a separate user-defined path as specified within a `$NRSC5DUI_DATA` environment variable.\n\nnrsc5 should be installed in a directory that is in your `$PATH` environment variable. Otherwise the full path to nrsc5 (e.g., `/usr/local/bin/`) may be entered at runtime (see Usage for details, below).\n\n## Windows 10/11 setup notes\nOne of the goals of this project was to provide a stand-alone, cross-platform application. Please note that NRSC5-DUI will not operate natively in this manner under Windows 10 at this time. This is even when built under a MinGW environment (such as MSYS2) or cross-compiled using MinGW-compatible compilers. The issues found are as follows:  \n  \n1. The resulting RTL_SDR library used by NRSC5.EXE doesn't seem to work correctly with respect to communicating with the RTL-SDR dongle, as well as any appropriate signal detection and bit error rate evaluation. There has been some success in getting NRSC5.EXE to run using the -H option when the dongle is operating under RTL_TCP on another platform, but again, that's outside a stand-alone operating environment. There is also a question of whether NRSC5.EXE responds to keyboard input properly under a MinGW-environment, which may preclude changing streams (`0` thru `3` keypress) as well as exiting it properly (`q`keypress) without typing Ctrl-C.  \n2. PyGObject, which is a critical module, seems to require an older version of Microsoft C/C++ in order to properly build the gi library. This is true when trying to install it using either `pip` or `pacman`, however, some have had success installing PyGObject using `conda`.  \n3. Win10, which is not Posix-compliant, does not provide a good pty solution under Python. This is required to spawn and interact with NRSC5.EXE via a pipe. WinPty does exist as an alternative, however it requires a complete rewrite of how the current version of NRSC5-DUI operates. This does not appear to be an issue when running under a MinGW environment.  \n  \nThe bottom line is that some have had success installing and running the application and it's dependencies under specific MinGW environments such as WSL2, but may still require the dongle to operate under RTL_TCP and not directly via NRSC5.EXE. Some legacy Windows executables and libraries have been provided in the `bin` directory for those that wish to experiment further. Feel free to use them at your own risk.\n\n### Usage under Windows Subsystem for Linux (WSL2)\nStephen Ferrell has graciously taken a look at stability issues when running under WSL2g. Specifically, the application would run for ~3 hours until which time the audio would start skipping and the interface would freeze. He used Claude Code to isolate the issues and was extremely successful tracking down several issues impacting nrsc5-dui operation.  \nIf skipping is still experienced, Stephen recommends disabling the time sync due to a known conflict between the WSL2 backend (PulseAudio) and the Windows host. This can be done by entering:  \n`sudo systemctl stop systemd-timesyncd`  \nIf this works, you can permanently disable it with:  \n`sudo systemctl disable systemd-timesyncd`  \nIf the issue still persists, try adjusting the PulseAudio configuration within your Linux distribution. This can be done by editing the configuration file `/etc/pulse/daemon.conf` and adding/updating the following lines:  \n```\nhigh-priority = yes\nnice-level = -15\ndefault-fragments = 8\ndefault-fragment-size-msec = 10\n```\nOnce the configuration file is edited, kill PulseAudio by entering `pulseaudio -k` and let it restart automatically.  \nYou are cautioned that both PulseAudio and pipewire implementations have been known to be buggy under WSL2. Although the above suggestions will improve things, choppy audio may still occur at some point. The only solution is to close and restart nrsc5-dui.\n\n### Usage under MSYS2/Cygwin\nMuch of the audio skipping problems associated with WSL2 can be avoided by using a version of nrsc5-dui specifically modified by Stephen Ferrell for use under MSYS2/Cygwin. The MSYS2-specific version can be found in the MSYS2 directory. It has been tested for over 36 hours under MSYS2 on Windows 11 without any audio issues. It includes all the features of nrsc5-dui with none of the reliance on Posix-compliant dependencies, such as tty.  \nIt is recommended that you install each of the dependencies using MSYS2 pacman. As an example:  \n`pacman -S mingw-w64-x86_64-python-numpy`  \nThis may not work correctly for musicbrainz, which under a managed environment should be installed using pip as follows:  \n`pip install musicbrainzngs --break-system-packages`  \nFor those that wish to create a quick-launch CMD file, simply create a CMD file and add the following line:  \n`C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -here -c /c/msys64/home/<user name>/<nrsc5-dui directory>/nrsc5-dui-msys2.py`  \nRemember to change `<user name>` to your user name, and `<nrsc5-dui directory>` to the directory where nrsc5-dui-msys2.py resides. The CMD file could then be double-clicked to launch the application.\n\n# Usage\nPlease ensure your RTL-SDR dongle or SDRPlay is first connected to an available USB port. Then, from the terminal, start nrsc5-dui by entering:  \n`python3 nrsc5-dui.py`  \nor something like:  \n`python3 nrsc5-dui.py /usr/local/bin/`  \nThe latter includes the path to nrsc5 when using scripts (like Apple Script) that seemingly ignore the environment.  \nYou may optionally use the binary version by running it without `python3` or the `.py` extension as follows:  \n`nrsc5-dui /usr/local/bin/`\n\n## Settings\nYou may first change some optional parameters of how nrsc5 works from the Settings tab in nrsc5-dui:  \nSet the radio you are using to either RTL_SDR or SDRPlay.  \nSet the gain to Auto, or optionally enter an RF gain in dB that has known to work well for some stations.  \nEnter a PPM correction value if your RTL-SDR dongle has an offset.  \n\nIf using an RTL_SDR:  \nEnter the number of the desired device if you have more than one RTL-SDR dongle.  \nEnter the IP address that rtl_tcp is listening to and check the Enabled box if you are using a remote RTL-SDR.  \n\nIf using an SDRPlay:  \nEnter the serial number of the SDRPlay.  \nEnter the antenna port used by the SDRPlay.  \n\nOther settings:  \nCheck `Log to file` to enable writing debug information from nrsc5 to nrsc5.log.  \nCheck `Download Album Art` to enable automated downloading of album art from MusicBrainz.  \nCheck `Include Station Art` to display album art that is generated by the station in addition to downloading from MusicBrainz.  \nCheck `Extended Queries` to apply several MusicBrainz queries to find album art. Turning this option on may be slower than non-extended queries.\n\n## Playing\nEnter the frequency in MHz of the station you want to play and either click the triangular Play button on the toolbar, or just hit return. When the receiver attains synchronization, the pilot in the lower left corner of the status bar will turn green. It will return to gray if synchronization is lost. If the device itself becomes 'lost', the pilot will turn red to indicate an error has occurred (this is the theory, though I've yet to see this status message happen in practice). The synchronization process may take about 10 seconds, and the station will begin to play. This depends upon signal strength and whether it's relatively free from adjacent interference. After a short while, the station name will appear to the right of the frequency, and the available streams will show on the two rows of buttons just beneath the frequency entry. Clicking one of these buttons will change to that particular stream. Note: No settings other than stream may be changed while the device is playing. \n\n## Album Art & Track Info\nSome stations will send album art and station logos. These will fill the Album Art tab, as they are made available by the station. Most stations will send the song title, artist, album, and genre. These are displayed in the Track Info pane, also if available.\nThe user can override what the stations send by enabling the DL Album Art setting. This will use the Title and Artist information to retrieve album art from MusicBrainz. If no album art is found, the station logo will be used, if available. The title, artist, album, and genre (if available) will be cached when new album art is found, and will be automatically displayed when that art is used.\nThe user can change the logo of the playing station by right-clicking in the Album Art area. This will display a popup prompting you for the URL of an image found on the web. Pasting the URL in the box and clicking 'Ok' will download the image and set the logo of the playing station with it.\n\n## Bookmarks\nWhen a station is playing, you can click the Bookmark Station button to add it to the bookmarks list. You can click on the Name in the bookmarks list to edit it. Double click the Station to tune to that particular station and stream. Click the Delete Bookmark button to delete it. Note that some stations use the default MPS/SPS or HDn naming for their streams. In this case, the respective bookmark will be used to name the stream button.\n\n## Station Info\nThe station name, slogan, message, and optional alert message will display if the station as pre-programmed them. The current audio bit rate will be displayed here as well as on the status bar. The station's available streams and data services, with a description of each will display, as the station has pre-programmed them. This is a useful feature for noting which stations have [Total Traffic & Weather Network](https://www.ttwnetwork.com/) traffic and weather images.\n\n### Signal Strength\nThe Modulation Error Ratio for the lower and upper sidebands are displayed as they are determined. Important: High MER values for both sidebands indicates a strong signal. The current, average, minimum and maximum Bit Error Rates will also be displayed as they are determined. High BER values will cause the audio to glitch or drop out. The current BER is also shown on the status bar and may be used as a tuning tool.\n\nNote: The nrsc5 application initially operates on an inverted spectrum for FM signals, using the terms 'lower' and 'upper' to report the MER of the sidebands in a reversed state. The resulting MER values will therefore appear reversed from what a user would see on a standard spectrum display.\n\n## Maps\nWhen listening to radio stations operated by [iHeartMedia](http://iheartmedia.com/iheartmedia/stations), you may view live traffic maps and weather radar. The images are typically sent every few minutes and will fill the tab area once received, processed, and loaded. Clicking the Map Viewer button on the toolbar will open a larger window to view the maps at full size. The weather radar information from the last 12 hours will be stored and can be played back by selecting the Animate Radar option. The delay between frames (in seconds) can be adjusted by changing the Animation Speed value. Other stations provide [Navteq/HERE](https://www.here.com) navigation and weather information which is also displayed. Note that the display of Navteq/HERE data requires the use of nrsc5 v3.00.\n\n### Map Customization\nThe default map used for the weather radar comes from [OpenStreetMap](https://www.openstreetmap.org). You can replace the map.png image with a map from any website that will let you export map tiles. The tiles used are (35,84) to (81,110) at zoom level 8. The image is 12032x6912 pixels. The portion of the map used for your area is cached in the map directory. If you change the map image, you will have to delete the BaseMap images in the map directory so they will be recreated with the new map. \n\n## Screenshots\n![album art tab](https://raw.githubusercontent.com/markjfine/nrsc5-dui/master/screenshots/Album_Art_Tab.png \"Album Art Tab\")\n![info tab](https://raw.githubusercontent.com/markjfine/nrsc5-dui/master/screenshots/Info_Tab.png \"Info Tab\")\n![settings tab](https://raw.githubusercontent.com/markjfine/nrsc5-dui/master/screenshots/Settings_Tab.png \"Settings Tab\")\n![bookmarks tab](https://raw.githubusercontent.com/markjfine/nrsc5-dui/master/screenshots/Bookmarks_Tab.png \"Bookmarks Tab\")\n![map tab](https://raw.githubusercontent.com/markjfine/nrsc5-dui/master/screenshots/Map_Tab.png \"Map Tab\")\n\n## Version History\n1.0.0 Initial Release  \n1.0.1 Fixed compatibility with display scaling  \n1.1.0 Added weather radar and traffic map viewer  \n1.2.0 zefie update to modern nrsc5 build  \n2.0.0 Updated to use the nrsc5 API  \n2.1.0 Updated and enhanced operation and use  \n2.2.0 Updated for use with SDRPlay and operates with up to 8 possible audio channels (per nrsc5 spec) \n"
  },
  {
    "path": "nrsc5-dui.py",
    "content": "#!/usr/bin/python3\n# -*- coding: utf-8 -*-\n\n#    NRSC5 DUI - A graphical interface for nrsc5\n#    Copyright (C) 2017-2019  Cody Nybo & Clayton Smith, 2019 zefie, 2021-26 Mark J. Fine\n#\n#    This program is free software: you can redistribute it and/or modify\n#    it under the terms of the GNU General Public License as published by\n#    the Free Software Foundation, either version 3 of the License, or\n#    (at your option) any later version.\n#\n#    This program is distributed in the hope that it will be useful,\n#    but WITHOUT ANY WARRANTY; without even the implied warranty of\n#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n#    GNU General Public License for more details.\n#\n#    You should have received a copy of the GNU General Public License\n#    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#    Updated by zefie for modern nrsc5 ~ 2019\n#    Updated and enhanced by markjfine ~ 2021-26\n#    Stability enhancements by ferrellsl ~ 2026\n\nimport os, pty, select, sys, shutil, re, json, datetime, numpy, glob, time, platform, io\nfrom subprocess import Popen, PIPE\nfrom threading import Timer, Thread\nfrom dateutil import tz\nfrom PIL import Image, ImageFont, ImageDraw, __version__\nimport gc\n\nprint('Using Pillow v'+__version__)\n\nif (int(__version__[0]) < 9):\n    imgLANCZOS = Image.LANCZOS\nelse:\n    imgLANCZOS = Image.Resampling.LANCZOS\n\nimport gi\ngi.require_version(\"Gtk\", \"3.0\")\nfrom gi.repository import Gtk, GObject, Gdk, GdkPixbuf, GLib\n\nimport urllib3\nfrom OpenSSL import SSL\n\nimport musicbrainzngs\n\n# print debug messages to stdout (if debugger is attached)\ndebugMessages = (sys.gettrace() != None)\ndebugAutoStart = True\n\nif hasattr(sys, 'frozen'):\n    runtimeDir = os.path.dirname(sys.executable)  # for py2exe\nelse:\n    runtimeDir = sys.path[0]\n\nif \"NRSC5DUI_DATA\" in os.environ:\n    userDataDir = os.environ[\"NRSC5DUI_DATA\"]\n    os.makedirs(userDataDir, exist_ok=True)\nelse:\n    userDataDir = runtimeDir\n\naasDir = os.path.join(userDataDir, \"aas\")  # aas (data from nrsc5) file directory\nmapDir = os.path.join(userDataDir, \"map\")  # map (data we process) file directory\nresDir = os.path.join(runtimeDir, \"res\")   # resource (application dependencies) file directory\ncfgDir = os.path.join(userDataDir, \"cfg\")  # config file directory\n\nclass NRSC5_DUI(object):\n    def __init__(self):\n        global runtimeDir, userDataDir, resDir, imgLANCZOS\n\n        self.windowsOS = False          # save our determination as a var in case we change how we determine.\n\n        self.debugLog(\"Local path determined as \" + runtimeDir)\n        self.debugLog(\"User data base directory: \" + userDataDir)\n\n        if (platform.system() == 'Windows'):\n            # Windows release layout\n            self.windowsOS = True\n            self.binDir = os.path.join(runtimeDir, \"bin\")  # windows binaries directory\n            self.nrsc5Path = os.path.join(self.binDir,'nrsc5.exe')\n        else:\n            # Linux/Mac/proper posix\n            # if nrsc5 and transcoder are not in the system path, set the full path here\n            arg1 = \"\"\n            if (len(sys.argv[1:]) > 0):\n                arg1 = sys.argv[1].strip()\n            self.nrsc5Path = arg1+\"nrsc5\"\n \n        self.debugLog(\"OS Determination: Windows = {}\".format(self.windowsOS))\n\n        self.app_name       = \"NRSC5-DUI\"\n        self.version        = \"2.2.6\"\n        self.web_addr       = \"https://github.com/markjfine/nrsc5-dui\"\n        self.copyright      = \"Copyright © 2017-2019 Cody Nybo & Clayton Smith, 2019 zefie, 2021-26 Mark J. Fine\"\n        musicbrainzngs.set_useragent(self.app_name,self.version,self.web_addr)\n\n        self.width          = 0         # window width\n        self.height         = 0         # window height\n        self.mapFile        = os.path.join(resDir, \"map.png\")\n        self.defaultSize    = [490,250] # default width,height of main app\n        self.nrsc5          = None      # nrsc5 process\n        self.nrsc5master    = None      # required for pipe\n        self.nrsc5slave     = None      # required for pipe\n        self.playerThread   = None      # player thread\n        self.playing        = False     # currently playing\n        self.statusTimer    = None      # status update timer\n        self.imageChanged   = False     # has the album art changed\n        self.xhdrChanged    = False     # has the HDDR data changed\n        self.nrsc5Args      = []        # arguments for nrsc5\n        self.logFile        = None      # nrsc5 log file\n        self.lastImage      = \"\"        # last image file displayed\n        self.coverImage     = \"\"        # cover image to display\n        self.id3Changed     = False     # if the track info changed\n        self.lastXHDR       = \"\"        # the last XHDR data received\n        self.lastLOT        = \"\"        # the last LOT received with XHDR\n        self.stationStr     = \"\"        # current station frequency (string)\n        self.streamNum      = 0         # current station stream number\n        self.nrsc5msg       = \"\"        # send key command to nrsc5 (streamNum)\n        self.update_btns    = True      # whether to update the stream buttons\n        self.bookmarks      = []        # station bookmarks\n        self.booknames      = [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] # station bookmark names\n        self.stationLogos   = {}        # station logos\n        self.coverMetas     = {}        # cover metadata\n        self.bookmarked     = False     # is current station bookmarked\n        self.mapViewer      = None      # map viewer window\n        self.weatherMaps    = []        # list of current weathermaps sorted by time\n        self.waittime       = 10        # time in seconds to wait for file to exist\n        self.waitdivider    = 4         # check this many times per second for file\n        self.pixbuf         = None      # store image buffer for rescaling on resize\n        self.tLat1          = 0.0       # store upper left lat of HERE traffic image\n        self.tLat2          = 0.0       # store lower right lat of HERE traffic image\n        self.mimeTypes      = {         # as defined by iHeartRadio anyway, defined here for possible future use\n            \"4F328CA0\":[\"image/png\",\"png\"],\n            \"1E653E9C\":[\"image/jpg\",\"jpg\"],\n            \"BB492AAC\":[\"text/plain\",\"txt\"]\n        }\n        self.mapData        = {\n            \"mapMode\"       : 1,\n            \"mapTiles\"      : [[0,0,0],[0,0,0],[0,0,0]],\n            \"mapComplete\"   : False,\n            \"weatherTime\"   : 0,\n            \"weatherPos\"    : [0,0,0,0],\n            \"weatherNow\"    : \"\",\n            \"weatherID\"     : \"\",\n            \"viewerConfig\"  : {\n                \"mode\"           : 1,\n                \"animate\"        : False,\n                \"scale\"          : True,\n                \"windowPos\"      : (0,0),\n                \"windowSize\"     : (764,632),\n                \"animationSpeed\" : 0.5\n            }\n        }\n        self.maxWeatherMaps = 50  # Limit weather map history to prevent unbounded growth\n\n        # Now initialize components in correct order\n        self.getControls()              # get controls and windows\n        self.set_program_btns()         # set the stream buttons (needs GUI widgets)\n        self.initStreamInfo()           # initilize stream info and clear status widgets\n        self.initializeData()           # initialize regex patterns and data structures\n        self.http = urllib3.PoolManager()\n        \n        # Now that GUI is set up, load settings and process maps\n        self.loadSettings()\n        self.proccessWeatherMaps()\n\n    def __del__(self):\n        \"\"\"Destructor to clean up resources and prevent memory leaks\"\"\"\n        try:\n            if hasattr(self, 'http') and self.http is not None:\n                self.http.clear()\n            if hasattr(self, 'statusTimer') and self.statusTimer is not None:\n                self.statusTimer.cancel()\n                self.statusTimer = None\n        except:\n            pass\n\n    def initializeData(self):\n        \"\"\"Initialize regex patterns and data structures\"\"\"\n        self.slPopup        = None      # entry for external station logo URL\n        self.slData = {\n        \"externalURL\"   : \"\"\n        }\n\n        self.ServiceDataType = {\n        0 : \"Non_Specific\",            \n        1 : \"News\",                     \n        3 : \"Sports\",                   \n        29 : \"Weather\",                  \n        31 : \"Emergency\",                \n        65 : \"Traffic\",                  \n        66 : \"Image Maps\",               \n        80 : \"Text\",                     \n        256 : \"Advertising\",              \n        257 : \"Financial\",                \n        258 : \"Stock Ticker\",             \n        259 : \"Navigation\",               \n        260 : \"Electronic Program Guide\", \n        261 : \"Audio\",                    \n        262 : \"Private Data Network\",     \n        263 : \"Service Maintenance\",      \n        264 : \"HD Radio System Services\", \n        265 : \"Audio-Related Objects\",       \n        511 : \"Reserved for Special Tests\"               \n        }\n\n        self.ProgramType = {\n        0 : \"None\",\n        1 : \"News\",\n        2 : \"Information\",\n        3 : \"Sports\",\n        4 : \"Talk\",\n        5 : \"Rock\",\n        6 : \"Classic Rock\",\n        7 : \"Adult Hits\",\n        8 : \"Soft Rock\",\n        9 : \"Top 40\",\n        10 : \"Country\",\n        11 : \"Oldies\",\n        12 : \"Soft\",\n        13 : \"Nostalgia\",\n        14 : \"Jazz\",\n        15 : \"Classical\",\n        16 : \"Rhythm and Blues\",\n        17 : \"Soft Rhythm and Blues\",\n        18 : \"Foreign Language\",\n        19 : \"Religious Music\",\n        20 : \"Religious Talk\",\n        21 : \"Personality\",\n        22 : \"Public\",\n        23 : \"College\",\n        24 : \"Spanish Talk\",\n        25 : \"Spanish Music\",\n        26 : \"Hip-Hop\",\n        29 : \"Weather\",\n        30 : \"Emergency Test\",\n        31 : \"Emergency\",\n        65 : \"Traffic\",\n        76 : \"Special Reading Services\"\n        }\n\n        self.MIMETypes = {\n        0x1E653E9C : \"JPEG\",\n        0x2D42AC3E : \"NavTeq\",\n        0x4F328CA0 : \"PNG\",\n        0x4DC66C5A : \"HDC\",\n        0x4EB03469 : \"TTN TPEG 2\",\n        0x52103469 : \"TTN TPEG 3\",\n        0x82F03DFC : \"HERE TPEG\",\n        0xB39EBEB2 : \"TTN TPEG 1\",\n        0xB7F03DFC : \"HERE Image\",\n        0xB81FFAA8 : \"Unknown Test\",\n        0xBB492AAC : \"Text\",\n        0xBE4B7536 : \"Primary Image\",\n        0xD9C72536 : \"Station Logo\",\n        0xEECB55B6 : \"HD TMC\",\n        0xEF042E96 : \"TTN STM Weather\",\n        0xFF8422D7 : \"TTN STM Traffic\"\n        }\n\n        self.pointer_cursor = Gdk.Cursor(Gdk.CursorType.LEFT_PTR)\n        #       self.hand_cursor = Gdk.Cursor(Gdk.CursorType.HAND2)\n\n        # set events on info labels\n        self.set_tuning_actions(self.btnAudioPrgs0, \"btn_prg0\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs1, \"btn_prg1\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs2, \"btn_prg2\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs3, \"btn_prg3\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs4, \"btn_prg4\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs5, \"btn_prg5\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs6, \"btn_prg6\", False, False)\n        self.set_tuning_actions(self.btnAudioPrgs7, \"btn_prg7\", False, False)\n\n        self.set_tuning_actions(self.lblAudioPrgs0, \"prg0\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs1, \"prg1\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs2, \"prg2\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs3, \"prg3\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs4, \"prg4\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs5, \"prg5\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs6, \"prg6\", True, True)\n        self.set_tuning_actions(self.lblAudioPrgs7, \"prg7\", True, True)\n\n        self.set_tuning_actions(self.lblAudioSvcs0, \"svc0\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs1, \"svc1\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs2, \"svc2\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs3, \"svc3\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs4, \"svc4\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs5, \"svc5\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs6, \"svc6\", True, True)\n        self.set_tuning_actions(self.lblAudioSvcs7, \"svc7\", True, True)\n\n        # setup bookmarks listview\n        nameRenderer = Gtk.CellRendererText()\n        nameRenderer.set_property(\"editable\", True)\n        nameRenderer.connect(\"edited\", self.on_bookmarkNameEdited)\n        \n        colStation = Gtk.TreeViewColumn(\"Station\", Gtk.CellRendererText(), text=0)\n        colName    = Gtk.TreeViewColumn(\"Name\", nameRenderer, text=1)\n\n        colStation.set_resizable(True)\n        colStation.set_sort_column_id(2)\n        colName.set_resizable(True)\n        colName.set_sort_column_id(1)\n        \n        self.lvBookmarks.append_column(colStation)\n        self.lvBookmarks.append_column(colName)\n        \n        # regex for getting nrsc5 output\n        self.regex = [\n        re.compile(\"^[0-9:]{8,8} Station name: (.*)$\"),                                                    #  0 match station name\n        re.compile(\"^[0-9:]{8,8} Station location: (-?[0-9.]+), (-?[0-9.]+), ([0-9]+)m$\"),                 #  1 match station location\n        re.compile(\"^[0-9:]{8,8} Slogan: (.*)$\"),                                                          #  2 match station slogan\n        re.compile(\"^[0-9:]{8,8} Audio bit rate: (.*) kbps$\"),                                             #  3 match audio bit rate\n        re.compile(\"^[0-9:]{8,8} Title: (.*)$\"),                                                           #  4 match title\n        re.compile(\"^[0-9:]{8,8} Artist: (.*)$\"),                                                          #  5 match artist\n        re.compile(\"^[0-9:]{8,8} Album: (.*)$\"),                                                           #  6 match album\n        re.compile(\"^[0-9:]{8,8} LOT file: port=([0-9]+) lot=([0-9]+) name=(.*[.](?:jpg|jpeg|png|txt)) size=([0-9]+) mime=([a-zA-Z0-9_]+).*$\"), #  7 match file (album art, maps, weather info)\n        re.compile(\"^[0-9:]{8,8} MER: (-?[0-9]+[.][0-9]+) dB [(]lower[)], (-?[0-9]+[.][0-9]+) dB [(]upper[)]$\"), #  8 match MER\n        re.compile(\"^[0-9:]{8,8} BER: (0[.][0-9]+), avg: (0[.][0-9]+), min: (0[.][0-9]+), max: (0[.][0-9]+)$\"), #  9 match BER\n        re.compile(\"^[0-9:]{8,8} Best gain: (.*) dB,.*$\"),                                                 # 10 match gain\n        re.compile(\"^[0-9:]{8,8} SIG Service: type=(.*) number=(.*) name=(.*)$\"),                          # 11 match stream\n        re.compile(\"^[0-9:]{8,8} .*Data component:.* id=([0-9]+).* port=([0-9]+).* service_data_type=([0-9]+) .*$\"), # 12 match port (and data_service_type)\n        re.compile(\"^[0-9:]{8,8} XHDR: (.*) ([0-9A-Fa-f]{8}) (.*)$\"),                                      # 13 match xhdr tag\n        re.compile(\"^[0-9:]{8,8} Unique file identifier: PPC;07; ([a-zA-Z0-9_.]+).*$\"),                    # 14 match unique file id\n        re.compile(\"^[0-9:]{8,8} Genre: (.*)$\"),                                                           # 15 match genre\n        re.compile(\"^[0-9:]{8,8} Message: (.*)$\"),                                                         # 16 match message\n        re.compile(\"^[0-9:]{8,8} Alert: (.*)$\"),                                                           # 17 match alert\n        re.compile(\"^[0-9:]{8,8} .*Audio component:.* id=([0-9]+).* port=([0-9]+).* type=([0-9]+) .*$\"),   # 18 match port (and type)\n        re.compile(\"^[0-9:]{8,8} Synchronized$\"),                                                          # 19 synchronized\n        re.compile(\"^[0-9:]{8,8} Lost synchronization$\"),                                                  # 20 lost synch\n        re.compile(\"^[0-9:]{8,8} Lost device$\"),                                                           # 21 lost device\n        re.compile(\"^[0-9:]{8,8} Open device failed.$\"),                                                   # 22 No device\n        re.compile(\"^[0-9:]{8,8} HERE Image: type=([A-Z]{7,7}), seq=([0-9]+), n1=([0-9]+), n2=([0-9]+), time=(.*), lat1=(-?[0-9.]+), lon1=(-?[0-9.]+), lat2=(-?[0-9.]+), lon2=(-?[0-9.]+), name=(.*[.](?:jpg|jpeg|png)), size=([0-9]+)$\"), # 23 Navteq/HERE image info\n        re.compile(\"^[0-9:]{8,8} Packet data: port=([0-9]+).* mime=([a-zA-Z0-9_]+) size=([0-9]+)$\")        # 24 Navteq/HERE packet info\n        ]\n        \n        # set up pty\n        self.nrsc5master,self.nrsc5slave = pty.openpty()\n\n\n    def set_tuning_actions(self, widget, name, has_win, set_curs):\n        widget.set_property(\"name\",name)\n        widget.set_sensitive(False)\n        if has_win:\n            widget.set_has_window(True)\n        widget.set_events(Gdk.EventMask.BUTTON_PRESS_MASK)\n        widget.connect(\"button-press-event\", self.on_program_select)\n        if set_curs:\n            widget.add_events(Gdk.EventMask.ENTER_NOTIFY_MASK)\n            widget.connect(\"enter-notify-event\", self.on_enter_set_cursor)\n\n    def on_enter_set_cursor(self, widget, event):\n        if (widget.get_label() != \"\"):\n            widget.get_window().set_cursor(self.hand_cursor)\n\n    def on_cbCovers_clicked(self, btn):\n        dlCoversSet = self.cbCovers.get_active()\n        self.lblCoverIncl.set_sensitive(dlCoversSet)\n        self.cbCoverIncl.set_sensitive(dlCoversSet)\n        self.lblExtend.set_sensitive(dlCoversSet)\n        self.cbExtend.set_sensitive(dlCoversSet)\n\n    def restart_program(self):\n        python = sys.executable\n        os.execl(python, python, *sys.argv)\n\n    def confirm_dialog(self, title, message):\n        dialog = Gtk.MessageDialog(parent=self.mainWindow, flags=0, message_type=Gtk.MessageType.WARNING, buttons=Gtk.ButtonsType.YES_NO, text=title)\n        dialog.format_secondary_text(message)\n        dialog.set_default_response(Gtk.ResponseType.YES)\n        response = dialog.run()\n        dialog.destroy()\n        return (response == Gtk.ResponseType.YES)\n\n    def on_cbxAspect_changed(self, btn):\n        screenAspect = self.cbxAspect.get_active_text()\n        if (screenAspect == \"narrow\") or (screenAspect == \"wide\"):\n            mainFile = os.path.join(resDir, \"mainForm.glade\")\n            gladeFile = os.path.join(resDir, \"mainForm-\"+screenAspect+\".glade\")\n            if (os.path.isfile(gladeFile)):\n                shutil.copy(gladeFile,mainFile)\n                title = \"Aspect Changed\"\n                message = \"You have change the display layout to \"+screenAspect+\". This change will not happen until the application is restarted. Would you like to restart it now?\"\n                if (self.confirm_dialog(title,message)):\n                    self.restart_program()\n                    \n    def on_cbxSDRRadio_changed(self, btn):\n        useSDRPlay = (self.cbxSDRRadio.get_active_text() == \"SDRPlay\")\n        self.lblSdrPlaySer.set_visible(useSDRPlay)\n        self.txtSDRPlaySer.set_visible(useSDRPlay)\n        self.txtSDRPlaySer.set_can_focus(useSDRPlay)\n        self.label14d.set_visible(useSDRPlay)\n        self.lblSDRPlayAnt.set_visible(useSDRPlay)\n        self.cbxSDRPlayAnt.set_visible(useSDRPlay)\n        self.cbxSDRPlayAnt.set_can_focus(useSDRPlay)\n        self.label14a.set_visible(useSDRPlay)\n        self.lblRTL.set_visible(not(useSDRPlay))\n        self.spinRTL.set_visible(not(useSDRPlay))\n        self.spinRTL.set_can_focus(not(useSDRPlay))\n        self.label14b.set_visible(useSDRPlay)\n        self.lblDevIP.set_visible(not(useSDRPlay))\n        self.txtDevIP.set_visible(not(useSDRPlay))\n        self.txtDevIP.set_can_focus(not(useSDRPlay))\n        self.cbDevIP.set_visible(not(useSDRPlay))\n        self.cbDevIP.set_can_focus(not(useSDRPlay))\n\n    def img_to_pixbuf(self,img):\n        \"\"\"convert PIL.Image to GdkPixbuf.Pixbuf\"\"\"\n        data = GLib.Bytes.new(img.tobytes())\n        return GdkPixbuf.Pixbuf.new_from_bytes(data, GdkPixbuf.Colorspace.RGB, 'A' in img.getbands(),8, img.width, img.height, len(img.getbands())*img.width)\n\n    def did_resize(self):\n        result = False\n        width, height = self.mainWindow.get_size()\n        if (self.width != width) or (self.height != height):\n            self.width = width\n            self.height = height\n            result = True\n        return result\n\n    def on_cover_resize(self, container):\n        global mapDir, imgLANCZOS\n        if (self.did_resize()):\n            self.showArtwork(self.coverImage)\n\n            img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12           \n            if (self.mapData[\"mapMode\"] == 0):\n                map_file = os.path.join(mapDir, \"TrafficMap.png\")\n                if os.path.isfile(map_file):\n                    with Image.open(map_file) as img:\n                        map_img = img.resize((img_size, img_size), imgLANCZOS)\n                    self.imgMap.set_from_pixbuf(self.img_to_pixbuf(map_img))\n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n            elif (self.mapData[\"mapMode\"] == 1):\n                if os.path.isfile(self.mapData[\"weatherNow\"]):\n                    with Image.open(self.mapData[\"weatherNow\"]) as img:\n                        map_img = img.resize((img_size, img_size), imgLANCZOS)\n                    self.imgMap.set_from_pixbuf(self.img_to_pixbuf(map_img))\n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n\n    def id3_did_change(self):\n        oldTitle = self.txtTitle.get_label().strip()\n        oldArtist = self.txtArtist.get_label().strip()\n        newTitle = self.streamInfo[\"Title\"].strip()\n        newArtist = self.streamInfo[\"Artist\"].strip()\n        return ((newArtist != oldArtist) and (newTitle != oldTitle))\n\n    def fix_artist(self):\n        newArtist = self.streamInfo[\"Artist\"]\n        if (\"/\" in newArtist):\n            m = re.search(r\"/\",newArtist)\n            if (m.start() > -1):\n                newArtist = newArtist[:m.start()].strip()\n        return newArtist\n\n    def check_value(self,arg,group,default):\n        result = default\n        if(arg in group):\n            result = group[arg]\n        return result\n\n    def check_terms(self,inStr,terms):\n        result = False\n        for term in terms:\n            result=(term in inStr)\n            if result:\n                break\n        return result\n  \n    def check_musicbrainz_cover(self,inID):\n        result = False\n        imageList = None\n\n        try:\n            imageList = musicbrainzngs.get_image_list(inID)\n        except:\n            print(\"MusicBrainz image list retrieval error for id \"+inID)\n\n        if (imageList is not None) and ('images' in imageList):\n            for (idx, image) in enumerate(imageList['images']):\n                imgTypes = self.check_value('types', image, None)\n                imgApproved = self.check_value('approved', image, \"False\")\n                result = ('Front' in imgTypes) and imgApproved\n                if (result):\n                    break\n        return result\n\n    def save_musicbrainz_cover(self,inID,saveStr):\n        imgData = None\n        result = False\n\n        try:\n            imgData = musicbrainzngs.get_image_front(inID, size=\"500\")\n        except:\n            print(\"MusicBrainz image retrieval error for id \"+inID)\n\n        if (imgData is not None) and (len(imgData) > 0):\n            dataBytes = io.BytesIO(imgData)\n            with Image.open(dataBytes) as img_temp:\n                imgCvr = img_temp.copy()  # Make a copy to persist after close\n            imgCvr.save(saveStr)\n            result = True\n        return result\n\n    def get_cover_image_online(self):\n        global aasDir\n        got_cover = False\n        albumExclude = ['hitzone','now that’s what i call music']\n\n        # only care about the first artist listed if separated by slashes\n        newArtist = self.fix_artist().replace(\"'\",\"’\")\n\n        setExtend = (self.cbExtend.get_sensitive() and self.cbExtend.get_active())\n        searchArtist = newArtist\n        newTitle = self.streamInfo[\"Title\"].replace(\"'\",\"’\")\n        baseStr = str(newArtist+\" - \"+self.streamInfo[\"Title\"]).replace(\" \",\"_\").replace(\"/\",\"_\").replace(\":\",\"_\")+\".jpg\"\n        saveStr = os.path.join(aasDir, baseStr)\n\n        if ((newArtist==\"\") and (newTitle==\"\")):\n            self.displayLogo()\n            self.streamInfo['Album']=\"\"\n            self.streamInfo['Genre']=\"\"\n            return\n\n        # does it already exist?\n        if (os.path.isfile(saveStr)):\n            self.coverImage = saveStr\n            if (baseStr in self.coverMetas):\n                self.streamInfo['Album'] = self.coverMetas[baseStr][2]\n                self.streamInfo['Genre'] = self.coverMetas[baseStr][3]\n\n        # if not, get it from MusicBrainz\n        else:\n            try:\n                imgSaved = False\n                i = 1\n\n                while (not imgSaved):\n                    setStrict = (i in [1,3,5,7])\n                    setType = ''\n                    if (i in [1,2,3,4]):\n                        setType = 'Album'\n                    setStatus = ''\n                    if (i in [1,2,5,6]):\n                        setStatus = 'Official'\n\n                    result = None\n    \n                    try:\n                        result = musicbrainzngs.search_recordings(strict=setStrict, artist=searchArtist, recording=newTitle, type=setType, status=setStatus)\n                    except:\n                        print(\"MusicBrainz recording search error\")\n                        print(\"iteration =\",i,\".\")\n                        print(\"imgSaved =\",imgSaved,\".\")\n                        print(\"strict =\",setStrict,\".\")\n                        print(\"artist =\",searchArtist,\".\")\n                        print(\"recording =\",newTitle,\".\")\n                        print(\"type =\",setType,\".\")\n                        print(\"status =\",setStatus,\".\")\n    \n                    if (result is not None) and ('recording-list' in result) and (len(result['recording-list']) != 0):    \n                        # loop through the list until you get a match\n                        for (idx, release) in enumerate(result['recording-list']):\n                            resultID = self.check_value('id',release,\"\")\n                            resultScore = self.check_value('ext:score',release,\"0\")\n                            resultArtist = self.check_value('artist-credit-phrase',release,\"\")\n                            resultTitle = self.check_value('title',release,\"\")\n                            resultGenre = self.check_value('name',self.check_value('tag-list',release,\"\"),\"\")\n                            scoreMatch = (int(resultScore) > 90)\n                            artistMatch = (newArtist.lower() in resultArtist.lower())\n                            titleMatch = (newTitle.lower() in resultTitle.lower())\n                            recordingMatch = (artistMatch and titleMatch and scoreMatch)\n    \n                            # don't bother dealing with releases if artist, title and score don't match\n                            resultStatus = \"\"\n                            resultType = \"\"\n                            resultAlbum = \"\"\n                            resultArtist2 = \"\"\n                            releaseMatch = False\n                            imageMatch = False\n                            if recordingMatch and ('release-list' in release):\n                                for (idx2, release2) in enumerate(release['release-list']):\n                                    imageMatch = False\n                                    resultID = self.check_value('id',release2,\"\")\n                                    resultStatus = self.check_value('status',release2,\"Official\")\n                                    resultType = self.check_value('type',self.check_value('release-group',release2,\"\"),\"\")\n                                    resultAlbum = self.check_value('title',release2,\"\")\n                                    resultArtist2 = self.check_value('artist-credit-phrase',release2,\"\")\n                                    typeMatch = (resultType in ['Single','Album','EP'])\n                                    statusMatch = (resultStatus == 'Official')\n                                    albumMatch = (not self.check_terms(resultAlbum, albumExclude))\n                                    artistMatch2 = (not ('Various' in resultArtist2))\n                                    releaseMatch = (artistMatch2 and albumMatch and typeMatch and statusMatch)\n                                    # don't bother checking for covers unless album, type, and status match\n                                    if releaseMatch:\n                                        imageMatch = self.check_musicbrainz_cover(resultID)\n                                    if (releaseMatch and imageMatch and ((idx2+1) < len(release['release-list']))):\n                                        break\n    \n                            if (recordingMatch and releaseMatch and imageMatch):\n     \n                                # got a full match, now get the cover art\n                                if self.save_musicbrainz_cover(resultID,saveStr):\n                                    self.coverImage = saveStr\n                                    imgSaved = True\n                                    self.streamInfo['Album']=resultAlbum\n                                    self.streamInfo['Genre']=resultGenre\n                                    self.coverMetas[baseStr] = [self.streamInfo[\"Title\"],self.streamInfo[\"Artist\"],self.streamInfo[\"Album\"],self.streamInfo[\"Genre\"]]\n\n                            if (imgSaved) and ((idx+1) < len(result['recording-list'])) or (not scoreMatch):\n                                break\n\n                    i = i + 1\n                    # if we got an image or Strict was false the first time through, there's no need to run through it again\n                    if (imgSaved) or (i == 9) or ((not setExtend) and (i == 2)):\n                        break\n\n                # If no match use the station logo if there is one\n                if (not imgSaved):\n                    self.coverImage = os.path.join(aasDir, self.stationLogos[self.stationStr][self.streamNum])\n                    self.streamInfo['Album']=\"\"\n                    self.streamInfo['Genre']=\"\"\n            except:\n                print(\"general error in the musicbrainz routine\")\n\n        # now display it by simulating a window resize\n        # Use GLib.idle_add because this might be called from a background thread\n        GLib.idle_add(self.showArtwork, self.coverImage)\n\n    def showArtwork(self, art):\n        if (art != \"\") and (art[-5:] != \"/aas/\"):\n            img_size = min(self.alignmentCover.get_allocated_height(), self.alignmentCover.get_allocated_width()) - 12\n            self.pixbuf = GdkPixbuf.Pixbuf.new_from_file(art)\n            self.pixbuf = self.pixbuf.scale_simple(img_size, img_size, GdkPixbuf.InterpType.BILINEAR)\n            self.imgCover.set_from_pixbuf(self.pixbuf)\n        # CRITICAL FIX: Tell GTK not to call this callback again\n        return False\n\n    def displayLogo(self):\n        global aasDir\n        if (self.stationStr in self.stationLogos):\n            # show station logo if it's cached\n            logo = os.path.join(aasDir, self.stationLogos[self.stationStr][self.streamNum])\n            if (os.path.isfile(logo)):\n                self.streamInfo[\"Logo\"] = self.stationLogos[self.stationStr][self.streamNum]\n                self.coverImage = logo\n                self.showArtwork(logo)\n        else:\n            # add entry in database for the station if it doesn't exist\n            self.stationLogos[self.stationStr] = [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"]\n\n    def service_data_type_name(self, type):\n        for key, value in self.ServiceDataType.items():\n            if (key == type):\n               return value\n\n    def program_type_name(self, type):\n        for key, value in self.ProgramType.items():\n            if (key == type):\n               return value\n\n    def handle_window_resize(self):\n        if (self.pixbuf != None):\n            desired_size = min(self.alignmentCover.get_allocated_height(), self.alignmentCover.get_allocated_width()) - 12\n            self.pixbuf = self.pixbuf.scale_simple(desired_size, desired_size, GdkPixbuf.InterpType.BILINEAR)\n            self.imgCover.set_from_pixbuf(self.pixbuf)\n\n    def on_window_resized(self,window):\n        self.handle_window_resize()\n\n    def on_btnPlay_clicked(self, btn):\n        global aasDir\n        # start playback\n        if (not self.playing):\n\n            self.nrsc5Args = [self.nrsc5Path]\n            \n            # update all of the spin buttons to prevent the text from sticking \n            self.spinFreq.update()\n            self.spinGain.update()\n            self.spinPPM.update()\n            self.spinRTL.update()\n            \n            useSDRPlay = (self.cbxSDRRadio.get_active_text() == \"SDRPlay\")\n            \n            # enable aas output if temp dir was created\n            if (aasDir is not None):\n                self.nrsc5Args.append(\"--dump-aas-files\")\n                self.nrsc5Args.append(aasDir)\n            \n            # set IP address if rtl_tcp is used\n            if (not(useSDRPlay)) and (self.cbDevIP.get_active()):\n                self.nrsc5Args.append(\"-H\")\n                self.nrsc5Args.append(self.txtDevIP.get_text())\n            \n            # set gain if auto gain is not selected\n            if (not self.cbAutoGain.get_active()):\n                self.streamInfo[\"Gain\"] = round(self.spinGain.get_value(),2)\n                self.nrsc5Args.append(\"-g\")\n                self.nrsc5Args.append(str(self.streamInfo[\"Gain\"]))\n            \n            # set ppm error if not zero\n            if (self.spinPPM.get_value() != 0):\n                self.nrsc5Args.append(\"-p\")\n                self.nrsc5Args.append(str(int(self.spinPPM.get_value())))\n            \n            # set rtl device number if not zero\n            if (not(useSDRPlay)) and (self.spinRTL.get_value() != 0):\n                self.nrsc5Args.append(\"-d\")\n                self.nrsc5Args.append(str(int(self.spinRTL.get_value())))\n\n            # set log level to 2 if SDRPLay enabled\n            if (useSDRPlay):\n                self.nrsc5Args.append(\"-l2\")\n            \n            # set SDRPlay serial number if not blank\n            if (useSDRPlay) and (self.txtSDRPlaySer.get_text() != \"\"):\n                self.nrsc5Args.append(\"-d\")\n                self.nrsc5Args.append(self.txtSDRPlaySer.get_text())\n            \n            # set SDRPlay antenna if not blank\n            if (useSDRPlay) and (self.cbxSDRPlayAnt.get_active_text() != \"\"):\n                if self.cbxSDRPlayAnt.get_active_text() != \"Auto\":\n                    self.nrsc5Args.append(\"-A\")\n                    self.nrsc5Args.append(\"Antenna \"+self.cbxSDRPlayAnt.get_active_text())\n            \n            # set frequency and stream\n            self.nrsc5Args.append(str(self.spinFreq.get_value()))\n            self.nrsc5Args.append(str(int(self.streamNum)))\n\n            # to emulate reading an IQ file use two lines below, instead of the above:\n            # (make sure to set the frequency spinner to the station's frequency before hitting play)\n            # FIXME - Create interface and option so these things don't have to be hardcoded\n            #self.nrsc5Args.append(\"-r\")\n            #self.nrsc5Args.append(\"/Users/mark/downloads/detroit-1043-HERE.cu8\")\n            #self.nrsc5Args.append(\"0\")\n            #self.spinFreq.set_value(104.3)\n\n            print(self.nrsc5Args)\n\n            # start the timer\n            self.statusTimer = Timer(1, self.checkStatus)\n            self.statusTimer.start()\n            \n            # disable the controls\n            self.spinFreq.set_sensitive(False)\n            self.cbxAspect.set_sensitive(False)\n            self.cbxSDRRadio.set_sensitive(False)\n            self.spinGain.set_sensitive(False)\n            self.spinPPM.set_sensitive(False)\n            self.spinRTL.set_sensitive(False)\n            self.txtDevIP.set_sensitive(False)\n            self.cbDevIP.set_sensitive(False)\n            self.txtSDRPlaySer.set_sensitive(False)\n            self.cbxSDRPlayAnt.set_sensitive(False)\n            self.btnPlay.set_sensitive(False)\n            self.btnStop.set_sensitive(True)\n            self.cbAutoGain.set_sensitive(False)\n            self.playing = True\n            self.lastXHDR = \"\"\n            self.lastLOT = \"\"\n\n            # start the player thread\n            self.playerThread = Thread(target=self.play)\n            self.playerThread.start()\n            \n            self.stationStr = str(self.spinFreq.get_value())\n            self.displayLogo()         \n\n            self.update_bookmark_buttons()\n    \n    def update_bookmark_buttons(self):\n        # check if station is bookmarked\n        self.bookmarked = False\n        freq = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n        for b in self.bookmarks:\n            if (b[2] == freq):\n                self.bookmarked = True\n                break\n\n        self.get_bookmark_names()\n\n        self.btnBookmark.set_sensitive(not self.bookmarked)\n        if (self.notebookMain.get_current_page() == 3):\n            self.btnDelete.set_sensitive(self.bookmarked)\n        else:\n            self.btnDelete.set_sensitive(False)\n            \n    def get_bookmark_names(self):\n        self.booknames = [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]\n        freq = str(int((self.spinFreq.get_value()+0.005)*10))\n        for b in self.bookmarks:\n            test = str(b[2])\n            if (test[:-1] == freq):\n                self.booknames[int(test[-1])-1] = b[1]\n\n    def on_btnStop_clicked(self, btn):\n        # stop playback\n        if (self.playing):\n            self.playing = False\n            \n            # shutdown nrsc5 \n            if (self.nrsc5 is not None):\n                try:\n                    # Check if process is still running before trying to terminate\n                    if self.nrsc5.poll() is None:\n                        self.nrsc5.terminate()\n                        # Give it a moment to terminate gracefully\n                        time.sleep(0.1)\n                        if self.nrsc5.poll() is None:\n                            # Still running, force kill\n                            self.nrsc5.kill()\n                except:\n                    pass  # Process may have already died\n            \n            if (self.playerThread is not None) and (btn is not None):\n                self.playerThread.join(1)\n            \n            # stop timer\n            self.statusTimer.cancel()\n            self.statusTimer = None\n            \n            # enable controls\n            if (not self.cbAutoGain.get_active()):\n                self.spinGain.set_sensitive(True)\n            self.spinFreq.set_sensitive(True)\n            self.cbxAspect.set_sensitive(True)\n            self.cbxSDRRadio.set_sensitive(True)\n            self.spinPPM.set_sensitive(True)\n            self.spinRTL.set_sensitive(True)\n            self.txtDevIP.set_sensitive(True)\n            self.cbDevIP.set_sensitive(True)\n            self.txtSDRPlaySer.set_sensitive(True)\n            self.cbxSDRPlayAnt.set_sensitive(True)\n            self.btnPlay.set_sensitive(True)\n            self.btnStop.set_sensitive(False)\n            self.btnBookmark.set_sensitive(False)\n            self.cbAutoGain.set_sensitive(True)\n            \n            # clear stream info\n            self.initStreamInfo()\n            \n            self.btnBookmark.set_sensitive(False)\n            if (self.notebookMain.get_current_page() != 3):\n                self.btnDelete.set_sensitive(False)\n\n    def on_btnBookmark_clicked(self, btn):         \n        # pack frequency and channel number into one int\n        freq = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n        \n        # create bookmark\n        bookmark = [\n            \"{:4.1f}-{:1.0f}\".format(self.spinFreq.get_value(), self.streamNum + 1),\n            self.streamInfo[\"Callsign\"],\n            freq\n        ]\n        self.bookmarked = True                  # mark as bookmarked\n        self.bookmarks.append(bookmark)         # store bookmark in array\n        self.lsBookmarks.append(bookmark)       # add bookmark to listview\n        self.btnBookmark.set_sensitive(False)   # disable bookmark button\n        \n        if (self.notebookMain.get_current_page() != 3):\n            self.btnDelete.set_sensitive(True)  # enable delete button\n\n        self.get_bookmark_names()\n\n    def on_btnDelete_clicked(self, btn):\n        # select current station if not on bookmarks page\n        if (self.notebookMain.get_current_page() != 3):\n            station = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n            for i in range(0, len(self.lsBookmarks)):\n                if (self.lsBookmarks[i][2] == station):            \n                    self.lvBookmarks.set_cursor(i)\n                    break\n        \n        # get station of selected row\n        (model, iter) = self.lvBookmarks.get_selection().get_selected()\n        station = model.get_value(iter, 2)\n        \n        # remove row\n        model.remove(iter)\n        \n        # remove bookmark\n        for i in range(0, len(self.bookmarks)):\n            if (self.bookmarks[i][2] == station):\n                self.bookmarks.pop(i)\n                break\n        \n        if (self.notebookMain.get_current_page() != 3 and self.playing):\n            self.btnBookmark.set_sensitive(True)\n            self.bookmarked = False\n\n        self.get_bookmark_names()\n\n    def on_btnAbout_activate(self, btn):\n        global resDir\n        # sets up and displays about dialog\n        if self.about_dialog:\n            self.about_dialog.present()\n            return\n\n        authors = [\n            \"Cody Nybo <cmnybo@gmail.com>\",\n            \"Clayton Smith <argilo@gmail.com>\",\n            \"zefie <zefie@zefie.net>\",\n            \"Mark J. Fine <mark.fine@fineware-swl.com>\",\n            \"Stephen Ferrell <sferrellblue@yahoo.com>\"\n        ]\n\n        license = \"\"\"\n        NRSC5 DUI - A second-generation graphical interface for nrsc5\n        Copyright (C) 2017-2019  Cody Nybo & Clayton Smith, 2019 zefie, 2021-26 Mark J. Fine\n        This program is free software: you can redistribute it and/or modify\n        it under the terms of the GNU General Public License as published by\n        the Free Software Foundation, either version 3 of the License, or\n        (at your option) any later version.\n        This program is distributed in the hope that it will be useful,\n        but WITHOUT ANY WARRANTY; without even the implied warranty of\n        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n        GNU General Public License for more details.\n        You should have received a copy of the GNU General Public License\n        along with this program.  If not, see <http://www.gnu.org/licenses/>.\"\"\"\n\n        about_dialog = Gtk.AboutDialog()\n        about_dialog.set_transient_for(self.mainWindow)\n        about_dialog.set_destroy_with_parent(True)\n        about_dialog.set_name(self.app_name)\n        about_dialog.set_program_name(self.app_name)\n        about_dialog.set_version(self.version)\n        about_dialog.set_copyright(self.copyright)\n        about_dialog.set_website(self.web_addr)\n        about_dialog.set_comments(\"A second-generation graphical interface for nrsc5.\")\n        about_dialog.set_authors(authors)\n        about_dialog.set_license(license)\n        about_dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"logo.png\")))\n\n        # callbacks for destroying the dialog\n        def close(dialog, response, editor):\n            editor.about_dialog = None\n            dialog.destroy()\n\n        def delete_event(dialog, event, editor):\n            editor.about_dialog = None\n            return True\n\n        about_dialog.connect(\"response\", close, self)\n        about_dialog.connect(\"delete-event\", delete_event, self)\n\n        self.about_dialog = about_dialog\n        about_dialog.show()\n\n    def on_stream_changed(self):\n        self.lastXHDR = \"\"\n        self.lastLOT = \"\"\n        self.streamInfo[\"Title\"] = \"\"\n        self.streamInfo[\"Album\"] = \"\"\n        self.streamInfo[\"Artist\"] = \"\"\n        self.streamInfo[\"Genre\"] = \"\"\n        self.streamInfo[\"Cover\"] = \"\"\n        self.streamInfo[\"Logo\"] = \"\"\n        self.streamInfo[\"Bitrate\"] = 0\n        self.set_program_btns()\n        if self.playing:\n            self.nrsc5msg = str(self.streamNum)\n            self.displayLogo()\n        self.update_bookmark_buttons()\n\n    def set_program_btns(self):\n        self.btnAudioPrgs0.set_active(self.update_btns and self.streamNum == 0)\n        self.btnAudioPrgs1.set_active(self.update_btns and self.streamNum == 1)\n        self.btnAudioPrgs2.set_active(self.update_btns and self.streamNum == 2)\n        self.btnAudioPrgs3.set_active(self.update_btns and self.streamNum == 3)\n        self.btnAudioPrgs4.set_active(self.update_btns and self.streamNum == 4)\n        self.btnAudioPrgs5.set_active(self.update_btns and self.streamNum == 5)\n        self.btnAudioPrgs6.set_active(self.update_btns and self.streamNum == 6)\n        self.btnAudioPrgs7.set_active(self.update_btns and self.streamNum == 7)\n        self.update_btns = True\n\n    def on_program_select(self, _label, evt):\n        stream_num = int(_label.get_property(\"name\")[-1])\n        is_lbl = _label.get_property(\"name\")[0] != \"b\"\n        self.update_btns = is_lbl\n        self.streamNum = stream_num\n        self.on_stream_changed()\n\n    def on_cbAutoGain_toggled(self, btn):\n        self.spinGain.set_sensitive(not btn.get_active())\n        self.lblGain.set_visible(btn.get_active())\n\n    def on_listviewBookmarks_row_activated(self, treeview, path, view_column):\n        if (len(path) != 0):\n            # get station from bookmark row\n            tree_iter = treeview.get_model().get_iter(path[0])\n            station   = treeview.get_model().get_value(tree_iter, 2)\n            \n            # set frequency and stream\n            self.spinFreq.set_value(float(int(station/10)/10.0))\n            self.streamNum = (station%10)-1\n            self.on_stream_changed()\n            \n            # stop playback if playing\n            if (self.playing):\n                 self.on_btnStop_clicked(None)\n            time.sleep(1)\n            # play bookmarked station\n            self.on_btnPlay_clicked(None)\n\n    def on_lvBookmarks_selection_changed(self, tree_selection):\n        # enable delete button if bookmark is selected\n        (model, pathlist) = self.lvBookmarks.get_selection().get_selected_rows()\n        self.btnDelete.set_sensitive(len(pathlist) != 0)\n\n    def on_bookmarkNameEdited(self, cell, path, text, data=None):\n        # update name in listview\n        iter = self.lsBookmarks.get_iter(path)\n        self.lsBookmarks.set(iter, 1, text)\n        \n        # update name in bookmarks array\n        for b in self.bookmarks:\n            if (b[2] == self.lsBookmarks[path][2]):\n                b[1] = text\n                break\n\n    def on_notebookMain_switch_page(self, notebook, page, page_num):\n        # disable delete button if not on bookmarks page and station is not bookmarked\n        if (page_num != 3): #and (not self.bookmarked or not self.playing)):\n            self.btnDelete.set_sensitive(False)\n        # enable delete button if on bookmarks page and a bookmark is selected\n        else:\n            (model, iter) = self.lvBookmarks.get_selection().get_selected()\n            self.btnDelete.set_sensitive(iter is not None)\n    \n    def on_radMap_toggled(self, btn):\n        global mapDir, imgLANCZOS\n        if (btn.get_active()):\n            img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12\n            if (img_size < 200):\n                img_size = 200\n            if (btn == self.radMapTraffic):\n                self.mapData[\"mapMode\"] = 0\n                mapFile = os.path.join(mapDir, \"TrafficMap.png\")\n                if (os.path.isfile(mapFile)):                                                           # check if map exists\n                    with Image.open(mapFile) as img:\n                        mapImg = img.resize((img_size, img_size), imgLANCZOS)               # scale map to fit window\n                        self.imgMap.set_from_pixbuf(imgToPixbuf(mapImg))                                    # convert image to pixbuf and display\n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)                # display missing image if file is not found\n            \n            elif (btn == self.radMapWeather):\n                self.mapData[\"mapMode\"] = 1\n                if (os.path.isfile(self.mapData[\"weatherNow\"])):\n                    with Image.open(self.mapData[\"weatherNow\"]) as img:\n                        mapImg = img.resize((img_size, img_size), imgLANCZOS)    # scale map to fit window\n                        self.imgMap.set_from_pixbuf(imgToPixbuf(mapImg))                                    # convert image to pixbuf and display \n                else:\n                    self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)                # display missing image if file is not found\n    \n    def on_btnMap_clicked(self, btn):\n        # open map viewer window\n        if (self.mapViewer is None):\n            self.mapViewer = NRSC5_Map(self, self.mapViewerCallback, self.mapData)\n            self.mapViewer.mapWindow.show()\n    \n    def mapViewerCallback(self):\n        # delete the map viewer\n        self.mapViewer = None\n\n    def on_alignmentCover_clicked(self, widget, event):\n        if (event.button == Gdk.BUTTON_SECONDARY):\n            if (self.slPopup is None) and (self.playing):\n                self.slPopup = NRSC5_SLPopup(self, self.slPopupCallback, self.slData)\n                self.slPopup.txtEntry.set_text(self.slData['externalURL'])\n                self.slPopup.entryWindow.show()\n                # now center it\n                winX, winY = self.mainWindow.get_position()\n                winW, winH = self.mainWindow.get_size()\n                slW, slH = self.slPopup.entryWindow.get_size()\n                self.slPopup.entryWindow.move(int(winW/2 - slW/2)+winX, int(winH/2 - slH/2)+winY)\n                self.slPopup.entryWindow.set_keep_above(True)\n\n    def slPopupCallback(self):\n        extensions = ['.gif','.jpg','.jpeg','.png']\n        useExt = \"\"\n        self.slData['externalURL'] = self.slPopup.txtEntry.get_text()\n        self.slPopup = None\n        if (self.slData['externalURL'] != \"\"):\n            freq = int((self.spinFreq.get_value()+0.005)*100) + int(self.streamNum + 1)\n            fileName = str(freq)+\"_SL\"+self.streamInfo[\"Callsign\"]+\"$$\"+str(int(self.streamNum + 1))\n            for extension in extensions:\n                if extension in self.slData['externalURL']:\n                    useExt = extension\n                    break\n            if (useExt != \"\"):\n                fileName = fileName + useExt\n                saveStr=os.path.join(aasDir,fileName)\n                with self.http.request('GET',self.slData['externalURL'], preload_content=False) as r, open(saveStr, 'wb') as out_file:\n                    if(r.status == 200):\n                        shutil.copyfileobj(r, out_file)\n                        self.stationLogos[self.stationStr][self.streamNum] = fileName\n                        self.displayLogo()\n\n    def play(self):\n        FNULL = open(os.devnull, 'w')\n        FTMP = open('tmp.log','w')\n\n        # run nrsc5 and output stderr to pipe, stdout to /dev/null\n        # CRITICAL: stdout must not use PIPE or it will fill up and block nrsc5\n        self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=self.nrsc5slave, stdout=FNULL, stderr=PIPE, universal_newlines=True)\n        \n        # CRITICAL FIX: Make stderr non-blocking to prevent pipe deadlock\n        import fcntl\n        flags = fcntl.fcntl(self.nrsc5.stderr, fcntl.F_GETFL)\n        fcntl.fcntl(self.nrsc5.stderr, fcntl.F_SETFL, flags | os.O_NONBLOCK)\n        \n        try:\n            while True:\n                # Check if nrsc5 process is still valid\n                if self.nrsc5 is None:\n                    break\n                    \n                # send input to nrsc5 if needed\n                if (self.nrsc5msg != \"\"):\n                    select.select([],[self.nrsc5master],[])\n                    os.write(self.nrsc5master,str.encode(self.nrsc5msg))\n                    self.nrsc5msg = \"\"\n                \n                # CRITICAL FIX: Use select() to wait for data before reading\n                # This prevents blocking and allows nrsc5 to write freely\n                readable, _, _ = select.select([self.nrsc5.stderr], [], [], 0.1)\n                \n                if not readable:\n                    # No data available, check if process is still alive\n                    if self.nrsc5.poll() is not None:\n                        if self.playing:\n                            self.debugLog(\"Restarting NRSC5 (unexpected termination)\")\n                            time.sleep(1)\n                            self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=self.nrsc5slave, stdout=FNULL, stderr=PIPE, universal_newlines=True)\n                            # Make new stderr non-blocking too\n                            flags = fcntl.fcntl(self.nrsc5.stderr, fcntl.F_GETFL)\n                            fcntl.fcntl(self.nrsc5.stderr, fcntl.F_SETFL, flags | os.O_NONBLOCK)\n                            continue\n                        else:\n                            self.debugLog(\"Process Terminated\")\n                            self.nrsc5 = None\n                            break\n                    continue\n                    \n                # read output from nrsc5 (non-blocking now)\n                try:\n                    output = self.nrsc5.stderr.readline()\n                except IOError:\n                    # Would block - skip this iteration\n                    continue\n                \n                # Check if we got EOF (empty string means process ended)\n                if not output:\n                    self.debugLog(\"nrsc5 stderr closed (process may have ended)\")\n                    if self.nrsc5.poll() is not None:\n                        # Process has definitely exited\n                        if self.playing:\n                            self.debugLog(\"Restarting NRSC5 (unexpected termination)\")\n                            time.sleep(1)\n                            self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=self.nrsc5slave, stdout=FNULL, stderr=PIPE, universal_newlines=True)\n                            continue\n                        else:\n                            self.debugLog(\"Process Terminated\")\n                            self.nrsc5 = None\n                            break\n                    else:\n                        # Process still running but stderr gave us nothing, try again\n                        time.sleep(0.1)\n                        continue\n                \n                # parse the output\n                self.parseFeedback(output)\n                \n                # write output to log file if enabled\n                if (self.cbLog.get_active() and self.logFile is not None):\n                    self.logFile.write(output)\n                    self.logFile.flush()\n                \n                # check if nrsc5 has exited\n                poll_result = self.nrsc5.poll()\n                if poll_result is not None:\n                    # Process has exited\n                    if not self.playing:\n                        # User stopped it - clean shutdown\n                        self.debugLog(\"Process Terminated\")\n                        self.nrsc5 = None\n                        break\n                    else:\n                        # Unexpected exit - restart\n                        self.debugLog(\"Restarting NRSC5 (exit code: {})\".format(poll_result))\n                        time.sleep(1)\n                        self.nrsc5 = Popen(self.nrsc5Args, shell=False, stdin=self.nrsc5slave, stdout=FNULL, stderr=PIPE, universal_newlines=True)\n        finally:\n            # Clean up file handles\n            FNULL.close()\n            FTMP.close()\n\n    def set_synchronization(self, state):\n        self.imgNoSynch.set_visible(state == 0)\n        self.imgSynch.set_visible(state == 1)\n        self.imgLostDevice.set_visible(state == -1)\n\n    def set_button_name(self, btnWidget, lblWidget, stream):\n        temp = self.streamInfo[\"Streams\"][stream]\n        if ((temp == \"\") or (temp == \"MPS\") or (temp[0:3] == \"SPS\") or (temp[0:2] == \"HD\") ):\n            if (self.booknames[stream] != \"\"):\n                temp = self.booknames[stream]\n        lblWidget.set_label(temp)\n        btnWidget.set_sensitive(temp != \"\")\n\n    def set_label_name(self, lblWidget, inString, doSens):\n        lblWidget.set_label(inString)\n        lblWidget.set_tooltip_text(inString)\n        if (doSens):\n            lblWidget.set_sensitive(inString != \"\")\n\n    def getImageLot(self,imgStr):\n        r = re.compile(\"^([0-9]+)_.*$\")\n        m = r.match(imgStr)\n        return m.group(1)\n\n    def checkStatus(self):\n        # update status information\n        def update():\n            global aasDir\n            # DIAGNOSTIC: Track if update() is called multiple times\n            if not hasattr(self, '_update_call_count'):\n                self._update_call_count = 0\n                self._update_last_log = 0\n                import time\n                self._start_time = time.time()\n            self._update_call_count += 1\n            \n            # Log if we're getting called too often (more than once per second)\n            import time\n            current_time = time.time()\n            if current_time - self._update_last_log >= 10:  # Log every 10 seconds\n                expected_calls = int(current_time - self._start_time)\n                print(f\"[DIAG] update() called {self._update_call_count} times (expected: ~{expected_calls})\")\n                if self._update_call_count > expected_calls * 2:\n                    print(f\"[WARNING] update() being called TOO OFTEN! Callback leak detected!\")\n                self._update_last_log = current_time\n            \n            try:\n                imagePath = \"\"\n                image = \"\"\n                ber = [self.streamInfo[\"BER\"][i]*100 for i in range(4)]\n                self.id3Changed = self.id3_did_change()\n                self.txtTitle.set_text(self.streamInfo[\"Title\"])\n                self.txtTitle.set_tooltip_text(self.streamInfo[\"Title\"])\n                self.txtArtist.set_text(self.streamInfo[\"Artist\"])\n                self.txtArtist.set_tooltip_text(self.streamInfo[\"Artist\"])\n                self.txtAlbum.set_text(self.streamInfo[\"Album\"])\n                self.txtAlbum.set_tooltip_text(self.streamInfo[\"Album\"])\n                self.txtGenre.set_text(self.streamInfo[\"Genre\"])\n                self.txtGenre.set_tooltip_text(self.streamInfo[\"Genre\"])\n                self.lblBitRate.set_label(\"{:3.1f} kbps\".format(self.streamInfo[\"Bitrate\"]))\n                self.lblBitRate2.set_label(\"{:3.1f} kbps\".format(self.streamInfo[\"Bitrate\"]))\n                self.lblError.set_label(\"{:2.2f}% BER \".format(self.streamInfo[\"BER\"][0]*100))\n                self.lblCall.set_label(\" \" + self.streamInfo[\"Callsign\"])\n                self.lblName.set_label(self.streamInfo[\"Callsign\"])\n                self.lblSlogan.set_label(self.streamInfo[\"Slogan\"])\n                self.lblSlogan.set_tooltip_text(self.streamInfo[\"Slogan\"])\n                self.lblMessage.set_label(self.streamInfo[\"Message\"])\n                self.lblMessage.set_tooltip_text(self.streamInfo[\"Message\"])\n                if (self.txtMessage2):\n                    self.txtMessage2.set_label(self.streamInfo[\"Message\"])\n                    self.txtMessage2.set_tooltip_text(self.streamInfo[\"Message\"])\n                self.lblAlert.set_label(self.streamInfo[\"Alert\"])\n                self.lblAlert.set_tooltip_text(self.streamInfo[\"Alert\"])\n                if (self.txtAlert2):\n                    self.txtAlert2.set_label(self.streamInfo[\"Alert\"])\n                    self.txtAlert2.set_tooltip_text(self.streamInfo[\"Alert\"])\n                self.set_button_name(self.btnAudioPrgs0,self.btnAudioLbl0,0)\n                self.set_button_name(self.btnAudioPrgs1,self.btnAudioLbl1,1)\n                self.set_button_name(self.btnAudioPrgs2,self.btnAudioLbl2,2)\n                self.set_button_name(self.btnAudioPrgs3,self.btnAudioLbl3,3)\n                self.set_button_name(self.btnAudioPrgs4,self.btnAudioLbl4,4)\n                self.set_button_name(self.btnAudioPrgs5,self.btnAudioLbl5,5)\n                self.set_button_name(self.btnAudioPrgs6,self.btnAudioLbl6,6)\n                self.set_button_name(self.btnAudioPrgs7,self.btnAudioLbl7,7)\n                self.set_label_name(self.lblAudioPrgs0, self.streamInfo[\"Streams\"][0], True)\n                self.set_label_name(self.lblAudioPrgs1, self.streamInfo[\"Streams\"][1], True)\n                self.set_label_name(self.lblAudioPrgs2, self.streamInfo[\"Streams\"][2], True)\n                self.set_label_name(self.lblAudioPrgs3, self.streamInfo[\"Streams\"][3], True)\n                self.set_label_name(self.lblAudioPrgs4, self.streamInfo[\"Streams\"][4], True)\n                self.set_label_name(self.lblAudioPrgs5, self.streamInfo[\"Streams\"][5], True)\n                self.set_label_name(self.lblAudioPrgs6, self.streamInfo[\"Streams\"][6], True)\n                self.set_label_name(self.lblAudioPrgs7, self.streamInfo[\"Streams\"][7], True)\n                self.set_label_name(self.lblAudioSvcs0, self.streamInfo[\"Programs\"][0], True)\n                self.set_label_name(self.lblAudioSvcs1, self.streamInfo[\"Programs\"][1], True)\n                self.set_label_name(self.lblAudioSvcs2, self.streamInfo[\"Programs\"][2], True)\n                self.set_label_name(self.lblAudioSvcs3, self.streamInfo[\"Programs\"][3], True)\n                self.set_label_name(self.lblAudioSvcs4, self.streamInfo[\"Programs\"][4], True)\n                self.set_label_name(self.lblAudioSvcs5, self.streamInfo[\"Programs\"][5], True)\n                self.set_label_name(self.lblAudioSvcs6, self.streamInfo[\"Programs\"][6], True)\n                self.set_label_name(self.lblAudioSvcs7, self.streamInfo[\"Programs\"][7], True)\n                self.set_label_name(self.lblDataSvcs0, self.streamInfo[\"Services\"][0], False)\n                self.set_label_name(self.lblDataSvcs1, self.streamInfo[\"Services\"][1], False)\n                self.set_label_name(self.lblDataSvcs2, self.streamInfo[\"Services\"][2], False)\n                self.set_label_name(self.lblDataSvcs3, self.streamInfo[\"Services\"][3], False)\n                self.set_label_name(self.lblDataType0, self.streamInfo[\"SvcTypes\"][0], False)\n                self.set_label_name(self.lblDataType1, self.streamInfo[\"SvcTypes\"][1], False)\n                self.set_label_name(self.lblDataType2, self.streamInfo[\"SvcTypes\"][2], False)\n                self.set_label_name(self.lblDataType3, self.streamInfo[\"SvcTypes\"][3], False)\n                self.lblMerLower.set_label(\"{:1.2f} dB\".format(self.streamInfo[\"MER\"][0]))\n                self.lblMerUpper.set_label(\"{:1.2f} dB\".format(self.streamInfo[\"MER\"][1]))\n                self.lblBerNow.set_label(\"{:1.3f}% (Now)\".format(ber[0]))\n                self.lblBerAvg.set_label(\"{:1.3f}% (Avg)\".format(ber[1]))\n                self.lblBerMin.set_label(\"{:1.3f}% (Min)\".format(ber[2]))\n                self.lblBerMax.set_label(\"{:1.3f}% (Max)\".format(ber[3]))\n\n                if (self.cbAutoGain.get_active()):\n                    self.spinGain.set_value(self.streamInfo[\"Gain\"])\n                    self.lblGain.set_label(\"{:2.1f} dB\".format(self.streamInfo[\"Gain\"]))\n                \n                # second param is lot id, if -1, show cover, otherwise show cover\n                # technically we should show the file with the matching lot id\n\n                lot = -1\n                if ((self.lastXHDR == \"0\") and (self.streamInfo[\"Cover\"] != \"\")):\n                    imagePath = os.path.join(aasDir, self.streamInfo[\"Cover\"])\n                    image = self.streamInfo[\"Cover\"]\n                    lot = self.getImageLot(image)\n                elif (((self.lastXHDR == \"1\") or (self.lastImage != \"\")) and (self.streamInfo[\"Logo\"] != \"\")):\n                    imagePath = os.path.join(aasDir, self.streamInfo[\"Logo\"])\n                    image = self.streamInfo[\"Logo\"]\n                    if (not os.path.isfile(imagePath)):\n                        self.imgCover.clear()\n                        self.coverImage = \"\"\n                    \n                # resize and display image if it changed and exists\n                if (self.xhdrChanged and (self.lastImage != image) and ((self.lastLOT == lot) or (lot == -1)) and os.path.isfile(imagePath)):\n                    self.xhdrChanged = False\n                    self.lastImage = image\n                    self.coverImage = imagePath\n                    self.showArtwork(imagePath)\n                    self.debugLog(\"Image Changed\")\n\n                # Disable downloaded cover images until fixed with MusicBrainz\n                # CRITICAL: Run in separate thread to avoid blocking GTK main thread with network I/O\n                if (self.cbCovers.get_active() and self.id3Changed):\n                    Thread(target=self.get_cover_image_online, daemon=True).start()\n\n            except Exception as e:\n                print(f\"Error in update(): {e}\")\n                import traceback\n                traceback.print_exc()\n            finally:\n                # CRITICAL FIX: Must return False to prevent GTK from re-queuing this callback\n                return False\n        \n        if (self.playing):\n            # DIAGNOSTIC: Monitor resources every 60 seconds\n            if not hasattr(self, '_diag_counter'):\n                self._diag_counter = 0\n            self._diag_counter += 1\n            \n            if self._diag_counter % 60 == 0:\n                import gc\n                import threading\n                obj_count = len(gc.get_objects())\n                thread_count = threading.active_count()\n                print(f\"[RESOURCE] {self._diag_counter}s - Objects: {obj_count}, Threads: {thread_count}, Playing: {self.playing}\")\n            \n            GLib.idle_add(update)\n            self.statusTimer = Timer(1, self.checkStatus)\n            self.statusTimer.start()\n\n    def processHERETrafficMap(self, fileName, timeStr):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})Z$\")\n        m = r.match(timeStr)\n\n        if (m):\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(1)), int(m.group(2)), int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                            # local time\n            ts = dtToTs(dt)                                                                             # unix timestamp (etc)\n\n            r = re.compile(\"^trafficMap_([0-9])_([0-9])_(.*).png$\")\n            n = r.match(fileName)\n            if (n):\n                x = int(n.group(1))\n                y = int(n.group(2))\n                self.map_progress.set_fraction((x*3+y)/8)\n\n                # prepend filename with timestamp\n                fileName = \"{0}_{1}\".format(ts,fileName)\n                self.finishTrafficMap(fileName, ts, t, x, y)\n                return False  # CRITICAL: Tell GTK not to call this again\n            \n    def processTrafficMap(self, fileName):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^[0-9]+_TMT_.*_([1-3])_([1-3])_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})_([0-9A-Fa-f]{4})[.].*$\")     # match file name\n        m = r.match(fileName)\n        \n        if (m):\n            x       = int(m.group(1))-1 # X position\n            y       = int(m.group(2))-1 # Y position\n            self.map_progress.set_fraction((x*3+y)/8)\n\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), int(m.group(7)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                        # local time\n            ts = dtToTs(dt)\n            self.finishTrafficMap(fileName, ts, t, x, y)                                            # unix timestamp (utc)\n            return False  # CRITICAL: Tell GTK not to call this again\n            \n    def finishTrafficMap(self, fileName, ts, t, x, y):\n        global aasDir, mapDir, imgLANCZOS\n        # check if the tile has already been loaded\n        if (self.mapData[\"mapTiles\"][x][y] == ts):\n            try:\n                os.remove(os.path.join(aasDir, fileName))                                           # delete this tile, it's not needed\n            except:\n                pass\n            return                                                                                  # no need to recreate the map if it hasn't changed\n            \n        self.debugLog(\"Got Traffic Map Tile: {:g},{:g}\".format(x,y))\n                \n        self.mapData[\"mapComplete\"]    = False                                                      # new tiles are coming in, the map is nolonger complete\n        self.mapData[\"mapTiles\"][x][y] = ts                                                         # store time for current tile\n            \n        try:\n            currentPath = os.path.join(aasDir,fileName)\n            newPath = os.path.join(mapDir, \"TrafficMap_{:g}_{:g}.png\".format(x,y))                  # create path to new tile location\n            if(os.path.exists(newPath)): os.remove(newPath)                                         # delete old image if it exists (only necessary on windows)\n            shutil.move(currentPath, newPath)                                                       # move and rename map tile\n        except:\n            self.debugLog(\"Error moving map tile (src: \"+currentPath+\", dest: \"+newPath+\")\", True)\n            self.mapData[\"mapTiles\"][x][y] = 0\n                \n        # check if all of the tiles are loaded\n        if (self.checkTiles(ts)):\n            self.debugLog(\"Got complete traffic map\")\n            self.mapData[\"mapComplete\"] = True                                                      # map is complete\n                \n            # stitch the map tiles into one image\n            imgMap = Image.new(\"RGB\", (600, 600), \"white\")                                          # create blank image for traffic map\n            for i in range(0,3):\n                for j in range(0,3):\n                    tileFile = os.path.join(mapDir, \"TrafficMap_{:g}_{:g}.png\".format(i,j))         # get path to tile\n                    with Image.open(tileFile) as tile:\n                        imgMap.paste(tile, (j*200, i*200))                              # paste tile into map\n                    os.remove(tileFile)                                                             # delete tile image\n\n            # now put a timestamp on it.\n            imgMap   = imgMap.convert(\"RGBA\")\n            imgBig   = (981,981)                                                                    # size of a weather map\n            posTS    = (imgBig[0]-235, imgBig[1]-29)                                                # calculate position to put timestamp (bottom right)\n            imgTS    = self.mkTimestamp(t, imgBig, posTS)                                           # create timestamp for a weather map\n            imgTS    = imgTS.resize((imgMap.size[0], imgMap.size[1]), imgLANCZOS)                   # resize it so it's proportional to the size of a traffic map (981 -> 600)\n            imgMap   = Image.alpha_composite(imgMap, imgTS)                                         # overlay timestamp on traffic map\n\n            imgMap.save(os.path.join(mapDir, \"TrafficMap.png\"))                                     # save traffic map\n                \n            # display on map page\n            if (self.radMapTraffic.get_active()):\n                img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12\n                imgMap = imgMap.resize((img_size, img_size), imgLANCZOS)                            # scale map to fit window\n                self.imgMap.set_from_pixbuf(imgToPixbuf(imgMap))                                    # convert image to pixbuf and display\n                \n            if (self.mapViewer is not None): self.mapViewer.updated(0)                              # notify map viwerer if it's open\n    \n    def processHEREWeatherOverlay(self, fileName, timeStr):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})Z$\")\n        m = r.match(timeStr)\n\n        if (m):\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(1)), int(m.group(2)), int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                        # local time\n            ts = dtToTs(dt)                                                                         # unix timestamp (etc)\n\n            r = re.compile(\"^WeatherImage_([0-9])_([0-9])_(.*).png$\")\n            n = r.match(fileName)\n            if (n):\n                id = n.group(3)\n\n            # prepend filename with timestamp\n            fileName = \"{0}_{1}\".format(ts,fileName)\n            self.finishWeatherOverlay(fileName, ts, t, id)\n            return False  # CRITICAL: Tell GTK not to call this again\n    \n    def processWeatherOverlay(self, fileName):\n        global aasDir, mapDir, imgLANCZOS\n        r = re.compile(\"^[0-9]+_DWRO_(.*)_.*_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]{2})([0-9]{2})_([0-9A-Fa-f]+)[.].*$\")                    # match file name\n        m = r.match(fileName)\n        \n        if (m):\n            # get time from map tile and convert to local time\n            dt = datetime.datetime(int(m.group(2)), int(m.group(3)), int(m.group(4)), int(m.group(5)), int(m.group(6)), tzinfo=tz.tzutc())\n            t  = dt.astimezone(tz.tzlocal())                                                        # local time\n            ts = dtToTs(dt)                                                                         # unix timestamp (utc)\n            id = self.mapData[\"weatherID\"]\n            \n            if (m.group(1) != id):\n                if (id == \"\"):\n                    self.debugLog(\"Received weather overlay before metadata, ignoring...\");\n                else:\n                    self.debugLog(\"Received weather overlay with the wrong ID: \" + m.group(1) + \" (wanted \" + id +\")\")\n                return False  # CRITICAL: Tell GTK not to call this again\n                \n            self.finishWeatherOverlay(fileName, ts, t, id)\n            return False  # CRITICAL: Tell GTK not to call this again\n            \n    def finishWeatherOverlay(self, fileName, ts, t, id):\n        global aasDir, mapDir, imgLANCZOS\n\n        if (self.mapData[\"weatherTime\"] == ts):\n            try:\n                os.remove(os.path.join(aasDir, fileName))                                           # delete this tile, it's not needed\n            except:\n                pass\n            return                                                                                  # no need to recreate the map if it hasn't changed\n            \n        self.debugLog(\"Got Weather Overlay\")\n            \n        self.mapData[\"weatherTime\"] = ts                                                            # store time for current overlay\n        wxOlPath  = os.path.join(mapDir,\"WeatherOverlay_{:s}_{:}.png\".format(id, ts))\n        wxMapPath = os.path.join(mapDir,\"WeatherMap_{:s}_{:}.png\".format(id, ts))\n            \n        # move new overlay to map directory\n        try:\n            if(os.path.exists(wxOlPath)): os.remove(wxOlPath)                                       # delete old image if it exists (only necessary on windows)\n            shutil.move(os.path.join(aasDir, fileName), wxOlPath)                                   # move and rename map tile\n        except:\n            self.debugLog(\"Error moving weather overlay\", True)\n            self.mapData[\"weatherTime\"] = 0\n                \n        # create weather map\n        try:\n            mapPath = os.path.join(mapDir, \"BaseMap_\" + id + \".png\")                                # get path to base map\n            if (os.path.isfile(mapPath) == False):                                                  # make sure base map exists\n                self.makeBaseMap(self.mapData[\"weatherID\"], self.mapData[\"weatherPos\"])             # create base map if it doesn't exist\n                \n            with Image.open(mapPath) as img:\n                imgMap = img.convert(\"RGBA\")                                          # open map image\n                imgBig   = (981,981)                                                                    # size of a weather map\n                imgMap   = imgMap.resize(imgBig, imgLANCZOS)                                            # resize if tiny\n            posTS    = (imgBig[0]-235, imgBig[1]-29)\n            imgTS    = self.mkTimestamp(t, imgBig, posTS)                                           # create timestamp\n            imgTS    = imgTS.resize((imgMap.size[0], imgMap.size[1]), imgLANCZOS)                   # resize it so it's proportional to the size of a traffic map (981 -> 600)\n            \n            # Open overlay image once and properly handle palette mode with transparency\n            with Image.open(wxOlPath) as img:\n                # Convert palette images to RGBA first to avoid transparency warnings\n                if img.mode == 'P':\n                    imgRadar = img.convert(\"RGBA\")\n                else:\n                    imgRadar = img.convert(\"RGBA\")\n                # Keep the image data by copying before the with block closes\n                imgRadar = imgRadar.copy()\n            \n            # Resize after copying to avoid issues with closed images\n            imgRadar = imgRadar.resize(imgMap.size, imgLANCZOS)\n            \n            # Create alpha channel from grayscale version\n            with Image.open(wxOlPath) as img:\n                if img.mode == 'P':\n                    # For palette images, convert to RGBA first, then to grayscale\n                    imgAlpha = img.convert(\"RGBA\").convert(\"L\")\n                else:\n                    imgAlpha = img.convert(\"L\")\n                imgAlpha = imgAlpha.copy()\n            \n            imgAlpha = imgAlpha.resize(imgMap.size, imgLANCZOS)\n            imgRadar.putalpha(imgAlpha)                                                             # use grayscale overlay to create variable alpha channel.\n            del imgAlpha  # Clean up alpha channel image\n\n            imgMap   = Image.alpha_composite(imgMap, imgRadar)                                      # overlay radar image on map\n            del imgRadar  # Clean up radar image\n            imgMap   = Image.alpha_composite(imgMap, imgTS)                                         # overlay timestamp\n            del imgTS  # Clean up timestamp image\n            imgMap.save(wxMapPath)                                                                  # save weather map\n            os.remove(wxOlPath)                                                                     # remove overlay image\n            self.mapData[\"weatherNow\"] = wxMapPath\n                \n            # display on map page\n            if (self.radMapWeather.get_active()):\n                img_size = min(self.alignmentMap.get_allocated_height(), self.alignmentMap.get_allocated_width()) - 12\n                imgMapResized = imgMap.resize((img_size, img_size), imgLANCZOS)                     # scale map to fit window\n                self.imgMap.set_from_pixbuf(imgToPixbuf(imgMapResized))                             # convert image to pixbuf and display\n                del imgMapResized  # Clean up resized image\n            \n            del imgMap  # Clean up main map image\n                \n            self.proccessWeatherMaps()                                                              # get rid of old maps and add new ones to the list\n            if (self.mapViewer is not None): self.mapViewer.updated(1)                              # notify map viwerer if it's open\n                    \n        except Exception as e:\n            self.debugLog(\"Error creating weather map: {}\".format(str(e)), True)\n            self.mapData[\"weatherTime\"] = 0\n            \n    def proccessWeatherInfo(self, fileName):\n        global aasDir\n        weatherID = None\n        weatherPos = None\n\n        try:\n            with open(os.path.join(aasDir, fileName)) as weatherInfo:                                   # open weather info file\n                for line in weatherInfo:                                                                # read line by line\n                    if (\"DWR_Area_ID=\" in line):                                                        # look for line with \"DWR_Area_ID=\" in it\n                        # get ID from line\n                        r = re.compile(\"^DWR_Area_ID=\\\"(.+)\\\"$\")\n                        m = r.match(line)\n                        weatherID = m.group(1)\n\n                    elif (\"Coordinates=\" in line):                                                      # look for line with \"Coordinates=\" in it\n                        # get coordinates from line\n                        r = re.compile(\"^Coordinates=.*[(](-?[0-9]+[.][0-9]+),(-?[0-9]+[.][0-9]+)[)].*[(](-?[0-9]+[.][0-9]+),(-?[0-9]+[.][0-9]+)[)].*$\")\n                        m = r.match(line)\n                        weatherPos = [float(m.group(1)),float(m.group(2)), float(m.group(3)), float(m.group(4))]\n        except:\n            self.debugLog(\"Error opening weather info\", True)\n        \n        if (weatherID is not None and weatherPos is not None):                                          # check if ID and position were found\n            if (self.mapData[\"weatherID\"] != weatherID or self.mapData[\"weatherPos\"] != weatherPos):    # check if ID or position has changed\n                self.debugLog(\"Got position: ({:n}, {:n}) ({:n}, {:n})\".format(*weatherPos))\n                self.mapData[\"weatherID\"]  = weatherID                                                  # set weather ID\n                self.mapData[\"weatherPos\"] = weatherPos                                                 # set weather map position\n                \n                # Make base map creation asynchronous to avoid blocking nrsc5 stderr reading (HEAVY OPERATION)\n                GLib.idle_add(self.makeBaseMap, weatherID, weatherPos)\n                self.weatherMaps = []\n                GLib.idle_add(self.proccessWeatherMaps)\n    \n    def proccessHEREWeatherInfo(self, fileName, lat1, lon1, lat2, lon2):\n        global aasDir\n        weatherID = None\n        weatherPos = None\n\n        r = re.compile(\"^.*WeatherImage_([0-9])_([0-9])_(.*).png$\")\n        m = r.match(fileName)\n        if (m):\n            weatherID = m.group(3)\n            # make weather image the same size/aspect ratio as Traffic image\n            if ((self.tLat1 != 0.0) and (self.tLat2 != 0.0)):\n                lat1 = (self.tLat1 - self.tLat2) + lat2\n            else:\n                return\n            weatherPos = [lat1, lon1, lat2, lon2]\n        \n        if (weatherID is not None and weatherPos is not None):                                          # check if ID and position were found\n            if (self.mapData[\"weatherID\"] != weatherID or self.mapData[\"weatherPos\"] != weatherPos):    # check if ID or position has changed\n                self.debugLog(\"Got position: ({:n}, {:n}) ({:n}, {:n})\".format(*weatherPos))\n                self.mapData[\"weatherID\"]  = weatherID                                                  # set weather ID\n                self.mapData[\"weatherPos\"] = weatherPos                                                 # set weather map position\n                \n                # Make base map creation asynchronous to avoid blocking nrsc5 stderr reading (HEAVY OPERATION)\n                GLib.idle_add(self.makeBaseMap, weatherID, weatherPos)\n                self.weatherMaps = []\n                GLib.idle_add(self.proccessWeatherMaps)\n    \n    def proccessWeatherMaps(self):\n        global mapDir\n        numberOfMaps = 0\n        r     = re.compile(\"^.*map.WeatherMap_([a-zA-Z0-9]+)_([0-9]+).png\")\n        now   = dtToTs(datetime.datetime.now(tz.tzutc()))                                               # get current time\n        files = glob.glob(os.path.join(mapDir, \"WeatherMap_\") + \"*.png\")                                # look for weather map files\n        files.sort()                                                                                    # sort files\n        for f in files:  \n            m = r.match(f)                                                                              # match regex\n            if (m):\n                id = m.group(1)                                                                         # location ID\n                ts = int(m.group(2))                                                                    # timestamp (UTC)\n                \n                # remove weather maps older than 12 hours\n                if (now - ts > 60*60*12):\n                    try:\n                        if (f in self.weatherMaps):\n                            self.weatherMaps.pop(self.weatherMaps.index(f))                             # remove from list\n                        os.remove(f)                                                                    # remove file\n                        self.debugLog(\"Deleted old weather map: \" + f)\n                    except:\n                        self.debugLog(\"Error Failed to Delete: \" + f)\n                        \n                # skip if not the correct location\n                elif (id == self.mapData[\"weatherID\"]):\n                    if (f not in self.weatherMaps):\n                        self.addWeatherMap(f)                                                      # add to list\n                    numberOfMaps += 1\n        \n\n        self.debugLog(\"Found {} weather maps\".format(numberOfMaps))\n        return False  # CRITICAL: Tell GTK not to call this again\n        \n    def getMapArea(self, lat1, lon1, lat2, lon2):\n        from math import asinh, tan, radians\n        \n        # get pixel coordinates from latitude and longitude\n        # calculations taken from https://github.com/KYDronePilot/hdfm\n        top  = asinh(tan(radians(52.482780)))\n        lat1 = top - asinh(tan(radians(lat1)))\n        lat2 = top - asinh(tan(radians(lat2)))\n        x1   = (lon1 + 130.781250) * 7162 / 39.34135\n        x2   = (lon2 + 130.781250) * 7162 / 39.34135\n        y1   = lat1 * 3565 / (top - asinh(tan(radians(38.898))))\n        y2   = lat2 * 3565 / (top - asinh(tan(radians(38.898))))\n        \n        return (int(round(x1)), int(round(y1)), int(round(x2)), int(round(y2)))\n    \n    def makeBaseMap(self, id, pos):\n        global mapDir\n        mapPath = os.path.join(mapDir, \"BaseMap_\" + id + \".png\")                                # get map path\n        if (os.path.isfile(self.mapFile)):\n            if (os.path.isfile(mapPath) == False):                                              # check if the map has already been created for this location\n                self.debugLog(\"Creating new map: \" + mapPath)\n                px     = self.getMapArea(*pos)                                                  # convert map locations to pixel coordinates\n                with Image.open(self.mapFile) as img:\n                    mapImg = img.crop(px)                                      # open the full map and crop it to the coordinates\n                    mapImg.save(mapPath)                                                            # save the cropped map to disk for later use\n                self.debugLog(\"Finished creating map\")\n        else:\n            self.debugLog(\"Error map file not found: \" + self.mapFile, True)\n            mapImg = Image.new(\"RGBA\", (pos[2]-pos[1], pos[3]-pos[1]), \"white\")                 # if the full map is not available, use a blank image\n            mapImg.save(mapPath)\n        return False  # CRITICAL: Tell GTK not to call this again\n    \n    def checkTiles(self, t):\n        # check if all the tiles have been received\n        for i in range(0,3):\n            for j in range(0,3):\n                if (self.mapData[\"mapTiles\"][i][j] != t):\n                    return False\n        return True\n    \n    def mkTimestamp(self, t, size, pos):\n        global resDir\n        # create a timestamp image to overlay on the weathermap\n        x,y   = pos\n        text  = \"{:04g}-{:02g}-{:02g} {:02g}:{:02g}\".format(t.year, t.month, t.day, t.hour, t.minute)   # format timestamp\n        imgTS = Image.new(\"RGBA\", size, (0,0,0,0))                                                      # create a blank image\n        draw  = ImageDraw.Draw(imgTS)                                                                   # the drawing object\n        font  = ImageFont.truetype(os.path.join(resDir,\"DejaVuSansMono.ttf\"), 24)                       # DejaVu Sans Mono 24pt font\n        draw.rectangle((x,y, x+231,y+25), outline=\"black\", fill=(128,128,128,96))                       # draw a box around the text\n        draw.text((x+3,y), text, fill=\"black\", font=font)                                               # draw the text\n        return imgTS                                                                                    # return the image\n\n    def checkPorts(self, port, type):\n        result = -1\n        for i in range(0,7):\n            if (len(self.streams[i]) > type):\n                if (port == self.streams[i][type]):\n                    result = i\n        return result\n\n    def parseFeedback(self, line):\n        global aasDir, mapDir\n        line = line.strip()\n        if (self.regex[4].match(line)):\n            # match title\n            m = self.regex[4].match(line)\n            self.streamInfo[\"Title\"] = m.group(1)\n        elif (self.regex[5].match(line)):\n            # match artist\n            m = self.regex[5].match(line)\n            self.streamInfo[\"Artist\"] = m.group(1)\n        elif (self.regex[6].match(line)):\n            # match album\n            m = self.regex[6].match(line)\n            self.streamInfo[\"Album\"] = m.group(1)\n        elif (self.regex[15].match(line)):\n            # match genre\n            m = self.regex[15].match(line)\n            self.streamInfo[\"Genre\"] = m.group(1)\n        elif (self.regex[3].match(line)):\n            # match audio bit rate\n            m = self.regex[3].match(line)\n            self.streamInfo[\"Bitrate\"] = float(m.group(1))\n        elif (self.regex[8].match(line)):\n            # match MER\n            m = self.regex[8].match(line)\n            self.streamInfo[\"MER\"] = [float(m.group(1)), float(m.group(2))]\n        elif (self.regex[9].match(line)):\n            # match BER\n            m = self.regex[9].match(line)\n            self.streamInfo[\"BER\"] = [float(m.group(1)), float(m.group(2)), float(m.group(3)), float(m.group(4))]\n        elif (self.regex[13].match(line)):\n            # match xhdr\n            m = self.regex[13].match(line)\n            xhdr = m.group(1)\n            mime = m.group(2)\n            lot  = m.group(3)\n            if (xhdr != self.lastXHDR) or (lot != self.lastLOT):\n                self.lastXHDR = xhdr\n                self.lastLOT = lot\n                self.xhdrChanged = True\n                self.debugLog(\"XHDR Changed: {:s} (lot {:s})\".format(xhdr,lot))\n        elif (self.regex[23].match(line)):\n            # match HERE Images\n            m = self.regex[23].match(line)\n            if (m):\n                type = m.group(1)\n                seq = int(m.group(2))\n                n1 = int(m.group(3))\n                n2 = int(m.group(4))\n                timeStr = m.group(5)\n                lat1 = float(m.group(6))\n                lon1 = float(m.group(7))\n                lat2 = float(m.group(8))\n                lon2 = float(m.group(9))\n                fileName = m.group(10)\n                fileSize = m.group(11)\n                #temporary print statement until HERE testing done\n                print(\"got HERE image: {} {} of {} {} {} {} {} {} {} {}\".format(type,n1,n2,timeStr,lat1,lon1,lat2,lon2,fileName,fileSize))\n\n                # check file existance and size .. right now we just debug log\n                #if (not os.path.isfile(os.path.join(aasDir,fileName))):\n                #    self.debugLog(\"Missing file: \" + fileName)\n                #else:\n                #    actualFileSize = os.path.getsize(os.path.join(aasDir,fileName))\n                #    if (fileSize != actualFileSize):\n                #        self.debugLog(\"Corrupt file: \" + fileName + \" (expected: \"+str(fileSize)+\" bytes, got \"+str(actualFileSize)+\" bytes)\")\n\n                if(type == \"WEATHER\" and mapDir is not None):\n                    self.proccessHEREWeatherInfo(fileName,lat1,lon1,lat2,lon2)\n                    # Process weather overlay asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processHEREWeatherOverlay, fileName, timeStr)\n                elif(type == \"TRAFFIC\" and mapDir is not None):\n                    #save lat at corners of resulting traffic image for later.\n                    if (n1 == 1):\n                        self.tLat1 = lat1\n                    if (n1 == n2):\n                        self.tLat2 = lat2\n                    # Process traffic map asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processHERETrafficMap, fileName, timeStr)\n                    \n        elif (self.regex[7].match(line)):\n            # match album art\n            m = self.regex[7].match(line)\n            if (m):\n                fileName = \"{}_{}\".format(m.group(2),m.group(3))\n                fileSize = int(m.group(4))\n                headerOffset = int(len(m.group(2))) + 1\n\n                p = int(m.group(1),16)\n                coverStream = self.checkPorts(p,0)\n                logoStream = self.checkPorts(p,1)\n\n                # CRITICAL FIX: Removed blocking file existence/size checks\n                # These block the main loop when aas directory has thousands of files\n                # The checks were just for debug logging anyway - not critical\n                # Original code at lines 1779-1785 caused slowdowns after hours of runtime\n\n                if (coverStream > -1):\n                    if coverStream == self.streamNum:\n                        #set cover only if downloading covers and including station covers\n                        if (self.cbCoverIncl.get_active() or (not self.cbCovers.get_active())):\n                            self.streamInfo[\"Cover\"] = fileName\n                    self.debugLog(\"Got Album Cover: \" + fileName)\n                elif (logoStream > -1):\n                    if logoStream == self.streamNum:\n                        self.streamInfo[\"Logo\"] = fileName\n                    self.stationLogos[self.stationStr][logoStream] = fileName         # add station logo to database\n                    self.debugLog(\"Got Station Logo: \"+fileName)\n\n                elif(fileName[headerOffset:(5+headerOffset)] == \"DWRO_\" and mapDir is not None):\n                    # Process weather overlay asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processWeatherOverlay, fileName)\n                elif(fileName[headerOffset:(4+headerOffset)] == \"TMT_\" and mapDir is not None):\n                    # Process traffic map asynchronously to avoid blocking nrsc5 stderr reading\n                    GLib.idle_add(self.processTrafficMap, fileName)\n                elif(fileName[headerOffset:(5+headerOffset)] == \"DWRI_\" and mapDir is not None):\n                    self.proccessWeatherInfo(fileName)\n\n        elif (self.regex[0].match(line)):\n            # match station name\n            m = self.regex[0].match(line)\n            self.streamInfo[\"Callsign\"] = m.group(1)\n        elif (self.regex[2].match(line)):\n            # match station slogan\n            m = self.regex[2].match(line)\n            self.streamInfo[\"Slogan\"] = m.group(1)\n        elif (self.regex[16].match(line)):\n            # match message\n            m = self.regex[16].match(line)\n            self.streamInfo[\"Message\"] = m.group(1)\n        elif (self.regex[17].match(line)):\n            # match alert\n            m = self.regex[17].match(line)\n            self.streamInfo[\"Alert\"] = m.group(1)\n        elif (self.regex[10].match(line)):\n            # match gain\n            m = self.regex[10].match(line)\n            self.streamInfo[\"Gain\"] = float(m.group(1))\n        elif (self.regex[11].match(line)):\n            # match stream\n            m = self.regex[11].match(line)\n            t = m.group(1)          # stream type\n            s = int(m.group(2), 10) # stream number\n            n = m.group(3)\n\n            self.debugLog(\"Found Stream: Type {:s}, Number {:02X}\". format(t, s))\n            self.lastType = t\n            if (t == \"audio\" and s >= 1 and s <= 8):\n                self.numStreams = s\n                self.streamInfo[\"Streams\"][s-1] = n\n            if (t == \"data\"):\n                self.streamInfo[\"Services\"][self.numServices] = n\n                self.numServices += 1\n        elif (self.regex[12].match(line)):\n            # match port and data_service_type\n            m = self.regex[12].match(line)\n            id = int(m.group(1), 10)\n            p = int(m.group(2), 16)\n            t = int(m.group(3), 10)\n            self.debugLog(\"\\tFound Port: {:03X}\". format(p))\n            \n            if (self.lastType == \"audio\" and self.numStreams > 0):\n                self.streams[self.numStreams-1].append(p)\n            if ((self.lastType == \"data\") and (id == 0) and (self.numServices > 0)):\n                self.streamInfo[\"SvcTypes\"][self.numServices-1] = self.service_data_type_name(t)\n        elif (self.regex[18].match(line)):\n            # match program type\n            m = self.regex[18].match(line)\n            id = int(m.group(1), 10)\n            p = int(m.group(2), 16)\n            t = int(m.group(3), 10)\n            \n            if ((self.lastType == \"audio\") and (id == 0) and (self.numStreams > 0)):\n                self.streamInfo[\"Programs\"][self.numStreams-1] = self.program_type_name(t)\n        elif (self.regex[19].match(line)):\n            # match synchronized\n            self.set_synchronization(1)\n        elif (self.regex[20].match(line)):\n            # match lost synch\n            self.set_synchronization(0)\n        elif (self.regex[21].match(line)):\n            # match lost device\n            self.set_synchronization(-1)\n        elif (self.regex[22].match(line)):\n            # match Open device failed\n            self.on_btnStop_clicked(None)\n            self.set_synchronization(-1)\n            \n    def getControls(self):\n        global resDir\n        # setup gui\n        builder = Gtk.Builder()\n        builder.add_from_file(os.path.join(resDir,\"mainForm.glade\"))\n        builder.connect_signals(self)\n        \n        # Windows\n        self.mainWindow = builder.get_object(\"mainWindow\")\n        self.mainWindow.set_icon_from_file(os.path.join(resDir,\"logo.png\"))\n        self.mainWindow.connect(\"delete-event\", self.shutdown)\n        self.mainWindow.connect(\"destroy\", Gtk.main_quit)\n        self.about_dialog = None\n        \n        # get controls\n        self.image1        = builder.get_object(\"image1\")\n        self.notebookMain  = builder.get_object(\"notebookMain\")\n        self.frameCover    = builder.get_object(\"frameCover\")\n        self.alignmentCover = builder.get_object(\"alignmentCover\")\n        self.imgCover      = builder.get_object(\"imgCover\")\n        self.alignmentMap  = builder.get_object(\"alignment_map\")\n        self.imgMap        = builder.get_object(\"imgMap\")\n        self.spinFreq      = builder.get_object(\"spinFreq\")\n        self.cbxAspect     = builder.get_object(\"cbxAspect\")\n        self.cbxSDRRadio   = builder.get_object(\"cbxSDRRadio\")\n        self.spinGain      = builder.get_object(\"spinGain\")\n        self.cbAutoGain    = builder.get_object(\"cbAutoGain\")\n        self.spinPPM       = builder.get_object(\"spinPPM\")\n        self.lblRTL        = builder.get_object(\"lblRTL\")\n        self.spinRTL       = builder.get_object(\"spinRTL\")\n        self.label14b      = builder.get_object(\"label14b\")\n        self.lblDevIP      = builder.get_object(\"lblDevIP\")\n        self.txtDevIP      = builder.get_object(\"txtDevIP\")\n        self.cbDevIP       = builder.get_object(\"cbDevIP\")\n        self.lblSdrPlaySer = builder.get_object(\"lblSdrPlaySer\")\n        self.txtSDRPlaySer = builder.get_object(\"txtSDRPlaySer\")\n        self.label14d      = builder.get_object(\"label14d\")\n        self.lblSDRPlayAnt = builder.get_object(\"lblSDRPlayAnt\")\n        self.cbxSDRPlayAnt = builder.get_object(\"cbxSDRPlayAnt\")\n        self.label14a      = builder.get_object(\"label14a\")\n        self.cbLog         = builder.get_object(\"cbLog\")\n        self.cbCovers      = builder.get_object(\"cbCovers\")\n        self.lblCoverIncl  = builder.get_object(\"lblCoverIncl\")\n        self.cbCoverIncl   = builder.get_object(\"cbCoverIncl\")\n        self.lblExtend     = builder.get_object(\"lblExtend\")\n        self.cbExtend      = builder.get_object(\"cbExtend\")\n        self.btnPlay       = builder.get_object(\"btnPlay\")\n        self.btnStop       = builder.get_object(\"btnStop\")\n        self.btnBookmark   = builder.get_object(\"btnBookmark\")\n        self.btnDelete     = builder.get_object(\"btnDelete\")\n        self.btnMap        = builder.get_object(\"btnMap\")\n        self.radMapTraffic = builder.get_object(\"radMapTraffic\")\n        self.radMapWeather = builder.get_object(\"radMapWeather\")\n        self.map_progress  = builder.get_object(\"map_progress\")\n        self.txtTitle      = builder.get_object(\"txtTitle\")\n        self.txtArtist     = builder.get_object(\"txtArtist\")\n        self.txtAlbum      = builder.get_object(\"txtAlbum\")\n        self.txtGenre      = builder.get_object(\"txtGenre\")\n        self.lblName       = builder.get_object(\"lblName\")\n        self.lblSlogan     = builder.get_object(\"lblSlogan\")\n        self.lblMessage    = builder.get_object(\"lblMessage\")\n        self.lblAlert      = builder.get_object(\"lblAlert\")\n        self.txtMessage2   = builder.get_object(\"txtMessage2\")\n        self.txtAlert2     = builder.get_object(\"txtAlert2\")\n        self.btnAudioPrgs0 = builder.get_object(\"btn_audio_prgs0\")\n        self.btnAudioPrgs1 = builder.get_object(\"btn_audio_prgs1\")\n        self.btnAudioPrgs2 = builder.get_object(\"btn_audio_prgs2\")\n        self.btnAudioPrgs3 = builder.get_object(\"btn_audio_prgs3\")\n        self.btnAudioPrgs4 = builder.get_object(\"btn_audio_prgs4\")\n        self.btnAudioPrgs5 = builder.get_object(\"btn_audio_prgs5\")\n        self.btnAudioPrgs6 = builder.get_object(\"btn_audio_prgs6\")\n        self.btnAudioPrgs7 = builder.get_object(\"btn_audio_prgs7\")\n        self.btnAudioLbl0  = builder.get_object(\"btn_audio_lbl0\")\n        self.btnAudioLbl1  = builder.get_object(\"btn_audio_lbl1\")\n        self.btnAudioLbl2  = builder.get_object(\"btn_audio_lbl2\")\n        self.btnAudioLbl3  = builder.get_object(\"btn_audio_lbl3\")\n        self.btnAudioLbl4  = builder.get_object(\"btn_audio_lbl4\")\n        self.btnAudioLbl5  = builder.get_object(\"btn_audio_lbl5\")\n        self.btnAudioLbl6  = builder.get_object(\"btn_audio_lbl6\")\n        self.btnAudioLbl7  = builder.get_object(\"btn_audio_lbl7\")\n        self.lblAudioPrgs0 = builder.get_object(\"lbl_audio_prgs0\")\n        self.lblAudioPrgs1 = builder.get_object(\"lbl_audio_prgs1\")\n        self.lblAudioPrgs2 = builder.get_object(\"lbl_audio_prgs2\")\n        self.lblAudioPrgs3 = builder.get_object(\"lbl_audio_prgs3\")\n        self.lblAudioPrgs4 = builder.get_object(\"lbl_audio_prgs4\")\n        self.lblAudioPrgs5 = builder.get_object(\"lbl_audio_prgs5\")\n        self.lblAudioPrgs6 = builder.get_object(\"lbl_audio_prgs6\")\n        self.lblAudioPrgs7 = builder.get_object(\"lbl_audio_prgs7\")\n        self.lblAudioSvcs0 = builder.get_object(\"lbl_audio_svcs0\")\n        self.lblAudioSvcs1 = builder.get_object(\"lbl_audio_svcs1\")\n        self.lblAudioSvcs2 = builder.get_object(\"lbl_audio_svcs2\")\n        self.lblAudioSvcs3 = builder.get_object(\"lbl_audio_svcs3\")\n        self.lblAudioSvcs4 = builder.get_object(\"lbl_audio_svcs4\")\n        self.lblAudioSvcs5 = builder.get_object(\"lbl_audio_svcs5\")\n        self.lblAudioSvcs6 = builder.get_object(\"lbl_audio_svcs6\")\n        self.lblAudioSvcs7 = builder.get_object(\"lbl_audio_svcs7\")\n        self.lblDataSvcs0  = builder.get_object(\"lbl_data_svcs0\")\n        self.lblDataSvcs1  = builder.get_object(\"lbl_data_svcs1\")\n        self.lblDataSvcs2  = builder.get_object(\"lbl_data_svcs2\")\n        self.lblDataSvcs3  = builder.get_object(\"lbl_data_svcs3\")\n        self.lblDataType0  = builder.get_object(\"lbl_data_svcs10\")\n        self.lblDataType1  = builder.get_object(\"lbl_data_svcs11\")\n        self.lblDataType2  = builder.get_object(\"lbl_data_svcs12\")\n        self.lblDataType3  = builder.get_object(\"lbl_data_svcs13\")\n        self.lblCall       = builder.get_object(\"lblCall\")\n        self.lblGain       = builder.get_object(\"lblGain\")\n        self.lblBitRate    = builder.get_object(\"lblBitRate\")\n        self.lblBitRate2   = builder.get_object(\"lblBitRate2\")\n        self.lblError      = builder.get_object(\"lblError\")\n        self.lblMerLower   = builder.get_object(\"lblMerLower\")\n        self.lblMerUpper   = builder.get_object(\"lblMerUpper\")\n        self.lblBerNow     = builder.get_object(\"lblBerNow\")\n        self.lblBerAvg     = builder.get_object(\"lblBerAvg\")\n        self.lblBerMin     = builder.get_object(\"lblBerMin\")\n        self.lblBerMax     = builder.get_object(\"lblBerMax\")\n        self.imgNoSynch    = builder.get_object(\"img_nosynch\")\n        self.imgSynch      = builder.get_object(\"img_synchpilot\")\n        self.imgLostDevice = builder.get_object(\"img_lostdevice\")\n        self.lvBookmarks   = builder.get_object(\"listviewBookmarks\")\n        self.lsBookmarks   = Gtk.ListStore(str, str, int)\n        \n        self.lvBookmarks.set_model(self.lsBookmarks)\n        self.lvBookmarks.get_selection().connect(\"changed\", self.on_lvBookmarks_selection_changed)\n        \n        self.image1.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"weather.png\")))\n        self.imgNoSynch.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"nosynch.png\")))\n        self.imgSynch.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"synchpilot.png\")))\n        self.imgLostDevice.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"lostdevice.png\")))\n        self.btnMap.set_icon_widget(self.image1)\n    \n        self.mainWindow.connect(\"check-resize\", self.on_cover_resize)\n\n        self.alignmentCover.set_sensitive(True)\n        self.alignmentCover.set_has_window(True)\n        self.alignmentCover.set_events(Gdk.EventMask.BUTTON_PRESS_MASK)\n        self.alignmentCover.connect(\"button-press-event\", self.on_alignmentCover_clicked)\n\n    def initStreamInfo(self):\n        # stream information\n        self.streamInfo = {\n            \"Callsign\": \"\",         # station callsign\n            \"Slogan\": \"\",           # station slogan\n            \"Message\": \"\",          # station message\n            \"Alert\": \"\",            # station alert\n            \"Title\": \"\",            # track title\n            \"Album\": \"\",            # track album\n            \"Genre\": \"\",            # track genre\n            \"Artist\": \"\",           # track artist\n            \"Cover\": \"\",            # filename of track cover\n            \"Logo\": \"\",             # station logo\n            \"Streams\": [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"], # audio stream names\n            \"Programs\": [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"], # audio stream types\n            \"Services\": [\"\",\"\",\"\",\"\"], # data service names\n            \"SvcTypes\": [\"\",\"\",\"\",\"\"], # data service types\n            \"Bitrate\": 0,           # current stream bit rate\n            \"MER\": [0,0],           # modulation error ratio: lower, upper\n            \"BER\": [0,0,0,0],       # bit error rate: current, average, min, max\n            \"Gain\": 0               # automatic gain\n        }\n        \n        self.streams      = [[],[],[],[],[],[],[],[]]\n        self.numStreams   = 0\n        self.numServices  = 0\n        self.lastType     = 0\n        \n        # clear status info\n        self.lblCall.set_label(\"\")\n        self.btnAudioLbl0.set_label(\"\")\n        self.btnAudioLbl1.set_label(\"\")\n        self.btnAudioLbl2.set_label(\"\")\n        self.btnAudioLbl3.set_label(\"\")\n        self.btnAudioLbl4.set_label(\"\")\n        self.btnAudioLbl5.set_label(\"\")\n        self.btnAudioLbl6.set_label(\"\")\n        self.btnAudioLbl7.set_label(\"\")\n        self.lblBitRate.set_label(\"\")\n        self.lblBitRate2.set_label(\"\")\n        self.lblError.set_label(\"\")\n        self.lblGain.set_label(\"\")\n        self.txtTitle.set_text(\"\")\n        self.txtArtist.set_text(\"\")\n        self.txtAlbum.set_text(\"\")\n        self.txtGenre.set_text(\"\")\n        self.imgCover.clear()\n        self.coverImage = \"\"\n        self.lblName.set_label(\"\")\n        self.lblSlogan.set_label(\"\")\n        self.lblSlogan.set_tooltip_text(\"\")\n        self.lblMessage.set_label(\"\")\n        self.lblMessage.set_tooltip_text(\"\")\n        if (self.txtMessage2):\n            self.txtMessage2.set_label(\"\")\n            self.txtMessage2.set_tooltip_text(\"\")\n        self.lblAlert.set_label(\"\")\n        self.lblAlert.set_tooltip_text(\"\")\n        if (self.txtAlert2):\n            self.txtAlert2.set_label(\"\")\n            self.txtAlert2.set_tooltip_text(\"\")\n        self.btnAudioPrgs0.set_sensitive(False)\n        self.btnAudioPrgs1.set_sensitive(False)\n        self.btnAudioPrgs2.set_sensitive(False)\n        self.btnAudioPrgs3.set_sensitive(False)\n        self.btnAudioPrgs4.set_sensitive(False)\n        self.btnAudioPrgs5.set_sensitive(False)\n        self.btnAudioPrgs6.set_sensitive(False)\n        self.btnAudioPrgs7.set_sensitive(False)\n        self.lblAudioPrgs0.set_label(\"\")\n        self.lblAudioPrgs0.set_sensitive(False)\n        self.lblAudioPrgs1.set_label(\"\")\n        self.lblAudioPrgs1.set_sensitive(False)\n        self.lblAudioPrgs2.set_label(\"\")\n        self.lblAudioPrgs2.set_sensitive(False)\n        self.lblAudioPrgs3.set_label(\"\")\n        self.lblAudioPrgs3.set_sensitive(False)\n        self.lblAudioPrgs4.set_label(\"\")\n        self.lblAudioPrgs4.set_sensitive(False)\n        self.lblAudioPrgs5.set_label(\"\")\n        self.lblAudioPrgs5.set_sensitive(False)\n        self.lblAudioPrgs6.set_label(\"\")\n        self.lblAudioPrgs6.set_sensitive(False)\n        self.lblAudioPrgs7.set_label(\"\")\n        self.lblAudioPrgs7.set_sensitive(False)\n        self.lblAudioSvcs0.set_label(\"\")\n        self.lblAudioSvcs0.set_sensitive(False)\n        self.lblAudioSvcs1.set_label(\"\")\n        self.lblAudioSvcs1.set_sensitive(False)\n        self.lblAudioSvcs2.set_label(\"\")\n        self.lblAudioSvcs2.set_sensitive(False)\n        self.lblAudioSvcs3.set_label(\"\")\n        self.lblAudioSvcs3.set_sensitive(False)\n        self.lblAudioSvcs4.set_label(\"\")\n        self.lblAudioSvcs4.set_sensitive(False)\n        self.lblAudioSvcs5.set_label(\"\")\n        self.lblAudioSvcs5.set_sensitive(False)\n        self.lblAudioSvcs6.set_label(\"\")\n        self.lblAudioSvcs6.set_sensitive(False)\n        self.lblAudioSvcs7.set_label(\"\")\n        self.lblAudioSvcs7.set_sensitive(False)\n        self.lblDataSvcs0.set_label(\"\")\n        self.lblDataSvcs1.set_label(\"\")\n        self.lblDataSvcs2.set_label(\"\")\n        self.lblDataSvcs3.set_label(\"\")\n        self.lblDataType0.set_label(\"\")\n        self.lblDataType1.set_label(\"\")\n        self.lblDataType2.set_label(\"\")\n        self.lblDataType3.set_label(\"\")\n        self.lblMerLower.set_label(\"\")\n        self.lblMerUpper.set_label(\"\")\n        self.lblBerNow.set_label(\"\")\n        self.lblBerAvg.set_label(\"\")\n        self.lblBerMin.set_label(\"\")\n        self.lblBerMax.set_label(\"\")\n        self.set_synchronization(0)\n    \n    def loadSettings(self):\n        global aasDir, cfgDir, mapDir\n\n        # load station logos\n        try:\n            stationLogos = os.path.join(cfgDir,\"stationLogos.json\")\n            if (os.path.isfile(stationLogos)):\n                with open(stationLogos, mode='r') as f:\n                    self.stationLogos = json.load(f)\n                for station in self.stationLogos:\n                    while (len(self.stationLogos[station]) < 8):\n                        self.stationLogos[station].append(\"\")\n        except:\n            self.debugLog(\"Error: Unable to load station logo database\", True)\n\n        #load cover metadata\n        try:\n            coverMetas = os.path.join(cfgDir,\"coverMetas.json\")\n            if (os.path.isfile(coverMetas)):\n                with open(coverMetas, mode='r') as f:\n                    self.coverMetas = json.load(f)\n        except:\n            self.debugLog(\"Error: Unable to load cover metadata database\", True)\n\n        self.mainWindow.resize(self.defaultSize[0],self.defaultSize[1])\n\n        # load settings\n        try:\n            configFile = os.path.join(cfgDir,\"config.json\")\n            if (os.path.isfile(configFile)):\n                with open(configFile, mode='r') as f:\n                    config = json.load(f)\n                \n                if \"MapData\" in config:\n                    self.mapData = config[\"MapData\"]\n                    if   (self.mapData[\"mapMode\"] == 0):\n                        self.radMapTraffic.set_active(True)\n                        self.radMapTraffic.toggled()\n                    elif (self.mapData[\"mapMode\"] == 1):\n                        self.radMapWeather.set_active(True)\n                        self.radMapWeather.toggled()\n                \n                if \"Width\" and \"Height\" in config:\n                    self.mainWindow.resize(config[\"Width\"],config[\"Height\"])\n                else:\n                    self.mainWindow.resize(self.defaultSize)\n\n                self.mainWindow.move(config[\"WindowX\"], config[\"WindowY\"])\n                self.spinFreq.set_value(config[\"Frequency\"])\n                self.streamNum = config[\"Stream\"]-1\n                if (self.streamNum < 0):\n                    self.streamNum = 0\n                self.set_program_btns()\n                self.spinGain.set_value(config[\"Gain\"])\n                self.cbAutoGain.set_active(config[\"AutoGain\"])\n                self.spinPPM.set_value(config[\"PPMError\"])\n                self.spinRTL.set_value(config[\"RTL\"])\n                if (\"SDRRadio\" in config):\n                    self.cbxSDRRadio.set_active_id(\"rcvr\"+config[\"SDRRadio\"])\n                if (\"SDRPlaySer\" in config):\n                    self.txtSDRPlaySer.set_text(config[\"SDRPlaySer\"])\n                if (\"SDRPlayAnt\" in config):\n                    self.cbxSDRPlayAnt.set_active_id(\"ant\"+config[\"SDRPlayAnt\"])\n                self.cbLog.set_active(config[\"LogToFile\"])\n                if (\"DLoadArt\" in config):\n                    self.cbCovers.set_active(config[\"DLoadArt\"])\n                if (\"StationArt\" in config):\n                    self.cbCoverIncl.set_active(config[\"StationArt\"])\n                if (\"ExtendQ\" in config):\n                    self.cbExtend.set_active(config[\"ExtendQ\"])\n                if (\"UseIP\" in config):\n                    self.cbDevIP.set_active(config[\"UseIP\"])\n                if (\"DevIP\" in config):\n                    self.txtDevIP.set_text(config[\"DevIP\"])\n                self.bookmarks = config[\"Bookmarks\"]\n                for bookmark in self.bookmarks:\n                    self.lsBookmarks.append(bookmark)\n        except:\n            self.debugLog(\"Error: Unable to load config\", True)\n        \n        # create cfg directory\n        if (not os.path.isdir(cfgDir)):\n            try:\n                os.mkdir(cfgDir)\n                self.debugLog(\"Needed to create config directory!\")\n            except:\n                self.debugLog(\"Error: Unable to create config directory\", True)\n                cfgDir = None\n\n        # create aas directory\n        if (not os.path.isdir(aasDir)):\n            try:\n                os.mkdir(aasDir)\n            except:\n                self.debugLog(\"Error: Unable to create AAS directory\", True)\n                aasDir = None\n        \n        # create map directory\n        if (not os.path.isdir(mapDir)):\n            try:\n                os.mkdir(mapDir)\n            except:\n                self.debugLog(\"Error: Unable to create Map directory\", True)\n                mapDir = None\n        \n        # open log file\n        try:\n            # Close existing logFile to prevent memory leak before opening new one\n            if hasattr(self, 'logFile') and self.logFile is not None and not self.logFile.closed:\n                self.logFile.close()\n            self.logFile = open(\"nrsc5.log\", mode='a')\n        except:\n            self.debugLog(\"Error: Unable to create log file\", True) \n    \n    def shutdown(self, *args):\n        global cfgDir\n        # stop map viewer animation if it's running\n        if (self.mapViewer is not None and self.mapViewer.animateTimer is not None):\n            self.mapViewer.animateTimer.cancel()\n            self.mapViewer.animateStop = True\n            \n            while (self.mapViewer.animateBusy):\n                self.debugLog(\"Animation Busy - Stopping\")\n                if (self.mapViewer.animateTimer is not None):\n                    self.mapViewer.animateTimer.cancel()\n                time.sleep(0.25)\n        \n        self.playing = False\n        \n        # kill nrsc5 if it's running\n        if (self.nrsc5 is not None and not self.nrsc5.poll()):\n            self.nrsc5.kill()\n        \n        # shut down status timer if it's running\n        if (self.statusTimer is not None):\n            self.statusTimer.cancel()\n        \n        # wait for player thread to exit\n        if (self.playerThread is not None and self.playerThread.is_alive()):\n            self.playerThread.join(1)\n        \n        # close log file if it's enabled\n        if (self.logFile is not None):\n            self.logFile.close()\n        \n        # save settings\n        try:\n            with open(os.path.join(cfgDir,\"config.json\"), mode='w') as f:\n                winX, winY = self.mainWindow.get_position()\n                width, height = self.mainWindow.get_size()\n                config = {\n                    \"CfgVersion\": \"1.1.0\",\n                    \"WindowX\"   : winX,\n                    \"WindowY\"   : winY,\n                    \"Width\"     : width,\n                    \"Height\"    : height,\n                    \"Frequency\" : self.spinFreq.get_value(),\n                    \"Stream\"    : int(self.streamNum)+1,\n                    \"Gain\"      : self.spinGain.get_value(),\n                    \"AutoGain\"  : self.cbAutoGain.get_active(),\n                    \"PPMError\"  : int(self.spinPPM.get_value()),\n                    \"RTL\"       : int(self.spinRTL.get_value()),\n                    \"DevIP\"     : self.txtDevIP.get_text(),\n                    \"SDRRadio\"   : self.cbxSDRRadio.get_active_text(),\n                    \"SDRPlaySer\" : self.txtSDRPlaySer.get_text(),\n                    \"SDRPlayAnt\" : self.cbxSDRPlayAnt.get_active_text(),\n                    \"LogToFile\" : self.cbLog.get_active(),\n                    \"DLoadArt\"  : self.cbCovers.get_active(),\n                    \"StationArt\" : self.cbCoverIncl.get_active(),\n                    \"ExtendQ\"   : self.cbExtend.get_active(),\n                    \"UseIP\"     : self.cbDevIP.get_active(),\n                    \"Bookmarks\" : self.bookmarks,\n                    \"MapData\"   : self.mapData,\n                }\n                # sort bookmarks\n                config[\"Bookmarks\"].sort(key=lambda t: t[2])\n                \n                json.dump(config, f, indent=2)\n            \n            with open(os.path.join(cfgDir,\"stationLogos.json\"), mode='w') as f:\n                json.dump(self.stationLogos, f, indent=2)\n\n            with open(os.path.join(cfgDir,\"coverMetas.json\"), mode='w') as f:\n                json.dump(self.coverMetas, f, indent=2)\n        except Exception as e:\n            try:\n                print(e.message, e.args)\n            except:\n                print(e)\n            self.debugLog(\"Error: Unable to save config\", True)\n    \n    def addWeatherMap(self, mapFile):\n        \"\"\"Add a weather map file and maintain size limit\"\"\"\n        self.weatherMaps.append(mapFile)\n        \n        # Limit the size of weatherMaps list to prevent unbounded growth\n        if len(self.weatherMaps) > self.maxWeatherMaps:\n            # Remove oldest maps from the list\n            self.weatherMaps = self.weatherMaps[-self.maxWeatherMaps:]\n    \n    def debugLog(self, message, force=False):\n        if (debugMessages or force):\n            now = datetime.datetime.now()\n            print (now.strftime(\"%b %d %H:%M:%S : \") + message)\n\nclass NRSC5_SLPopup(object):\n    def __init__(self, parent, callback, data):\n        global resDir\n        # setup gui\n        builder = Gtk.Builder()\n        builder.add_from_file(os.path.join(resDir,\"entryForm.glade\"))\n        builder.connect_signals(self)\n\n        self.parent        = parent\n        self.callback      = callback\n        self.data          = data\n        \n        # get the controls\n        self.entryWindow    = builder.get_object(\"entryWindow\")\n        self.txtEntry       = builder.get_object(\"txtEntry\")\n        self.btn_cancel     = builder.get_object(\"btn_cancel\")\n        self.btn_ok         = builder.get_object(\"btn_ok\")\n\n        self.entryWindow.connect(\"delete-event\", self.on_entryWindow_delete)\n\n    def on_cleanup(self, btn):\n        if (btn == self.btn_cancel):\n            self.txtEntry.set_text('')\n        self.entryWindow.close()\n\n    def on_entryWindow_delete(self, *args):\n        self.callback()                                                             # run the callback    \n\nclass NRSC5_Map(object):\n    def __init__(self, parent, callback, data):\n        global resDir\n        # setup gui\n        builder = Gtk.Builder()\n        builder.add_from_file(os.path.join(resDir,\"mapForm.glade\"))\n        builder.connect_signals(self)\n        \n        self.parent         = parent                                                # parent class\n        self.callback       = callback                                              # callback function\n        self.data           = data                                                  # map data\n        self.animateTimer   = None                                                  # timer used to animate weather maps\n        self.animateBusy    = False\n        self.animateStop    = False\n        self.weatherMaps    = parent.weatherMaps                                    # list of weather maps sorted by time \n        self.mapIndex       = 0                                                     # the index of the next weather map to display\n        \n        # get the controls\n        self.mapWindow      = builder.get_object(\"mapWindow\")\n        self.imgMap         = builder.get_object(\"imgMap\")\n        self.radMapWeather  = builder.get_object(\"radMapWeather\")\n        self.radMapTraffic  = builder.get_object(\"radMapTraffic\")\n        self.chkAnimate     = builder.get_object(\"chkAnimate\")\n        self.chkScale       = builder.get_object(\"chkScale\")\n        self.spnSpeed       = builder.get_object(\"spnSpeed\")\n        self.adjSpeed       = builder.get_object(\"adjSpeed\")\n        self.imgKey         = builder.get_object(\"imgKey\")\n\n        self.imgKey.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(os.path.join(resDir,\"radar_key.png\")))\n        self.mapWindow.connect(\"delete-event\", self.on_mapWindow_delete)\n        \n        self.config = data[\"viewerConfig\"]                                          # get the map viewer config\n        self.mapWindow.resize(*self.config[\"windowSize\"])                           # set the window size\n        self.mapWindow.move(*self.config[\"windowPos\"])                              # set the window position\n        if (self.config[\"mode\"] == 0):\n            self.radMapTraffic.set_active(True)                                     # set the map radio buttons\n        elif (self.config[\"mode\"] == 1):\n            self.radMapWeather.set_active(True)\n        self.setMap(self.config[\"mode\"])                                            # display the current map\n        \n        self.chkAnimate.set_active(self.config[\"animate\"])                          # set the animation mode\n        self.chkScale.set_active(self.config[\"scale\"])                              # set the scale mode\n        self.spnSpeed.set_value(self.config[\"animationSpeed\"])                      # set the animation speed\n    \n    def on_radMap_toggled(self, btn):\n        if (btn.get_active()):\n            if (btn == self.radMapTraffic):\n                self.config[\"mode\"] = 0\n                self.imgKey.set_visible(False)\n                \n                # CRITICAL FIX: Properly cancel and clear timer\n                if (self.animateTimer is not None):\n                    self.animateTimer.cancel()\n                    self.animateTimer = None\n                \n                self.setMap(0)\n                \n            elif (btn == self.radMapWeather):\n                self.config[\"mode\"] = 1\n                self.imgKey.set_visible(True)\n                \n                # CRITICAL FIX: Cancel any existing timer first\n                if (self.animateTimer is not None):\n                    self.animateTimer.cancel()\n                    self.animateTimer = None\n                \n                # check if animate is enabled and start animation\n                if (self.config[\"animate\"]):\n                    self.animateTimer = Timer(0.05, self.animate)\n                    self.animateTimer.start()\n                else:\n                    self.setMap(1)\n    \n    def on_chkAnimate_toggled(self, btn):\n        self.config[\"animate\"] = self.chkAnimate.get_active()\n        \n        # CRITICAL FIX: Always cancel existing timer first\n        if (self.animateTimer is not None):\n            self.animateTimer.cancel()\n            self.animateTimer = None\n        \n        if (self.config[\"animate\"] and self.config[\"mode\"] == 1):\n            # start animation\n            self.animateTimer = Timer(self.config[\"animationSpeed\"], self.animate)\n            self.animateTimer.start()\n        else:\n            # animation already stopped above\n            self.mapIndex = len(self.weatherMaps)-1\n            self.setMap(self.config[\"mode\"])\n    \n    def on_chkScale_toggled(self, btn):\n        self.config[\"scale\"] = btn.get_active()\n        if (self.config[\"mode\"] == 1):\n            if (self.config[\"animate\"]):\n                i = len(self.weatherMaps)-1 if (self.mapIndex-1 < 0) else self.mapIndex-1               # get the index for the current map in the animation\n                self.showImage(self.weatherMaps[i], self.config[\"scale\"])                               # show the current map in the animation\n            else:\n                self.showImage(self.data[\"weatherNow\"], self.config[\"scale\"])                           # show the most recent map\n    \n    def on_spnSpeed_value_changed(self, spn):\n        self.config[\"animationSpeed\"] = self.adjSpeed.get_value()                                       # get the animation speed\n    \n    def on_mapWindow_delete(self, *args):\n        # cancel the timer if it's running\n        if (self.animateTimer is not None):\n            self.animateTimer.cancel()\n            self.animateStop = True\n        \n        # wait for animation to finish\n        while (self.animateBusy):\n            self.parent.debugLog(\"Waiting for animation to finish\")\n            if (self.animateTimer is not None):\n                self.animateTimer.cancel()\n            time.sleep(0.25)\n        \n        self.config[\"windowPos\"]  = self.mapWindow.get_position()                                       # store current window position\n        self.config[\"windowSize\"] = self.mapWindow.get_size()                                           # store current window size\n        self.callback()                                                                                 # run the callback\n    \n    def animate(self):\n        global imgLANCZOS\n        fileName = self.weatherMaps[self.mapIndex] if len(self.weatherMaps) else \"\"\n        if (os.path.isfile(fileName)):\n            self.animateBusy = True\n            \n            # CRITICAL FIX: Cancel existing timer before creating new one\n            if (self.animateTimer is not None):\n                self.animateTimer.cancel()\n                self.animateTimer = None\n\n            try:\n                if (self.config[\"scale\"]):\n                    with Image.open(fileName) as img:\n                        resized = img.resize((600,600), imgLANCZOS)\n                        mapImg = imgToPixbuf(resized)\n                        del resized  # Explicit cleanup\n                else:\n                    with Image.open(fileName) as img:\n                        img_copy = img.copy()\n                        mapImg = imgToPixbuf(img_copy)\n                        del img_copy  # Explicit cleanup\n             \n                if (self.config[\"animate\"] and self.config[\"mode\"] == 1 and not self.animateStop):\n                    self.imgMap.set_from_pixbuf(mapImg)\n                    del mapImg  # Free pixbuf memory\n                    \n                    self.mapIndex += 1\n                    if (self.mapIndex >= len(self.weatherMaps)):\n                        self.mapIndex = 0\n                        self.animateTimer = Timer(2, self.animate)\n                    else:\n                        self.animateTimer = Timer(self.config[\"animationSpeed\"], self.animate)\n                     \n                    self.animateTimer.start()\n                else:\n                    del mapImg\n                    self.animateTimer = None\n            finally:\n                # Always reset busy flag\n                self.animateBusy = False\n        else:\n            self.chkAnimate.set_active(False)\n            self.mapIndex = 0\n    \n    def showImage(self, fileName, scale):\n        global imgLANCZOS\n        \n        if (os.path.isfile(fileName)):\n            try:\n                if (scale):\n                    with Image.open(fileName) as img:\n                        mapImg = img.resize((600,600), imgLANCZOS)\n                        pixbuf = imgToPixbuf(mapImg)\n                        self.imgMap.set_from_pixbuf(pixbuf)\n                        del mapImg\n                        del pixbuf\n                else:\n                    with Image.open(fileName) as img:\n                        img_copy = img.copy()\n                        pixbuf = imgToPixbuf(img_copy)\n                        self.imgMap.set_from_pixbuf(pixbuf)\n                        del img_copy\n                        del pixbuf\n            except Exception as e:\n                print(f\"Error loading image {fileName}: {e}\")\n                self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n        else:\n            self.imgMap.set_from_icon_name(\"MISSING_IMAGE\", Gtk.IconSize.DIALOG)\n    \n    def setMap(self, map):\n        global mapDir\n        if (map == 0):\n            self.showImage(os.path.join(mapDir, \"TrafficMap.png\"), False)                    # show traffic map\n        elif (map == 1):\n            self.showImage(self.data[\"weatherNow\"], self.config[\"scale\"])                    # show weather map\n    \n    def updated(self, imageType):\n        if   (self.config[\"mode\"] == 0):\n            self.setMap(0)\n        elif (self.config[\"mode\"] == 1):\n            self.setMap(1)\n            self.mapIndex = len(self.weatherMaps)-1\n\ndef dtToTs(dt):\n    # convert datetime to timestamp\n    return int((dt - datetime.datetime(1970, 1, 1, tzinfo=tz.tzutc())).total_seconds())\n\ndef tsToDt(ts):\n    # convert timestamp to datetime\n    return datetime.datetime.utcfromtimestamp(ts)\n\ndef imgToPixbuf(img):\n    # convert PIL.Image to gdk.pixbuf\n    img_bytes = img.tobytes()\n    data = GLib.Bytes.new(img_bytes)\n    pixbuf = GdkPixbuf.Pixbuf.new_from_bytes(data, GdkPixbuf.Colorspace.RGB, 'A' in img.getbands(),\n                                           8, img.width, img.height, len(img.getbands())*img.width)\n    del img_bytes\n    del data\n    return pixbuf\n\n\nif __name__ == \"__main__\":\n    # show main window and start main thread\n    nrsc5_dui = NRSC5_DUI()\n    nrsc5_dui.mainWindow.show()\n    if (debugMessages and debugAutoStart):\n        nrsc5_dui.on_btnPlay_clicked(nrsc5_dui)\n\n    Gtk.main()\n\n\n"
  },
  {
    "path": "res/entryForm.glade",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- Generated with glade 3.38.2 -->\n<interface>\n  <requires lib=\"gtk+\" version=\"3.0\"/>\n  <object class=\"GtkWindow\" id=\"entryWindow\">\n    <property name=\"can-focus\">False</property>\n    <property name=\"title\" translatable=\"yes\">Update Station Logo</property>\n    <property name=\"modal\">True</property>\n    <child>\n      <object class=\"GtkVBox\" id=\"boxEntry\">\n        <property name=\"visible\">True</property>\n        <property name=\"can-focus\">False</property>\n        <property name=\"hexpand\">True</property>\n        <property name=\"vexpand\">False</property>\n        <property name=\"baseline-position\">top</property>\n        <child>\n          <object class=\"GtkTable\" id=\"tableEntry\">\n            <property name=\"visible\">True</property>\n            <property name=\"can-focus\">False</property>\n            <property name=\"hexpand\">True</property>\n            <property name=\"n-rows\">3</property>\n            <property name=\"n-columns\">3</property>\n            <property name=\"column-spacing\">3</property>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblEntry\">\n                <property name=\"visible\">True</property>\n                <property name=\"can-focus\">False</property>\n                <property name=\"hexpand\">True</property>\n                <property name=\"xpad\">10</property>\n                <property name=\"label\" translatable=\"yes\">Enter URL for new station logo:</property>\n              </object>\n              <packing>\n                <property name=\"right-attach\">3</property>\n                <property name=\"x-options\">GTK_FILL</property>\n                <property name=\"y-options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkEntry\" id=\"txtEntry\">\n                <property name=\"visible\">True</property>\n                <property name=\"can-focus\">True</property>\n                <property name=\"tooltip-text\" translatable=\"yes\">URL for external station logo</property>\n                <property name=\"hexpand\">True</property>\n                <property name=\"width-chars\">50</property>\n              </object>\n              <packing>\n                <property name=\"right-attach\">3</property>\n                <property name=\"top-attach\">1</property>\n                <property name=\"bottom-attach\">2</property>\n                <property name=\"x-options\">GTK_FILL</property>\n                <property name=\"y-options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblBuffer\">\n                <property name=\"visible\">True</property>\n                <property name=\"can-focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"top-attach\">2</property>\n                <property name=\"bottom-attach\">3</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkButton\" id=\"btn_cancel\">\n                <property name=\"label\" translatable=\"yes\">Cancel</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can-focus\">True</property>\n                <property name=\"receives-default\">False</property>\n                <property name=\"halign\">end</property>\n                <signal name=\"clicked\" handler=\"on_cleanup\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"left-attach\">1</property>\n                <property name=\"right-attach\">2</property>\n                <property name=\"top-attach\">2</property>\n                <property name=\"bottom-attach\">3</property>\n                <property name=\"x-options\">GTK_FILL</property>\n                <property name=\"y-options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkButton\" id=\"btn_ok\">\n                <property name=\"label\" translatable=\"yes\">Ok</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can-focus\">True</property>\n                <property name=\"receives-default\">False</property>\n                <property name=\"halign\">end</property>\n                <signal name=\"clicked\" handler=\"on_cleanup\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"left-attach\">2</property>\n                <property name=\"right-attach\">3</property>\n                <property name=\"top-attach\">2</property>\n                <property name=\"bottom-attach\">3</property>\n                <property name=\"x-options\">GTK_FILL</property>\n                <property name=\"y-options\">GTK_FILL</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">0</property>\n          </packing>\n        </child>\n      </object>\n    </child>\n  </object>\n</interface>\n"
  },
  {
    "path": "res/mainForm-narrow.glade",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- Generated with glade 3.40.0 -->\n<interface>\n  <requires lib=\"gtk+\" version=\"3.0\"/>\n  <object class=\"GtkAdjustment\" id=\"adjFreq\">\n    <property name=\"lower\">88.10</property>\n    <property name=\"upper\">107.90</property>\n    <property name=\"value\">88.10</property>\n    <property name=\"step_increment\">0.20</property>\n    <property name=\"page_increment\">1</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjGain\">\n    <property name=\"lower\">0.00</property>\n    <property name=\"upper\">49.60</property>\n    <property name=\"step_increment\">0.01</property>\n    <property name=\"page_increment\">1</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjPPM\">\n    <property name=\"lower\">-1000</property>\n    <property name=\"upper\">1000</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">10</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjRTL\">\n    <property name=\"upper\">255</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">16</property>\n  </object>\n    <object class=\"GtkAdjustment\" id=\"adjStream\">\n    <property name=\"lower\">1</property>\n    <property name=\"upper\">4</property>\n    <property name=\"value\">1</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">10</property>\n  </object>\n  <object class=\"GtkImage\" id=\"image1\">\n    <property name=\"visible\">True</property>\n    <property name=\"can_focus\">False</property>\n  </object>\n  <object class=\"GtkWindow\" id=\"mainWindow\">\n    <property name=\"can_focus\">False</property>\n    <property name=\"title\" translatable=\"yes\">NRSC5 DUI</property>\n    <child>\n      <placeholder/>\n    </child>\n    <child>\n      <object class=\"GtkVBox\" id=\"vboxMain\">\n        <property name=\"visible\">True</property>\n        <property name=\"can_focus\">False</property>\n        <child>\n          <object class=\"GtkToolbar\" id=\"toolbar1\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnPlay\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Play</property>\n                <property name=\"label\" translatable=\"yes\">Play</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-media-play</property>\n                <signal name=\"clicked\" handler=\"on_btnPlay_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnStop\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Stop</property>\n                <property name=\"label\" translatable=\"yes\">Stop</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-media-stop</property>\n                <signal name=\"clicked\" handler=\"on_btnStop_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkSeparatorToolItem\" id=\"seperator1\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnBookmark\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Bookmark Station</property>\n                <property name=\"label\" translatable=\"yes\">Add Bookmark</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"icon_name\">bookmark-new</property>\n                <signal name=\"clicked\" handler=\"on_btnBookmark_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnDelete\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Delete Bookmark</property>\n                <property name=\"label\" translatable=\"yes\">Delete Bookmark</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-delete</property>\n                <signal name=\"clicked\" handler=\"on_btnDelete_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkSeparatorToolItem\" id=\"seperator2\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnMap\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Weather and Traffic Map Viewer</property>\n                <property name=\"label\" translatable=\"yes\">Weather &amp; Traffic Maps</property>\n                <property name=\"use_underline\">True</property>\n                <signal name=\"clicked\" handler=\"on_btnMap_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnAbout\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">About</property>\n                <property name=\"label\" translatable=\"yes\">About</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-about</property>\n                <signal name=\"clicked\" handler=\"on_btnAbout_activate\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">0</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkAlignment\" id=\"alignmentFreq\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"halign\">GTK_ALIGN_START</property>\n            <property name=\"xscale\">0</property>\n            <property name=\"yscale\">0</property>\n            <child>\n              <object class=\"GtkTable\" id=\"tableFreq\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"n_columns\">3</property>\n                <property name=\"column_spacing\">3</property>\n                <child>\n                  <object class=\"GtkLabel\" id=\"lblFreq\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"xpad\">10</property>\n                    <property name=\"label\" translatable=\"yes\">Frequency</property>\n                    <property name=\"justify\">center</property>\n                    <property name=\"single_line_mode\">True</property>\n                    <property name=\"xalign\">0</property>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkSpinButton\" id=\"spinFreq\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"invisible_char\">●</property>\n                    <property name=\"width_chars\">6</property>\n                    <property name=\"primary_icon_activatable\">False</property>\n                    <property name=\"secondary_icon_activatable\">False</property>\n                    <property name=\"adjustment\">adjFreq</property>\n                    <property name=\"digits\">1</property>\n                    <property name=\"snap_to_ticks\">True</property>\n                    <property name=\"numeric\">True</property>\n                    <property name=\"wrap\">True</property>\n                    <signal name=\"activate\" handler=\"on_btnPlay_clicked\" swapped=\"no\"/>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkLabel\" id=\"lblCall\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"xpad\">10</property>\n                    <property name=\"single_line_mode\">True</property>\n                    <property name=\"xalign\">0</property>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"padding\">3</property>\n            <property name=\"position\">1</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkAlignment\" id=\"alignmentStream\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <child>\n              <object class=\"GtkTable\" id=\"tableStream\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"n_columns\">4</property>\n                <property name=\"n_rows\">2</property>\n                <property name=\"column_spacing\">3</property>\n                <property name=\"homogeneous\">True</property>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs0\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl0\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl2\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs3\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl3\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">3</property>\n                    <property name=\"right_attach\">4</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs4\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl4\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs5\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl5\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs6\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl6\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs7\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl7\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">3</property>\n                    <property name=\"right_attach\">4</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"padding\">0</property>\n            <property name=\"position\">2</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkNotebook\" id=\"notebookMain\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">True</property>\n            <signal name=\"switch-page\" handler=\"on_notebookMain_switch_page\" swapped=\"no\"/>\n            <child>\n              <object class=\"GtkFrame\" id=\"frameCover\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkScrolledWindow\" id=\"alignmentCover\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <child>\n                      <object class=\"GtkImage\" id=\"imgCover\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"expand\">TRUE</property>\n                        <property name=\"halign\">GTK_ALIGN_FILL</property>\n                        <property name=\"valign\">GTK_ALIGN_FILL</property>\n                      </object>\n                    </child>\n                 </object>\n                </child>                \n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"lblCover\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Album Art&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                  </object>\n                </child>\n              </object>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label2\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Album Art</property>\n                <property name=\"justify\">center</property>\n              </object>\n              <packing>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkFrame\" id=\"frame1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkAlignment\" id=\"alignment1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"table1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">15</property>\n                        <property name=\"n_columns\">5</property>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label6\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Name:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblName\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label8\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Slogan:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSlogan\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"message\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Message:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblMessage\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"alert\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Alert:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblAlert\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Bit Rate:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBitRate2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Audio Bit Rate</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"audio_prgs\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Streams:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs0\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs0\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs4\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs6\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs7\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs4\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs6\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs7\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"data_svcs\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Data Svcs:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs0\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs10\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs11\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs12\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs13\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkHSeparator\" id=\"hseparator1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                          </object>\n                          <packing>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label9\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">MER:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">12</property>\n                            <property name=\"bottom_attach\">13</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblMerLower\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Modulation Error Ratio (Lower)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">12</property>\n                            <property name=\"bottom_attach\">13</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblMerUpper\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Modulation Error Ratio (Upper)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">12</property>\n                            <property name=\"bottom_attach\">13</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label10\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">BER:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">13</property>\n                            <property name=\"bottom_attach\">15</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerNow\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">13</property>\n                            <property name=\"bottom_attach\">14</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerAvg\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Average)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">13</property>\n                            <property name=\"bottom_attach\">14</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerMin\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Minimum)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">14</property>\n                            <property name=\"bottom_attach\">15</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerMax\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Maximum)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">14</property>\n                            <property name=\"bottom_attach\">15</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"label4\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Station Info&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">1</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label3\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Info</property>\n                <property name=\"justify\">center</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"position\">1</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkFrame\" id=\"frameSettings\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkAlignment\" id=\"alignmentSettings\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"tableSettings\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">12</property>\n                        <property name=\"n_columns\">3</property>\n                        <property name=\"column_spacing\">10</property>\n                        <property name=\"row_spacing\">3</property>\n                        <child>\n                          <placeholder/>\n                        </child>\n                        <child>\n                          <placeholder/>\n                        </child>\n                        <child>\n                          <placeholder/>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblAspect\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Aspect ratio:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkComboBoxText\" id=\"cbxAspect\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Choose display style</property>\n                            <property name=\"has_entry\">False</property>\n                            <property name=\"active\">0</property>\n                            <signal name=\"changed\" handler=\"on_cbxAspect_changed\" swapped=\"no\"/>\n                            <items>\n                              <item translatable=\"yes\" id=\"aspectnull\">no change</item>\n                              <item translatable=\"yes\" id=\"aspectnarrow\">narrow</item>\n                              <item translatable=\"yes\" id=\"aspectwidw\">wide</item>\n                            </items>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14e\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSDRRadio\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">SDR Radio:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkComboBoxText\" id=\"cbxSDRRadio\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n    \t\t                <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Choose SDR device</property>\n                            <property name=\"has_entry\">False</property>\n                            <property name=\"active\">0</property>\n                            <signal name=\"changed\" handler=\"on_cbxSDRRadio_changed\" swapped=\"no\"/>\n                            <items>\n                              <item translatable=\"yes\" id=\"rcvrRTL-SDR\">RTL-SDR</item>\n                              <item translatable=\"yes\" id=\"rcvrSDRPlay\">SDRPlay</item>\n                            </items>\n                          </object>                          \n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14c\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Gain:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkSpinButton\" id=\"spinGain\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">RF Gain (dBm)</property>\n                            <property name=\"invisible_char\">●</property>\n                            <property name=\"width_chars\">5</property>\n                            <property name=\"primary_icon_activatable\">False</property>\n                            <property name=\"secondary_icon_activatable\">False</property>\n                            <property name=\"adjustment\">adjGain</property>\n                            <property name=\"digits\">2</property>\n                            <property name=\"snap_to_ticks\">True</property>\n                            <property name=\"numeric\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbAutoGain\">\n                            <property name=\"label\" translatable=\"yes\">Auto</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Automatic Gain</property>\n                            <property name=\"active\">True</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <signal name=\"toggled\" handler=\"on_cbAutoGain_toggled\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">PPM Error:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkSpinButton\" id=\"spinPPM\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Crystal Error Correction (PPM)</property>\n                            <property name=\"invisible_char\">●</property>\n                            <property name=\"width_chars\">5</property>\n                            <property name=\"primary_icon_activatable\">False</property>\n                            <property name=\"secondary_icon_activatable\">False</property>\n                            <property name=\"adjustment\">adjPPM</property>\n                            <property name=\"snap_to_ticks\">True</property>\n                            <property name=\"numeric\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">PPM</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblRTL\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">RTL Device:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkSpinButton\" id=\"spinRTL\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">RTL-SDR Device Number (Default = 0)</property>\n                            <property name=\"invisible_char\">●</property>\n                            <property name=\"width_chars\">5</property>\n                            <property name=\"primary_icon_activatable\">False</property>\n                            <property name=\"secondary_icon_activatable\">False</property>\n                            <property name=\"adjustment\">adjRTL</property>\n                            <property name=\"snap_to_ticks\">True</property>\n                            <property name=\"numeric\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14b\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                       <child>\n                          <object class=\"GtkLabel\" id=\"lblDevIP\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">RTL_TCP IP:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkEntry\" id=\"txtDevIP\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">RTL-TCP listening address</property>\n                            <property name=\"max_length\">21</property>\n                            <property name=\"max_width_chars\">21</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbDevIP\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Use rtl_tcp</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSdrPlaySer\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">SDRPlay Ser#:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkEntry\" id=\"txtSDRPlaySer\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">SDRPlay Serial Number</property>\n                            <property name=\"max_length\">10</property>\n                            <property name=\"max_width_chars\">10</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14d\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSDRPlayAnt\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">SDRPlay Ant:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkComboBoxText\" id=\"cbxSDRPlayAnt\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Choose SDRPlay antenna</property>\n                            <property name=\"has_entry\">False</property>\n                            <property name=\"active\">0</property>\n                            <items>\n                              <item translatable=\"yes\" id=\"antAuto\">Auto</item>\n                              <item translatable=\"yes\" id=\"antA\">A</item>\n                              <item translatable=\"yes\" id=\"antB\">B</item>\n                              <item translatable=\"yes\" id=\"antC\">C</item>\n                            </items>\n                          </object>                          \n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14a\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Log to File:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbLog\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Enable Logging of NRSC5 to Disk</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblCovers\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Download Album Art:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbCovers\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Enable Automated Downloading of Album Art</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <signal name=\"clicked\" handler=\"on_cbCovers_clicked\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label15\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblCoverIncl\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Include Station Art:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbCoverIncl\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Include Station-Generated Album Art</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label16\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblExtend\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Extended Queries:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbExtend\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Use Extended MusicBrainz Queries (may be slow)</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label17\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"labelSettings\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Settings&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">2</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Settings</property>\n                <property name=\"justify\">center</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"position\">2</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkScrolledWindow\" id=\"scrolledwindow1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">True</property>\n                <child>\n                  <object class=\"GtkTreeView\" id=\"listviewBookmarks\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <signal name=\"row-activated\" handler=\"on_listviewBookmarks_row_activated\" swapped=\"no\"/>\n                    <child internal-child=\"selection\">\n                      <object class=\"GtkTreeSelection\"/>\n                    </child>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">3</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label7\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Bookmarks</property>\n                <property name=\"justify\">center</property>\n              </object>\n              <packing>\n                <property name=\"position\">3</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkFrame\" id=\"frame2\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkAlignment\" id=\"alignment2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"table3\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">3</property>\n                        <property name=\"n_columns\">2</property>\n                        <child>\n                          <object class=\"GtkScrolledWindow\" id=\"alignment_map\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <child>\n                              <object class=\"GtkImage\" id=\"imgMap\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"expand\">TRUE</property>\n                                <property name=\"halign\">GTK_ALIGN_FILL</property>\n                                <property name=\"valign\">GTK_ALIGN_FILL</property>\n                              </object>\n                            </child>\n                          </object>\n                          <packing>\n                            <property name=\"right_attach\">2</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkRadioButton\" id=\"radMapTraffic\">\n                            <property name=\"label\" translatable=\"yes\">Traffic Map</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_EXPAND</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkRadioButton\" id=\"radMapWeather\">\n                            <property name=\"label\" translatable=\"yes\">Weather Radar</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <property name=\"group\">radMapTraffic</property>\n                            <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_EXPAND</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkProgressBar\" id=\"map_progress\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">0</property>\n                            <property name=\"right_attach\">2</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"label12\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Traffic &amp;amp; Weather Maps&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">4</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label11\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Maps</property>\n                <property name=\"justify\">center</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"position\">4</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">True</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">3</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkFrame\" id=\"frameInfo\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"label_xalign\">0</property>\n            <property name=\"shadow_type\">in</property>\n            <child>\n              <object class=\"GtkAlignment\" id=\"alignmentInfo\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"top_padding\">6</property>\n                <property name=\"bottom_padding\">6</property>\n                <property name=\"left_padding\">6</property>\n                <property name=\"right_padding\">6</property>\n                <child>\n                  <object class=\"GtkTable\" id=\"tableInfo\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"n_rows\">4</property>\n                    <property name=\"n_columns\">2</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblTitle\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Title:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblArtist\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Artist:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">1</property>\n                        <property name=\"bottom_attach\">2</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblAlbum\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Album:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">2</property>\n                        <property name=\"bottom_attach\">3</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblGenre\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Genre:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">3</property>\n                        <property name=\"bottom_attach\">4</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtTitle\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtArtist\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"top_attach\">1</property>\n                        <property name=\"bottom_attach\">2</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtAlbum\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"top_attach\">2</property>\n                        <property name=\"bottom_attach\">3</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtGenre\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"top_attach\">3</property>\n                        <property name=\"bottom_attach\">4</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                  </object>\n                </child>\n              </object>\n            </child>\n            <child type=\"label\">\n              <object class=\"GtkLabel\" id=\"lblInfo\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">&lt;b&gt;Track Info&lt;/b&gt;</property>\n                <property name=\"use_markup\">True</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">4</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkTable\" id=\"tableStatusbar\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"n_columns\">4</property>\n            <child>\n              <object class=\"GtkBox\" id=\"pilot_box\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_nosynch\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Synchronization</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_synchpilot\">\n                    <property name=\"visible\">False</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Synchronization</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_lostdevice\">\n                    <property name=\"visible\">False</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Device failure</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblBitRate\">\n                <property name=\"height_request\">25</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Current Bitrate</property>\n                <property name=\"width_chars\">8</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">1</property>\n                <property name=\"right_attach\">2</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblError\">\n                <property name=\"height_request\">0</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Current Error Rate</property>\n                <property name=\"justify\">right</property>\n                <property name=\"width_chars\">9</property>\n                <property name=\"single_line_mode\">True</property>\n                <property name=\"xalign\">1</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">3</property>\n                <property name=\"right_attach\">4</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblGain\">\n                <property name=\"height_request\">25</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Automatic Gain</property>\n                <property name=\"justify\">center</property>\n                <property name=\"width_chars\">8</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">2</property>\n                <property name=\"right_attach\">3</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">5</property>\n          </packing>\n        </child>\n      </object>\n    </child>\n  </object>\n</interface>\n"
  },
  {
    "path": "res/mainForm-wide.glade",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- Generated with glade 3.40.0 -->\n<interface>\n  <requires lib=\"gtk+\" version=\"3.0\"/>\n  <object class=\"GtkAdjustment\" id=\"adjFreq\">\n    <property name=\"lower\">88.10</property>\n    <property name=\"upper\">107.90</property>\n    <property name=\"value\">88.10</property>\n    <property name=\"step_increment\">0.20</property>\n    <property name=\"page_increment\">1</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjGain\">\n    <property name=\"lower\">0.00</property>\n    <property name=\"upper\">49.60</property>\n    <property name=\"step_increment\">0.01</property>\n    <property name=\"page_increment\">1</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjPPM\">\n    <property name=\"lower\">-1000</property>\n    <property name=\"upper\">1000</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">10</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjRTL\">\n    <property name=\"upper\">255</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">16</property>\n  </object>\n    <object class=\"GtkAdjustment\" id=\"adjStream\">\n    <property name=\"lower\">1</property>\n    <property name=\"upper\">4</property>\n    <property name=\"value\">1</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">10</property>\n  </object>\n  <object class=\"GtkImage\" id=\"image1\">\n    <property name=\"visible\">True</property>\n    <property name=\"can_focus\">False</property>\n  </object>\n  <object class=\"GtkWindow\" id=\"mainWindow\">\n    <property name=\"can_focus\">False</property>\n    <property name=\"title\" translatable=\"yes\">NRSC5 DUI</property>\n    <child>\n      <placeholder/>\n    </child>\n    <child>\n      <object class=\"GtkVBox\" id=\"vboxMain\">\n        <property name=\"visible\">True</property>\n        <property name=\"can_focus\">False</property>\n        <child>\n          <object class=\"GtkToolbar\" id=\"toolbar1\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnPlay\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Play</property>\n                <property name=\"label\" translatable=\"yes\">Play</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-media-play</property>\n                <signal name=\"clicked\" handler=\"on_btnPlay_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnStop\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Stop</property>\n                <property name=\"label\" translatable=\"yes\">Stop</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-media-stop</property>\n                <signal name=\"clicked\" handler=\"on_btnStop_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkSeparatorToolItem\" id=\"seperator1\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnBookmark\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Bookmark Station</property>\n                <property name=\"label\" translatable=\"yes\">Add Bookmark</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"icon_name\">bookmark-new</property>\n                <signal name=\"clicked\" handler=\"on_btnBookmark_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnDelete\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Delete Bookmark</property>\n                <property name=\"label\" translatable=\"yes\">Delete Bookmark</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-delete</property>\n                <signal name=\"clicked\" handler=\"on_btnDelete_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkSeparatorToolItem\" id=\"seperator2\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnMap\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Weather and Traffic Map Viewer</property>\n                <property name=\"label\" translatable=\"yes\">Weather &amp; Traffic Maps</property>\n                <property name=\"use_underline\">True</property>\n                <signal name=\"clicked\" handler=\"on_btnMap_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnAbout\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">About</property>\n                <property name=\"label\" translatable=\"yes\">About</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-about</property>\n                <signal name=\"clicked\" handler=\"on_btnAbout_activate\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">0</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkAlignment\" id=\"alignmentFreq\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"halign\">GTK_ALIGN_START</property>\n            <property name=\"xscale\">0</property>\n            <property name=\"yscale\">0</property>\n            <child>\n              <object class=\"GtkTable\" id=\"tableFreq\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"n_columns\">3</property>\n                <property name=\"column_spacing\">3</property>\n                <child>\n                  <object class=\"GtkLabel\" id=\"lblFreq\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"xpad\">10</property>\n                    <property name=\"label\" translatable=\"yes\">Frequency</property>\n                    <property name=\"justify\">center</property>\n                    <property name=\"single_line_mode\">True</property>\n                    <property name=\"xalign\">0</property>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkSpinButton\" id=\"spinFreq\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"invisible_char\">●</property>\n                    <property name=\"width_chars\">6</property>\n                    <property name=\"primary_icon_activatable\">False</property>\n                    <property name=\"secondary_icon_activatable\">False</property>\n                    <property name=\"adjustment\">adjFreq</property>\n                    <property name=\"digits\">1</property>\n                    <property name=\"snap_to_ticks\">True</property>\n                    <property name=\"numeric\">True</property>\n                    <property name=\"wrap\">True</property>\n                    <signal name=\"activate\" handler=\"on_btnPlay_clicked\" swapped=\"no\"/>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkLabel\" id=\"lblCall\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"xpad\">10</property>\n                    <property name=\"single_line_mode\">True</property>\n                    <property name=\"xalign\">0</property>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"padding\">3</property>\n            <property name=\"position\">1</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkAlignment\" id=\"alignmentStream\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <child>\n              <object class=\"GtkTable\" id=\"tableStream\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"n_columns\">8</property>\n                <property name=\"n_rows\">1</property>\n                <property name=\"column_spacing\">3</property>\n                <property name=\"homogeneous\">True</property>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs0\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl0\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl2\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs3\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl3\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">3</property>\n                    <property name=\"right_attach\">4</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs4\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl4\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">4</property>\n                    <property name=\"right_attach\">5</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs5\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl5\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">5</property>\n                    <property name=\"right_attach\">6</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs6\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl6\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">6</property>\n                    <property name=\"right_attach\">7</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs7\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl7\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">7</property>\n                    <property name=\"right_attach\">8</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"padding\">0</property>\n            <property name=\"position\">2</property>\n          </packing>\n        </child>\n<!-- new horiz 2-pane wide panel -->\n        <child>\n          <object class=\"GtkHBox\" id=\"hboxBody\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"homogeneous\">True</property>\n            <property name=\"spacing\">3</property>\n<!-- new horiz 2-pane wide panel start column 1 -->\n            <child>\n              <object class=\"GtkNotebook\" id=\"notebookMain\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">True</property>\n                <signal name=\"switch-page\" handler=\"on_notebookMain_switch_page\" swapped=\"no\"/>\n                <child>\n                  <object class=\"GtkFrame\" id=\"frameCover\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label_xalign\">0</property>\n                    <property name=\"shadow_type\">in</property>\n                    <child>\n                      <object class=\"GtkScrolledWindow\" id=\"alignmentCover\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <child>\n                          <object class=\"GtkImage\" id=\"imgCover\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"expand\">TRUE</property>\n                            <property name=\"halign\">GTK_ALIGN_FILL</property>\n                            <property name=\"valign\">GTK_ALIGN_FILL</property>\n                          </object>\n                        </child>\n                     </object>\n                    </child>\n                    <child type=\"label\">\n                      <object class=\"GtkLabel\" id=\"lblCover\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"label\" translatable=\"yes\">&lt;b&gt;Album Art&lt;/b&gt;</property>\n                        <property name=\"use_markup\">True</property>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"tab\">\n                  <object class=\"GtkLabel\" id=\"label2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">Album Art</property>\n                    <property name=\"justify\">center</property>\n                  </object>\n                  <packing>\n                    <property name=\"tab_fill\">False</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkFrame\" id=\"frame1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label_xalign\">0</property>\n                    <property name=\"shadow_type\">in</property>\n                    <child>\n                      <object class=\"GtkAlignment\" id=\"alignment1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"top_padding\">6</property>\n                        <property name=\"bottom_padding\">6</property>\n                        <property name=\"left_padding\">6</property>\n                        <property name=\"right_padding\">6</property>\n                        <child>\n                          <object class=\"GtkTable\" id=\"table1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"n_rows\">15</property>\n                            <property name=\"n_columns\">5</property>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label6\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Name:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblName\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label8\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Slogan:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblSlogan\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"message\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Message:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">2</property>\n                                <property name=\"bottom_attach\">3</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblMessage\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">2</property>\n                                <property name=\"bottom_attach\">3</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"alert\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Alert:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">3</property>\n                                <property name=\"bottom_attach\">4</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblAlert\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">3</property>\n                                <property name=\"bottom_attach\">4</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label5\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Bit Rate:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">4</property>\n                                <property name=\"bottom_attach\">5</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblBitRate2\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Audio Bit Rate</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">4</property>\n                                <property name=\"bottom_attach\">5</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"audio_prgs\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Streams:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs0\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs1\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs2\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">4</property>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs3\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">4</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs0\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs1\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs2\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">4</property>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs3\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">4</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs4\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs5\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs6\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">4</property>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_prgs7\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">4</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs4\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs5\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs6\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">4</property>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_audio_svcs7\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">4</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"data_svcs\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">Data Svcs:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs0\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs1\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs2\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">4</property>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs3\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">4</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs10\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs11\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs12\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">4</property>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lbl_data_svcs13\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"ellipsize\">end</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">4</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkHSeparator\" id=\"hseparator1\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                              </object>\n                              <packing>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">11</property>\n                                <property name=\"bottom_attach\">12</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label9\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">MER:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">12</property>\n                                <property name=\"bottom_attach\">13</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblMerLower\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Modulation Error Ratio (Lower)</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">12</property>\n                                <property name=\"bottom_attach\">13</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblMerUpper\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Modulation Error Ratio (Upper)</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">12</property>\n                                <property name=\"bottom_attach\">13</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label10\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">5</property>\n                                <property name=\"label\" translatable=\"yes\">BER:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">13</property>\n                                <property name=\"bottom_attach\">15</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblBerNow\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">13</property>\n                                <property name=\"bottom_attach\">14</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblBerAvg\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Average)</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">13</property>\n                                <property name=\"bottom_attach\">14</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblBerMin\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Minimum)</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">14</property>\n                                <property name=\"bottom_attach\">15</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblBerMax\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Maximum)</property>\n                                <property name=\"ypad\">5</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">3</property>\n                                <property name=\"right_attach\">5</property>\n                                <property name=\"top_attach\">14</property>\n                                <property name=\"bottom_attach\">15</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                          </object>\n                        </child>\n                      </object>\n                    </child>\n                    <child type=\"label\">\n                      <object class=\"GtkLabel\" id=\"label4\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"label\" translatable=\"yes\">&lt;b&gt;Station Info&lt;/b&gt;</property>\n                        <property name=\"use_markup\">True</property>\n                        <property name=\"single_line_mode\">True</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"position\">1</property>\n                  </packing>\n                </child>\n                <child type=\"tab\">\n                  <object class=\"GtkLabel\" id=\"label3\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">Info</property>\n                    <property name=\"justify\">center</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                  <packing>\n                    <property name=\"position\">1</property>\n                    <property name=\"tab_fill\">False</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkFrame\" id=\"frameSettings\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label_xalign\">0</property>\n                    <property name=\"shadow_type\">in</property>\n                    <child>\n                      <object class=\"GtkAlignment\" id=\"alignmentSettings\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"top_padding\">6</property>\n                        <property name=\"bottom_padding\">6</property>\n                        <property name=\"left_padding\">6</property>\n                        <property name=\"right_padding\">6</property>\n                        <child>\n                          <object class=\"GtkTable\" id=\"tableSettings\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"n_rows\">12</property>\n                            <property name=\"n_columns\">3</property>\n                            <property name=\"column_spacing\">10</property>\n                            <property name=\"row_spacing\">3</property>\n                            <child>\n                              <placeholder/>\n                            </child>\n                            <child>\n                              <placeholder/>\n                            </child>\n                            <child>\n                              <placeholder/>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblAspect\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">Aspect ratio:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkComboBoxText\" id=\"cbxAspect\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Choose display style</property>\n                                <property name=\"has_entry\">False</property>\n                                <property name=\"active\">0</property>\n                                <signal name=\"changed\" handler=\"on_cbxAspect_changed\" swapped=\"no\"/>\n                                <items>\n                                  <item translatable=\"yes\" id=\"aspectnull\">no change</item>\n                                  <item translatable=\"yes\" id=\"aspectnarrow\">narrow</item>\n                                  <item translatable=\"yes\" id=\"aspectwidw\">wide</item>\n                                </items>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label14e\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblSDRRadio\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">SDR Radio:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkComboBoxText\" id=\"cbxSDRRadio\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">True</property>\n            \t\t            <property name=\"tooltip_text\" translatable=\"yes\">Choose SDR device</property>\n            \t\t            <property name=\"has_entry\">False</property>\n                                <property name=\"active\">0</property>\n                                <signal name=\"changed\" handler=\"on_cbxSDRRadio_changed\" swapped=\"no\"/>\n                                <items>\n            \t\t\t          <item translatable=\"yes\" id=\"rcvrRTL-SDR\">RTL-SDR</item>\n                                  <item translatable=\"yes\" id=\"rcvrSDRPlay\">SDRPlay</item>\n                                </items>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label14c\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblGain5\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">Gain:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">2</property>\n                                <property name=\"bottom_attach\">3</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkSpinButton\" id=\"spinGain\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">RF Gain (dBm)</property>\n                                <property name=\"invisible_char\">●</property>\n                                <property name=\"width_chars\">5</property>\n                                <property name=\"primary_icon_activatable\">False</property>\n                                <property name=\"secondary_icon_activatable\">False</property>\n                                <property name=\"adjustment\">adjGain</property>\n                                <property name=\"digits\">2</property>\n                                <property name=\"snap_to_ticks\">True</property>\n                                <property name=\"numeric\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">2</property>\n                                <property name=\"bottom_attach\">3</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkCheckButton\" id=\"cbAutoGain\">\n                                <property name=\"label\" translatable=\"yes\">Auto</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Automatic Gain</property>\n                                <property name=\"active\">True</property>\n                                <property name=\"draw_indicator\">True</property>\n                                <signal name=\"toggled\" handler=\"on_cbAutoGain_toggled\" swapped=\"no\"/>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">2</property>\n                                <property name=\"bottom_attach\">3</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblGain1\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">PPM Error:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">3</property>\n                                <property name=\"bottom_attach\">4</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkSpinButton\" id=\"spinPPM\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Crystal Error Correction (PPM)</property>\n                                <property name=\"invisible_char\">●</property>\n                                <property name=\"width_chars\">5</property>\n                                <property name=\"primary_icon_activatable\">False</property>\n                                <property name=\"secondary_icon_activatable\">False</property>\n                                <property name=\"adjustment\">adjPPM</property>\n                                <property name=\"snap_to_ticks\">True</property>\n                                <property name=\"numeric\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">3</property>\n                                <property name=\"bottom_attach\">4</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblGain2\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">PPM</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">0</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">3</property>\n                                <property name=\"bottom_attach\">4</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblRTL\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">RTL Device:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">4</property>\n                                <property name=\"bottom_attach\">5</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkSpinButton\" id=\"spinRTL\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">RTL-SDR Device Number (Default = 0)</property>\n                                <property name=\"invisible_char\">●</property>\n                                <property name=\"width_chars\">5</property>\n                                <property name=\"primary_icon_activatable\">False</property>\n                                <property name=\"secondary_icon_activatable\">False</property>\n                                <property name=\"adjustment\">adjRTL</property>\n                                <property name=\"snap_to_ticks\">True</property>\n                                <property name=\"numeric\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">4</property>\n                                <property name=\"bottom_attach\">5</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label14b\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">4</property>\n                                <property name=\"bottom_attach\">5</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                           <child>\n                              <object class=\"GtkLabel\" id=\"lblDevIP\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">RTL_TCP IP:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkEntry\" id=\"txtDevIP\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">RTL-TCP listening address</property>\n                                <property name=\"max_length\">21</property>\n                                <property name=\"max_width_chars\">21</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkCheckButton\" id=\"cbDevIP\">\n                                <property name=\"label\" translatable=\"yes\">Enable</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Use rtl_tcp</property>\n                                <property name=\"draw_indicator\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">5</property>\n                                <property name=\"bottom_attach\">6</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblSdrPlaySer\">\n                                <property name=\"visible\">False</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">SDRPlay Ser#:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkEntry\" id=\"txtSDRPlaySer\">\n                                <property name=\"visible\">False</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">SDRPlay Serial Number</property>\n                                <property name=\"max_length\">10</property>\n                                <property name=\"max_width_chars\">10</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label14d\">\n                                <property name=\"visible\">False</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">6</property>\n                                <property name=\"bottom_attach\">7</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblSDRPlayAnt\">\n                                <property name=\"visible\">False</property>\n                                <property name=\"sensitive\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">SDRPlay Ant:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkComboBoxText\" id=\"cbxSDRPlayAnt\">\n                                <property name=\"visible\">False</property>\n                                <property name=\"sensitive\">True</property>\n            \t\t            <property name=\"can_focus\">False</property>\n            \t\t            <property name=\"tooltip_text\" translatable=\"yes\">Choose SDRPlay antenna</property>\n            \t\t            <property name=\"has_entry\">False</property>\n                                <property name=\"active\">0</property>\n                                <items>\n            \t\t\t      <item translatable=\"yes\" id=\"antAuto\">Auto</item>\n            \t\t\t      <item translatable=\"yes\" id=\"antA\">A</item>\n                                  <item translatable=\"yes\" id=\"antB\">B</item>\n                                  <item translatable=\"yes\" id=\"antC\">C</item>\n                                </items>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label14a\">\n                                <property name=\"visible\">False</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">7</property>\n                                <property name=\"bottom_attach\">8</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblGain3\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">Log to File:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkCheckButton\" id=\"cbLog\">\n                                <property name=\"label\" translatable=\"yes\">Enable</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Enable Logging of NRSC5 to Disk</property>\n                                <property name=\"draw_indicator\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label14\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">8</property>\n                                <property name=\"bottom_attach\">9</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblCovers\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">Download Album Art:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkCheckButton\" id=\"cbCovers\">\n                                <property name=\"label\" translatable=\"yes\">Enable</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Enable Automated Downloading of Album Art</property>\n                                <property name=\"draw_indicator\">True</property>\n                                <signal name=\"clicked\" handler=\"on_cbCovers_clicked\" swapped=\"no\"/>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label15\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">9</property>\n                                <property name=\"bottom_attach\">10</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblCoverIncl\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">False</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">Include Station Art:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkCheckButton\" id=\"cbCoverIncl\">\n                                <property name=\"label\" translatable=\"yes\">Enable</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">False</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Include Station-Generated Album Art</property>\n                                <property name=\"draw_indicator\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label16\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">10</property>\n                                <property name=\"bottom_attach\">11</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"lblExtend\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">False</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"xpad\">10</property>\n                                <property name=\"label\" translatable=\"yes\">Extended Queries:</property>\n                                <property name=\"justify\">right</property>\n                                <property name=\"single_line_mode\">True</property>\n                                <property name=\"xalign\">1</property>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">11</property>\n                                <property name=\"bottom_attach\">12</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkCheckButton\" id=\"cbExtend\">\n                                <property name=\"label\" translatable=\"yes\">Enable</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"sensitive\">False</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"tooltip_text\" translatable=\"yes\">Use Extended MusicBrainz Queries (may be slow)</property>\n                                <property name=\"draw_indicator\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">11</property>\n                                <property name=\"bottom_attach\">12</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkLabel\" id=\"label17\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"single_line_mode\">True</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">2</property>\n                                <property name=\"right_attach\">3</property>\n                                <property name=\"top_attach\">11</property>\n                                <property name=\"bottom_attach\">12</property>\n                                <property name=\"x_options\">GTK_FILL</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                          </object>\n                        </child>\n                      </object>\n                    </child>\n                    <child type=\"label\">\n                      <object class=\"GtkLabel\" id=\"labelSettings\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"label\" translatable=\"yes\">&lt;b&gt;Settings&lt;/b&gt;</property>\n                        <property name=\"use_markup\">True</property>\n                        <property name=\"single_line_mode\">True</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"position\">2</property>\n                  </packing>\n                </child>\n                <child type=\"tab\">\n                  <object class=\"GtkLabel\" id=\"label1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">Settings</property>\n                    <property name=\"justify\">center</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                  <packing>\n                    <property name=\"position\">2</property>\n                    <property name=\"tab_fill\">False</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkScrolledWindow\" id=\"scrolledwindow1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <child>\n                      <object class=\"GtkTreeView\" id=\"listviewBookmarks\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">True</property>\n                        <signal name=\"row-activated\" handler=\"on_listviewBookmarks_row_activated\" swapped=\"no\"/>\n                        <child internal-child=\"selection\">\n                          <object class=\"GtkTreeSelection\"/>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"position\">3</property>\n                  </packing>\n                </child>\n                <child type=\"tab\">\n                  <object class=\"GtkLabel\" id=\"label7\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">Bookmarks</property>\n                    <property name=\"justify\">center</property>\n                  </object>\n                  <packing>\n                    <property name=\"position\">3</property>\n                    <property name=\"tab_fill\">False</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkFrame\" id=\"frame2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label_xalign\">0</property>\n                    <property name=\"shadow_type\">in</property>\n                    <child>\n                      <object class=\"GtkAlignment\" id=\"alignment2\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"top_padding\">6</property>\n                        <property name=\"bottom_padding\">6</property>\n                        <property name=\"left_padding\">6</property>\n                        <property name=\"right_padding\">6</property>\n                        <child>\n                          <object class=\"GtkTable\" id=\"table3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"n_rows\">3</property>\n                            <property name=\"n_columns\">2</property>\n                            <child>\n                              <object class=\"GtkScrolledWindow\" id=\"alignment_map\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <child>\n                                  <object class=\"GtkImage\" id=\"imgMap\">\n                                    <property name=\"visible\">True</property>\n                                    <property name=\"can_focus\">False</property>\n                                    <property name=\"expand\">TRUE</property>\n                                    <property name=\"halign\">GTK_ALIGN_FILL</property>\n                                    <property name=\"valign\">GTK_ALIGN_FILL</property>\n                                  </object>\n                                </child>\n                              </object>\n                              <packing>\n                                <property name=\"right_attach\">2</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkRadioButton\" id=\"radMapTraffic\">\n                                <property name=\"label\" translatable=\"yes\">Traffic Map</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"draw_indicator\">True</property>\n                                <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                              </object>\n                              <packing>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                                <property name=\"x_options\">GTK_EXPAND</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkRadioButton\" id=\"radMapWeather\">\n                                <property name=\"label\" translatable=\"yes\">Weather Radar</property>\n                                <property name=\"use_action_appearance\">False</property>\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">True</property>\n                                <property name=\"receives_default\">False</property>\n                                <property name=\"draw_indicator\">True</property>\n                                <property name=\"group\">radMapTraffic</property>\n                                <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">1</property>\n                                <property name=\"right_attach\">2</property>\n                                <property name=\"top_attach\">1</property>\n                                <property name=\"bottom_attach\">2</property>\n                                <property name=\"x_options\">GTK_EXPAND</property>\n                                <property name=\"y_options\">GTK_FILL</property>\n                              </packing>\n                            </child>\n                            <child>\n                              <object class=\"GtkProgressBar\" id=\"map_progress\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                              </object>\n                              <packing>\n                                <property name=\"left_attach\">0</property>\n                                <property name=\"right_attach\">2</property>\n                              </packing>\n                            </child>\n                          </object>\n                        </child>\n                      </object>\n                    </child>\n                    <child type=\"label\">\n                      <object class=\"GtkLabel\" id=\"label12\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"label\" translatable=\"yes\">&lt;b&gt;Traffic &amp;amp; Weather Maps&lt;/b&gt;</property>\n                        <property name=\"use_markup\">True</property>\n                        <property name=\"single_line_mode\">True</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"position\">4</property>\n                  </packing>\n                </child>\n                <child type=\"tab\">\n                  <object class=\"GtkLabel\" id=\"label11\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">Maps</property>\n                    <property name=\"justify\">center</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                  <packing>\n                    <property name=\"position\">4</property>\n                    <property name=\"tab_fill\">False</property>\n                  </packing>\n                </child>\n              </object>\n              <packing>\n                <property name=\"expand\">True</property>\n                <property name=\"fill\">True</property>\n                <property name=\"position\">1</property>\n              </packing>\n            </child>\n<!-- new horiz 2-pane wide panel start column 2 -->\n            <child>\n              <object class=\"GtkFrame\" id=\"frameInfo\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <!--object class=\"GtkAlignment\" id=\"alignmentInfo\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property-->\n                  <object class=\"GtkVBox\" id=\"vBoxInfo\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"tableInfo\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">4</property>\n                        <property name=\"n_columns\">2</property>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblTitle\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Title:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblArtist\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Artist:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblAlbum\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Album:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGenre\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Genre:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"txtTitle\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"ypad\">10</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"txtArtist\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"ypad\">10</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"txtAlbum\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"ypad\">10</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"txtGenre\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"ypad\">10</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                    <child>\n                      <object class=\"GtkTable\" id=\"tableOther\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">2</property>\n                        <property name=\"n_columns\">1</property>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"txtMessage2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"ypad\">10</property>\n                            <property name=\"halign\">GTK_ALIGN_FILL</property>\n                            <property name=\"single_line_mode\">False</property>\n                            <property name=\"wrap-mode\">PANGO_WRAP_WORD</property>\n                            <property name=\"lines\">2</property>\n                          </object>\n                          <packing>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"txtAlert2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"ypad\">10</property>\n                            <property name=\"halign\">GTK_ALIGN_FILL</property>\n                            <property name=\"single_line_mode\">False</property>\n                            <property name=\"wrap-mode\">PANGO_WRAP_WORD</property>\n                            <property name=\"lines\">2</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"lblInfo\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Track Info&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"fill\">True</property>\n                <property name=\"position\">2</property>\n              </packing>\n            </child>\n<!-- new horiz 2-pane wide panel end table columns -->\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">3</property>\n          </packing>\n        </child>\n<!-- new horiz 2-pane wide panel end -->\n        <child>\n          <object class=\"GtkTable\" id=\"tableStatusbar\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"n_columns\">4</property>\n            <child>\n              <object class=\"GtkBox\" id=\"pilot_box\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_nosynch\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Synchronization</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_synchpilot\">\n                    <property name=\"visible\">False</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Synchronization</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_lostdevice\">\n                    <property name=\"visible\">False</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Device failure</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblBitRate\">\n                <property name=\"height_request\">25</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Current Bitrate</property>\n                <property name=\"width_chars\">8</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">1</property>\n                <property name=\"right_attach\">2</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblError\">\n                <property name=\"height_request\">0</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Current Error Rate</property>\n                <property name=\"justify\">right</property>\n                <property name=\"width_chars\">9</property>\n                <property name=\"single_line_mode\">True</property>\n                <property name=\"xalign\">1</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">3</property>\n                <property name=\"right_attach\">4</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblGain\">\n                <property name=\"height_request\">25</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Automatic Gain</property>\n                <property name=\"justify\">center</property>\n                <property name=\"width_chars\">8</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">2</property>\n                <property name=\"right_attach\">3</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">4</property>\n          </packing>\n        </child>\n      </object>\n    </child>\n  </object>\n</interface>\n"
  },
  {
    "path": "res/mainForm.glade",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- Generated with glade 3.40.0 -->\n<interface>\n  <requires lib=\"gtk+\" version=\"3.0\"/>\n  <object class=\"GtkAdjustment\" id=\"adjFreq\">\n    <property name=\"lower\">88.10</property>\n    <property name=\"upper\">107.90</property>\n    <property name=\"value\">88.10</property>\n    <property name=\"step_increment\">0.20</property>\n    <property name=\"page_increment\">1</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjGain\">\n    <property name=\"lower\">0.00</property>\n    <property name=\"upper\">49.60</property>\n    <property name=\"step_increment\">0.01</property>\n    <property name=\"page_increment\">1</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjPPM\">\n    <property name=\"lower\">-1000</property>\n    <property name=\"upper\">1000</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">10</property>\n  </object>\n  <object class=\"GtkAdjustment\" id=\"adjRTL\">\n    <property name=\"upper\">255</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">16</property>\n  </object>\n    <object class=\"GtkAdjustment\" id=\"adjStream\">\n    <property name=\"lower\">1</property>\n    <property name=\"upper\">4</property>\n    <property name=\"value\">1</property>\n    <property name=\"step_increment\">1</property>\n    <property name=\"page_increment\">10</property>\n  </object>\n  <object class=\"GtkImage\" id=\"image1\">\n    <property name=\"visible\">True</property>\n    <property name=\"can_focus\">False</property>\n  </object>\n  <object class=\"GtkWindow\" id=\"mainWindow\">\n    <property name=\"can_focus\">False</property>\n    <property name=\"title\" translatable=\"yes\">NRSC5 DUI</property>\n    <child>\n      <placeholder/>\n    </child>\n    <child>\n      <object class=\"GtkVBox\" id=\"vboxMain\">\n        <property name=\"visible\">True</property>\n        <property name=\"can_focus\">False</property>\n        <child>\n          <object class=\"GtkToolbar\" id=\"toolbar1\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnPlay\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Play</property>\n                <property name=\"label\" translatable=\"yes\">Play</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-media-play</property>\n                <signal name=\"clicked\" handler=\"on_btnPlay_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnStop\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Stop</property>\n                <property name=\"label\" translatable=\"yes\">Stop</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-media-stop</property>\n                <signal name=\"clicked\" handler=\"on_btnStop_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkSeparatorToolItem\" id=\"seperator1\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnBookmark\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Bookmark Station</property>\n                <property name=\"label\" translatable=\"yes\">Add Bookmark</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"icon_name\">bookmark-new</property>\n                <signal name=\"clicked\" handler=\"on_btnBookmark_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnDelete\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"sensitive\">False</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Delete Bookmark</property>\n                <property name=\"label\" translatable=\"yes\">Delete Bookmark</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-delete</property>\n                <signal name=\"clicked\" handler=\"on_btnDelete_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkSeparatorToolItem\" id=\"seperator2\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnMap\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Weather and Traffic Map Viewer</property>\n                <property name=\"label\" translatable=\"yes\">Weather &amp; Traffic Maps</property>\n                <property name=\"use_underline\">True</property>\n                <signal name=\"clicked\" handler=\"on_btnMap_clicked\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkToolButton\" id=\"btnAbout\">\n                <property name=\"use_action_appearance\">False</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">About</property>\n                <property name=\"label\" translatable=\"yes\">About</property>\n                <property name=\"use_underline\">True</property>\n                <property name=\"stock_id\">gtk-about</property>\n                <signal name=\"clicked\" handler=\"on_btnAbout_activate\" swapped=\"no\"/>\n              </object>\n              <packing>\n                <property name=\"expand\">False</property>\n                <property name=\"homogeneous\">True</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">0</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkAlignment\" id=\"alignmentFreq\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"halign\">GTK_ALIGN_START</property>\n            <property name=\"xscale\">0</property>\n            <property name=\"yscale\">0</property>\n            <child>\n              <object class=\"GtkTable\" id=\"tableFreq\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"n_columns\">3</property>\n                <property name=\"column_spacing\">3</property>\n                <child>\n                  <object class=\"GtkLabel\" id=\"lblFreq\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"xpad\">10</property>\n                    <property name=\"label\" translatable=\"yes\">Frequency</property>\n                    <property name=\"justify\">center</property>\n                    <property name=\"single_line_mode\">True</property>\n                    <property name=\"xalign\">0</property>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkSpinButton\" id=\"spinFreq\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"invisible_char\">●</property>\n                    <property name=\"width_chars\">6</property>\n                    <property name=\"primary_icon_activatable\">False</property>\n                    <property name=\"secondary_icon_activatable\">False</property>\n                    <property name=\"adjustment\">adjFreq</property>\n                    <property name=\"digits\">1</property>\n                    <property name=\"snap_to_ticks\">True</property>\n                    <property name=\"numeric\">True</property>\n                    <property name=\"wrap\">True</property>\n                    <signal name=\"activate\" handler=\"on_btnPlay_clicked\" swapped=\"no\"/>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkLabel\" id=\"lblCall\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"xpad\">10</property>\n                    <property name=\"single_line_mode\">True</property>\n                    <property name=\"xalign\">0</property>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                    <property name=\"y_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"padding\">3</property>\n            <property name=\"position\">1</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkAlignment\" id=\"alignmentStream\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <child>\n              <object class=\"GtkTable\" id=\"tableStream\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"n_columns\">4</property>\n                <property name=\"n_rows\">2</property>\n                <property name=\"column_spacing\">3</property>\n                <property name=\"homogeneous\">True</property>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs0\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl0\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl2\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs3\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl3\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">3</property>\n                    <property name=\"right_attach\">4</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs4\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl4\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">0</property>\n                    <property name=\"right_attach\">1</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs5\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl5\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">1</property>\n                    <property name=\"right_attach\">2</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs6\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl6\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">2</property>\n                    <property name=\"right_attach\">3</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n                <child>\n                  <object class=\"GtkToggleButton\" id=\"btn_audio_prgs7\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <property name=\"receives_default\">False</property>\n                    <property name=\"hexpand\">True</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"btn_audio_lbl7\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"ellipsize\">end</property>\n                      </object>\n                    </child>\n                  </object>\n                  <packing>\n                    <property name=\"left_attach\">3</property>\n                    <property name=\"right_attach\">4</property>\n                    <property name=\"top_attach\">1</property>\n                    <property name=\"bottom_attach\">2</property>\n                    <property name=\"x_options\">GTK_FILL</property>\n                  </packing>\n                </child>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"padding\">0</property>\n            <property name=\"position\">2</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkNotebook\" id=\"notebookMain\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">True</property>\n            <signal name=\"switch-page\" handler=\"on_notebookMain_switch_page\" swapped=\"no\"/>\n            <child>\n              <object class=\"GtkFrame\" id=\"frameCover\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkScrolledWindow\" id=\"alignmentCover\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <child>\n                      <object class=\"GtkImage\" id=\"imgCover\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"expand\">TRUE</property>\n                        <property name=\"halign\">GTK_ALIGN_FILL</property>\n                        <property name=\"valign\">GTK_ALIGN_FILL</property>\n                      </object>\n                    </child>\n                 </object>\n                </child>                \n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"lblCover\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Album Art&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                  </object>\n                </child>\n              </object>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label2\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Album Art</property>\n                <property name=\"justify\">center</property>\n              </object>\n              <packing>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkFrame\" id=\"frame1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkAlignment\" id=\"alignment1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"table1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">15</property>\n                        <property name=\"n_columns\">5</property>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label6\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Name:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblName\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label8\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Slogan:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSlogan\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"message\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Message:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblMessage\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"alert\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Alert:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblAlert\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Bit Rate:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBitRate2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Audio Bit Rate</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"audio_prgs\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Streams:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs0\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs0\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs4\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs6\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_prgs7\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs4\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs6\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_audio_svcs7\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"data_svcs\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">Data Svcs:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs0\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs10\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs11\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs12\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">4</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lbl_data_svcs13\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"ellipsize\">end</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">4</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkHSeparator\" id=\"hseparator1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                          </object>\n                          <packing>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label9\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">MER:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">12</property>\n                            <property name=\"bottom_attach\">13</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblMerLower\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Modulation Error Ratio (Lower)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">12</property>\n                            <property name=\"bottom_attach\">13</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblMerUpper\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Modulation Error Ratio (Upper)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">12</property>\n                            <property name=\"bottom_attach\">13</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label10\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">5</property>\n                            <property name=\"label\" translatable=\"yes\">BER:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">13</property>\n                            <property name=\"bottom_attach\">15</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerNow\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">13</property>\n                            <property name=\"bottom_attach\">14</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerAvg\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Average)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">13</property>\n                            <property name=\"bottom_attach\">14</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerMin\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Minimum)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">14</property>\n                            <property name=\"bottom_attach\">15</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblBerMax\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Bit Error Rate (Maximum)</property>\n                            <property name=\"ypad\">5</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">3</property>\n                            <property name=\"right_attach\">5</property>\n                            <property name=\"top_attach\">14</property>\n                            <property name=\"bottom_attach\">15</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"label4\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Station Info&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">1</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label3\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Info</property>\n                <property name=\"justify\">center</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"position\">1</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkFrame\" id=\"frameSettings\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkAlignment\" id=\"alignmentSettings\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"tableSettings\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">12</property>\n                        <property name=\"n_columns\">3</property>\n                        <property name=\"column_spacing\">10</property>\n                        <property name=\"row_spacing\">3</property>\n                        <child>\n                          <placeholder/>\n                        </child>\n                        <child>\n                          <placeholder/>\n                        </child>\n                        <child>\n                          <placeholder/>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblAspect\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Aspect ratio:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkComboBoxText\" id=\"cbxAspect\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Choose display style</property>\n                            <property name=\"has_entry\">False</property>\n                            <property name=\"active\">0</property>\n                            <signal name=\"changed\" handler=\"on_cbxAspect_changed\" swapped=\"no\"/>\n                            <items>\n                              <item translatable=\"yes\" id=\"aspectnull\">no change</item>\n                              <item translatable=\"yes\" id=\"aspectnarrow\">narrow</item>\n                              <item translatable=\"yes\" id=\"aspectwidw\">wide</item>\n                            </items>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14e\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSDRRadio\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">SDR Radio:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkComboBoxText\" id=\"cbxSDRRadio\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n    \t\t                <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Choose SDR device</property>\n                            <property name=\"has_entry\">False</property>\n                            <property name=\"active\">0</property>\n                            <signal name=\"changed\" handler=\"on_cbxSDRRadio_changed\" swapped=\"no\"/>\n                            <items>\n                              <item translatable=\"yes\" id=\"rcvrRTL-SDR\">RTL-SDR</item>\n                              <item translatable=\"yes\" id=\"rcvrSDRPlay\">SDRPlay</item>\n                            </items>\n                          </object>                          \n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14c\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain5\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Gain:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkSpinButton\" id=\"spinGain\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">RF Gain (dBm)</property>\n                            <property name=\"invisible_char\">●</property>\n                            <property name=\"width_chars\">5</property>\n                            <property name=\"primary_icon_activatable\">False</property>\n                            <property name=\"secondary_icon_activatable\">False</property>\n                            <property name=\"adjustment\">adjGain</property>\n                            <property name=\"digits\">2</property>\n                            <property name=\"snap_to_ticks\">True</property>\n                            <property name=\"numeric\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbAutoGain\">\n                            <property name=\"label\" translatable=\"yes\">Auto</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Automatic Gain</property>\n                            <property name=\"active\">True</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <signal name=\"toggled\" handler=\"on_cbAutoGain_toggled\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">2</property>\n                            <property name=\"bottom_attach\">3</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain1\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">PPM Error:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkSpinButton\" id=\"spinPPM\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Crystal Error Correction (PPM)</property>\n                            <property name=\"invisible_char\">●</property>\n                            <property name=\"width_chars\">5</property>\n                            <property name=\"primary_icon_activatable\">False</property>\n                            <property name=\"secondary_icon_activatable\">False</property>\n                            <property name=\"adjustment\">adjPPM</property>\n                            <property name=\"snap_to_ticks\">True</property>\n                            <property name=\"numeric\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain2\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">PPM</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">0</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">3</property>\n                            <property name=\"bottom_attach\">4</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblRTL\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">RTL Device:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkSpinButton\" id=\"spinRTL\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">RTL-SDR Device Number (Default = 0)</property>\n                            <property name=\"invisible_char\">●</property>\n                            <property name=\"width_chars\">5</property>\n                            <property name=\"primary_icon_activatable\">False</property>\n                            <property name=\"secondary_icon_activatable\">False</property>\n                            <property name=\"adjustment\">adjRTL</property>\n                            <property name=\"snap_to_ticks\">True</property>\n                            <property name=\"numeric\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14b\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">4</property>\n                            <property name=\"bottom_attach\">5</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                       <child>\n                          <object class=\"GtkLabel\" id=\"lblDevIP\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">RTL_TCP IP:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkEntry\" id=\"txtDevIP\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">RTL-TCP listening address</property>\n                            <property name=\"max_length\">21</property>\n                            <property name=\"max_width_chars\">21</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbDevIP\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Use rtl_tcp</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">5</property>\n                            <property name=\"bottom_attach\">6</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSdrPlaySer\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">SDRPlay Ser#:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkEntry\" id=\"txtSDRPlaySer\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">SDRPlay Serial Number</property>\n                            <property name=\"max_length\">10</property>\n                            <property name=\"max_width_chars\">10</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14d\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">6</property>\n                            <property name=\"bottom_attach\">7</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblSDRPlayAnt\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">SDRPlay Ant:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkComboBoxText\" id=\"cbxSDRPlayAnt\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"sensitive\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Choose SDRPlay antenna</property>\n                            <property name=\"has_entry\">False</property>\n                            <property name=\"active\">0</property>\n                            <items>\n                              <item translatable=\"yes\" id=\"antAuto\">Auto</item>\n                              <item translatable=\"yes\" id=\"antA\">A</item>\n                              <item translatable=\"yes\" id=\"antB\">B</item>\n                              <item translatable=\"yes\" id=\"antC\">C</item>\n                            </items>\n                          </object>                          \n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14a\">\n                            <property name=\"visible\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">7</property>\n                            <property name=\"bottom_attach\">8</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblGain3\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Log to File:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbLog\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Enable Logging of NRSC5 to Disk</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label14\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">8</property>\n                            <property name=\"bottom_attach\">9</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblCovers\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Download Album Art:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbCovers\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Enable Automated Downloading of Album Art</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <signal name=\"clicked\" handler=\"on_cbCovers_clicked\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label15\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">9</property>\n                            <property name=\"bottom_attach\">10</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblCoverIncl\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Include Station Art:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbCoverIncl\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Include Station-Generated Album Art</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label16\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">10</property>\n                            <property name=\"bottom_attach\">11</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"lblExtend\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"xpad\">10</property>\n                            <property name=\"label\" translatable=\"yes\">Extended Queries:</property>\n                            <property name=\"justify\">right</property>\n                            <property name=\"single_line_mode\">True</property>\n                            <property name=\"xalign\">1</property>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkCheckButton\" id=\"cbExtend\">\n                            <property name=\"label\" translatable=\"yes\">Enable</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"sensitive\">False</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"tooltip_text\" translatable=\"yes\">Use Extended MusicBrainz Queries (may be slow)</property>\n                            <property name=\"draw_indicator\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkLabel\" id=\"label17\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"single_line_mode\">True</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">2</property>\n                            <property name=\"right_attach\">3</property>\n                            <property name=\"top_attach\">11</property>\n                            <property name=\"bottom_attach\">12</property>\n                            <property name=\"x_options\">GTK_FILL</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"labelSettings\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Settings&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">2</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Settings</property>\n                <property name=\"justify\">center</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"position\">2</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkScrolledWindow\" id=\"scrolledwindow1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">True</property>\n                <child>\n                  <object class=\"GtkTreeView\" id=\"listviewBookmarks\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <signal name=\"row-activated\" handler=\"on_listviewBookmarks_row_activated\" swapped=\"no\"/>\n                    <child internal-child=\"selection\">\n                      <object class=\"GtkTreeSelection\"/>\n                    </child>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">3</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label7\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Bookmarks</property>\n                <property name=\"justify\">center</property>\n              </object>\n              <packing>\n                <property name=\"position\">3</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkFrame\" id=\"frame2\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label_xalign\">0</property>\n                <property name=\"shadow_type\">in</property>\n                <child>\n                  <object class=\"GtkAlignment\" id=\"alignment2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"top_padding\">6</property>\n                    <property name=\"bottom_padding\">6</property>\n                    <property name=\"left_padding\">6</property>\n                    <property name=\"right_padding\">6</property>\n                    <child>\n                      <object class=\"GtkTable\" id=\"table3\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"n_rows\">3</property>\n                        <property name=\"n_columns\">2</property>\n                        <child>\n                          <object class=\"GtkScrolledWindow\" id=\"alignment_map\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <child>\n                              <object class=\"GtkImage\" id=\"imgMap\">\n                                <property name=\"visible\">True</property>\n                                <property name=\"can_focus\">False</property>\n                                <property name=\"expand\">TRUE</property>\n                                <property name=\"halign\">GTK_ALIGN_FILL</property>\n                                <property name=\"valign\">GTK_ALIGN_FILL</property>\n                              </object>\n                            </child>\n                          </object>\n                          <packing>\n                            <property name=\"right_attach\">2</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkRadioButton\" id=\"radMapTraffic\">\n                            <property name=\"label\" translatable=\"yes\">Traffic Map</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_EXPAND</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkRadioButton\" id=\"radMapWeather\">\n                            <property name=\"label\" translatable=\"yes\">Weather Radar</property>\n                            <property name=\"use_action_appearance\">False</property>\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">True</property>\n                            <property name=\"receives_default\">False</property>\n                            <property name=\"draw_indicator\">True</property>\n                            <property name=\"group\">radMapTraffic</property>\n                            <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">1</property>\n                            <property name=\"right_attach\">2</property>\n                            <property name=\"top_attach\">1</property>\n                            <property name=\"bottom_attach\">2</property>\n                            <property name=\"x_options\">GTK_EXPAND</property>\n                            <property name=\"y_options\">GTK_FILL</property>\n                          </packing>\n                        </child>\n                        <child>\n                          <object class=\"GtkProgressBar\" id=\"map_progress\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                          </object>\n                          <packing>\n                            <property name=\"left_attach\">0</property>\n                            <property name=\"right_attach\">2</property>\n                          </packing>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n                <child type=\"label\">\n                  <object class=\"GtkLabel\" id=\"label12\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"label\" translatable=\"yes\">&lt;b&gt;Traffic &amp;amp; Weather Maps&lt;/b&gt;</property>\n                    <property name=\"use_markup\">True</property>\n                    <property name=\"single_line_mode\">True</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"position\">4</property>\n              </packing>\n            </child>\n            <child type=\"tab\">\n              <object class=\"GtkLabel\" id=\"label11\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">Maps</property>\n                <property name=\"justify\">center</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"position\">4</property>\n                <property name=\"tab_fill\">False</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">True</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">3</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkFrame\" id=\"frameInfo\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"label_xalign\">0</property>\n            <property name=\"shadow_type\">in</property>\n            <child>\n              <object class=\"GtkAlignment\" id=\"alignmentInfo\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"top_padding\">6</property>\n                <property name=\"bottom_padding\">6</property>\n                <property name=\"left_padding\">6</property>\n                <property name=\"right_padding\">6</property>\n                <child>\n                  <object class=\"GtkTable\" id=\"tableInfo\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"n_rows\">4</property>\n                    <property name=\"n_columns\">2</property>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblTitle\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Title:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblArtist\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Artist:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">1</property>\n                        <property name=\"bottom_attach\">2</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblAlbum\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Album:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">2</property>\n                        <property name=\"bottom_attach\">3</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"lblGenre\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"label\" translatable=\"yes\">Genre:</property>\n                        <property name=\"justify\">right</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">3</property>\n                        <property name=\"bottom_attach\">4</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtTitle\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtArtist\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"top_attach\">1</property>\n                        <property name=\"bottom_attach\">2</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtAlbum\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"top_attach\">2</property>\n                        <property name=\"bottom_attach\">3</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"txtGenre\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xpad\">10</property>\n                        <property name=\"ypad\">10</property>\n                        <property name=\"ellipsize\">end</property>\n                        <property name=\"single_line_mode\">True</property>\n                        <property name=\"xalign\">0</property>\n                      </object>\n                      <packing>\n                        <property name=\"left_attach\">1</property>\n                        <property name=\"right_attach\">2</property>\n                        <property name=\"top_attach\">3</property>\n                        <property name=\"bottom_attach\">4</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                  </object>\n                </child>\n              </object>\n            </child>\n            <child type=\"label\">\n              <object class=\"GtkLabel\" id=\"lblInfo\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">&lt;b&gt;Track Info&lt;/b&gt;</property>\n                <property name=\"use_markup\">True</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">4</property>\n          </packing>\n        </child>\n        <child>\n          <object class=\"GtkTable\" id=\"tableStatusbar\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"n_columns\">4</property>\n            <child>\n              <object class=\"GtkBox\" id=\"pilot_box\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_nosynch\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Synchronization</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_synchpilot\">\n                    <property name=\"visible\">False</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Synchronization</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n                <child>\n                  <object class=\"GtkImage\" id=\"img_lostdevice\">\n                    <property name=\"visible\">False</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"tooltip_text\" translatable=\"yes\">Device failure</property>\n                    <property name=\"halign\">GTK_ALIGN_START</property>\n                  </object>\n                </child>\n              </object>\n              <packing>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblBitRate\">\n                <property name=\"height_request\">25</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Current Bitrate</property>\n                <property name=\"width_chars\">8</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">1</property>\n                <property name=\"right_attach\">2</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblError\">\n                <property name=\"height_request\">0</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Current Error Rate</property>\n                <property name=\"justify\">right</property>\n                <property name=\"width_chars\">9</property>\n                <property name=\"single_line_mode\">True</property>\n                <property name=\"xalign\">1</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">3</property>\n                <property name=\"right_attach\">4</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n            <child>\n              <object class=\"GtkLabel\" id=\"lblGain\">\n                <property name=\"height_request\">25</property>\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"tooltip_text\" translatable=\"yes\">Automatic Gain</property>\n                <property name=\"justify\">center</property>\n                <property name=\"width_chars\">8</property>\n                <property name=\"single_line_mode\">True</property>\n              </object>\n              <packing>\n                <property name=\"left_attach\">2</property>\n                <property name=\"right_attach\">3</property>\n                <property name=\"y_options\">GTK_FILL</property>\n              </packing>\n            </child>\n          </object>\n          <packing>\n            <property name=\"expand\">False</property>\n            <property name=\"fill\">True</property>\n            <property name=\"position\">5</property>\n          </packing>\n        </child>\n      </object>\n    </child>\n  </object>\n</interface>\n"
  },
  {
    "path": "res/mapForm.glade",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<interface>\n  <requires lib=\"gtk+\" version=\"3.0\"/>\n  <!-- interface-naming-policy project-wide -->\n  <object class=\"GtkAdjustment\" id=\"adjSpeed\">\n    <property name=\"lower\">0.10000000000000001</property>\n    <property name=\"upper\">2</property>\n    <property name=\"value\">0.5</property>\n    <property name=\"step_increment\">0.050000000000000003</property>\n    <property name=\"page_increment\">0.25</property>\n  </object>\n  <object class=\"GtkWindow\" id=\"mapWindow\">\n    <property name=\"can_focus\">False</property>\n    <property name=\"title\" translatable=\"yes\">Map Viewer</property>\n    <property name=\"destroy_with_parent\">True</property>\n    <child>\n      <object class=\"GtkTable\" id=\"table1\">\n        <property name=\"visible\">True</property>\n        <property name=\"can_focus\">False</property>\n        <property name=\"n_columns\">2</property>\n        <property name=\"column_spacing\">5</property>\n        <child>\n          <object class=\"GtkFrame\" id=\"frame1\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"label_xalign\">0</property>\n            <property name=\"shadow_type\">in</property>\n            <child>\n              <object class=\"GtkAlignment\" id=\"alignment1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"top_padding\">6</property>\n                <property name=\"bottom_padding\">6</property>\n                <property name=\"left_padding\">6</property>\n                <property name=\"right_padding\">6</property>\n                <child>\n                  <object class=\"GtkScrolledWindow\" id=\"scrolledwindow1\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">True</property>\n                    <child>\n                      <object class=\"GtkViewport\" id=\"viewport1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <child>\n                          <object class=\"GtkImage\" id=\"imgMap\">\n                            <property name=\"visible\">True</property>\n                            <property name=\"can_focus\">False</property>\n                            <property name=\"stock\">gtk-missing-image</property>\n                          </object>\n                        </child>\n                      </object>\n                    </child>\n                  </object>\n                </child>\n              </object>\n            </child>\n            <child type=\"label\">\n              <object class=\"GtkLabel\" id=\"label1\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">&lt;b&gt;Map Viewer&lt;/b&gt;</property>\n                <property name=\"use_markup\">True</property>\n              </object>\n            </child>\n          </object>\n        </child>\n        <child>\n          <object class=\"GtkFrame\" id=\"frame2\">\n            <property name=\"visible\">True</property>\n            <property name=\"can_focus\">False</property>\n            <property name=\"label_xalign\">0</property>\n            <property name=\"shadow_type\">in</property>\n            <child>\n              <object class=\"GtkAlignment\" id=\"alignment2\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"top_padding\">6</property>\n                <property name=\"bottom_padding\">6</property>\n                <property name=\"left_padding\">6</property>\n                <property name=\"right_padding\">6</property>\n                <child>\n                  <object class=\"GtkTable\" id=\"table2\">\n                    <property name=\"visible\">True</property>\n                    <property name=\"can_focus\">False</property>\n                    <property name=\"n_rows\">7</property>\n                    <property name=\"row_spacing\">5</property>\n                    <child>\n                      <object class=\"GtkRadioButton\" id=\"radMapWeather\">\n                        <property name=\"label\" translatable=\"yes\">Weather Radar</property>\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">True</property>\n                        <property name=\"receives_default\">False</property>\n                        <property name=\"tooltip_text\" translatable=\"yes\">Display Weather Radar</property>\n                        <property name=\"use_action_appearance\">False</property>\n                        <property name=\"active\">True</property>\n                        <property name=\"draw_indicator\">True</property>\n                        <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                      </object>\n                      <packing>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                        <property name=\"x_padding\">10</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkRadioButton\" id=\"radMapTraffic\">\n                        <property name=\"label\" translatable=\"yes\">Traffic Map</property>\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">True</property>\n                        <property name=\"receives_default\">False</property>\n                        <property name=\"tooltip_text\" translatable=\"yes\">Display Traffic Map</property>\n                        <property name=\"use_action_appearance\">False</property>\n                        <property name=\"draw_indicator\">True</property>\n                        <property name=\"group\">radMapWeather</property>\n                        <signal name=\"toggled\" handler=\"on_radMap_toggled\" swapped=\"no\"/>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">1</property>\n                        <property name=\"bottom_attach\">2</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                        <property name=\"x_padding\">10</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkCheckButton\" id=\"chkAnimate\">\n                        <property name=\"label\" translatable=\"yes\">Animate Radar</property>\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">True</property>\n                        <property name=\"receives_default\">False</property>\n                        <property name=\"tooltip_text\" translatable=\"yes\">Play the animated radar</property>\n                        <property name=\"use_action_appearance\">False</property>\n                        <property name=\"draw_indicator\">True</property>\n                        <signal name=\"toggled\" handler=\"on_chkAnimate_toggled\" swapped=\"no\"/>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">3</property>\n                        <property name=\"bottom_attach\">4</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                        <property name=\"x_padding\">10</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkCheckButton\" id=\"chkScale\">\n                        <property name=\"label\" translatable=\"yes\">Scale Radar</property>\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">True</property>\n                        <property name=\"receives_default\">False</property>\n                        <property name=\"tooltip_text\" translatable=\"yes\">Scale radar to 600x600 px</property>\n                        <property name=\"use_action_appearance\">False</property>\n                        <property name=\"active\">True</property>\n                        <property name=\"draw_indicator\">True</property>\n                        <signal name=\"toggled\" handler=\"on_chkScale_toggled\" swapped=\"no\"/>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">2</property>\n                        <property name=\"bottom_attach\">3</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                        <property name=\"x_padding\">10</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkSpinButton\" id=\"spnSpeed\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">True</property>\n                        <property name=\"tooltip_text\" translatable=\"yes\">Time between frames (seconds)</property>\n                        <property name=\"invisible_char\">●</property>\n                        <property name=\"primary_icon_activatable\">False</property>\n                        <property name=\"secondary_icon_activatable\">False</property>\n                        <property name=\"primary_icon_sensitive\">True</property>\n                        <property name=\"adjustment\">adjSpeed</property>\n                        <property name=\"digits\">2</property>\n                        <signal name=\"value-changed\" handler=\"on_spnSpeed_value_changed\" swapped=\"no\"/>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">6</property>\n                        <property name=\"bottom_attach\">7</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkLabel\" id=\"label3\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"xalign\">0</property>\n                        <property name=\"xpad\">5</property>\n                        <property name=\"label\" translatable=\"yes\">Animation Speed</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">7</property>\n                        <property name=\"bottom_attach\">6</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkHSeparator\" id=\"hseparator1\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">4</property>\n                        <property name=\"bottom_attach\">5</property>\n                        <property name=\"x_options\">GTK_FILL</property>\n                        <property name=\"y_options\">GTK_FILL</property>\n                      </packing>\n                    </child>\n                    <child>\n                      <object class=\"GtkImage\" id=\"imgKey\">\n                        <property name=\"visible\">True</property>\n                        <property name=\"can_focus\">False</property>\n                        <property name=\"yalign\">1</property>\n                      </object>\n                      <packing>\n                        <property name=\"top_attach\">7</property>\n                        <property name=\"bottom_attach\">8</property>\n                      </packing>\n                    </child>\n                  </object>\n                </child>\n              </object>\n            </child>\n            <child type=\"label\">\n              <object class=\"GtkLabel\" id=\"label2\">\n                <property name=\"visible\">True</property>\n                <property name=\"can_focus\">False</property>\n                <property name=\"label\" translatable=\"yes\">&lt;b&gt;Settings&lt;/b&gt;</property>\n                <property name=\"use_markup\">True</property>\n              </object>\n            </child>\n          </object>\n          <packing>\n            <property name=\"left_attach\">1</property>\n            <property name=\"right_attach\">2</property>\n            <property name=\"x_options\">GTK_FILL</property>\n          </packing>\n        </child>\n      </object>\n    </child>\n  </object>\n</interface>\n"
  },
  {
    "path": "setup.py",
    "content": "from distutils.core import setup\r\nimport os, sys, glob, py2exe\r\n\r\n# Find GTK+ installation path\r\n__import__('gtk')\r\nm = sys.modules['gtk']\r\ngtk_base_path = m.__path__[0]\r\n\r\ndef get_files_recursive(directory):\r\n    paths = []\r\n    for (path, directories, filenames) in os.walk(directory):\r\n        for filename in filenames:\r\n            paths.append(os.path.join('..', path, filename))\r\n    return paths\r\n\r\ngtk_package_files = []\r\ngtk_package_files.append([os.path.join('share','themes'), get_files_recursive(os.path.join(gtk_base_path,'..','runtime','share','themes'))])\r\ngtk_package_files.append([os.path.join('lib','gtk-2.0','2.10.0'), get_files_recursive(os.path.join(gtk_base_path,'..','runtime','lib','gtk-2.0','2.10.0'))])\r\ngtk_package_files.append([os.path.join('lib','gtk-2.0','modules'), get_files_recursive(os.path.join(gtk_base_path,'..','runtime','lib','gtk-2.0','modules'))])\r\n# TODO: make script copy empty dirs so this works\r\ngtk_package_files.append([os.path.join('share','icons'), get_files_recursive(os.path.join(gtk_base_path,'..','runtime','share','icons'))])\r\n\r\nsetup(\r\n    name = 'nrsc5-dui',\r\n    description = 'Graphical frontend for nrsc5 cli utility',\r\n    version = '1.0',\r\n\r\n    windows = [\r\n                  {\r\n                      'script': 'nrsc5-dui.py',\r\n                      'icon_resources': [(1, os.path.join(\"res\",\"nrsc5-gui.ico\"))],\r\n                  }\r\n              ],\r\n\r\n    options = {\r\n                  'py2exe': {\r\n                      'packages':'encodings',\r\n                      'includes': 'gtk, gtk.cairo, gio, pango, pangocairo, atk, gobject, datetime, numpy',\r\n                      'dll_excludes': [\r\n                          'CRYPT32.DLL',  # required by ssl\r\n                          'DNSAPI.DLL',\r\n                          'IPHLPAPI.DLL',  # psutil\r\n                          'MPR.dll',\r\n                          'MSIMG32.DLL',\r\n                          'MSWSOCK.dll',\r\n                          'NSI.dll',  # psutil\r\n                          'PSAPI.DLL',\r\n                          'POWRPROF.dll',\r\n                          'USP10.DLL',\r\n                          'WTSAPI32.DLL',  # psutil\r\n                          'api-ms-win-core-apiquery-l1-1-0.dll',\r\n                          'api-ms-win-core-crt-l1-1-0.dll',\r\n                          'api-ms-win-core-crt-l2-1-0.dll',\r\n                          'api-ms-win-core-debug-l1-1-1.dll',\r\n                          'api-ms-win-core-delayload-l1-1-1.dll',\r\n                          'api-ms-win-core-errorhandling-l1-1-1.dll',\r\n                          'api-ms-win-core-file-l1-2-1.dll',\r\n                          'api-ms-win-core-handle-l1-1-0.dll',\r\n                          'api-ms-win-core-heap-l1-2-0.dll',\r\n                          'api-ms-win-core-heap-obsolete-l1-1-0.dll',\r\n                          'api-ms-win-core-io-l1-1-1.dll',\r\n                          'api-ms-win-core-libraryloader-l1-2-0.dll',\r\n                          'api-ms-win-core-localization-l1-2-1.dll',\r\n                          'api-ms-win-core-memory-l1-1-2.dll',\r\n                          'api-ms-win-core-processenvironment-l1-2-0.dll',\r\n                          'api-ms-win-core-processthreads-l1-1-2.dll',\r\n                          'api-ms-win-core-profile-l1-1-0.dll',\r\n                          'api-ms-win-core-registry-l1-1-0.dll',\r\n                          'api-ms-win-core-string-l1-1-0.dll',\r\n                          'api-ms-win-core-string-obsolete-l1-1-0.dll',\r\n                          'api-ms-win-core-synch-l1-2-0.dll',\r\n                          'api-ms-win-core-sysinfo-l1-2-1.dll',\r\n                          'api-ms-win-core-threadpool-l1-2-0.dll',\r\n                          'api-ms-win-core-timezone-l1-1-0.dll',\r\n                          'api-ms-win-core-util-l1-1-0.dll',\r\n                          'api-ms-win-security-base-l1-2-0.dll',\r\n                          'w9xpopen.exe',  # not needed after Windows 9x\r\n                      ],\r\n                      'compressed': True  # create a compressed zipfile\r\n                  },\r\n              },\r\n\r\n    data_files=[\r\n        'README.md',\r\n        \"aas\"+os.path.sep+\"placeholder.txt\",\r\n        \"map\"+os.path.sep+\"placeholder.txt\",\r\n        (\"bin\", glob.glob(\"bin/*\")),\r\n        (\"res\", glob.glob(\"res/*\")),\r\n        (\"cfg\", glob.glob(\"cfg/*\")),\r\n        gtk_package_files[0],\r\n        gtk_package_files[1],\r\n        gtk_package_files[2],\r\n        gtk_package_files[3],\r\n    ]\r\n)"
  }
]