pax_global_header00006660000000000000000000000064131216300330014502gustar00rootroot0000000000000052 comment=e81021060d1e7508297b56d3a47bd6bbbc39a922 qdacco-0.8.5/000077500000000000000000000000001312163003300127465ustar00rootroot00000000000000qdacco-0.8.5/CMakeLists.txt000066400000000000000000000034201312163003300155050ustar00rootroot00000000000000 ########## Project setup ########## PROJECT(qdacco) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) SET( QDACCO_VERSION 0.8.5 ) 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}) #IF (APPLE) # SET(QT_QMAKE_EXECUTABLE "/opt/local/bin/qmake-mac") #ENDIF (APPLE) find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) find_package(Qt5Network REQUIRED) find_package(Qt5Xml REQUIRED) find_package(Qt5Widgets REQUIRED) 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-0.8.5/COPYING000066400000000000000000001045131312163003300140050ustar00rootroot00000000000000 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-0.8.5/INSTALL.ca.md000066400000000000000000000043611312163003300147640ustar00rootroot00000000000000qdacco Instruccions generals d'instal·lació ==================================== Nota prèvia: *Debian i Ubuntu té paquet de dacco i qdacco.+ Per tant no cal compilar-ho, instal·lant el paquet és suficient. Altres distribucions podrien tenir el paquet també. 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.) Algunes distribucions de qdacco venen ja amb les dades, en aquest cas serà suficient presionar "Bé" per tal de continuar. Altrament, s'haurà de seleccionar el directori on hi ha els fitxers Dacco (és a dir, el directori 'dictionaries'). Si es necessiten els fitxers de dades, es poden trobar mitjançant: http://www.catalandictionary.org Instruccions sistemes Unix ========================== Per tal de compilar qdacco, en distribucions basades en Debian es necessiten els següents paquets (els quals tenen un nom similar en altres distribucions): qt5-default cmake Per tal d'instal·lar-los, es necessita executar (es necessitarà ser root per fer-ho): apt-get install qt5-default cmake Cal descomprimir el fitxer de qdacco (tar -zxvf qdacco-X.tar.bz2) i llavors: cd qdacco mkdir build cd build cmake ../ make (Ara, a dins build/gui/qdacco i build/text/textqdacco ja hi ha els programes que podeu executar) make install #Si voleu instal·lar-ho a /usr/local/bin i /usr/local/lib #executeu-ho com a root Atenció: si voleu executar qdacco des de /usr/local/bin, necessiteu que /usr/local/lib estigui listat a /etc/ld.so.conf (normalment ja ho és) i que executeu ldconfig Potser voldreu afegir un accés directe al teu escriptori o gestor de finestres. Nota ==== Per baixar-se els diccionaris: http://prdownloads.sourceforge.net/dacco/dacco-0.9.zip?download Podeu comprovar mitjançant http://www.catalandictionary.org si n'hi ha de més recents. A Debian, Ubuntu, etc. hi ha paquets propis. Festival ======== Festival és un sintetitzador de veu. Sol estar disponible al paquet festival. Si el teniu instal·lat qdacco el pot fer servir (veure la configuració) i pronunciar les paraules. **Llegir 'Instruccions generals d'instal·lació' Carles Pina i Estany, 2005, 2006, 2007, 2008, 2011, 2013, 2015 carles@pina.cat qdacco-0.8.5/INSTALL.en.md000066400000000000000000000062641312163003300150070ustar00rootroot00000000000000qdacco General installation instructions ================================= Previous note: *Debian and Ubuntu already have dacco and qdacco packages.* Just execute: ``apt-get install qdacco`` Or: ``sudo apt-get install qdacco`` So, you don't need to compile, only installing qdacco package is enough. Other distributions may have the package already done too. When run for the first time, qdacco will prompt the user for configuration information (default language, data directory, etc.) Some qdacco distribution come with the data already provided, in which case you just have to press "OK" to continue. Otherwise, you will have to select the directory in which your dacco files are located (i.e. the 'dictionaries' directory). If you need to download data files, you can find using: http://www.catalandictionary.org GNU/Linux specific instructions =============================== In order to compile qdacco, in Debian-based distributions you will need the following packages (which have similar names in other distributions): qt5-default cmake In order to install, you need to execute (You need to be root to do this): apt-get install qt5-default cmake MacOSX specific instructions =============================== (not tested since the Qt5 migration) To build qdacco on mac, you will need basically two things: You have to obtain a copy of xcode tools, you have to register: http://developer.apple.com/technology/xcode.html The second thing you will need is to get macports from: http://www.macports.org/install.php Once installed macports, type the following command and take a break: sudo port install qt4-mac cmake This will compile qt4 for you, it will take some time, but eventually it will finish. NOTE: If cmake can not find qmake-mac (qmake), you can set it with, this will force it to use macports' qt cmake -DQT_QMAKE_EXECUTABLE=/opt/local/bin/qmake-mac ../ Compilation =========== Then you will have to uncompress qdacco file (tar -zxvf qdacco-X.tar.bz2) and execute: cd qdacco mkdir build cd build cmake ../ make (From now on, you have the binaries inside build/gui/qdacco and build/text/textqdacco, read to execute) make install #optionally, if you want to install binaries and lib #inside /usr/local/bin and /usr/local/lib #Execute as root Attention: if you want to execute qdacco installed in /usr/local/bin, you need that /usr/local/lib directory is listed in /etc/ld.so.conf (usually it is) and that you execute ldconfig You might like to add a shortcut to your desktop or Windows Manager. qdacco executable file is in /usr/local/bin/qdacco Note ==== 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. usually has their own packages. 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). **Read 'General installation instructions'. PD: first revision of this text has been revised by Linda Oxnard and Jonathan Kaye. Carles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2017 carles@pina.cat qdacco-0.8.5/README.md000066400000000000000000000021761312163003300142330ustar00rootroot00000000000000Catalan - English Dictionary, (c) 2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2017 Carles Pina i Estany qdacco is a program which uses data from Dacco project. You can find Dacco project on: http://www.catalandictionary.org Dacco project is a dictionary written from scratch by Catalan-speakers and English-speakers, 100% free (LGPL licensed). qdacco uses Dacco data off-line, so it's fast and should be easy to install. 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; either version 3 of the License, 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, see . qdacco-0.8.5/TODO000066400000000000000000000001621312163003300134350ustar00rootroot00000000000000-Separar millor l'auxiliar de lib i de GUI. Hi ha moltes coses que han de marxar d'auxiliar i anar a auxiliarGUI qdacco-0.8.5/changelog000066400000000000000000000111001312163003300146110ustar00rootroot00000000000000qdacco 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-0.8.5/gui/000077500000000000000000000000001312163003300135325ustar00rootroot00000000000000qdacco-0.8.5/gui/AuxiliarGUI.cpp000066400000000000000000000006401312163003300163610ustar00rootroot00000000000000#ifndef AUXILIARGUI_CPP #define AUXILIARGUI_CPP #include "AuxiliarGUI.h" #include "CMakeOptions.h" void *AuxiliarGUI::m=0; QString AuxiliarGUI::version = QDACCO_VERSION; QString AuxiliarGUI::copyright_date = "2005, 2006, 2007, 2008, 2009, 2011, 2013, 2015, 2017"; QString AuxiliarGUI::getVersion() { return version; } QString AuxiliarGUI::getCopyrightDate() { return copyright_date; } #endif qdacco-0.8.5/gui/AuxiliarGUI.h000066400000000000000000000004151312163003300160260ustar00rootroot00000000000000#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-0.8.5/gui/CMakeLists.txt000066400000000000000000000040041312163003300162700ustar00rootroot00000000000000########################################### # qdaccogui # ########################################### set (qdaccogui_SRC configure.cpp main.cpp qdacco.cpp about.cpp mylineedit.cpp mylistwidget.cpp AuxiliarGUI.cpp oneinstance.cpp trayicon.cpp loadconfig.cpp ../nongui/auxiliar.cpp ../nongui/StructureList.cpp ../nongui/StructureParser.cpp ../nongui/worddata.cpp ) set (qdaccogui_MOCS configure.h main.h about.h textbrowser.h mylineedit.h mylistwidget.h oneinstance.h trayicon.h loadconfig.h) set (qdaccogui_H AuxiliarGUI.h ../nongui/auxiliar.h ../nongui/StructureList.h ../nongui/StructureParser.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(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) find_package(Qt5Network REQUIRED) find_package(Qt5Xml REQUIRED) find_package(Qt5Widgets REQUIRED) find_package(Qt5DBus 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 QT5_WRAP_UI(qdaccogui_UIS_H ${qdaccogui_UIS}) #QT5_WRAP_CPP(${qdaccogui_MOCS}) QT5_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}) qt5_use_modules(qdacco Widgets) target_link_libraries( qdacco ${Qt5Xml_LIBRARIES} ${Qt5DBus_LIBRARIES}) install_targets(/bin qdacco) qdacco-0.8.5/gui/CMakeOptions.h.cmake000066400000000000000000000001641312163003300173170ustar00rootroot00000000000000#ifndef CMAKEOPTIONS_H #define CMAKEOPTIONS_H #define QDACCO_VERSION "${QDACCO_VERSION}" #endif // CMAKEOPTIONS_H qdacco-0.8.5/gui/TODO000066400000000000000000000030371312163003300142250ustar00rootroot00000000000000-Show the number of available words in some place (probably in About) -Mostrar els tags past i participle -Mostrar que la paraula s'ha enviat correctament només si es rep "OK" del servidor (a la petició HTTP) -Canviar cadena, de "Llegir" a... BUGS and IMPROVEMENTS for next releases Important ========= -Actualitzar amb un click: per tenir les últimes paraules de Dacco. -O si no es fa "actualitzar amb un click", un enllaç a la pàgina per baixar els diccionaris! -ñ -> no troba el diccionari -tradueix de forma automàtica el que troba al portapapers -popup amb la traducció quan es selecciona alguna cosa Maybe? ====== -Clicant a sobre una paraula: buscar la traducció -Automatically recognize if word is English or Catalan -Irregular verbs? -Verb conjugator -Buscar per verbs irregulars -Compilation option (or ask root password) to disable report new word and suggestions (for schools) -Regex support -Separar error: escriure una paraula i aquesta ha de començar amb lletra Misc ==== -Use valgrind to detect memory leaks -Clean code - Potser seria útil que quan envies una paraula et deixi enviar també suggerències de traducció? He pensat en fer un pegat per un parell de coses però al final ha decidit que com que el programa esta en C++ segurament no me'n sortiria (bé, i que també em fa una mica de pal posar-me a buscar pel codi ara xD). Una és que la finestra surt molt petita i el botó «Enganxa» no hi cap (surt la fletxa per a mostrar la llista desplegable del que no hi cap), l'altre no té pràcticament importància així que ni et molesto. qdacco-0.8.5/gui/about.cpp000066400000000000000000000020151312163003300153460ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> 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-0.8.5/gui/about.h000066400000000000000000000022651312163003300150220ustar00rootroot00000000000000/* * 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 = 0); private: Ui::About ui; private slots: public slots: }; #endif qdacco-0.8.5/gui/about.ui000066400000000000000000000303651312163003300152120ustar00rootroot00000000000000 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::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 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> Qt::AlignCenter true Qt::Vertical 20 40 Qt::Vertical QSizePolicy::Fixed 20 10 Author 0 0 Carles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011, 2013 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: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> Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop true Qt::Vertical QSizePolicy::Fixed 20 30 License Program is GPL 3.0 licensed. Data is LGPL licensed. Qt::AlignCenter true Ok clicked() About close() 20 20 20 20 qdacco-0.8.5/gui/configure.cpp000066400000000000000000000165331312163003300162270ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2011 * 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("You should select the \"dictionaries\" directory and click \"Open\"")); } void Configure::ajuda_browser() { QMessageBox::information(this,tr("Information"),tr("Some entries has links (e.g. to photos). Select which browser do you want to use")); } void Configure::ajuda_festival() { QMessageBox::information(this,tr("Information"),tr("You can produce a synthesised pronunciation of your query results with qdacco. To use this feature you must have Festival installed on your system.

Festival webpage: http://www.cstr.ed.ac.uk/projects/festival/")); } void Configure::ajuda_singleinstance() { QMessageBox::information(this,tr("Information"),tr("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 everytime that you launch a new qdacco you will have a new qdacco instance.")); } void Configure::busca_fitxerf() { QString workingDirectory; QFileDialog *dlg = new QFileDialog(this); dlg->setFileMode(QFileDialog::DirectoryOnly); 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-0.8.5/gui/configure.h000066400000000000000000000032301312163003300156620ustar00rootroot00000000000000/* * 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 = 0); 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-0.8.5/gui/configure.ui000066400000000000000000000246131312163003300160600ustar00rootroot00000000000000 Configure 0 0 341 318 0 0 0 0 16777215 16777215 Configure :/icons/qdacco.png:/icons/qdacco.png 0 Basic Default dictionary: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter Catalan->English English->Catalan Default language: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter Catalan English Ignore accents: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter ignorar_accents Match case: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter ignorar_majuscules Advanced Dictionary directory: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter Select the dictionaries directory on your system :/icons/fileopen.png:/icons/fileopen.png ... :/icons/help.png:/icons/help.png Browser: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter Select the dictionaries directory on your system :/icons/fileopen.png:/icons/fileopen.png ... :/icons/help.png:/icons/help.png Festival executable: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter true :/icons/fileopen.png:/icons/fileopen.png ... :/icons/help.png:/icons/help.png Autocomplete: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter Single instance: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter ... :/icons/help.png:/icons/help.png QDialogButtonBox::Cancel|QDialogButtonBox::Ok tabWidget traduccio_defecte idioma_defecte ignorar_accents ignorar_majuscules nom email directori busca_fitxer ajuda browser busca_browser ajuda_browser festival busca_festival ajuda_festival autocompletar qdacco-0.8.5/gui/doc/000077500000000000000000000000001312163003300142775ustar00rootroot00000000000000qdacco-0.8.5/gui/doc/qdacco.1000066400000000000000000000023261312163003300156160ustar00rootroot00000000000000.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-0.8.5/gui/doc/qdacco.sgml000066400000000000000000000074611312163003300164250ustar00rootroot00000000000000 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-0.8.5/gui/icons.qrc000066400000000000000000000010701312163003300153520ustar00rootroot00000000000000 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-0.8.5/gui/icons/000077500000000000000000000000001312163003300146455ustar00rootroot00000000000000qdacco-0.8.5/gui/icons/button_cancel.png000066400000000000000000000015631312163003300202000ustar00rootroot00000000000000‰PNG  IHDRÄ´l;gAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbüÿÿ?-@1 üÒ…Aà¥3ƒ±ú/É3(\”c@7 €˜Ð Šíÿû‡áü" 5ª?Ïð—aÿy TÈ ÝP¾¨þh_ö?0Åm8ÔÐý²Žò2ö²ÿ€ì3"È ÝP½ N_ÁW@—ÜÖÇ4ÙPYA qySQËOñC  ˆ‹ÿ3€\¨ðÿï_†ß?~}gàÖra µøT|Ca8º¡ ߀ñÿßþýÇ Ø`€b4###(LAÞ¹d(Èp†_?>ßËðlåé@ aÏ€Íз÷ž1Ü?ñîÐŽfŸ.€Ì ¸Á S÷A.åQ·ÌðóÃNjǞ¬¿ü(Ç@ÈPXª ƒA¦  ð© ÿÉÀðã;Ãç›W€–üfàÇk(Ì`€Â0@a r¹¤®¿¢&Ø`†Ÿ þ4f0@a5®* ÿǰ_Î[K€WBÅÐ^2Ü9ò«¡0ƒˆW:…FØûȆ2|Ío°Üÿ¸3@1JüÈa 6ôÛ6EEpR<ÆŽ=¡Äìý_30|þõƒ3ƒ²3(Íî?ÆŠi8@¡„1.Caò>È¥ C¾ƒèã†×ïÿ1ÜùÅð¨ÝÑú/"¹Ü`B†‚" ™ ïƒ\*òhË À7†× dÊ1܆’AlðeFP)EL⇆é~e&Ñï¯#nhýÿÿ€b‚8(ð—áÁÿßÿ¦S«Ÿ@ö?G÷_cÆÙˆá /èAåéYq†óo|Dÿ¿vú,¥ÞŸâÃ]lef08ÂÀðþ%Ð] dŸ?-€@fJäËS`‚K)‰  Ô¥ ðý3 €0ª&Py ÄDWM@Ã`.EÎyÄH«Ê À€øØ4…IEND®B`‚qdacco-0.8.5/gui/icons/button_ok.png000066400000000000000000000014011312163003300173530ustar00rootroot00000000000000‰PNG  IHDRÄ´l;gAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<“IDATxÚbüÿÿ?-@11ÐÍ  FFFªÆ·ŠA•‰¡ž•™! €2ìs!CòMœÏ À4™h ÃffG€bd˜Íð,ùÁ‘!DÃg dd¨çâàJøöóýˆ’.Ã/† â|â ö3Lf0 ÊÀI@§0Ìç`æ¸ï`è "¢Â4çÃoC¡ %2x#Ð33 Ä~†<†÷ ìe˜ÏÊÌz_ÓX3Á#ÔƒáÊ+ —n^:t˜#C&ØR€b`èb`è`ø¯ý]û¿Äe‰ÿ@ö{†64Ã[¶3Ìgêgú/xDð¿Æ °zîyÜÿ:!Œ$I41ìgev`RgbøsñÃÿMÿ?0üºà?ÐÀ0dàFŠ9‹ #PË †?‹ê~þ_ÀPLjÍ`€b“?6þ½ô×á¯ü_u ß è‹-À`aÒf@>s B†‡@ö°žD††¸B € ..z•á>C’Ì+ æbv$±+@¼‡Q‰À \€/~‘;ò€Ç-áò*o 0ˆ&N–Ä g eg°``ùƒ\¹h((­O!.­¢¬øÅpìªïhx#Ÿö‡A‘a:ñ €P Š`R‹F/8r@^g`x 4ŒèÒÅÈi”0 ÔÒí?Ã`H30|âµ@üAÿI7ˆ…§L±ŸnÙ.Æþe†ä”K„Š¢Á tc4JÂ# #­ª&€¢Y @43 Àä­›ªpóEIEND®B`‚qdacco-0.8.5/gui/icons/close.png000066400000000000000000000020031312163003300164530ustar00rootroot00000000000000‰PNG  IHDRóÿagAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<•IDATxÚbÔÔtg@‚¿~ýÔøû÷¯-ôÿÿ†ÿþ½cbbØÂÂÂr(ö$öÿÿ?°b€bAÖ ôøùóWœœœµ¦¦2??/##ÃçÏ_nÞ¼_uóæ£ÌÌŒ-LLÌ;`zˆ¡ù [Gxx·»»=ƒŽŽ77Ø€_¿þ1ܸñˆaëÖ}Ö+Wn\óñã› &&¦) }ÄòÐfwffÖÍ ‘¬îî¶ ,,Œ ?þ 5œ••(ÎÌpôèy†þþ¿?}zç äï fe¾ß¿Ïvp°W°··ú÷ƒ––Û7?~tþw ûƒªª4Ð  eÌ/^Vºz @1ýýû[[HHÄJEE ¬ÐÀ@•ƒƒACCžáùó7@1))aqqA†;w½ô‡APPÈ ¤ €˜…„3¥¥¥mÇðî݆—/?0¨¨È0pr²5IJŠ0((H€½Ò×·”aÍší >aøñãЛ?^ 00„!õúõ À/†Gž]ò–!1Ñ——ƒANN ÝÝ Ö®Ýô30,X®ä0“@±€BùÛ· OžÉ}ùòd00¾1Ü¿˜™n0ܺuýè_s€š—Áò@½Í‰ l ò¿ 04€Š|ØØX…@aLï€!¾úà쌜ƒ ÈQ¹QkÓ»IEND®B`‚qdacco-0.8.5/gui/icons/configure.png000066400000000000000000000034571312163003300173450ustar00rootroot00000000000000‰PNG  IHDR szzôgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<ÁIDATxÚbdÀvì8.ÀÈÈØÏÈÈàÀÀÀ¨ $Ä÷îüÿàÿ† ÿÿÿŸèáaù€B@ŒØ·o?¦ðïß¿ó RZZŠ(rŸ?e¸ÿ9Ó'/€Žhôñ±m Ä„mÜxÐ`Æï>|þøðáóÿýûÏü_¿~ÿ|Jì ¼hÍš½«VíyÿþS¬Žøõë÷ÿ]»Nü_¹rw?¹v>Éç þüqˆ#ŒJ¯á €b†1Ο߿Q]Ýòã=>}úNX ôІŸ?}üòå[pZ¥ PéÊšìÌ¿þœªe`g}Ä ¥ò›áÛáÇ \Ÿ¾2üeüÏÀ¯ÃÏðöþŸ€gчsö¾ÆšCˆ³ò©QO='ðòrK>P…óùó7°å_¿~gå]]Unö¿ ö—3°3ÝgPPýÁðãÒkQî  dôõ#Ã/†? ·ý‡„M-fH#¾x ­•í@,Ä øï÷pÑPý²˜‹õ!ƒ¢Ôg†ÿ¯¾0ò0-Gùý×†ß¢Ü ß¹nù v„C#ª#ˆ‘œ*4/.ÅÁJìÊ~ÉO êJ_>~gàçae`dÄôÞŸÿþð±1|fäc¸vì/Ø®­×Ꭰ&rà)}ô?ËGq9NF~qnF6n4ÌÅÆÀ!ÈÁÀöç?ƒÓg SF`ú¿­B^ßY!›JÁ†Ì70ÿÏ +ùᣀ…Ãßà‚ãfdgfxò’™áÂi&pHø÷\_@d;ÖBalò‡A^……˜'’ ‹ß…å\”hyøš•áìYP»‚Á €˜)qÀªo.™Š>|ò„1€›õ7ƒ 8Ð8n`ùÁtÈûo ߀Õóo CžÓí«Ï oé…‹A€÷çL ïÞ3J… bòõÀz)ñèIV†»g€–³*(î>ÙÀr„áÇo‰ñ÷è-ÿ‡AMö'(=ÅØé7ÀŽ8t†áö o?-ÿ´Ô>ãòËîŸÀ(b[äV~@&@QÅ 4ûÆ`¡™¸ÿ,ÃÍ]o ‚¿€!ÀÇ ,E¸€:â3ó²3€¼þëË_°ˆ™Š`ó…7úsñNu™ É fª‰³ógçf_ÔÏàåV4‘M €ï¿ûSçêêŠÿæüöûü/èDC„,Ì ÏsÊR«úPíÍéé‹ÅÑócf³Ù(lWš0d7>Puм¤L‰&&±ZÃ|þ„Ãg<=œw>×QòÉJš U%ÏKŠ¢ÀÌ**b ‹«!Tüc1Û0”4š s§L SÅÝ+2B ÆHÌ2&“ÉF؆ÞôX‡ÞÜ)Š‚²T̪ý™ÅPý©Íê÷Â6ö¹ (EQ êµÑ < Ì‚¨Ýî;Û^ R©¤”êy%ÂÌÁq«' N¬þ±Øönª¶rÀRˆV·šBÜ¥[èÇvP€&ÃëÚƒµ;‡pî]> ÛAxŸ'‚¬2eSO¨&m q³AlM*¢Â-áqˆ‚•g9Öœ*fÃØ^{(»…ç’3÷fµîŽÕ}Ø‚‚[—”^ÍêEÀ})fV?;Wª&–e9 Û%"ÂÇÝÌfz#ÄÜ«07BŒX›JU›D´.¶€*Y,6¾á6Øê2¶Žv°í¨Ê“u':=}±˜ÏŸP 5cïñ^s.,Gܤ×àí-Xû6sôü˜Ãg˜:EY¢ªLâ>Û™ŽÂvÔ…¤]f³ûûûÍ™Ñ&gãÛØ®}XUî‹íVt°íIbwa»ÑlÛl [¹Î×÷('›Nîî/åSÿ=ÿŒ©X±1÷Æ‹IEND®B`‚qdacco-0.8.5/gui/icons/editpaste.png000066400000000000000000000026621312163003300173430ustar00rootroot00000000000000‰PNG  IHDR szzôgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<DIDATxÚbüÿÿ?0222à­­ó011ÅCxÿ ZÀàïß—OœØãµuëò@î@1€ðÙD4PS3}Áôékÿÿþó?6°~ýþÿ••“¯›š:¨•³’j?@1"‡ÀÍÉÚÿý7üõç?ÓŸ¿ÿW¼Êˆ•’‹KJòeàädÇiÈÚµûNž¼|SãÿêJ}‰_ÙXÿ͸oUuó>8È + ¸Îuk²±2îcfçàSdxòa÷#†´´ 6‚>Y±bƒÐc – Ï~}|ÅðûÓk†§oå¹·Üž”þ Äÿ°é ãÏÆõBÚ& ^ž@Þo†_72°­abøýû7¼¼\ <²Ê ~F`þÛ˾mÝ>)Û]ìüԯ΅~` €‚;àÇ/y{†ÿŸBן? ß¾ñ2|úô¨¸üúõ×G þŸ`¾†ãB <t€Ü›ÐPÀp@Áðíç&–? ÿ¡é˜õ/Ã;O@9g¢§Ý¸h þ_0ž``øüý(þ@˜ [4Üß× òÒ Ëæ±“ž«àøÆðè©_¿¡–cÍç„È üýІŸ¿þ1üþó¯R€B D$6¢ÀG`ºšõãç?PàDvüú+Âðå—8üû)Ìþé þçï`6³Œ4ƒM—ÍòeqE@áL„Àç² ì‚^ ìììð rÈ1Eÿ³õ?}™ L—ï„,Z´™5.Î79P Ä„ˆˆÅÿ€Id97óòr3ðññ0ðóó€iæÕ êêªþóæme'> fFv@Áð¿‰Æÿ€åÄÿÿ„C zzJ@G¨̘±Ãw(îpúö×O†_¿!ðÇ/ AöŸüýûR¬ FFª šš*“&­Aq@1!+þ² Æ¿Wþ=} ¡aøÝ'†ß~—#QªéAŽ00Pf–– èí]w@± "ˆ<óÿ3Ђϸ-ùËD\ðòr2lÚt Ç€h!!‘ T(3 ¶RìÿG`–øŠ?GücþKT©ÓÁ¿áêoß~¢øø@¡:à70Î}öñ;Aƒÿ1¬¬¬@üf`aagQ¤¤²› €PJlÿ_e Æä¿`V÷û7$¤@ &&D¡„ê€@ËWýûó¯;ÿåþü¶a9Ü0@¨Qðá+$?“ºYPCdè¯_€ø/Ør˜OA9€‰‰ÉrÔ ´( ¾(F˜ÅK1}Œìd‡Ö\@”þþ[ÊZ˜–2àtrŠ>|üËÀÏõ¸(øýÔ5f0ãs²ˆцøtÓ)^k ÕÏÀæátðAâäÔM¬#£ €à¸òìSøÏ?Ô[Õ2&JpØhä dK@©ê´ýΆ^Q¡Á÷ ƒ°[†ßÈ!@è¾¥ª¯PL ˆåø3ˆTG ; €˜Èmw‚*äþÈ2Ht ÓKÑÅ‘£ €XÈny«ÖË—3“¡jYk¾,"h"(¥ÐüC)…&œ+¥P¾Më¬+E"çÑ¡!\×åë‹'t`||p«é4ùáaR¯¾Š‰¬…ŽJDPþ=%‚øÏ¤åœÆûÕ*¥3gÈÍÎ2>8È×/Žë@8¬i¤3R¯½†¯Ænpêê"ÜÝM(‘@ëê²mÌL)ÐVVpVVµ¤u…ˆ?ñùË—Yçá„u×u©Ú6®mcùZÁã##$wíBÅVììï¯Ç¸XäÆéÓ$  Ô fÇ\× `‹ˆ¦5Ç<£÷©§è]3/ZG¤½ÑçŸçÆä$29I»RupÄqP­ÿÂ.Á' @|x˜þýû 5„űm–æç¹37Çݹ9Ú"CCtÓ=0€ò7=òÅÍ›¹öÕWôW*×qPJ˜Ç šÏ#¡J=_~í·ßø×§Ÿ²)b}<ÎH,†R ¹qƒÜ÷ßs+¡oÿ~z·l }Ý:xá¦>úˆ-‰„§€ë¢DL`û·Nž¤º¼Œ]*Ñ¿o_^5MþññÇœ;r„?··ó@{;€kš¸†kD,‹d©„õÅ\ÿòKªå²G"‘`ýsÏ‘ËfÁ4ÓDDLÕ‚\Ž¥~ cd„uÛ·_~ê“O¨^¸Àc==„,Ë5M"Dq ÃsîÏ‘ÉIòß|¼ŸÚ³‡tw7ød•H€( À“³ZeèÅë²ÿú+7Oœ`$ó€K%à ùì³ô¿ñ}¯¿Na×.Œ\×4¡TÃÀ:s†ÂÌLàçÑ—_æòü¼§@ƒêª–µŠÖ‘JN&ƒ„;þÁìèìôØ—J‰øÎóMO>ÉÕ;w TòHåÏ?ǵmb]]dÃaœLY•®”ÓuÛ¶Žï^¹Bxf†h 8¦‰4TËp,F®P€¸i‚iâÌÏSM§»è† TÓi”vcÇ jyWôÔ]ŽC5ÆZZòä­4×…JÊe¤\ˆiâÌÍf½©÷,k j!PŠŽ‡^Xøýw’¡·¶ {y÷Þ=ÜbÑm•JðõR*A>›Íb]º˜üiëV2Õ*J© tÛ¶Ñ”BjUË"B\׃ÝLͽ¯lR.#†QßüªÅ!+¶í-C?7€å‡@S cz:°ß8>N±AÆí¶u(P5€‹¡±±Àfñòeá0J«)¶ø« Ø@ Û6 µühÙÛW)°¸AO¥ê¦§Y‰¬VÀvœ Ñ0ÖîúT «¯oÍ£UƒFÐÚ¡õõ¡††›ÌÌL@kŠ/oåúu*Ù¬÷PÓxüý÷)ø;X#‰F¢w.]"¢iÍ!Pж‚ÝÕÈfQé4ºR« ‘eÛuç"¤ œïÞ±o_ÐýÔìJŸ}Æ­äæùóœ?vŒ‘¶¶&ððÞ½èããŸs‡1{ʉ`ù!Ðk ¨Z_'BéôiObýÓO°ûí·ù·®“8y2 aÏÎ"ï¼C¾ZeO(D[4Úyå•|öÛo)Ÿ=ËXooЦ­ Ak¢åŽÃÌdÅbìx÷]‡Sîé©ÇY)ú¢QÚtÝk^6l ýɽù&* ´¸ÈÏGŽð—dÒo! ×B ‡›bìærÜ}ï=z&&hëé ÷nœ;)^»FåÊäêU"š†6:ŠJ¥mÚÔÔQ•ùçÁƒl×4ÚC¡Üm AS4ÌöÔ /½Dä­·|æO2]§#•‚†åµÖøÏwß1yô(é:õÎØoJV€µ{ù•ÔáÃÌž=ËÆˆ%ÿØÈf9wèêÂö&„5­Ü·k&à8¸°æz×”BDè8žÅsç¸ÝÛ‹%66F÷Ö­€Wá2ÓÓTfg‰.,0‹1ÐÝÝóÆ„ªm•P*¦e…‹¦I´³sMðZÒµ)ŃËËÈO?¡~ùÓqÈY Mcs8ì­ñd²¸¸ˆ^ZÂôþ¾*:0u»Px\Ãë„“(×EüÖ¹&Ymïsü¿"Çu‰*E›_ÙÄ¿'®[¬ûþlÛf~q‘« Ü.¦t`âf>Üʶ͂_ï×°]—ÅR‰?òy€ ùÿžÿÅÖ=š°ókèIEND®B`‚qdacco-0.8.5/gui/icons/fileopen.png000066400000000000000000000025141312163003300171560ustar00rootroot00000000000000‰PNG  IHDRÄ´l;gAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<ÞIDATxÚbüÿÿ?-@1ÒÊ`€b$UCyãI…þÏgec2øüù·âä.ëØÔI¨¢édAç„‹ï¯ßúòÿÎýoÿ³J¯Ç¥ €@A Ã@më)ƒªæSç÷xñÿë×ÿÿ_½úýÿýû¿ÿ§Ï»õ?9÷P6sˆQ>ñúÿ1†ÿ~ýe`øýçï? k¶?ýð}‹¾`Cç™zW'y~^V†?þ3üþýLsp03Ô´üðñÓOÅ¥³Q‚ €mËîýï¯Wöh0ˆþù›áéï ßbr‘e01”ûÅÀð÷/Â`¯î>þÂÐ<éÒ†ÝW .9<€ @,è©âPó³SOxÿü`¨ËÓgàâ†=ÿýûÏ £&À`k(ðïßÛ…{/1À  –¿ÿxôáéÙ >. rœx#òý—? 7¼d:èn†[ïÞ÷3è4‡)P €X]óéÅ'+SI‚†~øúÁ»öƒ‹ƒ’,Ø,u …Ï_ÿýþÃðabï^€º¡IZŒ¡jÞsÓ ÿþý÷ ÿ€é–á0lÿ@Ù[O¼cñ”g``8øl0;ÃÅóyï½ó hÔ€B Šõ{^3(¨Š2èI³0Šp1|Ê}ÿ ß~ügøöûà éj ?YYN݃ÊÈÄÀðöáw†WÇüeø÷Eñ @¡¼çð+†[KtÞ¾úÍÀ/ÌÂð‡áõg†7@üð9×÷@öO ºé݇¿ o^ÿdøöö Ãó«¯><ûúáãcÞ¿ê LÿËŸ?C÷ŸúÎ`«ËÇÀ ô«+Ãù[ŸDåøn=a`¸ôî‹×^¿ùËðò ˆþÃðíÃw†ï¾ |Ïðè+†o ¯Xþ²ðÃ-·ÄòšÜž|Çd-ÄŒ†—@W½bâc¸qè³ÿÌà`¥á¿þ1üòãç? k¿1üþLÜÜÜ@³€€˜ù—Ãÿ³@æÓ?`„|úÊÀpùÚ†p`²a`xÄÀ dx÷ùÃÇ/@Ã~ ø h·¿^¼øÆð—…‰ƒ5¹0ÿágøË°Ä pªØsü3ƒ?Ë/ <@ÏHƒƒ˜*ø$Y>¾ûÅð‡…‘Aèß¾ß?xÅ1( 03üûù“áß·Ÿ €Ùôû7`ð¼ý'üðñïW µ} H•ŠÔH (ð’)j_0͇d@Mý ~(UD+쎸€ñÚ‹?fgggæöaì…4AµSht5£Ñ9¿ó?çþ5‚{ÄÉ“§·+¥·HI‡ãX¹TÊ& C¦§=☾8æXËîÍ›¿Væ¿ñïŽïë0Íø`LT‘Øn­5RJ¤”ÄqŒ! ªU! Êa(÷?ýô“{î À‘#¿ÛcZÑî7“!“q뉥)%B ‚ Rñ*T§oÕ¾jU=ó쳛˟ §çí=ÊŒv‹T–|>‡a˜†B)…!~5À2 ¤’J¢µÆ÷ÆoÞÀ›š'Þ>ÁÔ”Ú¿`+®ÕÔξ?ž¥\žÀqìzÅwG|×½Ö­5aiÍáÃGкU«VmY0@oïÞ£·Kþ/z{O1>1‰ÖËJZ¡cF×jxDÇDQDEüæÐë ¾ƒõë‹LMy¹Ïü?ÐÕµë•tsÃŽ§žé ¸ª'e'‰ÓÍõ|®ÿã>ü7F¦Ø´i#W¯Þ$›uË‹7íwÎîhA¹¼ñç;ôGÔÕµk+ðÊÒGW6|s=¯k'­)•$Æ0¹v3ý;;Ý!­îM›6lÞ¸ñ±B¥R%sõurÓ§Ð5ñJ¶ûÉßÿá¼îÙl:òKZpZÑ~•Ñk£AíÐìïíÝ;ü Š/½ô“sûözë1ûÏ[—fnòp[Š`ä]>¼RãÖLC÷·÷}:„˜OŸººv€Âì¼ôÝkß›Ïñ­ÕÅG·¿÷cjÿ|`ä]‚‘3\¸\ãúílw×þOBóèíÝ; ÿ§}QàrÎ*¸˾4[Ÿàsœ!œÜ~èGkØö«ÁA(îc|§˜ïº4ՙѶ.jkC4}!’‹ì›L–½â×W//üöÜØ±püì˜ÿ­/´ô|pq²3ËPë’ö6DÓZ„”  Õ¥<î7´/+œ<_:vßNü£ä?±&ß388ÕÙ(.·.m_‰lZ ³J,ÏŒ2>îhYáÔ`éØ}øÃ@Éÿƪ|OÿTg£¼Üºì‘•Èæµ ’‘[Ù0ÊxÉ+®Y¼´ð@ú.–ü¯ZzΟŸîl2.·.ä!dó: ¸úg/9Åpz¨äõá–žþþéN'¼ÜZX½Ù¼Ž#eÞ<|…ìúð@þ2 qáÂLçĵ‹­--‡~ù{Öÿg¼70Vüâ§O­ÎŠ…Ylþò6>­•Ëå©BkÍÿ3þ3z¸††IEND®B`‚qdacco-0.8.5/gui/icons/help.png000066400000000000000000000044261312163003300163110ustar00rootroot00000000000000‰PNG  IHDR szzôsBIT|dˆtEXtSoftwarewww.inkscape.org›î<¨IDATX…­W{p\Uþιç¾ö‘l^mš4iÓ´¤Ð—R§¥ŽÈ€R#*CE@ÿ`tñù8*¢ãcëˆ3ʨ£ŒtˆÂ€é­-ò–R[BZš¤M›dc6Ͻ»{真ìÝ< ´ÀxfΜ{wïù}ßïû=î=Œˆðnëì6,Ð €0B=]á»¶õN °ÎîµàâF€ÌHÃpWdÉ€ l,ô8t´›zºzÿ/Xgw;¸u?Dbõ²ævýåµ:¹Ø¬ªqÉJ;Lχš*QôôñÐûù“Ã¥¡3ƒ‘7 ÞA=]}ï™»î±{Á­›ª›.Ù}GcãZ#œŸô‘3ªøÙ_fsÃG¨à/ÐáÔÓ¥ß1ÖÙí‚[FbÙêë¯ÜÜ}5µ¥m2gKZO´ "¢@BsFŒs†Hlf ÆÒ\¤ƽ€ôOöÆÚÿº„?r:ꤞ®ü °ÎnÜ|ZÔ^Rý³[;ÒÛÚt0´ñï¨àGD–›nG£áT»Ì°g •ÆD^ʃ§‚âãܯv™ÑRk˜u).^è _{°?ïO¾1 ’—QOWp~×=ö;¤Û¶þðs­-²®!ͬ*—S-W/NÊæü|ò¿:0<|ˆ&¹a¢>ÅŦá<•¾ù‡cxƒ½´§ë Ÿ_dŒu>r¬šíWl~_±£!ʤ"`¦Hjí2á^6®ª±;Ò¹Ôx^˾Qé8zmõ†¹ãÒv »îR¶ó¡/žSÖÙm‚[¯»+®ûö5|ù†&ªrÍr,_‹KR$º!_ õÞûý£ƒ¹hp4/;V6ˆ_¾2±¡½Á¬}­<úúîÑl¢¶E@s†›­u†øîãÓ“Å‘ç3˜=½†|£bžŠø’­ÁµÍ´Ö¾9S2ÔÑéïï º)é>:Ý¡4õ}_}~[rɺɔá7r<•þz$È/Ì_½hëô‡å}~¹²J!×D 008óß¼Ÿ*i/©eeï„§Õæ¦SU×êÍNw1ƾEDåo†áØMC’ÆØŒ–ÿì çªv.œòÏ€Qvá+W'ëŠûžéñdF-Ü)Ðé -«±  `ÝÍ;*fðH,÷-Ú§'•<6*ƒBHçl0˜¬ò¼å 7sÓ·¶òwßÐdôãGψº&+~>9O«”Í8͵_?ÃÜ+*šSR„s`³àñõg6;Õw]•lœ“9_Ò·îÚŸÓM›J"•ÔPñ @•U  ’!ìêƘS&@¬"*)" ß"=©Æ’ƒ›[…s÷•©F+?‘/©~º7—u–­†FSL˜•IøiÁL4¨ŽC@à¶÷´| z\ÌËžJ3~ßΪfÓ(£‘¢›ïÿûÄI¾Ä³ZÖD°„IÄ×&@-hnIp³€W›„*ÕÏJÒ¥PÑÒ*.,Áæc^‘>&òÁ•¦Û”6æêþ¾'þ3ûjÉ)8mEP±×FÙc¨²÷¡"ŒyZÊE´ô8† K¦%À šÔQvF«’&šó ¢‚ ¬kÎB‘ž99êÛíëÃ…ÉYQ¡HDY_«¡¢ŽJ§ d)@Ç9 û ¼m¶¨S~Tn^HÚË“ ,‘dÌaŒ9¸e0,«š÷²¾”Ì5 ({ê‡Ð$*øD2ŒßÝ&À4tŸÖE þäY~L@=ÂðF¦^qFå,ŒN4Í2 !PT‹K4G\„Jjг¼Ò‡„€*Áx¨@ðF Œ¼ð€€õt‡ôŒBÄ£ê3æ’¯2…à_Ù°P?>6‡Rˆl6ç­ ¨Ir#/•F7Ñ¿ç8€©ùV ü)˜þdÓò&=SRJ˜ïv•5žœ(Mï;q*h²ÎáñéP¶¬ `ÇVô(¾7€ªãB~.›BaôeD$ç_¯:ü¼w|VÒÅM‹+5ÌçWC€íX¿ÂúÂ5Ûìõ;®”hj’¨x_)ÁJß0×ÛÐ ì1OjŒœLâ•_ì0Rqò ÚåM ¸`ÀÚ¥†u.ppà¦ÕNÕï/Ï´Þ¾:ѰoKªÝ,åÄ" ÔrM°·ØÉ‚&ïïOcêäS˜pv2‹hü±Á£'‡Å†&Ó¾¬ÕtæÀŒ­ –[¹^’tŒ¶™3ɹ¬€3À`ŸZá¤3ã¯Ëšî/â¹{ð:Å"‹PO—E˜}Cí;”Õ[ZL÷ÖMnõêÌâ²{àDq*Wìé;]<1Uˆæâ¯kS†õù¶Df©ËžޜÒG{<{Ï÷ üSD”­Øz»¯âFÄÒUN×Uk°e…éŽùZȆÅC3‘ï Yã¢àLªwb:BÇ%25Êf`[Ò¦³£ÚJÖsnÎIÿ¤èð1/íú²/ðÑ|¿í¹€uv»ÐÑ^¤êÖ¬ÛºÞ¿}{mªÚå  ¨IOJ­&)âDµ567Rã À‹HÿæÈtþ•'{mŒŒLâÀ]÷ 0zÀA"Šá\ðd´ýG· Óz¯¹¤‘o¿¼×¾¿^\T'ÊŸ§ ª„œôd°÷Ø„üÇ3ƒúG†ž{‡~ù,€!½t°wt6d™U ¬½á6Ô­¹Vz¯J†©L’eêRãÀô´§¼™¢VSžÐÂð¡ý8òÛç¡ü€>"š|[ÛïætÌKÂδ`ù¶-p2+àÖ׃1†âÄ £~þ,"Ï%¢Üm¾—ãyLFpQn¼€À'¢à¼ß4þe€D€º¤—YIEND®B`‚qdacco-0.8.5/gui/icons/qdacco.png000066400000000000000000000035371312163003300166150ustar00rootroot00000000000000‰PNG  IHDR,(…sBIT|dˆtEXtSoftwarewww.inkscape.org›î<ñIDATX…í˜{ŒÔÕÇ?÷7Ýyì.Ëʰ»Af©® +R$lÀBÀZZÛTII±Mú°öm›¦5é#­¤6FhZcI¢6µP](åa¥ˆPEY»Ë¾fvfw¿ß·°²;}Ì ¶&žäf~sî¹çû½÷w~çž{$>Hbý¯ +¾Ôâ±eÄ”SÉÓd˜…É›èùÁEšR:)á$6œd p€&Å/cI#kÖê{ô(3Œi餑äœVñºnæ>…©1Öm䯓ù¦Ã.#Ô@Jw°[“¹öý#f©ÖÒ>j¬V¤ïóoÍeÑûE¸TSéPó{X 8Òý¼¡¹Ô_zºš/ê¢ÚÛ>°;Š´é%¤7ìAÜÄ~À^…©¹ô„%t%+5“º+'<6`ëhOh ZÌqý–NE ¸9…´Žß)Œûâ†UmVec»5æàVÁBÁ:Áç5=‡ðËHshÈ ¡i¬Ñ ëÍîwÒ©å,¿h„ãÆ÷ÃãîplYh‹–„þ¦SÑÄÓûHÙÝñƒžkãéjëT‘$ÒtÚÆäÄ~X+xIïä@¤‘~Áv… ¾wÂ0¿Íªì]Þ,"é•¿vÞvGD¤µU)êþKÌIsŸ Uaêòü…‰èKV"ê5Rú «‹!\pkî4}ìÃWŸÓƒßI°1ø9sÜ}… d7;ÞLêU¶Ó‘5pe¸ùhžÃ&5q€Ÿò,]Yú:<\Ï"¦tô;ÔµZUÝîpZ7V¿¨˜ ôÄL gvÍ?õ…Ëþ ÛÇýÙi³*»eq³fÒ‘5|Ò l.¸:aªY6(âþÊQ’YºZÜÔ³´xÂPž4%¶c,ÆÚíë›H™ƒEñtºK€6šÇ¡•3<Ìlæ ŠØÅŽp"KWŒe3ì"×ÀŸ1n§ïY€Ý÷<õ¸gR¢\Q2ÆÝ‹d_áð<ûzBøˆ˜šA0Op„ö<í$&åÅîö©Ç ð–g²ø@Üøo{Ò[ d·¤$;—vð;sòë‚@}AÄ&eˆr&'( –+8¿ÖEŽYr(uzÙê[Z5ewcÌ `ÝïƒkeÀõy¶ãÂË”¼hµ‹’¢ #õ(ýèþ3sâkcëùSëêÄ=ÑKZ­qÔÚ§“.œÜ´°‹]¤³4õ¹œ%y–^æ2)y ) ·/%Cï·w˜ŠÇS¸¿ÝiÊ>{ÙFmö-ï|ª ý þ“UØt"-ä•ÅÑ•,Ð]4ª­äÛHwrËpµÄà)Ò¦1° ãªZÕâ QmŸuèßåú¥Î¬Âàâ(ýɬQÃ"óJ˜F ©f µŒ-€×J;;xs¸þæÇ˜Z·)ßâ ½[G$²ú#æ*jØÀŒÉ˼ëO + U0d„¾Æë¼[£ !Cn…®ÊÇc&x,aùÇ7»ÆÓéãMâ݉1s˜ÕqVÁ͸˜ÔCö,p„­4)1„Õy"†K{LI¯büÂ1‰ˆô«ò{Ò‚ïˆÍ™ZA[§œì–AÚÀ+ S=ê#RŸLl±B½ ËŸ¥t+cCVÚ•c89›óÈÄ6ÓÌÓüˆ&É¡b8VétxoM<‡Ó7/ƒødbs lMSÍÏø2?æ!Ê7 bhŽ‘âf/?çYm Yàü‘|0é¶‚÷ÆM`\¨yT÷ '~žqùn¾øñÁCú¯—4î ­ Çx‹m´±›&ågÑþ”Ü ü‡„/µü>¥Z’C@äIEND®B`‚qdacco-0.8.5/gui/icons/qdacco.xpm000066400000000000000000000105621312163003300166310ustar00rootroot00000000000000/* 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", "QtQtQt#b#cQtQt#d#eQtQtQt.g.g.gQtQtQtQtQt#f#g.g.g#hQtQtQtQtQtQtQt", "QtQtQt#i#jQtQt#k#eQtQtQt.g.g.g#lQtQtQtQtQt#m.g.g.3QtQtQtQtQtQtQt", "QtQtQt#n#oQtQt#p#qQtQtQt#r.g.g#sQtQtQtQtQt#t.g.g.gQtQtQtQtQtQtQt", "QtQtQt#u#vQtQt#w#xQtQtQt#y.g.g#zQtQtQtQtQt#A#B.g.gQtQtQtQtQtQtQt", "QtQtQt#C#D#E#F.G#GQtQtQt#H.l.g.u#IQtQtQtQt#J#K.g.gQtQtQtQtQtQtQt", "QtQtQt#L.G.G.G#M#NQtQtQt#O#P.g.g#QQtQtQtQt#R#S.g.gQtQtQtQtQtQtQt", "QtQtQtQt#T.G.G#U#VQtQtQtQt#W.g.g#XQtQtQtQt#Y.h.g.gQtQtQtQtQtQtQt", "QtQtQtQtQt#ZQt#0#1QtQtQtQt#2.3.g.3QtQtQt#3#4.g.g.gQtQtQtQtQtQtQt", "QtQtQtQtQtQtQt#5#6QtQtQtQt#7#8.g.g#9a.a##S.g.g.g.gQtQtQtQtQtQtQt", "QtQtQtQtQtaaabacadQtQtQtae.g.g.g.g.g.g.g.g.g.g.gafQtQtQtQtQtQtQt", "QtQtQtQtQtag#e.G.GQtQtQtah.g.g.g.g.g.g.g.g.g.gaiajQtQtQtQtQtQtQt", "QtQtQtQtQtak.G.G.GQtQtQtal.3.g.g.g.g.g.g.g.g.gamQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtanaoanQtQtQtQtQtapaqarasatauavawQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"}; qdacco-0.8.5/gui/icons/switch2.png000066400000000000000000000027101312163003300167360ustar00rootroot00000000000000‰PNG  IHDR szzôbKGDÿÿÿ ½§“ pHYs  šœtIMEÖ 1j 9€UIDATXý—mˆTUÇçÞsgfwvfvÕm}I×Ô•ÒÚÊ— ‹ÒŒÄ(3‚>jö! ´Œ0­/…$a¨Ñ !˜)ôFViŠKf©««¶ëº:»³ó~ïÌ=÷ôáøÚ®¹¹c.ÜsîyþüŸÿór…¯ÑTpÉuvD?ç{=/|¶Å¥Üóú>¤®¥¹1ÆäÑê6Cc‚ˆÉŒæd¯¦í”ËîÃyöœhãTwä)ÜQù_ÔëA¸iÉ& ¯gþ Æ7ªB`[`Y qæ­!РèÍÃæžûùOÙã=Yõ®Öú=óýŸÌ}kÉîÑÌ™:ŒÑÃ,Ry8‘‚®4´w'uQ¨«!5ÐÜ·ŽiA±9º³ðížbñ«©_Êå`¾ÿåèô€Lyi/Õáë˜2!F á·ãp䤪¡=„V@ Š(ZÔŽ„±„ i8̘#j ˆŒ ‡;}½uG×ÑÞlyŽ¿åºCÿ à®å;q½YåT: ½«['™Ð˜eÛŠÛûEÿØÚÙ»áð¦4 #_2á3¤„¬ ÉLÀw?ÿu W,Ýâoè^@ãÓ­44Œ£7çQ.¶ÒöþMVþÂ÷¿awËXîl¦; Ñ S€¶“EÿÏÖŽ-Þæ¦Gûpã³»ðäÍh?GÔneߺۮ(G,ÞÆüÛfèp8,º3ʃ[†LŽëJeÓ=¯x[&m¸ð  àE@‰ÉWì }Ãl6~èHØV\Sk„Z(A΃¡õ×Ô9!¹B>°gbF>ÑB¢&ÇÁ w^:]>x½·mozá¼æDº èHÁÁPÀs=Z§ELú.@H€êPŠƒf^öb½P À««Ö$ÚOŽ¡qdžÝqHfÁª 3ù‡mü~ïì‹CÐöáÌJVcÞ\¶„¶£GˆWC¬ †'@ÚÆ”SO \U¥;BQx5T‡ ]Õøÿغz>ù|ŽˆâU`Û‹Ç.n^\ÅUV‚¨GBH¢r Lz| –ÚïÞªõëˆGmlë|“–a¡b&\áùEðà ›úìµ&ã$j@âŒsiU€ Ì¸†0«–>ÄÃ˾¾h/o5aÉ~`Úµ¯ ¿\¬ ´¢¤ 6jóö’ûYßάkwðÁŽ1,ž5χ²Å2(mBQHŸÆVˆíã¦ÊI)xyÑ]´äæ2ç¾»q‰[ׇtÑ8·mP©=•dÀ§P2ÓPI™dîÌf2.ô _2-Ù;C¡£©ö8-•Ô@¶Ùd•qnY`i°X2ÜïƒÒ€…"Q5Õ­Ç1³`Øc RÚLºûI¦?³yp £ªÿÀ'54”Êà–Lí—¶q~ÖlÛbâ´y̬3:Ó߈ú»VæÅ€-Ê„”çëýÙ§eqnÒåܳal3³·ÑXíN9íµqÿ‰«£ðŠtN¡‰ 6KJ6PŠLª‡TO’T²+“JvæªÎ …ÖJ„¶å“Ê(,[Rp:;{9zì4í¤ºŽ“Iõ C "¶&&:J¿î÷^,º~‹ZºzûE3á•®°åòΛkppq„˘!×7dX¿òƒþއ€µ&«/(çz`Ó®ø¤²¿ñgø_ceëŒ IEND®B`‚qdacco-0.8.5/gui/loadconfig.cpp000066400000000000000000000020501312163003300163400ustar00rootroot00000000000000/* * 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-0.8.5/gui/loadconfig.h000066400000000000000000000020621312163003300160100ustar00rootroot00000000000000/* * 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-0.8.5/gui/main.cpp000066400000000000000000000421211312163003300151620ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2011, 2013, 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 . */ #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->setFather(this); resize(QSize(270,300)); installEventFilter(this); m_numberFound=0; 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(); ui.definicio->setProcess(&m_browser); 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(error(QProcess::ProcessError)),this,SLOT(FestivalError(QProcess::ProcessError))); connect(&m_festival,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(FestivalFinished(int,QProcess::ExitStatus))); connect(&m_browser,SIGNAL(error(QProcess::ProcessError)),this,SLOT(BrowserError(QProcess::ProcessError))); 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::BrowserError(QProcess::ProcessError) { showError(tr("Error executing browser. 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 NULL; } 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!=NULL) { 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(); m_numberFound=0; if (ui.llistat->count()==1) { ui.llistat->setCurrentRow(0); } if (ui.llistat->count()>1 && ui.llistat->item(1)->text()==paraula) { ui.llistat->setCurrentRow(1); } } int lib2class(QString q) { //bridge ((Main*)AuxiliarGUI::m)->AddEntryToGUI(q); } int 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; int (*ptrFunction)(QString)=NULL; 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=lletra_buscar(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"); 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.setParaula(search); reader.parse(source); WordData d = handler.getWordData(); ui.definicio->setPlainText(""); 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() { StructureParser 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=lletra_buscar(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.setParaula(buscar_orig); reader.parse(source); WordData d = handler.getWordData(); ui.definicio->setPlainText(""); if (d.getNum()!=0) { ui.definicio->show(); ui.llistat->hide(); QString definicio; for (int i=0;isetHtml(definicio); } else if (d.getNum()==0) { //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.getNum()==0) { showError(tr("Exact match not found")); } } m_numberFound=d.getNum(); } } } void Main::posarApunt (int all) { m_numberFound=0; 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) { QChar first; //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::lletra_buscar(QString q) { QChar a; if (q.at(0)=='à' || q.at(0)=='á' || q.at(0)=='â' || q.at(0)=='ä') return 'a'; if (q.at(0)=='è' || q.at(0)=='é' || q.at(0)=='ê' || q.at(0)=='ë') return 'e'; if (q.at(0)=='ì' || q.at(0)=='í' || q.at(0)=='î' || q.at(0)=='ï') return 'i'; if (q.at(0)=='ò' || q.at(0)=='ó' || q.at(0)=='ô' || q.at(0)=='ö') return 'o'; if (q.at(0)=='ù' || q.at(0)=='ú' || q.at(0)=='û' || q.at(0)=='ü') return 'u'; if (q.at(0)=='ç') return 'c'; a=q.at(0); return (a.toLatin1()); } void Main::selectItem() { QListWidgetItem *item; //Si és, és a la fila 0 item = ui.llistat->item(0); if (item!=NULL) { 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::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() { exit(0); } qdacco-0.8.5/gui/main.h000066400000000000000000000061311312163003300146300ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2009, 2011, 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 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); int AddEntryToGUI(QString); void restaura(); void quit(); ///// QString getParaula(); void setParaula(QString paraula); int getIdiomaActiu(); void setIdiomaActiu(int actiu); void buscar(); private: //TrayIcon trayicon; //static Main* ptr_main; HTTPConnection *m_http; QProcess m_browser; QProcess m_festival; Ui::Main ui; int m_idioma_actiu; int m_numberFound; 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 lletra_buscar(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 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(); public slots: void BrowserError(QProcess::ProcessError error); 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-0.8.5/gui/main.ui000066400000000000000000000227321312163003300150230ustar00rootroot00000000000000 Main 0 0 270 200 5 5 0 0 200 200 qdacco :/icons/qdacco.png 9 6 0 6 0 6 Qt::StrongFocus 0 0 Qt::StrongFocus &Search Ctrl+F false true true 5 0 0 0 100 20 true 5 5 0 0 Qt::Horizontal 4 0 0 270 31 &Help &File &Edit :/icons/editcopy.png &Copy &Copy Copy Ctrl+C :/icons/qdacco.png &About qdacco &About qdacco About editConfigure :/icons/exit.png &Quit &Quit Quit Ctrl+W :/icons/configure.png &Configure &Configure Configure Change language Change language Change dictionary Change dictionary :/icons/switch2.png Change &dictionary Change &dictionary Change dictionary Ctrl+D :/icons/editpaste.png &Paste &Paste Ctrl+V Select word Ctrl+L Qt::ApplicationShortcut TextBrowser QWidget
textbrowser.h
1
MyLineEdit QLineEdit
mylineedit.h
MyListWidget QListWidget
mylistwidget.h
paraula Buscar definicio llistat report nongui/StructureParser.h editQuitAction triggered() Main close() -1 -1 20 20
qdacco-0.8.5/gui/mylineedit.cpp000066400000000000000000000051231312163003300164020ustar00rootroot00000000000000/* * 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 . */ #include #include #include #include #include "mylineedit.h" MyLineEdit::MyLineEdit(QWidget *parent) : QLineEdit(parent) { } void MyLineEdit::setFestivalEnable(int f) { m_festival_enable=f; } void MyLineEdit::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 MyLineEdit::setParent(QObject *q) { m_parent=q; } void MyLineEdit::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 MyLineEdit::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 MyLineEdit::getPrevSpace(int pos) { while (pos>0 && this->text()[pos]!=' ') { pos--; } return pos; } int MyLineEdit::getNextSpace(int pos) { while (postext().length() && this->text()[pos]!=' ') { pos++; } return pos; } qdacco-0.8.5/gui/mylineedit.h000066400000000000000000000027041312163003300160510ustar00rootroot00000000000000/* * 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 MYLINEEDIT_H #define MYLINEEDIT_H #include //qdaccolib #include //Adds to QLineEdit capability to scroll list word box //Adds to QLineEdit capability to read words #include class MyLineEdit : public QLineEdit { Q_OBJECT public: MyLineEdit (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-0.8.5/gui/mylistwidget.cpp000066400000000000000000000031411312163003300167620ustar00rootroot00000000000000/* * 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 "mylistwidget.h" MyListWidget::MyListWidget(QWidget *parent) : QListWidget(parent) { } void MyListWidget::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 MyListWidget::setParent(QObject *q) { m_parent=q; } qdacco-0.8.5/gui/mylistwidget.h000066400000000000000000000022301312163003300164250ustar00rootroot00000000000000/* * 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 MYLISTWIDGET_H #define MYLISTWIDGET_H #include #include //qdaccolib #include class MyListWidget: public QListWidget { Q_OBJECT public: MyListWidget(QWidget *parent=0); void setParent(QObject *q); protected: void keyPressEvent(QKeyEvent *pEvent); private: QObject* m_parent; }; #endif qdacco-0.8.5/gui/oneinstance.cpp000066400000000000000000000056751312163003300165610ustar00rootroot00000000000000/* * 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-0.8.5/gui/oneinstance.h000066400000000000000000000024001312163003300162050ustar00rootroot00000000000000/* * 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-0.8.5/gui/qdacco.cpp000066400000000000000000000064761312163003300155050ustar00rootroot00000000000000/* * 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 << "Program: 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-0.8.5/gui/qdacco.qc000066400000000000000000000001051312163003300153050ustar00rootroot00000000000000 qdacco qdacco.pro qdacco-0.8.5/gui/qdacco_ca.qm000066400000000000000000000466261312163003300160040ustar00rootroot00000000000000<¸dÊÍ!¿`¡½ÝBø+[G«1'÷ªÉ/º[—b7™¶Š¥9©òd1<øùÅÅ%‚ÿ$Ÿ\¬.D¨j™(9†™š2¸Œ¯b$Ý’ÿ(¼¡ODG«Žó=H«Žô=g«Žö=†«Žü=¥«=Ä«=ãÍFå8ÈϦå(ƒϦå<Ad:`Hº™.p±¿LEåÖá#H;`í1ö öÕ>H¦ðAÿId±&}}þGμQQ%÷Y~–×E‰*FiBx9 Ã:§zyŸG6Ûy<ã±YC$ã±YIl#º)ÕqN×F®—’Š)­÷:)p TÎ46 Xcé;° hã>19 n˜Ê'Î Š‚>( :1v >$4BÜ ‡¾-Ì ˜IœG„ Ó®* NCp JC§ GÑãH³ QD@) ›ˆ¸: ÈMÄ'" E%p@“ N0Ø-› ¹ª'X ôbú0ì ß8„ Gu3 NQu?®NƒLEÎ%µ`qš.å3AufÅFßiJz æ<!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>ƒ

Many thanks to:

Jordi Pina: Graphical support,

Leopold Palomo-Avellaneda: cmake transition

and many other people for their support.

Suggestions, patches, ideas, etc. to 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 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>»

http://www.catalandictionary.org/eng/?q=node/40

Application for searching the Dacco dictionary offline.

You can find Dacco at http://www.catalandictionary.org

AboutQuant aAboutAboutSobre qdacco About qdaccoAbout AutorAuthorAboutÿÿÿÿ8Carles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011About TancaCloseAboutLlicènciaLicenseAboutzPrograma llicenciat amb GPL 3.0 Dades llicenciades amb LGPL.4Program is GPL 3.0 licensed. Data is LGPL licensed.Aboutqdacco 0.8.1 qdacco 0.8.1Aboutversió qdacco:qdacco version: Aboutÿÿÿÿ... ConfigureAvançadaAdvanced ConfigureAutocompletar: Autocomplete: Configure BàsicaBasic ConfigureNavegador:Browser: Configure CatalàCatalan ConfigureCatalà->AnglèsCatalan->English ConfigureConfigura Configure Configure.Diccionari per omissió:Default dictionary: Configure&Idioma per omissió:Default language: Configure2Directori del diccionari:Dictionary directory: Configure$Correu electrònic:E-Mail: Configure: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.%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 everytime that you launch a new qdacco you will have a new qdacco instance. Configure AnglèsEnglish ConfigureAnglès->CatalàEnglish->Catalan Configure(Executable Festival:Festival executable: ConfigureÆSi envieu suggerències o reportes errades a Dacco sabrem el teu correu electrònic. No és obligatorifIf you send some suggestions or bug reports to Dacco, we will know your e-mail. This is not compulsory Configure°Si envieu suggerències o reportes errades a Dacco sabrem el vostre nom. No és obligatoridIf you send some suggestions or bug reports to Dacco, we will know your name. This is not compulsory Configure Ignorar accents:Ignore accents: ConfigureInformació Information Configure,Distingeix majúscules: Match case: ConfigureNom:Name: ConfiguretSeleccioneu el directori "dictionaries" del vostre sistema0Select the dictionaries directory on your system Configure Instància única:Single instance: ConfigureÂAlgunes entrades tenen enllaços (per exemple fotos). Seleccioneu el navegador que voleu utilitzarPSome entries has links (e.g. to photos). Select which browser do you want to use Configure8Podeu 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> You can produce a synthesised pronunciation of your query results with qdacco. To use this feature you must have Festival installed on your system.

Festival webpage: http://www.cstr.ed.ac.uk/projects/festival/ ConfigureŽHaurieu de seleccionar el directori "dictionaries" i fer clic a "Obrir"?You should select the "dictionaries" directory and click "Open" Configure&Quant a qdacco &About qdaccoMain&Configura &ConfigureMain &Copia&CopyMain E&dita&EditMain&Fitxer&FileMain A&juda&HelpMain&Enganxa&PasteMain&Abandona&QuitMain Ce&rca&SearchMainQuant aAboutMainAcció canceladaAction cancelledMain¦No 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 CopiaCopyMain(Correctament enviat!Correctly sent!MainÿÿÿÿCtrl+CMainÿÿÿÿCtrl+DMainÿÿÿÿCtrl+FMainÿÿÿÿCtrl+LMainÿÿÿÿCtrl+VMainÿÿÿÿCtrl+WMain®Error executant Festival. Si us plau, consulteu les PUF per ajuda en aquesta incidènciaIError executing Festival. Please consult the FAQ for help with this issueMain¶Error executant el navegador. Si us plau, consulteu les PUF per ajuda en aquesta incidènciaHError executing browser. Please consult the FAQ for help with this issueMain<Coincidència exacte no trobadaExact match not foundMainrFestival ha estat executat i ha retornat el codi d'error:+Festival executed and returned error code: MainEnganxaPasteMainBConsulteu les PUF per a més ajuda/Please consult the FAQ for help with this issueMain"Problema enviant:Problem sending: MainAbandonaQuitMain8Suggereix com a nova entradaReport as new entryMain$Selecciona paraula Select wordMain$Envia comentari(s)Send comment(s)MainEnviant... Sending...Main”No hi ha configuració o és massa vella. S'obrirà el diàleg de configuracióTThere is no configuration or old configuration. A configuration dialog will now openMainŠHeu d'escriure una paraula. La paraula ha de començar amb una lletra.>You have to write a word. The word has to start with a letter.Main,Heu d'escriure quelcomYou must type somethingMainnProbablement no teniu el diccionari català per FestivalBYou probably haven't installed the Catalan dictionary for FestivalMaincat->angcat->engMainÿÿÿÿ editConfigureMainang->cateng->catMainÿÿÿÿqdaccoMain LlegirRead MyLineEditÿÿÿÿ&Cancel Suggerimentÿÿÿÿ&Ok Suggeriment6Afegeix/corregeix traduccióAdd/correct translation Suggeriment>Afegeix/corregeix exemples d'úsAdd/correct usage examples Suggeriment8Afegeix/corregeix notes d'úsAdd/correct usage notes SuggerimentÿÿÿÿAlt+C SuggerimentÿÿÿÿAlt+O Suggeriment$Envia comentari(s)Send comment(s) SuggerimentParaulaWord Suggeriment AmagaHideTrayIconAbandonaQuitTrayIcon MostraShowTrayIconˆÿA qdacco-0.8.5/gui/qdacco_ca.ts000066400000000000000000000724321312163003300160070ustar00rootroot00000000000000 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 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 Carles Pina i Estany, 2005, 2006, 2007, 2008, 2009, 2011, 2013 <!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 Basic Bàsica Default dictionary: Diccionari per omissió: 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ó 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 everytime 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. Main qdacco &Search Ce&rca Ctrl+F &Help A&juda &File &Fitxer &Edit E&dita &Copy &Copia Copy Copia Ctrl+C &About qdacco &Quant a qdacco About Quant a editConfigure &Quit &Abandona Quit Abandona Ctrl+W &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 Selecciona paraula Ctrl+L Report as new entry Suggereix com a nova entrada 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 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 Suggeriment Send comment(s) Envia comentari(s) Add/correct usage notes Afegeix/corregeix notes d'ús Word Paraula Add/correct translation Afegeix/corregeix traducció &Cancel Alt+C Add/correct usage examples Afegeix/corregeix exemples d'ús &Ok Alt+O TrayIcon Hide Amaga Show Mostra Quit Abandona qdacco-0.8.5/gui/textbrowser.h000066400000000000000000000100171312163003300162720ustar00rootroot00000000000000/* * 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 private: QProcess *m_browser_process; QString m_browser_location; int m_festival_enable; QMainWindow *m_parent; QPoint m_qpoint; int getCharPosition() { QTextCursor qtc; qtc = this->textCursor(); return qtc.position(); } void 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); } } public: TextBrowser(QWidget *&) {}; void setFather(QMainWindow *m) { m_parent=m; } void setProcess(QProcess *p_) { m_browser_process=p_; } void setBrowser(QString browser_) { m_browser_location=browser_; } void setParent(QMainWindow *m) { m_parent=m; } void setFestivalEnable(int f) { m_festival_enable=f; } virtual void setSource(const QUrl& url) { QString cmd = m_browser_location + " " + url.toString(); m_browser_process->start(cmd); Auxiliar::debug("Executing: "+cmd); } virtual void 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 getPosition() { return m_qpoint; } int getLanguage() { 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("Language to read: "+textLanguage); return textLanguage; } QString getText() { QTextCursor tc = this->textCursor(); return tc.selectedText(); } signals: void browserFailed(); void browserOpened(); }; #endif qdacco-0.8.5/gui/translation.qrc000066400000000000000000000001341312163003300165750ustar00rootroot00000000000000 qdacco_ca.qm qdacco-0.8.5/gui/trayicon.cpp000066400000000000000000000044101312163003300160650ustar00rootroot00000000000000/* * 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-0.8.5/gui/trayicon.h000066400000000000000000000024521312163003300155360ustar00rootroot00000000000000/* * 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-0.8.5/misc/000077500000000000000000000000001312163003300137015ustar00rootroot00000000000000qdacco-0.8.5/misc/qdacco.desktop000066400000000000000000000006261312163003300165320ustar00rootroot00000000000000[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 an 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 Keywords=Utility;Dictionary qdacco-0.8.5/nongui/000077500000000000000000000000001312163003300142455ustar00rootroot00000000000000qdacco-0.8.5/nongui/CMakeLists.txt000066400000000000000000000036601312163003300170120ustar00rootroot00000000000000#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 StructureParser.cpp worddata.cpp) set(qdacco_HDRS qdacco/auxiliar.h qdacco/StructureList.h qdacco/StructureParser.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-0.8.5/nongui/StructureList.cpp000066400000000000000000000055511312163003300176130ustar00rootroot00000000000000/* * 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 . */ #include //TODO: Disable order when starting to insert, enable back again after it. New elemnts are in order, coming from dictionary! StructureList::StructureList() { addEntry = NULL; m_list=""; } bool StructureList::startDocument() { //WordDataQueue queuelist(10); //wordqueue.setAutoDelete(TRUE); (Ull! Tret per Qt4!) //after_word = 0; m_word_normalized=normalize(m_word); return true; } bool StructureList::startElement( const QString&, const QString&, const QString& qName, const QXmlAttributes& ) //attributes { entrada = (qName=="Entry"); return true; } bool StructureList::endElement( const QString&, const QString&, const QString& ) //qName { return true; } bool StructureList::characters ( const QString & ch ) { if (entrada && myStartsWith(ch,m_word_normalized)) { if(addEntry == 0) { if (m_list.length()==0) { //We don't want extra \n at first //time m_list=ch; } else { m_list=m_list+"\n"+ch; } }//#endif else { addEntry(ch); } } return true; } void StructureList::setWord(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; } //TODO: same method in StructureParser.cpp bool StructureList::myStartsWith(const QString &ch, QString &word) { QString dict(ch); dict=normalize(dict); return dict.startsWith(word); } QString &StructureList::normalize(QString &word) { if (m_IgnoreCase) { word=word.toLower(); } if (m_IgnoreAccents) { word.replace('à','a'); word.replace('è','e'); word.replace('ì','i'); word.replace('ò','o'); word.replace('ù','u'); word.replace('á','a'); word.replace('é','e'); word.replace('í','i'); word.replace('ó','o'); word.replace('ú','u'); } //printf("Paraula noramlitzada: %s\n",qPrintable(word)); return word; } int StructureList::setAddFunction(int function(QString a)) { addEntry = function; return 0; } QString StructureList::getListWords() { return m_list; } qdacco-0.8.5/nongui/StructureList.h000066400000000000000000000034361312163003300172600ustar00rootroot00000000000000/* * 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 StructureList_H #define StructureList_H #include #include #include #include "worddata.h" class QString; class StructureList : public QXmlDefaultHandler { public: StructureList(); bool startDocument(); bool startElement( const QString&, const QString&, const QString& , const QXmlAttributes& attributes); bool endElement( const QString&, const QString&, const QString& ); bool characters ( const QString & ch ); void setIgnoreCase(bool capital); void setIgnoreAccents(bool capital); void setParaula(const QString &) {} WordData getWordData() { WordData h; return h;} void setWord(QString w); bool myStartsWith(const QString &ch, QString &word); QString &normalize(QString &word); int setAddFunction(int function(QString a)); QString getListWords(); private: bool entrada; int m_IgnoreCase; int m_IgnoreAccents; QString m_word; QString m_word_normalized; QString m_list; int (*addEntry)(QString q); }; #endif qdacco-0.8.5/nongui/StructureParser.cpp000066400000000000000000000064231312163003300201330ustar00rootroot00000000000000/* * 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 . */ #include "StructureParser.h" bool StructureParser::startDocument() { after_word = 0; return true; } bool StructureParser::startElement( const QString&, const QString&, const QString& qName, const QXmlAttributes& attributes) { catexamp=false; engexamp=false; entrada=false; translation=false; example=false; engnote=false; catnote=false; picture=false; plural=false; femplural=false; synonyms=false; catexamp=(qName=="catexamp"); engexamp=(qName=="engexamp"); example=(qName=="example"); engnote=(qName=="engnote"); catnote=(qName=="catnote"); plural=(qName=="plural"); femplural=(qName=="femplural"); synonyms=(qName=="synonyms"); qgender_=attributes.value("gender"); qpicture_=attributes.value("picture"); qflickr_=attributes.value("flickr"); entrada = (qName=="Entry"); if (qName == "translation") { translation = true; } if (qName == "adjectives") {qtipus_="adj";} if (qName == "adverbs") {qtipus_="adv";} if (qName == "exclamations") {qtipus_="excl";} if (qName == "nouns") {qtipus_="n";} if (qName == "prepositions") {qtipus_="prep";} if (qName == "pronouns") {qtipus_="pron";} if (qName == "verbs") {qtipus_="v";} return true; } bool StructureParser::endElement( const QString&, const QString&, const QString& qName) { if (trobat && qName=="translation") { wd.incNum(); Auxiliar::debug("Increments incNum"); } if (trobat && qName=="Entry") { //ja sortim de la paraula trobat=false; } return true; } bool StructureParser::characters ( const QString & ch ) { bool same; same=compare(ch,paraula); if (entrada && same) { trobat=true; } if (entrada && !same) { trobat=false; } if (trobat && catexamp) { wd.putCatexamp(ch); } if (trobat && engexamp) { wd.putEngexamp(ch); } if (trobat && example) { wd.putExample(ch); } if (trobat && translation) { wd.putDefinition(ch); wd.putGender(qgender_); wd.putTipus(qtipus_); if (!qpicture_.isEmpty()) { wd.putPicture(qpicture_); } if (!qflickr_.isEmpty()) { wd.putFlickr(qflickr_); } } if (trobat && engnote) { wd.putEngnote(ch); } if (trobat && catnote) { wd.putCatnote(ch); } if (trobat && plural) { wd.putPlural(ch); } if (trobat && femplural) { wd.putFemplural(ch); } if (trobat && synonyms) { wd.putSynonyms(ch); } return true; } void StructureParser::setParaula(const QString &s) { paraula=s; } WordData StructureParser::getWordData() { return wd; } bool StructureParser::compare(QString ch, QString word) { return ch.compare(word)==0; } qdacco-0.8.5/nongui/StructureParser.h000066400000000000000000000035011312163003300175720ustar00rootroot00000000000000/* * 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 STRUCTUREPARSER_H #define STRUCTUREPARSER_H #include #include #include #include "worddata.h" #include "auxiliar.h" class QString; class StructureParser : public QXmlDefaultHandler { public: bool startDocument(); bool startElement( const QString&, const QString&, const QString& , const QXmlAttributes& attributes); bool endElement( const QString&, const QString&, const QString& ); bool characters ( const QString & ch ); void setParaula(const QString &s); void setPdebug(int i); WordData getWordData(); int ensenyarLlistat(); QQueue getWordQueue(); bool esBuida(); QString seguent(); void setCapital(bool capital); private: bool compare(QString ch, QString word); bool entrada,translation,catexamp,engexamp,tipus,example; bool engnote,catnote,picture,plural,femplural; bool synonyms; bool trobat; QString paraula,definicio,qcatexamp,qengexamp; QString qtipus,qgender,qgender_,qtipus_,qpicture_,qflickr_; WordData wd; int after_word; }; #endif qdacco-0.8.5/nongui/TODO000066400000000000000000000001301312163003300147270ustar00rootroot00000000000000-Clean up to be more public library (not only for qdacco and textdacco) -Documentation! qdacco-0.8.5/nongui/auxiliar.cpp000066400000000000000000000056151312163003300165760ustar00rootroot00000000000000/* * This file is part of qdacco * qdacco: offline Dacco Catalan <-> English dictionary * * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2011, 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 . */ #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 a; if (q.at(0)=='à' || q.at(0)=='á' || q.at(0)=='â' || q.at(0)=='ä') return 'a'; if (q.at(0)=='è' || q.at(0)=='é' || q.at(0)=='ê' || q.at(0)=='ë') return 'e'; if (q.at(0)=='ì' || q.at(0)=='í' || q.at(0)=='î' || q.at(0)=='ï') return 'i'; if (q.at(0)=='ò' || q.at(0)=='ó' || q.at(0)=='ô' || q.at(0)=='ö') return 'o'; if (q.at(0)=='ù' || q.at(0)=='ú' || q.at(0)=='û' || q.at(0)=='ü') return 'u'; if (q.at(0)=='ç') return 'c'; a=q.at(0).toLower(); return (a.toLatin1()); } qdacco-0.8.5/nongui/auxiliar.h000066400000000000000000000032311312163003300162330ustar00rootroot00000000000000/* * 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-0.8.5/nongui/worddata.cpp000066400000000000000000000145311312163003300165620ustar00rootroot00000000000000/* * 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 . */ #include #include "worddata.h" WordData::WordData() { num=0; } void WordData::putDefinition(QString q) { if (num"; } else { printError("example"); } } void WordData::putEngnote(QString q) { if (num"+q+""; } else { printError("picture"); } } void WordData::putFlickr(QString q) { if (num"+q+""; } else { printError("flickr"); } } void WordData::putPlural(QString q) { if (num","\n"); t=t.replace("",""); t=t.replace("",""); t=t.replace("",""); t=t.replace("",""); //printf("paraula: %s\n",qPrintable(t)); int urlstart,urlend; int endloop=0; // TODO: don't write what we don't want // Tricky way to remove urlstart) { t=t.remove(urlstart,urlend-urlstart+2); } else { endloop=1; } } t=t.replace("",""); return t; } QString WordData::getEntry(int i) { return getHTMLEntry(i); } QString WordData::getTextEntry(int i) { QString p=getHTMLEntry(i); //Note: usually to treat with HTML without specialized library //is "crap". But since I added only this tag's, I can remove myself :-) p=p.replace("
","\n"); p=p.replace("",""); p=p.replace("",""); p=p.replace("",""); p=p.replace("",""); return p; } QString WordData::getHTMLEntry(int i) { QString ret; QString gender; int picture=false; if (!(getGender(i)).isNull()) { gender=" ("+getGender(i)+")"; } ret=""+getTipus(i)+gender+"
"; ret+=getDefinition(i); //Warning/TODO: this constants strings are also used in textbrowser.h if (!(getPlural(i)).isNull()) { ret+="
"+QObject::tr("Plural: ")+""+getPlural(i); } if (!(getFemplural(i)).isNull()) { ret+="
"+QObject::tr("Female plural: ")+""+getFemplural(i); } if (!(getSynonyms(i)).isNull()) { ret+="
"+QObject::tr("Synonym(s): " )+""+getSynonyms(i); } if (!(getCatexamp(i)).isNull()) { ret+="
"+QObject::tr("Catalan example(s): ")+""+getCatexamp(i); } if (!(getEngexamp(i)).isNull()) { ret+="
"+QObject::tr("English example(s): ")+""+getEngexamp(i); } if (!(getExample(i)).isNull()) { ret+="
"+QObject::tr("Example(s): ")+""+getExample(i); } if (!(getEngnote(i)).isNull()) { ret+="
"+QObject::tr("English notes: ")+""+getEngnote(i); } if (!(getCatnote(i)).isNull()) { ret+="
"+QObject::tr("Catalan notes: ")+""+getCatnote(i); } if (!(getPicture(i)).isNull()) { ret+="
"; ret+="
"+QObject::tr("Picture: ")+" "+getPicture(i); picture=true; } if (!(getFlickr(i)).isNull()) { if (picture==false) { ret+="
"; } ret+="
"+QObject::tr("Flickr: ")+" "+getFlickr(i); } return ret; } void WordData::printError(QString tag) { qDebug() << "ERROR: not saving" << tag << "because there is more than 50"; } qdacco-0.8.5/nongui/worddata.h000066400000000000000000000045001312163003300162220ustar00rootroot00000000000000/* * 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 DADESPARAULA_H #define DADESPARAULA_H #include #include #define MAX_WORDS 50 class WordData { public: WordData(); void putDefinition(QString q); void putGender(QString q); void putTipus(QString q); void putCatexamp(QString q); void putEngexamp(QString q); void putExample(QString q); void putEngnote(QString q); void putCatnote(QString q); void putPicture(QString q); void putFlickr(QString q); void putPlural(QString q); void putFemplural(QString q); void putSynonyms(QString q); QString getDefinition(int i); QString getGender(int i); QString getTipus(int i); QString getCatexamp(int i); QString getEngexamp(int i); QString getExample(int i); QString getEngnote(int i); QString getCatnote(int i); QString getPicture(int i); QString getFlickr(int i); QString getPlural(int i); QString getFemplural(int i); QString getSynonyms(int i); int getNum(); void incNum(); QString getEntry(int i); QString getTextEntry(int i); QString getHTMLEntry(int i); static QString HTML2Text(QString t); private: void printError(QString tag); int num; QString definition[MAX_WORDS]; QString gender[MAX_WORDS]; QString tipus[MAX_WORDS]; QString catexamp[MAX_WORDS]; QString engexamp[MAX_WORDS]; QString example[MAX_WORDS]; QString engnote[MAX_WORDS]; QString catnote[MAX_WORDS]; QString picture[MAX_WORDS]; QString flickr[MAX_WORDS]; QString plural[MAX_WORDS]; QString femplural[MAX_WORDS]; QString synonyms[MAX_WORDS]; }; /* class WordDataConversor { static QString HTML2Text(QString t); } */ #endif