Re: [Gimp-developer] How to edit context menu?
hi, I am very very thankful for your help!!! After 3 days working, I already done this job! Without your help, I wont finish it. Thx so much! -- Bear 2010-06-26 - From:Bill Skaggs Send Date:2010-06-22 06:45:50 To:Bear CC:gimp-developer Subject:Re: Re: [Gimp-developer] How to edit context menu? It isn't as bad as it looks. The im_menu stuff all relates to a special submenu, and you can discard it. The rest you can replicate as is (with the obvious changes). Here is a quick summary of how to create a context menu for a tool: 1) Create a get_popup handler similar to gimp_text_tool_get_popup. 2) Create menu actions by creating a file similar to app/actions/text-tool-actions.c. 3) Create menu commands by creating a file similar to app/actions/text-tool-commands.c. 4) Define the menu structure by creating a file similar to menus/text-tool-menu.xml. It should be possible to do most of this without a very deep understanding of the code. -- Bill ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] How to edit context menu?
hi, Maybe my poor english made you confused about my task? I have some knowledge on gtk+. My task is to response the right-click message on canvas. Is this clear? The original responding is to popup a menu which as same as the menubar. I wanna modify it. For example, to popup a message box or new window and so on. -- Bear 2010-06-21 - From:Sven Neumann Send Date:2010-06-20 04:31:11 To:Bear CC:gimp-developer Subject:Re: [Gimp-developer] How to edit context menu? On Sat, 2010-06-19 at 23:49 +0800, Bear wrote: hi, Er... but my work is to make it popup something like a new window instead the original context menu... Could you help me? thx! Are you familiar with GTK+? If not, please read the documentation and tutorials before you ask here. We can certainly help you with GIMP specific questions, but I get the impression that you are lacking some fundamental GTK+ knowledge that is absolutely essential for what you are trying to achieve. Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] How to edit context menu?
hi, I wanna edit my GIMP's context menu. Now the context menu is as seems as the menu bar. I wanna use my customized context menu to replace the original one. I found some clue in app/widgets/gimpuimanager.c:573 which say: void gimp_ui_manager_ui_popup (GimpUIManager*manager, const gchar *ui_path, GtkWidget*parent, GimpMenuPositionFunc position_func, gpointer position_data, GDestroyNotifypopdown_func, gpointer popdown_data) but how to do next? thx!! -- Bear 2010-06-19 ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] How to edit context menu?
hi, Er... but my work is to make it popup something like a new window instead the original context menu... Could you help me? thx! -- Bear 2010-06-19 - From:Michael Natterer Send Date:2010-06-19 23:05:54 To:Bear CC:gimp-developer Subject:Re: [Gimp-developer] How to edit context menu? On Sat, 2010-06-19 at 20:29 +0800, Bear wrote: hi, I wanna edit my GIMP's context menu. Now the context menu is as seems as the menu bar. I wanna use my customized context menu to replace the original one. I found some clue in app/widgets/gimpuimanager.c:573 which say: void gimp_ui_manager_ui_popup (GimpUIManager*manager, const gchar *ui_path, GtkWidget*parent, GimpMenuPositionFunc position_func, gpointer position_data, GDestroyNotifypopdown_func, gpointer popdown_data) but how to do next? thx!! Hi, edit menus/image-menu.xml.in, there is no need to change anything in the source. ciao, --mitch ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] How to create a new tool?
hi, Thx for ur answer. I have added my new file into Makefile. I fork a new tool because my teacher asked me to do... -- Bear 2010-06-14 - From:Alexia Death Send Date:2010-06-14 15:53:08 To:Bear CC:gimp-developer Subject:Re: [Gimp-developer] How to create a new tool? On Mon, Jun 14, 2010 at 6:39 AM, Bear jiling...@gmail.com wrote: hi, I am a newbie on GIMP development. Now I wanna create a new tool. For example, I wanna create a Text Tool which as same as GIMP owned. Did you add your new files into the build system as well? That aside, any development effort is better spent against git, so if you are working on a stable source, just get GIT. Also, Id advise against forking the text tool like that. Either change the existing tool if its going to be an improved text tool(Git will help you keeping track of your changes) or rename it to something you want to make out of it right way. these numbered forks, even if they produce any code worth file are near impossible to merge and sensibly maintain. -- --Alexia ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] How to create a new tool?
hi, thx for your help! Its helped me solved my problem! And I have another question: How to modify the context menu? I wanna to edit two context menu, one is the one when Text Tool is actived, the other one is the one when I right-click on canvas. Could you tell me which file should I modify? thx! -- Bear 2010-06-14 - From:Bill Skaggs Send Date:2010-06-14 13:56:08 To:Bear CC:gimp-developer Subject:Re: [Gimp-developer] How to create a new tool? At a minimum, you need to add your new tool to the list in app/tools/gimp-tools.c, so that it will be registered. You'll also have to rename some things to avoid duplicate names -- maybe you've already done this but you didn't say so. -- Bill ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] How to create a new tool?
hi, I am a newbie on GIMP development. Now I wanna create a new tool. For example, I wanna create a Text Tool which as same as GIMP owned. I copyed these files: app/tools/gimptext.c app/tools/gimptext.h app/tools/gimptext-editor.c app/tools/gimptext-editor.h add rename them to app/tools/gimptext2.c app/tools/gimptext2.h app/tools/gimptext2-editor.c app/tools/gimptext2-editor.h When I recompiled GIMP, only one text tool is shown. What shall I do? thx! -- Bear 2010-06-14 ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] About GSoC
On Sun March 23 2008 19:39:42 Sven Neumann wrote: I might be totally wrong on this, but as far as I know GTK+ applications use the GTK+ input methods framework. The details of SCIM should be hidden behind that abstraction. We should definitely continue to do this, on the canvas, as in our text entries. One one of the main goals of this project is to allow text input on the canvas without compromising the ability to use the GTK+ input methods. Thank you for pointing out my mistake. Frankly, I don't know clearly about how GTK+ work. I'm sorry I assumed that as a matter of course. As a student interested in image processing, I hope I could program for gimp, and GSoC is a chance for me. In order to avoid to be unrealistic, I read the Ideas list on the wiki, and tried to find which project fit for me. In view of my native language, I chose On-canvans text editing at first. But it seems the compatibility of input method is not a problem, so I think On-canvas text editing is not the most fit project for me. Another project I was interested in is about the UFRaw plug-in. The web site ufraw.sourceforge.net said there are three important features which are still missing in UFRaw : 100% Zooming, Sharpening, and Embed EXIF data. Although I have little experience of developing a GUI program, I'm self-confidence with my knowledge about signal(Esp. 2-D image) processing theory. I wish to work for 100% Zooming or Sharpening, because I think image processing theory is needed in those projects. Best wishes, Zhang Junbo ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] how layers actually get merged?
hi, Assume there are four layers, all of which are in Normal mode and grayscale. for a specific pixel in each layer, Their intensity and alpha values(mapped to [0,1]) are i1,a1 i2,a2 i3,a3 i4(background) the merged intensity is ((i1*a1+i2*(1-a1))*a2+i3*(1-a2))*a3+i4*(1-a3) am I correct? Thanks! ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] how floating selection actually anchor?
in PDB, Doc of gimp-floating-sel-anchor reads: This procedure anchors the floating selection to its associated rawable. This is similar to merging with a merge type of ClipToBottomLayer. The floating selection layer is no longer valid after this operation. What is the exact merging algorithm for ClipToBottomLayer? can someone describe it in details using pixel operations? ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer