pax_global_header00006660000000000000000000000064147720104730014517gustar00rootroot0000000000000052 comment=163cc5089133c767cc811d32c622f5a0db5092dc qdacco-1.2.4/000077500000000000000000000000001477201047300127555ustar00rootroot00000000000000qdacco-1.2.4/.github/000077500000000000000000000000001477201047300143155ustar00rootroot00000000000000qdacco-1.2.4/.github/workflows/000077500000000000000000000000001477201047300163525ustar00rootroot00000000000000qdacco-1.2.4/.github/workflows/ci.yml000066400000000000000000000005601477201047300174710ustar00rootroot00000000000000name: ci on: [push, pull_request] jobs: build: runs-on: ubuntu-22.04 steps: - name: Check out repository uses: actions/checkout@v4.1.0 - name: Install dependencies run: | sudo apt-get install cmake qt6-base-dev libgl1-mesa-dev - name: Build run: | mkdir build cd build cmake .. make qdacco-1.2.4/.gitignore000066400000000000000000000000231477201047300147400ustar00rootroot00000000000000build/ CMakeFiles/ qdacco-1.2.4/CMakeLists.txt000066400000000000000000000033041477201047300155150ustar00rootroot00000000000000 ########## Project setup ########## PROJECT(qdacco) CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) SET( QDACCO_VERSION 1.2.4 ) STRING( REGEX MATCHALL "[0-9]+" QDACCO_VERSIONS ${QDACCO_VERSION} ) LIST( GET QDACCO_VERSIONS 0 QDACCO_VERSION_MAJOR) LIST( GET QDACCO_VERSIONS 1 QDACCO_VERSION_MINOR) LIST( GET QDACCO_VERSIONS 2 QDACCO_VERSION_PATCH) # ######### Cmake ########## option(CPACK_SOURCE_TGZ OFF) option(CPACK_SOURCE_TZ OFF) # AFAIK CPACK_PACKAGE_VERSION_* not used at the moment because # CPACK_SOURCE_PACKAGE_FILE_NAME is overwritten. Left for # compatibility and just in case. set( CPACK_PACKAGE_VERSION_MAJOR ${QDACCO_VERSION_MAJOR}) set( CPACK_PACKAGE_VERSION_MINOR ${QDACCO_VERSION_MINOR}) set( CPACK_PACKAGE_VERSION_PATCH ${QDACCO_VERSION_PATCH}) set( CPACK_SOURCE_PACKAGE_FILE_NAME "qdacco-${QDACCO_VERSION}") # Assumes that ${CMAKE_BINARY_DIR} != ${CMAKE_SOURCE_DIR} set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_BINARY_DIR} /\\\\.git/) if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}") message(STATUS "WARNING: build and source directory is the same. make package_source will not work. Read INSTALL.ca/INSTALL.en file.") endif() # ######### General setup ########## INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) find_package(Qt6Network REQUIRED) find_package(Qt6Widgets REQUIRED) find_package(Qt6DBus REQUIRED) set(QT6_LIBRARIES Qt6::Widgets Qt6::Network Qt6::Xml Qt6::DBus) #include_directories(${Qt5Widgets_INCLUDES} ${Qt5Xml_INCLUDES}) #add_definitions(${Qt5Widgets_DEFINITIONS} ${Qt5Xml_DEFINITIONS}) ########### qdacco gui ########## message(STATUS "Working on qdacco gui") add_subdirectory(gui) ########### cpack capabilites ########## INCLUDE(CPack) qdacco-1.2.4/COPYING000066400000000000000000001045131477201047300140140ustar00rootroot00000000000000 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 . qdacco-1.2.4/INSTALL.ca.md000066400000000000000000000032441477201047300147720ustar00rootroot00000000000000# qdacco: installaci ## Instruccions generals d'installaci Debian i Ubuntu tenen el paquet de `dacco-common` i `qdacco`. Per installar a Debian i Ubuntu feu: `apt-get install qdacco` O: `sudo apt-get install qdacco` Quan executeu qdacco per primer cop, demanar a l'usuari informaci de configuraci (idioma per defecte, directori de dades, etc.) qdacco de Debian i Ubuntu ja installa el paquet amb els diccionaris. El primer cop que executeu qdacco us ensenyar la configuraci i podeu presionar "D'acord". Altrament cal seleccionar el directori amb el diccionari (directory anomenat `dictionaries`) Si es necessiten els fitxers de dades, es poden trobar mitjanant: http://www.catalandictionary.org ## Instruccions de compilaci per GNU/Linux Per tal de compilar qdacco, en distribucions basades en Debian podeu executar: ```apt install qt6-base-dev cmake git clone git@github.com:cpina/qdacco.git cd qdacco mkdir build cd build cmake ../ make sudo make install # s'installar a /usr/local/bin ``` En altres distribucions haureu d'installar Qt5 i cmake utilitzant el seu sistema de paquets. ## Descarregar els diccionaris DACCO Per baixar-se els diccionaris (DACCO): http://prdownloads.sourceforge.net/dacco/dacco-0.9.zip?download Podeu comprovar mitjanant http://www.catalandictionary.org si n'hi ha de ms recents. A Debian, Ubuntu, etc. no cal ja que qdacco installa la dependncia dacco-common. ## Festival Festival s un sintetitzador de veu. Sol estar disponible al paquet festival. Si el teniu installat qdacco el pot fer servir (veure la configuraci) i pronunciar les paraules. --- Carles Pina i Estany, 2005-2009, 2011, 2013, 2015, 2017, 2020-2023 carles@pina.cat qdacco-1.2.4/INSTALL.en.md000066400000000000000000000032731477201047300150130ustar00rootroot00000000000000# qdacco: installation ## General installation instructions Debian i Ubuntu have the `dacco-common` and `qdacco` packages. To install it on Debian and Ubuntu you can do: `apt-get install qdacco` Or: `sudo apt-get install qdacco` When executing qdacco the first time it will show the preferences dialogue. Click "Ok" to continue. The dictionary files are installed with qdacco on Debian and Ubuntu. The first time that qdacco is executed it will show the preferences dialogue: you can press "Ok". Otherwise you need to select the directory with the dictionary (named `dictionaries`). If you need hte dictionaries you can find them in: http://www.catalandictionary.org ## GNU/Linux specific instructions In order to compile qdacco, in Debian-based distributions you can execute: ```apt install qt6-base-dev cmake git clone git@github.com:cpina/qdacco.git cd qdacco mkdir build cd build cmake ../ make sudo make install # it will be installed in /usr/local/bin ``` In other distributions you will need to install the Qt5 and cmake using their package system. ## Download the DACCO dictionaries To download the dictionaries: http://prdownloads.sourceforge.net/dacco/dacco-0.9.zip?download You can check in http://www.catalandictionary.org if there are newer ones. Debian, Ubuntu, etc. is not needed because qdacco installs the dependency dacco-common. ## Festival Festival is a speech synthesis system. Usually it is available in "festival" package. If it is installed, qdacco will be able to pronunce words (check advanced configuration). PD: first revision of this text has been revised by Linda Oxnard and Jonathan Kaye. --- Carles Pina i Estany, 2005-2009, 2011, 2013, 2015, 2017, 2020-2023 carles@pina.cat qdacco-1.2.4/README.md000066400000000000000000000040141477201047300142330ustar00rootroot00000000000000![ci](https://github.com/cpina/qdacco/workflows/ci/badge.svg) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) # qdacco (English) (en català més avall) ## What is DACCO? DACCO stands for "Diccionari Anglès-Català de Codi Obert" or "English-Catalan Open Source Dictionari". This project was very active between 2000 and 2010 and then it lost activity. See it on [https://www.catalandictionary.org](https://www.catalandictionary.org). The last known DACCO version (0.9) has more than 20.000 entries from English to Catalan and from Catalan to English. This makes it useful for everyone. ## What is qdacco? In 2005 and in order to use DACCO quickly off-line (desktop software) qdacco was written: a frontend of DACCO files. It's a small desktop application. ## Installation instructions qdacco is packaged in Debian and can be installed in Debian, Ubuntu and other Debian-based distributions simply doing: `$ sudo apt install qdacco` To execute it, from a terminal or launcher: `$ qdacco` For more installation instructions: see [INSTALL.en.md](INSTALL.en.md) # qdacco (Català) ## Què és DACCO? DACCO vol dir "Diccionari Anglès-Català de Codi Obert". El projecte era molt actiu entre el 2000 i 2010, llavors va perdre activitat. ## Què és qdacco? El 2005 i per utilitzar DACCO més ràpidament des d'un ordinador sense connexió (via aplicació no via Web) vàrem escriure qdacco: una interfície pels fitxers DACCO. ## Instruccions d'instal·lació qdacco està empaquetat a Debian i pot ser instal·lat fàcilment a Debian, Ubuntu i altres distribucions basades en Debian: `$ apt install qdacco` I per executar-ho: `$ qdacco` Per a més informació de l'instal·lació: veure [INSTALL.ca.md](INSTALL.ca.md) ## Screenshots / captures de pantalla ![qdacco](docs/images/cat-to-eng.png) ![qdacco](docs/images/eng-to-cat.png) ![qdacco](docs/images/preferences-basic.png) ![qdacco](docs/images/preferences-advanced.png) Carles Pina i Estany (carles@pina.cat), 2005-2025 qdacco-1.2.4/changelog000066400000000000000000000146201477201047300146320ustar00rootroot00000000000000qdacco 1.2.4 (March 2025) ============ -Fix bug certain words not being found (e.g. "pace" in English->Catalan). See GitHub Issue #13 -Fix incorrect information for some words (e.g. "expect" in English->Catalan including information from "e-" entry). See GitHub Issue #15 -Fix including wrong information due to formatting issues within the same entry (e.g. "llengua" in Catalan->English). See GitHub issue #14 qdacco 1.2.3 (February 2024) ============ -Delete non-needed debug message qdacco 1.2.2 (February 2024) ============ -Fix entries such as "neighbor" where, inside the there was something such as xxx[MORE SPACES] -Fix "expressions" in entries (e.g. "taula"). They didn't have the expression meaning (only its translation). Similar problem as above qdacco 1.2.1 (October 2023) ============ -Update changelog qdacco 1.2.0 (October 2023) ============ -Migrate to Qt6 qdacco 1.1.2 (February 2021) ============ -Implement "synonyms" (e.g. "quickly" in eng->cat) qdacco 1.1.1 (February 2021) ============ Fix small errors: -If a word is not found shows an error -If the browser is not found shows an error -Shows common mistakes for words qdacco 1.1.0 (February 2021) ============ -Re-implements parser of the XML files: it shows more information that was available in the DACCO files (e.g. expressions) and corrects information that was not correctly parser qdacco 1.0.3 (November 2020) ============ -Improve arrow in buttons -Improve Settings dialogue size qdacco 1.0.2 (October 2020) ============ -Improve user interface texts -Fix Lintian error (thanks Adrià García-Alzórriz) qdacco 1.0.1 (May 2020) ============ -Fix compilation warnings (utf-8 characters, replaces 0 or NULL by nullptr) -Internal small refactorings -Updates readme, adds screenshots, etc. -Setup continuous integration qdacco 0.8.5 (June 2017) ============ -Improves qdacco.desktop (as per Debian guidelines) -Minor fix of translating a string, updates copyright years qdacco 0.8.4 (August 2015) ============ -Uses Qt5 -(It also deleted "Sending a suggestion" because at the moment this feature wasn't being used) qdacco 0.8.2 ============ -Adds the manual files (qdacco.1, textqdacco.1), the SGML file to generate qdacco.1, qdacco.xmp icon and qdacco.desktop. These files were previously in the Debian package (done by Miguel Gea) and has been now moved into qdacco upstream qdacco 0.8.1 (April 2011) ============ Minor UI changes, documentation, internal changes. -Adds Mac documentation. Contributed by Joan -Improves the layouts of Configuration and About dialogs -Improves the building system, so make source_package prepares the package to be released -Fixes some compilation problems with newer version of Qt -Specifies the GPL version in the About dialog -Deletes some debug messages -Don't use qDebug when it's not a debug message -Opens the dialog to search the dictionary in the current setting qdacco 0.8 (July 2008) ========== -First version of qdacco using TrayIcon -If using TrayIcon, only open one instance at time (Dbus communication) qdacco 0.7 (January 2008) ========== -First version of textdacco (needs lot of improvement) -New building system: using cmake. Thanks to Leopold Palomo for it! -Program splitted in three modules: gui, text and libqdacco -TAB order in configure dialog has been fixed -After search a word with long definition, you can use Down and Up arrows and Next and Previous page to move the definition without loose the focus qdacco 0.6d (July 2007) =========== -Licensed to GPL 3 -Initial qdacco Window is bigger: fits all icons (reported by Siegfried-Angel) -In advanced options: allowed to disable incremental search (reported by Siegfried-Angel) -Fixed bug: searching in case-insenstive was not choosing the correct word if two exact words was in the list (reported by Siegfried-Angel) qdacco 0.6c (April 2007) =========== -Allows to read using Festival from search field, not only from definition result qdacco 0.6b (April 2007) =========== -Fixed problem with Key Down qdacco 0.6a (April 2007) =========== -Ctrl+L to select search bar -Resized some button (in Catalan was too small) -Changed some texts -Always showing "Report as new entry" button -Fixed a bug: was sending as new word and not sending suggestions qdacco 0.6 (April 2007) ========== -MAJOR: Incremental search -MAJOR: Festival integration (In Linux) -Option to ignore the accents -Option to ignore case of words (there is some words in capital letters) -Removed option to search "closest matches" -Fix bug: words with capital letters (London) was changing the searched text -Sending suggeriments to Dacco: includes if it is a Linux or Windows version -Minor code improvements qdacco 0.5d (October 2006) =========== -Some internal changes -Graphical interface is in layouts: before there were problems in some window managers qdacco 0.5c (October 2006) ========== -Closes Debian Bug #391913: fixed compilation using Qt 4.2 qdacco 0.5[a,b] (October 2006) ========== -Minor bugfixes in User Interfaces -Minor bugfixes in translations texts qdacco 0.5 (October 2006) ========== -MAJOR: Ported to Qt 4 (version 4.1) -MAJOR: Show more information (english and catalan examples, notes of use, etc.) -MAJOR: Show links to photos/flickr. Clicking on them opens web browser, if configured -Other minor changes due previous ones QDacco 0.4 (April 2006) ========== -MAJOR: Button to send new words to Dacco server -MAJOR: Button to send comments to Dacco server -MAJOR: Better usability (changed UI) -Showing closest entries when word is not found -Closes Debian Bug #361331: errors when compiling with using g++ 4.1 -Lot of minor changes in graphic user interface -New icons. Mainly from Crystal theme of KDE -Improved catalan traduction QDacco 0.3a (January 2006) =========== -Changed name of executable file from QDacco* to qdacco -Added an icon -Added ./configure, make, make install support -Added support for Debian PATH'S -Translation strings are inside code QDacco 0.3 (October 2005) ========== -Copy button copies search term and result to clipboard -Semi-automatic detection of data directory -Debug mode (-d flag) -Copyright note -Code is cleaner -README and LLEGEIXME files -INSTALL and INSTALACIO files -First execution in GNU/Linux: autodetecting Language -Bug fixed: in Windows, some wrong characters -Bug fixed: changing user interface language -Bugs fixeds: lots of little bugs QDacco 0.2 (September 2005) ========== -Initial public release qdacco-1.2.4/docs/000077500000000000000000000000001477201047300137055ustar00rootroot00000000000000qdacco-1.2.4/docs/README.md000066400000000000000000000002101477201047300151550ustar00rootroot00000000000000# Documentation * For users please see the README.md in the root directory * For developers please see [developers.md](developers.md) qdacco-1.2.4/docs/developers.md000066400000000000000000000020711477201047300163770ustar00rootroot00000000000000# Developer documentation ## How to update qdacco translation files Please note that `lrelease` step should be part of the building process instead of having the file pushed into git (see [issue #5](https://github.com/cpina/qdacco/issues/5)]. At the moment in `gui/` do: ```sh lupdate *.cpp *.ui *.h ../nongui/*.cpp ../nongui/*.h -ts qdacco_ca.ts linguist qdacco_ca.ts lrelease qdacco_ca.ts -qm qdacco_ca.qm ``` And commit the files that have changed. ## How to release a new version * Make sure that translation files do not need to be updated * Update `QDACCO_VERSION` in `CMakeLists.txt` * If needed update the copyright_date in `gui/AuxiliarGUI.cpp` (see [issue #6](//github.com/cpina/qdacco/issues/6) to move this into `CMakeLists.txt`) * Update `changelog` file with the new notes * `git commit` of latest changes; `git push` * Open https://github.com/cpina/qdacco/releases , click on "Draft a new release" and write the information: * Tag version: same as QDACCO_VERSION **prepended by v** (e.g. v1.0.2) * Write a release title * Click on `Publish release` qdacco-1.2.4/docs/images/000077500000000000000000000000001477201047300151525ustar00rootroot00000000000000qdacco-1.2.4/docs/images/cat-to-eng.png000066400000000000000000000765531477201047300176360ustar00rootroot00000000000000PNG  IHDR:o pHYs+ IDATxwxl&RH J( E(^A *% E PD@ Z l3쐅HY?QA'SUU/i>INUUd2W4r9]jr$(zXt]7KȲ,k&+".i&d݉vr`ɁzưiMSEu]$z=f٩jQ9Nxe E ݶmۖD 'i&,®Ԡ;X>t:Ȳ,*^פEu+wQ1{+eŊرk4+I(ZTTi&שSG֝NI)))ONίSmے)fv˲,+t]Nzz ]e(EQ^t:VUŗ7ڶmˮ]vst vd$-ɲ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`ٰX^ڦi*>'FT{BӦME9 Qv+++cbb|r.<La~V}vv{7xsp9֜E:uǃ][.+e,Shi)`Zi`UUjV~-_itigBɄ;&x~_T kS,DG7 ""]yp ( EjbZX,h(jr8ͯzW(xդg{&BԒKyѣGY:cܪjV3.ws 䝳9 UUM/y!BA||2ӮOϟnakqO%]խE? VSU,--55M3gQz"liӦpYzhPǺBXQ UBBfV5xԯYVVf HO@!.!`|>Tz_MggFfMzBQZ Tf Lnl=O`v:xjmUL!l*fdddZwB\\nUU Wbbb,iZ~u]B@!.@xwk4h0._pO@UURIB0 CuCQbb93@zzf\."##Btހii!b !Ei} ifqqC wγ'HMLk|>0 ]4\ !8a6 k85*jz4h xvifiiiX*ABq)a~X,ffVV111:sjfttqr:Z~;BQb1t]vqBM Ù/ dee).W=}>nex<0 @!=~gX~0tcaƚ媪Pe 'Pq ׫GGG:WgXizji?BTjx<>oۍX.˨I/NOOOWV^+jQQj5{gS%bDiZMӴUUU]5aiiVl!y?ZM Bj*I+~.uTU0 PU0M3xj)RfGui>xf͚999fLLٿB/aPA6MzzfF3MuUӴ`-N::(..6\P@=RXu: U|>YwjX!妺wZ111FddY[= mt('NPJKKS)  ܩ7ln7"## jP+!AYYҡCN8BA!DN}4d ̬,"""PG!PAP\\)PBQOq?@mj5A@(!Z(C T^zzSCA!DOuXE @pBpw~0!*L \OVoQ'! ՋT !D(7ī3B\>$B!G״ D?IENDB`qdacco-1.2.4/docs/images/preferences-basic.png000066400000000000000000000561121477201047300212450ustar00rootroot00000000000000PNG  IHDRY $ pHYs+ IDATxy| ݲDDRY{K#RVQUtCWn>mJ7tE)Wmmm)"H D"f~On$$$1ܹ3sͽ=眙9CtAj+"+"QAzA@A@A@R':AvkqEWYRa/ T_#(T Յ~I}zz S^P.‚@||tB>;;[AãB"J-/((i 5Çpqqq*O-&Mr qqq֭[eR-srr$|QA(USS~a\\\oU RAuV9;;[ rrrl,KAŋFQ0LW-wuuUԩ&%%jllR^5r E@zzl6%".j B!A/F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M(ɲ 8Ku˝tREz[GZm$ʐs7H]}[4#@('kp˪sgSyR6N+牲Aaa!PC~*msї]Ӣ*!0GRE*iaK|!??˳jUl&}Z Ju"ÛG@Ӕ q"ˆ۞;u:J!F!Jqeرc9/PB.kse7gV>sM7}X㩪*c4Mv2#[Æ "I˧\EE9^Vt(4 #y֯^[DD]1mPՆ񾚦ywgzWfƖQ/8NF[iM enn4MS[N']T%M; 4e(J.A "NUUm5:ttv˓ފF4-YEQ8u]Q òl ޕ\ %[/wK@UU8J-BDԅu](u]x-];ufR%/ d$hT'[ MӄPL".i]}@4F 6fɖ8D"!mۖBW4\%"BĻ$\KD"n 4&7OAX,&u]Omp ".( B?@ud(˓pu:0MS0q}-""J]ׅ뺮iq o:yoTJKK޽{J80GmۮBׯ,Bت&xQ8cAGZ%"??_íZ sR;*D999.GQ[$"VBXe4E~~H$p8,: Z1eee|FQej]]jքnv@Q (BU4EʦΦ English dictionary * * Copyright (c) 2005, 2006, 2007, 2017 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include "About.h" About::About(QWidget *) //parent { ui.setupUi(this); ui.versio->setText(tr("qdacco version:") + " " +AuxiliarGUI::getVersion()); ui.name->setText("Carles Pina i Estany, "+AuxiliarGUI::getCopyrightDate()); } qdacco-1.2.4/gui/About.h000066400000000000000000000022401477201047300147620ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef ABOUT_H #define ABOUT_H #include #include #include #include #include #include #include "ui_About.h" #include "AuxiliarGUI.h" //libqdacco //#include class About : public QDialog { Q_OBJECT public: About(QWidget *parent = nullptr); private: Ui::About ui; }; #endif qdacco-1.2.4/gui/About.ui000066400000000000000000000320441477201047300151550ustar00rootroot00000000000000 About 0 0 410 340 144 232 410 340 16777215 16777215 About qdacco :/icons/qdacco.png:/icons/qdacco.png false Qt::Horizontal 281 20 Close :/icons/close.png:/icons/close.png 0 About Qt::Vertical QSizePolicy::Fixed 20 10 Qt::Horizontal QSizePolicy::MinimumExpanding 0 20 0 0 :/icons/qdacco.png qdacco 0.8.1 Qt::AutoText Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter Qt::Horizontal 40 20 0 0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Application for using the DACCO dictionary offline.</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">DACCO homepage: </span><a href="http://www.catalandictionary.org"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; text-decoration: underline; color:#0000ff;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">qdacco homepage: </span><a href="https://github.com/cpina/qdacco"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco</span></a></p></body></html> Qt::AlignCenter true Qt::Vertical QSizePolicy::Fixed 20 0 Author 0 0 10 Carles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2017, 2020 Qt::AlignCenter true 0 0 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:14pt;"><br /></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Many thanks to:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Jordi Pina: Graphical support</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Leopold Palomo-Avellaneda: cmake transition</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">and many other people for their support.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Suggestions, patches, ideas, etc. in </span><a href="https://github.com/cpina/qdacco "><span style=" text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco </span></a><span style=" font-size:10pt;">or </span><a href="mailto:carles@pina.cat"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html> Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop true Qt::Vertical QSizePolicy::Fixed 20 30 License 10 qdacco is GPL 3.0 licensed. DACCO dictionary is LGPL version 2.1 licensed. Qt::AlignCenter true Ok clicked() About close() 20 20 20 20 qdacco-1.2.4/gui/AuxiliarGUI.cpp000066400000000000000000000006261477201047300163740ustar00rootroot00000000000000#ifndef AUXILIARGUI_CPP #define AUXILIARGUI_CPP #include "AuxiliarGUI.h" #include "CMakeOptions.h" void *AuxiliarGUI::m=nullptr; QString AuxiliarGUI::version = QDACCO_VERSION; QString AuxiliarGUI::copyright_date = "2005-2009, 2011, 2013, 2015, 2017, 2020-2025"; QString AuxiliarGUI::getVersion() { return version; } QString AuxiliarGUI::getCopyrightDate() { return copyright_date; } #endif qdacco-1.2.4/gui/AuxiliarGUI.h000066400000000000000000000004161477201047300160360ustar00rootroot00000000000000#ifndef AUXILIARGUI_H #define AUXILIARGUI_H #include class AuxiliarGUI { private: static QString version; static QString copyright_date; public: static void *m; static QString getVersion(); static QString getCopyrightDate(); }; #endif qdacco-1.2.4/gui/CMakeLists.txt000066400000000000000000000035741477201047300163120ustar00rootroot00000000000000########################################### # qdaccogui # ########################################### set (qdaccogui_SRC Configure.cpp main.cpp qdacco.cpp About.cpp LineEdit.cpp ListWidget.cpp AuxiliarGUI.cpp OneInstance.cpp TrayIcon.cpp LoadConfig.cpp TextBrowser.cpp ../nongui/Auxiliar.cpp ../nongui/StructureList.cpp ../nongui/WordData.cpp ) set (qdaccogui_MOCS Configure.h main.h About.h TextBrowser.h LineEdit.h ListWidget.h OneInstance.h TrayIcon.h LoadConfig.h TextBrowser.h) set (qdaccogui_H AuxiliarGUI.h ../nongui/Auxiliar.h ../nongui/StructureList.h ../nongui/WordData.h ) set (qdaccogui_UIS Configure.ui main.ui About.ui) set(CMAKE_AUTOMOC ON) #set(CMAKE_AUTOUIC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(Qt6Gui REQUIRED) find_package(Qt6Network REQUIRED) find_package(Qt6Xml REQUIRED) find_package(Qt6DBus REQUIRED) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) # generate rules for building source files from the resources # set(qdaccogui_RCCS icons.qrc translation.qrc) # generate rules for building source files that moc generates QT6_WRAP_UI(qdaccogui_UIS_H ${qdaccogui_UIS}) #QT5_WRAP_CPP(${qdaccogui_MOCS}) QT6_ADD_RESOURCES(qdaccogui_RCC_SRCS ${qdaccogui_RCCS}) # Suggeriment CMake 2.6 if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) configure_file( CMakeOptions.h.cmake CMakeOptions.h ) # build sources, moc'd sources, and rcc'd sources # # generate rules for building source files from the resources # build sources, moc'd sources, and rcc'd sources add_executable(qdacco ${qdaccogui_H} ${qdaccogui_MOCS} ${qdaccogui_MOC_SRCS} ${qdaccogui_UIS_H} ${qdaccogui_SRC} ${qdaccogui_SRCS} ${qdaccogui_RCC_SRCS}) #qt6_use_modules(qdacco Widgets) target_link_libraries( qdacco ${QT6_LIBRARIES}) install_targets(/bin qdacco) qdacco-1.2.4/gui/CMakeOptions.h.cmake000066400000000000000000000001641477201047300173260ustar00rootroot00000000000000#ifndef CMAKEOPTIONS_H #define CMAKEOPTIONS_H #define QDACCO_VERSION "${QDACCO_VERSION}" #endif // CMAKEOPTIONS_H qdacco-1.2.4/gui/Configure.cpp000066400000000000000000000162401477201047300161710ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2011, 2021, 2023 * Carles Pina i Estany * * qdacco is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * qphotosort 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 * long with Foobar; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include "Configure.h" Configure::Configure(QWidget *) //parent { ui.setupUi(this); connect(ui.okCancel,SIGNAL(accepted()),this,SLOT(okf())); connect(ui.okCancel,SIGNAL(rejected()),this,SLOT(cancelf())); connect(ui.busca_fitxer,SIGNAL(clicked()),this,SLOT(busca_fitxerf())); connect(ui.busca_browser,SIGNAL(clicked()),this,SLOT(busca_browserf())); connect(ui.busca_festival,SIGNAL(clicked()),this,SLOT(busca_festivalf())); connect(ui.ajuda,SIGNAL(clicked()),this,SLOT(ajuda_busca())); connect(ui.ajuda_browser,SIGNAL(clicked()),this,SLOT(ajuda_browser())); connect(ui.ajuda_festival,SIGNAL(clicked()),this,SLOT(ajuda_festival())); connect(ui.ajuda_singleinstance,SIGNAL(clicked()),this,SLOT(ajuda_singleinstance())); if (Auxiliar::isWindows() || Auxiliar::isMac()) { ui.busca_browser->hide(); ui.ajuda_browser->hide(); ui.browser->hide(); ui.lbrowser->hide(); ui.busca_festival->hide(); ui.ajuda_festival->hide(); ui.festival->hide(); ui.lfestival->hide(); } } void Configure::ajuda_busca() { QMessageBox::information(this,tr("Information"),tr("Path of the \"dictionaries\" directory in DACCO. It contains \"cateng\" and \"engcat\" directories")); } void Configure::ajuda_browser() { QMessageBox::information(this,tr("Information"),tr("Path or executable name of the browser to be used for opening links in entries")); } void Configure::ajuda_festival() { QMessageBox::information(this,tr("Information"),tr("Path or executable name to \"festival\" speech synthesis system. Install it via your package manager or from the Festival webpage: http://www.cstr.ed.ac.uk/projects/festival/")); } void Configure::ajuda_singleinstance() { QMessageBox::information(this,tr("Information"),tr("If enabled launching a new qdacco will restore the existing one and be displayed as a trayicon")); } void Configure::busca_fitxerf() { QString workingDirectory; QFileDialog *dlg = new QFileDialog(this); dlg->setFileMode(QFileDialog::Directory); dlg->setDirectory(ui.directori->text()); if (dlg->exec() == QDialog::Accepted) { QStringList result; result=dlg->selectedFiles(); ui.directori->setText(result.at(0)); } delete dlg; } void Configure::busca_browserf() { QString workingDirectory; QFileDialog *dlg = new QFileDialog(this); dlg->setFileMode(QFileDialog::ExistingFile); if (dlg->exec() == QDialog::Accepted) { QStringList result; result=dlg->selectedFiles(); ui.browser->setText(result.at(0)); } delete dlg; } //TODO: refactor busca_browserf and busca_festivalf void Configure::busca_festivalf() { QString workingDirectory; QFileDialog *dlg = new QFileDialog(this); dlg->setFileMode(QFileDialog::ExistingFile); if (dlg->exec() == QDialog::Accepted) { QStringList result; result=dlg->selectedFiles(); ui.festival->setText(result.at(0)); } delete dlg; } void Configure::carregar_config() { QSettings qs("dacco","qdacco"); QString dictionaries; //Get dictionaries file dictionaries=qs.value("/dacco/directori", "" ).toString(); dictionaries=search_directory(dictionaries,Auxiliar::getDictionariesDirectory(),QDir::currentPath()+"/dictionaries/"); ui.directori->setText(dictionaries); ui.traduccio_defecte->setCurrentIndex(qs.value("/dacco/diccionari_per_defecte",1).toInt()-1); ui.idioma_defecte->setCurrentIndex(qs.value("/dacco/idioma_per_defecte",1).toInt()); m_language=ui.idioma_defecte->currentIndex(); ui.browser->setText(qs.value("/dacco/browser","").toString()); ui.festival->setText(qs.value("/dacco/festival","").toString()); if (Auxiliar::isUnix() && ui.browser->text()=="") { QFile file("/etc/alternatives/x-www-browser"); if (file.exists()) { ui.browser->setText("/etc/alternatives/x-www-browser"); } } if (Auxiliar::isUnix() && ui.festival->text()=="") { if (checkExecutable("festival")) { ui.festival->setText("festival"); } } if (Auxiliar::isWindows()) { ui.browser->setText("cmd /c start "); } if (Auxiliar::isMac()) { ui.browser->setText("open "); } ui.ignorar_majuscules->setChecked(!qs.value("/dacco/ignore_case","1").toBool()); ui.ignorar_accents->setChecked(qs.value("/dacco/ignore_accents","1").toBool()); ui.autocompletar->setChecked(qs.value("/dacco/autocomplete","1").toBool()); ui.singleinstance->setChecked(qs.value("/dacco/singleinstance","1").toBool()); } void Configure::okf() { QSettings settings("dacco","qdacco"); settings.setValue("/dacco/directori", ui.directori->text()); settings.setValue("/dacco/diccionari_per_defecte",ui.traduccio_defecte->currentIndex()+1); settings.setValue("/dacco/idioma_per_defecte",ui.idioma_defecte->currentIndex()); settings.setValue("/dacco/version","0.8"); //TODO: change to program constant if (m_language!=ui.idioma_defecte->currentIndex()) { QMessageBox::information(this, "qdacco", "To change the default language, you will have to restart qdacco"); } settings.setValue("/dacco/browser",ui.browser->text()); settings.setValue("/dacco/festival",ui.festival->text()); settings.setValue("/dacco/ignore_case",!ui.ignorar_majuscules->isChecked()); settings.setValue("/dacco/ignore_accents",ui.ignorar_accents->isChecked()); settings.setValue("/dacco/autocomplete",ui.autocompletar->isChecked()); settings.setValue("/dacco/singleinstance",ui.singleinstance->isChecked()); this->close(); } void Configure::cancelf() { QSettings settings("dacco","qdacco"); settings.setValue("/dacco/configurat",1); this->close(); } QString Configure::search_directory(QString current,QString d1,QString d2) { //2 directories is enough, else I will do in a list/array/... if (current=="") { QDir dir(d1); if (dir.exists()) { current=Auxiliar::getDictionariesDirectory(); } } if (current=="") { QDir dir2(d2); if (dir2.exists()) { current=d2; } } return current; } bool Configure::checkExecutable(QString executable) { QString path = getenv("PATH"); QStringList paths = path.split(":"); foreach(QString p,paths) { if (QFile::exists(p+"/"+executable)) { return true; } } return false; } void Configure::setFirst(bool first) { ui.okCancel->button(QDialogButtonBox::Cancel)->setEnabled(first==false); } qdacco-1.2.4/gui/Configure.h000066400000000000000000000032441477201047300156360ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2015 * Carles Pina i Estany * * qdacco is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * qphotosort 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 * long with Foobar; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef CONFIGURE_H #define CONFIGURE_H #include #include #include #include #include #include #include #include "ui_Configure.h" //qdaccolib #include class Configure : public QDialog { Q_OBJECT public: Configure(QWidget *parent = nullptr); private: Ui::Configure ui; QString search_directory(QString current,QString d1,QString d2); int m_language; bool checkExecutable(QString qstring); private slots: void okf(); void cancelf(); void busca_fitxerf(); void busca_browserf(); void busca_festivalf(); void ajuda_busca(); void ajuda_browser(); void ajuda_festival(); void ajuda_singleinstance(); public slots: void carregar_config(); void setFirst(bool first); }; #endif qdacco-1.2.4/gui/Configure.ui000066400000000000000000000256451477201047300160350ustar00rootroot00000000000000 Configure 0 0 380 228 0 0 380 0 16777215 16777215 Preferences :/icons/qdacco.png:/icons/qdacco.png 0 Basic Default dictionary: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter traduccio_defecte Catalan → English English → Catalan &User interface language: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter idioma_defecte Catalan English I&gnore diacritics: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter ignorar_accents &Match case: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter ignorar_majuscules Advanced Dictionary directory: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter directori :/icons/fileopen.png:/icons/fileopen.png ... :/icons/help.png:/icons/help.png Browser: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter browser :/icons/fileopen.png:/icons/fileopen.png ... :/icons/help.png:/icons/help.png Festival (speech synthesis): Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true festival :/icons/fileopen.png:/icons/fileopen.png ... :/icons/help.png:/icons/help.png A&utocomplete: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter autocompletar Single instance: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter singleinstance ... :/icons/help.png:/icons/help.png QDialogButtonBox::Cancel|QDialogButtonBox::Ok tabWidget traduccio_defecte idioma_defecte ignorar_accents ignorar_majuscules directori busca_fitxer ajuda browser busca_browser ajuda_browser festival busca_festival ajuda_festival autocompletar qdacco-1.2.4/gui/LineEdit.cpp000066400000000000000000000053141477201047300157450ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2021, 2023 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include #include #include #include #include "LineEdit.h" LineEdit::LineEdit(QWidget *parent) : QLineEdit(parent) { } void LineEdit::setFestivalEnable(int f) { m_festival_enable=f; } void LineEdit::keyPressEvent(QKeyEvent *pEvent) { int qkey = pEvent->key(); int send=0; int type=0; if (qkey == Qt::Key_Down) { type=QEvent::User+Auxiliar::KeyDown(); send=1; } else if (qkey == Qt::Key_Up) { type=QEvent::User+Auxiliar::KeyUp(); send=1; } else if (qkey == Qt::Key_PageDown) { type=QEvent::User+Auxiliar::KeyNextPage(); send=1; } else if (qkey == Qt::Key_PageUp) { type=QEvent::User+Auxiliar::KeyPrevPage(); send=1; } if (send) { QEvent qevent((QEvent::Type)type); QCoreApplication::sendEvent(m_parent,&qevent); } QLineEdit::keyPressEvent(pEvent); } void LineEdit::setParent(QObject *q) { m_parent=q; } void LineEdit::contextMenuEvent(QContextMenuEvent *e) { selectWord(); QMenu *menu = createStandardContextMenu(); QAction *festival = menu->addAction(tr("Read")); festival->setEnabled(m_festival_enable && this->text().length()>0); connect(festival,SIGNAL(triggered()),m_parent,SLOT(FestivalExecuteEntry())); menu->exec(e->globalPos()); //moure-ho } void LineEdit::selectWord() { QTextCursor qtc; QString s; if (this->hasSelectedText() == false) { //Selecciona paraula on hi ha el cursor int position=this->cursorPosition(); int begin,end; begin=getPrevSpace(position); end=getNextSpace(position); this->setSelection(begin,end); } } int LineEdit::getPrevSpace(int pos) { QString text = this->text(); if (pos >= text.length()) { pos = text.length() - 1; } while (pos>0 && text.at(pos) != QChar(' ')) { pos--; } return pos; } int LineEdit::getNextSpace(int pos) { QString text; while (postext().length() && text.at(pos) != QChar(' ')) { pos++; } return pos; } qdacco-1.2.4/gui/LineEdit.h000066400000000000000000000026741477201047300154200ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2015 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef LINEEDIT_H #define LINEEDIT_H #include //qdaccolib #include //Adds to QLineEdit capability to scroll list word box //Adds to QLineEdit capability to read words #include class LineEdit : public QLineEdit { Q_OBJECT public: LineEdit (QWidget *parent=0); void setParent(QObject *q); virtual void contextMenuEvent(QContextMenuEvent *e); void setFestivalEnable(int f); protected: void keyPressEvent(QKeyEvent *pEvent); private: QObject* m_parent; int m_festival_enable; QPoint m_qpoint; void selectWord(); int getPrevSpace(int pos); int getNextSpace(int pos); }; #endif qdacco-1.2.4/gui/ListWidget.cpp000066400000000000000000000031271477201047300163270ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2009 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include #include #include "ListWidget.h" ListWidget::ListWidget(QWidget *parent) : QListWidget(parent) { } void ListWidget::keyPressEvent(QKeyEvent *pEvent) { int qkey = pEvent->key(); int send=0; int type=0; if (qkey == Qt::Key_Down) { type=QEvent::User+Auxiliar::KeyDown(); send=1; } else if (qkey == Qt::Key_Up) { type=QEvent::User+Auxiliar::KeyUp(); send=1; } else if (qkey == Qt::Key_PageDown) { type=QEvent::User+Auxiliar::KeyNextPage(); send=1; } else if (qkey == Qt::Key_PageUp) { type=QEvent::User+Auxiliar::KeyPrevPage(); send=1; } if (send) { QEvent qevent((QEvent::Type)type); QCoreApplication::sendEvent(m_parent,&qevent); } else { QListWidget::keyPressEvent(pEvent); } } void ListWidget::setParent(QObject *q) { m_parent=q; } qdacco-1.2.4/gui/ListWidget.h000066400000000000000000000022201477201047300157650ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2009, 2015 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef LISTWIDGET_H #define LISTWIDGET_H #include #include //qdaccolib #include class ListWidget: public QListWidget { Q_OBJECT public: ListWidget(QWidget *parent=0); void setParent(QObject *q); protected: void keyPressEvent(QKeyEvent *pEvent); private: QObject* m_parent; }; #endif qdacco-1.2.4/gui/LoadConfig.cpp000066400000000000000000000020501477201047300162470ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008 * Carles Pina i Estany * * qdacco is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * qphotosort 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 * long with Foobar; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "LoadConfig.h" LoadConfig::LoadConfig() { m_qs = new QSettings("dacco","qdacco"); } bool LoadConfig::getSingleInstance() { return m_qs->value("/dacco/singleinstance",1).toBool(); } qdacco-1.2.4/gui/LoadConfig.h000066400000000000000000000020621477201047300157170ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008 * Carles Pina i Estany * * qdacco is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * qphotosort 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 * long with Foobar; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef LOADCONFIG_H #define LOADCONFIG_H #include class LoadConfig : QObject { Q_OBJECT public: LoadConfig(); bool getSingleInstance(); private: QSettings *m_qs; }; #endif qdacco-1.2.4/gui/OneInstance.cpp000066400000000000000000000056751477201047300164700ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2009 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include "OneInstance.h" OneInstance::OneInstance() : m_dbusAvailable(false) { ptr_main = new Main; ptr_main->show(); } bool OneInstance::isAnotherInstance() { // Return true if there is another instance bool ret=false; if (!QDBusConnection::systemBus().isConnected()) { qDebug() << "QDbus not available"; return false; } QDBusConnection bus = QDBusConnection::sessionBus(); if (bus.lastError().type() != QDBusError::NoError) { m_dbusAvailable = false; return false; } m_dbusAvailable = true; QStringList serviceNames = bus.interface()->registeredServiceNames(); if (serviceNames.indexOf("qdacco.org")==-1) { ret=false; } else { ret=true; } return ret; } void OneInstance::sendRestore() { if (m_dbusAvailable == false) { return; } // Send to the other instance a restore message QDBusConnection bus = QDBusConnection::sessionBus(); QDBusMessage msg = QDBusMessage::createMethodCall("qdacco.org","/serveis","","restore"); QDBusMessage reply = bus.call(msg); } void OneInstance::restore() { if (m_dbusAvailable == false) { return; } // Received by DBUS // Needed to destroy and create the Window again and not only // give the focus because some Window Managers prevents // focus stealing int idioma = ptr_main->getIdiomaActiu(); QString paraula = ptr_main->getParaula(); delete ptr_main; ptr_main = new Main; ptr_main->setIdiomaActiu(idioma); if (paraula.length()>0) { ptr_main->setParaula(paraula); ptr_main->buscar(); } ptr_main->show(); } void OneInstance::registerInstance() { if (m_dbusAvailable == false) { return; } QDBusConnection bus = QDBusConnection::sessionBus(); bus.interface()->registerService("qdacco.org"); bus.registerObject("/serveis",this,QDBusConnection::ExportAllSlots); } bool OneInstance::isVisible() { if (m_dbusAvailable == false) { return true; } return ptr_main->isVisible(); } void OneInstance::close() { if (m_dbusAvailable == false) { return; } ptr_main->close(); } void OneInstance::hide() { if (m_dbusAvailable == false) { return; } ptr_main->hide(); } void OneInstance::show() { if (m_dbusAvailable == false) { return; } ptr_main->show(); } qdacco-1.2.4/gui/OneInstance.h000066400000000000000000000024001477201047300161140ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2009 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef ONEINSTANCE_H #define ONEINSTANCE_H #include #include #include "main.h" class Main; class OneInstance : public QObject { Q_OBJECT public: OneInstance(); bool isAnotherInstance(); void sendRestore(); void sendQuit(); void registerInstance(); bool isVisible(); void close(); void hide(); void show(); private: Main *ptr_main; bool m_dbusAvailable; public slots: void restore(); }; #endif qdacco-1.2.4/gui/TextBrowser.cpp000066400000000000000000000057641477201047300165510ustar00rootroot00000000000000#include "TextBrowser.h" TextBrowser::TextBrowser(QWidget* parent) : QTextBrowser(parent) {} int TextBrowser::getCharPosition() const { QTextCursor qtc; qtc = this->textCursor(); return qtc.position(); } void TextBrowser::selectWord() { //Warn: only valid after m_qupoint has been setted up QTextCursor qtc; QString s; if (!this->textCursor().hasSelection()) { qtc = this->cursorForPosition(m_qpoint); qtc.select(QTextCursor::WordUnderCursor); this->setTextCursor(qtc); } } void TextBrowser::setBrowser(const QString& browserLocation) { m_browser_location = browserLocation; } void TextBrowser::setParent(QMainWindow *mainWindow) { m_parent=mainWindow; } void TextBrowser::setFestivalEnable(int f) { m_festival_enable=f; } void TextBrowser::setSource(const QUrl& url) { bool success = QProcess::startDetached(m_browser_location, QStringList() << url.toString()); Auxiliar::debug("Executing: "+m_browser_location); if (!success) { emit browserFailed(); } } void TextBrowser::contextMenuEvent(QContextMenuEvent *e) { int language; m_qpoint=e->pos(); selectWord(); QMenu *menu = createStandardContextMenu(); if (Auxiliar::isWindows()==false) { QAction *festival = menu->addAction(tr("Read")); language = getLanguage(); festival->setEnabled(m_festival_enable && language!=0); connect(festival,SIGNAL(triggered()),m_parent,SLOT(FestivalExecuteDefinition())); } menu->exec(e->globalPos()); } QPoint TextBrowser::getPosition() const { return m_qpoint; } int TextBrowser::getLanguage() const { int cursor_position=getCharPosition(); //return Auxiliar::catalan(), Auxiliar::english(), //3: UI language //4: destination language //5: NOT destination language QString text = this->toPlainText(); int cat = Auxiliar::catalan(); int eng = Auxiliar::english(); QHashhash; hash.insert(tr("Catalan example(s): "),cat); hash.insert(tr("English example(s): "),eng); hash.insert(tr("English notes: "),eng); hash.insert(tr("Catalan notes: "),cat); hash.insert(tr("Example(s): "),5); hash.insert(tr("Synonym(s): "),5); hash.insert(tr("Plural: "),4); hash.insert(tr("Female Plural: "),4); hash.insert(tr("Picture: "),0); hash.insert(tr("Flickr: "),0); QHashIterator i(hash); int position=0; int textLanguage=4; int temp; while (i.hasNext()) { i.next(); temp=text.lastIndexOf(i.key(),cursor_position,Qt::CaseSensitive); if (temp!=-1 && temp > position) { position=temp; textLanguage=i.value(); if (temp+i.key().length() > cursor_position) { textLanguage=3; } } } Auxiliar::debug(QString("Language to read: %d").arg(textLanguage)); return textLanguage; } QString TextBrowser::getText() const { QTextCursor tc = this->textCursor(); return tc.selectedText(); } qdacco-1.2.4/gui/TextBrowser.h000066400000000000000000000033141477201047300162030ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2015 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef TEXTBROWSER_H #define TEXTBROWSER_H #include #include #include #include #include #include #include #include //qdaccolib #include class TextBrowser : public QTextBrowser { Q_OBJECT public: TextBrowser(QWidget* parent = nullptr); void setBrowser(const QString& browserLocation); void setParent(QMainWindow* mainWindow); void setFestivalEnable(int f); virtual void setSource(const QUrl& url); virtual void contextMenuEvent(QContextMenuEvent *e); QPoint getPosition() const; int getLanguage() const; QString getText() const; Q_SIGNALS: void browserFailed(); private: int getCharPosition() const; void selectWord(); QString m_browser_location; int m_festival_enable; QMainWindow *m_parent; QPoint m_qpoint; }; #endif qdacco-1.2.4/gui/TrayIcon.cpp000066400000000000000000000044101477201047300157740ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include "TrayIcon.h" //TrayIcon* TrayIcon::ptr_trayicon; TrayIcon::TrayIcon() { trayIcon = new QSystemTrayIcon(this); trayIcon->setIcon(QIcon(":/icons/qdacco.png")); trayIcon->show(); // connect the signals-slots connect(trayIcon,SIGNAL(activated(QSystemTrayIcon::ActivationReason)),this,SLOT(leftclick(QSystemTrayIcon::ActivationReason))); trayIcon->setToolTip("qdacco"); trayIcon->show(); //installEventFilter(this); } void TrayIcon::SetOneInstance(OneInstance *o) { myoneinstance = o; setMenu(); } void TrayIcon::setMenu() { trayIconMenu = new QMenu(this); QAction *action; if (myoneinstance->isVisible()) { action = trayIconMenu->addAction(tr("Hide")); } else { action = trayIconMenu->addAction(tr("Show")); } connect(action,SIGNAL(triggered()),this,SLOT(changestatus())); trayIconMenu->addSeparator(); QAction *quit = trayIconMenu->addAction(QIcon(":/icons/exit"),tr("Quit")); connect(quit,SIGNAL(triggered()),this,SLOT(quit())); trayIcon->setContextMenu(trayIconMenu); } void TrayIcon::changestatus() { leftclick(QSystemTrayIcon::Trigger); } void TrayIcon::leftclick(QSystemTrayIcon::ActivationReason reason) { if (reason==QSystemTrayIcon::Trigger) { if (myoneinstance->isVisible()) { myoneinstance->hide(); setMenu(); } else { myoneinstance->show(); setMenu(); } } } void TrayIcon::quit() { myoneinstance->close(); } void TrayIcon::primerPla() { leftclick(QSystemTrayIcon::Trigger); } qdacco-1.2.4/gui/TrayIcon.h000066400000000000000000000024521477201047300154450ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef TRAYICON_H #define TRAYICON_H #include #include #include #include "OneInstance.h" class OneInstance; class TrayIcon : public QWidget { Q_OBJECT public: TrayIcon(); void primerPla(); void SetOneInstance(OneInstance *o); private: void setMenu(); QSystemTrayIcon *trayIcon; QMenu *trayIconMenu; OneInstance *myoneinstance; private slots: void leftclick(QSystemTrayIcon::ActivationReason reason); void changestatus(); void quit(); }; #endif qdacco-1.2.4/gui/doc/000077500000000000000000000000001477201047300143065ustar00rootroot00000000000000qdacco-1.2.4/gui/doc/qdacco.1000066400000000000000000000023261477201047300156250ustar00rootroot00000000000000.TH "QDACCO" "1" .SH "NAME" qdacco \(em dacco english-catalan dictionary frontend .SH "SYNOPSIS" .PP \fBqdacco\fR [\fB-d \fP] .SH "DESCRIPTION" .PP This manual page documents briefly the \fBqdacco\fR command. .PP This manual page was written for the \fBDebian\fP distribution because the original program does not have a manual page. .PP \fBqdacco\fR is a program that is able to search in the Dacco database to translate from english to catalan o viceversa. .SH "OPTIONS" .PP This program follow the usual GNU command line syntax, with long options starting with two dashes (`\-'). A summary of options is included below. .IP "\fB-d\fP " 10 Enable debug mode. .SH "AUTHOR" .PP This manual page was written by Miguel Gea Milvaques xerakko@debian.org for the \fBDebian\fP system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 any later version published by the Free Software Foundation. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. .\" created by instant / docbook-to-man, Tue 05 Apr 2011, 20:26 qdacco-1.2.4/gui/doc/qdacco.sgml000066400000000000000000000074611477201047300164340ustar00rootroot00000000000000 manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Miguel"> Gea Milvaques"> April 5, 2011"> 1"> xerakko@debian.org"> QDACCO"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2003 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; dacco english-catalan dictionary frontend &dhpackage; DESCRIPTION This manual page documents briefly the qdacco command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a program that is able to search in the Dacco database to translate from english to catalan o viceversa. OPTIONS This program follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. Enable debug mode. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 3 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
qdacco-1.2.4/gui/icons.qrc000066400000000000000000000010701477201047300153610ustar00rootroot00000000000000 icons/button_cancel.png icons/button_ok.png icons/close.png icons/configure.png icons/editcopy.png icons/editpaste.png icons/exit.png icons/fileopen.png icons/find.png icons/help.png icons/qdacco.png icons/switch2.png qdacco-1.2.4/gui/icons/000077500000000000000000000000001477201047300146545ustar00rootroot00000000000000qdacco-1.2.4/gui/icons/button_cancel.png000066400000000000000000000015631477201047300202070ustar00rootroot00000000000000PNG  IHDRĴl;gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb?-@1҅A3/3(\c@7 " 5?ay T Ph_?0m823" P N_W@4PYA qySQOC  3\_?~}gra T|Ca8  `b4###(LAd(p_?>l@ aπз1?Ёf. SA.QNj(@PX A   ;Wfk(`0@a r&` þ4f0@a5* ǰ_[KWB^290W:FȆ2|o3@1Ja 66EEpR<Ǝ=ď_30|33(?Ɗi8@1.Ca>ȥ C1/"`B"  \*h7נd1܆AleFP)EL⇆~e&#nhb8(S@?G_c /AYqo|Dv,ޟ]lef08%] d?-@fJS`K)  ԥ3 0&Py DWM@`.EyH 4IENDB`qdacco-1.2.4/gui/icons/button_ok.png000066400000000000000000000014011477201047300173620ustar00rootroot00000000000000PNG  IHDRĴl;gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb?-@11  FFFƷA! 2s!CMϠ4h ffGbd,!Dg ddJ./ | 3Lf0 I@0``萠"4oC %2x#33~< ez_X3#ԃʍ+ n^:t#C&Rb`b``]e@{64[3gg/xD zy:!$I41gev`RgbsM?0?0dF9 #P ?~_Pǐ`b?6_u -`af@>s B@DB ..z>C+ bv$+@Q \/~;-á*o 0&N g eg``\h((O!.phx#Aa: P `RF/8r@^g`x 4i0 ?`H30|@AI7Ln.eK tc4J# #&Y @43 䭛pEIENDB`qdacco-1.2.4/gui/icons/close.png000066400000000000000000000020031477201047300164620ustar00rootroot00000000000000PNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxbtg@~-cbbr($?bbA W2??/##_n޼_u捣̌-LL;`z [Gxx=77؀_1ܸa}+Wn\ &&) }fwff ,, ? 5(py?}z  fe߿vpWÛ7?~tw 4 e/^Vz @1[[HHJEE @ACC7@1))aqqA;wAPP  3m/?00pr5IJ0((H׷a͚ >aЛ?^ 00!/G]!1яANN  ֮30,X0@B۷ O}d001ܿn0ܺu_s@͉l 04|X@aL!쌜 QQkӻIENDB`qdacco-1.2.4/gui/icons/configure.png000066400000000000000000000034571477201047300173540ustar00rootroot00000000000000PNG  IHDR szzgAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxbdv8. $ aB@o?߿ RZZ(r?e9Ó'/hmmx`Æ>|_~|J h͚VyS]N_rw?v>ɐ q#J b1Ο߿Q]=>}NX?}[pZ Pʚ̿e`g} \2egчsƚCQO='rK>P7_~g]]Un 33gPPkQ d#/? M-fH#x @,pP!g00-Gߢ ߹n vC##*4/.J~O J_>~gae`dޏ1|fcv/ &r)}?Gq9NF~qnF6n4!?g SF`B^Y!J70 +fdgfxi&pH\_@d;BalA^' \hyYP )qo.>|1788n`to ߀oC o酋AçL 3J bz)IVg*(>ro-AM'(=78to?->(b[V~@&@Q 4`,]o ! ,E:33_`7sNu fgf_V4M S/DC, sRPcf(lW0d7>PuL&&Z|g<=w>QJ U%K**b !Tc104 sL S+2B H2&F؆X)T̪P6(EQ < ;^ Ry%q' NnrRVBܥ[vP&ڃ;p]> Ax'2eSO&m qAlM*-qg9֍*f^{(3f}؂[^E})fV?;W&e9 %"Çfz#ܫ07BXJUD.*Y,662vʓu':=}ϟP 5c^s.,Gܤ-X6sg:EYL>ۙvԅ]f͙&gخ}XUVtIbwalۍl [('N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:vN?&388(..m_lZ J,ό2>hY`}@ƪ|OTgܺ쑕 [0x+Y@.ZzΟl2..!d: g/9pzᖞN'ZXټ#e<|@2 qLĵ--~{g70VOYl6>婝Bk33zIENDB`qdacco-1.2.4/gui/icons/help.png000066400000000000000000000044261477201047300163200ustar00rootroot00000000000000PNG  IHDR szzsBIT|dtEXtSoftwarewww.inkscape.org<IDATXW{p\Uιl^m4iӴЗRȀR#*CE@`t8*c3ʨt€-R[BZMdc6Ͻ{真Ŧ<cx _du>rWl~_!ʤ"`Hj2^6;ҹx^˾Q8zmv R/Sm[+5|&rr,_KR$!_ hp4/;V6_2})>:4}_}~[rɺɔ7r<z$/̐_h}~J!D 008߼*i/eeSUNw1ƾEDoMC، v.Qv+W'덊dF-) -  `;*fH,-ڧ'<6*BHl0 7swdGψ&+~>9O8_?+*SRs`g6;w]l9_ҷڟMJ"P @U  !ƘS&@"*)""=ƒ[sF+?/~7uFSLIiL4C@| z\˞J3~Ϊf(IijZDI&@-hnIpW*JҥP*.,c^>&۔6'3j)8mEPFc"yZE8 K% QvF&󠢂 kB99ÅYQHDY_J d)@9 mS~Tn^H˓ ,da9e0,5 ({Ё$*D2&4tE Y~L@=F^qF,N42 !PTK4G\Jj*x@F tBģ3撯2_ٰP?>6Rl6 Ir#/F7ѿ8V )d&=SRJv5(M;q*hP `V(7B~.BaeD$_:w|VM+5WCX5;hjx_)J0 1OjL_0Rq M `ڥu.ppN/ϴ޾:ѰoK," rMɂ&OcSpv2h'ņ&Ӿt [^t3ɹ3`Z3˚/{:"POE}C;[ZLMn{Dq*W;]<1UkSDfžޜG{<{SDzFUNUkeZȆC3 YLwb:B%25f`[ҦJsnI1//|uv^֬ۺ޿}{m IOJ&)D567R Ht'{mL]0zA"\dG zo׾^\T'ʟ d؄3G{~,!twt6dU 6ԭVzJLeRVS8>"|[tKδ`-p2+׃1 ~,"%myLFpQn'4eDYIENDB`qdacco-1.2.4/gui/icons/qdacco.png000066400000000000000000000035371477201047300166240ustar00rootroot00000000000000PNG  IHDR,(sBIT|dtEXtSoftwarewww.inkscape.org<IDATX{?7y.ʰAf +R$lBZZTIIMm5#6FhZcI6P](aPEY˾fvfw߷;} &f~sw~{$>Hb +eĔSdɛER:)$6d p&/cI#k{(3iVn>1mƓ.#@Jw[#f>jVoeETSP{X8_z/>;%7AĐ~^%t%+5+'<6`hOh ZqNE 9)UmVec5VB:5=Hsh i wҩ,hplYhSѝHkjT$t~X+xI@~v w0ͪ],"vvGDU)KIsUaKV"5R !\pk4}ÁWӃI19s} d7;LUӑ5peh&5q,]Y:<\"t;ԵZUpZ7V Lgv?i*eqfґ5| l.:aY6(QYZԳxP4%c,HEtK6ǡ3<l p"KWe3"1nYey˔h #(3skcS=KZqڧ.ܴ]4%y^2)y )/%CwSi>{Fm-| Ut"-ŏѕ,]4Hwrp)Ҧ1 Z Qmuά(ɬQ"JF f -J;;xsǘZ) [G$#*j˼O + U0d[ !Cnc&x,a7M݉1sqV͸C,p4)1y"K{LIb1{҂͙ZA[A+ S=#RLlB ˟t+cCVc896&ɐb8VtxoM<7/dbs lMS2?!7 bhf/?Ym Y|0鶂M`\yT '~qnC¯4 xm&g />ZC@IENDB`qdacco-1.2.4/gui/icons/qdacco.xpm000066400000000000000000000105621477201047300166400ustar00rootroot00000000000000/* XPM */ static char *dummy[]={ "32 29 153 2", "Qt c None", ".G c #0020ff", ".9 c #011ffe", "#D c #031ffc", ".W c #041ffb", ".P c #091ef6", "#e c #0a1ef5", "#q c #0f1ef0", "#T c #111dee", ".F c #161de9", "ac c #171de8", "#x c #251bda", ".Z c #3319cc", ".X c #3a18c5", "#5 c #4417bb", ".6 c #4617b9", "#G c #5115ae", "#M c #5315ac", "#0 c #5a14a5", ".O c #5d14a2", ".0 c #5f14a0", ".J c #65139a", "#N c #661399", ".H c #71118c", ".R c #7a1082", "#V c #7c1081", "#w c #7f0f7a", "#c c #820f79", "#U c #850f7a", "#L c #8a0106", ".e c #8a2000", "#J c #8a3000", "#. c #8b1900", "aa c #96010a", "#Z c #970109", "aw c #983300", "#f c #993400", "#R c #993500", ".w c #9d4000", ".S c #9e0404", "#v c #9e0a54", "#O c #9e2000", "#l c #a62600", "#1 c #a70949", "#j c #ad0943", "#9 c #ad2b00", "an c #af0211", "#A c #af4200", "ao c #b00211", "#E c #b20841", ".5 c #b4020f", "a. c #b43100", ".V c #ba6700", "#o c #bc0631", "#6 c #bc0632", ".# c #bc2300", "av c #bc3c00", ".Q c #bd0842", ".A c #bd2700", ".s c #bd2d00", ".d c #bd2f00", "#Y c #be4700", ".x c #bf020e", ".o c #c12500", ".j c #c44600", ".K c #c7080a", "#t c #c85600", ".7 c #c9020d", "#p c #c90525", "ad c #c9062e", "## c #cc5600", "#C c #cd020e", "a# c #cd3c00", "#3 c #cd4e00", ".r c #ce2200", "aj c #cf7f00", "#a c #cf8c00", "ak c #d4031b", "au c #d43e00", ".B c #d54400", ".N c #d55600", ".I c #d6041f", "#I c #d83200", "at c #d93c00", ".n c #da7100", "#b c #dd010d", "as c #de3800", ".t c #df3b00", "#H c #e02b00", ".E c #e30210", "#n c #e5020f", "#2 c #e52a00", "ap c #e62800", "#Q c #e64500", "ar c #e73100", "#7 c #e82500", "#s c #e84600", "am c #e89d00", "ab c #e9010c", "#F c #ea010c", ".c c #ea2c00", ".Y c #eb010b", "al c #eb2900", ".M c #eb4800", "aq c #ec2d00", ".T c #ec5b00", "ah c #ed4b00", "#d c #ee0007", ".8 c #ee0109", ".y c #ee2b00", ".p c #ee5b00", ".k c #ee5e00", ".m c #ef2800", ".b c #ef2a00", ".1 c #ef2e00", "ag c #f00107", ".a c #f02a00", "#y c #f06900", ".D c #f0b600", "#u c #f10107", "ae c #f17000", "#k c #f30005", "#W c #f37200", "#X c #f38200", "#i c #f40005", "#z c #f48400", ".4 c #f6c700", ".U c #f88b00", "#m c #f8bb00", ".i c #fab900", "#h c #fbd300", ".f c #fd9900", ".q c #fd9b00", ".L c #fda300", "#r c #ffaf00", "#P c #ffb500", ".2 c #ffc700", "#8 c #ffc800", ".z c #ffcb00", ".C c #ffdb00", ".v c #ffe400", "#K c #ffe600", "af c #ffe700", "#g c #ffe800", ".l c #ffeb00", "#S c #ffec00", "#4 c #ffed00", ".3 c #fff000", ".u c #fff200", "#B c #fff800", ".h c #fffb00", "ai c #fffc00", ".g c #ffff00", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQt.#.a.a.a.b.b.c.d.eQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQt.f.g.g.g.g.g.g.g.g.h.i.jQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQt.k.g.g.g.g.g.g.g.g.g.g.lQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQt.m.g.g.g.g.g.g.g.g.g.g.g.nQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQt.o.p.g.g.q.r.s.t.u.g.g.g.v.wQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQt.xQtQtQt.y.g.g.z.AQtQt.B.C.g.g.g.DQtQtQtQtQtQtQtQtQt", "QtQtQtQt.E.F.G.H.I.J.K.L.g.g.MQtQtQtQt.N.g.g.gQtQtQtQtQtQtQtQtQt", "QtQtQtQt.O.G.P.F.Q.R.S.T.g.g.UQtQtQtQtQt.g.g.g.VQtQtQtQtQtQtQtQt", "QtQtQtQt.W.X.Y.Z.0.EQt.1.g.g.2QtQtQtQtQt.3.g.g.4QtQtQtQtQtQtQtQt", "QtQtQt.5.6.7Qt.8.9QtQt#..g.g.gQtQtQtQtQt##.g.g.g#aQtQtQtQtQtQtQt", "QtQ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QtQtQtQt"}; qdacco-1.2.4/gui/icons/switch2.png000066400000000000000000000027101477201047300167450ustar00rootroot00000000000000PNG  IHDR szzbKGD pHYs  tIME 1j9UIDATXýmTUsgfwvfvm}Iԕʗ Ҍ(3>j! 0/$a !)FViKf:~=ڮc.syrTpuvD?{=/|ť>16CcɌdyhTw)Q_Ai& g 7B`[`Y q!Р杞O=Y=}k̙:,Ry84w'uQ!5iA9b񫝩_`Lyi/2!Fp=V@(Zi8̘#j ;}uGlyC ;qYT:['ИeۊEٻ4 #_23 Lw?u W,o^@ӭ447Q.MVawXl¦;  SE֎-Gp㳻h?Gneߺۮ(G,fp8,3ʃ[LJe=x[&m E@W}l6~HV\SkZ(A΃9!B>gbF>B& w^:]>xmozD HPs=ZEL.@HPf^bP $OqdqHf 3m~CJVc\GWC '@ƔSO \U;BQx5T ]غz>|U`.n^\UVGBHr Lz| ުGml|ab&\E &$j@siU̸0>˾h/o5a~`ڵ \6jYάkw1,5χ2(mBQHVI)xy]2羻q[ׇt8mP=dP2PIdf2. _2-;C8-@dqnY`iX2Ҁ"Q51`؁c RLI?yp '54L헶q~lby̬3:߈Vŀ-ʄ٧eqnܳal3XN9qtN 6KJ6PLTOT+Jv J(,[Rp:;{9z4I C "&&:J^,~ZzE3ᕮΛkppq˘!7dX&/(z`Ӯg_ce IENDB`qdacco-1.2.4/gui/main.cpp000066400000000000000000000412071477201047300151750ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2020 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include "main.h" #include "AuxiliarGUI.h" #include "About.h" #include "Configure.h" #include "TextBrowser.h" #include "TrayIcon.h" #include "nongui/StructureList.h" #include Main::Main(QWidget *) //parent { ui.setupUi(this); ui.paraula->setParent(this); ui.llistat->setParent(this); ui.definicio->setParent(this); resize(QSize(270,300)); installEventFilter(this); m_cat_eng = new QToolButton; m_cat_eng->setText(tr("cat → eng")); m_cat_eng->setCheckable(1); ui.toolBar->addWidget(m_cat_eng); m_eng_cat = new QToolButton; m_eng_cat->setText(tr("eng → cat")); m_eng_cat->setCheckable(1); ui.toolBar->addWidget(m_eng_cat); ui.toolBar->addSeparator(); QAction *copy = ui.toolBar->addAction(QIcon(":icons/editcopy.png"),tr("Copy")); QAction *paste = ui.toolBar->addAction(QIcon(":icons/editpaste.png"),tr("Paste")); connect(copy,SIGNAL(triggered()),this,SLOT(copy_definition())); connect(paste,SIGNAL(triggered()),this,SLOT(paste_word())); connect(ui.Buscar,SIGNAL(clicked()),this,SLOT(buscarClicked())); connect(ui.editConfigureAction,SIGNAL(triggered()),this,SLOT(obrir_configuracio_slot())); connect(ui.editSelectAction,SIGNAL(triggered()),this,SLOT(select_word())); connect(m_cat_eng,SIGNAL(clicked()),this,SLOT(cat_engf())); connect(m_eng_cat,SIGNAL(clicked()),this,SLOT(eng_catf())); connect(ui.fileChangeDictionaryAction,SIGNAL(triggered()),this,SLOT(switchDictionary())); connect(ui.paraula,SIGNAL(returnPressed()),this,SLOT(buscarEnter())); connect(ui.helpAboutAction,SIGNAL(triggered()),this,SLOT(obrir_about())); connect(ui.llistat,SIGNAL(itemDoubleClicked(QListWidgetItem *)),this,SLOT(searchListWord(QListWidgetItem*))); connect(ui.paraula,SIGNAL(textChanged(const QString &)),this,SLOT(paraulaChanged(const QString &))); connect(&m_festival,SIGNAL(errorOccurred(QProcess::ProcessError)),this,SLOT(FestivalError(QProcess::ProcessError))); connect(&m_festival,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(FestivalFinished(int,QProcess::ExitStatus))); connect(ui.definicio,SIGNAL(browserFailed()),this,SLOT(showBrowserError())); carrega_config(1); ui.clipboard->hide(); } void Main::FestivalFinished(int exitStatus,QProcess::ExitStatus) { if (exitStatus!=0) { QString error_message(tr("Festival executed and returned error code: ")+QString::number(exitStatus) + ". " + tr("Please consult the FAQ for help with this issue")); if (m_festival_reading==Auxiliar::catalan()) { error_message += "

"+tr("You probably haven't installed the Catalan dictionary for Festival"); } showError(error_message); } } void Main::FestivalError(QProcess::ProcessError) { showError(tr("Error executing Festival. Please check the FAQ for help with this issue")); } void Main::FestivalExecuteEntry() { QString arguments=""; ui.actiu->hide(); QString selectedText=ui.paraula->selectedText(); if (m_idioma_actiu == Auxiliar::eng2cat()) { //TODO: Auxiliar is setted up incorrectly? arguments="--language catalan"; Auxiliar::debug("Festival in catalan"); m_festival_reading=Auxiliar::catalan(); } else { Auxiliar::debug("Festival in English"); m_festival_reading=Auxiliar::english(); } FestivalExecute(selectedText,arguments); } void Main::FestivalExecuteDefinition() { ui.actiu->hide(); QString selectedText=ui.definicio->getText(); int language = ui.definicio->getLanguage(); QString arguments=""; if ((language == Auxiliar::catalan()) || (language == 3 && m_CurrentUILanguage == 0) || (language == 4 && m_idioma_actiu==Auxiliar::cat2eng()) || (language == 5 && m_idioma_actiu==Auxiliar::eng2cat())) { arguments="--language catalan"; Auxiliar::debug("Festival in catalan"); m_festival_reading=Auxiliar::catalan(); } else { Auxiliar::debug("Festival in English"); m_festival_reading=Auxiliar::english(); } FestivalExecute(selectedText,arguments); } void Main::FestivalExecute(QString text,QString arguments) { QString execute; execute=m_FestivalPath+" --tts "+arguments; Auxiliar::debug("Execute: "+execute); m_festival.start(execute); m_festival.write(qPrintable(text)); Auxiliar::debug("Write to Festival: "+text); m_festival.closeWriteChannel(); } void Main::moveWordList(QEvent *event) { int type = event->type(); int move=0; int newposition=0; if (type == QEvent::User+Auxiliar::KeyDown()) { if (ui.llistat->currentRow()==ui.llistat->count()-1 || ui.llistat->currentRow()==-1) { newposition=0; } else { newposition=ui.llistat->currentRow()+1; } move=1; } else if (type == QEvent::User+Auxiliar::KeyUp()) { if (ui.llistat->currentRow() == 0) { newposition=ui.llistat->count()-1; } else { newposition=ui.llistat->currentRow()-1; } move=1; } else if (type == QEvent::User+Auxiliar::KeyNextPage()) { newposition=ui.llistat->currentRow()+10; if (newposition>ui.llistat->count()-1) { newposition=ui.llistat->count()-1; } move=1; } else if (type == QEvent::User+Auxiliar::KeyPrevPage()) { newposition=ui.llistat->currentRow()-10; if (newposition<0) { newposition=0; } move=1; } if (move) { ui.llistat->setCurrentRow(newposition); } } void Main::moveDefinicio(QEvent *event) { int type = event->type(); int step,pagestep; QScrollBar *bar; bar=ui.definicio->verticalScrollBar(); step=bar->singleStep(); pagestep=bar->pageStep(); if (type == QEvent::User+Auxiliar::KeyDown()) { bar->setSliderPosition(bar->sliderPosition()+step); } else if (type == QEvent::User+Auxiliar::KeyUp()) { bar->setSliderPosition(bar->sliderPosition()-step); } else if (type == QEvent::User+Auxiliar::KeyNextPage()) { bar->setSliderPosition(bar->sliderPosition()+pagestep); } else if (type == QEvent::User+Auxiliar::KeyPrevPage()) { bar->setSliderPosition(bar->sliderPosition()-pagestep); } } bool Main::eventFilter(QObject *, QEvent *event) //obj { int type = event->type(); // Optimitzation: we don't want to do any other operation // if Event is not to move a key if (type!=QEvent::User+Auxiliar::KeyDown() && type!=QEvent::User+Auxiliar::KeyUp() && type!=QEvent::User+Auxiliar::KeyNextPage() && type!=QEvent::User+Auxiliar::KeyPrevPage()) { return false; } if (ui.llistat->isVisible()) { moveWordList(event); } else if (ui.definicio->isVisible()) { moveDefinicio(event); } return true; } void Main::buscarClicked() { buscar(); } void Main::buscarEnter() { if (ui.llistat->isVisible()) { QListWidgetItem *item; item = ui.llistat->currentItem(); if (item!=nullptr) { ui.paraula->setText(item->text()); } } buscar(); } QString Main::getParaula() { return ui.paraula->text(); } void Main::setParaula(QString paraula) { ui.paraula->setText(paraula); } void Main::buscar() { treballaBuscar(); ui.paraula->selectAll(); ui.paraula->setFocus(Qt::OtherFocusReason); } void Main::paraulaChanged(const QString ¶ula) { if (m_Autocomplete==false) { ui.actiu->hide(); return; } bool enabled=false; //Update the list ui.actiu->hide(); ui.definicio->hide(); ui.llistat->clear(); UpdateList(); if (ui.llistat->count()==1) { ui.llistat->setCurrentRow(0); } if (ui.llistat->count()>1 && ui.llistat->item(1)->text()==paraula) { ui.llistat->setCurrentRow(1); } } void lib2class(QString q) { //bridge ((Main*)AuxiliarGUI::m)->AddEntryToGUI(q); } void Main::AddEntryToGUI(QString q) { ui.llistat->insertItem(999999999,q); } void Main::UpdateList() { StructureList handler; handler.setIgnoreCase(m_IgnoreCase); handler.setIgnoreAccents(m_IgnoreAccents); AuxiliarGUI::m=this; void (*ptrFunction)(QString)=nullptr; ptrFunction = lib2class; handler.setAddFunction(ptrFunction); QString search = ui.paraula->text(); handler.setWord(search); char letter; QString idioma; ui.llistat->show(); //prepare the path if (m_idioma_actiu == Auxiliar::eng2cat() ) { idioma="cateng"; } else { idioma="engcat"; } if (!isValidWord(search)) { ui.definicio->setPlainText(""); //not valid input* return; } letter=removeAccents(search); QFile xmlFile(m_directori_usuari+"/"+idioma+"/"+letter+".dic"); if (!xmlFile.exists()) { showError(tr("Cannot open dictionary file. Check configuration directory and permissions")); } else { Auxiliar::debug("File2: "+m_directori_usuari+"/"+idioma+"/"+letter+".dic"); handler.parseFile(xmlFile); WordData d = handler.getWordData(); ui.definicio->setPlainText(""); m_searched=search; selectItem(); } } int Main::getIdiomaActiu() { return m_idioma_actiu; } void Main::setIdiomaActiu(int actiu) { m_idioma_actiu = actiu; posa_idioma(); } void Main::treballaBuscar() { StructureList handler; QString buscar = ui.paraula->text(); QString buscar_orig = ui.paraula->text(); char lletra; QString idioma; //per preparar el path if (m_idioma_actiu== Auxiliar::eng2cat() ) { idioma="cateng"; } else { idioma="engcat"; } if (!isValidWord(buscar)) { showError(tr("You have to write a word. The word has to start with a letter.")); ui.definicio->setPlainText(""); //not valid input } else { //TODO: clean this crazy if-else! lletra=removeAccents(buscar); QFile xmlFile(m_directori_usuari+"/"+idioma+"/"+lletra+".dic"); if (!xmlFile.exists()) { showError(tr("Cannot open dictionary file. Check configuration directory and permissions")); } else { Auxiliar::debug("File: "+m_directori_usuari+"/"+idioma+"/"+lletra+".dic"); // QXmlInputSource source( &xmlFile ); // QXmlSimpleReader reader; // reader.setFeature("http://trolltech.com/xml/features/report-whitespace-only-CharData",false); //if we don't use it, we get more entries because spaces... // reader.setContentHandler( &handler ); // handler.setEntryWanted(buscar_orig); // reader.parse(source); handler.setEntryWanted(buscar_orig); handler.parseFile(xmlFile); WordData d = handler.getWordData(); // WordData d; ui.definicio->setPlainText(""); if (d.found()) { ui.definicio->show(); ui.llistat->hide(); QString definicio = d.getHTMLEntry(); ui.definicio->setHtml(definicio); } else { //No word found or buscar == 1: we show the list ui.definicio->setPlainText(""); ui.definicio->hide(); ui.llistat->show(); //loadList(&handler); m_searched=buscar_orig; selectItem(); if (!d.found()) { showError(tr("Exact match not found")); } } } } } void Main::posarApunt (int all) { ui.llistat->clear(); ui.llistat->hide(); ui.definicio->show(); if (all) { ui.paraula->setText(""); } ui.definicio->setPlainText(""); ui.actiu->hide(); ui.actiu->setText(""); ui.paraula->selectAll(); ui.paraula->setFocus(); } int Main::isValidWord(QString &q) { //We transform the word to not-capital //We check that first letter is a letter //We delete space before word q=q.toLower(); q=q.trimmed(); Auxiliar::debug("isValidWord: _"+q+"_"); //first=q.at(0); return (q.length()>0 && q.at(0).isLetter()); } char Main::removeAccents(const QString& q) { QChar c = q.at(0); if (c==u'à' || c==u'á' || c==u'â' || c==u'ä') return 'a'; if (c==u'è' || c==u'é' || c==u'ê' || c==u'ë') return 'e'; if (c==u'ì' || c==u'í' || c==u'î' || c==u'ï') return 'i'; if (c==u'ò' || c==u'ó' || c==u'ô' || c==u'ö') return 'o'; if (c==u'ù' || c==u'ú' || c==u'û' || c==u'ü') return 'u'; if (q.at(0)==u'ç') return 'c'; return (c.toLatin1()); } void Main::selectItem() { QListWidgetItem *item; //Si és, és a la fila 0 item = ui.llistat->item(0); if (item!=nullptr) { if (item->text().compare(m_searched)==0) { ui.llistat->setCurrentRow(0); } } } void Main::obrir_configuracio_slot() { obrir_configuracio_worker(false); } void Main::obrir_configuracio() { obrir_configuracio_worker(true); } void Main::obrir_configuracio_worker(bool first) { Configure *c = new Configure; c->carregar_config(); c->setFirst(first); c->exec(); delete c; carrega_config(0); } void Main::obrir_about() { About *a = new About; a->exec(); delete a; } void Main::carrega_config(int ) { QSettings qs("dacco","qdacco"); QString browser; QString version; m_directori_usuari = qs.value("/dacco/directori","").toString(); version = qs.value("/dacco/version","0").toString(); if (version!="0.8") { //TODO: change to program constant //We will open the same settings file with read and then write mode //be careful! QMessageBox::information( this, "qdacco",tr("There is no configuration or old configuration. A configuration dialog will now open")); obrir_configuracio(); carrega_config(1); //correct but little recursive rare call } else { m_idioma_actiu = qs.value("/dacco/diccionari_per_defecte",1).toInt(); browser = qs.value("/dacco/browser","").toString(); m_IgnoreCase = qs.value("/dacco/ignore_case","").toBool(); m_IgnoreAccents = qs.value("/dacco/ignore_accents","").toBool(); m_FestivalPath = qs.value("/dacco/festival","").toString(); m_CurrentUILanguage = qs.value("/dacco/idioma_per_defecte",1).toInt(); m_Autocomplete = qs.value("/dacco/autocomplete",1).toBool(); ui.definicio->setFestivalEnable(m_FestivalPath!=""); ui.paraula->setFestivalEnable(m_FestivalPath!=""); ui.definicio->setBrowser(browser); Auxiliar::debug("Load config"); Auxiliar::debug("Directory: "+m_directori_usuari); posa_idioma(); } } void Main::cat_engf() { m_idioma_actiu = Auxiliar::eng2cat() ; posa_idioma(); } void Main::eng_catf() { m_idioma_actiu= Auxiliar::cat2eng() ; posa_idioma(); } void Main::posa_idioma() { posarApunt(0); if (m_idioma_actiu== Auxiliar::eng2cat() ) { m_cat_eng->setChecked(true); m_eng_cat->setChecked(false); } else { m_eng_cat->setChecked(true); m_cat_eng->setChecked(false); } } void Main::switchDictionary() { if (m_idioma_actiu== Auxiliar::eng2cat() ) { m_idioma_actiu=Auxiliar::cat2eng(); } else { m_idioma_actiu= Auxiliar::eng2cat() ; } posa_idioma(); posarApunt(0); paraulaChanged(ui.paraula->text()); } void Main::copy_definition() { QClipboard *clip = QApplication::clipboard(); clip ->setText("PROVA DE PORTAPAPERS\n"); ui.clipboard->setHtml(ui.paraula->text()+"

"+ui.definicio->toHtml()); ui.clipboard->selectAll(); ui.clipboard->copy(); } void Main::paste_word() { QClipboard *clip = QApplication::clipboard(); QString text = clip->text(); ui.paraula->setText(text); treballaBuscar(); } void Main::select_word() { ui.paraula->selectAll(); ui.paraula->setFocus(); } void Main::searchListWord(QListWidgetItem *a) { ui.paraula->setText(a->text()); treballaBuscar(); } void Main::showError(QString text) { ui.actiu->setText("

"+text+"
"); ui.actiu->show(); } void Main::showBrowserError() { showError(tr("Error executing browser. Please check the FAQ for help with this issue")); } void Main::showMessage(QString text) { ui.actiu->setText("
"+text+"
"); ui.actiu->show(); } void Main::restaura() { setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); this->show(); this->setFocus(Qt::ShortcutFocusReason); this->show(); } void Main::quit() { // This is not the usual way to exit a Qt application! exit(0); } qdacco-1.2.4/gui/main.h000066400000000000000000000060111477201047300146340ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2009, 2011, 2015, 2021 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef MAIN_H #define MAIN_H #include #include #include #include #include #include #include #include "ui_main.h" class HTTPConnection; // TODO: prepare a different objects for, at least, networking and festival class Main : public QMainWindow, Ui::Main { Q_OBJECT public: Main(QWidget *parent = 0); int UpdateList(QString &q); void AddEntryToGUI(QString); void restaura(); void quit(); ///// QString getParaula(); void setParaula(QString paraula); int getIdiomaActiu(); void setIdiomaActiu(int actiu); void buscar(); private: HTTPConnection *m_http; QProcess m_festival; Ui::Main ui; int m_idioma_actiu; int m_festival_reading; QString m_directori_usuari; QString m_searched; QToolButton *m_cat_eng; QToolButton *m_eng_cat; //TODO: prepare a config structure bool m_IgnoreCase; bool m_IgnoreAccents; bool m_CurrentUILanguage; bool m_Autocomplete; QString m_FestivalPath; void treballaBuscar(); void posarApunt(); int isValidWord(QString &q); void posarApunt(int all); char removeAccents(const QString &q); void selectItem(); void carrega_config(int all); void obrir_configuracio(); void obrir_configuracio_worker(bool first); void posa_idioma(); void showError(QString text); void showMessage(QString text); void FestivalExecute(QString text,QString arguments); void moveWordList(QEvent *event); void moveDefinicio(QEvent *event); private Q_SLOTS: void buscarEnter(); void buscarClicked(); void paraulaChanged(const QString &text); void obrir_configuracio_slot(); void obrir_about(); void cat_engf(); void eng_catf(); void switchDictionary(); void copy_definition(); void paste_word(); void select_word(); void searchListWord(QListWidgetItem *a); void UpdateList(); void showBrowserError(); public Q_SLOTS: void FestivalExecuteEntry(); void FestivalExecuteDefinition(); void FestivalError(QProcess::ProcessError e); void FestivalFinished(int statusEvent,QProcess::ExitStatus e); protected: bool eventFilter(QObject *obj, QEvent *event); }; #endif qdacco-1.2.4/gui/main.ui000066400000000000000000000244561477201047300150370ustar00rootroot00000000000000 Main 0 0 270 200 0 0 200 200 qdacco :/icons/qdacco.png:/icons/qdacco.png 9 9 9 9 6 6 0 0 0 0 6 0 0 0 0 Qt::StrongFocus 0 0 Qt::StrongFocus &Search Ctrl+F false true true 0 0 100 20 true 0 0 Qt::Horizontal TopToolBarArea false 0 0 270 20 &Help &File &Edit :/icons/editcopy.png:/icons/editcopy.png &Copy &Copy Copy Ctrl+C :/icons/qdacco.png:/icons/qdacco.png &About qdacco... &About qdacco About editConfigure :/icons/exit.png:/icons/exit.png &Quit &Quit Quit Ctrl+W :/icons/configure.png:/icons/configure.png &Preferences... &Configure Configure Change language Change language Change dictionary Change dictionary :/icons/switch2.png:/icons/switch2.png Change &dictionary Change &dictionary Change dictionary Ctrl+D :/icons/editpaste.png:/icons/editpaste.png &Paste &Paste Ctrl+V &Select word Ctrl+L Qt::ApplicationShortcut TextBrowser QWidget
TextBrowser.h
1
LineEdit QLineEdit
LineEdit.h
ListWidget QListWidget
ListWidget.h
paraula Buscar definicio llistat editQuitAction triggered() Main close() -1 -1 20 20
qdacco-1.2.4/gui/qdacco.cpp000066400000000000000000000064771477201047300155150ustar00rootroot00000000000000/* * qdacco: offline Dacco Catalan <-> English dictionary * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015 Carles Pina i Estany * * 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; version 2 or any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. */ #include #include #include #include #include #include "AuxiliarGUI.h" #include "Configure.h" #include "LoadConfig.h" #include "main.h" #include "OneInstance.h" #include "TrayIcon.h" //qdaccolib #include int main(int argc, char **argv) { QApplication app(argc, argv); if (argc>1 && strcmp(argv[1],"-d")==0) { qDebug() << "Debug enabled"; Auxiliar::setDebug(1); } else { Auxiliar::setDebug(0); } if (argc>1 && strcmp(argv[1],"-d")!=0) { qDebug() << "qdacco use:"; qDebug() << "qdacco -d: to enable debug mode"; qDebug() << "Just qdacco to just use qdacco"; exit(1); } std::cout << qPrintable(QString("qdacco %1 Copyright (C) %2 Carles Pina i Estany").arg(AuxiliarGUI::getVersion()).arg(AuxiliarGUI::getCopyrightDate())) << std::endl; std::cout << "This program comes with ABSOLUTELY NO WARRANTY" << std::endl; std::cout << "This is free software, and you are welcome to redistribute it" << std::endl; std::cout << "under certain conditions" << std::endl; std::cout << "Software: GPL v3. Data: LGPL" << std::endl; QSettings qs("dacco","qdacco"); int idioma = qs.value("/dacco/idioma_per_defecte",1).toInt(); QTranslator translator; if (idioma==0) { if (translator.load(":/qdacco_ca.qm")) { app.installTranslator(&translator); } } if (idioma==1) { //default language, don't change anything } if (idioma==2) { QLocale a; QString locale=a.name(); if (locale.startsWith("ca")) { qs.setValue("/dacco/idioma_per_defecte",1); if (translator.load(":/qdacco_ca.qm")) { app.installTranslator(&translator); } } } // Debug info if (Auxiliar::isWindows()) { Auxiliar::debug("isWindows: true"); } else { Auxiliar::debug("isWindows: false"); } if (Auxiliar::isMac()) { Auxiliar::debug("isMac: true"); } else { Auxiliar::debug("isMac: false"); } // End of debug info qs.sync(); LoadConfig loadconfig; OneInstance myOneInstance; int single = loadconfig.getSingleInstance(); if (single==1) { bool otherinstance = myOneInstance.isAnotherInstance(); if (otherinstance) { myOneInstance.sendRestore(); qDebug() << "qdacco already running, restoring otherinstance"; exit(1); } TrayIcon *trayicon = new TrayIcon; trayicon->SetOneInstance(&myOneInstance); } myOneInstance.registerInstance(); int ret = app.exec(); return ret; } qdacco-1.2.4/gui/qdacco.qc000066400000000000000000000001051477201047300153140ustar00rootroot00000000000000 qdacco qdacco.pro qdacco-1.2.4/gui/qdacco_ca.qm000066400000000000000000000501741477201047300160040ustar00rootroot00000000000000~*|G(G:H-AJ6)JFpJRIV[F+V?DHWn^>7xţ29* !K1).f-\.AzK eH .0GGS3}I7b)N.*<<<<==08%E9F8Ϧ<:LDvs|ER1[ /LBId*>xF_ذJ,+E9 :DzyDeFy;:.+$49 Xc;M h>1q n-p zn >- D G , 5=O O L dC C~ 0Ki z+| J@ QD> ZJQ 9 JLEg M- =ID 9/ E%p?@ N0. 6 GeE 7 +,D/ +GU>Q@)x3@$./fC0IiL<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:14pt;"><br /></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Moltes grcies a:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Jordi Pina: Suport grfic</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Leopold Palomo-Avellaneda: transici a cmake</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">I molta altra gent pel seu suport.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Suggerncies, pegats, idees, etc. a </span><a href="https://github.com/cpina/qdacco "><span style=" text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco </span></a><span style=" font-size:10pt;">or </span><a href="mailto:carles@pina.cat"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html>V


Many thanks to:

Jordi Pina: Graphical support

Leopold Palomo-Avellaneda: cmake transition

and many other people for their support.

Suggestions, patches, ideas, etc. in https://github.com/cpina/qdacco or carles@pina.cat

About <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Aplicaci per a utilitzar el diccionari DACCO sense connexi.</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Pgina DACCO: </span><a href="http://www.catalandictionary.org"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; text-decoration: underline; color:#0000ff;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Pgina qdacco: </span><a href="https://github.com/cpina/qdacco"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco</span></a></p></body></html>;

Application for using the DACCO dictionary offline.


DACCO homepage: http://www.catalandictionary.org


qdacco homepage: https://github.com/cpina/qdacco

AboutQuant aAboutAboutSobre qdacco About qdaccoAbout AutorAuthorAboutPCarles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2017, 2020About TancaCloseAboutLlicnciaLicenseAboutqdacco 0.8.1 qdacco 0.8.1Aboutqdacco t llicncia GPL 3.0. El diccionari DACCO t llicncia LGPL versi 2.1.Jqdacco is GPL 3.0 licensed. DACCO dictionary is LGPL version 2.1 licensed.Aboutversi qdacco:qdacco version:About@&Diferencia majscula/minscula: &Match case: Configure>&Llengua d'interfcie d'usuari:&User interface language: Configure... Configure&Autocompletar:A&utocomplete: ConfigureAvanadaAdvanced Configure BsicaBasic ConfigureNavegador:Browser: Configure CatalCatalan ConfigureCatal ! AnglsCatalan → English Configure.Diccionari per omissi:Default dictionary: Configure2Directori del diccionari:Dictionary directory: Configure AnglsEnglish ConfigureAngls ! CatalEnglish → Catalan Configure>Festival (sintetizador de veu):Festival (speech synthesis): Configure0&Ignorar els diacrtics:I&gnore diacritics: ConfigureSi est activat i es crida un nou qdacco es restaurar l'existent i apareix al trayicon^If enabled launching a new qdacco will restore the existing one and be displayed as a trayicon ConfigureInformaci Information ConfigureCam del directory "dictionaries" a DACCO. Cont els directoris "cateng" i "engcat"\Path of the "dictionaries" directory in DACCO. It contains "cateng" and "engcat" directories ConfigureCam o nom de l'executable del navegador que ser usat per obrir enllaos a les entradesNPath or executable name of the browser to be used for opening links in entries ConfigureCam o nom de l'executable del sintetitzador de veu "festival". Es pot installar amb el gestor de paquets o des de la pgina Web de Festival: <A HREF="http://www.cstr.ed.ac.uk/projects/festival/">http://www.cstr.ed.ac.uk/projects/festival/</A>Path or executable name to "festival" speech synthesis system. Install it via your package manager or from the Festival webpage: http://www.cstr.ed.ac.uk/projects/festival/ ConfigurePreferncies Preferences Configure Instncia nica:Single instance: Configure LlegirReadLineEdit&Quant a qdacco &About qdaccoMain &Sobre qdacco...&About qdacco...Main&Configura &ConfigureMain &Copia&CopyMain E&dita&EditMain&Fitxer&FileMain A&juda&HelpMain&Enganxa&PasteMain &Preferncies...&Preferences...Main &Surt&QuitMain Ce&rca&SearchMain(&Seleccionar paraula &Select wordMainQuant aAboutMainNo es pot obrir el diccionari. Comproveu el directori i els permisos del diccionariJCannot open dictionary file. Check configuration directory and permissionsMain*Canvia el &diccionariChange &dictionaryMain(Canvia el diccionariChange dictionaryMainCanvia l'idiomaChange languageMainConfigura ConfigureMain CopiaCopyMainCtrl+CMainCtrl+DMainCtrl+FMainCtrl+LMainCtrl+VMainCtrl+WMain`Error executant Festival. Mireu el FAQ per ajudaGError executing Festival. Please check the FAQ for help with this issueMainhError executant el navegador. Mireu el FAQ per ajudaFError executing browser. Please check the FAQ for help with this issueMain<Coincidncia exacte no trobadaExact match not foundMaintFestival ha estat executat i ha retornat el codi d'error: +Festival executed and returned error code: MainEnganxaPasteMainBConsulteu les PUF per a ms ajuda/Please consult the FAQ for help with this issueMainSurtQuitMainNo hi ha configuraci o s massa vella. S'obrir el dileg de configuraciTThere is no configuration or old configuration. A configuration dialog will now openMainHeu d'escriure una paraula. La paraula ha de comenar amb una lletra.>You have to write a word. The word has to start with a letter.MainnProbablement no teniu el diccionari catal per FestivalBYou probably haven't installed the Catalan dictionary for FestivalMaincat ! ang cat → engMain editConfigureMainang ! cat eng → catMainqdaccoMainAcrnim catalCatalan acronymQObject Errors habitualsCommon mistakesQObjectAcrnim anglsEnglish acronymQObjectExempleExampleQObject FemenFemaleQObjectFemen plural Female pluralQObjectNotaNoteQObjectFotoPictureQObject PluralPluralQObjectSinnimsSynonymsQObject abbrevabbrevQObjectacrnimacronymQObjectadjadjQObjectadvadvQObjectacrnim catalcatalan acronymQObjectconjconjQObjectdetdetQObjectacrnim anglsenglish acronymQObjectexclexclQObject errormistakeQObjectnnQObjectphrasal verb phrasal verbQObjectprepprepQObjectpronpronQObjectvvQObjecttemps verbal verb tenseQObject*Exemple(s) catalans: Catalan example(s):  TextBrowser"Notes catalanes: Catalan notes:  TextBrowser*Exemple(s) anglesos: English example(s):  TextBrowser Notes angleses: English notes:  TextBrowserExemple(s):  Example(s):  TextBrowserPlural femen: Female Plural:  TextBrowserFlickr: Flickr:  TextBrowser Foto:  Picture:  TextBrowserPlural: Plural:  TextBrowser LlegirRead TextBrowserSinnim(s):  Synonym(s):  TextBrowser AmagaHideTrayIconAbandonaQuitTrayIcon MostraShowTrayIconqdacco-1.2.4/gui/qdacco_ca.ts000066400000000000000000001427571477201047300160260ustar00rootroot00000000000000 About About qdacco Sobre qdacco Close Tanca About Quant a qdacco 0.8.1 qdacco 0.8.1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Application for using the DACCO dictionary offline.</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">DACCO homepage: </span><a href="http://www.catalandictionary.org"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; text-decoration: underline; color:#0000ff;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">qdacco homepage: </span><a href="https://github.com/cpina/qdacco"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco</span></a></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Aplicació per a utilitzar el diccionari DACCO sense connexió.</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Pàgina DACCO: </span><a href="http://www.catalandictionary.org"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; text-decoration: underline; color:#0000ff;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Pàgina qdacco: </span><a href="https://github.com/cpina/qdacco"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco</span></a></p></body></html> Carles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2017, 2020 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:14pt;"><br /></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Many thanks to:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Jordi Pina: Graphical support</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Leopold Palomo-Avellaneda: cmake transition</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">and many other people for their support.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Suggestions, patches, ideas, etc. in </span><a href="https://github.com/cpina/qdacco "><span style=" text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco </span></a><span style=" font-size:10pt;">or </span><a href="mailto:carles@pina.cat"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:14pt;"><br /></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Many thanks to:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Jordi Pina: Graphical support</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Leopold Palomo-Avellaneda: cmake transition</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">and many other people for their support.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Suggestions, patches, ideas, etc. to </span><a href="mailto:carles@pina.cat"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:14pt;"><br /></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Moltes gràcies a:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Jordi Pina: Suport gràfic</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Leopold Palomo-Avellaneda: transició a cmake</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">I molta altra gent pel seu suport.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Suggerències, pegats, idees, etc. a </span><a href="https://github.com/cpina/qdacco "><span style=" text-decoration: underline; color:#0000ff;">https://github.com/cpina/qdacco </span></a><span style=" font-size:10pt;">or </span><a href="mailto:carles@pina.cat"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html> qdacco is GPL 3.0 licensed. DACCO dictionary is LGPL version 2.1 licensed. qdacco té llicència GPL 3.0. El diccionari DACCO té llicència LGPL versió 2.1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://www.catalandictionary.org/eng/?q=node/40"><span style=" font-size:10pt; text-decoration: underline; color:#0057ae;">http://www.catalandictionary.org/eng/?q=node/40</span></a></p> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:11pt; text-decoration: underline; color:#0057ae;"></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">Application for searching the Dacco dictionary offline.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">You can find Dacco at </span><a href="http://www.catalandictionary.org"><span style=" font-size:11pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://www.catalandictionary.org/eng/?q=node/40"><span style=" text-decoration: underline; color:#0057ae;">http://www.catalandictionary.org/eng/?q=node/40</span></a></p> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0057ae;"></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Application for searching the Dacco dictionary offline.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">You can find Dacco at </span><a href="http://www.catalandictionary.org"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://www.catalandictionary.org/eng/?q=node/40"><span style=" text-decoration: underline; color:#0057ae;">http://www.catalandictionary.org/eng/?q=node/40</span></a></p> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0057ae;"></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Aplicació per buscar a Dacco sense connexió.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Podeu trobar Dacco a: </span><a href="http://www.catalandictionary.org"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">http://www.catalandictionary.org</span></a></p></body></html> Author Autor <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Many thanks to:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Jordi Pina: Graphical support,</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Leopold Palomo-Avellaneda: cmake transition</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">and many other people for their support.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Suggestions, patches, ideas, etc. to </span><a href="mailto:carles@pina.cat"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Moltes gràcies a:</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Jordi Pina: gràfics,</span></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Leopold Palomo-Avellaneda: transició a cmake</span></p> <p align="center" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">i altres pel seu suport i ajuda.</span></p> <p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt;">Suggerències, pegats, idees, etc. a </span><a href="mailto:carles@pina.cat"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">carles@pina.cat</span></a></p></body></html> License Llicència Program is GPL 3.0 licensed. Data is LGPL licensed. Programa llicenciat amb GPL 3.0 Dades llicenciades amb LGPL. qdacco version: versió qdacco: Configure Configure Configura Preferences Preferències Basic Bàsica Default dictionary: Diccionari per omissió: Catalan → English Català → Anglès English → Catalan Anglès → Català &User interface language: &Llengua d'interfície d'usuari: I&gnore diacritics: &Ignorar els diacrítics: &Match case: &Diferencia majúscula/minúscula: Festival (speech synthesis): Festival (sintetizador de veu): A&utocomplete: &Autocompletar: Catalan->English Català->Anglès English->Catalan Anglès->Català Default language: Idioma per omissió: Catalan Català English Anglès Ignore accents: Ignorar accents: Match case: Distingeix majúscules: Name: Nom: If you send some suggestions or bug reports to Dacco, we will know your name. This is not compulsory Si envieu suggerències o reportes errades a Dacco sabrem el vostre nom. No és obligatori E-Mail: Correu electrònic: If you send some suggestions or bug reports to Dacco, we will know your e-mail. This is not compulsory Si envieu suggerències o reportes errades a Dacco sabrem el teu correu electrònic. No és obligatori Advanced Avançada Dictionary directory: Directori del diccionari: Select the dictionaries directory on your system Seleccioneu el directori "dictionaries" del vostre sistema ... Browser: Navegador: Festival executable: Executable Festival: Autocomplete: Autocompletar: Single instance: Instància única: Information Informació Path of the "dictionaries" directory in DACCO. It contains "cateng" and "engcat" directories Camí del directory "dictionaries" a DACCO. Conté els directoris "cateng" i "engcat" Path or executable name of the browser to be used for opening links in entries Camí o nom de l'executable del navegador que serà usat per obrir enllaços a les entrades Path or executable name to "festival" speech synthesis system. Install it via your package manager or from the Festival webpage: <A HREF="http://www.cstr.ed.ac.uk/projects/festival/">http://www.cstr.ed.ac.uk/projects/festival/</A> Camí o nom de l'executable del sintetitzador de veu "festival". Es pot instal·lar amb el gestor de paquets o des de la pàgina Web de Festival: <A HREF="http://www.cstr.ed.ac.uk/projects/festival/">http://www.cstr.ed.ac.uk/projects/festival/</A> If enabled launching a new qdacco will restore the existing one and be displayed as a trayicon Si està activat i es crida un nou qdacco es restaurarà l'existent i apareix al trayicon You should select the "dictionaries" directory and click "Open" Haurieu de seleccionar el directori "dictionaries" i fer clic a "Obrir" Some entries has links (e.g. to photos). Select which browser do you want to use Algunes entrades tenen enllaços (per exemple fotos). Seleccioneu el navegador que voleu utilitzar You can produce a synthesised pronunciation of your query results with qdacco. To use this feature you must have Festival installed on your system.<P>Festival webpage: <A HREF="http://www.cstr.ed.ac.uk/projects/festival/">http://www.cstr.ed.ac.uk/projects/festival/</A> Podeu produir una pronunciació sintetitzada pels resultats de qdacco. Per utilitzar aquesta característica cal tenir instal·lat Festival al vostre sistema. <P>Pàgina Web de festival: <A HREF="http://www.cstr.ed.ac.uk/projects/festival/">http://www.cstr.ed.ac.uk/projects/festival/</A> Enabling: you will have a trayicon next to the clock and only want qdacco will be running all the time. If you launch a new one it will bring to the foreground the old one. Disabling: you will not have a trayicon, and every time that you launch a new qdacco you will have a new qdacco instance. Activat: tindreu una icona al costat del rellotge i només un qdacco s'executarà a la vegada. Si executeu un nou qdacco, l'anterior serà portat a primer pla. Desactivat: no tindreu cap icona al costat del rellotge, i cada vegada que executeu un nou qdacco en tindreu una instància nova. LineEdit Read Llegir Main qdacco &Search Ce&rca Ctrl+F &Help A&juda &File &Fitxer &Edit E&dita &Copy &Copia Copy Copia Ctrl+C &About qdacco... &Sobre qdacco... &About qdacco &Quant a qdacco About Quant a editConfigure &Quit &Surt Quit Surt Ctrl+W &Preferences... &Preferències... &Configure &Configura Configure Configura Change language Canvia l'idioma Change dictionary Canvia el diccionari Change &dictionary Canvia el &diccionari Ctrl+D &Paste &Enganxa Ctrl+V &Select word &Seleccionar paraula Select word Selecciona paraula Ctrl+L Report as new entry Suggereix com a nova entrada cat->eng cat->ang eng->cat ang->cat cat → eng cat → ang eng → cat ang → cat Paste Enganxa Festival executed and returned error code: Festival ha estat executat i ha retornat el codi d'error: Please consult the FAQ for help with this issue Consulteu les PUF per a més ajuda You probably haven't installed the Catalan dictionary for Festival Probablement no teniu el diccionari català per Festival Error executing Festival. Please check the FAQ for help with this issue Error executant Festival. Mireu el FAQ per ajuda Error executing browser. Please check the FAQ for help with this issue Error executant el navegador. Mireu el FAQ per ajuda Error executing Festival. Please consult the FAQ for help with this issue Error executant Festival. Si us plau, consulteu les PUF per ajuda en aquesta incidència Error executing browser. Please consult the FAQ for help with this issue Error executant el navegador. Si us plau, consulteu les PUF per ajuda en aquesta incidència Cannot open dictionary file. Check configuration directory and permissions No es pot obrir el diccionari. Comproveu el directori i els permisos del diccionari You have to write a word. The word has to start with a letter. Heu d'escriure una paraula. La paraula ha de començar amb una lletra. Exact match not found Coincidència exacte no trobada Send comment(s) Envia comentari(s) There is no configuration or old configuration. A configuration dialog will now open No hi ha configuració o és massa vella. S'obrirà el diàleg de configuració Sending... Enviant... You must type something Heu d'escriure quelcom Action cancelled Acció cancelada Correctly sent! Correctament enviat! Problem sending: Problema enviant: MyLineEdit Read Llegir QObject v v n n adj adj adv adv pron pron excl excl abbrev abbrev prep prep phrasal verb phrasal verb verb tense temps verbal mistake error conj conj det det acronym acrònim catalan acronym acrònim català english acronym acrònim anglès Common mistakes Errors habituals Plural Plural Female Femení Female plural Femení plural Catalan acronym Acrònim català English acronym Acrònim anglès Synonyms Sinònims Example Exemple Note Nota Picture Foto Suggeriment Send comment(s) Envia comentari(s) Add/correct usage notes Afegeix/corregeix notes d'ús Word Paraula Add/correct translation Afegeix/corregeix traducció Add/correct usage examples Afegeix/corregeix exemples d'ús TextBrowser Read Llegir Catalan example(s): Exemple(s) catalans: English example(s): Exemple(s) anglesos: English notes: Notes angleses: Catalan notes: Notes catalanes: Example(s): Exemple(s): Synonym(s): Sinònim(s): Plural: Plural: Female Plural: Plural femení: Picture: Foto: Flickr: Flickr: TrayIcon Hide Amaga Show Mostra Quit Abandona qdacco-1.2.4/gui/translation.qrc000066400000000000000000000001341477201047300166040ustar00rootroot00000000000000 qdacco_ca.qm qdacco-1.2.4/misc/000077500000000000000000000000001477201047300137105ustar00rootroot00000000000000qdacco-1.2.4/misc/qdacco.desktop000066400000000000000000000006551477201047300165430ustar00rootroot00000000000000[Desktop Entry] Type=Application Name=qdacco dictionary Name[ca]=Diccionari qdacco GenericName=Catalan - English Dictionary GenericName[ca]=Diccionari català - anglès Comment=Search words in a Catalan - English dictionary Comment[ca]=Cerca paraules en un diccionari català - anglès Icon=/usr/share/qdacco/qdacco.png Exec=qdacco Terminal=false Categories=Utility;Dictionary;Translation Keywords=Utility;Dictionary;Translation qdacco-1.2.4/nongui/000077500000000000000000000000001477201047300142545ustar00rootroot00000000000000qdacco-1.2.4/nongui/Auxiliar.cpp000066400000000000000000000056131477201047300165430ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2011, 2015, 2021, 2023 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include #include "Auxiliar.h" //Variables to adjust int Auxiliar::debugLevel=1; QString Auxiliar::version = "0.7.0"; QString Auxiliar::dictionaries_directory = "/usr/share/dacco-common/dictionaries"; QString Auxiliar::copyright_date = "2005, 2006, 2007, 2008, 2009, 2011"; QString Auxiliar::getDictionariesDirectory() { return dictionaries_directory; } QString Auxiliar::getVersion() { return version; } QString Auxiliar::getNetVersion() { QString ret; if (isWindows()) { ret=version+"W"; } else { ret=version+"U"; } return ret; } QString Auxiliar::getCopyrightDate() { return copyright_date; } void Auxiliar::setDebug(int i) { debugLevel=i; } int Auxiliar::getDebug() { return debugLevel; } void Auxiliar::debug(QString s) { if (debugLevel) { qDebug() << "Debug: " << s; } } int Auxiliar::KeyDown() { return 0; } int Auxiliar::KeyUp() { return 1; } int Auxiliar::KeyNextPage() { return 2; } int Auxiliar::KeyPrevPage() { return 3; } int Auxiliar::eng2cat() { return 1; } int Auxiliar::cat2eng() { return 2; } int Auxiliar::catalan() { return 1; } int Auxiliar::english() { return 2; } bool Auxiliar::isWindows() { //is it not possible to know in run time?? ¿? #if defined(Q_OS_WIN32) return true; #else return false; #endif } bool Auxiliar::isMac() { //is it not possible to know in run time?? ¿? #if defined(Q_OS_MAC) return true; #else return false; #endif } bool Auxiliar::isUnix() { //bad aproximation :-D return (!Auxiliar::isWindows() && !Auxiliar::isMac()); } char Auxiliar::lletra_buscar(QString q) { QChar c = q.at(0); if (c==u'à' || c==u'á' || c==u'â' || c==u'ä') return 'a'; if (c==u'è' || c==u'é' || c==u'ê' || c==u'ë') return 'e'; if (c==u'ì' || c==u'í' || c==u'î' || c==u'ï') return 'i'; if (c==u'ò' || c==u'ó' || c==u'ô' || c==u'ö') return 'o'; if (c==u'ù' || c==u'ú' || c==u'û' || c==u'ü') return 'u'; if (c==u'ç') return 'c'; c = c.toLower(); return (c.toLatin1()); } qdacco-1.2.4/nongui/Auxiliar.h000066400000000000000000000033111477201047300162010ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef AUXILIAR_H #define AUXILIAR_H #include class Auxiliar { private: static QString version; static int debugLevel; static QString host; static QString url; static QString dictionaries_directory; static QString copyright_date; public: static QString getVersion(); static QString getNetVersion(); static QString getHost(); static QString getURL(); static QString getDictionariesDirectory(); static QString getCopyrightDate(); static int catalan(); static int english(); static void setDebug(int i); static int getDebug(); static void debug(QString s); static int eng2cat(); static int cat2eng(); static int KeyDown(); static int KeyUp(); static int KeyNextPage(); static int KeyPrevPage(); static bool isWindows(); static bool isMac(); static bool isUnix(); static char lletra_buscar(QString q); }; #endif qdacco-1.2.4/nongui/CMakeLists.txt000066400000000000000000000036021477201047300170150ustar00rootroot00000000000000#qdaccolib SET( QDACCO_LIB_VERSION 0.7.0 ) #qdaccolib needs QtXml set(QT_USE_QTXML true) set(QT_DONT_USE_QTNETWORK true) set(QT_DONT_USE_QTGUI true) STRING( REGEX MATCHALL "[0-9]+" QDACCO_LIB_VERSIONS ${QDACCO_LIB_VERSION} ) LIST( GET QDACCO_LIB_VERSIONS 0 QDACCO_LIB_VERSION_MAJOR) LIST( GET QDACCO_LIB_VERSIONS 1 QDACCO_LIB_VERSION_MINOR) LIST( GET QDACCO_LIB_VERSIONS 2 QDACCO_LIB_VERSION_PATCH) INCLUDE(${QT_USE_FILE}) set(qdaccolib_SRCS Auxiliar.cpp StructureList.cpp WordData.cpp) set(qdacco_HDRS qdacco/Auxiliar.h qdacco/StructureList.h qdacco/WordData.h) set(qdaccolib_MOCS) #not moc'ed #Auxiliar.h StructureList.h StructureParser.h WordData.h #set(qdaccolib_RCCS ../../qdaccolib.qrc) #set(qdaccolib_UIS ) include_directories( ${QT_INCLUDE_DIR} ${QT_QTXML_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/core/ ${CMAKE_CURRENT_BINARY_DIR}/core/) # generate rules for building source files from the resources #QT4_WRAP_UI(qdaccolib_UIS_H ${qdaccolib_UIS}) QT5_WRAP_CPP(qdaccolib_MOC_SRCS ${qdaccolib_MOCS}) #QT4_ADD_RESOURCES(qdaccolib_RCC_SRCS ${qdaccolib_RCCS}) # generate rules for building source files that moc generates #ADD_DEFINITIONS(${QT_DEFINITIONS}) ADD_DEFINITIONS(-DQT_SHARED) # build sources, moc'd sources, and rcc'd sources add_library(qdaccolib SHARED ${qdaccolib_MOC_SRCS} ${qdaccolib_UIS_H} ${qdaccolib_SRCS} ${qdaccolib_MOCS} ${qdaccolib_RCC_SRCS}) set_target_properties( qdaccolib PROPERTIES SOVERSION "${QDACCO_LIB_VERSION_MAJOR}.${QDACCO_LIB_VERSION_MINOR}" VERSION "${QDACCO_LIB_VERSION}") #Remember to correct this to have a libqdacco # OUTPUT_NAME qdacco ) set(QT_LIBRARIES ${Qt5Xml_LIBRARIES}) message(VERBOSE ************** QT_LIBRARIES ${QT_LIBRARIES}) target_link_libraries( qdaccolib ${QT_LIBRARIES}) install_targets(/lib qdaccolib) install (FILES ${qdacco_HDRS} DESTINATION include/qdacco) qdacco-1.2.4/nongui/StructureList.cpp000066400000000000000000000230351477201047300176170ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2015, 2020, 2021, 2023-2025 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include #include static QStringList exampleElements = {"example", "catexamp", "engexamp"}; static QStringList noteElements = {"catnote", "engnote"}; StructureList::StructureList() { m_addEntry = nullptr; m_entryWanted = QString(); m_inSearchedWord = false; } void StructureList::setEntryWanted(const QString& entryWanted) { m_entryWanted = entryWanted; } void StructureList::parseFile(QFile& xmlFile) { // Open the file, parse it. Search for m_word. Call m_addEntry xmlFile.open(QIODevice::ReadOnly); m_word_normalized=normalize(m_word); QXmlStreamReader reader(&xmlFile); while (!reader.isEndDocument() && !reader.hasError()) { if (reader.isStartElement()) { startElement(reader); } if (reader.isCharacters()) { characters(reader); } if (reader.isEndElement()) { endElement(reader); } reader.readNext(); } } void StructureList::startElement(QXmlStreamReader& reader) { QString qName = reader.name().toString(); m_isEntry = (qName == "Entry"); if (m_addEntry) { // Nothing else to do: the entry will be added in the processEntry() // Not interested in other features for the listing return; } if (wordTypesList.contains(qName)) { m_type = qName; } if (qName == "translation") { m_inTranslation = true; m_translation = Translation(); m_translation.gender = reader.attributes().value("gender").toString(); m_translation.picture = reader.attributes().value("picture").toString(); if (m_translation.picture.isEmpty()) { // It uses attributes.value("picture") if available, else tries with flickr m_translation.picture = reader.attributes().value("flickr").toString(); } } else if (qName == "mistakes") { m_inMistakes = true; } else if (qName == "catacro") { m_inCatAcro = true; } else if (qName == "engacro") { m_inEngAcro = true; } else if (qName == "expressions") { m_inExpressions = true; m_expressions = Expressions(); } else if (qName == "plural") { m_inPlural = true; } else if (qName == "fems") { m_inFems = true; } else if (qName == "femplural") { m_inFemPlural = true; } else if (qName == "synonyms") { m_inSynonyms = true; } else if (qName == "otherlocal") { m_inOtherLocal = true; } else if (exampleElements.contains(qName)) { m_inExample = true; } else if (noteElements.contains(qName)) { m_inNote = true; } } void StructureList::endElement(QXmlStreamReader& reader) { if (!m_inSearchedWord) { return; } QString qName = reader.name().toString(); if (m_inPlural && qName == "plural") { m_inPlural = false; } else if (m_inCatAcro && qName == "catacro") { m_inCatAcro = false; } else if (m_inEngAcro && qName == "engacro") { m_inEngAcro = false; } else if (m_inFems && qName == "fems") { m_inFems = false; } else if (m_inFemPlural && qName == "femplural") { m_inFemPlural = false; } else if (m_inExpressions && qName == "translation") { m_expressions.translations.append(m_translation); m_translation = Translation(); m_inTranslation = false; } else if (qName == "translation") { m_wordData.addTranslation(m_translation, m_type); m_translation = Translation(); m_inTranslation = false; } else if (qName == "mistakes") { m_wordData.setMistakes(m_mistakes); m_mistakes = QString(); } else if (qName == "synonyms") { m_inSynonyms = false; } else if (qName == "otherlocal") { m_inOtherLocal = false; } if (exampleElements.contains(qName)) { m_inExample = false; } if (noteElements.contains(qName)) { m_inNote = false; } if (qName == "expressions") { m_wordData.addExpressions(m_expressions); m_expressions = Expressions(); m_inExpressions = false; } if (wordTypesList.contains(qName)) { m_type = QString(); } if (qName=="Entry") { // leaving word, if we were in the matched // not anymore. If we weren't it doesn't matter: // we are not anymore either m_inSearchedWord=false; } } void StructureList::characters(QXmlStreamReader &reader) { processEntry(reader); } void StructureList::processEntry(QXmlStreamReader& reader) { QString ch = reader.text().toString().trimmed(); if (m_isEntry) { QString entry = ch; if (m_addEntry && myStartsWith(entry, m_word_normalized)) { m_addEntry(entry); return; } } if (m_isEntry && !m_inSearchedWord) { if (ch == m_entryWanted) { m_inSearchedWord = true; m_inExpressions = false; m_inTranslation = false; m_inExample = false; m_inPlural = false; m_inOtherLocal = false; m_inNote = false; m_inFems = false; m_inFemPlural = false; m_inCatAcro = false; m_inEngAcro = false; m_inMistakes = false; m_inSynonyms = false; m_type = QString(); } else { m_inSearchedWord = false; } } if (!m_inSearchedWord) { return; } if (m_inTranslation && m_inOtherLocal) { // This is added but not used in the UI // (it also needs to read the "local="us" and then show it as British local) m_translation.otherLocal = ch; } else if (m_inTranslation && m_inSynonyms) { m_translation.synonyms = ch; } else if (m_inTranslation && m_inCatAcro) { m_translation.catalanAcronym = ch; } else if (m_inTranslation && m_inEngAcro) { m_translation.englishAcronym = ch; } else if (m_inCatAcro) { m_wordData.setCatalanAcronym(ch); } else if (m_inEngAcro) { m_wordData.setEnglishAcronym(ch); } else if (m_inTranslation && m_inExample) { m_translation.examples.append(ch); } else if (m_inTranslation && m_inNote) { m_translation.notes.append(ch); } else if (m_inTranslation && m_inPlural) { m_translation.plural = ch; } else if (m_inFems) { m_translation.female += ch.trimmed(); } else if (m_inFemPlural) { m_translation.femalePlural += ch.trimmed(); } else if (m_inTranslation) { /* There are entries where the "translation" is between different parts. For example: * * neighborveíneighbour * * * * * Since there are empty spaces after and before , * the m_translation.translation = ch; was removing the previous text added in the translation. * Now it's adding it trimmed so "veí" stays, and if there was some other meaningul text it would * be added. */ m_translation.translation += ch.trimmed(); } else if (m_inExpressions) { m_expressions.expression += ch.trimmed(); } else if (m_inMistakes) { m_mistakes = ch; } } void StructureList::setWord(const QString& w) { m_word=w; //m_long=w->length(); } void StructureList::setIgnoreCase(bool ignore) { m_IgnoreCase=ignore; } void StructureList::setIgnoreAccents(bool ignore) { m_IgnoreAccents=ignore; } bool StructureList::myStartsWith(const QString &ch, QString &word) { QString dict(ch); dict=normalize(dict); return dict.startsWith(word); } QString StructureList::normalize(const QString &word) { QString normalized = word; if (m_IgnoreCase) { normalized=word.toLower(); } if (m_IgnoreAccents) { normalized.replace(u'à','a'); normalized.replace(u'è','e'); normalized.replace(u'ì','i'); normalized.replace(u'ò','o'); normalized.replace(u'ù','u'); normalized.replace(u'á','a'); normalized.replace(u'é','e'); normalized.replace(u'í','i'); normalized.replace(u'ó','o'); normalized.replace(u'ú','u'); } //printf("Paraula noramlitzada: %s\n",qPrintable(word)); return normalized; } int StructureList::setAddFunction(void function(QString a)) { m_addEntry = function; return 0; } WordData StructureList::getWordData() { return m_wordData; } void StructureList::setParaula(const QString& searchFor) { m_entryWanted = searchFor; } qdacco-1.2.4/nongui/StructureList.h000066400000000000000000000067301477201047300172670ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2013, 2015, 2020, 2021, 2023 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef StructureList_H #define StructureList_H #include #include #include #include #include "WordData.h" class QString; class StructureList { /** If searchFor(const QString&) is set: search the file and stops when the word is found. Then set all the entry information in to m_wordData. The user can call getWordData() to get the data. If m_addEntry is set: for each word call m_addEntry() so it can be added in the UI. Yes, this is the original 2004 class interface. Why I didn't emit each entry or return a QStringList? I think that I thought that the m_addEntry low level callback was faster than returning a QStringList because qdacco would add the words incrementally and the user would see it. This is obvious to me that the main event loop is not processing events so the user will not see anything until it's finished. I'm leaving this because I consider qdacco a historic project, and this is part of history. It makes me smile and give me some headache when upgrading from Qt to Qt version. On the other hand I joined StructureParser and StructureList which returned the list or the word (at least to improve maintanibility) in 2023 :-) */ public: StructureList(); void parseFile(QFile& xmlFile); void setIgnoreCase(bool capital); void setIgnoreAccents(bool capital); void setParaula(const QString &searchFor); WordData getWordData(); void setWord(const QString& w); bool myStartsWith(const QString &ch, QString &word); QString normalize(const QString& word); int setAddFunction(void function(QString a)); void setEntryWanted(const QString& entryWanted); private: void startElement(QXmlStreamReader& reader); void endElement(QXmlStreamReader& reader); void characters(QXmlStreamReader& reader); void processEntry(QXmlStreamReader& reader); bool m_isEntry; int m_IgnoreCase; int m_IgnoreAccents; QString m_word; QString m_word_normalized; WordData m_wordData; QString m_entryWanted; void (*m_addEntry)(QString q); /////////// bool m_found; bool m_inTranslation; bool m_inExpressions; bool m_inExample; bool m_inPlural; bool m_inNote; bool m_inFems; bool m_inFemPlural; bool m_inCatAcro; bool m_inEngAcro; bool m_inMistakes; bool m_inSynonyms; bool m_inOtherLocal; Translation m_translation; Expressions m_expressions; bool m_inSearchedWord; QString m_type; QString m_mistakes; }; #endif qdacco-1.2.4/nongui/WordData.cpp000066400000000000000000000033241477201047300164670ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2015, 2021 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #include #include "WordData.h" WordData::WordData() { m_found = false; } void WordData::setType(const QString& type, const QString& ipa) { m_currentType = type; m_currentIpa = ipa; m_found = true; } void WordData::setCatalanAcronym(const QString& acronym) { m_entry.catalanAcronym = acronym; } void WordData::setEnglishAcronym(const QString& acronym) { m_entry.englishAcronym = acronym; } void WordData::setMistakes(const QString& mistakes) { m_entry.mistakes = mistakes; } void WordData::addTranslation(const Translation& translation, const QString &type) { m_found = true; m_entry.wordTypes[type].translations.append(translation); } void WordData::addExpressions(const Expressions& expressions) { m_found = true; m_entry.expressions.append(expressions); } bool WordData::found() { return m_found; } QString WordData::getHTMLEntry() { return m_entry.getHtml(); } qdacco-1.2.4/nongui/WordData.h000066400000000000000000000174371477201047300161460ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2021 * Carles Pina i Estany * * qdacco 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 * any later version. * * qdacco 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 . */ #ifndef DADESPARAULA_H #define DADESPARAULA_H #include #include #include #include static QStringList wordTypesList = {"verbs", "nouns", "adjectives", "adverbs", "pronouns", "exclamations", "abbreviations", "prepositions", "phrasalverbs", "verbTense", "conjunctions", "determiners", "acronyms" // "mistakes", "catacro", "engacro", Handled differently }; static QString xmlToUserInterface(const QString& xmlWord) { static QHash xmlInternalToUserInterface = { {"verbs", QObject::tr("v")}, {"nouns", QObject::tr("n")}, {"adjectives", QObject::tr("adj")}, {"adverbs", QObject::tr("adv")}, {"pronouns", QObject::tr("pron")}, {"exclamations", QObject::tr("excl")}, {"abbreviations", QObject::tr("abbrev")}, {"prepositions", QObject::tr("prep")}, {"phrasalverbs", QObject::tr("phrasal verb")}, {"verbTense", QObject::tr("verb tense")}, {"mistakes", QObject::tr("mistake")}, {"conjunctions", QObject::tr("conj")}, {"determiners", QObject::tr("det")}, {"acronyms", QObject::tr("acronym")}, {"catacro", QObject::tr("catalan acronym")}, {"engacro", QObject::tr("english acronym")}, }; return xmlInternalToUserInterface.value(xmlWord, xmlWord); } static QString formatInformation(const QString& typeOfInformation, const QString& information) { if (information.isEmpty()) { return QString(); } return QString("%1: %2
").arg(typeOfInformation).arg(information); } struct Translation { QString translation; QString female; QString femalePlural; QVariant collocation; // bool QVariant transitive; // bool QStringList examples; QStringList notes; QString plural; QString otherLocal; QString catagory; QString gender; QString synonyms; QString picture; QString catalanAcronym; QString englishAcronym; QString getHtml(const QString& typeOfWord, const QString& mistakes = QString()) const { QString html; if (!typeOfWord.isEmpty()) { html += QString("%1").arg(xmlToUserInterface(typeOfWord)); } if (!gender.isEmpty()) { if (!html.isNull()) { html += " "; } html += QString("(%1)").arg(gender); } if (!html.isEmpty()) { html += "
"; } html += translation + "
"; html += formatInformation(QObject::tr("Common mistakes"), mistakes); html += formatInformation(QObject::tr("Plural"), plural); html += formatInformation(QObject::tr("Female"), female); html += formatInformation(QObject::tr("Female plural"), femalePlural); html += formatInformation(QObject::tr("Catalan acronym"), catalanAcronym); html += formatInformation(QObject::tr("English acronym"), englishAcronym); html += formatInformation(QObject::tr("Synonyms"), synonyms); for (const QString& example: examples) { html += formatInformation(QObject::tr("Example"), example); } for (const QString& note: notes) { html += formatInformation(QObject::tr("Note"), note); } if (!picture.isEmpty()) { html += formatInformation(QObject::tr("Picture"), QString("%1").arg(picture)); } return html; } }; struct Translations : public QList { QString getHtml(const QString& typeOfWord, const QString& mistakes) const { QString html; QString typeOfWordHtml; bool first = true; for(const Translation& translation : *this) { if (!first) { html += "
"; } html += typeOfWordHtml; html += translation.getHtml(typeOfWord, mistakes); first = false; } return html; } }; struct WordType { QString wordType; Translations translations; QString ipa; QString getHtml(const QString& wordType, const QString& mistakes) const { if (translations.isEmpty()) { return QString(); } return translations.getHtml(wordType, mistakes); } }; struct Expressions { QString expression; Translations translations; QString getHtml() const { QString html; html += "expression
"; html += "" + expression + "" + "
"; html += translations.getHtml(QString(), QString()) + "
"; return html; } }; struct Entry { QString entry; QHash wordTypes; QList expressions; QString catalanAcronym; QString englishAcronym; QString mistakes; QString getHtml() const { QString html; html += formatInformation(QObject::tr("Catalan acronym"), catalanAcronym); html += formatInformation(QObject::tr("English acronym"), englishAcronym); if (!html.isEmpty()) { html += "
"; } for (const QString& wordType : wordTypesList) { if (wordTypes.contains(wordType)) { html += wordTypes[wordType].getHtml(wordType, mistakes); html += "
"; } } for (const Expressions& _expressions: expressions) { html += _expressions.getHtml(); } return html; } }; class WordData { public: WordData(); void addTranslation(const Translation& translation, const QString& type); void addExpressions(const Expressions& expressions); void setType(const QString& type, const QString& ipa); void setCatalanAcronym(const QString& acronym); void setEnglishAcronym(const QString& acronym); void setMistakes(const QString& mistakes); bool found(); QString getHTMLEntry(); private: bool m_found; Entry m_entry; QString m_currentType; QString m_currentIpa; }; #endif