pax_global_header00006660000000000000000000000064121754251010014510gustar00rootroot0000000000000052 comment=ae0c2ca6240b834fd09bbe035e5b0cbd3581edb8 yorick-gy-0.0.5/000077500000000000000000000000001217542510100134275ustar00rootroot00000000000000yorick-gy-0.0.5/COPYING000066400000000000000000001045131217542510100144660ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . yorick-gy-0.0.5/ChangeLog000066400000000000000000000033571217542510100152110ustar00rootroot00000000000000Version 0.0.5 * fix typo in gy.c: Typelist -> Typelib -- Thibaut Paumard Mon, 29 Jul 2013 10:29:57 +0200 Version 0.0.4 * fix typo in gy_object.c: fprint -> fprintf -- Thibaut Paumard Mon, 29 Jul 2013 10:29:57 +0200 Version 0.0.3 * fix "implicit conversion from integer to pointer" * give the choice of stopping the loop in on_error -- Thibaut Paumard Thu, 25 Jul 2013 15:59:40 +0200 Version 0.0.2 * Don't start the loop in gy_gtk.i, instead start it in gy_gtk_main and stop it using gy_gtk_maybe_stop in hide/destroy callbacks if there are no remaining windows shown. Codes that relied on the loop running constantly must call gy_gtk_main somewhere. * gy_gtk_suspend is deprecated in favor of gy_gtk_hide_on_delete. * gy_gtk_ywindow_free_id check also regular yorick windows. * Fix the majority o memory leaks affecting cubeview. Some remain. Provide gy_object_free to free objects without ref counter. * split gy.c into many sub-pieces. * fix autoloads (only support functions) * update examples relative to recent changes * better (but unfinished) support for array types * ypush/get_g(u)int?? macros * allow accessing G(S)List data by index * improve G(S)List support, add .size member * fix hide_on_delete behaviour for gycmap * add gy_gtk_mouse(), which installs itself as mouse() * gy_gtk_idler, 0 now stops the loop in all cases before reinstanciating itself * Small bug fixes. -- Mon Jul 22 14:20:30 2013 -0400, Thibaut Paumard Version 0.0.1 * First release -- Fri Jun 7 16:58:36 2013 +0200, Thibaut Paumard yorick-gy-0.0.5/Makefile000066400000000000000000000057661217542510100151050ustar00rootroot00000000000000# these values filled in by yorick -batch make.i Y_MAKEDIR= Y_EXE= Y_EXE_PKGS= Y_EXE_HOME= Y_EXE_SITE= Y_HOME_PKG= # ----------------------------------------------------- optimization flags # options for make command line, e.g.- make COPT=-g TGT=exe COPT=$(COPT_DEFAULT) TGT=$(DEFAULT_TGT) # ------------------------------------------------ macros for this package PKG_NAME=gy PKG_I=gy0.i OBJS=gy.o gy_repository.o gy_argument.o gy_gvalue.o gy_callback.o \ gy_property.o gy_typelib.o gy_object.o # change to give the executable a name other than yorick PKG_EXENAME=yorick # PKG_DEPLIBS=-Lsomedir -lsomelib for dependencies of this package PKG_DEPLIBS=`pkg-config --libs gobject-introspection-1.0` # set compiler (or rarely loader) flags specific to this package PKG_CFLAGS=-Wall `pkg-config --cflags gobject-introspection-1.0` PKG_LDFLAGS= # list of additional package names you want in PKG_EXENAME # (typically $(Y_EXE_PKGS) should be first here) EXTRA_PKGS=$(Y_EXE_PKGS) # list of additional files for clean PKG_CLEAN= # autoload file for this package, if any PKG_I_START=gy_start.i # non-pkg.i include files for this package, if any PKG_I_EXTRA=gy.i gy_gtk.i # -------------------------------- standard targets and rules (in Makepkg) # set macros Makepkg uses in target and dependency names # DLL_TARGETS, LIB_TARGETS, EXE_TARGETS # are any additional targets (defined below) prerequisite to # the plugin library, archive library, and executable, respectively PKG_I_DEPS=$(PKG_I) Y_DISTMAKE=distmake include $(Y_MAKEDIR)/Make.cfg include $(Y_MAKEDIR)/Makepkg include $(Y_MAKEDIR)/Make$(TGT) # override macros Makepkg sets for rules and other macros # see comments in Y_HOME/Makepkg for a list of possibilities # if this package built with mpy: 1. be sure mpy appears in EXTRA_PKGS, # 2. set TGT=exe, and 3. uncomment following two lines # Y_MAIN_O=$(Y_LIBEXE)/mpymain.o # include $(Y_MAKEDIR)/Makempy # configure script for this package may produce make macros: # include output-makefile-from-package-configure # reduce chance of yorick-1.5 corrupting this Makefile MAKE_TEMPLATE = protect-against-1.5 # ------------------------------------- targets and rules for this package # simple example: #myfunc.o: myapi.h # more complex example (also consider using PKG_CFLAGS above): #myfunc.o: myapi.h myfunc.c # $(CC) $(CPPFLAGS) $(CFLAGS) -DMY_SWITCH -o $@ -c myfunc.c # -------------------------------------------------------- end of Makefile CMAP_PNG = cbc-div-cmap.png cb-div-cmap.png cb-seq-cmap.png gmt-cmap.png \ msh-cmap.png cbc-seq-cmap.png cb-qual-cmap.png gist-cmap.png \ gpl-cmap.png mpl-cmap.png DEST_PKG_INSTALLED_DIR=$(DEST_Y_SITE)/packages/installed install:: $(YNSTALL) gycmap.xml $(DEST_Y_SITE)/glade $(YNSTALL) $(CMAP_PNG) $(DEST_Y_SITE)/data mkdir -p $(DEST_PKG_INSTALLED_DIR) cp gy.info $(DEST_PKG_INSTALLED_DIR) uninstall:: -rm -f $(DEST_PKG_INSTALLED_DIR)/gy.info for file in $(CMAP_PNG) ; do rm -f $(DEST_Y_SITE)/data/$$file; done; -rm -f $(DEST_Y_SITE)/glade/gycmap.xml yorick-gy-0.0.5/README.md000066400000000000000000000025521217542510100147120ustar00rootroot00000000000000GObject Introspection plug-in for yorick ---------------------------------------- Yorick is an interactive programming language for scientific computing that includes scientific visualization functions, and text and binary I/O functions geared to millions of numbers. [yorick.github.com]: http://yorick.github.com [yorick.sourceforge.net]: http://yorick.sourceforge.net [github.com/dhmunro/yorick]: http://github.com/dhmunro/yorick This plug-in allows using GObject-introspection. [https://developer.gnome.org/gi/unstable/index.html]: https://developer.gnome.org/gi/unstable/index.html In turn, this allows writting Gtk graphical user interfaces directly in Yorick. Be warned: ---------- As of now, this is in an early development phase. std::dislaimer appplies. Build instructions: ------------------- For building, you need to the library libgirepository and its header files. This library gives access to the so called GObject introspection repository. The Makefile uses pkg-config to find the headers etc., make sure pkg-config can find gobject-introspection-1.0.pc or edit the Makefile appropriateley. Then: yorick -batch make.i make make install Using instructions: ------------------- You need the typelib files for the library you want to access. For instance, under Debian GNU/Linux, to build Gtk 3.0 interfaces, you need the package: gir-1.2-gtk-3.0. yorick-gy-0.0.5/bigloop.i000066400000000000000000000034561217542510100152440ustar00rootroot00000000000000/* This file examplifies how to give oneself the ability to stop a long computation loop. */ /* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy_gtk.i" // do stuff should perhaps not in itself last too long (at most a few seconds) func do_stuff(void) {"do stuff";} // run do_stuff from a loop and chck for Gtk event regularly func bigloop_start(widget, event) { extern _stop, scene; _stop=0; while (!_stop) { do_stuff; while (gy.Gtk.events_pending ()) noop, gy.Gtk.main_iteration (); } } // stop loop func bigloop_stop(widget, event) { extern _stop; _stop=1; "stop"; } // build window with "start" and "stop" buttons. Gtk=gy.Gtk; Gtk.init(0,); gy_setlocale; win=Gtk.Window.new(Gtk.WindowType.toplevel); box=Gtk.Box.new(Gtk.Orientation.horizontal, 0); noop, win.add(box); but=Gtk.Button.new_with_label("start"); noop, box.pack_start(but, 0, 0, 0); gy_signal_connect, but, "clicked", bigloop_start; but=Gtk.Button.new_with_label("stop"); noop, box.pack_start(but, 0, 0, 0); gy_signal_connect, but, "clicked", bigloop_stop; // realize window and gyterm at once. gy_gtk_main, win, on_delete=1; gyterm; yorick-gy-0.0.5/cb-div-cmap.png000066400000000000000000000225331217542510100162240ustar00rootroot00000000000000PNG  IHDRb.sRGBbKGD pHYs  tIME"'ӡN IDATx}P $<֣ԠFsNc[oi;IG3&ŪxbB:zQfsZGIf&Ʃ7I9  1*"<xǕŀ|^3;^kug7y{hC;^C5s!vߣ?|/C}ʐq27>5ȝ7HS """DLDDDD(Q"&"""b21bg߾-֒ĉZl6IMMeǎzKH_RWWG]]罹+W޲#:: 6pϱFm۶fv\.^Ȝ9s((( ..łba„ sQ̝&EDDOڨW^`ر]dddq>wVZ5 NZwrss޽B N'111JDDDDr<նmƌ3<^gɜ=b"""kWoooottRrrr􏏏)EEEPRR2 QlfԨQ1z!6Аq[B2oo }wU{eاJC}rVY*b""""JDDDD1%b""""L.7Ldd$iii8ng|Z2338q"VFtt4رç#&"""}3gg޽:tnllpp8:~Ahhhj|1wHu^`vsy}LBKK ?|[ZZfŊܹӫd޼y4440w\JKKq\\.***cԩfH1sLv@iii}b477{ŋ̙3X,X,&L@zz:GzL_W % &koNK"""r۴RWWǦM^8Uz=vRR?˗lٲ~9H\pCs鰳jOTTt8Fݻ9 ߺu+?O<ɓvU%Ajj*%%%$$$L۩c֭P__%iq$&&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B6A>^;¨vt-ЌI84i~.TqUiun~ g"~jբ}Yӎ:[?_N\ƣkѶG֗l[m_WFsa#""""&lDDDt CoӃ3Li_^m%o"""|$Icff$ HH'>|)ϰQDQܼy$vcee n7$IBggδ ! .(z{{o2a#""|ڂN'JKKQZZ Ӊ%i|J×)p8`Xt/]fVfmm f---=KDDD7Ϟ=eLL&y^L&066p\J, y6"""ʛԤ[&/U'O`~~x\ML&aP]]UAq8almm!p0a#""":)\~UUUYBjbKKK vnc|| o/^D"2}9NlX B<А&^n3a#""sի]L%\W=ذB\pn<`nndR)SSSƃôL؈z0x)::: H$H$ q5~fxڊFHe%}6""ܹÄηK.affFIښ7477+ڣGP[[>S]\\TbD(Ra BL؈<VWWݍ:uuur8xBJmm-a6aZr39&ԷԶm]_h˧qks̸͓nqkC'4?&m}r:_??q/Tml'׭گC'.tWь5h[ݏ#YEkk?in3/#a#""""&lDDDDL؈ i|@"se*.Y/m9r?f=>z:rG~2/Fڽ F3>cy~5۲΢zYdnW{ϓkB?'LJR/m|~rAڸee4u]N|Y6}EƋݍ "Y~Qw>0"y98g؈ Lrv coo/綎j;7nR&lDDDDG$ H|M^^Gu,믿0;;O>` Q6B`wwh鼵-?}vww2a#"""EQQl6;;;iex`X`6҂٬گ+WWN>%Îo%"""z]$bv]cc. x\ ] Vqq1l6|>122*788x<Áp8-a8y9~'ܸq7#6""":BXVUlii 011&g&ahh荜;a#""ג#arrUUUi &^n&2xw# rC+::&lDDDt.v-L&2555n<8LMR_/^P=#oCeH/L؈Z[[IoF$A"@$;wN{`ϟcaa_|6"""Ln7`qqQ PveeeB' 022TTT6"""L<+Zl6jr)U; >>JKK>SVDRwe*.YO+s?f= v Ɵu=u\9??<,' ĵevt'r,߯f;UO95qޮڮv<2}8tBӟ3Jiykҿve6}ۨ=~Mlɚϡl[~eDF_WqN.xY<·ChFXa3lDDDDĄ 1a#""""CUIENDB`yorick-gy-0.0.5/configure000077500000000000000000000000551217542510100153360ustar00rootroot00000000000000#!/bin/sh set -e yorick -batch make.i exit 0 yorick-gy-0.0.5/custom.i000066400000000000000000000003161217542510100151130ustar00rootroot00000000000000plug_dir,_(["./"], plug_dir()); /* This should be the final line in your custom.i file-- it implements the default command line processing (see help for process_argv). */ command_line= process_argv(); yorick-gy-0.0.5/gist-cmap.png000066400000000000000000000166341217542510100160330ustar00rootroot00000000000000PNG  IHDRbsRGBbKGD pHYs  tIME_:IDATxL!Σ:Ӻj&P~ZPf$u0u0Ftvbh{a% 1HbAաr"qwyD+i<<<߯ )SL2ej׮]óZbȻ|x 1#""""bDDDD Ĉ҂M6AWFii)A^ t:DGGCڔHj5ÑaMll,A_|t.QQQ ĈhzkkkêUpyc``UUUHJJr'##)))C.??_<88&dggرcR'|8s:@#G`0 ""B ᶏ^GYY l6l6TWSS#L&TVV,1w\֢Q*ooo˗;w2#""魼PTTH̜9(**rGa˖-jrш,,ZJjwJ|}}(,,ʿkXV$''C0#""魫 &+뭷sY'NY,Y>-- Jͳgܷ%nݺ%+onnvGR,Ffzzz`mHHoߎ^7oDTT/_@jllhD}}=>g> jVڊNpIL2eʔ{Mz`& ඍa|y~8ݻwl~+WDuu5j5J%:::1"""x TUU!11 ĪUW_ c!-- PT@qq}b& ɓ>c FDDD^'`Ϟ=@{{;t:w\‘FAAA:;;a2Ѐ1EEEI3m{K yKEE*** 9fZZlm۶aҥSzqFŋXv-_;wDuu5_gϞ;vhyMBB&OӧK?Ɣ)W7ZLbi}}= Έ1#""""bDDDD ĈMf^%%%QQQNe @V#<<Nhh4 ZZZi&h4c(--e FDDDӖ}3g8t:@jjT/}DSSq1gdd %%uuuڰj*?@UUuc FDDD?sEmm-v\|عsT^SS#i2PYY) z`0>p]t:lٲZVV^^^(**Bdd$fΜH1#""WGZZJ%ۇgϞ -'NaX\粼 &+뭷ѫ#$$۷oGoo/JJJPSS7o"** ˗/z#\===lslJ<((p-Yyss31"""z/,,t>iLBV)))uKhllhD}}=>)qbʔ)SLXVXQ+WjJw=3\s -?1l6DFF`0x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O & 6l@GG$cXzQ[[. */ #include "gy.h" #include "ctype.h" /// utility functions char * p_strtolower(const char * in) { char * cur, * out = p_strcpy(in); for (cur=out; *cur; ++cur) *cur=tolower(*cur); return out; } /// YAPI FUNCTIONS void Y_gy_init(int argc) { #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); #endif ypush_gy_Repository()->repo = g_irepository_get_default(); } void Y_gy_list(int argc) { if (yarg_gy_Object(argc-1)) gy_Object_list(argc); else gy_Typelib_list(argc); } static gboolean _gy_debug = 0; gboolean gy_debug() { return _gy_debug; } void Y_gy_debug(int argc) { ypush_long(_gy_debug); if (argc && !yarg_nil(argc)) _gy_debug = ygets_l(argc); } void Y_gy_setlocale(int argc) { if (argc > 2) y_error("gy_setlocale, [[CATEGORY, ], LOCALE]"); char * scat="LC_ALL"; char * sloc =NULL; int cat=0; if (argc == 2) scat = ygets_q(1); if (yarg_string(0)) sloc = ygets_q(0); if (!strcmp(scat, "LC_ALL")) cat = LC_ALL; else if (!strcmp(scat, "LC_COLLATE")) cat = LC_COLLATE; else if (!strcmp(scat, "LC_CTYPE")) cat = LC_CTYPE; else if (!strcmp(scat, "LC_MONETARY")) cat = LC_MONETARY; else if (!strcmp(scat, "LC_NUMERIC")) cat = LC_NUMERIC; else if (!strcmp(scat, "LC_TIME")) cat = LC_TIME; else y_error("unsupported locale category"); if (sloc && cat==LC_NUMERIC && strcmp(sloc, "C")) y_error("Yorick does not support LC_NUMERIC != \"C\""); *ypush_q(0) = p_strcpy(setlocale(cat, sloc)); setlocale(LC_NUMERIC, "C"); } void Y_gy_id(int argc) { ypush_long((long) yget_gy_Object(argc-1)->object); } /* void * gy_thread(void * cmd) { yexec_include(0,1); return NULL; } void Y_gy_thread(int argc) { pthread_t thread; pthread_create(&thread, NULL, &gy_thread, NULL); sleep(100); } */ // This code is never used: it serves only the purpose of doing some compile // time tests. void __gy_build_bug_on() { GY_BUILD_BUG_ON(sizeof(char)!=1); GY_BUILD_BUG_ON(sizeof(short)!=2); GY_BUILD_BUG_ON(sizeof(int)!=4); GY_BUILD_BUG_ON(sizeof(void*)!=sizeof(long)); } yorick-gy-0.0.5/gy.h000066400000000000000000000130651217542510100142240ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include #include #include "yapi.h" #include "pstdlib.h" #include #include #include #include #include //#include //#include typedef struct _gy_signal_data { GIBaseInfo * info; GIRepository * repo; const char * cmd; void * data; } gy_signal_data; gboolean gy_debug() ; #define GY_DEBUG( ... ) \ if (gy_debug()) fprintf(stderr, "GY DEBUG: " __VA_ARGS__ ); typedef struct _gy_Object { GIBaseInfo * info; GObject * object; GIRepository * repo; } gy_Object; gy_Object* yget_gy_Object(int); gy_Object* ypush_gy_Object(); void gy_Argument_pushany(GIArgument * arg, GITypeInfo * info, gy_Object* o); void gy_sa_handler(int sig) ; typedef struct _gy_Typelib { GITypelib * typelib; gchar * namespace; GIRepository * repo; } gy_Typelib; void gy_Typelib_free(void *obj); void gy_Typelib_print(void *obj); //void gy_Typelib_eval(void *obj, int argc); void gy_Typelib_extract(void *, char *); void gy_Typelib_free(void *obj) ; void gy_Typelib_print(void *obj); void gy_Typelib_list(int argc); int yarg_gy_Typelib(int iarg); gy_Typelib* yget_gy_Typelib(int iarg) ; gy_Typelib* ypush_gy_Typelib() ; /// GYREPOSITORY typedef struct _gy_Repository { GIRepository * repo; char * method; } gy_Repository; //void gy_Repository_free(void *obj); void gy_Repository_print(void *obj); void gy_Repository_eval(void *obj, int argc); void gy_Repository_extract(void *, char *); int yarg_gy_Repository(int iarg); gy_Repository* yget_gy_Repository(int iarg) ; gy_Repository* ypush_gy_Repository(); /// GIBASEINFO void gy_Object_free(void *obj); void gy_Object_print(void *obj); void gy_Object_eval(void *obj, int argc); void gy_Object_extract(void *, char *); void gy_Object_list(int argc); void gy_Argument_getany(GIArgument * arg, GITypeInfo * info, int iarg) ; void gy_Argument_pushany(GIArgument * arg, GITypeInfo * info, gy_Object* o) ; int yarg_gy_Object(int iarg) ; gy_Object* yget_gy_Object(int iarg); gy_Object* ypush_gy_Object() ; void gy_callback0(void* arg1, gy_signal_data* sd) ; gboolean gy_callback0_bool(void* arg1, gy_signal_data* sd) ; void gy_callback1(void* arg1, void* arg2, gy_signal_data* sd) ; gboolean gy_callback1_bool(void* arg1, void* arg2, gy_signal_data* sd) ; void gy_callback2(void* arg1, void* arg2, void* arg3, gy_signal_data* sd) ; gboolean gy_callback2_bool(void* arg1, void* arg2, void*arg3, gy_signal_data* sd) ; /// Properties GIPropertyInfo * gy_base_info_find_property_info(GIBaseInfo * objectinfo, char * name); GIPropertyInfo * gy_base_info_find_field_info(GIBaseInfo * objectinfo, char * name); void gy_value_init(GValue* val, GITypeInfo *info); void gy_value_set_iarg(GValue* val, GITypeInfo * info, int iarg); void gy_value_push(GValue * pval, GITypeInfo * info, gy_Object *o); // This should be OK for most mainstream architectures, but... #define GY_BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) #define GY_HAVE_INT64 GLIB_SIZEOF_LONG==8 #define ygets_gint8(iarg) ((gint8) ygets_c(iarg)) #define ygets_guint8(iarg) ((guint8) ygets_uc(iarg)) #define ygets_gint16(iarg) ((gint16) ygets_s(iarg)) #define ygets_guint16(iarg) ((guint16)ygets_s(iarg)) #define ygets_gint32(iarg) ((gint32) ygets_i(iarg)) #define ygets_guint32(iarg) ((guint32)ygets_i(iarg)) #if GY_HAVE_INT64 # define ygets_gint64(iarg) ((gint64)ygets_l(iarg)) # define ygets_guint64(iarg) ((guint64)ygets_l(iarg)) #else # define ygets_gint64(iarg) 1/0 # define ygets_guint64(iarg) 1/0 #endif #define ygeta_gint8(iarg, ntot, dims) ((gint8*) ygeta_c(iarg, ntot, dims)) #define ygeta_guint8(iarg, ntot, dims) ((guint8*) ygeta_uc(iarg, ntot, dims)) #define ygeta_gint16(iarg, ntot, dims) ((gint16*) ygeta_s(iarg, ntot, dims)) #define ygeta_guint16(iarg, ntot, dims) ((guint16*)ygeta_s(iarg, ntot, dims)) #define ygeta_gint32(iarg, ntot, dims) ((gint32*) ygeta_i(iarg, ntot, dims)) #define ygeta_guint32(iarg, ntot, dims) ((guint32*)ygeta_i(iarg, ntot, dims)) #if GY_HAVE_INT64 # define ygeta_gint64(iarg, ntot, dims) ((gint64*)ygeta_l(iarg, ntot, dims)) # define ygeta_guint64(iarg, ntot, dims) ((guint64*)ygeta_l(iarg, ntot, dims)) #else # define ygeta_gint64(iarg, ntot, dims) 1/0 # define ygeta_guint64(iarg, ntot, dims) 1/0 #endif #define ypush_gint8(dims) ((gint8*) ypush_c(dims)) #define ypush_guint8(dims) ((guint8*) ypush_uc(dims)) #define ypush_gint16(dims) ((gint16*) ypush_s(dims)) #define ypush_guint16(dims) ((guint16*)ypush_s(dims)) #define ypush_gint32(dims) ((gint32*) ypush_i(dims)) #define ypush_guint32(dims) ((guint32*)ypush_i(dims)) #if GY_HAVE_INT64 # define ypush_gint64(dims) ((gint64*) ypush_l(dims)) # define ypush_guint64(dims) ((guint64*) ypush_l(dims)) #else # define ypush_gint64(dims) 1/0 # define ypush_guint64(dims) 1/0 #endif // strtolower with built-in allocation // use p_free() to free char * p_strtolower(const char * in); yorick-gy-0.0.5/gy.i000066400000000000000000000116631217542510100142270ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy0.i" local gy_i; /* DOCUMENT #include "gy.i" gy is a Yorick plug-in around GObject-introspection. It can notably be used to create Gtk GUIs from within Yorick. gy_gtk.i contains convenience code for using the Gtk library through gy. NAMESPACES Any library providing gobject-introspection can be accessed through this plug-in, as long as the gobject-introspection repository (GIR) files are installed on the system: under certain Linux systems, the corresponding package may be called "gir1.0-" or something similar. The notable example is Gtk. To load the GIR bindings for a given library, simply append the library's namespace to gy: Gtk = gy.Gtk; To load a specific version of a namespace (good idea for public code): Gtk = gy.require("Gtk", "3.0"); You can use gy_list to list the symbols inside this namespace: gy_list, Gtk; TYPE CLASSES AND OBJECTS A namespace (Gtk in this example) contains the definition of various types (object classes, C structures, enums...). Although some object classes provide one or several "new()" methods, the normal way is to just call the (object or structure) class as a function, passing properties or fields as keywords: button = gy.Gtk.Button.new_with_label("My Button"); is thus equivalent to button = gy.Gtk.Button(label="My Button"); Object members can also be listed with gy_list: gy_list, button; gy_list, Gtk.Button; (This only lists the available members and methods, not their value). Object/structure properties and fields can be set using the keyword notation, although specific "set_" methods are often provided: noop, button.set_label("other label"); button, label="other label"; They can be retrieved with either of: var = button.label; val = button.get_label(); // if applicable button, label, var; The last form is convenient and performant when retrieving several properties at a time: button, xalign, x, yalign, y; Hyphens in properties or filed names in the C documentation are replaced with underscores in the Yorick implementation. Methods and other member functions are accessed by extracting them with the dot operator (which produces a closure), then calling the closure. In simpler words, this works as expected: object.method(arguments); Note that the coma syntax does not work in this context. The two following are equivalent to hide the output value from a method call: closure = object.method; closure, arguments; noop, object.method(arguments); Enum values are accessed likewise: var = gy.Gtk.MessageType.error; Beware that C documentation may list enum values are CPP macros. Those aliases are not accessible within Yorick, only the fully qualified name. For instance, GTK_MESSAGE_ERROR is one value of type GtkMessageType. In Yorick you access it as gy.Gtk.MessageType.error. Callbacks can be connected to objects using gy_signal_connect. gy simply exposes conforming library content to Yorick. See the relevant library C API documentation for more details, for instance: https://developer.gnome.org/gtk3/stable/ SEE ALSO: gy, gy_gtk_i */ extern gy; /* DOCUMENT gy gy is a Yorick plug-in around GObject-introspection. It can notably be used to create Gtk GUIs from within Yorick. See gy_i for an introduction. The gy object itself gives access to the gobject introspection repository. It serves only one purpose: loading so called "namespace", which can be done very simply by dereferencing gy: Gtk = gy.Gtk; It is safer to use the "require" method below though. METHODS: require: allows loading a specific version of a namespace: Gtk = gy.require("Gtk", "3.0"); only one given version of a namespace can be loaded at a given time. require_private, get_search_path, prepend_search_path, is_registered, get_version, enumerate_versions: see C documentation for g_irepository_. SEE ALSO: gy_i, gy_init, gy_list */ gy=gy_init(); yorick-gy-0.0.5/gy.info000066400000000000000000000010351217542510100147220ustar00rootroot00000000000000Package: gy Kind: plugin Version: 0.0 Revision: 3 Description: GObject introspection and Gtk widgets License: GPLv3 Author: Thibaut Paumard Maintainer: Thibaut Paumard OS: architecture independant Depends: yorick(>=2.2.02) Source: https://github.com/paumard/yorick-gy Source-MD5: Source-Directory: contrib/ DocFiles: README GPL-3 Homepage: https://github.com/paumard/yorick-gy DescDetail: << This plug-in allows using GObject-introspection. << DescUsage: << See gyhelloworld.i for a demo. << DescPort: << << yorick-gy-0.0.5/gy0.i000066400000000000000000000061141217542510100143020ustar00rootroot00000000000000plug_in, "gy"; /* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ extern gy_init; /* DOCUMENT gy=gy_init() Initialize gy. Normally called only in gy.i. */ extern gy_list; /* DOCUMENT gy_list, OBJECT List symbols in gy stuff OBJECT. EXAMPLE: gy_list, gy.Gtk gy_list, "Gtk" gy_list, gy.Gtk.Window gy_list, gy.Gtk.Window() SEE ALSO: gy */ extern gy_signal_connect; /* DOCUMENT gy_connect_signal, object, signal, handler or gy_connect_signal, builder Connect signal to signal handler. The handler must accept all the parameters described in the C documentation for the signal. ARGUMENTS: builder: if first argument is a Gtk Builder object, the signals information it contains will be used to automatically connect GObject signals to Yorick interpreted functions. Whether or not the Yorick functions actually exists is not checked. object: a gy object supporting signals, e.g. an instance of gy.Gtk.Entry. signal: the signal name, e.g. "activated". handler: the Yorick command to be executed when the object receives the signal. HANDLER will be called like: include, ["noop, " + handler + "(par1, ..., parn)"], 1 where par1 to parn are the parameters described in the C documentation for SIGNAL. HANDLER may be a string or a Yorick function. EXAMPLE: See gy. SEE ALSO: gy */ extern gy_debug; /* DOCUMENT mode = gy_debug(); or gy_debug, mode; Get or set gy debug mode. SEE ALSO: gy */ extern gy_setlocale; /* DOCUMENT gy_setlocale, [category,] locale or locale=gy_setlocale() Get or set locale used in the Yorick process. Allways resets LC_NUMERIC to "C" as other values may break Yorick. SEE ALSO: gy */ extern gy_id; /* DOCUMENT id = gy_id(object) Get unique id of gy object. Two variables may hold the same underlying object: the id is unique. SEE ALSO: gy */ extern __gy_gtk_builder_connector; /* DOCUMENT __gy_gtk_builder_connector() Return Pointer to C function used by gy_signal_connect when passed a Gtk.Buildervobject. Internal use only. */ extern gy_object_free; /* DOCUMENT gy_object_free, obj Free object pointed to by gy object OBJ. May be necessary to prevent some memory leaks. Experimental: Use with caution. */ yorick-gy-0.0.5/gy_argument.c000066400000000000000000000240631217542510100161210ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.h" #include "string.h" void gy_Argument_getany(GIArgument * arg, GITypeInfo * info, int iarg) { GITypeTag type = g_type_info_get_tag(info); GIBaseInfo * itrf; GY_DEBUG("Getting %s into Argument\n", g_type_tag_to_string(type)); switch(type) { case GI_TYPE_TAG_VOID: if (yarg_nil(iarg)) arg->v_pointer=NULL; else y_error("unimplemented void... type (?!)"); break; case GI_TYPE_TAG_BOOLEAN: arg->v_boolean=yarg_true(iarg); break; case GI_TYPE_TAG_UINT8: arg->v_uint8=(gint8)ygets_l(iarg); break; case GI_TYPE_TAG_INT32: arg->v_int32=(gint32)ygets_l(iarg); break; case GI_TYPE_TAG_UINT32: arg->v_int32=(guint32)ygets_l(iarg); break; case GI_TYPE_TAG_DOUBLE: arg->v_double=ygets_d(iarg); break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: arg->v_string=ygets_q(iarg); GY_DEBUG( "argument: %s\n", arg->v_string); break; case GI_TYPE_TAG_ARRAY: { //gint alen; GY_DEBUG("Getting Array argument:\n"); GY_DEBUG(" length : %d\n", g_type_info_get_array_length(info)); GY_DEBUG(" fixed_size : %d\n", g_type_info_get_array_fixed_size(info)); GY_DEBUG(" is_zero_terminated: %d\n", g_type_info_is_zero_terminated(info)); GY_DEBUG(" type : %d\n", g_type_info_get_array_type(info)); GITypeInfo * cellinfo = g_type_info_get_param_type(info, 0); GITypeTag ctag = g_type_info_get_tag(cellinfo); GY_DEBUG(" cell data type : %s\n", g_type_tag_to_string(ctag)); long ntot=0; switch (g_type_info_get_array_type (info)) { case GI_ARRAY_TYPE_C: if (yarg_nil(iarg)) { arg->v_pointer=0; break; } if (yarg_typeid(iarg)==Y_POINTER) { arg->v_pointer=ygets_p(iarg); break; } switch (ctag) { case GI_TYPE_TAG_VOID: if (yarg_nil(iarg)) arg->v_pointer=NULL; else y_error("unimplemented void... type (?!)"); break; /* case GI_TYPE_TAG_BOOLEAN: */ /* arg->v_boolean=yarg_true(iarg); */ /* break; */ case GI_TYPE_TAG_INT8: arg->v_pointer=ygeta_gint8(iarg, &ntot, 0); break; case GI_TYPE_TAG_UINT8:{ guint8* tmp=ygeta_guint8(iarg, &ntot, 0); GY_DEBUG("Array size: %ld\n", ntot); GY_DEBUG("First value in array: %d\n", tmp[0]); GY_DEBUG("Last value in array: %d\n", tmp[ntot-1]); arg->v_pointer=malloc(ntot*sizeof(guint8)); memcpy(arg->v_pointer, tmp, ntot*sizeof(guint8)); break;} case GI_TYPE_TAG_INT16: arg->v_pointer=ygeta_gint16(iarg, &ntot, 0); break; case GI_TYPE_TAG_UINT16: arg->v_pointer=ygeta_guint16(iarg, &ntot, 0); break; case GI_TYPE_TAG_INT32: arg->v_pointer=ygeta_gint32(iarg, &ntot, 0); break; case GI_TYPE_TAG_UINT32: arg->v_pointer=ygeta_guint32(iarg, &ntot, 0); break; #if GY_HAVE_INT64 case GI_TYPE_TAG_INT64: arg->v_pointer=ygeta_gint64(iarg, &ntot, 0); break; case GI_TYPE_TAG_UINT64: arg->v_pointer=ygeta_guint64(iarg, &ntot, 0); break; #endif case GI_TYPE_TAG_FLOAT: arg->v_pointer=ygeta_f(iarg, &ntot, 0); break; case GI_TYPE_TAG_DOUBLE: arg->v_pointer=ygeta_d(iarg, &ntot, 0); break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: arg->v_pointer=ygeta_q(iarg, &ntot, 0); GY_DEBUG( "argument: %s\n", arg->v_string); break; default: y_error("Unimplemented GIArgument array type"); } GY_DEBUG("Got array pointer: %p\n", arg->v_pointer); break; default: y_error("unimplemented array type"); } g_base_info_unref(cellinfo); break;} case GI_TYPE_TAG_INTERFACE: itrf = g_type_info_get_interface(info); switch(g_base_info_get_type (itrf)) { case GI_INFO_TYPE_CALLBACK: if (yarg_nil(iarg)) arg->v_pointer=NULL; else arg->v_pointer=yget_gy_Object(iarg)->object; break; //case GI_INFO_TYPE_INTERFACE: case GI_INFO_TYPE_STRUCT: { GType g_type= g_registered_type_info_get_g_type ( (GIRegisteredTypeInfo *) itrf); if (yarg_nil(iarg)) { arg->v_pointer = NULL; break; } if (g_type_is_a (g_type, G_TYPE_VALUE)) { GValue val=G_VALUE_INIT; // should check type passed from yorick! GObject * obj = yget_gy_Object(iarg)->object; g_value_init (&val, G_TYPE_OBJECT ); g_value_set_object(&val, obj); arg->v_pointer = &val; break; } } arg->v_pointer=yget_gy_Object(iarg)->object; break; case GI_INFO_TYPE_FLAGS: case GI_INFO_TYPE_ENUM: switch (g_enum_info_get_storage_type (itrf)) { case GI_TYPE_TAG_INT32: arg->v_int32=(gint32)ygets_l(iarg); break; case GI_TYPE_TAG_UINT32: arg->v_uint32=(guint32)ygets_l(iarg); break; case GI_TYPE_TAG_INT64: arg->v_int64=ygets_l(iarg); break; default: y_errorn("Unimplemented GIArgument enum storage %ld", g_enum_info_get_storage_type (itrf)); } break; case GI_INFO_TYPE_OBJECT: if (yarg_nil(iarg)) arg->v_pointer=NULL; else arg->v_pointer=yget_gy_Object(iarg)->object; break; default: y_errorn("Unimplemented GIArgument interface type %ld", g_base_info_get_type (itrf)); } g_base_info_unref(itrf); break; case GI_TYPE_TAG_GLIST: case GI_TYPE_TAG_GSLIST: if (yarg_nil(iarg)) arg->v_pointer=NULL; else arg->v_pointer=yget_gy_Object(iarg)->object; break; default: y_errorq("Unimplemented GIArgument type: %s", g_type_tag_to_string(type)); } } void gy_Argument_pushany(GIArgument * arg, GITypeInfo * info, gy_Object* o) { GITypeTag type = g_type_info_get_tag(info); GIBaseInfo * itrf; gy_Object * outObject=NULL; GY_DEBUG("Pushing %s from Argument\n", g_type_tag_to_string(type)); // const char * nspace, * name_with_namespace, * name; switch(type) { case GI_TYPE_TAG_VOID: GY_DEBUG("Out argument is void\n") /* if (arg->v_pointer) { GY_DEBUG("Out argument is not (nil)\n"); outObject = ypush_gy_Object(); outObject -> repo= o -> repo; outObject -> object = arg -> v_pointer; if (G_IS_OBJECT(outObject -> object)) { GY_DEBUG("plut\n"); g_object_ref(outObject -> object); outObject->info = g_irepository_find_by_gtype(o -> repo, G_OBJECT_TYPE(outObject->object)); if (!outObject->info) { y_warn("unable to find object type !"); outObject -> info = info; g_base_info_ref(info); } } else { GY_DEBUG("plat\n"); outObject -> info = info; g_base_info_ref(info); GY_DEBUG("plut\n"); } } else { GY_DEBUG("Out argument is (nil)\n"); */ ypush_nil(); //} break; case GI_TYPE_TAG_BOOLEAN: ypush_long(arg->v_boolean); break; case GI_TYPE_TAG_INT8: ypush_long(arg->v_int8); break; case GI_TYPE_TAG_UINT8: ypush_long(arg->v_uint8); break; case GI_TYPE_TAG_INT16: ypush_long(arg->v_int16); break; case GI_TYPE_TAG_UINT16: ypush_long(arg->v_uint16); break; case GI_TYPE_TAG_INT32: ypush_long(arg->v_int32); break; case GI_TYPE_TAG_UINT32: ypush_long(arg->v_uint32); break; case GI_TYPE_TAG_INT64: ypush_long(arg->v_int64); break; case GI_TYPE_TAG_UINT64: ypush_long(arg->v_uint64); break; case GI_TYPE_TAG_DOUBLE: GY_DEBUG("push double... "); ypush_double(arg->v_double); GY_DEBUG("%g\n", arg->v_double); break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: *ypush_q(0) = p_strcpy(arg->v_string); break; case GI_TYPE_TAG_INTERFACE: GY_DEBUG("Out argument is interface\n"); itrf = g_type_info_get_interface(info); switch(g_base_info_get_type (itrf)) { case GI_INFO_TYPE_ENUM: case GI_INFO_TYPE_FLAGS: GY_DEBUG("Out argument is enum\n"); switch (g_enum_info_get_storage_type (itrf)) { case GI_TYPE_TAG_INT32: ypush_long(arg->v_int32); GY_DEBUG("%d\n", arg->v_int32); break; case GI_TYPE_TAG_UINT32: ypush_long(arg->v_uint32); break; case GI_TYPE_TAG_INT64: ypush_long(arg->v_int64); break; default: y_errorn("Unimplemented output GIArgument enum storage %ld", g_enum_info_get_storage_type (itrf)); } break; case GI_INFO_TYPE_INTERFACE: case GI_INFO_TYPE_STRUCT: case GI_INFO_TYPE_OBJECT: if (!arg -> v_pointer) ypush_nil(); outObject = ypush_gy_Object(); outObject -> repo= o -> repo; outObject -> object = arg -> v_pointer; if (!outObject->object) y_warn("object is NULL!"); if (g_base_info_get_type (itrf) == GI_INFO_TYPE_OBJECT) { g_object_ref(outObject -> object); if (G_IS_OBJECT(outObject -> object)) { outObject->info = g_irepository_find_by_gtype(o -> repo, G_OBJECT_TYPE(outObject->object)); if (!outObject->info) { GY_DEBUG("unable to find object type !"); //outObject -> info = info; //g_base_info_ref(info); } } else { outObject -> info = info; g_base_info_ref(info); } break; } outObject -> info = g_irepository_find_by_gtype(o -> repo, g_registered_type_info_get_g_type(itrf)); g_base_info_ref(outObject->info); break; default: y_errorn("Unimplemented output GIArgument interface type %ld", g_base_info_get_type (itrf)); } break; case GI_TYPE_TAG_GLIST: case GI_TYPE_TAG_GSLIST: outObject = ypush_gy_Object(); outObject -> repo= o -> repo; outObject -> object = arg -> v_pointer; outObject -> info = info; g_base_info_ref(info); //printf("%s\n", g_base_info_get_name(info)); break; default: y_errorq("Unimplemented output GIArgument type: %s", g_type_tag_to_string(type)); } } yorick-gy-0.0.5/gy_callback.c000066400000000000000000000236621217542510100160370ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.h" void gy_callback0(void* arg1, gy_signal_data* sd) { GY_DEBUG("in gy_callback0()\n"); const char * cmd = sd -> cmd; GISignalInfo * cbinfo = sd -> info; GIRepository * repo = sd -> repo; void * data = sd -> data; // void * udata = sd -> data; GY_DEBUG("Callback called with pointer %p: \"%s\"\n", cmd, (char*)cmd); char*buf=NULL; int ndrops=0; ypush_check(4); long idx1=0, idxud=0; if (cbinfo) { const char * var1 = "__gy_callback_var1"; const char * varud = "__gy_callback_userdata"; idx1 = yget_global(var1, 0); idxud = yget_global(varud, 0); gy_Object * o1 = ypush_gy_Object(); yput_global(idx1, 0); o1 -> object = arg1; o1 -> repo = repo; g_object_ref(o1 -> object); o1 -> info = g_irepository_find_by_gtype(o1 -> repo, G_OBJECT_TYPE(o1 -> object)); gy_Object * oud = ypush_gy_Object(); yput_global(idxud, 0); oud -> object = data; oud -> repo = repo; const char * fmt = "__gy_callback_retval = %s (%s, %s)"; char * buf=p_malloc(sizeof(char)* (strlen(fmt)+strlen(cmd)+strlen(var1)+strlen(varud))); sprintf(buf, fmt, cmd, var1, varud); cmd=buf; ndrops+=1; } long dims[2]={1,1}; *ypush_q(dims) = p_strcpy(cmd); ++ndrops; if (buf) p_free(buf); yexec_include(0,1); yarg_drop(ndrops); } inline gboolean gy_callback_retbool() { long idx=yget_global("__gy_callback_retval", 0); ypush_check(1); ypush_global(idx); long retval=0; if (yarg_number(0)) retval=ygets_l(0); yarg_drop(1); return retval; } gboolean gy_callback0_bool(void* arg1, gy_signal_data* sd) { gy_callback0(arg1, sd) ; return gy_callback_retbool(); } void gy_callback1(void* arg1, void* arg2, gy_signal_data* sd) { const char * cmd = sd -> cmd; GISignalInfo * cbinfo = sd -> info; GIRepository * repo = sd -> repo; void * data = sd -> data; //void * udata = sd -> data; GY_DEBUG("Callback called with pointer %p: \"%s\"\n", cmd, (char*)cmd); char*buf=NULL; int ndrops=0; ypush_check(4); long idx1=0, idx2=0, idxud=0; if (cbinfo) { const char * var1 = "__gy_callback_var1"; const char * var2 = "__gy_callback_var2"; const char * varud = "__gy_callback_userdata"; idx1 = yget_global(var1, 0); idx2 = yget_global(var2, 0); idxud = yget_global(varud, 0); gy_Object * o1 = ypush_gy_Object(); yput_global(idx1, 0); gy_Object * o2 = ypush_gy_Object(); yput_global(idx2, 0); o1 -> object = arg1; o1 -> repo = repo; g_object_ref(o1 -> object); o1 -> info = g_irepository_find_by_gtype(o1 -> repo, G_OBJECT_TYPE(o1 -> object)); o2 -> object = arg2; o2 -> repo = repo; gy_Object * oud = ypush_gy_Object(); yput_global(idxud, 0); oud -> object = data; oud -> repo = repo; const char * fmt = "__gy_callback_retval = %s (%s, %s, %s)"; char * buf=p_malloc(sizeof(char)* (strlen(fmt)+strlen(cmd)+strlen(var1)+strlen(var2) +strlen(varud))); sprintf(buf, fmt, cmd, var1, var2, varud); cmd=buf; ndrops+=2; } long dims[2]={1,1}; *ypush_q(dims) = p_strcpy(cmd); ++ndrops; if (buf) p_free(buf); yexec_include(0,1); yarg_drop(ndrops); } gboolean gy_callback1_bool(void* arg1, void* arg2, gy_signal_data* sd) { gy_callback1(arg1, arg2, sd) ; return gy_callback_retbool(); } void gy_callback2(void* arg1, void* arg2, void* arg3, gy_signal_data* sd) { const char * cmd = sd -> cmd; GISignalInfo * cbinfo = sd -> info; GIRepository * repo = sd -> repo; void * data = sd -> data; // void * udata = sd -> data; GY_DEBUG("Callback called with pointer %p: \"%s\"\n", cmd, (char*)cmd); char*buf=NULL; int ndrops=0; ypush_check(5); long idx1=0, idx2=0, idx3=0, idxud=0; if (cbinfo) { const char * var1 = "__gy_callback_var1"; const char * var2 = "__gy_callback_var2"; const char * var3 = "__gy_callback_var3"; const char * varud = "__gy_callback_userdata"; idx1 = yget_global(var1, 0); idx2 = yget_global(var2, 0); idx3 = yget_global(var3, 0); idxud = yget_global(varud, 0); gy_Object * o1 = ypush_gy_Object(); yput_global(idx1, 0); gy_Object * o2 = ypush_gy_Object(); yput_global(idx2, 0); gy_Object * o3 = ypush_gy_Object(); yput_global(idx3, 0); o1 -> object = arg1; o1 -> repo = repo; g_object_ref(o1 -> object); o1 -> info = g_irepository_find_by_gtype(o1 -> repo, G_OBJECT_TYPE(o1 -> object)); o2 -> object = arg2; o2 -> repo = repo; o3 -> object = arg3; o3 -> repo = repo; gy_Object * oud = ypush_gy_Object(); yput_global(idxud, 0); oud -> object = data; oud -> repo = repo; const char * fmt = "__gy_callback_retval = %s (%s, %s, %s, %s)"; char * buf=p_malloc(sizeof(char)* (strlen(fmt)+strlen(cmd) +strlen(var1)+strlen(var2)+strlen(var3) +strlen(varud))); sprintf(buf, fmt, cmd, var1, var2, var3, varud); cmd=buf; ndrops+=3; } long dims[2]={1,1}; *ypush_q(dims) = p_strcpy(cmd); ++ndrops; if (buf) p_free(buf); yexec_include(0,1); yarg_drop(ndrops); } gboolean gy_callback2_bool(void* arg1, void* arg2, void*arg3, gy_signal_data* sd) { gy_callback2(arg1, arg2, arg3, sd) ; return gy_callback_retbool(); } ///// end callbacks void __gy_signal_connect(GObject * object, GIBaseInfo * info, GIRepository * repo, const gchar* sig, const gchar * cmd, void * data); void Y_gy_signal_connect(int argc) { gy_Object * o = yget_gy_Object(argc-1); if (!o->info || !GI_IS_OBJECT_INFO(o->info) || ! o -> object ) y_error("First argument but hold GObject derivative instance"); if (!strcmp(G_OBJECT_TYPE_NAME(o->object), "GtkBuilder")) { long idx1 = yget_global("__gy_gtk_builder", 0); void* usage=yget_use(argc-1); ypush_use(usage); yput_global(idx1, 0); long dims[Y_DIMSIZE]={1,1}; *ypush_q(dims)=p_strcpy("noop, __gy_gtk_builder" ".connect_signals_full(" "__gy_gtk_builder_connector(),)"); yexec_include(0, 1); ypush_nil(); return; } ystring_t sig = ygets_q(argc-2); ystring_t cmd = NULL; if (yarg_string(argc-3)) cmd = p_strcpy(ygets_q(argc-3)); else if (yarg_func(argc-3)) { cmd = p_strcpy(yfind_name(yget_ref(argc-3))); } else y_error("callback must be string or function"); void* data; if (argc>=4) data = yget_gy_Object(argc-4)->object; __gy_signal_connect(o->object, o->info, o->repo, sig, cmd, data); ypush_nil(); } void __gy_signal_connect(GObject * object, GIBaseInfo * info, GIRepository * repo, const gchar * sig, const gchar * cmd, void * data) { GIBaseInfo * cur, *next; GISignalInfo * cbinfo=NULL; gint i, n; cur = info; g_base_info_ref(cur); while (!cbinfo && cur) { GY_DEBUG("%s\n", g_base_info_get_name(cur) ); n= g_object_info_get_n_signals(cur); for (i=0; i info = cbinfo; sd -> cmd = cmd; sd -> repo = repo; sd -> data = data; GCallback * voidcallbacks[]={(GCallback*)(&gy_callback0), (GCallback*)(&gy_callback1), (GCallback*)(&gy_callback2)}; GCallback * gbooleancallbacks[]={(GCallback*)(&gy_callback0_bool), (GCallback*)(&gy_callback1_bool), (GCallback*)(&gy_callback2_bool)}; GCallback * * callbacks=NULL; gint nargs = g_callable_info_get_n_args (cbinfo); GY_DEBUG("Callback takes %d arguments\n", nargs); GITypeInfo * retinfo = g_callable_info_get_return_type (cbinfo); GITypeTag rettag = g_type_info_get_tag(retinfo); g_base_info_unref(retinfo); switch(rettag) { case GI_TYPE_TAG_VOID: callbacks=voidcallbacks; break; case GI_TYPE_TAG_BOOLEAN: callbacks=gbooleancallbacks; break; default: y_errorq("unimplemented output type for callback: %", g_type_tag_to_string (rettag)); } if (nargs>2) y_errorn("unimplemented: callback with %ld arguments", nargs); GY_DEBUG("Callback address: %p\n", callbacks[nargs]); g_signal_connect (object, sig, G_CALLBACK(callbacks[nargs]), sd); } void gyGtkBuilderConnectFunc(void *builder, GObject *object, const gchar *signal_name, const gchar *handler_name, GObject *connect_object, GConnectFlags flags, gpointer user_data) { // builder is a GtkBuilder but we don't want to use gtk headers GIObjectInfo * info = g_irepository_find_by_gtype(NULL, // should use repo G_OBJECT_TYPE(object)); GY_DEBUG("autoconnecting %s to %s\n", signal_name, handler_name); // ! we may leak memory __gy_signal_connect(object, info, NULL, signal_name, p_strcpy(handler_name), user_data); g_base_info_unref(info); } void Y___gy_gtk_builder_connector(int argc) { ypush_gy_Object()->object = (void*)&gyGtkBuilderConnectFunc; } yorick-gy-0.0.5/gy_gtk.i000066400000000000000000001257051217542510100150770ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.i" local gy_gtk_i; /* DOCUMENT #include "gy_gtk.i" gy is a Yorick plug-in around GObject-introspection. It can notably be used to create Gtk GUIs from within Yorick. gy_gtk.i is based on gy.i and adds convenience functions such as standard event handlers for writing Gtk based graphical user interfaces (GUI). PROVIDED APPLICATIONS gy_gtk comes with a few sample GUI utilities: - gyterm is a command line in a Gtk window. It is useful for keeping a Yorick command line while another GUI is running. - gycmap is a wrapper around cmap. - gywindow is a wrapper for Yorick windows (work in progress). - gyhelloworld is a trivial example. gyterm and gywindow can be easily embedded in custom applications (indeed, gyterm *is* embedded in both gycmap and gywindow). See gy_gtk_ycmd and gy_gtk_ywindow. SIDE EFFECTS: #include "gy_gtk.i" has the following side effect: - the users locale is set, excluding LC_NUMERIC, using gy_setlocale. - mouse() is replaced by gy_gtk_mouse(). Whenever a GUI is running: - gy_gtk_idler() runs repeatedly using adter(). Some functions (such as mouse()) cannot run as long as this loop is running. - after_error is set to a function which redirects errors to a dialog and makes some clean-up. See gy_gtk_main(). EXAMPLE: The gy source code comes with a few example scripts. Here comes a basic, commented helloworld: // Create widget hierarchy win = Gtk.Window(); button = Gtk.Button(label="Hello World!"); noop, win.add(button); // Write a callback func hello(widget, event, data) { "Hello World!"; } // Connect callback to button event gy_signal_connect, button, "clicked", hello; // Show window gy_gtk_main, win, on_delete=1; SEE ALSO: gy_i, gyterm, gycmap, gywindow, gy_gtk_main and the C documentation for the Gtk+ 3 API. */ extern Gtk, Gdk, GLib, GdkPixbuf; /* DOCUMENT Gtk, Gdk, GdkPixbuf, GLib gy namespaces. SEE ALSO: gy_gtk_i */ Gtk = gy.require("Gtk", "3.0"); Gdk = gy.Gdk; GLib = gy.GLib; GdkPixbuf = gy.GdkPixbuf; func __gyterm_init { require, "string.i"; extern __gyterm_initialized, __gyterm_win; __gyterm_win = Gtk.Window.new(Gtk.WindowType.toplevel); noop, __gyterm_win.set_title("Yorick command line"); entry = gy_gtk_ycmd(1); noop, __gyterm_win.add(entry); noop, entry.set_width_chars(80); __gyterm_initialized=1; } if (is_void(__gyterm_history_size)) __gyterm_history_size=100; __gyterm_history=array(string, __gyterm_history_size); __gyterm_idx=__gyterm_cur=1; __gyterm_max=0; func __gyterm_key_pressed(widget, event, udata) { extern __gyterm_history, __gyterm_cur, __gyterm_max, __gyterm_idx; ev = Gdk.EventKey(event); ev, keyval, keyval; if (keyval==Gdk.KEY_Up) { if (__gyterm_idx==__gyterm_cur) { __gyterm_history(__gyterm_cur)=widget.get_text(); if (__gyterm_max<__gyterm_cur) __gyterm_max=__gyterm_cur; } __gyterm_idx=(__gyterm_idx==1)?__gyterm_max:__gyterm_idx-1; noop, widget.set_text(__gyterm_history(__gyterm_idx)); noop, Gtk.Editable(widget).set_position(-1); return 1; } if (keyval==Gdk.KEY_Down) { __gyterm_idx=(__gyterm_idx==__gyterm_max)?1:__gyterm_idx+1; noop, widget.set_text(__gyterm_history(__gyterm_idx)); noop, Gtk.Editable(widget).set_position(-1); return 1; } if (keyval==Gdk.KEY_Return) { cmd=widget.get_text(); noop, widget.set_text(""); __gyterm_history(__gyterm_cur)=cmd; __gyterm_cur=(__gyterm_curYorick command"); noop, exp.add(entry); noop, exp.set_use_markup(1); noop, exp.set_resize_toplevel(1); noop, exp.set_vexpand(0); return exp; } func gy_gtk_ycmd_connect(widget) { /* DOCUMENT gy_gtk_ycmd_connect, entry_widget Makes entry_widget mimick gyterm behavior. EXAMPLE entry=Gtk.Entry.new(); gy_gtk_ycmd_connect, entry; SEE ALSO: gy_i, gyterm, gy_gtk_main */ gy_signal_connect, widget, "key-press-event", __gyterm_key_pressed; noop, widget.set_placeholder_text("Yorick command"); noop, widget.set_tooltip_text("Yorick command"); } func gy_gtk_hide_on_delete(wdg, evt, udata) /* DOCUMENT gy_gtk_destroy_on_delete, window, [evt, data] If evt is void, set-up gy_gtk_hide_on_delete as a callback for the "delete-event" Gtk Window event. If evt is not void, act as a callback: hide the window. In addition, stops the event loop if there are no visible windows remaining. SEE ALSO: gy_gtk_destroy_on_delete, gy_gtk_idler_maybe_stop, gy_gtk_main, gy_gtk_i */ { if (is_void(evt)) gy_signal_connect, wdg, "delete-event", gy_gtk_hide_on_delete; noop, wdg.hide(); gy_gtk_idler_maybe_stop; return 1; } func gy_gtk_suspend (wdg, evt, udata) /* DOCUMENT deprecated: gy_gtk_suspend, wdg This was used when gy_gtk_main used to call gy.Gtk.main(). SEE ALSO: gy_gtk_hide_on_delete, gy_gtk_destroy_on_delete */ { extern __gy_gtk_suspend_warned; if (!__gy_gtk_suspend_warned) { __gy_gtk_suspend_warned=1; write, "WARNING: gy_gtk_suspend is deprecated, please upgrade to the new API\n"; } if (is_void(evt)) evt=1; return gy_gtk_hide_on_delete(wdg, evt, udata); } func gy_gtk_destroy_on_delete(wdg, evt, udata) /* DOCUMENT gy_gtk_destroy_on_delete, window, [evt, data] If evt is void, set-up gy_gtk_destroy_on_delete as a callback for the "delete-event" Gtk Window event. If evt is not void, act as a callback: destroy the window. In addition, stops the event loop if there are no visible windows remaining. SEE ALSO: gy_gtk_hide_on_delete, gy_gtk_idler_maybe_stop, gy_gtk_main, gy_gtk_i */ { if (is_void(evt)) gy_signal_connect, wdg, "delete-event", gy_gtk_destroy_on_delete; noop, wdg.destroy(); gy_gtk_idler_maybe_stop; return 1; } func gy_gtk_idler_maybe_stop /* DOCUMENT gy_gtk_idler_maybe_stop Stop the event handler if there remains no window visible. This should always be called in your delete-event handler. SEE ALSO: gy_gtk_main, gy_gtk_hide_on_delete, gy_gtk_destroy_on_delete */ { extern after_error; gy_gtk_idler; // perform pending actions such as hiding a window! tlvs = Gtk.Window.list_toplevels(); res = 0; if (tlvs.size) { for (;!is_void(tlvs);tlvs=tlvs.next) res |= tlvs.data.visible(); } if (!res) { after_error=[]; gy_gtk_idler, 0; } } func gy_gtk_main(win, on_delete=) /* DOCUMENT gy_gtk_main, win, on_delete=CALLBACK; Show Gtk.Window win and set-up gy_gtk.i event loop: 1. Set-up after_error handler, 2. Optionally connect delete-event callback, 3. Show win; 4. Launch event handler loop. It is (probably) best to stop the event loop when no windows are visible. To achieve this, the delete-event callback of any window (and any other callback which hides or detroys a window) should call gy_gtk_idler_maybe_stop. KEYWORDS: on_delete: the name (string) of a Yorick function suitable as a delete-event handler: func on_delete(widget, event, data) { // hide or destroy gy_gtk_idler_maybe_stop; return 1; } on_delete=1 is a short-hand for on_delete="gy_gtk_hide_on_delete"; on_delete=2 is a short-hand for on_delete="gy_gtk_destroy_on_delete"; SEE ALSO: gy_gtk_i, gy_gtk_hide_on_delete, gy_gtk_destroy_on_delete */ { extern after_error; after_error=__gy_gtk_on_error; if (!is_void(win)) { if (is_numerical(on_delete)) { if (on_delete==0) on_delete=[]; else if (on_delete==1) on_delete="gy_gtk_hide_on_delete"; else if (on_delete==2) on_delete="gy_gtk_destroy_on_delete"; } if (!is_void(on_delete)) gy_signal_connect, win, "delete-event", on_delete; noop, win.show_all(); } gy_gtk_idler,1; } func gyterm(cmd) /* DOCUMENT gyterm Open a window containing a single line in which arbitrary Yorick commands can be typed. If you want to embed gyterm in another GUI, see gy_gtk_ycmd and gy_gtk_ycmd_connect. SEE ALSO: gy_i, gy_gtk_ycmd, gy_gtk_ycmd_connect, gycmap, gywindow */ { extern __gyterm_initialized, __gyterm_win; local on_delete; if (!__gyterm_initialized) { __gyterm_init; on_delete=1; } gy_gtk_main, __gyterm_win, on_delete=on_delete; } /// gycmap: a GUI for cmap func __gycmap_init(void) { require, "pathfun.i"; extern __gycmap_initialized, __gycmap_builder, __gycmap_win, __gycmap_ebox, __gycmap_gist_img, __gycmap_msh_img, __gycmap_mpl_img, __gycmap_cmd, __gycmap_gpl_img, __gycmap_gmt_img, __gycmap_cur_img, __gycmap_div_img, __gycmap_seq_img, __gycmap_qual_img, __gycmap_cur_names, __gycmap_gist_names; gist_png = find_in_path("gist-cmap.png", takefirst=1, path=pathform(_(get_cwd(), _(Y_SITES, Y_SITE)+"data/"))); png_dir=dirname(gist_png); glade = find_in_path("gycmap.xml", takefirst=1, path=pathform(_(get_cwd(), _(Y_SITES, Y_SITE)+"glade/"))); __gycmap_gist_img = Gtk.Image.new(); noop, __gycmap_gist_img.set_from_file(gist_png); __gycmap_gist_names= ["gray", "yarg", "heat", "earth", "stern", "rainbow", "ncar"]; __gycmap_msh_img = Gtk.Image.new(); noop, __gycmap_msh_img.set_from_file(png_dir+"/msh-cmap.png"); __gycmap_mpl_img = Gtk.Image.new(); noop, __gycmap_mpl_img.set_from_file(png_dir+"/mpl-cmap.png"); __gycmap_gpl_img = Gtk.Image.new(); noop, __gycmap_gpl_img.set_from_file(png_dir+"/gpl-cmap.png"); __gycmap_gmt_img = Gtk.Image.new(); noop, __gycmap_gmt_img.set_from_file(png_dir+"/gmt-cmap.png"); __gycmap_div_img = Gtk.Image.new(); noop, __gycmap_div_img.set_from_file(png_dir+"/cbc-div-cmap.png"); __gycmap_seq_img = Gtk.Image.new(); noop, __gycmap_seq_img.set_from_file(png_dir+"/cbc-seq-cmap.png"); __gycmap_qual_img = Gtk.Image.new(); noop, __gycmap_qual_img.set_from_file(png_dir+"/cb-qual-cmap.png"); __gycmap_builder = Gtk.Builder.new(); noop, __gycmap_builder.add_from_file(glade); __gycmap_win = __gycmap_builder.get_object("window1"); __gycmap_ebox = __gycmap_builder.get_object("eventbox"); noop, __gycmap_ebox.add(__gycmap_gist_img); __gycmap_cur_img = __gycmap_gist_img; __gycmap_cur_names = __gycmap_gist_names; __gycmap_cmd=gistct; combo=__gycmap_builder.get_object("combobox"); noop, combo.set_active_id("gist"); if (__gycmap_old_yorick) noop, combo.set_sensitive(0); else gy_signal_connect, combo, "changed", __gycmap_combo_changed; gy_signal_connect, __gycmap_ebox, "button-press-event", __gycmap_callback; noop, __gycmap_win.set_title("Yorick color table chooser"); noop, __gycmap_builder.get_object("box1").add(gy_gtk_ycmd()); // gy_gtk_window_hide_on_delete, __gycmap_win; __gycmap_initialized=1; } func __gycmap_gistct(name) { palette, name+".gp"; } if (!is_func(gistct)) { __gycmap_old_yorick=1; gistct=__gycmap_gistct; } func __gycmap_callback(widget, event, udata) { extern __gycmap_cur_names; ev = Gdk.EventButton(event); ev, x, x, y, y; name= __gycmap_cur_names(long(y/19)+1); if (is_void(__gycmap.callback)) __gycmap_cmd, __gycmap_cur_names(long(y/19)+1); else noop, __gycmap.callback(__gycmap_cmd, name); } func __gycmap_combo_changed(widget, event, udata) { extern __gycmap_cur_img, __gycmap_cur_names, __gycmap_cmd; lst = widget.get_active_id(); noop, __gycmap_ebox.remove(__gycmap_cur_img); if (lst == "gist") { __gycmap_cur_img=__gycmap_gist_img; __gycmap_cur_names=__gycmap_gist_names; __gycmap_cmd=gistct; } else if (lst == "msh") { __gycmap_cur_img=__gycmap_msh_img; __gycmap_cur_names= ["coolwarm", "blutan", "ornpur", "grnred", "purple", "blue", "green", "red", "brown"]; __gycmap_cmd=mshct; } else if (lst == "mpl") { __gycmap_cur_img=__gycmap_mpl_img; __gycmap_cur_names= ["binary", "gray", "bone", "pink", "copper", "winter", "spring", "summer", "autumn", "hot", "afmhot", "coolwarm", "cool", "rainbow", "terrain", "jet", "spectral", "hsv", "flag", "prism", "seismic", "bwr", "brg"]; __gycmap_cmd=mplct; } else if (lst == "gmt") { __gycmap_cur_img=__gycmap_gmt_img; __gycmap_cur_names= ["cool", "copper", "cyclic", "drywet", "gebco", "globe", "gray", "haxby", "hot", "jet", "nighttime", "no_green", "ocean", "paired", "panoply", "polar", "rainbow", "red2green", "relief", "sealand", "seis", "split", "topo", "wysiwyg"]; __gycmap_cmd=gmtct; } else if (lst == "gpl") { __gycmap_cur_img=__gycmap_gpl_img; __gycmap_cur_names= ["ocean", "gnu_hot", "gnuplot", "gnuplot2", "gnuplot3", "gnuplot4", "gnuplot5"]; __gycmap_cmd=cmap; } else if (lst == "cb-seq") { __gycmap_cur_img=__gycmap_seq_img; __gycmap_cur_names= ["Greys", "Purples", "Blues", "Greens", "Oranges", "Reds", "PuBu", "PuBuGn", "PuRd", "BuGn", "BuPu", "GnBu", "YlGn", "YlGnBu", "YlOrBr", "YlOrRd", "OrRd", "RdPu"]; __gycmap_cmd=cmap; } else if (lst == "cb-div") { __gycmap_cur_img=__gycmap_div_img; __gycmap_cur_names= ["BrBG", "PRGn", "PiYG", "PuOr", "RdBu", "RdGy", "RdYlBu", "RdYlGn", "Spectral"]; __gycmap_cmd=cmap; } else if (lst == "cb-qual") { __gycmap_cur_img=__gycmap_qual_img; __gycmap_cur_names= ["Set1", "Pastel1", "Dark2", "Set2", "Pastel2", "Set3", "Paired", "Accent"]; __gycmap_cmd=cmap; } else error, "unrecognized colormap kind"; noop, __gycmap_ebox.add(__gycmap_cur_img); noop, __gycmap_cur_img.show(); } __gycmap=save(); func gycmap(callback) /* DOCUMENT gycmap or gycmap, callback A graphical wrapper around the cmap family of functions, gycmap allows the user to interactively select a color table by viewing sample colorbars and clicking on the bar of her choice. If an image is displayed in the current Yorick graphic window, the new colormap is applied immediately. cmap_test can be used for displaying a test image. If CALLBACK is specified, it is called as: callback, fonction, colormap; each time a new colormap is selected instead of simply setting the color map. gycmap requires a recent version of Yorick (from git, as of 2013-04). SEE ALSO: cmap, cmap_test */ { extern __gycmap_initialized, __gycmap_builder, __gycmap_win, __gycmap_ebox, __gycmap; local on_delete; save, __gycmap, callback; if (!__gycmap_initialized) { __gycmap_init; on_delete=1; } gy_gtk_main, __gycmap_win, on_delete=on_delete; } //// gywindow: a yorick window wrapper func __gywindow_on_error { extern __gywindow_device; __gywindow_ungrab; } func gy_gtk_allowgrab(allow) /* DOCUMENT gy_gtk_allowgrab, mode mode = 0: forbid grabbing the mouse. mose = 1: allow grabbing. SEE ALSO: gywindow */ { extern __gy_gtk_allowgrab; __gy_gtk_allowgrab=allow; if (!allow) __gywindow_ungrab; } gy_gtk_allowgrab, 1; func gywinkill(yid) /* DOCUMENT gywinkill, yid Forget all about gywindow YID. SEE ALSO gywindow */ { extern __gywindow; tmp = save(); n = __gywindow(*); for (i=1; i<=n; ++i) { if (__gywindow( (nothing=i) ).yid==yid) { winkill, yid; gy_gtk_destroy, __gywindow( (nothing=i) ).win; } else save, tmp, "", __gywindow( (nothing=i) ); } __gywindow = tmp; } func gy_gtk_ywindow_reinit(yid, dpi=, style=) /* DOCUMENT gy_gtk_ywindow_reinit, yid RE-initialize Yorick window YID attached to a gy widget, for instance to change DPI or STYLE. KEYWORDS: dpi, style. SEE ALSO: gy_i, gywindow, gy_gtk_ywindow */ { cur = __gywindow_find_by_yid(yid); if (!is_void(dpi)) { if (dpi==0) dpi=75; save, cur, dpi; } if (!is_void(style)) { if (style==0) style="work.gs"; save, cur, style; } winkill, cur.yid; window, cur.yid, parent=cur.xid, ypos=-24, dpi=cur.dpi, width=long(8.5*cur.dpi), height=long(11*cur.dpi), style=cur.style; noop, cur.da.set_size_request(long(8.5*dpi),long(11*dpi)); } func __gywindow_event_handler(widget, event, udata) { extern __gywindow, __gywindow_xs0, __gywindow_ys0, __gywindow_device; local curwin, win; cur = __gywindow_find_by_xid(gy_gtk_xid(widget)); if (is_void(cur)) return; EventType=Gdk.EventType; ev = Gdk.EventAny(event); type = ev.type; if (type == EventType.map && !cur.realized) { window, cur.yid, parent=gy_gtk_xid(widget), ypos=-24, dpi=cur.dpi, width=long(8.5*cur.dpi), height=long(11*cur.dpi), style=cur.style; save, cur, realized=1; sw = widget.get_parent().get_parent(); hadjustment = sw.get_hadjustment(); vadjustment = sw.get_vadjustment(); save, cur, sw, hadjustment, vadjustment; xcenter = long(4.25*cur.dpi); noop, cur.hadjustment.set_value(xcenter-cur.hadjustment.get_page_size()/2); noop, cur.vadjustment.set_value(xcenter-cur.vadjustment.get_page_size()/2); if (cur.on_realize) cur.on_realize; return; } if (!cur.realized) return; if (type == EventType.configure) { xcenter = long(4.25*cur.dpi); noop, cur.sw.set_size_request(-1,-1); noop, cur.hadjustment.set_value(xcenter-cur.hadjustment.get_page_size()/2); noop, cur.vadjustment.set_value(xcenter-cur.vadjustment.get_page_size()/2); if (cur.on_configure) cur.on_configure; return; } if (!cur.grab) return; pix2ndc=72.27/cur.dpi*0.0013; if (type == EventType.enter_notify && __gy_gtk_allowgrab) { __gywindow_device = Gdk.Device(Gtk.get_current_event_device()); noop, Gtk.Widget(widget)(window, win); noop, __gywindow_device.grab(win, Gdk.GrabOwnership.none, 1, Gdk.EventMask.all_events_mask, , Gdk.CURRENT_TIME); return; } if (type == EventType.leave_notify && Gdk.EventCrossing(ev).mode != Gdk.CrossingMode.grab) { __gywindow_ungrab; return; } if (type == EventType.button_release || type == EventType.button_press || type == EventType.motion_notify) { curwin = current_window(); window, cur.yid; ev = Gdk.EventButton(ev); ev, x, x, y, y, button, button, state, state; shft = state & Gdk.ModifierType.shift_mask; meta = state & Gdk.ModifierType.mod1_mask; if (shft && !meta && button==1) button=2; if (meta && !shft && button==1) button=3; xndc=pix2ndc*(x-2); yndc=11.*72.27*0.0013-pix2ndc*(y-1); vp = viewport(); lm = limits(); flags=long(lm(5)); xlog = flags & 128; ylog = flags & 256; if (xndc < vp(1)) xs = lm(1); else if (xndc>vp(2)) xs=lm(2); else { if (xlog) xs = lm(1) * (lm(2)/lm(1))^((xndc-vp(1))/(vp(2)-vp(1))); else xs = lm(1)+(xndc-vp(1))*(lm(2)-lm(1))/(vp(2)-vp(1)); } if (yndc < vp(3)) ys = lm(3); else if (yndc>vp(4)) ys=lm(4); else { if (xlog) ys = lm(3) * (lm(4)/lm(3))^((yndc-vp(3))/(vp(4)-vp(3))); else ys = lm(3)+(yndc-vp(3))*(lm(4)-lm(3))/(vp(4)-vp(3)); } } if (type == EventType.button_press) { __gywindow_xs0=xs; __gywindow_ys0=ys; } if (type == EventType.button_release) { lm = limits(); flags=long(lm(5)); if (is_func(cur.mouse_handler)) { noop, cur.mouse_handler(cur.yid, __gywindow_xs0, __gywindow_ys0, xs, ys, button, flags); if (!is_void(curwin) && curwin>=0) window, curwin; return; } lm2=lm; fact=1.; if (button==1) fact=2./3.; else if (button==3) fact=1.5; xlog = flags & 128; ylog = flags & 256; if (noneof(__gywindow_xs0 == lm(1:2))) { if (xlog) { lm2(1:2)=__gywindow_xs0 / (xs/lm(1:2))^fact; } else { lm2(1:2)=__gywindow_xs0 - (xs-lm(1:2))*fact; } limits, lm2(1), lm2(2); } if (noneof(__gywindow_ys0 == lm(3:4))) { if (ylog) { lm2(3:4)=__gywindow_ys0 / (ys/lm(3:4))^fact; } else { lm2(3:4)=__gywindow_ys0 - (ys-lm(3:4))*fact; } range, lm2(3), lm2(4); } } if (!is_void(curwin) && curwin>=0) window, curwin; if (type == EventType.motion_notify) { if (xcur.hadjustment.get_value()+cur.hadjustment.get_page_size() || y>cur.vadjustment.get_value()+cur.vadjustment.get_page_size()) { __gywindow_ungrab; return; } noop, cur.slabel.set_text("?"); noop, cur.xlabel.set_text(swrite(xs)); noop, cur.ylabel.set_text(swrite(ys)); return; } //write, format="in __gywindow_realized. event: %d\n", type; } /// ywindows if (is_void(__gywindow)) __gywindow=save(); func gy_gtk_ywindow_connect(&yid, win, da, slabel, xlabel, ylabel, dpi=, style=, on_realize=, on_configure=, grab=) /* DOCUMENT gy_gtk_ywindow_connect, yid, win, da, slabel, xlabel, ylabel Connect widgets to embed a Yorick window in a Gtk DrawingArea (see gywindow for a trivial example). For a lower level function, see gy_gtk_ywindow. If YID is nil, a new ID is taken and YID is set to this value. ARGUMENTS yid: Yorick window ID to embed win: the toplevel Gtk.Window widget da: the Gtk.DrawingArea in which the yorick window will be embedded. s|x|ylabel: Gtk.Label widgets in which to report mouse motion. KEYWORDS on_realize: function to call when the window is realized on_configure: function to call whenever the function is configured (i.e. resized) grab: 1 if window should grab the mouse, necessary to use gy_gtk_ywindow_mouse_handler, otherwise discouraged SEE ALSO: gy_i, gywindow, gy_gtk_ywindow, gy_gtk_ywindow_mouse_handler */ { extern __gywindow; if (is_void(yid)) yid=gy_gtk_ywindow_free_id(-1); if (is_void(yid)) error, "unable to find free id"; if (is_void(dpi)) dpi=75; gy_signal_connect, da, "event", __gywindow_event_handler; save, __gywindow, "", save(yid, xid=[], win, da, slabel, xlabel, ylabel, realized=0, dpi, style, mouse_handler=[], on_realize, on_configure, grab); } func gy_gtk_ywindow_mouse_handler(yid, handler) /* DOCUMENT gy_gtk_ywindow_mouse_handler, yid, handler Attach application-specific mouse event handler Yorick window created with gy_gtk_ywindow (this includes gywindow windows). The handler will be passed only press-release events and allows similar actions to what mouse() provides for regular Yorick windows. ARGUMENTS: yid: the Yorick window ID number, first argument of gy_gtk_window. handler: Yorick function with prototype func mouse_toto(yid, x0, y0, x1, y1, button, flags); where x0, y0, x1 and y1 are the window coordinates of the button press and release events, button is the button which was pressed, flags is limits()(5). SEE ALSO: gy_i, gy_gtk_ywindow, gywindow, mouse, limits */ { save, __gywindow_find_by_yid(yid), mouse_handler=handler, grab=1; } func gy_gtk_ywindow(&yid, dpi=, width=, height=, style=, on_realize=, on_configure=, grab=) /* DOCUMENT widget = gy_gtk_ywindow(yid) Initialize a Gtk widget embedding Yorick window number YID. The widget is scrollable and provides mouse position reading and zoom/pan capabilities. The widget is connected using gy_gtk_ywindow_connect. If YID is nil, a new ID is taken and YID is set to this value. KEYWORDS: dpi, width, height, style: see window on_realize, on_configure, grab: see gy_gtk_window_connect SEE ALSO: gy_i, gywindow, window, gy_gtk_ywindow_connect */ { extern __gywindow; if (is_void(dpi)) dpi=75; //if (is_void(width)) width=long(6*dpi); //if (is_void(height)) height=long(6*dpi); if (is_void(yid)) yid=gy_gtk_ywindow_free_id(-1); if (is_void(yid)) error, "unable to find free id"; box = Gtk.Box.new(Gtk.Orientation.vertical, 0); box2=Gtk.Box.new(Gtk.Orientation.horizontal, 0); noop, box.pack_start(box2, 0,0,0); noop, box2.pack_start(Gtk.Label(label="System: "),0,0,0); slabel=Gtk.Label(label="0", max_width_chars=1, width_chars=1); noop, box2.pack_start(slabel, 0, 0, 0); noop, box2.pack_start(Gtk.Label(label="( "),0,0,0); xlabel=Gtk.Label(label="", max_width_chars=15, width_chars=15); noop, box2.pack_start(xlabel, 0, 0, 0); noop, box2.pack_start(Gtk.Label(label=", "),0,0,0); ylabel=Gtk.Label(label="", max_width_chars=15, width_chars=15); noop, box2.pack_start(ylabel, 0, 0, 0); noop, box2.pack_start(Gtk.Label(label=")"),0,0,0); sw = Gtk.ScrolledWindow.new(,); if (!is_void(width) && !is_void(height)) noop, sw.set_size_request(width,height); noop, box.pack_start(sw, 1, 1, 0); tmp = Gtk.Viewport.new(,); noop, sw.add(tmp); da = Gtk.DrawingArea.new(); noop, da.add_events(Gdk.EventMask.all_events_mask); noop, da.set_size_request(long(8.5*dpi),long(11*dpi)); noop, tmp.add(da); gy_gtk_ywindow_connect, yid, win, da, slabel, xlabel, ylabel, dpi=dpi, style=style, on_realize=on_realize, on_configure=on_configure, grab=grab; return box; } func __gywindow_cmap(wdg, data) { gycmap; return 1; } func __gywindow_save(wdg, data) { require, "pathfun.i"; extern result; win = Gtk.FileChooserDialog(); fcfc = Gtk.FileChooser(win); noop, fcfc.set_action(Gtk.FileChooserAction.save); noop, fcfc.set_do_overwrite_confirmation(1); noop, fcfc.set_create_folders(1); noop, win.add_button(Gtk.STOCK_SAVE, Gtk.ResponseType.ok); noop, win.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.cancel); filter = Gtk.FileFilter(); noop, filter.add_pattern("*.[pP][dD][fF]"); noop, filter.add_pattern("*.[eE][pP][sS]"); noop, filter.add_pattern("*.[jJ][pP][eE][gG]"); noop, filter.add_pattern("*.[jJ][pP][gG]"); noop, filter.add_pattern("*.[jJ][fF][iI][fF]"); noop, filter.add_pattern("*.[pP][nN][gG]"); noop, filter.set_name("All supported files"); noop, fcfc.add_filter(filter); filter = Gtk.FileFilter(); noop, filter.add_pattern("*.[pP][dD][fF]"); noop, filter.set_name("PDF documents"); noop, fcfc.add_filter(filter); filter = Gtk.FileFilter(); noop, filter.add_pattern("*.[eE][pP][sS]"); noop, filter.set_name("EPS documents"); noop, fcfc.add_filter(filter); filter = Gtk.FileFilter(); noop, filter.add_pattern("*.[jJ][pP][eE][gG]"); noop, filter.add_pattern("*.[jJ][pP][gG]"); noop, filter.add_pattern("*.[jJ][fF][iI][fF]"); noop, filter.set_name("JPEG images"); noop, fcfc.add_filter(filter); filter = Gtk.FileFilter(); noop, filter.add_pattern("*.[pP][nN][gG]"); noop, filter.set_name("PNG images"); noop, fcfc.add_filter(filter); filter = Gtk.FileFilter(); noop, filter.add_pattern("*"); noop, filter.set_name("All files"); noop, fcfc.add_filter(filter); noop, win.show_all(); result = win.run(); fname=fcfc.get_filename(); noop, win.hide(); noop, win.destroy(); if (result != Gtk.ResponseType.ok || fname == string(0) ) return 1; yid = __gywindow_find_by_xid(gy_gtk_xid(data)).yid; bname=basename(fname); ext=pathsplit(bname,delim="."); if (numberof(ext)==1) { gyerror, "Export failed: no extension in file name."; return 1; } format=ext(0); if (anyof(format==["JPEG","jpeg","jpg","jfif"])) fformat="jpeg"; else if (anyof(format==["PNG","png"])) fformat="png"; else if (anyof(format==["EPS","eps"])) fformat="eps"; else if (anyof(format==["PDF","pdf"])) fformat="pdf"; else { gyerror, "Could not recognize extension \"" + format +"\"."; return 1; } symb=symbol_def(fformat); if (!is_func(symb)) { gyerror, "This Yorick lacks the function \"" + fformat + "\"."; return 1; } if (catch(-1)) {gyerror, catch_message; return 1;} prev = current_window(); window, yid; symb, fname; window, prev; return 1; } func __gywindow_init(&yid, dpi=, width=, height=, style=, on_realize=, on_configure=, grab=) { extern __gywindow, adj; if (is_void(yid)) yid=gy_gtk_ywindow_free_id(-1); if (is_void(yid)) error, "unable to find free id"; win = Gtk.Window.new(Gtk.WindowType.toplevel); noop, win.set_default_size(450, 488); noop, win.set_title("Yorick "+pr1(yid)); box=Gtk.Box.new(Gtk.Orientation.vertical, 0); noop, win.add(box); noop, box.pack_start(gy_gtk_ywindow (yid, dpi=dpi, width=width, height=height, style=style, on_realize=on_realize, on_configure=on_configure, grab=grab), 1, 1, 0); cur = __gywindow_find_by_yid(yid); tb = Gtk.Toolbar.new(); tbox=Gtk.Box.new(Gtk.Orientation.vertical, 0); exp = Gtk.Expander.new("Tools"); noop, exp.add(tbox); noop, exp.set_use_markup(1); noop, exp.set_resize_toplevel(1); noop, box.pack_start(exp, 0,0,0); noop, tbox.pack_start(gy_gtk_ycmd(1), 0, 0, 0); noop, tbox.pack_start(tb, 0, 0, 0); cb = Gtk.ComboBoxText.new(); noop, cb.insert(-1, "0.5625", "9:16"); noop, cb.insert(-1, "0.6180339887498947915", "2:(1+√5)"); noop, cb.insert(-1, "0.625", "10:16"); noop, cb.insert(-1, "0.75", "3:4"); noop, cb.insert(-1, "1", "1:1"); noop, cb.insert(-1, "1.33333333333333333", "4:3"); noop, cb.insert(-1, "1.6", "16:10"); noop, cb.insert(-1, "1.6180339887498949025", "(1+√5):2"); noop, cb.insert(-1, "1.77777777777777777", "16:9"); noop, cb.get_child().set_size_request(2, -1); noop, cb.set_tooltip_text("Aspect ratio"); gy_signal_connect, cb, "changed", __gywindow_ratio, cur.da; item = Gtk.ToolItem.new(); noop, item.add(cb); noop, tb.insert(item, -1); cb = Gtk.ComboBoxText.new(); noop, cb.insert(-1, "50", "50 dpi"); noop, cb.insert(-1, "75", "75 dpi"); noop, cb.insert(-1, "100", "100 dpi"); noop, cb.insert(-1, "150", "150 dpi"); noop, cb.get_child().set_size_request(2, -1); noop, cb.set_tooltip_text("Resolution (dots per inch)"); gy_signal_connect, cb, "changed", __gywindow_dpi, cur.da; item = Gtk.ToolItem.new(); noop, item.add(cb); noop, tb.insert(item, -1); cb = Gtk.ComboBoxText.new(); path = pathsplit(GISTPATH); for (i=1; i<=numberof(path); ++i) { dir=path(i); files=lsdir(dir); if (is_string(files)) { ind=where(strglob( "*.gs", files)); if (!numberof(ind)) continue; files=files(ind); for (j=1; j<=numberof(files); ++j) { noop, cb.insert(-1, files(j), strpart(files(j), :-3)); } } } noop, cb.set_tooltip_text("Plot style"); gy_signal_connect, cb, "changed", __gywindow_style, cur.da; item = Gtk.ToolItem.new(); noop, item.add(cb); noop, tb.insert(item, -1); but = Gtk.ToolButton.new_from_stock(Gtk.STOCK_SAVE); noop, but.set_tooltip_text("Export plot"); noop, tb.insert(but, -1); gy_signal_connect, but, "clicked", __gywindow_save, cur.da; but = Gtk.ToolButton.new_from_stock(Gtk.STOCK_SELECT_COLOR); noop, but.set_tooltip_text("Choose color map"); noop, tb.insert(but, -1); gy_signal_connect, but, "clicked", __gywindow_cmap, cur.da; } func __gywindow_ratio(widget, data) { yid = __gywindow_find_by_xid(gy_gtk_xid(data)).yid; ratio = 0.; sread, widget.get_active_id(), ratio; inch2ndc=72.27*0.0013; prev = current_window(); window, yid; get_style, land, sys, leg, cleg; ovp = sys(plsys()).viewport; ow = ovp(2)-ovp(1); oh = ovp(4)-ovp(3); ol = max(ow, oh); xc = 0.5*(ovp(2)+ovp(1)); yc = 0.5*(ovp(4)+ovp(3)); if (ratio >= 1) { w = ol; h = ol / ratio; } else { h = ol; w = ol*ratio; } xc; yc; sys(plsys()).viewport = [xc,xc,yc,yc] + [-w,w,-h,h] * 0.5; set_style, land, sys, leg, cleg; window, prev; } func __gywindow_dpi(widget, data) { cur = __gywindow_find_by_xid(gy_gtk_xid(data)); dpi = 0; sread, widget.get_active_id(), dpi; prev = current_window(); gy_gtk_ywindow_reinit, cur.yid, dpi=dpi, style=cur.style; window, prev; } func __gywindow_style(widget, data) { cur = __gywindow_find_by_xid(gy_gtk_xid(data)); prev = current_window(); gy_gtk_ywindow_reinit, cur.yid, dpi=cur.dpi, style=widget.get_active_id(); window, prev; } func __gywindow_find_by_xid(xid) { extern __gywindow; if (is_void(__gywindow)) return; nwins = __gywindow(*); for (oid=1; oid<=nwins; ++oid) { cur=__gywindow( (nothing=oid) ); cxid=cur.xid; if (is_void(cxid)) { cxid=gy_gtk_xid(cur.da); if (!is_void(cxid)) save, cur, xid=cxid; } if (cxid==xid) return cur; } } func __gywindow_find_by_yid(yid) { extern __gywindow; if (is_void(__gywindow)) return; nwins = __gywindow(*); for (oid=1; oid<=nwins; ++oid) { if ((cur=__gywindow( (nothing=oid) )).yid==yid) return cur; } } func gy_gtk_ywindow_free_id(start) /* DOCUMENT yid = gy_gtk_ywindow_free_id( start ); Find a free Yorick window ID. A window ID is considered free if the window is not realized (which is checked using window_geometry()) and it has not yet been registered as a gywindow. The 64 possible window IDs (0 to 63) are probed starting from START. If START<0, window IDs are probed in desceding order starting from 64-START. For instance, if START==42, the IDs will be probed in this order: 42, 43, ..., 62, 63, 0, 1, ..., 40, 41. If no free ID can be found, gy_gtk_ywindow_free_id() returns []. SEE ALSO: gywindow, window, window_geometry */ { if (is_void(start)) start=0; if (start >= 0) dir = 1; else { dir = -1; start = 64+start; } n=start; // window_geometry returns [] if the window is not realized, but the // documentation says it return all 0. Let's check both conditions. // A window ID may also have alreay been registered by gy_gtk but // not be realized yet. while ((!is_void((a=window_geometry(n))) && !allof(a==0)) || !is_void(__gywindow_find_by_yid(n))) { n += dir; if (n==64) n=0; else if (n==-1) n=63; if (n==start) return []; } return n; } func gywindow(&yid, freeid=, dpi=, width=, height=, style=, on_realize=, on_configure=, grab=) /* DOCUMENT gywindow, yid When the Gtk main loop is running, the Yorick main loop is stuck. This prevents things like window zooming to happen. gywindow embeds Yorick window YID in a Gtk window and emulates zooming etc. If YID already exists, it is first killed and its content erased. If you are interested in embedding a Yorick window in your own application, have a look at gy_gtk_ywindow. KEYWORDS: freeid: if true, a new ID is found using gy_gtk_ywindow_free_id. dpi, width, height, style: see window on_realize, on_configure, grab: see gy_gtk_window_connect SEE ALSO: gyterm, gy_gtk_ywindow, gy_gtk_ywindow_free_id, window, gywinkill */ { local on_delete; if (freeid) { yid = gy_gtk_ywindow_free_id(); if (is_void(yid)) error, "unable to find free id"; } if (is_void(yid)) { yid = current_window(); if (yid<0) yid=0; } if (is_void(__gywindow_find_by_yid(yid))) { winkill, yid; __gywindow_init, yid, dpi=dpi, width=width, height=height, style=style, on_realize=on_realize, on_configure=on_configure, grab=grab; on_delete=1; } gy_gtk_main, __gywindow_find_by_yid(yid).win, on_delete=on_delete; } //// error message func gyerror(msg, buttons=) /* DOCUMENT gyerror, msg Display error message in a Gtk window. gy_gtk.i sets after_error so that all error messages are redirected to gyerror: it is usually not necessary to call gyerror directly. SEE ALSO: gy_gtk_i */ { aspect = 1.61803398875; // nombre d'or if (is_void(buttons)) buttons = Gtk.ButtonsType.CLOSE; dmsg = Gtk.MessageDialog("message-type", Gtk.MessageType.error, buttons=buttons, text=msg); noop, dmsg.set_title("Yorick error"); noop, dmsg.set_size_request(long(200*aspect), 200); ans = dmsg.run(); noop, dmsg.destroy(); gy_gtk_idler_flush; return ans; } //// mouse wrapper if (is_void(__gy_gtk_builtin_mouse)) __gy_gtk_builtin_mouse=mouse; func gy_gtk_mouse(system, style, prompt) /* DOCUMENT result= gy_gtk_mouse(system, style, prompt) Suspends the gy_gtk_idler loop, calls mouse(), and resets the gy_gtk_idler loop. mouse() does not play well with after(), which gy_gtk.i uses extensively. This function wraps around mouse() to alleviate this. By default, gy_gtk.i installs gy_gtk_mouse as mouse, replacing the built-in which remains available as __gy_gtk_builtin_mouse. SEE ALSO: gy_gtk_idler, __gy_gtk_builtin_mouse, after, gy_gtk_i */ { gy_gtk_idler, 0; res = __gy_gtk_builtin_mouse(system, style, prompt); if (gy_gtk_main_running) gy_gtk_idler, 1; return res; } mouse = gy_gtk_mouse; //// utilities func gy_gtk_xid(wdg) /* DOCUMENT id=gy_gtk_xid(wdg) Get X11 window ID associated with widget WDG. This allows displaying a Yorick window inside a Gtk widget. EXAMPLE: builder=Gtk.Builder.new(glade_file); ywin = builder.get_object(yorick_widget_name); func on_ywin_event(void) { window, parent=gy_gtk_xid(ywin); } gy_signal_connect, ywin, "event", on_ywin_event; SEE ALSO: gy_i, gy_gdk_window */ { return gy.GdkX11.X11Window(Gtk.Widget(wdg).window).get_xid(); } extern Y_GLADE, Y_DATA; /* DOCUMENT Y_GLADE, Y_DATA Semi-colon separated list of directories where glade files may be located. By default, YGLADE is initialized to: Y_GLADE="./:"+Y_USER+":"+pathform(_(Y_SITES,Y_SITE)+"glade/"); Likewise, Y_DATA directories contain additional platform-independent files, such as icons. SEE ALSO: gy_gtk_builder */ if (is_void(Y_GLADE)) Y_GLADE="./:"+Y_USER+":"+pathform(_(Y_SITES,Y_SITE)+"glade/"); if (is_void(Y_DATA)) Y_DATA="./:"+Y_USER+":"+pathform(_(Y_SITES,Y_SITE)+"data/"); func gy_gtk_builder(fname) /* DOCUMENT builder = gy_gtk_builder(fname) Looks for a file named FNAME in the Y_GLADE path and returns a Gtk.Builder object with FNAME loaded. SEE ALSO: Y_PATH, gy */ { file = find_in_path(fname,takefirst=1,path=Y_GLADE); if (is_void(file)) gyerror("No such file in glade path: " + fname); streplace,file,strfind("~",file),get_env("HOME"); builder = Gtk.Builder(); noop, builder.add_from_file(file); return builder; } extern gy_gtk_before_init; func gy_gtk_init(argv) /* DOCUMENT gy_gtk_init, argv Initialize Gtk. Called automatically by #include "gy_gtk.i" EXTERNAL VARIABLES: If gy_gtk_before_init is a function, it is called before Gtk.init_check(). This allows for instance setting the application name: func gy_gtk_before_init { noop, gy.GLib.set_prgname("MyProg"); noop, gy.GLib.set_application_name("MyProg"); } #include "gy_gtk.i" SEE ALSO: gy_gtk_i */ { extern __gy_gtk_initialized; Gtk = gy.require("Gtk", "3.0"); if (__gy_gtk_initialized) return Gtk; if (is_func(gy_gtk_before_init)) gy_gtk_before_init; ret = gy.Gtk.init_check(numberof(argv),argv); gy_setlocale; if (!ret) error, "Gtk initialization failed"; __gy_gtk_initialized=1; return Gtk; } gy_gtk_init; extern gy_gtk_idler_period; /* DOCUMENT gy_gtk_idler_period gy_gtk_idler repeatedly reschedules using after for running every gy_gtk_idler_period seconds. Default: 0.05. You may set this variable at any time to change the frequency of the loop. SEE ALSO: gy_gtk_idler */ if (!is_numerical(gy_gtk_idler_period)) gy_gtk_idler_period = 0.05; func gy_gtk_idler (start_stop) /* DOCUMENT gy_gtk_idler, start_stop Start or stop the gy Gtk idler, which takes care of processing the Gtk events. While the idler is in place, it runs every gy_gtk_idler_period seconds using after(). Errors may break the idling loop (although gy_gtk.i installs an error handler which re-enables the loop). If your Gtk interface appears to be frozen whereas Yorick itself is not, try gy_gtk_idler, 1 PARAMETER start_stop: 1 to start the loop, 0 to stop it. EXTERNAL VARIABLES: gy_gtk_idler_period SEE ALSO: gy_gtk_i, gy_gtk_idler_period, after, gy_gtk_idler_flush, gy_gtk_idler_maybe_stop */ { extern gy_gtk_idler_period, gy_gtk_main_running; if (is_void(start_stop)) start_stop=gy_gtk_main_running; // always stop idler if (gy_gtk_main_running) { after, -, gy_gtk_idler; } // if start_stop==0, that's all if (!start_stop) { gy_gtk_main_running=O; return; } gy_gtk_main_running=1; // process Gtk events gy_gtk_idler_flush; // read mouse to update non-grabing gywindows if (!is_void( (psn=current_mouse()) ) && !is_void( (cur=__gywindow_find_by_yid(psn(0))) )) { noop, cur.slabel.set_text(swrite(long(psn(3)))); noop, cur.xlabel.set_text(swrite(psn(1))); noop, cur.ylabel.set_text(swrite(psn(2))); } // start idler after, gy_gtk_idler_period, gy_gtk_idler; // let Yorick display its prompt maybe_prompt; } func __gy_gtk_on_error { extern after_error; __gywindow_on_error; ans = gyerror(catch_message+"\n\nDo you want to continue?", buttons=Gtk.ButtonsType.YES_NO); if (ans==Gtk.ResponseType.YES) gy_gtk_idler; else{ gy_gtk_idler, 0; after_error=[]; write, "gy_gtk_main loop stopped on user request"; } } func gy_gtk_idler_flush /* DOCUMENT gy_gtk_idler_flush Process all pending events in the Gtk+ 3 event queue. SEE ALSO: gy_gtk_idler */ { while (Gtk.events_pending ()) noop, Gtk.main_iteration (); } func __gywindow_ungrab { extern __gywindow_device; if (!is_void(__gywindow_device)) noop, __gywindow_device.ungrab(Gdk.CURRENT_TIME); __gywindow_device = []; } yorick-gy-0.0.5/gy_gvalue.c000066400000000000000000000153601217542510100155620ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.h" void gy_value_init(GValue * val, GITypeInfo * info) { GY_DEBUG("in gy_value_init\n"); GITypeTag type = g_type_info_get_tag(info); GIBaseInfo * itrf; GY_DEBUG("Initializing GValue to %s\n", g_type_tag_to_string(type)); switch (type) { /* basic types */ case GI_TYPE_TAG_BOOLEAN: g_value_init(val, G_TYPE_BOOLEAN); break; case GI_TYPE_TAG_INT8: g_value_init(val, G_TYPE_CHAR); break; case GI_TYPE_TAG_UINT8: g_value_init(val, G_TYPE_UCHAR); break; case GI_TYPE_TAG_INT16: case GI_TYPE_TAG_INT32: g_value_init(val, G_TYPE_INT); break; case GI_TYPE_TAG_UINT16: case GI_TYPE_TAG_UINT32: g_value_init(val, G_TYPE_INT); break; case GI_TYPE_TAG_INT64: g_value_init(val, G_TYPE_INT64); break; case GI_TYPE_TAG_UINT64: g_value_init(val, G_TYPE_UINT64); break; case GI_TYPE_TAG_FLOAT: g_value_init(val, G_TYPE_FLOAT); break; case GI_TYPE_TAG_DOUBLE: g_value_init(val, G_TYPE_DOUBLE); break; case GI_TYPE_TAG_GTYPE: g_value_init(val, G_TYPE_GTYPE); break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: g_value_init(val, G_TYPE_STRING); GY_DEBUG("GValue is string\n"); break; /* interface types */ case GI_TYPE_TAG_INTERFACE: itrf = g_type_info_get_interface(info); switch(g_base_info_get_type (itrf)) { case GI_INFO_TYPE_OBJECT: g_value_init(val, G_TYPE_OBJECT); break; case GI_INFO_TYPE_ENUM: g_value_init(val, g_registered_type_info_get_g_type(itrf)); GY_DEBUG("GValue is enum\n"); break; default: y_errorn("Unimplemented GValue interface type %ld", g_base_info_get_type (itrf)); } g_base_info_unref(itrf); break; case GI_TYPE_TAG_VOID: default: y_error("Unimplement property GValue type"); } GY_DEBUG("out gy_value_init\n"); } void gy_value_set_iarg(GValue* pval, GITypeInfo * info, int iarg) { GY_DEBUG("in gy_value_set_iarg\n"); GITypeTag type = g_type_info_get_tag(info); GIBaseInfo * itrf; switch (type) { case GI_TYPE_TAG_BOOLEAN: g_value_set_boolean(pval, ygets_c(iarg)); break; case GI_TYPE_TAG_INT8: g_value_set_schar(pval, ygets_c(iarg)); break; case GI_TYPE_TAG_UINT8: g_value_set_uchar(pval, ygets_c(iarg)); break; case GI_TYPE_TAG_INT16: case GI_TYPE_TAG_INT32: g_value_set_int(pval, ygets_i(iarg)); break; case GI_TYPE_TAG_UINT16: case GI_TYPE_TAG_UINT32: g_value_set_uint(pval, ygets_i(iarg)); break; case GI_TYPE_TAG_INT64: g_value_set_int64(pval, ygets_l(iarg)); break; case GI_TYPE_TAG_UINT64: g_value_set_uint64(pval, ygets_l(iarg)); break; case GI_TYPE_TAG_FLOAT: g_value_set_float(pval, ygets_f(iarg)); break; case GI_TYPE_TAG_DOUBLE: g_value_set_double(pval, ygets_d(iarg)); break; case GI_TYPE_TAG_GTYPE: g_value_set_gtype(pval, ygets_l(iarg)); break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: g_value_set_static_string (pval, ygets_q(iarg)); GY_DEBUG("GValue is string: \"%s\"\n", ygets_q(iarg)); break; /* interface types */ case GI_TYPE_TAG_INTERFACE: itrf = g_type_info_get_interface(info); switch(g_base_info_get_type (itrf)) { case GI_INFO_TYPE_ENUM: g_value_set_enum (pval, ygets_l(iarg)); break; case GI_INFO_TYPE_OBJECT: g_value_set_object(pval, yget_gy_Object(iarg)->object); break; default: y_errorn("Unimplemented GValue interface type %ld", g_base_info_get_type (itrf)); } g_base_info_unref(itrf); break; case GI_TYPE_TAG_VOID: default: y_error("Unimplement property GValue type"); } GY_DEBUG("out gy_iarg2gvalue\n"); } void gy_value_push(GValue * pval, GITypeInfo * info, gy_Object* o) { GITypeTag tag = g_type_info_get_tag(info); GY_DEBUG("Pushing %s from GValue\n", g_type_tag_to_string(tag)); switch (tag) { /* basic types */ case GI_TYPE_TAG_VOID:{ GITypeInfo * cellinfo = g_type_info_get_param_type(info, 0); if (cellinfo) { GITypeTag ctag = g_type_info_get_tag(cellinfo); GY_DEBUG("void contains %s\n", g_type_tag_to_string(ctag)); g_base_info_unref(cellinfo); } ypush_nil(); break;} case GI_TYPE_TAG_BOOLEAN: *ypush_c(NULL) = g_value_get_boolean(pval); break; case GI_TYPE_TAG_INT8: *ypush_gint8(NULL) = g_value_get_schar(pval); break; case GI_TYPE_TAG_UINT8: *ypush_guint8(NULL)= g_value_get_uchar(pval); break; case GI_TYPE_TAG_INT16: case GI_TYPE_TAG_INT32: *ypush_gint32(NULL) = g_value_get_int(pval); break; case GI_TYPE_TAG_UINT16: case GI_TYPE_TAG_UINT32: *ypush_guint32(NULL) = g_value_get_uint(pval); break; case GI_TYPE_TAG_INT64: ypush_long(g_value_get_int64(pval)); break; case GI_TYPE_TAG_UINT64: ypush_long(g_value_get_uint64(pval)); break; case GI_TYPE_TAG_FLOAT: *ypush_f(NULL)=g_value_get_float(pval); break; case GI_TYPE_TAG_DOUBLE: ypush_double(g_value_get_double(pval)); break; case GI_TYPE_TAG_GTYPE: ypush_long(g_value_get_gtype(pval)); break; case GI_TYPE_TAG_UTF8: case GI_TYPE_TAG_FILENAME: *ypush_q(NULL) = p_strcpy(g_value_get_string(pval)); break; /* array types */ case GI_TYPE_TAG_ARRAY: y_error("array"); break; /* interface types */ case GI_TYPE_TAG_INTERFACE: { GIBaseInfo * itrf = g_type_info_get_interface (info); switch(g_base_info_get_type (itrf)) { case GI_INFO_TYPE_ENUM: ypush_long(g_value_get_enum(pval)); g_base_info_unref(itrf); break; case GI_INFO_TYPE_OBJECT: { GObject * prop=g_value_get_object(pval); g_object_ref_sink(prop); if (!prop) { g_base_info_unref(itrf); y_error("get property failed"); } GY_DEBUG("pushing result... "); ypush_check(1); gy_Object * out = ypush_gy_Object(); out->info=itrf; out->object=prop; out->repo=o->repo; } break; default: g_base_info_unref(itrf); y_error ("fix me: only properties of type object supported yet"); } break; } default: y_error("Unimplemented"); } } yorick-gy-0.0.5/gy_object.c000066400000000000000000000572611217542510100155530ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.h" #include "ctype.h" void gy_sa_handler(int sig) { const char * ssig="(signal name unknown)"; switch (sig) { case SIGABRT: ssig="SIGABRT"; break; case SIGSEGV: ssig="SIGSEGV"; break; default: break; } y_errorq("gy action received signal %s", ssig); } /// GIBASEINFO static y_userobj_t gy_Object_obj = {"gy_Object", &gy_Object_free, &gy_Object_print, &gy_Object_eval, &gy_Object_extract, NULL //&uo_ops }; void gy_Object_free(void *obj) { gy_Object* o = (gy_Object*) obj; if (o->object) { // I don't know how reference counting works here... // if (GI_IS_STRUCT_INFO(o->info)) g_free(o->object); if (o->info && GI_IS_OBJECT_INFO(o->info)) { GY_DEBUG("Unref'ing GObject %p with refcount %d... ", o->object, o->object->ref_count); g_object_unref(o->object); o->object=NULL; GY_DEBUG("done.\n"); } else { if (gy_debug()) { fprintf(stderr,"Object %p not unref'ed\n", o->object); if (o->info && GI_IS_TYPE_INFO(o->info)) { fprintf(stderr, "Object is "); GITypeTag type = g_type_info_get_tag(o->info); switch(type) { case GI_TYPE_TAG_GLIST: fprintf(stderr, "double linked list", 0); break; case GI_TYPE_TAG_GSLIST: fprintf(stderr, "single linked list", 0); break; default: fprintf(stderr, "unhandled TypeInfo"); } fprintf(stderr, "gy object name: %s, type: %s, namespace: %s\n", g_base_info_get_name(o->info), g_info_type_to_string(g_base_info_get_type (o->info)), g_base_info_get_namespace (o->info)); } } } } if (o->info) g_base_info_unref(o->info); } void gy_Object_print(void *obj) { gy_Object* o = (gy_Object*) obj; char spointer[40] = {0}; if (o->object) { sprintf(spointer, "%p", o->object); y_print(spointer, 0); y_print(" is pointer to ", 0); } if (!o->info) { y_print("unknown type object", 0); return; } if (GI_IS_TYPE_INFO(o->info)) { GITypeTag type = g_type_info_get_tag(o->info); switch(type) { case GI_TYPE_TAG_GLIST: y_print("double linked list", 0); break; case GI_TYPE_TAG_GSLIST: y_print("single linked list", 0); break; default: y_error("unhandled TypeInfo"); } return; } y_print("gy object name: ", 0); y_print(g_base_info_get_name(o->info), 0); y_print(", type: ", 0); y_print(g_info_type_to_string(g_base_info_get_type (o->info)), 0); y_print(", namespace: ", 0); y_print(g_base_info_get_namespace (o->info), 0); } void gy_Object_extract(void *obj, char * name) { gy_Object * o = (gy_Object *) obj; if (!o->info) y_error("Object has no type information"); if (GI_IS_TYPE_INFO(o->info)) { GITypeTag type = g_type_info_get_tag(o->info); switch(type) { case GI_TYPE_TAG_GLIST: case GI_TYPE_TAG_GSLIST: { int action = 0; #define GYLIST_ACTION_DATA 1 #define GYLIST_ACTION_NEXT 2 #define GYLIST_ACTION_PREV 3 #define GYLIST_ACTION_SIZE 4 if (!strcmp(name,"data")) action=GYLIST_ACTION_DATA; else if (!strcmp(name, "next")) action =GYLIST_ACTION_NEXT; else if (!strcmp(name, "prev")) action =GYLIST_ACTION_PREV; else if (!strcmp(name, "size")) action =GYLIST_ACTION_SIZE; else y_errorq("Unknown action for G(S)List: %s", name); if (!o->object && action !=GYLIST_ACTION_SIZE) y_error("G(S)List is nil"); GY_DEBUG("Extracting member %s from G(S)List\n", name); if (o->object) { GY_DEBUG(" data=%p\n" " next=%p\n", o->object, ((GList*)o->object)->next); if (type==GI_TYPE_TAG_GLIST) GY_DEBUG(" prev=%p\n", ((GList*)o->object)->prev); } if (action == GYLIST_ACTION_SIZE) { GList* lst = o->object; if (!lst) { ypush_long(0); return; } long sz=1; while (lst=lst->next) ++sz; ypush_long(sz); return; } if (action == GYLIST_ACTION_PREV && type == GI_TYPE_TAG_GSLIST) y_error("Single-linked list: no prev"); if ( (action == GYLIST_ACTION_NEXT && !((GList*) o->object) -> next) || (action == GYLIST_ACTION_PREV && !((GList*) o->object) -> prev) ) { ypush_nil(); return; } GITypeInfo * itrf = g_type_info_get_interface(g_type_info_get_param_type(o->info, 0)); gy_Object * out = ypush_gy_Object(); out -> repo = o -> repo; if (action == GYLIST_ACTION_DATA) { out -> info = itrf; out -> object = ((GList*) o->object) -> data; if (g_base_info_get_type (itrf) == GI_INFO_TYPE_OBJECT) { g_object_ref(out -> object); } } else { out -> info = o -> info; if (action==GYLIST_ACTION_NEXT) out -> object = ((GList*) o->object) -> next; else if (action==GYLIST_ACTION_PREV) out -> object = ((GList*) o->object) -> prev; } g_base_info_ref(out -> info); return; } break; default: y_error("Don't know how to extract members from that kind of objects"); } } if (GI_IS_ENUM_INFO(o->info)) { gint64 wtype=-1; gint nc = g_enum_info_get_n_values (o->info); GIValueInfo * ci ; gint i; gboolean tfound=0; char * name_dn = p_strtolower(name); if (!strcmp(name, name_dn)) { p_free(name_dn); name_dn=NULL; } for (i=0; iinfo, i); if (!strcmp(g_base_info_get_name (ci), name) || (name_dn && !strcmp(g_base_info_get_name (ci), name_dn)) ) { wtype=g_value_info_get_value (ci); tfound=1; g_base_info_unref(ci); break; } g_base_info_unref(ci); } p_free(name_dn); if (tfound) ypush_long(wtype); else y_errorq("No such enum value: %s", name); return; } gboolean isstruct = GI_IS_STRUCT_INFO(o->info), isobject = GI_IS_OBJECT_INFO(o->info), isitrf = GI_IS_INTERFACE_INFO(o->info); /// Look for method GIBaseInfo * info =NULL; if (isstruct || isobject || isitrf) { GY_DEBUG("Looking for method %s in %s\n", name, g_base_info_get_name(o->info)); if (isobject) info = g_object_info_find_method (o->info, name); else if (isitrf) info = g_interface_info_find_method (o->info, name); else info = g_struct_info_find_method (o->info, name); GIBaseInfo * cur = o->info, *next; g_base_info_ref(cur); while (!info && isobject && (next = g_object_info_get_parent(cur))) { g_base_info_unref(cur); cur = next; GY_DEBUG("Looking for method %s in parent %s\n", name, g_base_info_get_name(cur)); info = g_object_info_find_method (cur, name); } if (info) { GY_DEBUG("Method %s found in %s\n", name, g_base_info_get_name(cur)); g_base_info_unref(cur); gy_Object * out = ypush_gy_Object(); out->info = info; out->repo = o->repo; if (g_function_info_get_flags (info) & GI_FUNCTION_IS_METHOD) { // a method needs an object! out->object=o->object; if (isobject) g_object_ref(o->object); } return; } } /// Look for property if (isobject || isitrf) { GY_DEBUG("Looking for property %s in %s\n", name, g_base_info_get_name(o->info)); ystring_t name2 = p_strcpy(name); GIPropertyInfo * cur = gy_base_info_find_property_info(o->info, name2); if (cur) { GValue val=G_VALUE_INIT; GITypeInfo * ti = g_property_info_get_type(cur); g_value_init(&val, g_object_class_find_property(G_OBJECT_GET_CLASS(o->object), name2)->value_type); g_object_get_property(o->object, name2, &val); gy_value_push(&val, ti, o); g_base_info_unref(ti); p_free(name2); return; } p_free(name2); } /// Look for field if (isobject || isstruct) { ystring_t name2 = p_strcpy(name); GIBaseInfo * cur = gy_base_info_find_field_info(o->info, name2); if (cur) { GITypeInfo * ti = g_field_info_get_type(cur); GIArgument rarg; gboolean success=g_field_info_get_field(cur, o->object, &rarg); if (!success) y_error("get field failed"); gy_Argument_pushany(&rarg, ti, o); g_base_info_unref(ti); p_free(name2); return; } p_free(name2); } /// Look for signal if (isobject) { static const char const * sigprefix = "signal_"; int sigprefixlen=7; if (!strncmp(name, sigprefix, sigprefixlen)) { name += sigprefixlen; GY_DEBUG("Looking for signal %s in %s\n", name, g_base_info_get_name(o->info)); gint nc = g_object_info_get_n_signals (o->info); GY_DEBUG("%s has %d signals\n", g_base_info_get_name(o->info), nc); GISignalInfo * ci=NULL ; gint i; for (i=0; iinfo, i); if (!strcmp(g_base_info_get_name (ci), name)) { info=ci; break; } g_base_info_unref(ci); } if (info) { gy_Object * out = ypush_gy_Object(); out -> info = info; out->repo = o->repo; return; } y_errorq("Signal %s not found", name); } if (!info) { y_error("No such member"); } } } int yarg_gy_Object(int iarg) { return yget_obj(iarg,0)==gy_Object_obj.type_name; } void gy_Object_eval(void *obj, int argc) { GY_DEBUG("in gy_Object_eval\n"); gy_Object* o = (gy_Object*) obj; GError * err = NULL; if (!o -> info) y_error("Object lacks type information. " "Please cast it appropriately"); gboolean isobject = GI_IS_OBJECT_INFO(o->info), isstruct = GI_IS_STRUCT_INFO(o->info), isitrf = GI_IS_INTERFACE_INFO(o->info); if (GI_IS_TYPE_INFO(o->info)) { GITypeTag type = g_type_info_get_tag(o->info); if (type !=GI_TYPE_TAG_GLIST && type !=GI_TYPE_TAG_GSLIST) y_error("Unimplemented"); if (!o->object) y_error("G(S)List is nil"); GList* lst = o->object; long idx = ygets_l(argc-1)-1; gy_Object * out = ypush_gy_Object(); if (type !=GI_TYPE_TAG_GLIST) out->object=g_list_nth_data (lst, idx); else if (type !=GI_TYPE_TAG_GSLIST) out->object=g_slist_nth_data ((GSList*)lst, idx); if (!out->object) y_error("index out of range"); GITypeInfo * itrf = g_type_info_get_interface(g_type_info_get_param_type(o->info, 0)); out -> repo = o -> repo; out -> info = itrf; if (g_base_info_get_type (itrf) == GI_INFO_TYPE_OBJECT) { g_object_ref(out -> object); } g_base_info_ref(out -> info); return; } if (isobject || isitrf || isstruct) { GY_DEBUG("Pushing gy_Object return value\n"); gy_Object* out = ypush_gy_Object(0); out->info=o->info; g_base_info_ref(o->info); out->repo=o->repo; if(!o->object) { if (yarg_gy_Object(argc)) { GY_DEBUG("This is a cast operation\n"); gy_Object * ino = yget_gy_Object(argc--); GY_DEBUG("here\n"); out -> object = ino -> object; GY_DEBUG("here\n"); if ((ino->info && GI_IS_OBJECT_INFO(ino->info)) || GI_IS_OBJECT_INFO(out->info)) { GY_DEBUG("This is an object, referencing\n"); g_object_ref(out->object); } GY_DEBUG("Cast done\n"); } else if (isobject) { GY_DEBUG("Instanciating GObject\n"); /* instanciate GObject, interpret arguments as properties */ guint n_parameters = argc/2; GParameter *parameters=NULL; if (n_parameters) { parameters=g_new0(GParameter, n_parameters); guint p; int iarg=argc; long index; GIPropertyInfo * cur; GITypeInfo * ti; for (p=0; pinfo, parameters[p].name); GY_DEBUG("Property info:%p\n", cur); if (!cur) y_errorq("No such porperty in object: \"%s\"", parameters[p].name); --iarg; GY_DEBUG("property name=\"%s\"\n", parameters[p].name); ti = g_property_info_get_type(cur); g_base_info_unref(cur); gy_value_init(&(parameters[p].value), ti); gy_value_set_iarg(&(parameters[p].value), ti, iarg); --iarg; g_base_info_unref(ti); } } out -> object = g_object_newv(g_registered_type_info_get_g_type(o->info), n_parameters, parameters); g_free(parameters); GY_DEBUG("Newly created object has refcount=%d and %d floating ref\n", out->object->ref_count, g_object_is_floating(out->object)); if (G_IS_INITIALLY_UNOWNED(out->object)) { g_object_ref_sink(out->object); } if (!out->object->ref_count) g_object_ref(out->object); GY_DEBUG("Newly created object has refcount=%d\n", out->object->ref_count); return; } else if (isstruct) { GY_DEBUG("Instanciating C struct\n"); /* instanciate struct, arguments will be parsed later */ out -> object = g_malloc0(g_struct_info_get_size (o->info)); } else y_error("Object is not callable"); } else { out -> object = o->object; if (GI_IS_OBJECT_INFO(o->info) || GI_IS_OBJECT_INFO(out->info)) g_object_ref(out->object); } /* try setting / getting properties */ int iarg = argc; // last is newly pushed reference long index; char * name; GIBaseInfo * cur=NULL; GITypeInfo * ti; gboolean getting=0; GParamFlags pf; GIArgument rarg; if (argc==1 && yarg_nil(iarg)) return; int lim=0; while (iarg > lim) { // 0 is output index=yarg_key(iarg); GY_DEBUG("Key iarg: %d, index: %ld\n", iarg, index); if (index<0) { getting=1; index=yget_ref(iarg); if (index<0) name = ygets_q(iarg); else name=yfind_name(index); GY_DEBUG("Getting member %s\n", name); } else { getting=0; name=yfind_name(index); GY_DEBUG("Setting member %s\n", name); } if ( (cur = gy_base_info_find_property_info(o->info, name)) ) { /* NAME is property */ GY_DEBUG("Canonical property name: %s\n",name); ti = g_property_info_get_type(cur); pf = g_property_info_get_flags (cur); GValue val=G_VALUE_INIT; g_value_init(&val, g_object_class_find_property(G_OBJECT_GET_CLASS(o->object), name)->value_type); iarg--; if (getting) { if (!(pf & G_PARAM_READABLE)) y_error("property is not readable"); GY_DEBUG("Getting property %s", name); long idx=yget_ref(iarg); GY_DEBUG("Output variable iarg: %d, index: %ld\n", iarg, idx); g_object_get_property(o->object, name, &val); gy_value_push(&val, ti, o); yput_global(idx, 0); yarg_drop(1); GY_DEBUG("done.\n"); } else { if (!(pf & G_PARAM_WRITABLE)) y_error("property is not writable"); GY_DEBUG("Setting property %s\n", name); gy_value_set_iarg(&val, ti, iarg); g_object_set_property(o->object, name, &val); } g_base_info_unref(ti); } else if ( (cur = gy_base_info_find_field_info(o->info, name)) ) { /* NAME is field */ GY_DEBUG("Member %s is a Field.\n", name); ti = g_field_info_get_type(cur); if (getting) { //y_error("Getting"); GY_DEBUG("getting\n"); long idx = yget_ref(iarg-1); gboolean success=g_field_info_get_field(cur, o->object, &rarg); if (!success) y_error("get field failed"); gy_Argument_pushany(&rarg, ti, o); yput_global(idx, 0); yarg_drop(1); } else { gy_Argument_getany(&rarg, ti, --iarg); if (!g_field_info_set_field(cur, out->object, &rarg)) y_error("set field failed"); } g_base_info_unref(ti); } else y_errorq("%s is neither property not field", name); --iarg; } return; } if (!GI_IS_CALLABLE_INFO(o->info)) y_error("Object is not callable"); gint n_args = g_callable_info_get_n_args(o->info); if ((argc != n_args) && !(n_args==0 && argc==1 && yarg_nil(0))) y_errorn("function takes %ld arguments", n_args); GIArgument * in_args=g_new0(GIArgument,n_args+1); GIArgument * out_args=g_new0(GIArgument,n_args); GIArgInfo arginfo; gint n_in=0, n_out=0, i; if (GI_IS_FUNCTION_INFO(o->info) && (g_function_info_get_flags (o->info) & GI_FUNCTION_IS_METHOD)) { GY_DEBUG("Object address: %p\n", o->object); GY_DEBUG("Is object: %d\n", G_IS_OBJECT(o->object)); GY_DEBUG("Object type name: %s\n", G_OBJECT_TYPE_NAME(o->object)); if (!o -> object) y_error("NULL pointer"); in_args[0].v_pointer= o -> object; ++n_in; } for (i=0; iinfo, i, &arginfo); GITypeInfo * argtype = g_arg_info_get_type(&arginfo); switch (g_arg_info_get_direction(&arginfo)) { case GI_DIRECTION_IN: gy_Argument_getany(in_args+n_in, argtype, argc-i-1); ++n_in; break; case GI_DIRECTION_OUT: gy_Argument_getany(out_args+n_out, argtype, argc-i-1); ++n_out; break; case GI_DIRECTION_INOUT: gy_Argument_getany(in_args+n_in, argtype, argc-i-1); ++n_in; gy_Argument_getany(out_args+n_out, argtype, argc-i-1); ++n_out; break; default: y_error("unknown GI_DIRECTION"); } g_base_info_unref(argtype); } GIArgument retval; fenv_t fenv_in; if (feholdexcept(&fenv_in)) y_error("fenv error"); struct sigaction act, *oldact=NULL; act.sa_handler=&gy_sa_handler; sigemptyset(&act.sa_mask); act.sa_flags=0; sigaction(SIGABRT, &act, oldact); sigaction(SIGSEGV, &act, oldact); GY_DEBUG("Calling function %s... ", g_base_info_get_name(o->info)); gboolean success = g_function_info_invoke (o->info, in_args, n_in, out_args, n_out, &retval, &err); GY_DEBUG("done.\n"); sigaction(SIGABRT, oldact, NULL); fesetenv(&fenv_in); if (!success) { GY_DEBUG("here\n"); y_error(err->message); } GY_DEBUG("Function %s successfully called\n", g_base_info_get_name(o->info)); if (n_out) y_warn("unimplemented: positional out arguments"); GITypeInfo * retinfo = g_callable_info_get_return_type(o->info); gy_Argument_pushany(&retval, retinfo, o); /* if (g_function_info_get_flags (o->info) & GI_FUNCTION_IS_CONSTRUCTOR) { gy_Object*out = yget_gy_Object(0); g_base_info_unref(out->info); const char * nspace = g_base_info_get_namespace (o->info); GY_DEBUG("Namespace: %s\n", nspace); const char * name_with_namespace = G_OBJECT_TYPE_NAME(out->object); GY_DEBUG("Name with namespace: %s\n", name_with_namespace); const char * name = name_with_namespace + strlen(nspace); GY_DEBUG("Name without namespace: %s\n", name); out->info = g_irepository_find_by_name(NULL, nspace, name); g_base_info_ref(out->info); } */ GY_DEBUG("g_base_info_unref(retinfo)... "); g_base_info_unref(retinfo); GY_DEBUG(" done.\n"); g_free (in_args); g_free (out_args); } gy_Object* yget_gy_Object(int iarg) { return (gy_Object*) yget_obj(iarg, &gy_Object_obj); } gy_Object* ypush_gy_Object() { return (gy_Object*) ypush_obj(&gy_Object_obj, sizeof(gy_Object)); } void gy_Object_list(int argc) { gy_Object * o = yget_gy_Object(0); if (!o->info) printf("object without type information.\n"); printf("gy object name: %s, type: %s, namespace: %s\n", g_base_info_get_name(o->info), g_info_type_to_string(g_base_info_get_type (o->info)), g_base_info_get_namespace (o->info)); gboolean isobject=GI_IS_OBJECT_INFO(o->info); gboolean isstruct=GI_IS_STRUCT_INFO(o->info); gboolean isitrf=GI_IS_INTERFACE_INFO(o->info); gboolean isenum=GI_IS_ENUM_INFO(o->info); char * itype="n unknown"; if (isobject) itype=" GObject"; else if (isitrf) itype=" GInterface"; else if (isstruct) itype=" C structure"; else if (isenum) itype="n enumeration"; printf("Object is a%s.\n", itype); gint i=0, n=0; if (o->object) { printf("with object at %p\n", o->object); if (isobject) printf("Object type: %s\n", G_OBJECT_TYPE_NAME(o->object)); } /* values */ if (isenum) { n = g_enum_info_get_n_values (o->info); GIValueInfo * ci ; printf ("Object has %d enum values\n", n); for (i=0; iinfo, i); printf(" Enum name: %s, value: %ld\n", g_base_info_get_name (ci), g_value_info_get_value(ci)); } } /* fields */ if (isstruct || isobject) { n = isstruct? g_struct_info_get_n_fields(o->info): g_object_info_get_n_fields(o->info); GIBaseInfo * cur=NULL; printf ("Object has %d fields\n", n); for (i=0; iinfo, i): g_object_info_get_field (o->info, i); printf(" Field #%d=%s\n", i, g_base_info_get_name(cur)); g_base_info_unref(cur); } } /* properties */ if (isitrf || isobject) { n = isitrf? g_interface_info_get_n_properties(o->info): g_object_info_get_n_properties(o->info); GIPropertyInfo * cur=NULL; printf ("Object has %d properties\n", n); for (i=0; iinfo, i): g_object_info_get_property (o->info, i); printf(" %s\n", g_base_info_get_name(cur)); g_base_info_unref(cur); } } /* methods */ if (isstruct || isobject || isitrf || isenum) { if (isstruct) n = g_struct_info_get_n_methods(o->info); else if (isobject) n = g_object_info_get_n_methods(o->info); else if (isitrf) n = g_interface_info_get_n_methods(o->info); else if (isenum) n = g_enum_info_get_n_methods(o->info); printf("Object has %d methods\n", n); GIBaseInfo * cur=NULL; for (i=0; iinfo, i); else if (isobject) cur = g_object_info_get_method (o->info, i); else if (isitrf) cur = g_interface_info_get_method (o->info, i); else if (isenum) cur = g_enum_info_get_method (o->info, i); printf(" %s\n", g_base_info_get_name(cur)); g_base_info_unref(cur); } } /* signals */ if (isobject || isitrf) { n = isobject? g_object_info_get_n_signals (o->info): g_interface_info_get_n_signals (o->info); printf("Object has %d signals(s)\n", n); GIBaseInfo * gmi=NULL; for (i=0; iinfo, i): g_interface_info_get_signal(o->info, i); printf(" %s\n", g_base_info_get_name (gmi)); g_base_info_unref(gmi); } } /* vfuncs */ if (isobject || isitrf) { n = isobject? g_object_info_get_n_vfuncs (o->info): g_interface_info_get_n_vfuncs (o->info); printf("Object has %d vfunc(s)\n", n); GIFunctionInfo * gmi; for (i=0; iinfo, i): g_interface_info_get_vfunc(o->info, i); printf(" %s\n", g_base_info_get_name (gmi)); g_base_info_unref(gmi); } } /* constants */ if (isobject || isitrf) { n = isobject? g_object_info_get_n_constants (o->info): g_interface_info_get_n_constants (o->info); printf("Object has %d constant(s)\n", n); GIConstantInfo * gmi; for (i=0; iinfo, i): g_interface_info_get_constant(o->info, i); printf(" %s\n", g_base_info_get_name (gmi)); g_base_info_unref(gmi); } } if (isobject) { if (g_object_info_get_fundamental (o->info)) printf("Object is fundamental\n"); else { GIBaseInfo * gmi=NULL; gmi = g_object_info_get_parent(o->info); if (gmi) { printf("Object parent: %s\n", g_base_info_get_name(gmi)); g_base_info_unref(gmi); } else printf("Object has no parent\n"); } } } void Y_gy_object_free(int argc) { g_free(yget_gy_Object(0)->object); } yorick-gy-0.0.5/gy_property.c000066400000000000000000000061051217542510100161600ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.h" GIPropertyInfo * gy_base_info_find_property_info(GIBaseInfo * objectinfo, char * name) { if (GI_IS_STRUCT_INFO(objectinfo)) return NULL; gboolean isobject = GI_IS_OBJECT_INFO(objectinfo); gint iprop, nprop = isobject? g_object_info_get_n_properties(objectinfo): g_interface_info_get_n_properties(objectinfo); GIPropertyInfo * cur=NULL; int hyphenize; char * oname = NULL; for (hyphenize=0; hyphenize<=1; ++hyphenize) { if (hyphenize) { GY_DEBUG("Property %s not found, trying to replace underscores with hyphens\n", name); oname = p_strcpy(name); g_strdelimit(name, "_", '-'); if (!strcmp(name, oname)) { p_free(oname); return NULL; } } for (iprop=0; iprop. */ #include "gy.h" static y_userobj_t gy_Repository_obj = {"gy_Repository", NULL, //&gy_Repository_free, &gy_Repository_print, &gy_Repository_eval, &gy_Repository_extract, NULL //&uo_ops }; void gy_Repository_print(void *obj){ gy_Repository * r = (gy_Repository *) obj; gchar ** nspcs = g_irepository_get_loaded_namespaces(r->repo); if (!nspcs) { y_print("gy_Repository without any loaded namespaces", 0); return; } y_print("gy_Repository with loaded namespaces: ", 1); for (;*nspcs;++nspcs) { y_print(*nspcs, 1); y_print(" ", 1); } } void gy_Repository_extract(void *obj, char * name) { gy_Repository * r = (gy_Repository *) obj; GError * err; if (!strcmp(name, "require") || !strcmp(name, "require_private") || !strcmp(name, "get_search_path") || !strcmp(name, "prepend_search_path")|| !strcmp(name, "is_registered")|| !strcmp(name, "get_version")|| !strcmp(name, "enumerate_versions") ) { gy_Repository* out = ypush_gy_Repository(); out->repo = r->repo; out->method=name; return; } /// push output gy_Typelib * tl = ypush_gy_Typelib(); tl -> namespace = p_strcpy(name); tl -> repo = r -> repo, tl -> typelib = g_irepository_require (r->repo, name, NULL, 0, &err); if (!tl->typelib) y_error(err->message); } void gy_Repository_eval(void *obj, int argc) { gy_Repository* r = (gy_Repository*) obj; if (!r->method) y_error("Object is not callable"); if (!strcmp(r->method, "require")) { GError * err=NULL; /// process input ystring_t namespace = ygets_q(argc-1); ystring_t version = NULL; if (argc>=2) version=ygets_q(argc-2); GIRepositoryLoadFlags flags=0; if (argc>=3) flags=ygets_l(argc-3); /// push output gy_Typelib * tl = ypush_gy_Typelib(); tl -> namespace = p_strcpy(namespace); tl -> repo = r->repo; tl -> typelib = g_irepository_require (r->repo, namespace, version, flags, &err); if (!tl->typelib) y_error(err->message); return; } if (!strcmp(r->method, "require_private")) { GError * err=NULL; /// process input ystring_t dir = ygets_q(argc-1); ystring_t namespace = ygets_q(argc-2); ystring_t version = NULL; if (argc>=2) version=ygets_q(argc-3); GIRepositoryLoadFlags flags=0; if (argc>=3) flags=ygets_l(argc-4); /// push output gy_Typelib * tl = ypush_gy_Typelib(); tl -> namespace = p_strcpy(namespace); tl -> repo = r->repo; tl -> typelib = g_irepository_require_private (r->repo, dir, namespace, version, flags, &err); if (!tl->typelib) y_error(err->message); return; } if (!strcmp(r->method, "get_search_path")) { GSList * lst = g_irepository_get_search_path(); GSList * cur = 0; long count =0; for (cur=lst; cur; cur=cur->next) ++count; GY_DEBUG("%ld elements in path\n", count); long dims[Y_DIMSIZE]={1, count}; ystring_t * pth = ypush_q(dims); for (cur=lst, count=0; cur; cur=cur->next, ++count) { pth[count]=p_strcpy(cur->data); } return; } if (!strcmp(r->method, "prepend_search_path")) { g_irepository_prepend_search_path(ygets_q(argc-1)); ypush_gy_Repository() -> repo = r -> repo; return; } if (!strcmp(r->method, "is_registered")) { ystring_t namespace = ygets_q(argc-1); ystring_t version = NULL; if (argc>=2) version=ygets_q(argc-2); ypush_long(g_irepository_is_registered (r->repo, namespace, version)); return; } if (!strcmp(r->method, "get_version")) { ystring_t namespace ; if (yarg_string(argc-1)) namespace = ygets_q(argc-1); else namespace = yget_gy_Typelib(argc-1)->namespace; *ypush_q(0) = p_strcpy(g_irepository_get_version (r->repo, namespace)); return; } if (!strcmp(r->method, "enumerate_versions")) { ystring_t namespace ; if (yarg_string(argc-1)) namespace = ygets_q(argc-1); else namespace = yget_gy_Typelib(argc-1)->namespace; GSList * lst = g_irepository_enumerate_versions(r->repo, namespace); GSList * cur = 0; long count =0; for (cur=lst; cur; cur=cur->next) ++count; GY_DEBUG("%ld versions of %s\n", count, namespace); long dims[Y_DIMSIZE]={1, count}; ystring_t * pth = ypush_q(dims); for (cur=lst, count=0; cur; cur=cur->next, ++count) { pth[count]=p_strcpy(cur->data); } return; } y_error("Unknown repository method"); } gy_Repository* yget_gy_Repository(int iarg) { return (gy_Repository*) yget_obj(iarg, &gy_Repository_obj); } gy_Repository* ypush_gy_Repository() { gy_Repository* out = ypush_obj(&gy_Repository_obj, sizeof(gy_Repository)); out->method=0; return out; } int yarg_gy_Repository(int iarg) { return yget_obj(iarg,0)==gy_Repository_obj.type_name; } yorick-gy-0.0.5/gy_start.i000066400000000000000000000004101217542510100154300ustar00rootroot00000000000000autoload, "gy.i"; autoload, "gy.i", gy, gy_init, gy_list, gy_i, gy_debug, gy_setlocale; autoload, "gy_gtk.i"; autoload, "gy_gtk.i", gy_gtk_i; autoload, "gy_gtk.i", gyterm, gycmap, gywindow, gyerror; autoload, "gy_gtk.i", gy_gtk_builder, gy_gtk_init, gy_gtk_idler; yorick-gy-0.0.5/gy_typelib.c000066400000000000000000000057361217542510100157550ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy.h" #include "ctype.h" /// TYPELIB static y_userobj_t gy_Typelib_obj = {"gy_Typelib", &gy_Typelib_free, &gy_Typelib_print, NULL, //&gy_Typelib_eval, &gy_Typelib_extract, NULL //&uo_ops }; void gy_Typelib_free(void *obj) { p_free(((gy_Typelib*)obj)->namespace); //g_typelib_free(((gy_Typelib*)obj)->typelib); } void gy_Typelib_print(void *obj){ y_print(((gy_Typelib*)obj)->namespace, 0); } void gy_Typelib_extract(void *obj, char * name) { gy_Typelib * tl = (gy_Typelib *) obj; GIBaseInfo * info = g_irepository_find_by_name(tl->repo, tl->namespace, name); if (!info) y_error("No such member"); gy_Object * o = ypush_gy_Object(); o->info = info; o->repo = tl->repo; if (GI_IS_CONSTANT_INFO(o->info)) { GY_DEBUG("Extracted object is constant\n"); GIArgument rarg; GITypeInfo * retinfo = g_constant_info_get_type(o->info); //gint retval = // useless so far: size of the constant g_constant_info_get_value(o->info, &rarg); yarg_drop(1); gy_Argument_pushany(&rarg, retinfo, o); g_base_info_unref(retinfo); } } gy_Typelib* yget_gy_Typelib(int iarg) { return (gy_Typelib*) yget_obj(iarg, &gy_Typelib_obj); } gy_Typelib* ypush_gy_Typelib() { return (gy_Typelib*) ypush_obj(&gy_Typelib_obj, sizeof(gy_Typelib)); } int yarg_gy_Typelib(int iarg) { return yget_obj(iarg,0)==gy_Typelib_obj.type_name; } void gy_Typelib_list(int argc) { if (argc!=1) y_error("gy_list_namespace takes exactly 1 argument"); char * name =NULL; gint i, ninfos; GError * err=NULL; GITypelib * typelib=NULL; gy_Typelib * tl =NULL; GIRepository * repo=NULL; if (yarg_string(0)) { name=ygets_q(0); typelib=g_irepository_require (NULL, name, NULL, 0, &err); if (!typelib) y_error(err->message); } else { tl = yget_gy_Typelib(0); name = tl -> namespace; repo = tl -> repo; } ninfos = g_irepository_get_n_infos (repo, name); printf("Namespace %s has %d infos\n", name, ninfos); GIBaseInfo * info; for (i=0; i gist Yorick classic msh msh mpl Matplotlib gmt Generic Mapping Tools cb-seq ColorBrewer Sequential cb-div ColorBrewer Diverging cb-qual ColorBrewer Qualitative gpl Gnuplot False True False vertical True False liststore1 1 0 0 1 False True 0 True True True in 630 133 True False center center True True False True 1 yorick-gy-0.0.5/gyhelloworld.i000066400000000000000000000026061217542510100163200ustar00rootroot00000000000000/* This file is the standard "Hello World!" example written using gy. Below is also an example using a glade file. */ /* Copyright 2013 Thibaut Paumard This file is part of gy (GObject Introspection for Yorick). Gyoto 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. Gyoto 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 gy. If not, see . */ #include "gy_gtk.i" func gyhelloworld_print(wdg, event, userdata) { "Hello World!"; return 1; } func gyhelloworld(glade) { Gtk=gy_gtk_init(); if (glade) { main_window_name="window1"; builder = gy_gtk_builder("gyhelloworld.xml"); win = builder.get_object(main_window_name); gy_signal_connect, builder; } else { win = Gtk.Window(); button = Gtk.Button(label="Hello World!"); noop, win.add(button); gy_signal_connect, button, "clicked", gyhelloworld_print; } gy_gtk_main, win, on_delete=2; } gyhelloworld; yorick-gy-0.0.5/gyhelloworld.xml000066400000000000000000000013271217542510100166670ustar00rootroot00000000000000 False Hello World! False True True True False yorick-gy-0.0.5/mpl-cmap.png000066400000000000000000000570111217542510100156470ustar00root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 lp8ضmn+o޼wa׎L؈grssF^;v;Qb`…~Ncb6%Kȑ#@eeGo9s&BBB_R޾}vyURpE&lDDD4rz}QvΜ9]6j";;SL=ˏu:Xˏj5N'Q__yddGYZ= Ԡ EEE8pV\lذ|PP +V@uu5:::`ِHOO~V$%%!##fpkG%"""9}"0lڴiP---Eii9FDDD>sA ""!!!0L(..FLL̠˗c ön:۷ڑ3lDDD3bsw;x{}٘={mown 0DŽh)Q"""ra 6"""" @Y2}U]T*i{898=0:e%zUTq`09qL*T*Ո 0UDDDpW9FDDDCk֬All,4|իW\QªU DFF"33uuurNI{z-F#,, x"V+F#4 bbbP#55'p=Gb䢃} ==r QFӡr>5zng_}UlܸQu}?яmmm !)) p h4(Nz„ hjjɓ'C,  ]v!>>mmm(//jEvv6L嚛oofHqq^S7'~.jNݷW^d  555hjjBQQ8+W6lEEEt:7yOogرJ&lDDD\")) 0.=gEyy9:;;ֆjlٲE>}9z|eѢE{G}|u؈hȕkiiiw8~81k,+*NgϞE{{; 7ÇގgbƌgΜ9~ݎL؈g>wOϟ^TVVHKKCPPy:tUUUz:j56"""bŊFGGl6 XVl6L&dBmm-F Uo8oQGU#Ȼ5UE' a -.*۾#00r ƍWbܸqPQ-2 X,0tSX`t:Z-RSS7bNTDDD3*((@YY*++xmڵغu>.o+))AIIɈiGΰFTUU0( )'4''vzp8^gFDDD4XHHHF^ǎ;ǎ(kXpB+=zsN `0`ΝL؈+66fsk׮ۧMƄh>(VUA `XfCVV ==}pBMM :::PYYe˖v*Q"""ӧO#11Q-,, 6m>rrr{lD-4g؈g<DDD $$& ň>QRR V`Ϟ=  9%9kݪl^|EKؿ?j5.]/F&lDDD43 믿Dh+((j'⩧Bii)f~ΰѰg2`2F 6""""aޥ>IIENDB`yorick-gy-0.0.5/msh-cmap.png000066400000000000000000000252051217542510100156460ustar00rootroot00000000000000PNG  IHDRb.sRGBbKGD pHYs  tIME *M IDATxLTg/ad t(Q*5fC z[hvɭݮ bll-MkK YE]aZ.bkH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=Y^^|8|7{+V?OX(>""" ICTy>oMɓ'n:!:: .K/gϢ>bEt QXX`EQN` J9keʜ`MMwKyE\oS$qbIb^gO17cb{1$%+-ccc|(++ボ5b\#f qy׈l13o1q϶5b[EWWtr eEֆ={`ҥp8p8@YYΞ=>hnnƦM$رc|"Ɗ+b"Ɗ+bĊ'bDDDDĉ'bDDDD:-J`\79}-,*yKyI>qtq kH~OG/+V/[ /Yq<׉ دlqdy%D<8n7ly&Iզ[oz/Y?DYE ߄aяl\6ŸCz>","~yB\dyi1,3ϣ=gUUx?X秨/l!VĈ8#""ǜ(?q"FDDDĉq"FDDDߏ#..NEEEx.fۘpp:6/_[⩧nGjj*^~etwwr-^C;wQ(Gj:::(8uX,_B Dhnn(nݺ'O"??07x[nE[[nݺFuu5z{{ʕ+˵n:@KKvp \^0cӦM8y$^q\p;wq"FDDD ǃQx^n~TTTbkkkQWWUUS~ @ ӧO'ӧ199kϔZ ;v9rd>g S_sB?GL9b ?G#y<,#&c1}(/y^dffj^/r۫mllڵk \.500 `Ŋ~ctt'ODbb"^u$&&8 αa-3 Ϝ@]]|> 8wjjjtq11׈~\#N^aֈIHHAzz.68_t%n-JZڪ7o"11Coo/\.rp8p\z1jѬs1!)) sEaa!t'+hmmŖ-[`DEEa())1L >>ncccXj\.`8rrrt0VXcE1VXcEG"Fq"FDDDDq"FDDDDsxIENDB`yorick-gy-0.0.5/yorick-gy.aliases000066400000000000000000000000071217542510100167040ustar00rootroot00000000000000gy gy0 yorick-gy-0.0.5/yorick-gy.keywords000066400000000000000000000000701217542510100171320ustar00rootroot00000000000000gobject introspectrion gtk GUI graphical user interface yorick-gy-0.0.5/yorick-gy.packinfo000066400000000000000000000002551217542510100170620ustar00rootroot00000000000000:newsubsection yorick-gy: gobject-introspection :gy access gobject-introspection libraries :gy_gtk convenience functions for writing Gtk-based graphical user interfaces