pax_global_header00006660000000000000000000000064111661541620014515gustar00rootroot0000000000000052 comment=3b337c416fb2dc495011fc044dae832cd898d548 qedje-mainline/000077500000000000000000000000001116615416200137435ustar00rootroot00000000000000qedje-mainline/.gitignore000066400000000000000000000002331116615416200157310ustar00rootroot00000000000000build *.o moc_*.cpp *.pyc *.pyo *~ Makefile *.edj *.pickle *#* gmon.out canola.prof *.so *.so.* *.swp *.swo *.out package-all docs libqedje.prl pkgconfig qedje-mainline/AUTHORS.libedje000066400000000000000000000004361116615416200164130ustar00rootroot00000000000000These are the authors of libedje. QEdje incorporates work from libedje. --- The Rasterman (Carsten Haitzler) Tilman Sauerbeck (tilman at code-monkey de) ZigsMcKenzie Cedric BAIL Brian Mattern qedje-mainline/CMakeLists.txt000066400000000000000000000032771116615416200165140ustar00rootroot00000000000000project(qedje) cmake_minimum_required(VERSION 2.6) set(CMAKE_MODULE_PATH ${qedje_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) include(MacroOutOfSourceBuild) macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please, see INSTALL.") include(FindPkgConfig) find_package(Qt4 REQUIRED) find_package(QZion REQUIRED) find_package(Eet REQUIRED) include(${QT_USE_FILE}) if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "RelWithDebInfo") endif (NOT CMAKE_BUILD_TYPE) message("-- Using build type: ${CMAKE_BUILD_TYPE}") # update cxx flags for build types set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DQT_NO_DEBUG_OUTPUT") set(CMAKE_CXX_FLAGS_MINSIZERELEASE "${CMAKE_CXX_FLAGS_MINSIZERELEASE} -DQT_NO_DEBUG_OUTPUT") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DQT_NO_DEBUG_OUTPUT") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") option(BUILD_TESTS "Build the test suite" OFF) option(BUILD_TOOLS "Build QEdje tools" OFF) set(QEDJE_LIB_MAJOR_VERSION "0") set(QEDJE_LIB_MINOR_VERSION "4") set(QEDJE_LIB_PATCH_VERSION "0") set(QEDJE_LIB_VERSION_STRING "${QEDJE_LIB_MAJOR_VERSION}.${QEDJE_LIB_MINOR_VERSION}.${QEDJE_LIB_PATCH_VERSION}") # Suffix for x86/x86_64: SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" ) SET(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") include_directories(${EET_INCLUDE_DIRS} ${QZION_INCLUDE_DIRS}) add_subdirectory(src) if (NOT SKIP_TOOLS) add_subdirectory(tools) endif (NOT SKIP_TOOLS) if (NOT SKIP_PYTHON_BINDINGS AND QZION_SIP_DIR) add_subdirectory(python) endif (NOT SKIP_PYTHON_BINDINGS AND QZION_SIP_DIR) if (NOT SKIP_TESTS) add_subdirectory(tests) endif (NOT SKIP_TESTS) qedje-mainline/COPYING000066400000000000000000001047271116615416200150110ustar00rootroot00000000000000 GNU LESSER 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 Lesser 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 LESSER 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 Lesser 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser 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 Lesser 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 Lesser 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 Lesser General Public License instead of this License. But first, please read . qedje-mainline/COPYING-PLAIN.libedje000066400000000000000000000040751116615416200172420ustar00rootroot00000000000000This is not QEdje license, see COPYING and README for details. This file is referred by the license of work incorporated by QEdje. --- Plain English Copyright Notice This file is not intended to be the actual License. The reason this file exists is that we here are programmers and engineers. We aren't lawyers. We provide licenses that we THINK say the right things, but we have our own intentions at heart. This is a plain-english explanation of what those intentions are, and if you follow them you will be within the "spirit" of the license. The intent is for us to enjoy writing software that is useful to us (the AUTHORS) and allow others to use it freely and also benefit from the work we put into making it. We don't want to restrict others using it. They should not *HAVE* to make the source code of the applications they write that simply link to these libraries (be that statically or dynamically), or for them to be limited as to what license they choose to use (be it open, closed or anything else). But we would like to know you are using these libraries. We simply would like to know that it has been useful to someone. This is why we ask for acknowledgement of some sort. You can do what you want with the source of this software - it doesn't matter. We still have it here for ourselves and it is open and free to use and download and play with. It can't be taken away. We don't really mind what you do with the source to your software. We would simply like to know that you are using it - especially if it makes it to a commerical product. If you simply e-mail all the AUTHORS (see COPYING and AUTHORS files) telling us, and then make sure you include a paragraph or page in the manual for the product with the copyright notice and state that you used this software, we will be very happy. If you want to contribute back modifications and fixes you may have made we will welcome those too with open arms (generally). If you want help with changes needed, ports needed or features to be added, arrangements can be easily made with some dialogue. Carsten Haitzler qedje-mainline/COPYING.libedje000066400000000000000000000035521116615416200164000ustar00rootroot00000000000000This is not QEdje license, see COPYING and README for details. QEdje incorporates work covered by the following copyright and permission notice (the named files are available as AUTHORS.libedje and COPYING-PLAIN.libedje): --- Copyright (C) 2000 Carsten Haitzler and various contributors (see AUTHORS) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies of the Software and its Copyright notices. In addition publicly documented acknowledgment must be given that this software has been used if no source code of this software is made available publicly. This includes acknowledgments in either Copyright notices, Manuals, Publicity and Marketing documents or any documentation provided with any product containing this software. This License does not apply to any software that links to the libraries provided by this software (statically or dynamically), but only to the software provided. Please see the COPYING.PLAIN for a plain-english explanation of this notice and it's intent. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. qedje-mainline/INSTALL000066400000000000000000000010361116615416200147740ustar00rootroot00000000000000Using cmake =========== With cmake we create a separate directory for the build, that will have the generated files $ mkdir build $ cd build $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. $ make $ make install Use the option "-DSKIP_TOOLS=ON" to skip the build of the QEdje viewer utility. Use the option "-DSKIP_TESTS=ON" to skip the build of the tests. Use the option "-DSKIP_PYTHON_BINDINGS=ON" to skip the process of building the python bindings. You have to install QZion and QZion bindings before compiling the QEdje bindings. qedje-mainline/NEWS000066400000000000000000000017251116615416200144470ustar00rootroot00000000000000Version 0.4 ------------ This release includes the change from qmake to cmake and a lot of bug fixes. A brief changelog follows: * Remove Eet.h from qedje.h * QEdje: Make it possible to create QEdje instance without canvas * Fix Segmentation Fault when clipping to non-rect items. * Add more Transfer logic for bindings of QEdje::partSwallow * Fix bug when disconnecting an Edje signal during the emission of the same QEdje * Refactor disconnectEdjeSignals() variants to reuse code * Removing internal receivers list from QEdje * Warn the user when deleting an object during its signal notification * QRunningProgram: fix calling endProgram() twice in some cases * Fix destruction of running programs in QEdje dtor * Python: make swallow affect object ownership * Adjusted QEdjeImage to copy pixels using bits() method. * Allow qedje_viewer to select a group from the command line * Activating Border into QEdjeImage * Add support for "mouse,wheel,*" edje signals qedje-mainline/README000066400000000000000000000020141116615416200146200ustar00rootroot00000000000000QEDJE ===== See http://code.openbossa.org/projects/qedje/ for more details. ABOUT QEDJE LICENSE =================== QEdje 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. QEdje 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 QEdje. If not, see . QEdje incorporates work from libedje, covered by the license described in the file COPYING.libedje. The files COPYING-PLAIN.libedje and AUTHORS.libedje are referred by libedje license. The source files that incorporate this work have notices in their headers. You can find libedje code in . qedje-mainline/ROADMAP000066400000000000000000000002231116615416200147460ustar00rootroot00000000000000QEDJE ROADMAP ============= 0.5 --- General bugfixes Future Versions ---------------- Full compatibility with Edje Edje scripting QProxyWidgets qedje-mainline/TODO000066400000000000000000000016721116615416200144410ustar00rootroot00000000000000DIFFERENCES FROM EDJE ===================== These are the missing features from the original Edje (EFL): * embryo support; * embedded font support; * data section support; * spectra support; * styles support; * Parts: * use_alternate_font_metrics; * repeat_events; * dragable; * pointer_mode; * ignore_flags; * gradient type; * precise_is_inside; * text's effects (shadow, outline, etc). * Description: * step support; * aspect support; * fixed support; * aspect_preference; * Image: * border support; * middle support; * fill support; * Text: * text_class support; * fit; * text_source; * elipsis; * style (textblock); * min/max; * effects; * Programs: * mouse,in signal support; * mouse,out signal support; * emit signal load/show/hide/resize support; * program,start signal support; * program,stop signal support; qedje-mainline/cmake/000077500000000000000000000000001116615416200150235ustar00rootroot00000000000000qedje-mainline/cmake/modules/000077500000000000000000000000001116615416200164735ustar00rootroot00000000000000qedje-mainline/cmake/modules/COPYING-CMAKE-SCRIPTS000066400000000000000000000024561116615416200215000ustar00rootroot00000000000000Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. qedje-mainline/cmake/modules/FindEet.cmake000066400000000000000000000020011116615416200210040ustar00rootroot00000000000000# - Try to find Eet # Once done this will define # # EET_INCLUDE_DIRS - the Eet include directory # EET_LIBRARIES - Link these to use Eet # EET_CFLAGS_OTHER - Compiler switches required for using Eet # # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls if( NOT WIN32 ) find_package(PkgConfig) pkg_check_modules(PC_Eet eet>=1.0.0) endif( NOT WIN32 ) # use this just to create a nice message at FindPackageHandleStandardArgs if (PC_Eet_FOUND) FIND_LIBRARY(Eet_LIBRARY NAMES eet PATHS ${PC_Eet_LIBDIR} ${PC_Eet_LIBRARY_DIRS} ) SET(EET_LIBRARIES ${Eet_LIBRARY}) SET(EET_INCLUDE_DIRS ${PC_Eet_INCLUDE_DIRS}) else (PC_Eet_FOUND) MESSAGE(STATUS "Could not find Eet. Please download it here (http://dev.openbossa.org/trac/qedje).") endif (PC_Eet_FOUND) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(Eet DEFAULT_MSG Eet_LIBRARY) # show Eet_LIBRARY variables only in the advanced view MARK_AS_ADVANCED(Eet_LIBRARY)qedje-mainline/cmake/modules/FindLibPython.py000066400000000000000000000010111116615416200215470ustar00rootroot00000000000000# Copyright (c) 2007, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. import sys import distutils.sysconfig print("exec_prefix:%s" % sys.exec_prefix) print("short_version:%s" % sys.version[:3]) print("long_version:%s" % sys.version.split()[0]) print("py_inc_dir:%s" % distutils.sysconfig.get_python_inc()) print("site_packages_dir:%s" % distutils.sysconfig.get_python_lib(plat_specific=1)) qedje-mainline/cmake/modules/FindPyQt.py000066400000000000000000000013111116615416200205370ustar00rootroot00000000000000# Copyright (c) 2007, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. import PyQt4.pyqtconfig pyqtcfg = PyQt4.pyqtconfig.Configuration() print("pyqt_version:%06.0x" % pyqtcfg.pyqt_version) print("pyqt_version_str:%s" % pyqtcfg.pyqt_version_str) pyqt_version_tag = "" in_t = False for item in pyqtcfg.pyqt_sip_flags.split(' '): if item=="-t": in_t = True elif in_t: if item.startswith("Qt_4"): pyqt_version_tag = item else: in_t = False print("pyqt_version_tag:%s" % pyqt_version_tag) print("pyqt_sip_dir:%s" % pyqtcfg.pyqt_sip_dir) qedje-mainline/cmake/modules/FindPyQt4.cmake000066400000000000000000000034471116615416200212670ustar00rootroot00000000000000# Find PyQt4 # ~~~~~~~~~~ # Copyright (c) 2007-2008, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # PyQt4 website: http://www.riverbankcomputing.co.uk/pyqt/index.php # # Find the installed version of PyQt4. FindPyQt4 should only be called after # Python has been found. # # This file defines the following variables: # # PYQT4_VERSION - The version of PyQt4 found expressed as a 6 digit hex number # suitable for comparision as a string # # PYQT4_VERSION_STR - The version of PyQt4 as a human readable string. # # PYQT4_VERSION_TAG - The PyQt version tag using by PyQt's sip files. # # PYQT4_SIP_DIR - The directory holding the PyQt4 .sip files. IF(EXISTS PYQT4_VERSION) # Already in cache, be silent SET(PYQT4_FOUND TRUE) ELSE(EXISTS PYQT4_VERSION) FIND_FILE(_find_pyqt_py FindPyQt.py PATHS ${CMAKE_MODULE_PATH}) EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_pyqt_py} OUTPUT_VARIABLE pyqt_config) IF(pyqt_config) STRING(REGEX REPLACE "^pyqt_version:([^\n]+).*$" "\\1" PYQT4_VERSION ${pyqt_config}) STRING(REGEX REPLACE ".*\npyqt_version_str:([^\n]+).*$" "\\1" PYQT4_VERSION_STR ${pyqt_config}) STRING(REGEX REPLACE ".*\npyqt_version_tag:([^\n]+).*$" "\\1" PYQT4_VERSION_TAG ${pyqt_config}) STRING(REGEX REPLACE ".*\npyqt_sip_dir:([^\n]+).*$" "\\1" PYQT4_SIP_DIR ${pyqt_config}) SET(PYQT4_FOUND TRUE) ENDIF(pyqt_config) IF(PYQT4_FOUND) IF(NOT PYQT4_FIND_QUIETLY) MESSAGE(STATUS "Found PyQt4 version: ${PYQT4_VERSION_STR}") ENDIF(NOT PYQT4_FIND_QUIETLY) ELSE(PYQT4_FOUND) IF(PYQT4_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could not find Python") ENDIF(PYQT4_FIND_REQUIRED) ENDIF(PYQT4_FOUND) ENDIF(EXISTS PYQT4_VERSION) qedje-mainline/cmake/modules/FindPythonLibrary.cmake000066400000000000000000000067261116615416200231170ustar00rootroot00000000000000# Find Python # ~~~~~~~~~~~ # Copyright (c) 2007, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # Find the Python interpreter and related Python directories. # # This file defines the following variables: # # PYTHON_EXECUTABLE - The path and filename of the Python interpreter. # # PYTHON_SHORT_VERSION - The version of the Python interpreter found, # excluding the patch version number. (e.g. 2.5 and not 2.5.1)) # # PYTHON_LONG_VERSION - The version of the Python interpreter found as a human # readable string. # # PYTHON_SITE_PACKAGES_DIR - Location of the Python site-packages directory. # # PYTHON_INCLUDE_PATH - Directory holding the python.h include file. # # PYTHON_LIBRARY, PYTHON_LIBRARIES- Location of the Python library. INCLUDE(CMakeFindFrameworks) IF(EXISTS PYTHON_LIBRARY) # Already in cache, be silent SET(PYTHONLIBRARY_FOUND TRUE) ELSE(EXISTS PYTHON_LIBRARY) FIND_PACKAGE(PythonInterp REQUIRED) FIND_FILE(_find_lib_python_py FindLibPython.py PATHS ${CMAKE_MODULE_PATH}) EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_lib_python_py} OUTPUT_VARIABLE python_config) IF(python_config) STRING(REGEX REPLACE ".*exec_prefix:([^\n]+).*$" "\\1" PYTHON_PREFIX ${python_config}) STRING(REGEX REPLACE ".*\nshort_version:([^\n]+).*$" "\\1" PYTHON_SHORT_VERSION ${python_config}) STRING(REGEX REPLACE ".*\nlong_version:([^\n]+).*$" "\\1" PYTHON_LONG_VERSION ${python_config}) STRING(REGEX REPLACE ".*\npy_inc_dir:([^\n]+).*$" "\\1" PYTHON_INCLUDE_PATH ${python_config}) STRING(REGEX REPLACE ".*\nsite_packages_dir:([^\n]+).*$" "\\1" PYTHON_SITE_PACKAGES_DIR ${python_config}) STRING(REGEX REPLACE "([0-9]+).([0-9]+)" "\\1\\2" PYTHON_SHORT_VERSION_NO_DOT ${PYTHON_SHORT_VERSION}) set(PYTHON_LIBRARY_NAMES python${PYTHON_SHORT_VERSION} python${PYTHON_SHORT_VERSION_NO_DOT}) if(WIN32) STRING(REPLACE "\\" "/" PYTHON_SITE_PACKAGES_DIR ${PYTHON_SITE_PACKAGES_DIR}) endif(WIN32) FIND_LIBRARY(PYTHON_LIBRARY NAMES ${PYTHON_LIBRARY_NAMES} PATHS ${PYTHON_PREFIX}/lib ${PYTHON_PREFIX}/libs NO_DEFAULT_PATH) SET(PYTHONLIBRARY_FOUND TRUE) ENDIF(python_config) # adapted from cmake's builtin FindPythonLibs if(APPLE) CMAKE_FIND_FRAMEWORKS(Python) SET(PYTHON_FRAMEWORK_INCLUDES) IF(Python_FRAMEWORKS) # If a framework has been selected for the include path, # make sure "-framework" is used to link it. IF("${PYTHON_INCLUDE_PATH}" MATCHES "Python\\.framework") SET(PYTHON_LIBRARY "") SET(PYTHON_DEBUG_LIBRARY "") ENDIF("${PYTHON_INCLUDE_PATH}" MATCHES "Python\\.framework") IF(NOT PYTHON_LIBRARY) SET (PYTHON_LIBRARY "-framework Python" CACHE FILEPATH "Python Framework" FORCE) ENDIF(NOT PYTHON_LIBRARY) SET(PYTHONLIBRARY_FOUND TRUE) ENDIF(Python_FRAMEWORKS) ENDIF(APPLE) IF(PYTHONLIBRARY_FOUND) SET(PYTHON_LIBRARIES ${PYTHON_LIBRARY}) IF(NOT PYTHONLIBRARY_FIND_QUIETLY) MESSAGE(STATUS "Found Python executable: ${PYTHON_EXECUTABLE}") MESSAGE(STATUS "Found Python version: ${PYTHON_LONG_VERSION}") MESSAGE(STATUS "Found Python library: ${PYTHON_LIBRARY}") ENDIF(NOT PYTHONLIBRARY_FIND_QUIETLY) ELSE(PYTHONLIBRARY_FOUND) IF(PYTHONLIBRARY_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could not find Python") ENDIF(PYTHONLIBRARY_FIND_REQUIRED) ENDIF(PYTHONLIBRARY_FOUND) ENDIF (EXISTS PYTHON_LIBRARY) qedje-mainline/cmake/modules/FindQZion.cmake000066400000000000000000000020641116615416200213400ustar00rootroot00000000000000# - Try to find QZion # Once done this will define # # QZION_INCLUDE_DIRS - the QZion include directory # QZION_LIBRARIES - Link these to use QZion # QZION_CFLAGS_OTHER - Compiler switches required for using QZion # # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls if( NOT WIN32 ) find_package(PkgConfig) pkg_check_modules(PC_QZion qzion>=0.4.0) endif( NOT WIN32 ) # use this just to create a nice message at FindPackageHandleStandardArgs if (PC_QZion_FOUND) FIND_LIBRARY(QZion_LIBRARY NAMES qzion PATHS ${PC_QZion_LIBDIR} ${PC_QZion_LIBRARY_DIRS} ) SET(QZION_LIBRARIES ${QZion_LIBRARY}) SET(QZION_INCLUDE_DIRS ${PC_QZion_INCLUDE_DIRS}) else (PC_QZion_FOUND) MESSAGE(STATUS "Could not find QZion. Please download it here (http://dev.openbossa.org/trac/qedje).") endif (PC_QZion_FOUND) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(QZion DEFAULT_MSG QZion_LIBRARY) # show QZion_LIBRARY variables only in the advanced view MARK_AS_ADVANCED(QZion_LIBRARY) qedje-mainline/cmake/modules/FindSIP.cmake000066400000000000000000000036071116615416200207370ustar00rootroot00000000000000# Find SIP # ~~~~~~~~ # Copyright (c) 2007, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # SIP website: http://www.riverbankcomputing.co.uk/sip/index.php # # Find the installed version of SIP. FindSIP should be called after Python # has been found. # # This file defines the following variables: # # SIP_VERSION - The version of SIP found expressed as a 6 digit hex number # suitable for comparision as a string. # # SIP_VERSION_STR - The version of SIP found as a human readable string. # # SIP_EXECUTABLE - Path and filename of the SIP command line executable. # # SIP_INCLUDE_DIR - Directory holding the SIP C++ header file. # # SIP_DEFAULT_SIP_DIR - Default directory where .sip files should be installed # into. IF(SIP_VERSION) # Already in cache, be silent SET(SIP_FOUND TRUE) ELSE(SIP_VERSION) FIND_FILE(_find_sip_py FindSIP.py PATHS ${CMAKE_MODULE_PATH}) EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_sip_py} OUTPUT_VARIABLE sip_config) IF(sip_config) STRING(REGEX REPLACE "^sip_version:([^\n]+).*$" "\\1" SIP_VERSION ${sip_config}) STRING(REGEX REPLACE ".*\nsip_version_str:([^\n]+).*$" "\\1" SIP_VERSION_STR ${sip_config}) STRING(REGEX REPLACE ".*\nsip_bin:([^\n]+).*$" "\\1" SIP_EXECUTABLE ${sip_config}) STRING(REGEX REPLACE ".*\ndefault_sip_dir:([^\n]+).*$" "\\1" SIP_DEFAULT_SIP_DIR ${sip_config}) STRING(REGEX REPLACE ".*\nsip_inc_dir:([^\n]+).*$" "\\1" SIP_INCLUDE_DIR ${sip_config}) SET(SIP_FOUND TRUE) ENDIF(sip_config) IF(SIP_FOUND) IF(NOT SIP_FIND_QUIETLY) MESSAGE(STATUS "Found SIP version: ${SIP_VERSION_STR}") ENDIF(NOT SIP_FIND_QUIETLY) ELSE(SIP_FOUND) IF(SIP_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could not find SIP") ENDIF(SIP_FIND_REQUIRED) ENDIF(SIP_FOUND) ENDIF(SIP_VERSION) qedje-mainline/cmake/modules/FindSIP.py000066400000000000000000000010041116615416200202740ustar00rootroot00000000000000# FindSIP.py # # Copyright (c) 2007, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. import sys import sipconfig sipcfg = sipconfig.Configuration() print("sip_version:%06.0x" % sipcfg.sip_version) print("sip_version_str:%s" % sipcfg.sip_version_str) print("sip_bin:%s" % sipcfg.sip_bin) print("default_sip_dir:%s" % sipcfg.default_sip_dir) print("sip_inc_dir:%s" % sipcfg.sip_inc_dir) qedje-mainline/cmake/modules/MacroOutOfSourceBuild.cmake000066400000000000000000000007201116615416200236530ustar00rootroot00000000000000# Ensures that we do an out of source build MACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD MSG) STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource) GET_FILENAME_COMPONENT(PARENTDIR ${CMAKE_SOURCE_DIR} PATH) STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${PARENTDIR}" insourcesubdir) IF(insource OR insourcesubdir) MESSAGE(FATAL_ERROR "${MSG}") ENDIF(insource OR insourcesubdir) ENDMACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD) qedje-mainline/cmake/modules/PythonCompile.py000066400000000000000000000001621116615416200216360ustar00rootroot00000000000000# By Simon Edwards # This file is in the public domain. import py_compile py_compile.main() qedje-mainline/cmake/modules/PythonMacros.cmake000066400000000000000000000042721116615416200221300ustar00rootroot00000000000000# Python macros # ~~~~~~~~~~~~~ # Copyright (c) 2007, Simon Edwards # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # This file defines the following macros: # # PYTHON_INSTALL (SOURCE_FILE DESINATION_DIR) # Install the SOURCE_FILE, which is a Python .py file, into the # destination directory during install. The file will be byte compiled # and both the .py file and .pyc file will be installed. GET_FILENAME_COMPONENT(PYTHON_MACROS_MODULE_PATH ${CMAKE_CURRENT_LIST_FILE} PATH) ADD_CUSTOM_TARGET(compile_python_files ALL) MACRO(PYTHON_INSTALL SOURCE_FILE DESINATION_DIR) FIND_FILE(_python_compile_py PythonCompile.py PATHS ${CMAKE_MODULE_PATH}) # Install the source file. INSTALL(FILES ${SOURCE_FILE} DESTINATION ${DESINATION_DIR}) # Byte compile and install the .pyc file. GET_FILENAME_COMPONENT(_absfilename ${SOURCE_FILE} ABSOLUTE) GET_FILENAME_COMPONENT(_filename ${SOURCE_FILE} NAME) GET_FILENAME_COMPONENT(_filenamebase ${SOURCE_FILE} NAME_WE) GET_FILENAME_COMPONENT(_basepath ${SOURCE_FILE} PATH) SET(_bin_py ${CMAKE_CURRENT_BINARY_DIR}/${_basepath}/${_filename}) SET(_bin_pyc ${CMAKE_CURRENT_BINARY_DIR}/${_basepath}/${_filenamebase}.pyc) FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_basepath}) SET(_message "-DMESSAGE=Byte-compiling ${_bin_py}") GET_FILENAME_COMPONENT(_abs_bin_py ${_bin_py} ABSOLUTE) IF(_abs_bin_py STREQUAL ${_absfilename}) # Don't copy the file onto itself. ADD_CUSTOM_COMMAND( TARGET compile_python_files COMMAND ${CMAKE_COMMAND} -E echo ${message} COMMAND ${PYTHON_EXECUTABLE} ${_python_compile_py} ${_bin_py} DEPENDS ${_absfilename} ) ELSE(_abs_bin_py STREQUAL ${_absfilename}) ADD_CUSTOM_COMMAND( TARGET compile_python_files COMMAND ${CMAKE_COMMAND} -E echo ${message} COMMAND ${CMAKE_COMMAND} -E copy ${_absfilename} ${_bin_py} COMMAND ${PYTHON_EXECUTABLE} ${_python_compile_py} ${_bin_py} DEPENDS ${_absfilename} ) ENDIF(_abs_bin_py STREQUAL ${_absfilename}) INSTALL(FILES ${_bin_pyc} DESTINATION ${DESINATION_DIR}) ENDMACRO(PYTHON_INSTALL) qedje-mainline/cmake/modules/SIPMacros.cmake000066400000000000000000000115261116615416200213020ustar00rootroot00000000000000# Macros for SIP # ~~~~~~~~~~~~~~ # Copyright (c) 2007, Simon Edwards # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # SIP website: http://www.riverbankcomputing.co.uk/sip/index.php # # This file defines the following macros: # # ADD_SIP_PYTHON_MODULE (MODULE_NAME MODULE_SIP [library1, libaray2, ...]) # Specifies a SIP file to be built into a Python module and installed. # MODULE_NAME is the name of Python module including any path name. (e.g. # os.sys, Foo.bar etc). MODULE_SIP the path and filename of the .sip file # to process and compile. libraryN are libraries that the Python module, # which is typically a shared library, should be linked to. The built # module will also be install into Python's site-packages directory. # # The behaviour of the ADD_SIP_PYTHON_MODULE macro can be controlled by a # number of variables: # # SIP_INCLUDES - List of directories which SIP will scan through when looking # for included .sip files. (Corresponds to the -I option for SIP.) # # SIP_TAGS - List of tags to define when running SIP. (Corresponds to the -t # option for SIP.) # # SIP_CONCAT_PARTS - An integer which defines the number of parts the C++ code # of each module should be split into. Defaults to 8. (Corresponds to the # -j option for SIP.) # # SIP_DISABLE_FEATURES - List of feature names which should be disabled # running SIP. (Corresponds to the -x option for SIP.) # # SIP_EXTRA_OPTIONS - Extra command line options which should be passed on to # SIP. SET(SIP_INCLUDES) SET(SIP_TAGS) SET(SIP_CONCAT_PARTS 8) SET(SIP_DISABLE_FEATURES) SET(SIP_EXTRA_OPTIONS) MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP) # FIXME this removes -fvisibility=hidden from the compiler flags and has global affect. if (CMAKE_CXX_FLAGS) STRING(REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) endif (CMAKE_CXX_FLAGS) SET(EXTRA_LINK_LIBRARIES ${ARGN}) STRING(REPLACE "." "/" _x ${MODULE_NAME}) GET_FILENAME_COMPONENT(_parent_module_path ${_x} PATH) GET_FILENAME_COMPONENT(_child_module_name ${_x} NAME) GET_FILENAME_COMPONENT(_module_path ${MODULE_SIP} PATH) GET_FILENAME_COMPONENT(_abs_module_sip ${MODULE_SIP} ABSOLUTE) # We give this target a long logical target name. # (This is to avoid having the library name clash with any already # install library names. If that happens then cmake dependancy # tracking get confused.) STRING(REPLACE "." "_" _logical_name ${MODULE_NAME}) SET(_logical_name "python_module_${_logical_name}") FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_module_path}) # Output goes in this dir. SET(_sip_includes) FOREACH (_inc ${SIP_INCLUDES}) GET_FILENAME_COMPONENT(_abs_inc ${_inc} ABSOLUTE) LIST(APPEND _sip_includes -I ${_abs_inc}) ENDFOREACH (_inc ) SET(_sip_tags) FOREACH (_tag ${SIP_TAGS}) LIST(APPEND _sip_tags -t ${_tag}) ENDFOREACH (_tag) SET(_sip_x) FOREACH (_x ${SIP_DISABLE_FEATURES}) LIST(APPEND _sip_x -x ${_x}) ENDFOREACH (_x ${SIP_DISABLE_FEATURES}) SET(_message "-DMESSAGE=Generating CPP code for module ${MODULE_NAME}") SET(_sip_output_files) FOREACH(CONCAT_NUM RANGE 0 ${SIP_CONCAT_PARTS} ) IF( ${CONCAT_NUM} LESS ${SIP_CONCAT_PARTS} ) SET(_sip_output_files ${_sip_output_files} ${CMAKE_CURRENT_BINARY_DIR}/${_module_path}/sip${_child_module_name}part${CONCAT_NUM}.cpp ) ENDIF( ${CONCAT_NUM} LESS ${SIP_CONCAT_PARTS} ) ENDFOREACH(CONCAT_NUM RANGE 0 ${SIP_CONCAT_PARTS} ) IF(NOT WIN32) SET(TOUCH_COMMAND touch) ELSE(NOT WIN32) SET(TOUCH_COMMAND echo) # instead of a touch command, give out the name and append to the files # this is basically what the touch command does. FOREACH(filename ${_sip_output_files}) FILE(APPEND filename "") ENDFOREACH(filename ${_sip_output_files}) ENDIF(NOT WIN32) ADD_CUSTOM_COMMAND( OUTPUT ${_sip_output_files} COMMAND ${CMAKE_COMMAND} -E echo ${message} COMMAND ${TOUCH_COMMAND} ${_sip_output_files} COMMAND ${SIP_EXECUTABLE} ${_sip_tags} ${_sip_x} ${SIP_EXTRA_OPTIONS} -j ${SIP_CONCAT_PARTS} -c ${CMAKE_CURRENT_BINARY_DIR}/${_module_path} ${_sip_includes} ${_abs_module_sip} DEPENDS ${_abs_module_sip} ${SIP_EXTRA_FILES_DEPEND} ) ADD_LIBRARY(${_logical_name} SHARED ${_sip_output_files} ) TARGET_LINK_LIBRARIES(${_logical_name} ${PYTHON_LIBRARY}) TARGET_LINK_LIBRARIES(${_logical_name} ${EXTRA_LINK_LIBRARIES}) SET_TARGET_PROPERTIES(${_logical_name} PROPERTIES PREFIX "" OUTPUT_NAME ${_child_module_name}) INSTALL(TARGETS ${_logical_name} DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/${_parent_module_path}") ENDMACRO(ADD_SIP_PYTHON_MODULE) qedje-mainline/python/000077500000000000000000000000001116615416200152645ustar00rootroot00000000000000qedje-mainline/python/.gitignore000066400000000000000000000000061116615416200172500ustar00rootroot00000000000000build qedje-mainline/python/CMakeLists.txt000066400000000000000000000017341116615416200200310ustar00rootroot00000000000000find_package(PythonLibrary REQUIRED) find_package(SIP REQUIRED) find_package(PyQt4 REQUIRED) include(PythonMacros) include(SIPMacros) include_directories(BEFORE ../src/ ${PYTHON_INCLUDE_PATH} ${SIP_INCLUDE_DIR} ) set(SIP_INCLUDES ${PYQT4_SIP_DIR} qedje ${QZION_SIP_DIR}) set(SIP_CONCAT_PARTS 8) set(SIP_TAGS ALL WS_X11 ${PYQT4_VERSION_TAG}) set(SIP_EXTRA_OPTIONS -g) set(PYTHON_SITE_PACKAGES_DIR ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_SHORT_VERSION}/site-packages) # Putting inside the "concepts" package until we release. file(GLOB qedje_files_sip qedje/*.sip) set(SIP_EXTRA_FILES_DEPEND ${qedje_files_sip}) add_sip_python_module(qedje.qedje qedje/qedjemod.sip qedje ${QT_LIBRARIES}) set(PYTHON_FILES_TO_INSTALL qedje/__init__.py ) foreach (f ${PYTHON_FILES_TO_INSTALL}) get_filename_component(p ${f} PATH) python_install(${f} ${PYTHON_SITE_PACKAGES_DIR}/${p}) endforeach(f) install(FILES ${qedje_files_sip} DESTINATION share/sip/qedje/) qedje-mainline/python/qedje/000077500000000000000000000000001116615416200163545ustar00rootroot00000000000000qedje-mainline/python/qedje/__init__.py000066400000000000000000000000241116615416200204610ustar00rootroot00000000000000from qedje import * qedje-mainline/python/qedje/qedje.sip000066400000000000000000000062731116615416200201710ustar00rootroot00000000000000%ModuleCode #include #include %End class QEdje : QZionGroup { %TypeHeaderCode #include %End %ConvertToSubClassCode sipClass = NULL; static struct classes { char *name; sipWrapperType **type; } cls[] = { {"QEdjeRealPartText", &sipClass_QZionText}, {"QEdjeRealPartImage", &sipClass_QZionImage}, {"QEdjeRealPartRectangle", &sipClass_QZionRectangle}, {"QEdjeRealPartTextBlock", &sipClass_QZionTextBlock}, {"QEdjeRealPartGroup", &sipClass_QZionClippedGroup}, {"QEdjeRealPartSwallow", &sipClass_QZionClippedGroup}, {0, 0} }; if (qobject_cast(sipCpp)) { sipClass = sipClass_QEdje; } else { const char *class_name = sipCpp->metaObject()->className(); for (struct classes *p = cls; p->name; p++) { if (!strcmp(class_name, p->name)) { sipClass = *p->type; break; } } } %End public: QEdje(QZionAbstractCanvas *canvas /TransferThis/, const QString &filename, const QString &group); ~QEdje(); virtual void canvasResizeEvent(QResizeEvent *event); void emitEdjeSignal(const QString &emission, const QString &source); bool connectEdjeSignal(const QString &emission, const QString &source, SIP_RXOBJ_CON receiver, SIP_SLOT_CON(const QString &emission, const QString &source, QObject *edje) method); bool disconnectEdjeSignal(const QString &emission, const QString &source, SIP_RXOBJ_DIS receiver, SIP_SLOT_DIS(const QString &emission, const QString &source, QObject *edje) method); void partSwallow(const QString &part, QZionObject *obj_swallow /Transfer/); %MethodCode // When we swallow in a place that already has a object, QEdje will // remove the old object. So we need to transfer ownership back to // Python. QZionObject *oldObject = sipCpp->part(*a0); if (oldObject && oldObject != a1) { PyObject *obj = sipGetWrapper(oldObject, sipClass_QZionObject); if (obj) sipTransferBack(obj); } Py_BEGIN_ALLOW_THREADS sipCpp->partSwallow(*a0,a1); Py_END_ALLOW_THREADS %End QZionObject* partUnswallow(const QString &part) /TransferBack/; QZionObject* part(const QString &part) /PyName=getPartObject/; const QString &path() const; const QString &group() const; virtual void setSize(const QSize &size); QSize propMin() const; QSize propMax() const; bool setFile(const QString &filename); void setFixedPartMinSize(const QString &part, QSize &size); void setFixedPartMaxSize(const QString &part, QSize &size); protected: virtual void mouseObjectMoveEvent(QZionObject *src, QMouseEvent *e); virtual void mouseObjectPressEvent(QZionObject *src, QMouseEvent *e); virtual void mouseObjectReleaseEvent(QZionObject *src, QMouseEvent *e); virtual void wheelObjectEvent(QZionObject *src, QWheelEvent *e); }; qedje-mainline/python/qedje/qedjeimage.sip000066400000000000000000000006531116615416200211700ustar00rootroot00000000000000%ModuleCode #include #include %End class QEdjeImage : QZionImage { %TypeHeaderCode #include %End public: QEdjeImage(QZionAbstractCanvas *canvas /TransferThis/ = NULL); QEdjeImage(QZionAbstractCanvas *canvas /TransferThis/, const QString &filepath, const QString &key); ~QEdjeImage(); bool load(const QString &filename, const QString &key); bool reload(); }; qedje-mainline/python/qedje/qedjemod.sip000066400000000000000000000002121116615416200206540ustar00rootroot00000000000000%Module qedje 0 %Import QtCore/QtCoremod.sip %Import QtGui/QtGuimod.sip %Import qzionmod.sip %Include qedje.sip %Include qedjeimage.sip qedje-mainline/python/tests/000077500000000000000000000000001116615416200164265ustar00rootroot00000000000000qedje-mainline/python/tests/base.py000066400000000000000000000012021116615416200177050ustar00rootroot00000000000000import sys from PyQt4.QtCore import QSize from PyQt4.QtGui import QApplication from qzion import QZionCanvas from qedje import QEdje if __name__ == "__main__": app = QApplication(sys.argv) canvas = QZionCanvas() canvas.show() if len(sys.argv) >= 2: filename = sys.argv[1] else: filename = "../../tests/collections/theme2.edj" if len(sys.argv) >= 3: group = sys.argv[2] else: group = "world" world = QEdje(canvas, filename, group) world.show() def fun(): print "Clicked!" world.connectEdjeSignal("mouse,clicked,1", "*", fun) sys.exit(app.exec_()) qedje-mainline/python/tests/relative.edc000066400000000000000000000165461116615416200207320ustar00rootroot00000000000000collections { #define SQUAREBLOCKS(pname, pgroup) \ group { \ name: pname; \ parts { \ part { \ name: "bg"; \ type: RECT; \ description { \ state: "default" 0.0; \ color: 50 50 50 255; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ } \ } \ } \ part { \ name: "rect2"; \ type: RECT; \ description { \ state: "default" 0.0; \ color: 255 0 0 255; \ rel1 { \ relative: 0.0 0.0; \ offset: 0 0; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -1 -1; \ } \ } \ description { \ state: "default" 0.7; \ color: 0 255 0 255; \ rel1 { \ relative: 0.0 0.0; \ offset: 40 40; \ } \ rel2 { \ relative: 1.0 1.0; \ offset: -41 -41; \ } \ } \ } \ part { \ name: "rect1"; \ type: RECT; \ description { \ state: "default" 0.0; \ color: 84 78 200 255; \ rel1 { \ to: "rect2"; \ relative: 0.0 0.0; \ offset: 5 5; \ } \ rel2 { \ to: "rect2"; \ relative: 1.0 1.0; \ offset: -6 -6; \ } \ } \ } \ part { \ name: "rect3"; \ type: GROUP; \ source: pgroup; \ description { \ state: "default" 0.0; \ rel1 { \ to: "rect2"; \ relative: 0.0 0.0; \ offset: 30 30; \ } \ rel2 { \ to: "rect2"; \ relative: 1.0 1.0; \ offset: -31 -31; \ } \ } \ } \ program { \ name: "change,color"; \ source: "rect1"; \ signal: "mouse,clicked,1"; \ action: STATE_SET "default" 0.6; \ transition: LINEAR 1.5; \ target: "rect2"; \ } \ } \ } group { name: "rect,single"; parts { part { name: "bg"; type: RECT; description { state: "default" 0.0; color: 20 20 20 255; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } } } SQUAREBLOCKS("main", "level1"); SQUAREBLOCKS("level1", "level2"); SQUAREBLOCKS("level2", "level3"); SQUAREBLOCKS("level3", "rect,single"); } qedje-mainline/python/tests/viewer.py000066400000000000000000000006331116615416200203030ustar00rootroot00000000000000import sys from PyQt4.QtGui import QApplication from qzion import QZionCanvas from qedje import QEdje if __name__ == "__main__": if len(sys.argv) < 3: print "Usage: python", sys.argv[0], "EDJE_FILE GROUP" sys.exit() app = QApplication(sys.argv) canvas = QZionCanvas() canvas.show() main = QEdje(canvas, sys.argv[1], sys.argv[2]) main.show() sys.exit(app.exec_()) qedje-mainline/src/000077500000000000000000000000001116615416200145325ustar00rootroot00000000000000qedje-mainline/src/CMakeLists.txt000066400000000000000000000017601116615416200172760ustar00rootroot00000000000000set(CMAKE_INCLUDE_CURRENT_DIR ON) set(qedje_SRCS qedje.cpp qedjedebug.cpp qedjeimage.cpp qedjeloader.cpp qedjerealpart.cpp qrunningprogram.cpp ) set(qedje_HEADERS qedje.h qedjeimage.h qedjeloader.h qedjerealpart.h qrunningprogram.h ) qt4_wrap_cpp(qedje_MOC_SRCS ${qedje_HEADERS}) add_library(qedje SHARED ${qedje_SRCS} ${qedje_MOC_SRCS}) target_link_libraries(qedje ${QT_LIBRARIES} ${EET_LIBRARIES} ${QZION_LIBRARIES}) set(qedje_LDFLAGS ${EET_LDFLAGS} ${QZION_LDFLAGS}) string(REGEX REPLACE ";" " " qedje_LDFLAGS "${qedje_LDFLAGS}") set_target_properties(qedje PROPERTIES VERSION ${QEDJE_LIB_VERSION_STRING} SOVERSION ${QEDJE_LIB_MAJOR_VERSION} ) install(TARGETS qedje LIBRARY DESTINATION ${LIB_INSTALL_DIR}/) install(FILES ${qedje_HEADERS} DESTINATION include/) if (NOT WIN32) configure_file(qedje.pc.cmake qedje.pc @ONLY) install(FILES ${CMAKE_BINARY_DIR}/qedje.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/) endif (NOT WIN32) qedje-mainline/src/Doxyfile000066400000000000000000001562401116615416200162500ustar00rootroot00000000000000# Doxyfile 1.5.5 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all # text before the first occurrence of this tag. Doxygen uses libiconv (or the # iconv built into libc) for the transcoding. See # http://www.gnu.org/software/libiconv for the list of possible encodings. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = QEdje # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = 0.4.0 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = ../doc # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, # Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek, # Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages), # Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish, # Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, # and Ukrainian. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like regular Qt-style comments # (thus requiring an explicit @brief command for a brief description.) JAVADOC_AUTOBRIEF = NO # If the QT_AUTOBRIEF tag is set to YES then Doxygen will # interpret the first line (until the first dot) of a Qt-style # comment as the brief description. If set to NO, the comments # will behave just like regular Qt-style comments (thus requiring # an explicit \brief command for a brief description.) QT_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java # sources only. Doxygen will then generate output that is more tailored for # Java. For instance, namespaces will be presented as packages, qualified # scopes will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources only. Doxygen will then generate output that is more tailored for # Fortran. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for # VHDL. OPTIMIZE_OUTPUT_VHDL = NO # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. # func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. # Doxygen will parse them like normal C++ but will assume all classes use public # instead of private inheritance when no explicit protection keyword is present. SIP_SUPPORT = NO # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum # is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically # be useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. TYPEDEF_HIDES_STRUCT = NO #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = YES # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base # name of the file that contains the anonymous namespace. By default # anonymous namespace are hidden. EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the # hierarchy of group names into alphabetical order. If set to NO (the default) # the group names will appear in their defined order. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. The default is NO. SHOW_DIRECTORIES = NO # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be abled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # also the default input encoding. Doxygen uses libiconv (or the iconv built # into libc) for the transcoding. See http://www.gnu.org/software/libiconv for # the list of possible encodings. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = NO # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = NO # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will # link to the source code. Otherwise they will link to the documentstion. REFERENCES_LINK_SOURCE = YES # If the USE_HTAGS tag is set to YES then the references to source code # will point to the HTML generated by the htags(1) tool instead of doxygen # built-in source browser. The htags tool is part of GNU's global source # tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compiled HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_DOCSET tag is set to YES, additional index files # will be generated that can be used as input for Apple's Xcode 3 # integrated development environment, introduced with OSX 10.5 (Leopard). # To create a documentation set, doxygen will generate a Makefile in the # HTML output directory. Running make will produce the docset in that # directory and running "make install" will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find # it at startup. GENERATE_DOCSET = NO # When GENERATE_DOCSET tag is set to YES, this tag determines the name of the # feed. A documentation feed provides an umbrella under which multiple # documentation sets from a single provider (such as a company or product suite) # can be grouped. DOCSET_FEEDNAME = "Doxygen generated docs" # When GENERATE_DOCSET tag is set to YES, this tag specifies a string that # should uniquely identify the documentation set bundle. This should be a # reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen # will append .docset to the name. DOCSET_BUNDLE_ID = org.doxygen.Project # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. For this to work a browser that supports # JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox # Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). HTML_DYNAMIC_SECTIONS = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = YES # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = YES # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = YES # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse # the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option is superseded by the HAVE_DOT option below. This is only a # fallback. It is recommended to install and use dot, since it yields more # powerful graphs. CLASS_DIAGRAMS = YES # You can define message sequence charts within doxygen comments using the \msc # command. Doxygen will then run the mscgen tool (see # http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the # documentation. The MSCGEN_PATH tag allows you to specify the directory where # the mscgen tool resides. If left empty the tool is assumed to be found in the # default search path. MSCGEN_PATH = # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT options are set to YES then # doxygen will generate a call dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable call graphs # for selected functions only using the \callgraph command. CALL_GRAPH = NO # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then # doxygen will generate a caller dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable caller # graphs for selected functions only using the \callergraph command. CALLER_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of # nodes that will be shown in the graph. If the number of nodes in a graph # becomes larger than this value, doxygen will truncate the graph, which is # visualized by representing a node as a red box. Note that doxygen if the # number of direct children of the root node in a graph is already larger than # DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note # that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. DOT_GRAPH_MAX_NODES = 50 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that the size of a graph can be further restricted by # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is enabled by default, which results in a transparent # background. Warning: Depending on the platform used, enabling this option # may lead to badly anti-aliased labels on the edges of a graph (i.e. they # become hard to read). DOT_TRANSPARENT = YES # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO qedje-mainline/src/qedje.cpp000066400000000000000000000763171116615416200163440ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . * * This file incorporates work covered by the license described in the * file COPYING.libedje. */ #include "qedje.h" #include #include "qedjeimage.h" #include "qedjeloader.h" #include "qedjerealpart.h" #include "qrunningprogram.h" const QString QEdjePart::PATH_SEPARATOR_STRING = ":"; /*! Initialize Edje object. If some error happen during initialization, the constructor will reset group and path to empty strings, so you can check one of these attributes (via proper getters) to know if the construction went without errors. \param canvas The canvas that will be used to draw everything. \param filename Filename of the edje file. \param group Name of the group which it'll load. \sa QEdje() */ QEdje::QEdje(QZionAbstractCanvas *canvas, const QString &filename, const QString &group) : QZionGroup(canvas), _path(filename), _group(group), _notifyingConnections(0), _connectionsToDelete(false) { if (group.isEmpty() || filename.isEmpty()) return; dirty = true; frozen = 0; recalc = true; calculateOnly = false; edjeFile = NULL; lastObjectPressed = NULL; setAttribute(HandleOutOfBoundsEvents); if (populate()) { emitEdjeSignal("load", ""); } else { _path = ""; _group = ""; } } /*! Unload Edje object */ QEdje::~QEdje() { if (_notifyingConnections) { qWarning("QEdje: Do not delete object, '%p', " "when processing its signals, use deleteLater()!", this); } // QRunningProgram destructor affect the _runningPrograms, so we have // to make a copy of the list (foreach does that for us) instead of // using qDeleteAll(). foreach (QRunningProgram *rp, _runningPrograms) { delete rp; } QEdjeLoader::unload(_path); qDeleteAll(_connections); qDeleteAll(tableParts); } /*! \brief Change the Edje file being used for this object. This function expects the same group name from the original, and will re-swallow all swallowed objects. */ bool QEdje::setFile(const QString &filename) { if (_group == "") return false; _path = filename; QList< QPair > oldSwallows; foreach (QEdjeRealPart *rp, tableParts) { QRunningProgram *runProg = rp->runningProgram(); if (runProg) delete runProg; if (rp->part()->type == QEdjePart::SWALLOW) { QPair pair(QString(rp->part()->name), rp->embeddedObject()); oldSwallows.append(pair); rp->unswallow(); } } qDeleteAll(tableParts); tableParts.clear(); tablePrograms.clear(); if (populate()) { emitEdjeSignal("load", ""); } else { _path = ""; _group = ""; return false; } QPair pair; foreach (pair, oldSwallows) partSwallow(pair.first, pair.second); return true; } /*! Set the object size and recalculate internal parts. */ void QEdje::setSize(const QSize &size) { if (this->size() == size) return; QZionGroup::setSize(size); dirty = true; recalculate(); } /*! Called every time the top level canvas has been resized. Note: Only the top level children will be notified. */ void QEdje::canvasResizeEvent(QResizeEvent *event) { setSize(event->size()); } /*! \internal Called every time a mouse move event occurs in one of the children. */ void QEdje::mouseObjectMoveEvent(QZionObject *src, QMouseEvent *) { QEdjeRealPart *obj = dynamic_cast(src); if (!obj) return; emitEdjeSignal("mouse,move", obj->part()->name); } /*! \internal Called every time a mouse press event occurs in one of the children. */ void QEdje::mouseObjectPressEvent(QZionObject *src, QMouseEvent *e) { QEdjeRealPart *obj = dynamic_cast(src); if (!obj) return; if (e->button() == Qt::LeftButton) emitEdjeSignal("mouse,down,1", obj->part()->name); else if (e->button() == Qt::MidButton) emitEdjeSignal("mouse,down,2", obj->part()->name); else if (e->button() == Qt::RightButton) emitEdjeSignal("mouse,down,3", obj->part()->name); lastObjectPressed = src; } /*! \internal Called every time a mouse release event occurs in one of the children. */ void QEdje::mouseObjectReleaseEvent(QZionObject *src, QMouseEvent *e) { QEdjeRealPart *obj = dynamic_cast(src); if (!obj) return; if (e->button() == Qt::LeftButton) emitEdjeSignal("mouse,up,1", obj->part()->name); else if (e->button() == Qt::MidButton) emitEdjeSignal("mouse,up,2", obj->part()->name); else if (e->button() == Qt::RightButton) emitEdjeSignal("mouse,up,3", obj->part()->name); if (lastObjectPressed == src) { if (e->button() == Qt::LeftButton) emitEdjeSignal("mouse,clicked,1", obj->part()->name); else if (e->button() == Qt::MidButton) emitEdjeSignal("mouse,clicked,2", obj->part()->name); else if (e->button() == Qt::RightButton) emitEdjeSignal("mouse,clicked,3", obj->part()->name); } lastObjectPressed = NULL; } void QEdje::wheelObjectEvent(QZionObject *src, QWheelEvent *e) { int dir, z; QEdjeRealPart *obj = dynamic_cast(src); if (!obj) return; dir = (e->orientation() == Qt::Horizontal) ? 1 : 0; z = (e->delta() > 0) ? -1 : 1; // qt logic != edje QString str; str.sprintf("mouse,wheel,%d,%d", dir, z); emitEdjeSignal(str, obj->part()->name); } /*! Swallows a given QZionObject on an edje's swallow part. \param part Edje swallow part's name. \param objSwallow A pointer to the object to be swallowed. */ void QEdje::partSwallow(const QString &part, QZionObject *objSwallow) { QEdjeRealPart *realPart = getRealPartRecursive(part); if (realPart && realPart->part()->type == QEdjePart::SWALLOW) realPart->swallow(objSwallow); } /*! Unswallows what is inside an edje's swallow part. \param part Edje swallow part's name. */ QZionObject* QEdje::partUnswallow(const QString &part) { QEdjeRealPart *realPart = getRealPartRecursive(part); if (realPart && realPart->part()->type == QEdjePart::SWALLOW) return realPart->unswallow(); else return NULL; } /*! Returns and edje's part as a QZionObject. \param part Edje swallow part's name. */ QZionObject* QEdje::part(const QString &part) { QEdjeRealPart *realPart = getRealPartRecursive(part); if (!realPart) return NULL; if (realPart->part()->type == QEdjePart::SWALLOW || realPart->part()->type == QEdjePart::GROUP) return realPart->embeddedObject(); return realPart->object(); } /*! Returns a QEdjeColorClass searching by its name. If no entry was found returns NULL. */ QEdjeColorClass *QEdje::colorClass(const QString &name) const { foreach (QEdjeColorClass *cc, edjeFile->colorClasses) { if (cc->name == name) return cc; } return NULL; } /*! Recalculates each part's position. */ void QEdje::recalculate() { if (!dirty) return; if (frozen) { recalc = true; if (!calculateOnly) return; } foreach (QEdjeRealPart *ep, tableParts) { ep->calculated = FLAG_NONE; ep->calculating = FLAG_NONE; } foreach (QEdjeRealPart *ep, tableParts) if (ep->calculated != FLAG_XY) ep->recalculate((~ep->calculated) & FLAG_XY); dirty = false; if (!calculateOnly) recalc = false; } QEdjeRealPart* QEdje::getRealPartRecursive(const QString &part) { QEdjeRealPart *realPart; QStringList path; path = part.split(QEdjePart::PATH_SEPARATOR_STRING); if (path.isEmpty()) return NULL; realPart = getRealPartRecursiveHelper(path, 0); return realPart; } QEdjeRealPart* QEdje::realPart(const QString &part) { foreach (QEdjeRealPart *realPart, tableParts) if (realPart->part()->name == part) return realPart; return NULL; } QEdjeRealPart* QEdje::getRealPartRecursiveHelper(QStringList path, int index) { QEdje *edjeSwallowed; QEdjeRealPart *realPart; realPart = this->realPart(path[index]); index++; if (index >= path.size()) return realPart; if ((!realPart) || (realPart->part()->type != QEdjePart::GROUP) || (!realPart->object())) return NULL; /* verify if swallowed object is Edje */ if (!realPart->object()->inherits("QEdje")) return NULL; edjeSwallowed = static_cast(realPart->object()); return edjeSwallowed->getRealPartRecursiveHelper(path, index); } /*! \brief Run an iteration of a STATE_SET program. We assume here that value is always less than 1.0. \sa runLastIteration() \param value The value of time at the current timeline. \param targets A list of targets to set the value. \param program The program running right now. \todo Stop program when object is deleted (_edje_block_break). \todo Delete programs when object is deleted. */ void QEdje::iterateState(qreal value, QList &targets) { freeze(); dirty = true; qDebug() << "animation progress: " << value; foreach (QEdjeRealPart *rp, targets) rp->setDescriptionPos(value); recalculate(); thaw(); } /*! Run the last iteration of a STATE_SET program with transition. */ void QEdje::runLastIteration(QList &targets, QEdjeProgram *program, AfterExecution after) { freeze(); dirty = true; foreach (QEdjeRealPart *rp, targets) { rp->setInitialState(program->state, program->value); rp->unsetFinalState(); } recalculate(); if (after == doExecuteAfter) launchAfterPrograms(program); thaw(); } /*! Launch a program. \param program Program to be launched. \todo Take a look at _edje_program_run later. */ void QEdje::launchProgram(QEdjeProgram *program) { qDebug() << "launching program" << program->name << program->action; freeze(); switch (program->action) { case QEdjeProgram::ACTION_STATE_SET: programStateSet(program); break; case QEdjeProgram::ACTION_SIGNAL_EMIT: emitEdjeSignal(program->state, program->state2); launchAfterPrograms(program); break; case QEdjeProgram::ACTION_STOP: programStop(program); launchAfterPrograms(program); break; default: launchAfterPrograms(program); } thaw(); } /*! Launch the programs in the 'after' section of a given program. */ void QEdje::launchAfterPrograms(QEdjeProgram *program) { freeze(); foreach (int id, program->after) { QEdjeProgram *pr = findProgram(id); if (pr) launchProgram(pr); } thaw(); } /*! Executes all programs triggered by a signal. \param signal Signal's name that triggers the programs. \param part Part's name that emitted the signal. */ void QEdje::launchPrograms(const QString &signal, const QString &part) { qDebug() << "searching programs with signal:" << signal << part; foreach (QEdjeProgram *p, tablePrograms) { if (p->signal == signal && (p->source == "*" || part == "*" || part.isEmpty() || p->source == part)) { qDebug() << "found program:" << p->name; launchProgram(p); } } } /*! Executes a STATE_SET program. A STATE_SET changes the state of one or more parts (they are the program targets) to a new state. A program execution will stop all other programs already running that are affecting its targets. If there is a transition (ie., the change will be animated) we create a QRunningProgram object to take care of the animation. \param program Program to be launched. Assumes its a STATE_SET program. */ void QEdje::programStateSet(QEdjeProgram *program) { QList targets; // First, stop programs running that have parts in common QSet toDelete; foreach (int tid, program->targets) { QEdjeRealPart *rp = findPart(tid); if (!rp) continue; if (rp->runningProgram()) toDelete.insert(rp->runningProgram()); targets.append(rp); } foreach (QRunningProgram *current, toDelete) delete current; // Then, run our program int duration = program->tweenTime * 1000; if (duration > 0) { QRunningProgram *runProg = new QRunningProgram(program, this, duration, (TweenMode)program->tweenMode, targets); foreach (QEdjeRealPart *rp, targets) { rp->setRunningProgram(runProg); rp->setDescriptionPos(0.0); rp->setFinalState(runProg->state(), runProg->value()); } runProg->start(); } else { // duration == 0 runLastIteration(targets, program, doExecuteAfter); } } /*! Executes an ACTION_STOP program. \param program Program to be launched. Assumes its a ACTION_STOP program. */ void QEdje::programStop(QEdjeProgram *program) { QSet toDelete; foreach (int tid, program->targets) { foreach (QRunningProgram *runProg, _runningPrograms) { if (runProg->program()->id == tid) toDelete.insert(runProg); } } foreach (QRunningProgram *runProg, toDelete) delete runProg; } /*! Freeze the object, avoiding some operations on it. */ int QEdje::freeze() { frozen++; return frozen; } /*! Thaw the object, letting it perform some operations. */ int QEdje::thaw() { frozen--; if (frozen < 0) { qDebug() << "Over thaw"; frozen = 0; } if ((frozen == 0) && (recalc)) { qDebug() << "Thaw recalculate"; recalculate(); } return frozen; } /*! Load all parts of this group and put them in the canvas. */ bool QEdje::populate() { edjeFile = QEdjeLoader::load(_path); if (!edjeFile) { qWarning("QEdje::populate: Unable to load edje file '%s'", _path.toLatin1().data()); return false; } QEdjePartCollection *gp = edjeFile->collectionHash[_group]; if (!gp) { qWarning("QEdje::populate: Group '%s' not found in file '%s'", _group.toLatin1().data(), _path.toLatin1().data()); return false; } _propMin = gp->propMin; _propMax = gp->propMax; foreach (QEdjePart *part, gp->parts) { QEdjeRealPart *rpart; switch (part->type) { case QEdjePart::RECT: rpart = new QEdjeRealPartRectangle(this, part); break; case QEdjePart::IMAGE: if (part->defaultDescription.imageId < 0) { /* When a part has no type info, it defaults to IMAGE according to * http://wiki.enlightenment.org/index.php/Edje_Part * As edje_cc allows the image.normal to be left out, we should at * least show a critical */ qCritical("Group \"%s\": image attributes missing for part \"%s\"", _group.toLatin1().data(), part->name.toLatin1().data()); } rpart = new QEdjeRealPartImage(this, part); break; case QEdjePart::TEXT: rpart = new QEdjeRealPartText(this, part); break; case QEdjePart::TEXTBLOCK: rpart = new QEdjeRealPartTextBlock(this, part); break; case QEdjePart::SWALLOW: rpart = new QEdjeRealPartSwallow(this, part); break; case QEdjePart::GROUP: rpart = new QEdjeRealPartGroup(this, part); break; case QEdjePart::GRADIENT: qWarning("QEdje::populate: Gradient type not supported yet"); continue; default: qWarning("QEdje::populate: Invalid part found in edje group"); continue; } rpart->object()->show(); tableParts.append(rpart); } foreach (QEdjeRealPart *rpart, tableParts) { rpart->setInitialState("default", 0.0); rpart->unsetFinalState(); } foreach (QEdjeRealPart *realPart, tableParts) { int clipToId = realPart->part()->clipToId; if (clipToId < 0 || clipToId >= tableParts.size()) continue; realPart->setClipTo(tableParts[clipToId]); } foreach (QEdjeProgram *program, gp->programs) { tablePrograms.append(program); } recalculate(); emitEdjeSignal("show", ""); return true; } struct QEdje::Connection { Connection(const QString &emission, const QString &source, QObject *receiver, int method) { this->emission = emission; this->source = source; this->receiver = receiver; this->method = method; this->deleteMe = false; } QString emission; QString source; QObject *receiver; int method; // Used to mark this connection to be deleted, this is used when we are // emitting an edje signal, and iterating in a list of connections, see // notifyConnections() for details. bool deleteMe; }; static bool signalMatches(const QString &emission, const QString &source, const QString &emissionCandidate, const QString &sourceCandidate) { // XXX: add Wildcards return ((emission == emissionCandidate || emissionCandidate == "*") && (source.isEmpty() || source == "*" || sourceCandidate == "*" || source == sourceCandidate)); } /*! \brief Emits a signal for the edje group. Calls the programs that listen to this signal and notify all the methods connected via connectEdjeSignal(). \param emission Signal's name. \param source Signal's source name. \sa connectEdjeSignal() \todo Propagate signal to edje swallows. */ void QEdje::emitEdjeSignal(const QString &emission, const QString &source) { qDebug() << "emit signal" << emission << source; launchPrograms(emission, source); notifyConnections(emission, source); } /*! \brief Emits a signal to connected methods. Calls all the methods (slots or Qt signals) that are connected to a specific emission-source pair. \param emission Signal's name. \param source Signal's source name. \sa emitEdjeSignal(), connectEdjeSignal() \todo Document the rules for how emission/source matches (wildcards). */ void QEdje::notifyConnections(const QString &emission, const QString &source) { // For qt_metacall() we need to pass an array of void pointers to // our arguments, since one of our arguments is a pointer to the // object that is sending the signal, we need a pointer to this // pointer. In this case a pointer to 'this', however since 'this' // is special we have no way to get its address. So we create // another pointer in the stack, pointing to our object (just like // 'this'). void *_this = reinterpret_cast(this); // Remember, an array of void POINTERS to the arguments we are passing, // qt_metacall will do the right thing with them if we connect them // correctly. void *_args[] = { 0, const_cast(reinterpret_cast(&emission)), const_cast(reinterpret_cast(&source)), reinterpret_cast(&_this) }; // Keep track of whether we are notifying connections, i.e., calling // slots/signals that are connected to edje signals. We track that // to properly warn if the destructor is called during this process, // the proper way to delete an object that just emitted a signal is // to call deleteLater(). It's also useful to know when is safe to // process connections marked for deletion, see below. _notifyingConnections++; foreach (const Connection *c, _connections) { // Skip connections marked to deletion. They will be deleted after // the last loop of signal emittion happens. if (c->deleteMe) continue; if (signalMatches(emission, source, c->emission, c->source)) c->receiver->qt_metacall(QMetaObject::InvokeMetaMethod, c->method, _args); } _notifyingConnections--; // If we are not emitting connections anymore, clean up our connection // list, actually removing those that were marked to delete. if (!_notifyingConnections && _connectionsToDelete) { QStack toDelete; for (int i = 0; i < _connections.count(); ++i) { const Connection *c = _connections.at(i); if (c->deleteMe) toDelete.push(i); } // Note: the use of pop() here make sure that take() doesn't change // the remaining indexes still in toDelete. while (!toDelete.isEmpty()) { delete _connections.takeAt(toDelete.pop()); } _connectionsToDelete = false; } } /*! \brief Finds the correct method index for a given QObject and method name. Methods are either slots or Qt signals. They are identified by an int value. This value is used to call the method (via qt_metacall). \returns The int identifying the method or -1 if no method was found. \sa connectEdjeSignal() */ static int findMethodIndex(QObject *receiver, const char *method) { int code = method[0] - '0'; ++method; // remove code from method signature const QMetaObject *rmeta = receiver->metaObject(); // Optimistic, assuming no normalization will be needed int method_index = -1; switch (code) { case QSLOT_CODE: method_index = rmeta->indexOfSlot(method); break; case QSIGNAL_CODE: method_index = rmeta->indexOfSignal(method); break; default: qWarning("QEdje::connectEdjeSignal(): Use the SLOT or SIGNAL macro to " "specify the method %s::%s", rmeta->className(), method); return -1; } // Try again, but normalizing if (method_index < 0) { QByteArray normalizedMethod = QMetaObject::normalizedSignature(method); method = normalizedMethod.constData(); switch (code) { case QSLOT_CODE: method_index = rmeta->indexOfSlot(method); break; case QSIGNAL_CODE: method_index = rmeta->indexOfSignal(method); break; } } if (method_index < 0) { qWarning("QEdje::connectEdjeSignal(): No such method %s::%s", rmeta->className(), method); return -1; } return method_index; } /*! \internal \brief Return whether a given object have Edje connections with this QEdje. */ bool QEdje::isReceiver(QObject *object) const { foreach (const Connection *c, _connections) { if (c->receiver == object) return true; } return false; } /*! \brief Connects a method to be called by some emission-source pair. Connects a method (either a slot or an Qt signal) to a specific emission-source pair. The method is specified the same way as in QObject::connect(), using the SLOT() or the SIGNAL() macros. To get called for all the signals emitted, use e->connectEdjeSignal("*", "*", obj, SLOT(myslot())) The expected signature for methods is: method(const QString &emission, const QString &source, QObject *edje) Remember you can always connect using method with less arguments than the signal emits. For example, connecting something to a slot of type "myslot()" is fine. Like Qt signals, if either of the objects is destroyed, the signal is disconnected. \param emission Name of the signal to connect. \param source Expected source to connect. \param receiver Object you want to be called when signal is emitted. \param method Method, use either SLOT() or SIGNAL() macro to fill this. \return Whether the signal was connected or not. \sa emitEdjeSignal(), disconnectEdjeSignal() \todo Describe the rules for matching emission-source pairs. */ bool QEdje::connectEdjeSignal(const QString &emission, const QString &source, QObject *receiver, const char *method) { static const char *signature = "edjeSignal(const QString &, const QString &, QEdje *)"; int method_index = findMethodIndex(receiver, method); if (method_index < 0) return false; if (!QMetaObject::checkConnectArgs(signature, method)) { method++; // remove code from method signature qWarning("QEdje::connectEdjeSignal: Incompatible receiver arguments" "\n\tQEdje::%s --> %s::%s", signature, receiver->metaObject()->className(), method); return false; } // Check if the object is already a receiver, if not we connect to // its destroyed() signal, to delete edje connections if the object // is deleted. For each object we connect to destroyed only once. if (!isReceiver(receiver)) { connect(receiver, SIGNAL(destroyed(QObject *)), SLOT(clearConnections(QObject *))); } Connection *c = new Connection(emission, source, receiver, method_index); _connections.append(c); return true; } /*! \brief Disconnects a method from a emission-source pair. Use this to disconnect from an Edje emission-source signal. This function will remove just one connection per time, no wildcards are processed, the emission and source are taken verbatim, so use the same strings that were used to connect. \param emission Name of the signal to disconnect. \param source Expected source to disconnect. \param receiver Object you want to disconnect, you can pass 0 to match every receiver connected. Note that if this parameter is 0, the method should be too. \param method Method, use either SLOT() or SIGNAL() macro to fill this, or 0 to match every method. \return Whether the signal was disconnected or not. \sa connectEdjeSignal() */ bool QEdje::disconnectEdjeSignal(const QString &emission, const QString &source, QObject *receiver, const char *method) { if (receiver == 0 && method != 0) { qWarning("QEdje::disconnectEdjeSignal: Unexpected null parameter"); return false; } int method_index = -1; if (method != 0) { method_index = findMethodIndex(receiver, method); if (method_index < 0) return false; } QStack toDelete; QSet receiversToDelete; QSet stillReceivers; int count = _connections.size(); for (int i = 0; i < count; ++i) { const Connection *c = _connections.at(i); if (c->emission == emission && c->source == source && (!receiver || c->receiver == receiver) && (method_index < 0 || c->method == method_index)) { toDelete.push(i); receiversToDelete.insert(c->receiver); } else { stillReceivers.insert(c->receiver); } } if (toDelete.isEmpty()) return false; // If we are inside a notifying iteration, just mark objects as deleted. if (_notifyingConnections) { while (!toDelete.isEmpty()) _connections[toDelete.pop()]->deleteMe = true; _connectionsToDelete = true; } else { while (!toDelete.isEmpty()) delete _connections.takeAt(toDelete.pop()); } // If the receiver objects have no other edje signals, we don't // care if they are destroyed. receiversToDelete -= stillReceivers; foreach (QObject *obj, receiversToDelete) { disconnect(obj, SIGNAL(destroyed(QObject *)), this, SLOT(clearConnections(QObject *))); } return true; } /*! \brief Disconnects all connections for a given method. \param receiver Object you want to disconnect \param method Method, use either SLOT() or SIGNAL() macro to fill this, or 0 to mean every method. \return Whether the signal was disconnected or not. \sa connectEdjeSignal() */ bool QEdje::disconnectEdjeSignal(QObject *receiver, const char *method) { if (receiver == 0 && method != 0) { qWarning("QEdje::disconnectEdjeSignal: Unexpected null parameter"); return false; } int method_index = -1; if (method != 0) { method_index = findMethodIndex(receiver, method); if (method_index < 0) return false; } QStack toDelete; bool stillReceiver = false; int count = _connections.size(); for (int i = 0; i < count; ++i) { const Connection *c = _connections.at(i); if (c->receiver == receiver) { if (method_index < 0 || c->method == method_index) toDelete.push(i); else stillReceiver = true; } } if (toDelete.isEmpty()) return false; // If we are inside a notifying iteration, just mark objects as deleted. if (_notifyingConnections) { while (!toDelete.isEmpty()) _connections[toDelete.pop()]->deleteMe = true; _connectionsToDelete = true; } else { while (!toDelete.isEmpty()) delete _connections.takeAt(toDelete.pop()); } // If the receiver object has no other edje signals, we don't care if // it is destroyed. if (!stillReceiver) { disconnect(receiver, SIGNAL(destroyed(QObject *)), this, SLOT(clearConnections(QObject *))); } return true; } void QEdje::clearConnections(QObject *obj) { disconnectEdjeSignal(obj); } /*! Fix a minimum size for a internal part. */ void QEdje::setFixedPartMinSize(const QString &part, QSize &size) { QEdjeRealPart *rp = realPart(part); if (rp && rp->fixedMinSize() != size) { rp->setFixedMinSize(size); dirty = true; recalculate(); } } /*! Fix a maximum size for a internal part. */ void QEdje::setFixedPartMaxSize(const QString &part, QSize &size) { QEdjeRealPart *rp = realPart(part); if (rp && rp->fixedMaxSize() != size) { rp->setFixedMaxSize(size); dirty = true; recalculate(); } } /*! Returns a list of group names from an edj file. */ QStringList groupNamesFromFile(const QString &filename) { QStringList result; QEdjeFile *f = QEdjeLoader::load(filename); if (!f) return result; foreach (QEdjePartCollectionDirectoryEntry *e, f->collectionDir) result.append(e->entry); QEdjeLoader::unload(filename); return result; } qedje-mainline/src/qedje.h000066400000000000000000000127121116615416200157760ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef __QEDJE_H__ #define __QEDJE_H__ #include #include #include #include "qedjeimage.h" #define EDJE_FILE_VERSION 2 #define FLAG_NONE 0 #define FLAG_X 0x01 #define FLAG_Y 0x02 #define FLAG_XY (FLAG_X | FLAG_Y) class QEdjeRealPart; class QRunningProgram; class QEdjeFile; struct QEdjeProgram; struct QEdjeColorClass; /*! \class QEdje \brief Handler of parts described by and edje group. Handle swallows, signals, programs and parts of an edje group. It's a representation of an edje group and responsible about emitting signals, calling callbacks, moving/showing/hiding parts on the canvas and make everything respect the relatives positions. */ class QEdje : public QZionGroup { Q_OBJECT public: QEdje(QZionAbstractCanvas *canvas, const QString &filename, const QString &group); ~QEdje(); virtual void canvasResizeEvent(QResizeEvent *event); void emitEdjeSignal(const QString &emission, const QString &source); bool connectEdjeSignal(const QString &emission, const QString &source, QObject *receiver, const char *method); bool disconnectEdjeSignal(const QString &emission, const QString &source, QObject *receiver = 0, const char *method = 0); bool disconnectEdjeSignal(QObject *receiver, const char *method = 0); void partSwallow(const QString &part, QZionObject *obj_swallow); QZionObject* partUnswallow(const QString &part); QZionObject* part(const QString &part); const QString& path() const { return _path; } const QString& group() const { return _group; } virtual void setSize(const QSize &size); inline QSize propMin() const; inline QSize propMax() const; void setFixedPartMinSize(const QString &part, QSize &size); void setFixedPartMaxSize(const QString &part, QSize &size); bool setFile(const QString &filename); protected: virtual void mouseObjectMoveEvent(QZionObject *src, QMouseEvent *e); virtual void mouseObjectPressEvent(QZionObject *src, QMouseEvent *e); virtual void mouseObjectReleaseEvent(QZionObject *src, QMouseEvent *e); virtual void wheelObjectEvent(QZionObject *src, QWheelEvent *e); private: friend class QEdjeRealPart; friend class QRunningProgram; QEdjeRealPart* realPart(const QString &part); QEdjeRealPart* getRealPartRecursive(const QString &part); QEdjeRealPart* getRealPartRecursiveHelper(QStringList path, int index); QEdjeColorClass *colorClass(const QString &name) const; inline QEdjeRealPart *findPart(const int id); inline QEdjeProgram *findProgram(const int id); void recalculate(); int freeze(); int thaw(); bool populate(); void programStateSet(QEdjeProgram *program); void programStop(QEdjeProgram *program); void launchProgram(QEdjeProgram *program); void launchAfterPrograms(QEdjeProgram *program); void launchPrograms(const QString &signal, const QString &part); void notifyCallbacks(const QString &signal, const QString &part); void unrefRunningProgram(QRunningProgram *runningProgram); const QEdjeFile *edjeFile; QString _path; QString _group; QList tableParts; QList tablePrograms; QList _runningPrograms; bool dirty; int frozen; bool recalc; bool calculateOnly; QZionObject *lastObjectPressed; QSize _propMin; QSize _propMax; // TODO: general missing fields enum AfterExecution { doExecuteAfter, doNotExecuteAfter }; void iterateState(qreal value, QList &targets); void runLastIteration(QList &targets, QEdjeProgram *program, AfterExecution after); struct Connection; QList _connections; void notifyConnections(const QString &emission, const QString &source); int _notifyingConnections; bool _connectionsToDelete; bool isReceiver(QObject *) const; private Q_SLOTS: void clearConnections(QObject *obj); }; /*! Returns a QEdjeRealPart searching by id. */ inline QEdjeRealPart *QEdje::findPart(const int id) { if (id < 0 || id >= tableParts.size()) return NULL; return tableParts[id]; } /*! Returns a QEdjeProgram searching by id. */ inline QEdjeProgram *QEdje::findProgram(const int id) { if (id < 0 || id >= tablePrograms.size()) return NULL; return tablePrograms[id]; } /*! Returns the minimum size specified by the group. */ inline QSize QEdje::propMin() const { return _propMin; } /*! Returns the maximum size specified by the group. */ inline QSize QEdje::propMax() const { return _propMax; } QStringList groupNamesFromFile(const QString &filename); #endif qedje-mainline/src/qedje.pc.cmake000066400000000000000000000003501116615416200172230ustar00rootroot00000000000000prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} libdir=@LIB_INSTALL_DIR@ includedir=${prefix}/include Name: QEdje Description: QEdje Library Version: @QEDJE_LIB_VERSION_STRING@ Libs: -L${libdir} -lqedje Cflags: -I${includedir} qedje-mainline/src/qedjedebug.cpp000066400000000000000000000225651116615416200173470ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . * * This file incorporates work covered by the license described in the * file COPYING.libedje. */ #include "qedje.h" #include "qedjeloader.h" #if !defined(QT_NO_DEBUG_STREAM) /*! Returns a string representation of a QColor. */ static QString strColor(const QColor s) { return QString("(%1, %2, %3, %4)").arg(s.red()) .arg(s.green()).arg(s.blue()).arg(s.alpha()); } /*! Print all internal data of a QEdjeColorClass. */ QDebug operator<<(QDebug dbg, const QEdjeColorClass &e) { dbg.nospace() << "\n.. [colorClass: name = " << e.name << "]"; dbg.nospace() << "\n..... color: " << strColor(e.color); dbg.nospace() << "\n..... color2: " << strColor(e.color2); dbg.nospace() << "\n..... color3: " << strColor(e.color3); return dbg.space(); } /*! Print all internal data of a QEdjePartDescription. */ QDebug operator<<(QDebug dbg, const QEdjePartDescription &desc) { dbg.nospace() << "\n........ [description: name = " << desc.state.name << ", value = " << desc.state.value << "]"; dbg.nospace() << "\n........... align: " << desc.align; dbg.nospace() << "\n........... visible: " << desc.visible; dbg.nospace() << "\n........... imageId: " << desc.imageId; dbg.nospace() << "\n........... fixedWidth: " << desc.fixedWidth; dbg.nospace() << "\n........... fixedHeight: " << desc.fixedHeight; dbg.nospace() << "\n........... min: " << desc.min; dbg.nospace() << "\n........... max: " << desc.max; dbg.nospace() << "\n........... step: " << desc.step; dbg.nospace() << "\n........... color: " << strColor(desc.color); dbg.nospace() << "\n........... color2: " << strColor(desc.color2); dbg.nospace() << "\n........... color3: " << strColor(desc.color3); dbg.nospace() << "\n........... aspect min: " << desc.aspect.min; dbg.nospace() << "\n........... aspect max: " << desc.aspect.max; dbg.nospace() << "\n........... aspect pref: " << desc.aspect.prefer; dbg.nospace() << "\n........... [rel1]"; dbg.nospace() << "\n.............. idx: " << desc.rel1.idX; dbg.nospace() << "\n.............. idy: " << desc.rel1.idY; dbg.nospace() << "\n.............. offset: " << desc.rel1.offset; dbg.nospace() << "\n.............. relative: " << desc.rel1.relative; dbg.nospace() << "\n........... [rel2]"; dbg.nospace() << "\n.............. idx: " << desc.rel2.idX; dbg.nospace() << "\n.............. idy: " << desc.rel2.idY; dbg.nospace() << "\n.............. offset: " << desc.rel2.offset; dbg.nospace() << "\n.............. relative: " << desc.rel2.relative; dbg.nospace() << "\n........... [text]"; dbg.nospace() << "\n.............. text: " << desc.text.text; dbg.nospace() << "\n.............. textClass: " << desc.text.textClass; dbg.nospace() << "\n.............. style: " << desc.text.style; dbg.nospace() << "\n.............. font: " << desc.text.font; dbg.nospace() << "\n.............. align: " << desc.text.align; dbg.nospace() << "\n.............. elipsis: " << desc.text.elipsis; dbg.nospace() << "\n.............. size: " << desc.text.size; dbg.nospace() << "\n.............. idSource: " << desc.text.idSource; dbg.nospace() << "\n.............. idTextSource: " << desc.text.idTextSource; dbg.nospace() << "\n.............. fitX: " << desc.text.fitX; dbg.nospace() << "\n.............. fitY: " << desc.text.fitY; dbg.nospace() << "\n.............. minX: " << desc.text.minX; dbg.nospace() << "\n.............. minY: " << desc.text.minY; dbg.nospace() << "\n.............. maxX: " << desc.text.maxX; dbg.nospace() << "\n.............. maxY: " << desc.text.maxY; // TWEEN LIST TODO return dbg.space(); } /*! Print all internal data of a QEdjePartCollection. */ QDebug operator<<(QDebug dbg, QEdjePartCollection *e) { dbg.nospace() << "\n.. [group: id = " << e->id << ", name = " << e->part << "]"; dbg.nospace() << "\n..... min: " << e->propMin; dbg.nospace() << "\n..... max: " << e->propMax; foreach (QEdjeProgram *p, e->programs) { dbg.nospace() << "\n..... [program: id = " << p->id << ", name = " << p->name << "]"; dbg.nospace() << "\n........ signal: " << p->signal; dbg.nospace() << "\n........ source: " << p->source; dbg.nospace() << "\n........ action: " << p->action; dbg.nospace() << "\n........ state: " << p->state; dbg.nospace() << "\n........ state2: " << p->state2; dbg.nospace() << "\n........ value: " << p->value; dbg.nospace() << "\n........ value2: " << p->value2; dbg.nospace() << "\n........ inFrom: " << p->inFrom; dbg.nospace() << "\n........ inRange: " << p->inRange; dbg.nospace() << "\n........ tweenMode: " << p->tweenMode; dbg.nospace() << "\n........ tweenTime: " << p->tweenTime; dbg.nospace() << "\n........ targets: " << p->targets; dbg.nospace() << "\n........ after: " << p->after; } foreach (QEdjePart *p, e->parts) { dbg.nospace() << "\n..... [part: id = " << p->id << ", name = " << p->name << ", type = " << p->type << "]"; dbg.nospace() << "\n........ effect: " << p->effect; dbg.nospace() << "\n........ clip_to: " << p->clipToId; dbg.nospace() << "\n........ source: " << p->source; dbg.nospace() << "\n........ mouse_events: " << p->mouseEvents; dbg.nospace() << "\n........ repeat_events: " << p->repeatEvents; dbg.nospace() << "\n........ precise_is_inside: " << p->preciseIsInside; dbg.nospace() << "\n........ use_alternate_font_metrics: " << p->useAlternateFontMetrics; dbg.nospace() << "\n........ [dragable]"; dbg.nospace() << "\n........... x: " << p->dragable.x; dbg.nospace() << "\n........... y: " << p->dragable.y; dbg.nospace() << "\n........... step: " << p->dragable.step; dbg.nospace() << "\n........... count: " << p->dragable.count; dbg.nospace() << "\n........... eventsId: " << p->dragable.eventsId; dbg.nospace() << "\n........... confineId: " << p->dragable.confineId; dbg.nospace() << p->defaultDescription; foreach (QEdjePartDescription *e, p->otherDescriptions) dbg.nospace() << *e; } foreach (QEdjeData *p, e->data) { dbg.nospace() << "\n..... [data]"; dbg.nospace() << "\n........ key: " << p->key; dbg.nospace() << "\n........ value: " << p->value; } return dbg.space(); } /*! Print all internal data of a QEdjeStyle. */ QDebug operator<<(QDebug dbg, const QEdjeStyle &e) { dbg.nospace() << "\n.. [style: name = " << e.name << "]"; foreach(QEdjeStyleTag *tag, e.tags) { dbg.nospace() << "\n..... [tag]"; dbg.nospace() << "\n........ key: " << tag->key; dbg.nospace() << "\n........ value: " << tag->value; dbg.nospace() << "\n........ font: " << tag->font; dbg.nospace() << "\n........ fontSize: " << tag->fontSize; dbg.nospace() << "\n........ textClass: " << tag->textClass; } } /*! Print all internal data of a QEdjeFile. */ QDebug operator<<(QDebug dbg, const QEdjeFile &s) { dbg.nospace() << "[QEdjeFile]"; dbg.nospace() << "\n.. version: " << s.version; dbg.nospace() << "\n.. compiler: " << s.compiler; dbg.nospace() << "\n.. feature_ver: " << s.featureVer; foreach (QEdjeStyle *e, s.styles) { dbg.nospace() << *e; } foreach (QEdjeColorClass *e, s.colorClasses) { dbg.nospace() << *e; } dbg.nospace() << "\n.. [font_dir_entry]"; foreach (QEdjeFontDirectoryEntry *e, s.fontDir) { dbg.nospace() << "\n..... (entry = " << e->entry << ", path = " << e->path << ")"; } dbg.nospace() << "\n.. [image_dir_entry]"; foreach (QEdjeImageDirectoryEntry *e, s.imageDir) { dbg.nospace() << "\n..... (id = " << e->id << ", entry: " << e->entry << ", sourceType: " << e->sourceType << ", sourceParam: " << e->sourceParam << ")"; } dbg.nospace() << "\n.. [collection_dir_entry]"; foreach (QEdjePartCollectionDirectoryEntry *e, s.collectionDir) { dbg.nospace() << "\n..... (id = " << e->id << ", entry = " << e->entry << ")"; } dbg.nospace() << "\n.. [data]"; foreach (QEdjeData *e, s.data) { dbg.nospace() << "\n..... (key = " << e->key << ", value = " << e->value << ")"; } foreach (QEdjePartCollection *e, s.collectionHash) { dbg.nospace() << e; } return dbg.space(); } #endif qedje-mainline/src/qedjeimage.cpp000066400000000000000000000110441116615416200173310ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . * * This file incorporates work covered by the license described in the * file COPYING.libedje. */ #include #include #include #include #include #include #include "qedjeimage.h" /*! \class QEdjeImage \brief A pixmap that uses internal image cache. A QEdjeImage is a pixmap that can be loaded from an edj file and placed in a canvas. */ #define DATA32 unsigned int /*! Constructs a QEdjeImage with empty pixmap. */ QEdjeImage::QEdjeImage(QZionAbstractCanvas *canvas) : QZionImage(canvas) { } /*! Constructs a QEdjeImage with specified image. The filepath must be a valid edj file and the key a valid image key inside this edj file. */ QEdjeImage::QEdjeImage(QZionAbstractCanvas *canvas, const QString &filepath, const QString &key) : QZionImage(canvas) { if (key == "images/-1") { clear(); return; } if (!load(filepath, key)) { qCritical("Error loading image data \"%s\" from \"%s\"", key.toLatin1().data(), filepath.toLatin1().data()); } } /*! Load an image from a edj file. You must specify the edj filepath and the image key. \code QEdjeImage im(canvas); im.load("default.edj", "images/1"); \endcode */ bool QEdjeImage::load(const QString &filename, const QString &key) { if (_filepath == filename && _key == key) return true; _key = key; _filepath = filename; QPixmap result; QString token = filename + ":" + key; if (QPixmapCache::find(token, result)) { setPixmap(result); return true; } result = loadPixmapFromEetFile(filename, key); if (result.isNull()) { clear(); return false; } QPixmapCache::insert(token, result); setPixmap(result); return true; } /*! Reload the image (force cache update) */ bool QEdjeImage::reload() { if (pixmap().isNull()) return true; QPixmap result; result = loadPixmapFromEetFile(_filepath, _key); if (result.isNull()) { clear(); return false; } QString token = _filepath + ":" + _key; QPixmapCache::insert(token, result); QZionImageBorder b = border(); setPixmap(result); setBorder(b); return true; } /*! \internal Load an image from an edj file looking for it's key. \todo Check loading performance (ref. evas_image_load_file_data_eet) */ QPixmap QEdjeImage::loadPixmapFromEetFile(const QString &filename, const QString &fkey) { int maxlen = 400; char file[maxlen], key[maxlen]; if (filename.size() >= maxlen || fkey.size() >= maxlen) { qCritical("Filename or key too long."); return QPixmap(); } strncpy(file, filename.toLatin1().data(), filename.size() + 1); strncpy(key, fkey.toLatin1().data(), fkey.size() + 1); Eet_File *ef = eet_open(file, EET_FILE_MODE_READ); if (!ef) { qCritical("Could not open edj file"); return QPixmap(); } unsigned int w, h; int alpha, compression, quality, lossy; DATA32 *body = (DATA32 *)eet_data_image_read(ef, key, &w, &h, &alpha, &compression, &quality, &lossy); eet_close(ef); if (!body) { qCritical("Could not load image from edj file"); return QPixmap(); } if ((w < 1) || (h < 1) || (w > 8192) || (h > 8192)) { free(body); qCritical("Invalid image dimension"); return QPixmap(); } // edje compiled images are premultiplied QImage image = QImage(w, h, QImage::Format_ARGB32_Premultiplied); memcpy(image.bits(), body, w * h * sizeof(DATA32)); free(body); return QPixmap::fromImage(image); } qedje-mainline/src/qedjeimage.h000066400000000000000000000023501116615416200167760ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef __QEDJEIMAGE_H__ #define __QEDJEIMAGE_H__ #include "qzion.h" class QEdjeImage : public QZionImage { Q_OBJECT public: QEdjeImage(QZionAbstractCanvas *canvas = NULL); QEdjeImage(QZionAbstractCanvas *canvas, const QString &filepath, const QString &key); bool load(const QString &filename, const QString &key); bool reload(); private: QString _key; QPixmap loadPixmapFromEetFile(const QString &filename, const QString &fkey); }; #endif qedje-mainline/src/qedjeloader.cpp000066400000000000000000002007311116615416200175200ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . * * This file incorporates work covered by the license described in the * file COPYING.libedje. */ #include "qedjeloader.h" #include #include #include #include // edje program action constant #define SIGNAL_EMIT 3 EAPI Eet_Data_Descriptor *descriptorEdjeFile = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeStyle = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeStyleTag = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeColorClass = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeData = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeFontDirectory = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeFontDirectoryEntry = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeImageDirectory = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeImageDirectoryEntry = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeSpectrumDirectory = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeSpectrumDirectoryEntry = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeSpectrumColor = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeProgram = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeProgramTarget = NULL; EAPI Eet_Data_Descriptor *descriptorEdjeProgramAfter = NULL; EAPI Eet_Data_Descriptor *descriptorEdjePartCollectionDirectory = NULL; EAPI Eet_Data_Descriptor *descriptorEdjePartCollectionDirectoryEntry = NULL; EAPI Eet_Data_Descriptor *descriptorEdjePartCollection = NULL; EAPI Eet_Data_Descriptor *descriptorEdjePart = NULL; EAPI Eet_Data_Descriptor *descriptorEdjePartDescription = NULL; EAPI Eet_Data_Descriptor *descriptorEdjePartImageId = NULL; /*! This loader extracts edj information creating a data descriptor for every edje structs (old code dependency). This is the eet way. The problem is that we need to replicate original edje structs to do this. This will need a future code refactory. The best way to do this is to create a walker in eet, so we won't need this old structs anymore. */ typedef enum Edje_Part_Event_Flags { EDJE_PART_EVENT_FLAG_NONE = 0, /* No fancy flags set */ EDJE_PART_EVAS_EVENT_FLAG_ON_HOLD = (1 << 0) /* This event is being delivered but should be put "on hold" until the on hold flag is unset. the event should be used for informational purposes and maybe some indications visually, but not actually perform anything */ } Edje_Part_Event_Flags; typedef struct QEdjeSize { int width; int height; } QEdjeSize; typedef struct QEdjePoint { int x; int y; } QEdjePoint; typedef struct QEdjePointF { double x; double y; } QEdjePointF; typedef struct QEdjeColor { int red; int green; int blue; int alpha; } QEdjeColor; typedef struct Edje_Style { char *name; QList *tags; //Evas_Textblock_Style *style; } Edje_Style; typedef struct Edje_Style_Tag { const char *key; const char *value; const char *font; double fontSize; const char *textClass; } Edje_Style_Tag; typedef struct Edje_Color_Class { const char *name; unsigned char r, g, b, a; unsigned char r2, g2, b2, a2; unsigned char r3, g3, b3, a3; } Edje_Color_Class; typedef struct Edje_Part_Image_Id { int id; } Edje_Part_Image_Id; typedef struct Edje_Font_Directory { QList *entries; } Edje_Font_Directory; typedef struct Edje_Font_Directory_Entry { const char *entry; /* the name of the font */ const char *path; } Edje_Font_Directory_Entry; typedef struct Edje_Image_Directory { QList *entries; } Edje_Image_Directory; typedef struct Edje_Image_Directory_Entry { char *entry; /* the nominal name of the image - if any */ int sourceType; /* alternate source mode. 0 = none */ int sourceParam; /* extra params on encoding */ int id; /* the id no. of the image */ } Edje_Image_Directory_Entry; typedef struct Edje_Spectrum_Color { int r, g, b, a; int d; } Edje_Spectrum_Color; typedef struct Edje_Spectrum_Directory { QList *entries; /* a list of Edje_Spectrum_Directory_Entry */ } Edje_Spectrum_Directory; typedef struct Edje_Spectrum_Directory_Entry { char *entry; /* only one of the following two should be included. filename takes precedence */ char *filename; /* filename of external spectrum. */ QList *colorList; /* list of Edje_Spectrum_Color */ int id; } Edje_Spectrum_Directory_Entry; typedef struct Edje_Part_Collection_Directory { QList *entries; /* a list of Edje_Part_Collection_Directory_Entry */ int references; } Edje_Part_Collection_Directory; typedef struct Edje_Part_Collection_Directory_Entry { const char *entry; /* the nominal name of the part collection */ int id; /* the id of this named part collection */ } Edje_Part_Collection_Directory_Entry; typedef struct Edje_Data { char *key; char *value; } Edje_Data; typedef struct Edje_Program { int id; /* id of program */ const char *name; /* name of the action */ const char *signal; /* if signal emission name matches the glob here... */ const char *source; /* if part that emitted this (name) matches this glob */ struct { double from; double range; } in; int action; /* type - set state, stop action, set drag pos etc. */ char *state; /* what state of alternates to apply, NULL = default */ char *state2; /* what other state to use - for signal emit action */ double value; /* value of state to apply (if multiple names match) */ double value2; /* other value for drag actions */ struct { int mode; /* how to tween - linear, sinusoidal etc. */ double time; /* time to graduate between current and new state */ } tween; QList *targets; /* list of target parts to apply the state to */ QList *after; /* list of actions to run at the end of this, for looping */ } Edje_Program; typedef struct Edje_Program_Target { int id; /* just the part id no, or action id no */ } Edje_Program_Target; typedef struct Edje_Program_After { int id; } Edje_Program_After; typedef struct Edje_Part_Collection { QList *programs; /* a list of Edje_Program */ QList *parts; /* a list of Edje_Part */ QList *data; int id; /* the collection id */ struct { QEdjeSize min, max; } prop; int references; //Embryo_Program *script; /* all the embryo script code for this group */ const char *part; } Edje_Part_Collection; typedef struct Edje_File { const char *path; Edje_Font_Directory *fontDir; Edje_Image_Directory *imageDir; Edje_Spectrum_Directory *spectrumDir; Edje_Part_Collection_Directory *collectionDir; QList *data; QList *styles; QList *colorClasses; int references; char *compiler; int version; int featureVer; QHash *collectionHash; QHash *fontHash; QList *collectionCache; QHash *dataCache; Eet_File *ef; unsigned int freeStrings : 1; } Edje_File; typedef struct Edje_Part_Description { struct { const char *name; /* the named state if any */ double value; /* the value of the state (for ranges) */ } state; QEdjePointF align; /* 0 <-> 1.0 alignment within allocated space */ struct { bool width; bool height; /* width or height is fixed in side (cannot expand with Edje object size) */ } fixed; QEdjeSize min, max; QEdjePoint step; /* size stepping by n pixels, 0 = none */ struct { double min; double max; QEdjeAspectPrefer prefer; } aspect; struct { int idX; /* -1 = whole part collection, or part ID */ int idY; /* -1 = whole part collection, or part ID */ QEdjePoint offset; QEdjePointF relative; } rel1, rel2; struct { int id; /* the image id to use */ QList *tweenList; /* list of Edje_Part_Image_Id */ } image; struct { char *type; /* type of spectrum - 'linear', 'radial', etc */ char *params; /* params for spectrum type */ int id; /* the spectrum id to use */ int useRel; /* 1 - use rel1,rel2; 0 - use fill */ struct { QEdjePoint offset; QEdjePointF relative; } rel1, rel2; /* linear gradient fill options */ } gradient; struct { /* border scaling on image fill */ int top; int left; int right; int bottom; unsigned char noFill; /* do we fill the center of the image if bordered? 1 == NO!!!! */ } border; struct { QEdjePoint abs; /* size of fill added to relative fill */ QEdjePointF rel; /* relative size compared to area */ QEdjePoint posAbs; /* fill offset added to fill offset */ QEdjePointF posRel; /* fill offset relative to area */ int angle; /* angle of fill -- currently only used by grads */ int spread; /* spread of fill -- currently only used by grads */ bool smooth; /* fill with smooth scaling or not */ unsigned char type; /* fill coordinate from container (SCALE) or from source image (TILE) */ } fill; struct { char *text; /* if "" or NULL, then leave text unchanged */ char *textClass; /* how to apply/modify the font */ char *style; /* the text style if a textblock */ char *font; /* if a specific font is asked for */ QEdjePointF align; /* text alignment within bounds */ double elipsis; /* 0.0 - 1.0 defining where the elipsis align */ int size; /* 0 = use user set size */ int idSource; /* -1 if none */ int idTextSource; /* -1 if none */ bool fitX; /* resize font size down to fit in x dir */ bool fitY; /* resize font size down to fit in y dir */ bool minX; /* if text size should be part min size */ bool minY; /* if text size should be part min size */ bool maxX; /* if text size should be part max size */ bool maxY; /* if text size should be part max size */ } text; char *colorClass; /* how to modify the color */ /* color for rect or text, shadow etc. */ QEdjeColor color; QEdjeColor color2; QEdjeColor color3; bool visible; } Edje_Part_Description; typedef struct Edje_Part { const char *name; /* the name if any of the part */ Edje_Part_Description *defaultDescription; /* the part descriptor for default */ QList *otherDescriptions; /* other possible descriptors */ const char *source; int id; /* its id number */ int clipToId; /* the part id to clip this one to */ struct { QEdjePoint step; /* drag jumps n pixels (0 = no limit) */ QEdjePoint count; /* drag area divided by n (0 = no limit) */ int confineId; /* dragging within this bit, -1 = no */ /* davinchi */ int eventsId; /* If it is used as scrollbar */ bool x; /* can u click & drag this bit in x dir */ bool y; /* can u click & drag this bit in y dir */ } dragable; unsigned char type; /* what type (image, rect, text) */ unsigned char effect; /* 0 = plain... */ bool mouseEvents; /* it will affect/respond to mouse events */ bool repeatEvents; /* it will repeat events to objects below */ Edje_Part_Event_Flags ignoreFlags; bool preciseIsInside; bool useAlternateFontMetrics; char pointerMode; } Edje_Part; #define NEWD(str, typ) \ { eddc.name = str; eddc.size = sizeof(typ); } #define FREED(eed) \ if (eed) { \ eet_data_descriptor_free((eed)); \ (eed) = NULL; \ } static char *addStringDirect(const char *str) { return (char *)str; } static void delStringDirect(const char * /*str*/) { } static void *appendListItem(void *lst, void *data) { QList *l; if (!lst) l = new QList (); else l = (QList *) lst; l->append(data); return (void *) l; } static char *addStringShare(const char *val) { return (char *) val; } static void delStringShare(const char * /*val*/) { } /*! \internal Setup Edje data descriptors for eet, to load all eet file to memory. */ static void setupEetDataDescriptors() { Eet_Data_Descriptor_Class eddc; eddc.version = EET_DATA_DESCRIPTOR_CLASS_VERSION; eddc.func.mem_alloc = NULL; eddc.func.mem_free = NULL; eddc.func.str_alloc = addStringShare; eddc.func.str_free = delStringShare; eddc.func.list_next = NULL; eddc.func.list_append = appendListItem; eddc.func.list_data = NULL; eddc.func.list_free = NULL; eddc.func.hash_foreach = NULL; eddc.func.hash_add = NULL; eddc.func.hash_free = NULL; eddc.func.str_direct_alloc = addStringDirect; eddc.func.str_direct_free = delStringDirect; NEWD("Edje_Font_Directory_Entry", Edje_Font_Directory_Entry); descriptorEdjeFontDirectoryEntry = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeFontDirectoryEntry, Edje_Font_Directory_Entry, "entry", entry, EET_T_STRING); NEWD("Edje_Font_Directory", Edje_Font_Directory); descriptorEdjeFontDirectory = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeFontDirectory, Edje_Font_Directory, "entries", entries, descriptorEdjeFontDirectoryEntry); NEWD("Edje_Image_Directory_Entry", Edje_Image_Directory_Entry); descriptorEdjeImageDirectoryEntry = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeImageDirectoryEntry, Edje_Image_Directory_Entry, "entry", entry, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeImageDirectoryEntry, Edje_Image_Directory_Entry, "source_type", sourceType, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeImageDirectoryEntry, Edje_Image_Directory_Entry, "source_param", sourceParam, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeImageDirectoryEntry, Edje_Image_Directory_Entry, "id", id, EET_T_INT); NEWD("Edje_Image_Directory", Edje_Image_Directory); descriptorEdjeImageDirectory = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeImageDirectory, Edje_Image_Directory, "entries", entries, descriptorEdjeImageDirectoryEntry); NEWD("Edje_Spectrum_Color", Edje_Spectrum_Color); descriptorEdjeSpectrumColor = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumColor, Edje_Spectrum_Color, "r", r, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumColor, Edje_Spectrum_Color, "g", g, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumColor, Edje_Spectrum_Color, "b", b, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumColor, Edje_Spectrum_Color, "a", a, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumColor, Edje_Spectrum_Color, "d", d, EET_T_INT); NEWD("Edje_Spectrum_Directory_Entry", Edje_Spectrum_Directory_Entry); descriptorEdjeSpectrumDirectoryEntry = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumDirectoryEntry, Edje_Spectrum_Directory_Entry, "entry", entry, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumDirectoryEntry, Edje_Spectrum_Directory_Entry, "filename", filename, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeSpectrumDirectoryEntry, Edje_Spectrum_Directory_Entry, "color_list", colorList, descriptorEdjeSpectrumColor); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeSpectrumDirectoryEntry, Edje_Spectrum_Directory_Entry, "id", id, EET_T_INT); NEWD("Edje_Spectrum_Directory", Edje_Spectrum_Directory); descriptorEdjeSpectrumDirectory = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeSpectrumDirectory, Edje_Spectrum_Directory, "entries", entries, descriptorEdjeSpectrumDirectoryEntry); NEWD("Edje_Part_Collection_Directory_Entry", Edje_Part_Collection_Directory_Entry); descriptorEdjePartCollectionDirectoryEntry = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollectionDirectoryEntry, Edje_Part_Collection_Directory_Entry, "entry", entry, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollectionDirectoryEntry, Edje_Part_Collection_Directory_Entry, "id", id, EET_T_INT); NEWD("Edje_Part_Collection_Directory", Edje_Part_Collection_Directory); descriptorEdjePartCollectionDirectory = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjePartCollectionDirectory, Edje_Part_Collection_Directory, "entries", entries, descriptorEdjePartCollectionDirectoryEntry); NEWD("Edje_Data", Edje_Data); descriptorEdjeData = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeData, Edje_Data, "key", key, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeData, Edje_Data, "value", value, EET_T_STRING); NEWD("Edje_Style_Tag", Edje_Style_Tag); descriptorEdjeStyleTag = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeStyleTag, Edje_Style_Tag, "key", key, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeStyleTag, Edje_Style_Tag, "value", value, EET_T_STRING); NEWD("Edje_Style", Edje_Style); descriptorEdjeStyle = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeStyle, Edje_Style, "name", name, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeStyle, Edje_Style, "tags", tags, descriptorEdjeStyleTag); NEWD("Edje_Color_Class", Edje_Color_Class); descriptorEdjeColorClass = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "name", name, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "r", r, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "g", g, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "b", b, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "a", a, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "r2", r2, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "g2", g2, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "b2", b2, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "a2", a2, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "r3", r3, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "g3", g3, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "b3", b3, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeColorClass, Edje_Color_Class, "a3", a3, EET_T_UCHAR); NEWD("Edje_File", Edje_File); descriptorEdjeFile = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeFile, Edje_File, "compiler", compiler, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeFile, Edje_File, "version", version, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeFile, Edje_File, "feature_ver", featureVer, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_SUB(descriptorEdjeFile, Edje_File, "font_dir", fontDir, descriptorEdjeFontDirectory); EET_DATA_DESCRIPTOR_ADD_SUB(descriptorEdjeFile, Edje_File, "image_dir", imageDir, descriptorEdjeImageDirectory); EET_DATA_DESCRIPTOR_ADD_SUB(descriptorEdjeFile, Edje_File, "spectrum_dir", spectrumDir, descriptorEdjeSpectrumDirectory); EET_DATA_DESCRIPTOR_ADD_SUB(descriptorEdjeFile, Edje_File, "collection_dir", collectionDir, descriptorEdjePartCollectionDirectory); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeFile, Edje_File, "data", data, descriptorEdjeData); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeFile, Edje_File, "styles", styles, descriptorEdjeStyle); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeFile, Edje_File, "color_classes", colorClasses, descriptorEdjeColorClass); NEWD("Edje_Program_Target", Edje_Program_Target); descriptorEdjeProgramTarget = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgramTarget, Edje_Program_Target, "id", id, EET_T_INT); NEWD("Edje_Program_After", Edje_Program_After); descriptorEdjeProgramAfter = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgramAfter, Edje_Program_After, "id", id, EET_T_INT); NEWD("Edje_Program", Edje_Program); descriptorEdjeProgram = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "id", id, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "name", name, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "signal", signal, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "source", source, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "in.from", in.from, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "in.range", in.range, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "action", action, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "state", state, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "state2", state2, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "value", value, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "value2", value2, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "tween.mode", tween.mode, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjeProgram, Edje_Program, "tween.time", tween.time, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeProgram, Edje_Program, "targets", targets, descriptorEdjeProgramTarget); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjeProgram, Edje_Program, "after", after, descriptorEdjeProgramAfter); NEWD("Edje_Part_Image_Id", Edje_Part_Image_Id); descriptorEdjePartImageId = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartImageId, Edje_Part_Image_Id, "id", id, EET_T_INT); NEWD("Edje_Part_Description", Edje_Part_Description); descriptorEdjePartDescription = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "state.name", state.name, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "state.value", state.value, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "visible", visible, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "align.x", align.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "align.y", align.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fixed.w", fixed.width, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fixed.h", fixed.height, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "min.w", min.width, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "min.h", min.height, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "max.w", max.width, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "max.h", max.height, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "step.x", step.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "step.y", step.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "aspect.min", aspect.min, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "aspect.max", aspect.max, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "aspect.prefer", aspect.prefer, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel1.relative_x", rel1.relative.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel1.relative_y", rel1.relative.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel1.offset_x", rel1.offset.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel1.offset_y", rel1.offset.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel1.id_x", rel1.idX, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel1.id_y", rel1.idY, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel2.relative_x", rel2.relative.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel2.relative_y", rel2.relative.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel2.offset_x", rel2.offset.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel2.offset_y", rel2.offset.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel2.id_x", rel2.idX, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "rel2.id_y", rel2.idY, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "image.id", image.id, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjePartDescription, Edje_Part_Description, "image.tween_list", image.tweenList, descriptorEdjePartImageId); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "border.l", border.left, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "border.r", border.right, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "border.t", border.top, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "border.b", border.bottom, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "border.no_fill", border.noFill, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.smooth", fill.smooth, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.pos_rel_x", fill.posRel.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.pos_abs_x", fill.posAbs.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.rel_x", fill.rel.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.abs_x", fill.abs.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.pos_rel_y", fill.posRel.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.pos_abs_y", fill.posAbs.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.rel_y", fill.rel.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.abs_y", fill.abs.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.angle", fill.angle, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.spread", fill.spread, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "fill.type", fill.type, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color_class", colorClass, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color.r", color.red, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color.g", color.green, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color.b", color.blue, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color.a", color.alpha, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color2.r", color2.red, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color2.g", color2.green, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color2.b", color2.blue, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color2.a", color2.alpha, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color3.r", color3.red, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color3.g", color3.green, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color3.b", color3.blue, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "color3.a", color3.alpha, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.text", text.text, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.text_class", text.textClass, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.style", text.style, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.font", text.font, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.size", text.size, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.fit_x", text.fitX, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.fit_y", text.fitY, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.min_x", text.minX, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.min_y", text.minY, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.max_x", text.maxX, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.max_y", text.maxY, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.align.x", text.align.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.align.y", text.align.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.id_source", text.idSource, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.id_text_source", text.idTextSource, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "text.elipsis", text.elipsis, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.id", gradient.id, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.type", gradient.type, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.use_rel", gradient.useRel, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel1.relative_x", gradient.rel1.relative.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel1.relative_y", gradient.rel1.relative.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel1.offset_x", gradient.rel1.offset.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel1.offset_y", gradient.rel1.offset.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel2.relative_x", gradient.rel2.relative.x, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel2.relative_y", gradient.rel2.relative.y, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel2.offset_x", gradient.rel2.offset.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartDescription, Edje_Part_Description, "gradient.rel2.offset_y", gradient.rel2.offset.y, EET_T_INT); NEWD("Edje_Part", Edje_Part); descriptorEdjePart = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "name", name, EET_T_STRING); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "id", id, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "type", type, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "effect", effect, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "mouse_events", mouseEvents, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "repeat_events", repeatEvents, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "ignore_flags", ignoreFlags, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "pointer_mode", pointerMode, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "precise_is_inside", preciseIsInside, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "clip_to_id", clipToId, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "use_alternate_font_metrics", useAlternateFontMetrics, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_SUB(descriptorEdjePart, Edje_Part, "default_desc", defaultDescription, descriptorEdjePartDescription); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjePart, Edje_Part, "other_desc", otherDescriptions, descriptorEdjePartDescription); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.x", dragable.x, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.step_x", dragable.step.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.count_x", dragable.count.x, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.y", dragable.y, EET_T_CHAR); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.step_y", dragable.step.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.count_y", dragable.count.y, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.counfine_id", dragable.confineId, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "dragable.events_id", dragable.eventsId, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePart, Edje_Part, "source", source, EET_T_STRING); NEWD("Edje_Part_Collection", Edje_Part_Collection); descriptorEdjePartCollection = eet_data_descriptor3_new(&eddc); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjePartCollection, Edje_Part_Collection, "programs", programs, descriptorEdjeProgram); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjePartCollection, Edje_Part_Collection, "parts", parts, descriptorEdjePart); EET_DATA_DESCRIPTOR_ADD_LIST(descriptorEdjePartCollection, Edje_Part_Collection, "data", data, descriptorEdjeData); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollection, Edje_Part_Collection, "prop.min.w", prop.min.width, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollection, Edje_Part_Collection, "prop.min.h", prop.min.height, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollection, Edje_Part_Collection, "prop.max.w", prop.max.width, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollection, Edje_Part_Collection, "prop.max.h", prop.max.height, EET_T_INT); EET_DATA_DESCRIPTOR_ADD_BASIC(descriptorEdjePartCollection, Edje_Part_Collection, "id", id, EET_T_INT); } /*! \internal Load QEdjePartDescription data from Edje_Part_Description struct. \todo Implement Prefered Aspect. \todo Implement Image Tween List. \todo Implement Fill Type. */ static void fillEdjePartDescription(QEdjePartDescription &desc, Edje_Part_Description *data) { desc.state.name = data->state.name; desc.state.value = data->state.value; desc.align.setX(data->align.x); desc.align.setY(data->align.y); desc.fixedWidth = data->fixed.width; desc.fixedHeight = data->fixed.height; desc.min.setWidth(data->min.width); desc.min.setHeight(data->min.height); desc.max.setWidth(data->max.width); desc.max.setHeight(data->max.height); desc.step.setX(data->step.x); desc.step.setY(data->step.y); desc.aspect.min = data->aspect.min; desc.aspect.max = data->aspect.max; // desc.aspect.prefer = data->aspect.prefer; desc.imageId = data->image.id; if (data->image.tweenList) { foreach (void *item, *(data->image.tweenList)) { int *item_cast = (int*) item; desc.tweenList.append(*item_cast); } } desc.rel1.idX = data->rel1.idX; desc.rel1.idY = data->rel1.idY; desc.rel1.offset.setX(data->rel1.offset.x); desc.rel1.offset.setY(data->rel1.offset.y); desc.rel1.relative.setX(data->rel1.relative.x); desc.rel1.relative.setY(data->rel1.relative.y); desc.rel2.idX = data->rel2.idX; desc.rel2.idY = data->rel2.idY; desc.rel2.offset.setX(data->rel2.offset.x); desc.rel2.offset.setY(data->rel2.offset.y); desc.rel2.relative.setX(data->rel2.relative.x); desc.rel2.relative.setY(data->rel2.relative.y); // image.tween_list desc.gradient.id = data->gradient.id; desc.gradient.type = data->gradient.type; desc.gradient.params = data->gradient.params; desc.gradient.useRel = (bool)data->gradient.useRel; desc.gradient.rel1.offset.setX(data->gradient.rel1.offset.x); desc.gradient.rel1.offset.setY(data->gradient.rel1.offset.y); desc.gradient.rel1.relative.setX(data->gradient.rel1.relative.x); desc.gradient.rel1.relative.setY(data->gradient.rel1.relative.y); desc.gradient.rel2.offset.setX(data->gradient.rel2.offset.x); desc.gradient.rel2.offset.setY(data->gradient.rel2.offset.y); desc.gradient.rel2.relative.setX(data->gradient.rel2.relative.x); desc.gradient.rel2.relative.setY(data->gradient.rel2.relative.y); desc.border.top = data->border.top; desc.border.bottom = data->border.bottom; desc.border.left = data->border.left; desc.border.right = data->border.right; desc.border.noFill = data->border.noFill; desc.fill.abs.setX(data->fill.abs.x); desc.fill.abs.setY(data->fill.abs.y); desc.fill.rel.setX(data->fill.rel.x); desc.fill.rel.setY(data->fill.rel.y); desc.fill.posAbs.setX(data->fill.posAbs.x); desc.fill.posAbs.setY(data->fill.posAbs.y); desc.fill.posRel.setX(data->fill.posRel.x); desc.fill.posRel.setY(data->fill.posRel.y); desc.fill.angle = data->fill.angle; desc.fill.spread = data->fill.spread; desc.fill.smooth = data->fill.smooth; // fill.type desc.colorClass = data->colorClass; desc.text.text = data->text.text; desc.text.textClass = data->text.textClass; desc.text.style = data->text.style; desc.text.font = data->text.font; desc.text.align.setX(data->text.align.x); desc.text.align.setY(data->text.align.y); desc.text.elipsis = data->text.elipsis; desc.text.size = data->text.size; desc.text.idSource = data->text.idSource; desc.text.idTextSource = data->text.idTextSource; desc.text.fitX = data->text.fitX; desc.text.fitY = data->text.fitY; desc.text.minX = data->text.minX; desc.text.minY = data->text.minY; desc.text.maxX = data->text.maxX; desc.text.maxY = data->text.maxY; desc.color.setRgb(data->color.red, data->color.green, data->color.blue, data->color.alpha); desc.color2.setRgb(data->color2.red, data->color2.green, data->color2.blue, data->color2.alpha); desc.color3.setRgb(data->color3.red, data->color3.green, data->color3.blue, data->color3.alpha); desc.visible = data->visible; } /*! \internal Returns QEdjePart instance filled with Edje_Part data. */ static QEdjePart *createEdjePart(Edje_Part *data) { QEdjePart *part = new QEdjePart; part->id = data->id; part->name = data->name; part->source = data->source; part->effect = data->effect; part->mouseEvents = data->mouseEvents; part->repeatEvents = data->repeatEvents; part->preciseIsInside = data->preciseIsInside; part->useAlternateFontMetrics = data->useAlternateFontMetrics; part->clipToId = data->clipToId; part->dragable.x = data->dragable.x; part->dragable.y = data->dragable.y; part->dragable.step = QPoint(data->dragable.step.x, data->dragable.step.y); part->dragable.count = QPoint(data->dragable.count.x, data->dragable.count.y); part->dragable.eventsId = data->dragable.eventsId; part->dragable.confineId = data->dragable.confineId; part->type = (QEdjePart::TypeFlag) data->type; fillEdjePartDescription(part->defaultDescription, data->defaultDescription); if (data->otherDescriptions) { foreach (void *dt, *data->otherDescriptions) { QEdjePartDescription *desc = new QEdjePartDescription; fillEdjePartDescription(*desc, (Edje_Part_Description *) dt); part->otherDescriptions.append(desc); } } return part; } /*! \internal Returns QEdjeProgram instance filled with Edje_Program data. */ static QEdjeProgram *createEdjeProgram(Edje_Program *data) { QEdjeProgram *program = new QEdjeProgram; program->id = data->id; program->name = data->name; program->signal = data->signal; program->source = data->source; program->inFrom = data->in.from; program->inRange = data->in.range; program->action = data->action; program->tweenMode = data->tween.mode; program->tweenTime = data->tween.time; if (data->state != NULL) program->state = data->state; if (data->state2 != NULL && data->action == SIGNAL_EMIT) program->state2 = data->state2; program->value = data->value; program->value2 = data->value2; if (data->targets) { foreach (void *dt, *data->targets) program->targets.append(((Edje_Program_Target *) dt)->id); } if (data->after) { foreach (void *dt, *data->after) program->after.append(((Edje_Program_After *) dt)->id); } return program; } /*! \internal Returns QEdjePartCollection instance filled with Edje_Part_Collection data. */ static QEdjePartCollection *createEdjePartCollection(Edje_Part_Collection *data) { QEdjePartCollection *partcol = new QEdjePartCollection(); partcol->id = data->id; partcol->part = data->part; partcol->propMin.setWidth(data->prop.min.width); partcol->propMin.setHeight(data->prop.min.height); partcol->propMax.setWidth(data->prop.max.width); partcol->propMax.setHeight(data->prop.max.height); if (data->parts) { foreach (void *dt, *data->parts) { QEdjePart *qpart = createEdjePart((Edje_Part *) dt); partcol->parts.append(qpart); } } if (data->programs) { foreach (void *dt, *data->programs) { QEdjeProgram *qprogram = createEdjeProgram((Edje_Program *) dt); partcol->programs.append(qprogram); } } if (data->data) { foreach (void *dt, *data->data) { QEdjeData *edata = new QEdjeData(); edata->key = ((Edje_Data *) dt)->key; edata->value = ((Edje_Data *) dt)->value; partcol->data.append(edata); } } return partcol; } /*! \internal Returns QEdjeColorClass instance filled with Edje_Color_Class data. */ static QEdjeColorClass *createEdjeColorClass(Edje_Color_Class *dt) { QEdjeColorClass *qcolor = new QEdjeColorClass; qcolor->name = dt->name; qcolor->color.setRgb((int)dt->r, (int)dt->g, (int)dt->b, (int)dt->a); qcolor->color2.setRgb((int)dt->r2, (int)dt->g2, (int)dt->b2, (int)dt->a2); qcolor->color3.setRgb((int)dt->r3, (int)dt->g3, (int)dt->b3, (int)dt->a3); return qcolor; } /*! \internal Returns Edje_Part_Collection instance loading it's contents from edje file passing the collection name. */ static Edje_Part_Collection *extractEdjeCollection(Edje_File *edf, QEdjeFile *qedje_file, const char *coll) { char buf[256]; int id = -1; Edje_Part_Collection *edc = NULL; if (edf->collectionDir) { foreach (void *dt, *edf->collectionDir->entries) { Edje_Part_Collection_Directory_Entry *ce; ce = (Edje_Part_Collection_Directory_Entry *) dt; if ((ce->entry) && (!strcmp(ce->entry, coll))) { id = ce->id; break; } } } if (id < 0) return NULL; snprintf(buf, sizeof(buf), "collections/%i", id); edc = (Edje_Part_Collection *)eet_data_read(edf->ef, descriptorEdjePartCollection, buf); if (!edc) return NULL; // TODO: load embryo scripts from eet edc->part = coll; edc->references = 1; if (!edf->collectionHash) edf->collectionHash = new QHash (); edf->collectionHash->insert(QString(coll), (void *)edc); qedje_file->collectionHash.insert(QString(coll), createEdjePartCollection(edc)); return edc; } /*! \internal Returns Edje_File instance loading the data from eet file. */ static Edje_File *openEdjeFile(Eet_File *ef, QEdjeFile *qfile) { Edje_File *edf; Edje_Part_Collection *edc; edf = (Edje_File *) eet_data_read(ef, descriptorEdjeFile, "edje_file"); if (!edf) { qWarning("openEdjeFile: Corrupted edje file"); return NULL; } edf->freeStrings = eet_dictionary_get(ef) ? 0 : 1; edf->ef = ef; if (edf->version != EDJE_FILE_VERSION) { // TODO: _edje_file_free(edf); qWarning("openEdjeFile: Incompatible edje file version"); return NULL; } if (!edf->collectionDir) { // TODO: _edje_file_free(edf); qWarning("openEdjeFile: Corrupted collection dir"); return NULL; } // TODO: edje textblock style parse/fix if (edf->data) { if (!edf->dataCache) edf->dataCache = new QHash (); foreach (void *dt, *edf->data) { Edje_Data *di = (Edje_Data *) dt; qfile->dataCache.insert(di->key, di->value); edf->dataCache->insert(QString(di->key), (void *) di->value); free(di); } delete edf->data; edf->data = NULL; } // add font to hash edf->fontHash = NULL; // TODO: load fonts from entries and load font hash if (edf->collectionDir) { foreach (void *dt, *edf->collectionDir->entries) { Edje_Part_Collection_Directory_Entry *fde; fde = (Edje_Part_Collection_Directory_Entry *) dt; edc = extractEdjeCollection(edf, qfile, fde->entry); } } return edf; } /*! \class QEdjeLoader \brief Interface used to load edje files. It's has only 2 basic methods: load() and unload(). It keeps an edje file cache and is responsible to delete these instances when reference count reaches 0. So always remember to call unload when you have loaded a file. \code QEdjeFile *edf = QEdjeLoader::load("default.edj"); // do some stuff QEdjeLoader::unload("default.edj"); \endcode */ static bool pm_eetInitialized = false; static QHash pm_fileCache; /*! Try to get file from cache. If not found, load it. Increases QEdjeFile reference count. */ QEdjeFile *QEdjeLoader::load(const QString &filename) { QEdjeFile *edjeFile; if (!pm_eetInitialized) { setupEetDataDescriptors(); pm_eetInitialized = true; } // need normalization and absolute path if (!pm_fileCache.contains(filename)) { // 'fn' is valid as long as 'ba' isn't deallocated QByteArray ba = filename.toLatin1(); const char *fn = ba.constData(); edjeFile = loadEdjeFile(fn); if (!edjeFile) return NULL; pm_fileCache.insert(filename, edjeFile); } else edjeFile = pm_fileCache.value(filename); edjeFile->_references++; return edjeFile; } /*! Update QEdjeFile reference count and unload it if it's not used anymore. */ void QEdjeLoader::unload(const QString &filename) { QEdjeFile *edjeFile = pm_fileCache.value(filename); if (!edjeFile) return; qDebug() << "unloading unused edje file from cache"; edjeFile->_references--; if (edjeFile->_references <= 0) { qDebug() << "deleting" << filename << "from cache"; pm_fileCache.remove(filename); delete edjeFile; } } /*! Returns a QEdjeFile instance loaded from an edj file. */ QEdjeFile *QEdjeLoader::loadEdjeFile(const char *filename) { struct stat st; Eet_File *eetFile; if (stat(filename, &st) != 0) { qWarning("QEdjeLoader::loadEdjeFile: File '%s' does not exist", filename); return NULL; } eetFile = eet_open(filename, EET_FILE_MODE_READ); if (!eetFile) { qWarning("QEdjeLoader::loadEdjeFile: File '%s' has an unknown format", filename); return NULL; } QEdjeFile *qfile = new QEdjeFile(); Edje_File *edf = openEdjeFile(eetFile, qfile); if (!edf) { qWarning("QEdjeLoader::loadEdjeFile: Unable to open edje file '%s'", filename); return NULL; } qfile->path = filename; qfile->compiler = edf->compiler; qfile->version = edf->version; qfile->featureVer = edf->featureVer; if (edf->data) { foreach (void *dt, *edf->data) { QEdjeData *edata = new QEdjeData(); edata->key = ((Edje_Data *) dt)->key; edata->value = ((Edje_Data *) dt)->value; qfile->data.append(edata); } } if (edf->imageDir) { foreach (void *dd, *edf->imageDir->entries) { Edje_Image_Directory_Entry *fde; fde = (Edje_Image_Directory_Entry *) dd; QEdjeImageDirectoryEntry *dt = new QEdjeImageDirectoryEntry(); dt->id = fde->id; dt->entry = QString(fde->entry); qfile->imageDir.append(dt); } } if (edf->collectionDir) { foreach (void *dd, *edf->collectionDir->entries) { Edje_Part_Collection_Directory_Entry *fde; fde = (Edje_Part_Collection_Directory_Entry *) dd; QEdjePartCollectionDirectoryEntry *dt = new QEdjePartCollectionDirectoryEntry(); dt->id = fde->id; dt->entry = fde->entry; qfile->collectionDir.append(dt); } } if (edf->styles) { foreach (void *dd, *edf->styles) { Edje_Style *fde; Edje_Style_Tag *tag; fde = (Edje_Style *) dd; QEdjeStyle *dt = new QEdjeStyle; dt->name = fde->name; if (fde->tags) foreach (void *dd, *fde->tags) { tag = (Edje_Style_Tag*) dd; dt->addTag(tag->key, tag->value, tag->font, tag->fontSize, tag->textClass); } qfile->styles.append(dt); } } if (edf->colorClasses) { foreach (void *dd, *edf->colorClasses) { Edje_Color_Class *fde = (Edje_Color_Class *) dd; qfile->colorClasses.append(createEdjeColorClass(fde)); } } eet_close(eetFile); return qfile; } QEdjeFile::~QEdjeFile() { qDeleteAll(fontDir); qDeleteAll(imageDir); qDeleteAll(collectionHash); qDeleteAll(collectionDir); qDeleteAll(data); qDeleteAll(styles); qDeleteAll(colorClasses); } qedje-mainline/src/qedjeloader.h000066400000000000000000000161461116615416200171720ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef __QEDJE_LOADER_H__ #define __QEDJE_LOADER_H__ #include "qedje.h" class QEdje; class QEdjeLoader; struct QEdjePartCollection; struct QEdjeColorClass { QString name; QColor color; QColor color2; QColor color3; }; struct QEdjeData { QString key; QString value; }; struct QEdjeStyleTag { QString key; QString font; QString value; double fontSize; QString textClass; }; struct QEdjeStyle { QString name; QList tags; //Evas_Textblock_Style *style; inline void addTag(QString key, QString value, QString font, double fontSize, QString textClass); }; inline void QEdjeStyle::addTag(QString key, QString value, QString font, double fontSize, QString textClass) { QEdjeStyleTag *tag = new QEdjeStyleTag; tag->key = key; tag->font = font; tag->value = value; tag->fontSize = fontSize; tag->textClass = textClass; tags.append(tag); } struct QEdjeFontDirectoryEntry { QString entry; QString path; }; struct QEdjeImageDirectoryEntry { int id; QString entry; int sourceType; int sourceParam; }; struct QEdjePartCollectionDirectoryEntry { int id; QString entry; }; /*! \class QEdjeFile \brief Loaded edje data file. This class represents in memory the edje data file that will be loaded. */ class QEdjeFile { public: QEdjeFile() { _references = 0; } ~QEdjeFile(); QString path; int version; int featureVer; QString compiler; QList fontDir; QList imageDir; QHash collectionHash; QList collectionDir; QList data; QList styles; QList colorClasses; QHash fontHash; // (key=entry, val=path) QHash dataCache; //Edje_Spectrum_Directory *spectrum_dir; //Evas_Hash *font_hash; //Evas_List *collection_cache; //Eet_File *ef; //unsigned int free_strings : 1; private: friend class QEdjeLoader; friend QDebug operator<<(QDebug dbg, const QEdjeFile &s); int _references; }; QDebug operator<<(QDebug, const QEdjeFile &); enum QEdjeAspectPrefer { None, Vertical, Horizontal, Both }; struct QEdjePartDescription { struct { QString name; double value; } state; struct { int idX; int idY; QPoint offset; QPointF relative; } rel1, rel2; struct { QString text; QString textClass; QString style; QString font; QPointF align; double elipsis; int size; int idSource; int idTextSource; bool fitX; bool fitY; bool minX; bool minY; bool maxX; bool maxY; } text; struct { double min; double max; QEdjeAspectPrefer prefer; } aspect; struct { int top; int left; int right; int bottom; bool noFill; } border; struct { QPoint abs; QPointF rel; QPoint posAbs; QPointF posRel; int angle; int spread; bool smooth; // unsigned char type; } fill; struct { int id; QString type; QString params; bool useRel; struct { QPoint offset; QPointF relative; } rel1; struct { QPoint offset; QPointF relative; } rel2; } gradient; QSize min; QSize max; QPoint step; bool visible; QPointF align; bool fixedWidth; bool fixedHeight; QColor color; QColor color2; QColor color3; QString colorClass; int imageId; // the image id to use QList tweenList; // list of image ids }; struct QEdjePart { static const QString PATH_SEPARATOR_STRING; enum TypeFlag { RECT = 1, TEXT = 2, IMAGE = 3, SWALLOW = 4, TEXTBLOCK = 5, GRADIENT = 6, GROUP = 7 }; // char pointer_mode; // Evas_Event_Flags ignore_flags; int id; QString name; TypeFlag type; QString source; int effect; int clipToId; struct { QPoint step; QPoint count; int eventsId; int confineId; bool x; bool y; } dragable; bool mouseEvents; bool repeatEvents; bool preciseIsInside; bool useAlternateFontMetrics; QEdjePartDescription defaultDescription; QList otherDescriptions; }; struct QEdjeProgram { enum ActionType { ACTION_STATE_SET = 1, ACTION_STOP = 2, ACTION_SIGNAL_EMIT = 3 }; /* program id */ int id; /* name of the action */ QString name; /* if signal emission name matches the glob here... */ QString signal; /* if part that emitted this (name) matches this glob */ QString source; /* type - set state, stop action, set drag pos etc. */ int action; /* what state of alternates to apply, NULL = default */ QString state; /* what other state to use - for signal emit action */ QString state2; /* value of state to apply (if multiple names match) */ double value; /* other value for drag actions */ double value2; double inFrom; double inRange; /* how to tween - linear, sinusoidal etc. */ int tweenMode; /* time to graduate between current and new state */ double tweenTime; /* list of part id or action id (targets of an action) */ QList targets; /* list of actions id's to execute after */ QList after; }; struct QEdjePartCollection { int id; QString part; int references; QList data; QList parts; QList programs; QSize propMin; QSize propMax; //Embryo_Program *script; // all the embryo script code for this group }; class QEdjeLoader { public: static QEdjeFile *load(const QString &filename); static void unload(const QString &filename); private: static QEdjeFile *loadEdjeFile(const char *filename); }; #endif qedje-mainline/src/qedjerealpart.cpp000066400000000000000000000734401116615416200200710ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . * * This file incorporates work covered by the license described in the * file COPYING.libedje. */ #include "qedjerealpart.h" #include #include #include "qedjeimage.h" #include "qedjeloader.h" /*! \internal Hold calculation data for QEdjeRealPart::recalculateSingle */ struct QEdjeCalcParams { int x; int y; int w; int h; struct { int width; int height; } min, max; QColor color; QColor color2; QColor color3; struct { int x; int y; int w; int h; int angle; int spread; } fill; struct { int left; int right; int top; int bottom; } border; struct { QPointF align; /* text alignment within bounds */ double elipsis; } text; struct { int id; char *type; } gradient; bool smooth; bool visible; }; /*! \internal Composes two values based on position and returns the final value. */ static inline int composeValue(double v1, double v2, double p) { return (int)(((v1) == (v2)) ? (v1) : ((v1) + (((v2) - (v1)) * (p)))); } /*! \internal Interpolates two colors based on position and returns the final value. */ static inline QColor interpolateColorClass(QColor c1, QColor c2, double p) { int r = composeValue(c1.red(), c2.red(), p); int g = composeValue(c1.green(), c2.green(), p); int b = composeValue(c1.blue(), c2.blue(), p); int a = composeValue(c1.alpha(), c2.alpha(), p); return QColor(r, g, b, a); } /*! \internal Composes two colors and returns the final color. */ static inline QColor composeColorClass(QColor cc, QColor cn) { int r = (((int)cc.red() + 1) * cn.red()) >> 8; int g = (((int)cc.green() + 1) * cn.green()) >> 8; int b = (((int)cc.blue() + 1) * cn.blue()) >> 8; int a = (((int)cc.alpha() + 1) * cn.alpha()) >> 8; return QColor(r, g, b, a); } /*! \param edje the QEdje instance this part belongs to. \param part the statically defined Edje part this object is bond to. */ QEdjeRealPart::QEdjeRealPart(QEdje *edje, QEdjePart *part) { _edje = edje; _part = part; _confineTo = NULL; _runningProgram = NULL; _descriptionPos = 0.0; } /*! Free dynamic allocated memory. */ QEdjeRealPart::~QEdjeRealPart() { } /*! Returns the object position. */ QPoint QEdjeRealPart::pos() { return object()->pos(); } /*! Set the object position. */ void QEdjeRealPart::setPos(const QPoint pos) { object()->setPos(pos); } /*! Returns the edje group of this part. */ QEdje *QEdjeRealPart::edje() { return _edje; } /*! Returns the QEdjePart of this part. */ QEdjePart *QEdjeRealPart::part() { return _part; } /*! Set a clipper for this part. The clipper must be a valid QZionRectangle. */ void QEdjeRealPart::setClipTo(QEdjeRealPart *clipTo) { if (!clipTo) return; QZionRectangle *clipper = dynamic_cast(clipTo->object()); if (!clipper) { qWarning("Warning, clipping '%s' to non-rect item '%s'.", part()->name.toAscii().data(), clipTo->part()->name.toAscii().data()); return; } object()->setClipper(clipper); } /*! Returns the running program that is using this part. */ QRunningProgram *QEdjeRealPart::runningProgram() { return _runningProgram; } /*! Set a running program that is using this part. */ void QEdjeRealPart::setRunningProgram(QRunningProgram *rp) { _runningProgram = rp; } /*! Set the description position for this part. */ void QEdjeRealPart::setDescriptionPos(const double value) { _descriptionPos = value; } /*! \brief returns a state description identified by its name and position. Searches the associated QEdjePart for a description matching the given search parameters and return its instance. */ QEdjePartDescription *QEdjeRealPart::findDescription(QString &name, double value) { double min_dst = 999.0; QEdjePartDescription *ret = NULL; if (name == "default" && value == 0.0) return &_part->defaultDescription; if (name == "default") { ret = &_part->defaultDescription; min_dst = fabs(ret->state.value - value); } foreach (QEdjePartDescription *p, _part->otherDescriptions) { if (p->state.name == name) { double dst = fabs(p->state.value - value); if (dst < min_dst) { ret = p; min_dst = dst; } } } return ret; } /*! \brief Handle recalculations (animations) on image parts. \todo fill \todo smooth scale \todo border Check which image is best suitable for a given time of an animation. Can be simply another image or even handle tweenList. */ void QEdjeRealPart::recalculateImageApply(QEdje *edje, QEdjeRealPart *part, QEdjeCalcParams *params, QEdjePartDescription *desc, double pos) { int imageId; int imageCount; int imageNum; imageId = part->param1.description->imageId; if (imageId < 0) { QEdjeImage *im = dynamic_cast(part->object()); im->clear(); } else { imageCount = 2; /* update imageCount by adding images from tween list */ int tweenList_size = desc->tweenList.size(); if (tweenList_size > 0) imageCount += tweenList_size; imageNum = (pos * ((double) imageCount - 0.5)); if (imageNum > (imageCount - 1)) imageNum = imageCount - 1; if (imageNum == 0) imageId = part->param1.description->imageId; else if (imageNum == (imageCount - 1)) imageId = part->param2.description->imageId; else imageId = desc->tweenList.at(imageNum - 1); if (imageId >= 0) { QEdjeImage *im = dynamic_cast(part->object()); im->load(edje->path(), QString("images/%1").arg(imageId)); im->setBorder(params->border.left, params->border.right, params->border.top, params->border.bottom); } else { qWarning("part \"%s\" has description, \"%s\" %3.3f with a " "missing image id!\n", part->part()->name.toLatin1().data(), part->param1.description->state.name.toLatin1().data(), part->param1.description->state.value); } } } /*! \brief Calculate current position of QEdjeRealPart object. Based on current programs running, other objects this part may be relative to and their positions, calculate the current state of this instance. \todo recalculate this->text.source and this->text.text_source \todo set p3.req and p3.req_drag values \todo set p3.text alignment and elipsis \todo Drag need_reset \todo Text, Image, Gradient special recalculation. */ void QEdjeRealPart::recalculate(int flags) { if ((calculated & FLAG_XY) == FLAG_XY) return; qDebug() << "recalculating " << this->part()->name; double pos = 0.0; QEdjeCalcParams p1; QEdjeCalcParams p2; QEdjeCalcParams p3; QEdjeCalcParams *pf; QEdjePartDescription *chosen_desc; if (calculating & flags) { qDebug() << "QEdje Error: Circular dependency when calculating part" << _part->name << "\n"; return; } recalculateRelativeTo(flags); if (_confineTo) _confineTo->recalculate(flags); // actually calculate now chosen_desc = _chosenDescription; if (!chosen_desc) { calculating = FLAG_NONE; calculated |= flags; return; } if (param1.description) recalculateSingle(param1.description, chosen_desc, param1.rel1ToX, param1.rel1ToY, param1.rel2ToX, param1.rel2ToY, _confineTo, &p1,flags); if (param2.description) { int part_type; bool beginning_pos; recalculateSingle(param2.description, chosen_desc, param2.rel1ToX, param2.rel1ToY, param2.rel2ToX, param2.rel2ToY, _confineTo, &p2,flags); pos = _descriptionPos; beginning_pos = (pos < 0.5); part_type = part()->type; // visible is special if ((p1.visible) && (!p2.visible)) p3.visible = (pos != 1.0); else if ((!p1.visible) && (p2.visible)) p3.visible = (pos != 0.0); else p3.visible = p1.visible; p3.smooth = (beginning_pos) ? p1.smooth : p2.smooth; // FIXME: do x and y separately base on flag p3.x = composeValue(p1.x, p2.x, pos); p3.y = composeValue(p1.y, p2.y, pos); p3.w = composeValue(p1.w, p2.w, pos); p3.h = composeValue(p1.h, p2.h, pos); p3.color = interpolateColorClass(p1.color, p2.color, pos); if ((part_type == QEdjePart::IMAGE) || (part_type == QEdjePart::GRADIENT)) { p3.fill.x = composeValue(p1.fill.x, p2.fill.x, pos); p3.fill.y = composeValue(p1.fill.y, p2.fill.y, pos); p3.fill.w = composeValue(p1.fill.w, p2.fill.w, pos); p3.fill.h = composeValue(p1.fill.h, p2.fill.h, pos); if (part_type == QEdjePart::GRADIENT) { p3.fill.angle = composeValue(p1.fill.angle, p2.fill.angle, pos); p3.fill.spread = (beginning_pos) ? p1.fill.spread : p2.fill.spread; p3.gradient = (beginning_pos) ? p1.gradient : p2.gradient; } else { p3.border.left = composeValue(p1.border.left, p2.border.left, pos); p3.border.right = composeValue(p1.border.right, p2.border.right, pos); p3.border.top = composeValue(p1.border.top, p2.border.top, pos); p3.border.bottom = composeValue(p1.border.bottom, p2.border.bottom, pos); } } else if ((part_type == QEdjePart::TEXT) || (part_type == QEdjePart::TEXTBLOCK)) { p3.color2 = interpolateColorClass(p1.color2, p2.color2, pos); p3.color3 = interpolateColorClass(p1.color3, p2.color3, pos); } pf = &p3; } else pf = &p1; if (!_edje->calculateOnly) { // Common move, resize and color_set for all part. switch (this->part()->type) { case QEdjePart::RECT: case QEdjePart::IMAGE: case QEdjePart::TEXT: case QEdjePart::TEXTBLOCK: case QEdjePart::GRADIENT: setColor(pf->color); object()->setVisible(pf->visible); case QEdjePart::GROUP: case QEdjePart::SWALLOW: setPos(QPoint(pf->x, pf->y)); setSize(QSize(pf->w, pf->h)); break; } if (part()->type == QEdjePart::GROUP || part()->type == QEdjePart::SWALLOW) { QZionGroup *wrapper = static_cast(object()); if (!wrapper->items()->isEmpty()) { QZionObject *embedded = wrapper->items()->at(0); embedded->setPos(QPoint(0, 0)); embedded->setSize(QSize(pf->w, pf->h)); wrapper->setVisible(pf->visible); embedded->setVisible(pf->visible); } else wrapper->hide(); } } switch (this->part()->type) { case QEdjePart::IMAGE: recalculateImageApply(_edje, this, pf, chosen_desc, pos); break; default: break; } calculated |= flags; calculating = FLAG_NONE; } /*! \brief Set QEdjeRealPart initial state. QEdjeRealPart objects hold internally one or two state descriptions depending whether there's a program running or not. If no program is running only the initial state ("param1") is kept. The final state is used only during transitions, for calculating the intermediate states. At any moment, the property chosenDescription points to a valid state which is the initial state (if the part is stopped) or the final one (if it's running a program with transition). This invariant is valid also for setFinalState() and unsetFinalState(). \sa setFinalState(), unsetFinalState() \param name Initial state name. \param value Initial state position. */ void QEdjeRealPart::setInitialState(const QString &name, double value) { QString stateName = (name == "") ? "default" : name; param1.description = findDescription(stateName, value); if (!param1.description) param1.description = &_part->defaultDescription; QEdjePartDescription *desc = param1.description; param1.rel1ToX = _edje->findPart(desc->rel1.idX); param1.rel1ToY = _edje->findPart(desc->rel1.idY); param1.rel2ToX = _edje->findPart(desc->rel2.idX); param1.rel2ToY = _edje->findPart(desc->rel2.idY); if (_descriptionPos == 0.0) _chosenDescription = desc; _edje->dirty = true; } /*! \brief Set QEdjeRealPart final state. The final state is only used for calculating intermediate states when a program is running. This also sets the chosenDescription to the initial state, since is the only one valid. \sa setInitialState(), unsetFinalState(), \param name Final state name. \param value Final state position. */ void QEdjeRealPart::setFinalState(const QString &name, double value) { QString stateName = (name == "") ? "default" : name; param2.description = findDescription(stateName, value); if (!param2.description) param2.description = &_part->defaultDescription; QEdjePartDescription *desc = param2.description; param2.rel1ToX = _edje->findPart(desc->rel1.idX); param2.rel1ToY = _edje->findPart(desc->rel1.idY); param2.rel2ToX = _edje->findPart(desc->rel2.idX); param2.rel2ToY = _edje->findPart(desc->rel2.idY); if (_descriptionPos != 0.0) _chosenDescription = desc; _edje->dirty = true; } /*! \brief Unset QEdjeRealPart final state. The final state is only used for calculating intermediate states when a program is running. When there's no program running, to avoid unnecessary calculations, we unset the final state. This also sets the chosenDescription to the initial state, since is the only one valid. \sa setInitialState(), setFinalState() */ void QEdjeRealPart::unsetFinalState() { param2.description = NULL; param2.rel1ToX = NULL; param2.rel1ToY = NULL; param2.rel2ToX = NULL; param2.rel2ToY = NULL; _descriptionPos = 0.0; _chosenDescription = param1.description; _edje->dirty = true; } /*! \brief Calculate absolute parameters from description. Description may be relative to other parts, this method returns absolute parameters based on the current position of other relevant parts. \todo Runtime swallow parameters recalculate. \todo Calculate Aspect related parameters. \todo Update object_text part. \todo Save req size before checking for min and max sizes. \todo Calculate simple and dragable params. \todo Calculate fill params. \todo Confine params. \todo Color class. \todo Text align. */ void QEdjeRealPart::recalculateSingle(QEdjePartDescription *desc, QEdjePartDescription *chosen_desc, QEdjeRealPart *rel1_to_x, QEdjeRealPart *rel1_to_y, QEdjeRealPart *rel2_to_x, QEdjeRealPart *rel2_to_y, QEdjeRealPart *confine_to, QEdjeCalcParams *params, int flags) { // FIXME: flags parameter is being overwritten flags = FLAG_XY; // find min/max boundaries recalculateSingleMinMax(desc, params); // update relative coords of top left & bottom right recalculateSingleGeometry(desc, rel1_to_x, rel1_to_y, rel2_to_x, rel2_to_y, params, flags); if ((chosen_desc) && (part()->type == QEdjePart::TEXT)) { // TODO: extend text support QFont fp; fp.setWeight(QFont::Normal); fp.setPixelSize(chosen_desc->text.size); QString font = chosen_desc->text.font; if (font.endsWith(":style=Bold")) { font.truncate(font.length() - 11); fp.setWeight(QFont::Bold); } else if (font.endsWith(":style=Regular")) font.truncate(font.length() - 14); fp.setFamily(font); QZionText *zionText = (QZionText *) object(); zionText->setFont(fp); zionText->setAlignment(chosen_desc->text.align); } // apply min/max size to the object recalculateSingleMinMaxApply(desc, params, flags); // fill recalculateSingleFill(desc, params, flags); // recalculate colors recalculateSingleColors(desc, params); // visible params->visible = desc->visible; // border if (flags & FLAG_X) { params->border.left = desc->border.left; params->border.right = desc->border.right; } if (flags & FLAG_Y) { params->border.top = desc->border.top; params->border.bottom = desc->border.bottom; } } /*! \brief Calculate position parameters from description. Description may be relative to other parts, this method returns the absolute position parameters based on the current position of the relative parts. */ void QEdjeRealPart::recalculateSingleGeometry(QEdjePartDescription *desc, QEdjeRealPart *rel1_to_x, QEdjeRealPart *rel1_to_y, QEdjeRealPart *rel2_to_x, QEdjeRealPart *rel2_to_y, QEdjeCalcParams *params, int flags) { if (flags & FLAG_X) { if (rel1_to_x) params->x = (int)(desc->rel1.offset.x() + rel1_to_x->pos().x() + (desc->rel1.relative.x() * rel1_to_x->size().width())); else params->x = (int)(desc->rel1.offset.x() + (desc->rel1.relative.x() * _edje->size().width())); if (rel2_to_x) params->w = (int)(desc->rel2.offset.x() + rel2_to_x->pos().x() + (desc->rel2.relative.x() * rel2_to_x->size().width()) - params->x + 1); else params->w = (int)(desc->rel2.offset.x() + (desc->rel2.relative.x() * _edje->size().width()) - params->x + 1); } if (flags & FLAG_Y) { if (rel1_to_y) params->y = (int)(desc->rel1.offset.y() + rel1_to_y->pos().y() + (desc->rel1.relative.y() * rel1_to_y->size().height())); else params->y = (int)(desc->rel1.offset.y() + (desc->rel1.relative.y() * _edje->size().height())); if (rel2_to_y) params->h = (int)(desc->rel2.offset.y() + rel2_to_y->pos().y() + (desc->rel2.relative.y() * rel2_to_y->size().height()) - params->y + 1); else params->h = (int)(desc->rel2.offset.y() + (desc->rel2.relative.y() * _edje->size().height()) - params->y + 1); } } /*! \brief Recalculate fill parameters. \todo Calculate fill params in case of gradient. \todo Consider fill type. */ void QEdjeRealPart::recalculateSingleFill(QEdjePartDescription *desc, QEdjeCalcParams *params, int flags) { params->smooth = desc->fill.smooth; if (flags & FLAG_X) { int fw = params->w; params->fill.x = desc->fill.posAbs.x() + (fw * desc->fill.posRel.x()); params->fill.w = desc->fill.abs.x() + (fw * desc->fill.rel.x()); } if (flags & FLAG_Y) { int fh = params->h; params->fill.y = desc->fill.posAbs.y() + (fh * desc->fill.posRel.y()); params->fill.h = desc->fill.abs.y() + (fh * desc->fill.rel.y()); } params->fill.angle = desc->fill.angle; params->fill.spread = desc->fill.spread; } /*! \brief Recalculate colors. */ void QEdjeRealPart::recalculateSingleColors(QEdjePartDescription *desc, QEdjeCalcParams *params) { params->color = desc->color; params->color2 = desc->color2; params->color3 = desc->color3; if (!desc->colorClass.isEmpty()) { QEdjeColorClass *cc = _edje->colorClass(desc->colorClass); if (cc) { params->color = composeColorClass(cc->color, desc->color); params->color2 = composeColorClass(cc->color2, desc->color2); params->color3 = composeColorClass(cc->color3, desc->color3); } } } /*! Find min/max boundaries. */ void QEdjeRealPart::recalculateSingleMinMax(QEdjePartDescription *desc, QEdjeCalcParams *params) { params->min.width = desc->min.width(); if (swallowParams.min.width() > desc->min.width()) params->min.width = swallowParams.min.width(); if (swallowParams.max.width() <= 0) params->max.width = desc->max.width(); else { if (desc->max.width() <= 0) params->max.width = swallowParams.max.width(); else params->max.width = qMin(swallowParams.max.width(), desc->max.width()); } params->min.height = desc->min.height(); if (swallowParams.min.height() > desc->min.height()) params->min.height = swallowParams.min.height(); if (swallowParams.max.height() <= 0) params->max.height = desc->max.height(); else { if (desc->max.height() <= 0) params->max.height = swallowParams.max.height(); else params->max.height = qMin(swallowParams.max.height(), desc->max.height()); } } /*! \brief Adjusts geometry parameters based on min and max sizes. */ void QEdjeRealPart::recalculateSingleMinMaxApply(QEdjePartDescription *desc, QEdjeCalcParams *params, int flags) { int minw = params->min.width; int minh = params->min.height; int maxw = params->max.width; int maxh = params->max.height; if ((flags & FLAG_X) && (minw >= 0) && (params->w < minw)) { params->x = (int)(params->x + ((params->w - minw) * desc->align.x())); params->w = minw; } if ((flags & FLAG_Y) && (minh >= 0) && (params->h < minh)) { params->y = (int)(params->y + ((params->h - minh) * desc->align.y())); params->h = minh; } if ((flags & FLAG_X) && (maxw >= 0) && (params->w > maxw)) { params->x = (int)(params->x + ((params->w - maxw) * desc->align.x())); params->w = maxw; } if ((flags & FLAG_Y) && (maxh >= 0) && (params->h > maxh)) { params->y = (int)(params->y + ((params->h - maxh) * desc->align.y())); params->h = maxh; } } /*! \brief Calculate current position of relative parts of this QEdjeRealPart object. */ void QEdjeRealPart::recalculateRelativeTo(int flags) { if (flags & FLAG_X) { calculating |= flags & FLAG_X; if (param1.rel1ToX) param1.rel1ToX->recalculate(FLAG_X); if (param1.rel2ToX) param1.rel2ToX->recalculate(FLAG_X); if (param2.rel1ToX) param2.rel1ToX->recalculate(FLAG_X); if (param2.rel2ToX) param2.rel2ToX->recalculate(FLAG_X); } if (flags & FLAG_Y) { calculating |= flags & FLAG_Y; if (param1.rel1ToY) param1.rel1ToY->recalculate(FLAG_Y); if (param1.rel2ToY) param1.rel2ToY->recalculate(FLAG_Y); if (param2.rel1ToY) param2.rel1ToY->recalculate(FLAG_Y); if (param2.rel2ToY) param2.rel2ToY->recalculate(FLAG_Y); } } /*! Swallows a QZionObject into this real part. \param objSwallow Pointer to the object to be swallowed. \todo Remove every callback (even for events) and unset clipper for oldSwallow. \todo If someone deletes the QZion, unswallow automatically (create a callback). \todo Set swallow_params values. \todo Check for mouse_events and repeat_events on swallow and apply to object. */ void QEdjeRealPart::swallow(QZionObject *objSwallow) { if (_part->type != QEdjePart::SWALLOW) return; unswallow(false); if (!objSwallow) return; QZionGroup *wrapper = static_cast(object()); wrapper->addObject(objSwallow); setSwallowParamsFromObject(objSwallow); _edje->dirty = true; _edje->recalculate(); } /*! Unswallows a QZionObject from this real part. \param recalc Recalculate after unswallow. Default: true. \todo Remove every callback (even for events) and unset clipper for oldSwallow. \todo Unset swallow_params values. */ QZionObject *QEdjeRealPart::unswallow(const bool recalc) { if (_part->type != QEdjePart::SWALLOW) return NULL; QZionObject *oldSwallow = embeddedObject(); if (oldSwallow != NULL) { QZionGroup *wrapper = static_cast(object()); wrapper->removeObject(oldSwallow); setSwallowParamsFromObject(NULL); if (recalc) { _edje->dirty = true; _edje->recalculate(); } } return oldSwallow; } /*! Get a QZionObject inside a swallow or group; */ QZionObject *QEdjeRealPart::embeddedObject() { if (_part->type != QEdjePart::SWALLOW && _part->type != QEdjePart::GROUP) return NULL; QZionGroup *wrapper = static_cast(object()); if (wrapper->items()->isEmpty()) return NULL; return wrapper->items()->at(0); } /*! Adjust swallow params to respect fixed min/max from object. \todo aspect mode */ void QEdjeRealPart::setSwallowParamsFromObject(QZionObject *obj) { swallowParams.min = QSize(0, 0); swallowParams.max = QSize(-1, -1); if (!obj) return; QEdje *ed = dynamic_cast(obj); if (ed) { swallowParams.min = ed->propMin(); swallowParams.max = ed->propMax(); return; } } QEdjeRealPartRectangle::QEdjeRealPartRectangle(QEdje *edje, QEdjePart *part) : QZionRectangle((QZionAbstractCanvas *)edje), QEdjeRealPart(edje, part) { setMouseEvents(part->mouseEvents); } QEdjeRealPartImage::QEdjeRealPartImage(QEdje *edje, QEdjePart *part) : QEdjeImage((QZionAbstractCanvas *)edje, edje->path(), QString("images/%1") .arg(part->defaultDescription.imageId)), QEdjeRealPart(edje, part) { setMouseEvents(part->mouseEvents); } QEdjeRealPartText::QEdjeRealPartText(QEdje *edje, QEdjePart *part) : QZionText((QZionAbstractCanvas *)edje, part->defaultDescription.text.text, QFont("SansSerif", 20, QFont::Bold)), QEdjeRealPart(edje, part) { setMouseEvents(part->mouseEvents); } QEdjeRealPartTextBlock::QEdjeRealPartTextBlock(QEdje *edje, QEdjePart *part) : QZionTextBlock((QZionAbstractCanvas *)edje, part->defaultDescription.text.text), QEdjeRealPart(edje, part) { setMouseEvents(part->mouseEvents); } QEdjeRealPartGroup::QEdjeRealPartGroup(QEdje *edje, QEdjePart *part) : QZionGroup((QZionAbstractCanvas *)edje), QEdjeRealPart(edje, part) { setMouseEvents(part->mouseEvents); setAttribute(HandleOutOfBoundsEvents); QEdje *inner = new QEdje(this, edje->path(), part->source); /* This will be automatically disconnected when we are destroyed. */ inner->connectEdjeSignal("*", "*", this, SLOT(signalProxy(const QString &, const QString &))); inner->show(); } /*! Re-emits a signal that happened in the inner Edje object. GROUP parts contains Edje objects inside it. Their signals are propagated as external signals by prepending the name of the GROUP part in the source. For example, if the inner object emits emission="mouse,clicked,1", source="button_box" and the part GROUP is named "contents", then the outer object will emit emission="mouse,clicked,1", source="contents:button_box" */ void QEdjeRealPartGroup::signalProxy(const QString &emission, const QString &source) { QString new_source = QString("%1:%2").arg(_part->name, source); _edje->emitEdjeSignal(emission, new_source); } QEdjeRealPartSwallow::QEdjeRealPartSwallow(QEdje *edje, QEdjePart *part) : QZionGroup((QZionAbstractCanvas *)edje), QEdjeRealPart(edje, part) { setMouseEvents(part->mouseEvents); } qedje-mainline/src/qedjerealpart.h000066400000000000000000000175151116615416200175370ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef __QEDJE_REALPART_H__ #define __QEDJE_REALPART_H__ #include "qzion.h" #include "qedjeimage.h" class QEdje; class QRunningProgram; class QEdjePart; class QEdjePartDescription; class QEdjeCalcParams; /*! \class QEdjeRealPart \brief Control the runtime state of a QEdjePart. QEdjeRealPart instances hold and control the behaviour of the Edje parts statically described by QEdjePart objects. Each QEdjeRealPart is associated to one, and only one, QEdjePart. \todo Attributes: 'EvasList extraobjects', 'clicked button', 'gradient_id', \ 'still_in' \todo Runtime change of swallowed object parameters (size, etc). \todo Drag. \todo Text struct data \todo eventsTo */ class QEdjeRealPart { public: struct { QEdjePartDescription *description; QEdjeRealPart *rel1ToX; QEdjeRealPart *rel1ToY; QEdjeRealPart *rel2ToX; QEdjeRealPart *rel2ToY; } param1, param2, custom; struct { QSize min; QSize max; } swallowParams; QEdjeRealPart(QEdje *edje, QEdjePart *part); virtual ~QEdjeRealPart(); void setInitialState(const QString &name, double value); void setFinalState(const QString &name, double value); void unsetFinalState(); QPoint pos(); void setPos(const QPoint pos); QEdje *edje(); QEdjePart *part(); void setClipTo(QEdjeRealPart *clipTo); QRunningProgram *runningProgram(); void setRunningProgram(QRunningProgram *rp); void setDescriptionPos(const double value); QEdjePartDescription *findDescription(QString &name, double value); virtual QSize size() const = 0; virtual void setSize(const QSize &size) = 0; virtual QColor color() const = 0; virtual void setColor(const QColor &color) = 0; virtual QZionObject *object() = 0; void swallow(QZionObject *objSwallow); QZionObject *unswallow(const bool recalc = true); QZionObject *embeddedObject(); QSize fixedMinSize() const { return swallowParams.min; } QSize fixedMaxSize() const { return swallowParams.max; } void setFixedMinSize(const QSize &size) { swallowParams.min = size; } void setFixedMaxSize(const QSize &size) { swallowParams.max = size; } protected: QEdje *_edje; QEdjePart *_part; QEdjeRealPart *_confineTo; QRunningProgram *_runningProgram; double _descriptionPos; QEdjePartDescription *_chosenDescription; private: int calculated; int calculating; /* Accepted values: FLAG_NONE, FLAG_X, FLAG_Y, FLAG_XY */ void recalculate(int flags); void recalculateRelativeTo(int flags); void recalculateSingle(QEdjePartDescription *desc, QEdjePartDescription *chosen_desc, QEdjeRealPart *rel1_to_x, QEdjeRealPart *rel1_to_y, QEdjeRealPart *rel2_to_x, QEdjeRealPart *rel2_to_y, QEdjeRealPart *confine_to, QEdjeCalcParams *params, int flags); void recalculateSingleGeometry(QEdjePartDescription *desc, QEdjeRealPart *rel1_to_x, QEdjeRealPart *rel1_to_y, QEdjeRealPart *rel2_to_x, QEdjeRealPart *rel2_to_y, QEdjeCalcParams *params, int flags); void recalculateSingleColors(QEdjePartDescription *desc, QEdjeCalcParams *params); void recalculateSingleMinMax(QEdjePartDescription *desc, QEdjeCalcParams *params); void recalculateSingleMinMaxApply(QEdjePartDescription *desc, QEdjeCalcParams *params, int flags); void recalculateSingleFill(QEdjePartDescription *desc, QEdjeCalcParams *params, int flags); void recalculateImageApply(QEdje *edje, QEdjeRealPart *part, QEdjeCalcParams *params, QEdjePartDescription *desc, double pos); void setSwallowParamsFromObject(QZionObject *obj); friend class QEdje; }; #define QEDJE_REAL_PART_OVERLOAD_EVENTS(cls) \ virtual void mouseMoveEvent(QMouseEvent *) {} \ virtual void mousePressEvent(QMouseEvent *) {} \ virtual void mouseReleaseEvent(QMouseEvent *) {} \ virtual void wheelEvent(QWheelEvent *) {} #define QEDJE_REAL_PART_OVERLOAD_METHODS(cls) \ virtual QZionObject *object() { return this; } \ virtual QColor color() const { return cls::color(); } \ virtual void setColor(const QColor &color) { cls::setColor(color); } \ virtual QSize size() const { return cls::size(); } \ virtual void setSize(const QSize &size) { cls::setSize(size); } /*! \class QEdjeRealPartRectangle \brief Represents a QEdjeRealPart specialization for a QZionRectangle. */ class QEdjeRealPartRectangle : public QZionRectangle, public QEdjeRealPart { Q_OBJECT public: QEdjeRealPartRectangle(QEdje *edje, QEdjePart *part); QEDJE_REAL_PART_OVERLOAD_EVENTS(QZionRectangle) QEDJE_REAL_PART_OVERLOAD_METHODS(QZionRectangle) }; /*! \class QEdjeRealPartImage \brief Represents a QEdjeRealPart specialization for a QEdjeImage. */ class QEdjeRealPartImage : public QEdjeImage, public QEdjeRealPart { Q_OBJECT public: QEdjeRealPartImage(QEdje *edje, QEdjePart *part); QEDJE_REAL_PART_OVERLOAD_EVENTS(QEdjeImage) QEDJE_REAL_PART_OVERLOAD_METHODS(QEdjeImage) }; /*! \class QEdjeRealPartText \brief Represents a QEdjeRealPart specialization for a QZionText. */ class QEdjeRealPartText : public QZionText, public QEdjeRealPart { Q_OBJECT public: QEdjeRealPartText(QEdje *edje, QEdjePart *part); QEDJE_REAL_PART_OVERLOAD_EVENTS(QZionText) QEDJE_REAL_PART_OVERLOAD_METHODS(QZionText) }; /*! \class QEdjeRealPartTextBlock \brief Represents a QEdjeRealPart specialization for a QZionTextBlock. */ class QEdjeRealPartTextBlock : public QZionTextBlock, public QEdjeRealPart { Q_OBJECT public: QEdjeRealPartTextBlock(QEdje *edje, QEdjePart *part); QEDJE_REAL_PART_OVERLOAD_EVENTS(QZionTextBlock) QEDJE_REAL_PART_OVERLOAD_METHODS(QZionTextBlock) }; /*! \class QEdjeRealPartGroup \brief Represents a QEdjeRealPart specialization for a QZionGroup. */ class QEdjeRealPartGroup : public QZionGroup, public QEdjeRealPart { Q_OBJECT public: QEdjeRealPartGroup(QEdje *edje, QEdjePart *part); QEDJE_REAL_PART_OVERLOAD_METHODS(QZionGroup) public Q_SLOTS: void signalProxy(const QString &emission, const QString &source); }; /*! \class QEdjeRealPartSwallow \brief Represents a QEdjeRealPart specialization for a QZionGroup. */ class QEdjeRealPartSwallow : public QZionGroup, public QEdjeRealPart { Q_OBJECT public: QEdjeRealPartSwallow(QEdje *edje, QEdjePart *part); QEDJE_REAL_PART_OVERLOAD_METHODS(QZionGroup) }; #endif qedje-mainline/src/qrunningprogram.cpp000066400000000000000000000127511116615416200204750ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . * * This file incorporates work covered by the license described in the * file COPYING.libedje. */ #include "qrunningprogram.h" #include #include #include "qedjerealpart.h" static const qreal PI = 3.14159265358979323846; /*! \param program pointer to the associated data container. \param edje the QEdje instance this part belongs to. \param duration transition duration in miliseconds. \param tweenMode curve shape. */ QRunningProgram::QRunningProgram(QEdjeProgram *program, QEdje *edje, int duration, TweenMode tweenMode, QList targets) : _targets(targets), _edje(edje), _duration(duration), _mode(tweenMode), _program(program), _timerId(0), _currentValue(0) { if (_program->inRange <= 0.0) { _delay = int(_program->inFrom * 1000); } else { qreal r = ((qreal)qrand() / RAND_MAX) * _program->inRange; _delay = int((_program->inFrom + r) * 1000); } _delayId = 0; _edje->_runningPrograms.append(this); } /*! \brief Destroys a running program. Sets the final state in the parts affected and do not run the "after" programs. If the program wasn't running yet (waiting on delay time before starts) it won't set the final state. */ QRunningProgram::~QRunningProgram() { if (!_edje) return; // We don't do last iteration for a program that was still delaying bool wasRunning = (_timerId != 0); endProgram(); if (wasRunning) _edje->runLastIteration(_targets, _program, QEdje::doNotExecuteAfter); } /*! \brief Starts program execution. Can also be called to reset program to initial position when already running. If there's a delay (keyword "in") in the program, start the timer for the delay, letting the real start of the animation for later. */ void QRunningProgram::start() { if (!_delayId && _delay > 0.0) _delayId = startTimer(_delay); else realStart(); } /*! \brief Internal function to start the timer. \sa start() */ void QRunningProgram::realStart() { if (!_timerId) _timerId = startTimer(40); // 25 fps _stopwatch.start(); } /*! \brief Stop program and internal timers. */ void QRunningProgram::stopTimers() { if (_timerId) { killTimer(_timerId); _timerId = 0; } if (_delayId) { killTimer(_delayId); _delayId = 0; } } /*! \brief Called by internal timer on regular intervals. */ void QRunningProgram::timerEvent(QTimerEvent *event) { int id = event->timerId(); if (id == _timerId) { event->accept(); int elapsedTime = _stopwatch.elapsed(); qreal newValue = elapsedTime < _duration ? valueForTime(elapsedTime) : 1.0; if (newValue != _currentValue) { _currentValue = newValue; updateValue(); } } else if (_delayId && (id == _delayId)) { event->accept(); killTimer(_delayId); _delayId = 0; realStart(); } else { event->ignore(); } } /*! \brief Update target state based on '_currentValue'. It's meant to be called after '_currentValue' has been updated to a new value and then sets the new object state for each of its targets. Also checks for end of program condition and performs necessary cleanup. \todo Check for Edje->delete_me before running. ref.: int _edje_program_run_iterate(Edje_Running_Program *runp, double tim) */ void QRunningProgram::updateValue() { qDebug() << "updateValue"; qDebug() << state(); if (_currentValue < 1.0) { _edje->iterateState(_currentValue, _targets); } else { endProgram(); _edje->runLastIteration(_targets, _program, QEdje::doExecuteAfter); _edje = NULL; deleteLater(); } } /*! Cleans up, removing all references to this program. */ void QRunningProgram::endProgram() { stopTimers(); foreach (QEdjeRealPart *rp, _targets) { if (rp->runningProgram() == this) rp->setRunningProgram(NULL); } _edje->_runningPrograms.removeAll(this); } /*! \brief Return curve value for a given time. Return animation progress in range [0..1] for a specific time based on the curve shape defined in '_mode'. \sa QRunningProgram::QRunningProgram */ qreal QRunningProgram::valueForTime(int msec) const { qreal pos = msec / qreal(_duration); switch (_mode) { case TWEEN_MODE_SINUSOIDAL: return (1.0 - cosf(pos * PI)) / 2.0; case TWEEN_MODE_ACCELERATE: return 1.0 - sinf((PI / 2.0) + (pos * PI / 2.0)); case TWEEN_MODE_DECELERATE: return sinf(pos * PI / 2.0); case TWEEN_MODE_LINEAR: return pos; default: return 0.0; } } qedje-mainline/src/qrunningprogram.h000066400000000000000000000044071116615416200201410ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef __QEDJE_RUNNINGPROGRAM_H__ #define __QEDJE_RUNNINGPROGRAM_H__ #include "qedje.h" #include "qedjeloader.h" #include class QEdje; class QEdjeProgram; class QEdjeRealPart; /*! \enum TweenMode \brief QRunniingProgram curve shapes. */ enum TweenMode { TWEEN_MODE_LINEAR = 1, TWEEN_MODE_SINUSOIDAL = 2, TWEEN_MODE_ACCELERATE = 3, TWEEN_MODE_DECELERATE = 4, }; /*! \class QRunningProgram \brief Controls the execution of a QEdjeProgram When running emits 'iterate' signals in regular intervals to drive the the animation of its QEdjeRealPart targets. \sa QEdjeProgram \sa QEdjeRealPart */ class QRunningProgram : public QObject { Q_OBJECT public: QRunningProgram(QEdjeProgram *program, QEdje *edje, int duration, TweenMode tweenMode, QList targets); ~QRunningProgram(); QD_PROPERTY_RD(QList, _targets, targets); void start(); qreal valueForTime(int msec) const; QString state() const { return _program->state; } double value() const { return _program->value; } QEdjeProgram *program() const { return _program; } protected: virtual void timerEvent(QTimerEvent *event); private: QEdje *_edje; int _duration; TweenMode _mode; QEdjeProgram *_program; QTime _stopwatch; int _timerId; qreal _currentValue; int _delay; int _delayId; void updateValue(); void endProgram(); void stopTimers(); void realStart(); }; #endif qedje-mainline/tests/000077500000000000000000000000001116615416200151055ustar00rootroot00000000000000qedje-mainline/tests/CMakeLists.txt000066400000000000000000000023161116615416200176470ustar00rootroot00000000000000include_directories(../src) function(qedje_test qedje_test_NAME qedje_test_SRCS qedje_test_MOCS) qt4_wrap_cpp(qedje_test_MOC_SRCS ${qedje_test_MOCS}) add_executable(${qedje_test_NAME} ${qedje_test_SRCS} ${qedje_test_MOC_SRCS}) target_link_libraries(${qedje_test_NAME} qedje ${QT_LIBRARIES} ${QZION_LIBRARIES} ${EET_LIBRARIES}) endfunction(qedje_test) # compile edje files for tests function(edje_file edje_file_NAME) execute_process(COMMAND edje_cc "${CMAKE_CURRENT_SOURCE_DIR}/${edje_file_NAME}.edc" "${CMAKE_CURRENT_BINARY_DIR}/${edje_file_NAME}.edj" WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") endfunction(edje_file) # copy data for tests function(qedje_copy_data copy_data_FILENAME) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${copy_data_FILENAME} ${CMAKE_CURRENT_BINARY_DIR}/${copy_data_FILENAME} COPYONLY ) endfunction(qedje_copy_data) qedje_copy_data(images/bg.jpg) qedje_copy_data(images/ico1.png) qedje_copy_data(images/ico2.png) qedje_copy_data(images/ico3.png) qedje_copy_data(images/ico4.png) qedje_copy_data(images/square.png) add_subdirectory(collections) add_subdirectory(setfile) add_subdirectory(simple) qedje-mainline/tests/collections/000077500000000000000000000000001116615416200174235ustar00rootroot00000000000000qedje-mainline/tests/collections/CMakeLists.txt000066400000000000000000000001371116615416200221640ustar00rootroot00000000000000edje_file(border) edje_file(default) edje_file(delay) edje_file(outofbounds) edje_file(theme2) qedje-mainline/tests/collections/border.edc000066400000000000000000000022701116615416200213560ustar00rootroot00000000000000images { image: "../images/bg.jpg" COMP; image: "../images/square.png" COMP; } collections { group { name: "BorderTest"; min: 800 480; parts { part { name: "bg"; type: IMAGE; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image.normal: "../images/bg.jpg"; } } part { name: "ico"; type: IMAGE; description { state: "default" 0.0; //min: 240 240; //max: 240 240; rel1 { relative: 0.0 0.0; offset: 150 150; } rel2 { relative: 1.0 1.0; offset: -10 -10; } color: 255 255 255 200; image{ normal: "../images/square.png"; border: 3 3 27 3; } } } } } } qedje-mainline/tests/collections/default.edc000066400000000000000000000201431116615416200215240ustar00rootroot00000000000000 images { image: "../images/ico1.png" COMP; } data { item: "application" "canola"; item: "version" "1.0"; } styles { style { name: "stylename1"; base: "size=12"; tag: "br" "$$"; tag: "b" "**"; } style { name: "stylename2"; base: "size=13"; tag: "br" "##"; } } color_classes { color_class { name: "colorclass1"; color: 10 20 30 40; color2: 50 60 70 100; color3: 110 120 130 140; } color_class { name: "colorclass2"; color: 120 255 100 200; color2: 200 134 233 255; color3: 122 111 80 100; } } collections { group { name: "item"; min: 100 100; max: 100 100; parts { part { name: "icon"; type: IMAGE; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image.normal: "../images/ico1.png"; } } } } group { name: "world"; min: 190 290; max: 590 690; images { image: "../images/bg.jpg" LOSSY 85; } parts { part { name: "master_clipper"; type: RECT; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } description { state: "hidden" 0.0; inherit: "default" 0.0; color: 255 255 255 0; } } part { name: "bg"; type: IMAGE; clip_to: "master_clipper"; description { state: "default" 0.0; rel1 { to: "master_clipper"; relative: 0.0 0.0; offset: 40 40; } rel2 { to: "master_clipper"; relative: 1.0 1.0; offset: -41 -41; } image.normal: "../images/bg.jpg"; } } part { name: "rmfclip"; type: RECT; description { state: "default" 0.0; color: 120 130 140 200; color2: 1 2 3 4; color3: 10 20 30 40; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -100 -100; } } } part { name: "iport"; type: GROUP; source: "item"; description { state: "default" 0.0; rel1 { to: "master_clipper"; relative: 0.0 0.0; offset: 0 0; } rel2 { to: "master_clipper"; relative: 1.0 1.0; offset: -1 -1; } } } part { name: "spx"; type: SWALLOW; mouse_events: 0; precise_is_inside: 1; description { state: "default" 0.0; rel1 { to: "master_clipper"; relative: 0.0 0.0; offset: 80 80; } rel2 { to: "master_clipper"; relative: 1.0 1.0; offset: -1 -1; } } } part { name: "grad1"; type: GRADIENT; repeat_events: 1; description { state: "default" 0.0; aspect: 0.2 0.5; aspect_preference: VERTICAL; /* TODO: BOTH, VERTICAL, HORIZONTAL and NONE. */ rel1 { to_y: "spx"; relative: 0.4 0.5; offset: 2 3; } rel2 { to_x: "master_clipper"; relative: 0.8 0.9; offset: -4 -5; } } } part { name: "txtblock1"; type: TEXTBLOCK; description { state: "default" 0.2; rel1 { relative: 0.0 0.0; offset: 2 3; } rel2 { relative: 1.0 1.0; offset: -4 -5; } text {text: "alo"; } } } part { name: "txt1"; type: TEXT; effect: SHADOW; /* TODO */ description { state: "default" 0.0; color: 255 0 0 255; rel1 { to: "master_clipper"; relative: 0.3 0.0; offset: 20 60; } rel2 { to: "master_clipper"; relative: 1.0 1.0; offset: -1 -1; } text { text: "sample text 1"; font: "Nokia Sans"; size: 30; text_class: "class_name"; fit: 1 0; min: 1 1; max: 1 0; align: 0.5 0.7; /*source: "part_name"; text_source: "text_part_name";*/ elipsis: 0.3; } } } part { name: "portx"; type: RECT; description { state: "default" 0.0; color: 200 0 0 200; color2: 1 2 3 4; color3: 10 20 30 40; rel1 { relative: 0.1 0.1; offset: 20 20; } rel2 { relative: 0.9 0.9; offset: -20 -20; } } } part { name: "icon"; type: IMAGE; clip_to: "rmfclip"; description { state: "default" 0.0; min: 100 120; max: 120 130; rel1 { to: "master_clipper"; relative: 0.0 0.0; offset: 40 40; } rel2 { to: "master_clipper"; relative: 1.0 1.0; offset: -41 -41; } image.normal: "../images/ico1.png"; } description { state: "moved" 0.0; inherit: "default" 0.0; rel1 { to: "master_clipper"; relative: 0.8 0.0; offset: 40 40; } rel2 { to: "master_clipper"; relative: 1.0 1.0; offset: -41 -41; } } } program { name: "clicked_prog"; signal: "mouse,clicked,1"; source: "icon"; action: STATE_SET "moved" 0.0; target: "icon"; transition: LINEAR 0.5; } program { name: "move_icon_prog"; signal: "move,icon"; action: STATE_SET "moved" 0.0; target: "icon"; in: 0.5 3.0; transition: LINEAR 2.8; } program { name: "rerrr"; signal: "stop"; /*action: SIGNAL_EMIT "xxxbbb" "*";*/ action: ACTION_STOP; target: "move_icon_prog"; } program { name: "ere"; signal: "eee"; action: SIGNAL_EMIT "xxxbbb" "*"; } } } } qedje-mainline/tests/collections/delay.edc000066400000000000000000000051001116615416200211720ustar00rootroot00000000000000images { image: "../images/bg.jpg" COMP; image: "../images/ico1.png" COMP; } collections { group { name: "world"; min: 800 480; parts { part { name: "bg"; type: IMAGE; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image.normal: "../images/bg.jpg"; } } part { name: "ico"; type: IMAGE; description { state: "default" 0.0; min: 120 120; max: 120 120; rel1 { relative: 0.0 0.0; offset: 150 150; } rel2 { relative: 0.0 0.0; offset: 150 150; } color: 255 255 255 200; image.normal: "../images/ico1.png"; } description { state: "centered" 0.0; inherit: "default" 0.0; max: 230 230; rel1 { relative: 0.5 0.5; offset: -100 -100; } rel2 { relative: 0.5 0.5; offset: 100 100; } color: 255 255 255 255; } } programs { program { name: "center"; signal: "center"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico"; transition: LINEAR 3.0; } program { name: "reset"; signal: "reset"; source: "*"; action: STATE_SET "default" 0.0; target: "ico"; transition: LINEAR 3.0; } program { name: "center_with_delay"; signal: "center_with_delay"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico"; in: 3.0 2.0; transition: LINEAR 3.0; } program { name: "stop"; signal: "stop"; source: "*"; action: ACTION_STOP; target: "center"; target: "reset"; target: "center_with_delay"; } } } } } qedje-mainline/tests/collections/outofbounds.edc000066400000000000000000000061561116615416200224570ustar00rootroot00000000000000// Test edje file for out-of-bounds events inside a GROUP part. // Also has 2 levels of nested swallows to test event propagation. collections { group { name: "group1"; parts { part { name: "group1rect1"; type: RECT; description{ state: "default" 0.0; rel1 { relative: 0.1 0.1; } rel2 { relative: 0.9 0.9; } } } part { name: "swallow1"; type: GROUP; source: "group2"; description { state: "default" 0.0; min: 100 100; max: 100 100; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } } } group { name: "group2"; min: 100 100; max: 100 100; parts { part { name: "group2rect1"; type: RECT; description { state: "default" 0.0; color: 127 0 0 127; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "group2rect2"; type: RECT; description { state: "default" 0.0; color: 0 255 127 127; rel1 { relative: 0.0 0.0; offset: -50 25; } rel2 { relative: 1.0 1.0; offset: 50 -25; } } } part { name: "swallow2"; type: GROUP; source: "group3"; description { state: "default" 0.0; rel1 { relative: 0.4 0.4; } rel2 { relative: 0.6 0.6; } } } } } group { name: "group3"; min: 100 100; max: 100 100; parts { part { name: "group3rect1"; type: RECT; description { state: "default" 0.0; color: 0 127 0 127; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } description { state: "other" 0.0; inherit: "default" 0.0; color: 0 0 0 255; } } } programs { program { name: "go_other"; signal: "mouse,clicked,1"; source: "group3rect1"; action: STATE_SET "other" 0.0; target: "group3rect1"; } program { name: "go_default"; signal: "mouse,clicked,3"; source: "group3rect1"; action: STATE_SET "default" 0.0; target: "group3rect1"; } } } } qedje-mainline/tests/collections/theme2.edc000066400000000000000000000173611116615416200212740ustar00rootroot00000000000000images { image: "../images/bg.jpg" COMP; image: "../images/ico1.png" COMP; image: "../images/ico2.png" COMP; image: "../images/ico3.png" COMP; image: "../images/ico4.png" COMP; } collections { group { name: "world"; min: 600 600; parts { part { name: "bg"; type: IMAGE; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 1.0; offset: -1 -1; } image.normal: "../images/bg.jpg"; } } part { name: "ico1"; type: IMAGE; description { state: "default" 0.0; min: 120 120; max: 120 120; rel1 { relative: 0.0 0.0; offset: 150 150; } rel2 { relative: 0.0 0.0; offset: 150 150; } color: 255 255 255 200; image.normal: "../images/ico1.png"; } description { state: "centered" 0.0; inherit: "default" 0.0; max: 230 230; rel1 { relative: 0.5 0.5; offset: -100 -100; } rel2 { relative: 0.5 0.5; offset: 100 100; } color: 255 255 255 255; } } part { name: "ico2"; type: IMAGE; description { state: "default" 0.0; min: 120 120; max: 120 120; rel1 { relative: 1.0 0.0; offset: -150 150; } rel2 { relative: 1.0 0.0; offset: -150 150; } color: 255 255 255 200; image.normal: "../images/ico2.png"; } description { state: "centered" 0.0; inherit: "default" 0.0; max: 230 230; color: 255 255 255 255; rel1 { relative: 0.5 0.5; offset: -100 -100; } rel2 { relative: 0.5 0.5; offset: 100 100; } } } part { name: "ico3"; type: IMAGE; description { state: "default" 0.0; min: 120 120; max: 120 120; color: 255 255 255 200; rel1 { relative: 0.0 1.0; offset: 150 -150; } rel2 { relative: 0.0 1.0; offset: 150 -150; } image.normal: "../images/ico3.png"; } description { state: "centered" 0.0; inherit: "default" 0.0; max: 230 230; color: 255 255 255 255; rel1 { relative: 0.5 0.5; offset: -100 -100; } rel2 { relative: 0.5 0.5; offset: 100 100; } } } part { name: "ico4"; type: IMAGE; description { state: "default" 0.0; min: 120 120; max: 120 120; color: 255 255 255 200; rel1 { relative: 1.0 1.0; offset: -150 -150; } rel2 { relative: 1.0 1.0; offset: -150 -150; } image.normal: "../images/ico4.png"; } description { state: "centered" 0.0; inherit: "default" 0.0; max: 230 230; color: 255 255 255 255; rel1 { relative: 0.5 0.5; offset: -100 -100; } rel2 { relative: 0.5 0.5; offset: 100 100; } } } program { name: "reset_all"; signal: "reset,all"; source: "*"; action: STATE_SET "default" 0.0; target: "ico1"; target: "ico2"; target: "ico3"; target: "ico4"; transition: LINEAR 0.5; } program { name: "ico1_click"; signal: "mouse,clicked,1"; source: "ico1"; action: STATE_SET "default" 0.0; target: "ico2"; target: "ico3"; target: "ico4"; transition: LINEAR 0.5; after: "ico1_center"; } program { name: "ico2_click"; signal: "mouse,clicked,1"; source: "ico2"; action: STATE_SET "default" 0.0; target: "ico1"; target: "ico3"; target: "ico4"; transition: LINEAR 0.5; after: "ico2_center"; } program { name: "ico3_click"; signal: "mouse,clicked,1"; source: "ico3"; action: STATE_SET "default" 0.0; target: "ico1"; target: "ico2"; target: "ico4"; transition: LINEAR 0.5; after: "ico3_center"; } program { name: "ico4_click"; signal: "mouse,clicked,1"; source: "ico4"; action: STATE_SET "default" 0.0; target: "ico1"; target: "ico2"; target: "ico3"; transition: LINEAR 0.5; after: "ico4_center"; } program { name: "ico1_center"; signal: "center,ico1"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico1"; transition: LINEAR 0.5; } program { name: "ico2_center"; signal: "center,ico2"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico2"; transition: LINEAR 0.5; } program { name: "ico3_center"; signal: "center,ico3"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico3"; transition: LINEAR 0.5; } program { name: "ico4_center"; signal: "center,ico4"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico4"; transition: LINEAR 0.5; } program { name: "all_at_once"; signal: "all"; source: "*"; action: STATE_SET "centered" 0.0; target: "ico1"; target: "ico2"; target: "ico3"; target: "ico4"; transition: LINEAR 2.0; after: "reset_all"; } program { name: "stop"; signal: "stop"; source: "*"; action: ACTION_STOP; target: "all_at_once"; target: "ico4_center"; target: "ico3_center"; target: "ico2_center"; target: "ico1_center"; } } } } qedje-mainline/tests/images/000077500000000000000000000000001116615416200163525ustar00rootroot00000000000000qedje-mainline/tests/images/bg.jpg000066400000000000000000000454551116615416200174610ustar00rootroot00000000000000JFIFddDucky<Adobed        {!1AQaqRS"2B!1A ?G7_ F>Ⱥkx5~DѼ!Wd5u!/d5t<:솦_ཐCï^Ȧ@dSC{W=Md ]mثp]t\x.. AvE48AuMd =-qLDz!Dz"閸 : ^Zae&ZaeDT?쉴7_⽑6dMx+ x+ x+-Ch-C7Ch-Eڍ⽐ {!PW.~+غd4{!=솅z5 j.z5~CB?iG ]>i}_}C.F>iG 4<"m4|!Wd]4|"iGWG&Z5~ eWd4j#솃G A&:솠u~ ï^hCF&/d4Wདt>Ⱥi^_}ҽ"=!8"i}t> ]o M}CqCM M}[d5uqCM}[d4> 5qCW^+EP  ؁bt.@p.\ b+BbP 4 Chw"8PD,Q!ؙ4!:L+FQ2DuQ e6 l@؀1bq(*,! Q(؁+BJ8. @ H l@8bĀD 8+EBU+Ehh5b#P B81b AÁ@bĀb@Ġ8YJFX#* Ԡ Ɔh>455Aj.k8DQ#RDQ"e.DSL@l8&b D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\]^QиP_9|7^i n?ũ'7n[{t~1Xdõv=-\5}ϔk*>-}c(|)=gWF4*Tc8kPu6}KH켆z{kV/xmD;~5ZSgcO767WDR"PZlcFƞFe(;NtW2Iq'aQg??lV{1[./ o\KK.q䶕(jiTo)-R;Fvhm_|}`?rvKv91 7wW>Qwc里IxkM'TcU_WJQg"KcuhS**j;i))/RC9K[, 7?-7ǵ?ڸ m DmQg'&z Gjew,~$xz[P.9v\zqv ^xٵ?]}ZgGs_Uվ7|sݕ}ҁ`St5~ÚϾkTXK@:QQពyetǝHAjo}k\w*,H\ oh/= z$2(R*vO}`۾dҡYӍrt"?.8~9d\ 7^ s,P[ŧ*,"$:)3 g7&WPva T{h*\ҍ7A5ӭ ~閰aNOc{M|Юbܭ/>jfn!:$9|@7߿Soi(t MM;ۇꘋ:^U-7?7ڳ@ wNGJn.kۇ圴 iJ-#a-檴:s_Tei-yE4v{awn9\8`8}hF/H8O=;22b6mE QXIIwUU_lr((}qM}z{{~k9 G0펽 y$G}0:fy9Bxr| DDH]&GOQfa`Z@"d-3DrcXgB"UK'Z;DIt3$R#캝 uʝDʓ->`ev9aOI¶ev9;e9D"}tW)XMKVD]LRT b(/!#dܾ@9H9D" bu e|H}%E}2>$1rD*(*XJ}{j쩔ٷ`)C$Ri.Н<6J;^(v*.RIENDB`qedje-mainline/tests/setfile/000077500000000000000000000000001116615416200165405ustar00rootroot00000000000000qedje-mainline/tests/setfile/CMakeLists.txt000066400000000000000000000001101116615416200212700ustar00rootroot00000000000000qedje_test(setfile "main.cpp" "scene.h") edje_file(one) edje_file(two) qedje-mainline/tests/setfile/main.cpp000066400000000000000000000026031116615416200201710ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #include #include #include #include #include "scene.h" Scene::Scene(QZionAbstractCanvas *canvas) { this->canvas = canvas; world = new QEdje(canvas, "one.edj", "world"); world->show(); contents = new QEdje(canvas, "one.edj", "something"); world->partSwallow("contents", contents); QTimer::singleShot(3000, this, SLOT(changeEdje())); } void Scene::changeEdje() { world->setFile("two.edj"); } int main(int argc, char **argv) { QApplication app(argc, argv); QZionCanvas *canvas = new QZionCanvas(); canvas->show(); Scene scene(canvas); return app.exec(); } qedje-mainline/tests/setfile/one.edc000066400000000000000000000022731116615416200200020ustar00rootroot00000000000000collections { group { name: "world"; min: 300 300; parts { part { name: "a"; type: RECT; description { state: "default" 0.0; color: 255 0 0 255; } } part { name: "b"; type: RECT; description { state: "default" 0.0; color: 0 0 255 255; rel1 { relative: 0.0 0.5; offset: 0 0; } } } part { name: "contents"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 0.0 0.0; offset: 50 50; } } } } } group { name: "something"; parts { part { name: "x"; type: RECT; description { state: "default" 0.0; color: 128 128 128 255; } } } } } qedje-mainline/tests/setfile/scene.h000066400000000000000000000021001116615416200177770ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef __SCENE_H__ #define __SCENE_H__ #include #include #include class Scene : public QObject { Q_OBJECT private: QZionAbstractCanvas *canvas; QEdje *world; QEdje *contents; public: Scene(QZionAbstractCanvas *canvas); public Q_SLOTS: void changeEdje(); }; #endif qedje-mainline/tests/setfile/two.edc000066400000000000000000000016761116615416200200400ustar00rootroot00000000000000collections { group { name: "world"; min: 300 300; parts { part { name: "c"; type: RECT; description { state: "default" 0.0; color: 128 0 0 255; } } part { name: "d"; type: RECT; description { state: "default" 0.0; color: 0 0 128 255; rel1 { relative: 0.5 0.0; offset: 0 0; } } } part { name: "contents"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 1.0 1.0; offset: -51 -51; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } } } } qedje-mainline/tests/simple/000077500000000000000000000000001116615416200163765ustar00rootroot00000000000000qedje-mainline/tests/simple/CMakeLists.txt000066400000000000000000000000411116615416200211310ustar00rootroot00000000000000qedje_test(simple "main.cpp" "") qedje-mainline/tests/simple/main.cpp000066400000000000000000000025071116615416200200320ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #include #include #include #include int main(int argc, char **argv) { QString filename, group; QApplication app(argc, argv); QZionCanvas *canvas = new QZionCanvas(); if (app.arguments().size() >= 2) filename = app.arguments().at(1); else filename = "../collections/theme2.edj"; if (app.arguments().size() >= 3) group = app.arguments().at(2); else group = "world"; canvas->show(); QEdje *world = new QEdje(canvas, filename, group); world->show(); return app.exec(); } qedje-mainline/tools/000077500000000000000000000000001116615416200151035ustar00rootroot00000000000000qedje-mainline/tools/CMakeLists.txt000066400000000000000000000000361116615416200176420ustar00rootroot00000000000000add_subdirectory(qedje_viewer)qedje-mainline/tools/qedje_viewer/000077500000000000000000000000001116615416200175545ustar00rootroot00000000000000qedje-mainline/tools/qedje_viewer/CMakeLists.txt000066400000000000000000000005251116615416200223160ustar00rootroot00000000000000include_directories(../../src) set(viewer_SRCS viewer.cpp main.cpp ) qt4_wrap_cpp(viewer_MOC_SRCS viewer.h) add_executable(qedje_viewer ${viewer_SRCS} ${viewer_MOC_SRCS}) target_link_libraries(qedje_viewer qedje ${QT_LIBRARIES} ${QZION_LIBRARIES} ${EET_LIBRARIES}) install(TARGETS qedje_viewer RUNTIME DESTINATION bin/) qedje-mainline/tools/qedje_viewer/main.cpp000066400000000000000000000031201116615416200212000ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #include #include #include #include #include #include "viewer.h" int main(int argc, char **argv) { QApplication app(argc, argv); Viewer viewer; QString filename; QString group; QStringList args = app.arguments(); if (args.size() >= 2) { filename = args.at(1); } else { filename = QFileDialog::getOpenFileName(&viewer, "Choose a file", QDir::current().path(), "Edje files (*.edj)"); } if (!viewer.load(filename)) return -1; viewer.resize(400, 400); viewer.show(); if (args.size() >= 3){ group = args.at(2); viewer.setGroup(group); } return app.exec(); } qedje-mainline/tools/qedje_viewer/viewer.cpp000066400000000000000000000075041116615416200215670ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #include #include #include #include #include "viewer.h" Viewer::Viewer(QWidget *parent) : QWidget(parent), _canvas(this), _entry_emission(this), _entry_source(this), _label_emission("Emission:", this), _label_source("Source:", this), _label_groups("Groups:", this), _current(NULL) { setWindowTitle("QEdje Viewer"); QObject::connect(&_entry_emission, SIGNAL(returnPressed()), this, SLOT(emitSignal())); QObject::connect(&_entry_source, SIGNAL(returnPressed()), this, SLOT(emitSignal())); QObject::connect(&_combo_groups, SIGNAL(currentIndexChanged(int)), this, SLOT(groupChanged(int))); QGridLayout *grid = new QGridLayout(); _label_groups.setBuddy(&_combo_groups); grid->addWidget(&_label_groups, 0, 0); grid->addWidget(&_combo_groups, 0, 1); _label_emission.setBuddy(&_entry_emission); grid->addWidget(&_label_emission, 1, 0); grid->addWidget(&_entry_emission, 1, 1); _label_source.setBuddy(&_entry_source); grid->addWidget(&_label_source, 2, 0); grid->addWidget(&_entry_source, 2, 1); QVBoxLayout *vbox = new QVBoxLayout(); vbox->addWidget(_canvas.widget(), 1); // canvas will stretch when there's space vbox->addLayout(grid, 0); setLayout(vbox); } bool Viewer::setGroup(const QString &group){ int groupPos = _combo_groups.findText(group); if (groupPos == -1){ return false; } _combo_groups.setCurrentIndex(groupPos); return true; } bool Viewer::load(const QString &filename) { QStringList lst = groupNamesFromFile(filename); if (lst.count() <= 0) return false; _filename = filename; _combo_groups.clear(); _combo_groups.addItems(lst); return true; }; bool Viewer::loadGroup(const QString &group) { if (_current) { _current->disconnectEdjeSignal("*", "*", this, SLOT(debugSignal(const QString &, const QString &))); delete _current; } _current = new QEdje(&_canvas, _filename, group); if (_current->group().isEmpty()) return false; _current->connectEdjeSignal("*", "*", this, SLOT(debugSignal(const QString &, const QString &))); _current->show(); // XXX: enforce minimum/maximum size QSize min = _current->propMin(); if (min == QSize(0, 0)) min = QSize(200, 200); return true; } void Viewer::debugSignal(const QString &emission, const QString &source) { std::cout << qPrintable(emission) << " " << qPrintable(source) << std::endl; } void Viewer::emitSignal() { if (_current) { _current->emitEdjeSignal(_entry_emission.text(), _entry_source.text()); } } void Viewer::groupChanged(int index) { if (index < 0 || _filename.isNull()) return; QString groupName = _combo_groups.itemText(index); loadGroup(groupName); } qedje-mainline/tools/qedje_viewer/viewer.h000066400000000000000000000027111116615416200212270ustar00rootroot00000000000000/* * Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved. * * This file is part of QEdje. * * QEdje is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QEdje 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with QEdje. If not, see . */ #ifndef _VIEWER_H_ #define _VIEWER_H_ #include #include #include class Viewer : public QWidget { Q_OBJECT public: Viewer(QWidget *parent = NULL); bool load(const QString &filename); bool loadGroup(const QString &group); bool setGroup(const QString &group); private: QZionCanvas _canvas; QLineEdit _entry_emission; QLineEdit _entry_source; QComboBox _combo_groups; QLabel _label_emission; QLabel _label_source; QLabel _label_groups; QEdje *_current; QString _filename; private Q_SLOTS: void debugSignal(const QString &emission, const QString &source); void emitSignal(); void groupChanged(int index); }; #endif