diff --git a/LICENSE b/LICENSE new file mode 100644 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README b/README new file mode 100644 --- /dev/null +++ b/README @@ -0,0 +1,6 @@ +GUI utility for formatting thumb drives for usage with hardware usb emulators +Uses Qt5 https://www.qt.io/ +Uses PyQt5 https://www.riverbankcomputing.com/software/pyqt/intro +Built-in icons by http://www.fatcow.com/free-icons +This program is licensed with GNU GPL v3 (see ./LICENSE for details) +This program is available on http://silverwing.one/pages/kusbff diff --git a/__main__.py b/__main__.py new file mode 100644 --- /dev/null +++ b/__main__.py @@ -0,0 +1,49 @@ +import sys, os, fcntl, signal +from PyQt5 import QtWidgets, QtCore +from devices import get_storage_devices +from forms.mainwindow import MainWindow +from pics import pics + +devices = get_storage_devices(True, 'disk') + + +#if not os.access('/dev/{}', os.R_OK) or not os.access('/dev/{}', os.W_OK): +# if QtWidgets.QMessageBox.question('Access denied', 'Unable to get access to disk drives') + + +app = QtWidgets.QApplication(sys.argv) + + +def handle_signal_wakeup(): + notifier.setEnabled(False) + read_fd = notifier.socket() + try: + os.read(read_fd, 1) + except OSError: + print("Failed to read wakeup fd.") + notifier.setEnabled(True) + + +def destroy(a, b): + form.clean() + app.exit(128 + a) + + +read_fd, write_fd = os.pipe() +for fd in (read_fd, write_fd): + flags = fcntl.fcntl(fd, fcntl.F_GETFL) + fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK) + + +notifier = QtCore.QSocketNotifier(read_fd, QtCore.QSocketNotifier.Read) +notifier.activated.connect(handle_signal_wakeup) +orig_wakeup_fd = signal.set_wakeup_fd(write_fd) +signal.signal(signal.SIGTERM, destroy) +signal.signal(signal.SIGINT, destroy) + + +form = MainWindow() +form.show() +rval = app.exec() +form.clean() +sys.exit(rval) diff --git a/build.sh b/build.sh new file mode 100755 --- /dev/null +++ b/build.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +VERSION="1.0.0" + +pyrcc5 pics/pics.qrc -o pics/__init__.py +rm kusbff.zip +zip -r kusbff.zip ./ -x \*.png \*.ui .hg\* .idea\* build.sh ./packaging/\* \*.pyc \*__pycache__\* +mkdir build +mkdir build/temp + +# Debian/Ubuntu +mkdir build/temp/debian +cp -r packaging/debian/* build/temp/debian +mkdir -p build/temp/debian/opt/kusbff/ +cp kusbff.zip build/temp/debian/opt/kusbff/ +CONTROL=`cat build/temp/debian/DEBIAN/control` +CONTROL=`echo "${CONTROL//%VERSION%/$VERSION}"` +SIZE="$(du -sk --apparent-size build/temp | awk '{print $1}')" +CONTROL=`echo "${CONTROL//%SIZE%/$SIZE}"` +echo "$CONTROL" > build/temp/debian/DEBIAN/control +pushd build/temp +fakeroot dpkg-deb --build debian +popd +mv build/temp/debian.deb build/kusbff_${VERSION}.deb +# Cleanup +rm -rf build/temp diff --git a/devices/__init__.py b/devices/__init__.py new file mode 100644 --- /dev/null +++ b/devices/__init__.py @@ -0,0 +1,35 @@ +import subprocess +import json + + +def get_storage_devices(removable=None, device_type=None): + """ + :param removable: if True return only removable devices, if False only non-removable. If None return all devices + :param device_type: type of the devices to list + :return: list(tuple(str, str, str)) + first tuple item is device name, second identifying string(VENDOR + MODEL), third - size + """ + proc = subprocess.Popen( + ['lsblk', '-dJo', 'NAME,RM,TYPE,VENDOR,MODEL,SIZE'], stdout=subprocess.PIPE, stderr=subprocess.PIPE + ) + + if proc.wait() == 0: + result = proc.stdout.read() + result = json.loads(result.decode('utf')) + rval = [] + for device in result['blockdevices']: + if removable and device['rm'] == '0': + continue + if removable == 'False' and device['rm'] == '1': + continue + if device_type is not None and device['type'] != device_type: + continue + rval.append(( + device['name'], + '{} {} {}'.format(device['vendor'].strip(), device['model'].strip(), device['size']), + device['size'] + )) + + return rval + else: + return [] diff --git a/floppyemu/__init__.py b/floppyemu/__init__.py new file mode 100644 --- /dev/null +++ b/floppyemu/__init__.py @@ -0,0 +1,101 @@ +import subprocess +import os + + +SINGLE_DISK_OFFSET = 1572864 +MAX_IMAGES_ON_DRIVE = 1000 + + +def get_or_create_empty_image(index, temp_path, size=1440): + filename = 'empty{}.ima'.format(index) + filename = os.path.join(temp_path, filename) + + if os.path.isfile(filename): + os.remove(filename) + proc = subprocess.Popen(['mkfs.msdos', '-C', filename, str(size)]) + rval = proc.wait() + if rval != 0: + raise Exception('Not created') + + return filename + + +def format_images(device, indexes, temp_path, size=1440): + for ipair in indexes: + if isinstance(ipair, int): + image = get_or_create_empty_image(ipair, temp_path, size) + write_image(device, image, ipair) + else: + for i in range(ipair[0], ipair[1]): + image = get_or_create_empty_image(i, temp_path, size) + write_image(device, image, i) + + +def write_image(device, path, index=0): + """ + Writes image from path to device at specified index + :param device: + :param index: + :param path: + :return: + """ + with open(device, 'r+b') as dfile: + offset = SINGLE_DISK_OFFSET * index + dfile.seek(offset) + with open(path, 'rb') as ifile: + fdata = ifile.read() + dfile.write(fdata) + + +def read_image(device, path, index=0): + """ + Reads image at specified index from device into path + :param device: + :param path: + :param index: + :return: + """ + with open(device, 'rb') as dfile: + offset = SINGLE_DISK_OFFSET * index + dfile.seek(offset) + bootsector = dfile.read(512) + if bootsector[-1] == 0xAA and bootsector[-2] == 0x55: + # FAT12 image + sectorsize = bootsector[0xB] + (bootsector[0xC] << 8) + sectorcount = bootsector[0x13] + (bootsector[0x14] << 8) + with open(path, 'xb') as ifile: + dfile.seek(offset) + fdata = dfile.read(sectorsize * sectorcount) + ifile.write(fdata) + + +def list_images(device): + """ + Reads device and lists all of images on it + :param device: + :return: (label, size) + """ + rval = [] + with open(device, 'rb') as dfile: + dfile.seek(0, 2) + disks = min(dfile.tell() / SINGLE_DISK_OFFSET, MAX_IMAGES_ON_DRIVE) + dfile.seek(0) + while len(rval) < disks: + bootsector = dfile.read(512) + label = None + if bootsector[0] == 0xEB or bootsector[0] == 0xE9: + sectorsize = bootsector[0xB] + (bootsector[0xC] << 8) + sectorcount = bootsector[0x13] + (bootsector[0x14] << 8) + disksize = sectorsize * sectorcount + if bootsector[0x26] == 0x29: + # label probably exists. + # As an additional precaution check fs type. + # If it's valid, then get label, otherwise consider disk unlabeled + if bootsector[0x36:0x3E] in (b'FAT12 ', b'FAT16 ', b'FAT '): + label = bootsector[0x2B:0x36].decode(encoding='cp1251') + dfile.seek(SINGLE_DISK_OFFSET - 512, 1) + else: + disksize = 0 + dfile.seek(SINGLE_DISK_OFFSET - 512, 1) + rval.append((label, disksize)) + return rval diff --git a/forms/about.py b/forms/about.py new file mode 100644 --- /dev/null +++ b/forms/about.py @@ -0,0 +1,9 @@ +from PyQt5.QtWidgets import QDialog + +from ui.about import Ui_Form + + +class AboutWidget(Ui_Form, QDialog): + def __init__(self): + super().__init__() + self.setupUi(self) diff --git a/forms/format_dlgs.py b/forms/format_dlgs.py new file mode 100644 --- /dev/null +++ b/forms/format_dlgs.py @@ -0,0 +1,78 @@ +from PyQt5 import QtWidgets + +from floppyemu import format_images +from ui import format_dialog, format_one_dialog + + +class FormatManyDialog(QtWidgets.QDialog, format_dialog.Ui_Dialog): + def __init__(self, device, temp_path, parent=None): + super().__init__(parent) + + self.__device = device + self.__temp_path = temp_path + + self.setupUi(self) + + @staticmethod + def show_dialog(device, temp_path): + dlg = FormatManyDialog(device, temp_path) + dlg.exec() + + def accept(self): + try: + if self.rb_size_720.isChecked(): + format_images(self.__device, ((self.sb_from.value(), self.sb_to.value() + 1),), self.__temp_path, 720) + elif self.rb_size_1440.isChecked(): + format_images(self.__device, ((self.sb_from.value(), self.sb_to.value() + 1),), self.__temp_path, 1440) + else: + QtWidgets.QMessageBox.critical( + self, 'Error', + 'Please choose image size before proceeding' + ) + return + except PermissionError: + QtWidgets.QMessageBox.critical( + self, 'Permission error', + 'You have no access to the device %s. ' + 'Please restart program as user with proper rights' % (self.__device,) + ) + return + + super().accept() + + +class FormatOneDialog(QtWidgets.QDialog, format_one_dialog.Ui_Dialog): + def __init__(self, index, device, temp_path, parent=None): + super().__init__(parent) + self.__index = index + self.__device = device + self.__temp_path = temp_path + + self.setupUi(self) + + @staticmethod + def show_dialog(index, device, temp_path): + dlg = FormatOneDialog(index, device, temp_path) + dlg.exec() + + def accept(self): + try: + if self.rb_size_720.isChecked(): + format_images(self.__device, (self.__index, ), self.__temp_path, 720) + elif self.rb_size_1440.isChecked(): + format_images(self.__device, (self.__index, ), self.__temp_path, 1440) + else: + QtWidgets.QMessageBox.critical( + self, 'Error', + 'Please choose image size before proceeding' + ) + return + except PermissionError: + QtWidgets.QMessageBox.critical( + self, 'Permission error', + 'You have no access to the device %s. ' + 'Please restart program as user with proper rights' % (self.__device,) + ) + return + + super().accept() diff --git a/forms/mainwindow.py b/forms/mainwindow.py new file mode 100644 --- /dev/null +++ b/forms/mainwindow.py @@ -0,0 +1,218 @@ +from forms.about import AboutWidget +from ui.mainwindow import Ui_MainWindow +from PyQt5 import QtWidgets, QtCore, QtGui +from devices import get_storage_devices +from mount.udisks import MountManager +import tempfile +import os +import shutil +import stat +import floppyemu +from .format_dlgs import FormatManyDialog, FormatOneDialog + + +class CustomListModel(QtCore.QStringListModel): + def __init__(self, model=()): + self.model = model + super().__init__([m[1] for m in self.model]) + + def setModel(self, model): + self.model = model + self.setStringList([m[1] for m in self.model]) + + def getItem(self, index): + return self.model[index] + + +class CustomTableModel(QtCore.QAbstractTableModel): + headers = ['Label', 'Size'] + + def __init__(self, placeholder): + super().__init__() + self.placeholder = placeholder + self.model = [] + + def setModel(self, model): + self.beginResetModel() + self.model = model + self.endResetModel() + + def data(self, index, role=QtCore.Qt.DisplayRole): + model = self.model[index.row()] + if role == QtCore.Qt.DisplayRole: + if QtCore.QVariant(model[index.column()]): + if index.column() == 1: + return QtCore.QVariant(str(round(model[index.column()] / 1024, 2)) + 'KB') + else: + return QtCore.QVariant(model[index.column()]) + else: + return QtCore.QVariant(self.placeholder) + + def headerData(self, section, orientation, role=QtCore.Qt.DisplayRole): + if orientation == QtCore.Qt.Horizontal and role == QtCore.Qt.DisplayRole: + return QtCore.QVariant(self.headers[section]) + return super().headerData(section, orientation, role) + + def rowCount(self, parent=None): + return len(self.model) + + def columnCount(self, parent=None): + return 2 + + +class MainWindow(Ui_MainWindow, QtWidgets.QMainWindow): + def __init__(self, root=None): + super().__init__() + self.setupUi(self) + + self.root = root if root else tempfile.mktemp(prefix='kusbff_') + os.makedirs(self.root, exist_ok=True) + + self.devices_model = CustomListModel() + self.devices_combobox.setModel(self.devices_model) + self.refresh_disk_drives() + + self.table_model = CustomTableModel('(Not set)') + self.tableView.setModel(self.table_model) + self.refresh_image_list() + + self.action_refresh_devices.triggered.connect(self.refresh_disk_drives) + self.devices_combobox.currentIndexChanged.connect(self.on_device_change) + self.action_open_floppy.triggered.connect(self.open_directory) + self.action_write_floppy.triggered.connect(self.save_directory) + self.action_read_image.triggered.connect(self.read_image) + self.action_write_image.triggered.connect(self.write_image) + self.action_format_disk.triggered.connect(self.format_one) + self.action_format_usb.triggered.connect(self.format_many) + self.action_about.triggered.connect(self.show_about_dialog) + + def show_about_dialog(self): + AboutWidget().exec_() + + def format_one(self): + if self.devices_combobox.currentIndex() != -1: + indexes = self.tableView.selectedIndexes() + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + FormatOneDialog.show_dialog(indexes[0].row(), device, os.path.join(self.root, 'temp')) + self.refresh_image_list() + + def format_many(self): + if self.devices_combobox.currentIndex() != -1: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + FormatManyDialog.show_dialog(device, os.path.join(self.root, 'temp')) + self.refresh_image_list() + + def refresh_disk_drives(self): + self.devices_model.setModel(get_storage_devices(True, 'disk')) + self.refresh_image_list() + + def clean(self): + MountManager.get().dispose_all() + if os.path.exists(self.root): + shutil.rmtree(self.root) + + def on_device_change(self): + # Unmount and remove all old images + MountManager.get().dispose_all() + if os.path.exists(os.path.join(self.root, 'temp')): + for f in os.listdir(os.path.join(self.root, 'temp')): + if os.path.isfile(os.path.join(self.root, 'temp', f)): + os.remove(os.path.join(self.root, 'temp', f)) + else: + shutil.rmtree(os.path.join(self.root, 'temp', f)) + + os.makedirs(os.path.join(self.root, 'temp'), exist_ok=True) + self.refresh_image_list() + + def refresh_image_list(self): + try: + if self.devices_combobox.currentIndex() != -1: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + m = floppyemu.list_images(device) + self.table_model.setModel(m) + except PermissionError: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + QtWidgets.QMessageBox.critical( + self, 'Permission error', + 'You have no access to the device %s. Please restart program as user with proper rights' % device + ) + + def open_directory(self): + try: + if self.devices_combobox.currentIndex() != -1: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + indexes = self.tableView.selectedIndexes() + for index in indexes: + image = os.path.join(self.root, 'temp/image{}.img'.format(index.row())) + if MountManager.get().is_mounted(image): + MountManager.get().unmount(image) + if os.path.exists(image): + os.remove(image) + floppyemu.read_image(device, image, index.row()) + os.makedirs(os.path.join(self.root, 'folders/{}'.format(index.row())), exist_ok=True) + os.chmod(os.path.join(self.root, 'folders/{}'.format(index.row())), + stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) + folder_path = MountManager.get().mount(image) + QtGui.QDesktopServices.openUrl( + QtCore.QUrl.fromLocalFile(os.path.join(self.root, folder_path))) + except: + import traceback + traceback.print_exc() + + def save_directory(self): + if self.devices_combobox.currentIndex() != -1: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + indexes = self.tableView.selectedIndexes() + for index in indexes: + image = os.path.join(self.root, 'temp/image{}.img'.format(index.row())) + if MountManager.get().is_mounted(image): + MountManager.get().unmount(image) + floppyemu.write_image(device, image, index.row()) + shutil.rmtree(os.path.join(self.root, 'folders/{}'.format(index.row()))) + else: + QtWidgets.QMessageBox.critical( + self, 'Error', + 'Directory does not exist' + ) + + self.refresh_image_list() + + def write_image(self): + if self.devices_combobox.currentIndex() != -1: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + indexes = self.tableView.selectedIndexes() + for index in indexes: + fd = QtWidgets.QFileDialog(self) + fd.setAcceptMode(QtWidgets.QFileDialog.AcceptOpen) + fd.setWindowTitle('Select file for image {}'.format(index.row())) + if fd.exec() == QtWidgets.QDialog.Accepted: + image = fd.selectedFiles()[0] + floppyemu.write_image(device, image, index.row()) + else: + return + + self.refresh_image_list() + + def read_image(self): + if self.devices_combobox.currentIndex() != -1: + device = '/dev/{}'.format(self.devices_model.getItem(self.devices_combobox.currentIndex())[0]) + indexes = self.tableView.selectedIndexes() + for index in indexes: + fd = QtWidgets.QFileDialog(self) + fd.setAcceptMode(QtWidgets.QFileDialog.AcceptSave) + fd.setWindowTitle('Select file for image {}'.format(index.row())) + if fd.exec() == QtWidgets.QDialog.Accepted: + image = fd.selectedFiles()[0] + floppyemu.read_image(device, image, index.row()) + else: + return + + def closeEvent(self, event: QtGui.QCloseEvent): + try: + self.clean() + except Exception as e: + event.ignore() + QtWidgets.QMessageBox.critical( + self, 'Error', + 'Unable to clean up. Some resources are in use: {}'.format(e) + ) \ No newline at end of file diff --git a/mount/__init__.py b/mount/__init__.py new file mode 100644 diff --git a/mount/udisks.py b/mount/udisks.py new file mode 100644 --- /dev/null +++ b/mount/udisks.py @@ -0,0 +1,64 @@ +import os + +import dbus + + +class MountException(Exception): + pass + + +class MountManager: + instance = None + + def __init__(self): + self.bus = dbus.SystemBus() + self.manager = self.bus.get_object('org.freedesktop.UDisks2', '/org/freedesktop/UDisks2/Manager') + self.manager_interface = dbus.Interface(self.manager, 'org.freedesktop.UDisks2.Manager') + self.interfaces = {} + + @classmethod + def get(cls): + if not cls.instance: + cls.instance = cls() + + return cls.instance + + def mount(self, source): + f = os.open(source, os.O_RDWR) + path = self.manager_interface.LoopSetup(f, { + 'read-only': ('b', False) + }) + + device = self.bus.get_object('org.freedesktop.UDisks2', path) + self.interfaces[source] = dbus.Interface(device, 'org.freedesktop.UDisks2.Filesystem') + + self.interfaces[source].Mount({'options': 'rw'}) + dbus.Interface(device, 'org.freedesktop.UDisks2.Loop').SetAutoclear(True, []) + mount_point = self.interfaces[source].proxy_object.Get( + 'org.freedesktop.UDisks2.Filesystem', 'MountPoints', dbus_interface='org.freedesktop.DBus.Properties' + )[0] + mount_point = ''.join([str(v) for v in mount_point]) + return mount_point.rstrip(chr(0)) + + def dispose_all(self): + """ + Run this on program closing if you care about your os state to be clean and beautiful + :return: + """ + for s in self.interfaces: + if self.is_mounted(s): + self.interfaces[s].Unmount([]) + else: + dbus.Interface(self.interfaces[s].proxy_object, 'org.freedesktop.UDisks2.Loop').Delete([]) + self.interfaces.clear() + + def is_mounted(self, source): + return source in self.interfaces and bool( + self.interfaces[source].proxy_object.Get( + 'org.freedesktop.UDisks2.Filesystem', 'MountPoints', dbus_interface='org.freedesktop.DBus.Properties' + ) + ) + + def unmount(self, source): + self.interfaces[source].Unmount([]) + del self.interfaces[source] diff --git a/packaging/debian/DEBIAN/control b/packaging/debian/DEBIAN/control new file mode 100644 --- /dev/null +++ b/packaging/debian/DEBIAN/control @@ -0,0 +1,16 @@ +Package: kusbff +Version: %VERSION% +Section: utils +Architecture: all +Maintainer: Khaelenmore Thaal +Depends: python3 (>=3.5.0), python3-pyqt5, util-linux, python3-dbus,udisks2 +Installed-Size: %SIZE% +Priority: optional +Origin: http://silverwing.one/pages/kusbff +Description: QT5 application to format USB thumb drives for use with hardware + floppy emulators(Gotek etc.) + It was written in order to provide a user-friendly way to work with floppy + emulators from linux. + It provides a graphical interface that allows performing key tasks related to + handling floppy disk images on usb thumb drives including writing, reading + and manipulating files in them. diff --git a/packaging/debian/DEBIAN/copyright b/packaging/debian/DEBIAN/copyright new file mode 100644 --- /dev/null +++ b/packaging/debian/DEBIAN/copyright @@ -0,0 +1,7 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: KUSBFloppyFormatter +Source: http://silverwing.one/pages/kusbff +Comment: Incorporates icons licensed by CC-BY 3.0 http://www.fatcow.com/free-icons +Files: * +Copyright: Copyright 2018, Khaelenmore Thaal +License: GPL-3+ \ No newline at end of file diff --git a/packaging/debian/usr/bin/kusbff b/packaging/debian/usr/bin/kusbff new file mode 100755 --- /dev/null +++ b/packaging/debian/usr/bin/kusbff @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +python3 /opt/kusbff/kusbff.zip diff --git a/packaging/debian/usr/share/applications/kusbff.desktop b/packaging/debian/usr/share/applications/kusbff.desktop new file mode 100644 --- /dev/null +++ b/packaging/debian/usr/share/applications/kusbff.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0.0 +Name=KUSBFloppyFormatter +Comment=Format USB thumb drives for use with floppy emulator(Gotek and the like) +Icon=kusbff +Terminal=false +Type=Application +StartupNotify=false +Categories=System; +TryExec=kusbff +Exec=kusbff diff --git a/packaging/debian/usr/share/icons/hicolor/32x32/apps/kusbff.png b/packaging/debian/usr/share/icons/hicolor/32x32/apps/kusbff.png new file mode 100644 index 0000000000000000000000000000000000000000..3a9dcf37ec21415647543eab105dcdc124734cb1 GIT binary patch literal 1555 zc$@(f2JHEXP)?^ z2%;b=w1PtMK_Qq6`eacwRwJ4Q8^y-Is!u)$27D2rLL>CSB6%sb6-%oiXr7c36;X@$ z6a=Lp+WfU?kTm!1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share/icons/hicolor/scalable/apps/kusbff.png new file mode 100644 index 0000000000000000000000000000000000000000..3a9dcf37ec21415647543eab105dcdc124734cb1 GIT binary patch literal 1555 zc$@(f2JHEXP)?^ z2%;b=w1PtMK_Qq6`eacwRwJ4Q8^y-Is!u)$27D2rLL>CSB6%sb6-%oiXr7c36;X@$ z6a=Lp+WfU?kTm!1%y_;tvp4sKySF42x?%2ac6Yw>oo~)Lb5?op>3SXsew0!;r8ka$ z`B&zt52PIP;%hl?mLgC!|0F7$VaIrTW_EnfAV13FrKkXm&%HCfJ|rDAFRg+97maiYRz4tU*D(sbX) zbJSikRJD$Nd;T_>_`38kKW^u-tmC^SD6z_xy4q6mXD6wBONkQJPBR%9iK$&H8FkN^ z+*5K^f&naG0vk4>>Raj+kQJ+1Pi=`N$Ho9)v?0Fa>y#9`<9MR40eI3{%RKzwc#mVp zIa1ED3W`dM$7*8EH@1!c92|>dX4~{;|-Wcld?-yXlz=I

0ykMq`Y4{8q!E{{~|sxdD4#g0bNzcnK0& z0;sSC!Je{LPrrDO#-16hTPDlSTN)aDi52jIB@VHb)m92v@1kLnLE;h7kz=QD$;R`# zp=tyWl#u(#vCkUb$(KNiPjn`?K}7^AhyfESSE@rqV+~_qQ!ve7M!2yNCCdVXcn2mt zNI+{cF)IRAs+BAYY&0i;^|5$SOSC330mcmN-}?v+l*=OP$jfig=#!60u0!rD%V;0p z+rRfwDkCE(q@?967#@2)WPvOJibO1q$08VP77kol{{00*JLBv#Pin!#;cHWfD}S0|&&Bhoc)TDTvAn548r zS$nk@$dCn0kL^+i6PWsAg&w@M{hIayU;r!SSkOM$C?tSqk_9}mlV`m5{XD%p?XQUd z=|K%btEMJ*i6pSklzAZH=zxRWJ`k-->{9nqNlj`ZWTGVw7ie zu4&3kz%3gJR+0*6=zt0cD7B7&5*x(?_zxQg)fAxE6(yny&IaujgJ6$$y_MD|n8 zSB?i4n$9$I6Vh-C@M>9;JXIt;sm6eOiW>s43yKC1E=VlIMwt1ljfeZXmGV#?6b(eHd z09Kb~r{@lhyuz1P!mcSftWv)2<8c#@ZfY!6`LV)dA)b*GT|7XxZ37h=--8!<{2k9( zPC&j7p%_#xm|Ts9sv%KDGf>vsGnzyR|_*l9HsN^<}J002ovPDHLk FV1gfG(G36q diff --git a/pics/arrow_refresh_small.png b/pics/arrow_refresh_small.png new file mode 100644 index 0000000000000000000000000000000000000000..ce42c125943c6e0749b952da98edacba549709a0 GIT binary patch literal 1307 zc$@(n1?2jPP)gHfhCTwgg6NIp()ff{J6B2*;OQU3Q5&5AD9~sMr(HS=*$r6oy6p!}2Dpx{g*AK?%D8Q>=e>PbOKC@|#NOoe-rM)R?|I(yJm;Ky1x?eC%tJ(y zkE8Kr(-b#%*gXmXf@6xaiu0@!JlFw5UXjixP9PFk>_lp`6NK&^(%R;!+FLNt|W+ zNQ43*|4lrZm65q?TV56}jMTv!m_mvX70Y!eX~5NM zTP4^1>SNOp@m_eVrP=e_F(be~PYc{BhbDcE!P zOV_dh?N1k;r0=z#JD-WMj{1Eyp5@AL#Opj-8s0~zY!=cmnXweIa{#dfr7-$9EsS%2 z$w$~K-2^~phIXlbLaE?ndD%z@%!s!4%&xMQ9 z>wzgZ+k^&d3nr!qkZLfZvgNfEtZ$Hw$D%+DAB<9xk8YxdbN;Vj1B!4uuQwRdvA-Z^ zGu+eH(f(@{!sD>MRo02FgWD0Mzz8qZV*}L#lV-r7Leulhwyw6K z_gXy^BF9dun45qtB75R%M$CD^YFMi_eMV*Zir#q44RDF!#fa=S{XCPMf#)7ui-MeT z^f|wQ!_y6-485eH!PD3u8MRowAOx_a0mloUMujEsef%`gi1nH8ke~#r_u~9=sDse- zsyI70PQ9ZCqf?h5(6m#(lc@g0SLd5iOVe)NO@xt$Q6RyUt*=DSa3dsQ@8Zpmk*1{c zeh^*?1l?xTF})!%&VA(k%x}QRFn%QGO*}n)iBMo*4W<1`>z2%iDYtlL`=p?g1vyQY zN+8E3sc#HX$SIeceK_3n1rG80FcVq87NcM}s|!WD@u}I2qO4UxCr7>|WHO?H(5X=2 z_Bhe`^Fe%0w$4db#Dh^)Tn~O_P^h6Hj5$V5Ux856~6((JeWD{g=ex8j~ zf4mgn0;#&N&^MJm~hnC`VU@;9u zg1Db7gNNCEmk7iKAdyN49?CHuT5+)#jd+hlBCzCNWD6pYj4$P+f1Lg;zyMG`;0)WI RUPu4{002ovPDHLkV1hlCY<2(u diff --git a/pics/arrow_right.png b/pics/arrow_right.png new file mode 100644 index 0000000000000000000000000000000000000000..036b9e29472b94079a6a9fa88c66d2e971cd1cdf GIT binary patch literal 577 zc$@)20>1r;P)9YX(&pv4 zZHiUbq;bdzC)}GmobUYkZ!Y0fRfU;hgUMk5SO6A)=>SGYnQs~Dz#?{N%$uQrOICo+ zdU$&R*rd6=)BujG3<&Kr=xBh@9l+La2qufeyM$*^hMUpqc`~qLCY=Ekl%uz0h}sPb zn8Q|N7Jgcm3ji)rfqP}#kF2CX&%;TjOI9S3xfaDwERe!X0N}BvYyhT*+JLuK>s{KqqGAruYgDh z(byuU=sBU_jqL)aK#KB)^1%Sld6?`sBzruLS1LYTT)bdC+I)C7%Jp^vI6lTlcosgI zCX0*10LlL-Kv}0X$`pRq8b+xA=<9+CZJhdD{9goT{g_w)7J%6RUjhsOnbw~hb`D%} P00000NkvXXu0mjf86o~O diff --git a/pics/flashdisk_logo.png b/pics/flashdisk_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..cecf8a57fa7d8a9e0fcba515189f969539883877 GIT binary patch literal 2234 zc$|G!X;f3!8V!0&D=HqeN^Lhfflb(I4xQPojL?JWv#n2cWDmI12{O29L6_!r-lNL@S~>ih#r8uy_I%XKR7Sk*sY=I6Ug} zK+AXI1qG8lse3-}C6CDHPzd6Zuvno`h!I+1KwbzIPb3ntI0BYHu#h7x_z@h4F0$b8 z4OS{p0X~DrdM zoh_asPvBO#RFDzQ1~||PH|W1yt5vznR`|pQcuWBhw1)?>Q6G;?Vy>Uv?bf!i?}@r*w;_)KHrWnFC_agIDEi|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$c;!PLP`ms|n+Dmn47iBk-eQiq_9ej$0`d65B+G2ViJD*u! z+=M7N7pC_f)!>;|@Lm9uWd%g)i8K_VYRdZn0I;U+_slqYCiQJa7}>(!zP%(TTt~j+ zOokqPkcRdaOw>oyNhh=8wsyYz(n2~rJ4up+RbTriU;6w7EbCf^C!}PWq+EW@H$oPu zU{w$=Ar0jq0EYJq@zA?edt+>4p3$9yw0vp>Oe-)%iOS#@Hs8%y&t67Ox{hC5zZT~M z18EAseBfb3vSc8H0vB>V$^fVr5nLV5O`uf9aLMrgY+ZE~!L<;I5nMwly66KiQemq8k zuzvLXF229f2PSC=i~hFju)ClNL@G2yiijW{CfT0|Aa&sdqaX;82{Co}|LU-z1m&xQ z@TdzmrUu|4G7=6C+3(nS5+^wS!9b`8k%CnTjAo3aehL7RF<>eP>_E`DR8T_t$03-6=p8ilFz+;S1>mw>5k5waPHW#`5wp)1d*(bnzPCH{6Yp%bM z{yk-Ut@(^|1U&d)*kn~uG8v|)0;-AuqA0>f5#BqjjnM4BDFKK~0w6f2hX8;hQhz`& zR)g@2wMf?UjZwT)j4_CWXH2SYj{cXC$2ds6R-oQ7r+P7|mxp`vM^UI1$~YrhkX2U8OIfDz1r z6rLgk;?f~&&GbTDcA%)0E+7|$5Tt2BQmuyS<{b*;tUYKssF`V~izq~T;LFHbgD>y? zOHDX60M)*m&imv#|Hu>G*ixv9o^sW(s_8h&v12Pjv8nl*{gpvUlbAg%C(nOj^VX}A z^x%bBfxet_$75S5&AQl06z1)w$J~6{2RQ=5-{Rt9-aUI002ov JPDHLkV1gwV&bI&n diff --git a/pics/floppy_multiple.png b/pics/floppy_multiple.png new file mode 100644 index 0000000000000000000000000000000000000000..bc6b44298e115b8985f1fa2829bed9d311bf5c8d GIT binary patch literal 1755 zc$@*-1|<23P)-2*3W%u)CFOP zKmxfCp#NbV20Nf1Q;-=3Y!SBp(^xl`Zs&&6-y%!!;0KpJ3I>oR1T$_oF_NSGOaO-v zFo4-xzpi7SWS52uzzaeN*9b9v*9ioE2)VKx$4>M>iXnPSiRn|zFmu;&n6`nV&rb#W zVxPkWz!4Pmhm153v~5E&VW|g+go~nNlG+{;9$nL!ElJnh=KE}X6eVl~-);v*lDz@( z?=T~vj&wFa$)qYcoKQOUZr=#ovQU{S$0POgv18LasI00&NNK96U!dESDcrrV0mZHb zYw|Q?f)S0KM|$hHwFl1bTT+W92fC2WNpvl}6N~o#jy=b^A!JB{O8u(TVOK`^20ddl zDgTBc=shMPVAHeV64Q!N^bz%4At4Mk3O?=l8$Z15wjDAUa!BY#Ox1%Qy_#! zPe8K1CZ@$&#rKGqMP`6|ciuc=8u2^iPYuQhJyYLKhfwt*7 zax|7THWPqo>7YnTsUysm&4v9_z+tyc3ndB72Of|Y7Zm}n0w$-Sy~m0f=@quDU4c|Z zCF-AQz?LjiqdCe-~Llq&)VbS6S6U zh?ty$LSk}Mv;&Ei>zb*Ar3(L>>((p2C_Yg8t)}&n-fO=Jt}yDG)g_n*knL)$s~JQvk$eClJSZHy_2N(44Gfh;#I$` z^D2^#sr<0A7INSU*{R;P-Ty|56Za}Dp0_+tObs9sEU6WfHMOO^msImV@Ps7f4K^IQ zeA!QNw5AkLKmqW{E|B#W0Pyp~q>))2T_a9`UbF->KQh$z2|;)RIW!chMO5P2`Sk$e zSOt-(s*H(Q>gk%kl(rPX0;!$FD`>+cfrZr*uGijvtSZr+BjKe>-i70 diff --git a/pics/floppy_read_single.png b/pics/floppy_read_single.png new file mode 100644 index 0000000000000000000000000000000000000000..ce1167cbb5f1daff5c5f42052a310ab7f062e1a3 GIT binary patch literal 1671 zc$@);26*|2P)|iEL8vhWn~YU_2!TpUFfrdr!*u4Jy_XOB%*>r> zW@;Ou8_qq4bI)Guzt{S&|JoZq1d1it7Eh;YY>8Gqgh3t;c8gNt<5Zo8OgPb#x6DmT(6c0vQP@2hSs3-FQ2uxL( zAkOk@*U%IP5iA&wZ2SglMt^@lIcIWCtbg!fzW1#`1_svQ?hD=xP*sVqZrF&36U2$v z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FjC(Q=mL6xwi{6B3b+XTr@mLy4yQmT w(3oX$vvyw902}q`#%=(B18+^S^WKmD0RhV8rTCj-ZvX%Q07*qoM6N<$f@X3NZ2$lO diff --git a/pics/folder_to_floppy.png b/pics/folder_to_floppy.png new file mode 100644 index 0000000000000000000000000000000000000000..fc12cc8b18122bb63d32eeeb8cd25a51e027c9ea GIT binary patch literal 1629 zc$@)U2BP_iP)YEY#_@dY-u`R#u+ms*<_nUoEQwr z!ZJm06Uq>Wm@TUXLJY|QDOqafoK3+ZM!P97R5{!xuvqB$(b83Hue8^@`+h&q{-mu?=t zzVsQ?6JC0GEq8G>n6a^0+j>-6I|IF1v~~vC)}uOOW3!Its@{s8JiAwGo<_M!*iaRV zW8t25bln_IUPuCh0_q&9iZLd~sE)a1#Vp*@PU8DF66%PZ>Zj1{%XahTiRCOPhwK*A zNN!C45wM0|TaT45ucf~r0AL^#XxRblp5<3{TS0`IZmPh!kVSVcW7oEgR904^E@bZg zE1;#Gfd`%~7+>-;^vS!oaJ2nFLg4;IyIAp+EP49~5F)gmY`u5iTl??5V>`2(*3toB zMPM-Fu(K=4gpM^EHlr#y7v{GrYu0bZsbWxuvLSYMC4(7<$cQUb!6n28U*sWW+Uj3``A2h3bhgR0|~wHs(@+>398x-Cy|_&57G^uj(O z9<(&>MKxsRg0FEo9U%D#9QYAcKmF}9%q)74NDTgX{v6L8>ZJZq7tg=mMN^`S^T{qc z`dW#{&U44Di&?sjxbQIPcZm5g*~{%2g|Q0Kr;qgUlh$6+VgA&klE{b<^&svGMNvy8(0{U@6VdcTs({{6 z?*@TE94+TAvK|X*?Pr+W0%ROai3pj{u<}OXzWLXU+OPSKun+_gd3+H>7WOD+9F(Ea4 zrnIJjjmr zKrYJ-lYNWg2ts9Q+;HU0Ru(V$I#Xjp%=bW*AXMVM$7J8&)bJm{gAB=n2dojndLG4b zADeYplOv9LhIrHh5RXO>6wern<33Y-gY`U&j4cRxY6gOfg=ZUdpV_g!iH8HHBr_o^ zrhSf-3bV>*-?OISb#A}?tBnKM0704N8=gD(0n;KL)(AoOnH^&h5Ttl@e*@J3;Sh(1 zZ`gIfXFlQgf69M<{tBEIfX*>!_$*M8f9?f7;Qt;nUV`I0t6y|M<}P(%j?j3BXWzT! z;n!~duLw9+w@`0cwFk06{+fBbQ}=Dev&hG8i6F*cY~;kvt6rU3r~~7HItSS_nN!

(@S`zi&t$1%&&23+JsHM$LNFa3p>?8z_pt~7p%8g-0(9n_U zAI!O0lt}3^P^Et`Gar};0RrJ5#*cw`2qPzVF67i75~OT<&&iWe^FDq&)0O;T`ET@dE}%Ke)HD*`H}Z{8!X%>t4#0cGfmxjAP{2!O=@ bL^u39CWV$nMI@k200000NkvXXu0mjf=JN}n diff --git a/pics/help.png b/pics/help.png new file mode 100644 index 0000000000000000000000000000000000000000..68f51bac41f5c0f5b1c9580bc9ee012c480aadc6 GIT binary patch literal 2271 zc$@*>2q5=~P)g4LrApCOKh#d!=@; zWh)jmd$6Fz1B<30m&?O2a>yBZ#FIL%`6e(lI*GHF{V=k6kCdF)6#UzZgQO?_RRAc} zPw)GaqFG*e`iT`-yRrp#3*fW^b{l!iTJr@V`^e^iNZi0gB!dvinZ6r1dc2>3{3ZDQ z)|cpd?tTDhmD@h_Em_!5|J+ln(O9FRsvJ0RDU1`n{ zUW=t|RT#OMM87YL&pz+Rs6R9|vG=JKx~AU?0IhuM{^2c;uV`4mZUGuSz%_pYzx(JM z!qXXOiVRtiDBse|%XtxvyhuehXQ13+#r6%IsIPM1{6GjNFOK4ivxEN0_qTX&2cg{Q z`TpyhA74?=#=Z5x?jwWPd8kiVv0GGVsvJzlSdRG(68?N(0H2>9Lzz`0!zvUqAc?q3 zB>^l5#RM{g5#VG2)Hgnjsb~t1KGck4I*;+mxHIqlPD7%n`;b|fCIG48kyqQb%9gi( z_Ut#&)~I6NQ6K(&!A}Lp#tX_h=~)VOiabn`cPZUKn*Qn(dV|g-j)VYF5RQm{GC{_5 ztm&*nJS$O`Os%wf7JiT%IyT9MRWtN*O;`8k^~)*eR`>!*{PWBxd0z0Ee+C)R$*{+1 z!Ed%K#L5=;tlXXUMe+KfAq?D1z*dqP27dDLI6A%6=U=ZXV+Up!R^2=3s80X(AI{WaY#li3dowJ!$CIrJqDoII=;Vs&9Wx)7&t!^B~rJj%=z9QFGH51#qXF=;1s6PSqudtsI9c4uGWpRC7ZUhZ3bY; zYtCo9O;vC?6!cu1BGd)+GgU5V7VvuP!iY|2e)Mi1E>U~-`D1u?XD>!V=|UyTh3ew_ zGXRR+am^n_y~hQIgP6?XdWLOt4cPLsrK7pA5-!p|G!`bBRYeh*KPqb2DXhQPKY)&U z2mIkQohfi?lBkO+s`&D@lh?wLQkm%Ss0ZBV`iy! zi_aw0q>~&eWW_3lmWkwc0Hr^s+zgGDzy72P6~)j8r**t?U=Y_s8H%eq%X?L+D^ld1@+APWhJ>~AZ*jq!$NZu$Y?ix6j=gtTS$7s0(r;c9V;#BVz_5P` z6JZ_A^IXLqmhURuRs+G*jPfw?hK)K$Q!E7ZXo zW34~;Pb4tE-c9`)6)Bj@84*dsee7xkhkK{QnUjjHj6z@9y0^c>`I%Sg#F_p8(kUI; z@W?^7%>Yud)9>!NQrjT_EN-cXt4u@sE@|Lg>ZJ08b@lk}(kgNGkBcGfK6$gSBS>?H z-%bmf>a3e%@{?qS=q=)hqAcrFzm?7JGE3lV&6X`>jh(j2K^J}{`5Oym6H z|MM9?o9jM@znyl;QjqTISC6<4-uw*w7TF6{oa7m=xH zWT!?BM2`RQJ$l3ilq+3roFuKDAM882cu`Yz=b}11wz>&dN5dEiMoFPOlV9c$o&h|R zOz#V8T1nB-ztt`WjrTI_I(!jhGzsW{^COMJED# zwrwOEBP3CCFH~;pmJCnZL~r+}>4x=BPDRr8(J3A-Dwem^iYivbFd^3DW;FK&(qbc{ zZl?{kvBE(;%ll)7u=5*eEI5h^} + + + floppy_to_folder.png + folder_to_floppy.png + floppy_format_multiple.png + floppy_format_single.png + floppy_read_single.png + floppy_write_single.png + arrow_refresh_small.png + help.png + flashdisk_logo.png + floppy_multiple.png + arrow_right.png + + \ No newline at end of file diff --git a/ui/about.py b/ui/about.py new file mode 100644 --- /dev/null +++ b/ui/about.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'about.ui' +# +# Created by: PyQt5 UI code generator 5.10.1 +# +# WARNING! All changes made in this file will be lost! + +from PyQt5 import QtCore, QtGui, QtWidgets + +class Ui_Form(object): + def setupUi(self, Form): + Form.setObjectName("Form") + Form.resize(539, 316) + self.horizontalLayout = QtWidgets.QHBoxLayout(Form) + self.horizontalLayout.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout.setSpacing(0) + self.horizontalLayout.setObjectName("horizontalLayout") + self.label = QtWidgets.QLabel(Form) + self.label.setEnabled(True) + self.label.setObjectName("label") + self.horizontalLayout.addWidget(self.label, 0, QtCore.Qt.AlignHCenter) + + self.retranslateUi(Form) + QtCore.QMetaObject.connectSlotsByName(Form) + + def retranslateUi(self, Form): + _translate = QtCore.QCoreApplication.translate + Form.setWindowTitle(_translate("Form", "About KUSBFloppyFormatter")) + self.label.setText(_translate("Form", "

USB Floppy Formatter

Version 1.0

By: Khaelenmore Thaal


GUI utility for formatting thumb drives for usage with hardware usb emulators
Uses Qt5
https://www.qt.io/
Uses PyQt5
https://www.riverbankcomputing.com/software/pyqt/intro
Built-in icons by
http://www.fatcow.com/free-icons
This program is licensed with GNU GPL v3
This program is available on
http://silverwing.one/pages/kusbff

")) diff --git a/ui/about.ui b/ui/about.ui new file mode 100644 --- /dev/null +++ b/ui/about.ui @@ -0,0 +1,48 @@ + + + Form + + + + 0 + 0 + 539 + 316 + + + + About KUSBFloppyFormatter + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + true + + + <html><head/><body><p align="center"><img src=":/floppy_multiple.png"/><img src=":/arrow_right.png"/><img src=":/flashdisk_logo.png"/></p><p align="center"><span style=" font-size:22pt;">USB Floppy Formatter</span></p><p align="center">Version 1.0</p><p align="center">By: Khaelenmore Thaal</p><p><br/></p><p><span style=" font-family:'DejaVu Sans Mono'; font-size:9.1pt; color:#000000;">GUI utility for formatting thumb drives for usage with hardware usb emulators<br/>Uses Qt5 </span><a href="https://www.qt.io/"><span style=" text-decoration: underline; color:#0000ee;">https://www.qt.io/</span></a><span style=" font-family:'DejaVu Sans Mono'; font-size:9.1pt;"><br/>Uses PyQt5 </span><a href="https://www.riverbankcomputing.com/software/pyqt/intro"><span style=" text-decoration: underline; color:#0000ee;">https://www.riverbankcomputing.com/software/pyqt/intro</span></a><span style=" font-family:'DejaVu Sans Mono'; font-size:9.1pt;"><br/>Built-in icons by </span><a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ee;">http://www.fatcow.com/free-icons</span></a><span style=" font-family:'DejaVu Sans Mono'; font-size:9.1pt;"><br/>This program is licensed with GNU GPL v3<br/>This program is available on </span><a href="http://silverwing.one/pages/kusbff"><span style=" text-decoration: underline; color:#0000ee;">http://silverwing.one/pages/kusbff</span></a></p></body></html> + + + + + + + + + + diff --git a/ui/format_dialog.py b/ui/format_dialog.py new file mode 100644 --- /dev/null +++ b/ui/format_dialog.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'format_dialog.ui' +# +# Created by: PyQt5 UI code generator 5.10.1 +# +# WARNING! All changes made in this file will be lost! + +from PyQt5 import QtCore, QtGui, QtWidgets + +class Ui_Dialog(object): + def setupUi(self, Dialog): + Dialog.setObjectName("Dialog") + Dialog.resize(400, 96) + self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) + self.verticalLayout.setContentsMargins(0, 0, 0, 0) + self.verticalLayout.setSpacing(0) + self.verticalLayout.setObjectName("verticalLayout") + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setObjectName("gridLayout") + self.sb_to = QtWidgets.QSpinBox(Dialog) + self.sb_to.setObjectName("sb_to") + self.gridLayout.addWidget(self.sb_to, 1, 1, 1, 1) + self.label_2 = QtWidgets.QLabel(Dialog) + self.label_2.setMaximumSize(QtCore.QSize(16777215, 16)) + self.label_2.setObjectName("label_2") + self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1) + self.sb_from = QtWidgets.QSpinBox(Dialog) + self.sb_from.setObjectName("sb_from") + self.gridLayout.addWidget(self.sb_from, 1, 0, 1, 1) + self.label = QtWidgets.QLabel(Dialog) + self.label.setMaximumSize(QtCore.QSize(16777215, 16)) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.rb_size_720 = QtWidgets.QRadioButton(Dialog) + self.rb_size_720.setObjectName("rb_size_720") + self.gridLayout.addWidget(self.rb_size_720, 2, 0, 1, 1) + self.rb_size_1440 = QtWidgets.QRadioButton(Dialog) + self.rb_size_1440.setChecked(True) + self.rb_size_1440.setObjectName("rb_size_1440") + self.gridLayout.addWidget(self.rb_size_1440, 2, 1, 1, 1) + self.verticalLayout.addLayout(self.gridLayout) + self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) + self.buttonBox.setOrientation(QtCore.Qt.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(Dialog) + self.buttonBox.accepted.connect(Dialog.accept) + self.buttonBox.rejected.connect(Dialog.reject) + QtCore.QMetaObject.connectSlotsByName(Dialog) + + def retranslateUi(self, Dialog): + _translate = QtCore.QCoreApplication.translate + Dialog.setWindowTitle(_translate("Dialog", "Format")) + self.label_2.setText(_translate("Dialog", "to")) + self.label.setText(_translate("Dialog", "from")) + self.rb_size_720.setText(_translate("Dialog", "&720KB")) + self.rb_size_1440.setText(_translate("Dialog", "&1.44MB")) + diff --git a/ui/format_dialog.ui b/ui/format_dialog.ui new file mode 100644 --- /dev/null +++ b/ui/format_dialog.ui @@ -0,0 +1,132 @@ + + + Dialog + + + + 0 + 0 + 400 + 96 + + + + Format + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + + 16777215 + 16 + + + + to + + + + + + + + + + + 16777215 + 16 + + + + from + + + + + + + &720KB + + + + + + + &1.44MB + + + true + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + Dialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + Dialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/ui/format_one_dialog.py b/ui/format_one_dialog.py new file mode 100644 --- /dev/null +++ b/ui/format_one_dialog.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'format_one_dialog.ui' +# +# Created by: PyQt5 UI code generator 5.10.1 +# +# WARNING! All changes made in this file will be lost! + +from PyQt5 import QtCore, QtGui, QtWidgets + +class Ui_Dialog(object): + def setupUi(self, Dialog): + Dialog.setObjectName("Dialog") + Dialog.resize(400, 48) + self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) + self.verticalLayout.setContentsMargins(0, 0, 0, 0) + self.verticalLayout.setSpacing(0) + self.verticalLayout.setObjectName("verticalLayout") + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setSpacing(0) + self.gridLayout.setObjectName("gridLayout") + self.rb_size_720 = QtWidgets.QRadioButton(Dialog) + self.rb_size_720.setObjectName("rb_size_720") + self.gridLayout.addWidget(self.rb_size_720, 1, 0, 1, 1) + self.rb_size_1440 = QtWidgets.QRadioButton(Dialog) + self.rb_size_1440.setChecked(True) + self.rb_size_1440.setObjectName("rb_size_1440") + self.gridLayout.addWidget(self.rb_size_1440, 1, 1, 1, 1) + self.verticalLayout.addLayout(self.gridLayout) + self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) + self.buttonBox.setOrientation(QtCore.Qt.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(Dialog) + self.buttonBox.accepted.connect(Dialog.accept) + self.buttonBox.rejected.connect(Dialog.reject) + QtCore.QMetaObject.connectSlotsByName(Dialog) + + def retranslateUi(self, Dialog): + _translate = QtCore.QCoreApplication.translate + Dialog.setWindowTitle(_translate("Dialog", "Format")) + self.rb_size_720.setText(_translate("Dialog", "&720KB")) + self.rb_size_1440.setText(_translate("Dialog", "&1.44MB")) + diff --git a/ui/format_one_dialog.ui b/ui/format_one_dialog.ui new file mode 100644 --- /dev/null +++ b/ui/format_one_dialog.ui @@ -0,0 +1,103 @@ + + + Dialog + + + + 0 + 0 + 400 + 48 + + + + Format + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 0 + + + + + &720KB + + + + + + + &1.44MB + + + true + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + Dialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + Dialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/ui/mainwindow.py b/ui/mainwindow.py new file mode 100644 --- /dev/null +++ b/ui/mainwindow.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'mainwindow.ui' +# +# Created by: PyQt5 UI code generator 5.10.1 +# +# WARNING! All changes made in this file will be lost! + +from PyQt5 import QtCore, QtGui, QtWidgets + +class Ui_MainWindow(object): + def setupUi(self, MainWindow): + MainWindow.setObjectName("MainWindow") + MainWindow.resize(537, 600) + self.centralwidget = QtWidgets.QWidget(MainWindow) + self.centralwidget.setObjectName("centralwidget") + self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) + self.gridLayout.setContentsMargins(0, 0, 0, 0) + self.gridLayout.setSpacing(0) + self.gridLayout.setObjectName("gridLayout") + self.tableView = QtWidgets.QTableView(self.centralwidget) + self.tableView.setObjectName("tableView") + self.gridLayout.addWidget(self.tableView, 0, 0, 1, 1) + MainWindow.setCentralWidget(self.centralwidget) + self.statusbar = QtWidgets.QStatusBar(MainWindow) + self.statusbar.setObjectName("statusbar") + MainWindow.setStatusBar(self.statusbar) + self.toolBar = QtWidgets.QToolBar(MainWindow) + self.toolBar.setObjectName("toolBar") + MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) + self.action_format_disk = QtWidgets.QAction(MainWindow) + icon = QtGui.QIcon() + icon.addPixmap(QtGui.QPixmap(":/floppy_format_single.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_format_disk.setIcon(icon) + self.action_format_disk.setObjectName("action_format_disk") + self.action_format_usb = QtWidgets.QAction(MainWindow) + icon1 = QtGui.QIcon() + icon1.addPixmap(QtGui.QPixmap(":/floppy_format_multiple.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_format_usb.setIcon(icon1) + self.action_format_usb.setObjectName("action_format_usb") + self.action_write_floppy = QtWidgets.QAction(MainWindow) + icon2 = QtGui.QIcon() + icon2.addPixmap(QtGui.QPixmap(":/folder_to_floppy.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_write_floppy.setIcon(icon2) + self.action_write_floppy.setObjectName("action_write_floppy") + self.action_open_floppy = QtWidgets.QAction(MainWindow) + icon3 = QtGui.QIcon() + icon3.addPixmap(QtGui.QPixmap(":/floppy_to_folder.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_open_floppy.setIcon(icon3) + self.action_open_floppy.setObjectName("action_open_floppy") + self.action_write_image = QtWidgets.QAction(MainWindow) + icon4 = QtGui.QIcon() + icon4.addPixmap(QtGui.QPixmap(":/floppy_write_single.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_write_image.setIcon(icon4) + self.action_write_image.setObjectName("action_write_image") + self.action_read_image = QtWidgets.QAction(MainWindow) + icon5 = QtGui.QIcon() + icon5.addPixmap(QtGui.QPixmap(":/floppy_read_single.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_read_image.setIcon(icon5) + self.action_read_image.setObjectName("action_read_image") + self.action_about = QtWidgets.QAction(MainWindow) + icon6 = QtGui.QIcon() + icon6.addPixmap(QtGui.QPixmap(":/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_about.setIcon(icon6) + self.action_about.setObjectName("action_about") + + self.action_refresh_devices = QtWidgets.QAction(MainWindow) + icon6 = QtGui.QIcon() + icon6.addPixmap(QtGui.QPixmap(":/arrow_refresh_small.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.action_refresh_devices.setIcon(icon6) + self.action_refresh_devices.setObjectName("action_refresh_devices") + + self.toolBar.addAction(self.action_format_usb) + self.toolBar.addAction(self.action_format_disk) + self.toolBar.addAction(self.action_open_floppy) + self.toolBar.addAction(self.action_write_floppy) + self.toolBar.addAction(self.action_read_image) + self.toolBar.addAction(self.action_write_image) + self.toolBar.addAction(self.action_about) + self.toolBar.addSeparator() + self.devices_combobox = QtWidgets.QComboBox(self.toolBar) + self.toolBar.addWidget(self.devices_combobox) + self.toolBar.addAction(self.action_refresh_devices) + self.retranslateUi(MainWindow) + QtCore.QMetaObject.connectSlotsByName(MainWindow) + + def retranslateUi(self, MainWindow): + _translate = QtCore.QCoreApplication.translate + MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) + self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar")) + self.action_format_disk.setText(_translate("MainWindow", "Format Floppy")) + self.action_format_disk.setToolTip(_translate("MainWindow", "Format selected floppy disk")) + self.action_format_usb.setText(_translate("MainWindow", "Format Drive")) + self.action_format_usb.setToolTip(_translate("MainWindow", "Format multiple disks on a thumb drive")) + self.action_write_floppy.setText(_translate("MainWindow", "Write Floppy")) + self.action_write_floppy.setToolTip(_translate("MainWindow", "Write current state of temporary directory to disk. Directory will be removed")) + self.action_open_floppy.setText(_translate("MainWindow", "Open Floppy")) + self.action_open_floppy.setToolTip(_translate("MainWindow", "Clean temporary directory for this disk and reopen it")) + self.action_write_image.setText(_translate("MainWindow", "Write Image")) + self.action_write_image.setToolTip(_translate("MainWindow", "Write disk image to selected floppy disk. Directory associated with it will be removed")) + self.action_read_image.setText(_translate("MainWindow", "Read Image")) + self.action_read_image.setToolTip(_translate("MainWindow", "Read image from floppy to a specified file")) + self.action_about.setText(_translate("MainWindow", "About")) + self.action_about.setToolTip(_translate("MainWindow", "Show info about this program")) diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui new file mode 100644 --- /dev/null +++ b/ui/mainwindow.ui @@ -0,0 +1,147 @@ + + + MainWindow + + + + 0 + 0 + 537 + 600 + + + + MainWindow + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + toolBar + + + TopToolBarArea + + + false + + + + + + + + + + + + + + :/floppy_format_single.png:/floppy_format_single.png + + + Format Floppy + + + Format selected floppy disk + + + + + + :/floppy_format_multiple.png:/floppy_format_multiple.png + + + Format Drive + + + Format multiple disks on a thumb drive + + + + + + :/folder_to_floppy.png:/folder_to_floppy.png + + + Write Floppy + + + Write current state of temporary directory to disk. Directory will be removed + + + + + + :/floppy_to_folder.png:/floppy_to_folder.png + + + Open Floppy + + + Clean temporary directory for this disk and reopen it + + + + + + :/floppy_write_single.png:/floppy_write_single.png + + + Write Image + + + Write disk image to selected floppy disk. Directory associated with it will be removed + + + + + + :/floppy_read_single.png:/floppy_read_single.png + + + Read Image + + + Read image from floppy to a specified file + + + + + + :/help.png:/help.png + + + About + + + Show info about this program + + + + + + + +