Re: DIA extend properties
Am 01.04.2015 um 19:21 schrieb Yosua Alvin Adi Soetrisno: Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still on progress working my master thesis. I'd like to develop OpenERP module based on DIA OpenERP Interface. After some googling I still don't know what Dia OpenERP interface you are referring to. IIRC once upon a time there was some EERP plug-in with Dia, but it had to be removed for license reasons. The other thing I've found is a blog entry talking about a Dia plug-in installation _for_ OpenERP [1]. This seems to be interfacing Dia's UML - CLass (the most complex object with Dia). My problem is I can't extend default object properties with custom data type like properties list. Custom data types are only working for shapes, not for built-in objects (again IIRC). I want to ask how to compile DIA with make, but there is some customization in dispcallback.c with include Python.h, Did compilation work for you before you made your modification? If so you might need some extra includes and libs in app/Makefile.am to make your modification compile and link. See plug-ins/python/Makefile.am for Python inclusion and linking. A better solution would be to follow the existing design: - Python _scripts_ to be registered/invoked by the PyDia plug-in (see plug-ins/python/*.py for some working scripts) i want to extend some right click properties with custom Python GTK Window, so i linked it with C script If this is just for your local version: happy hacking ;) But if you want to contribute your modification back to the community you should take a different approach: - only the PyDia plug-in shall include Python headers and link Python libs - use the existing mechanism to register PyDia plug-ins dynamically - call dia.register_action() in your script - place the script into one of the python directories created during installation (i.e. ~/.dia/python IIRC) Thanks before, I've referenced by Lars Causen to ask in mailing list Welcome to Dia development. Don't hesitate to ask for further details if the source code or it's documentation are unclear. Regards Yosua Alvin HTH, Hans [1] http://fheopenerp.blogspot.de/2011/09/dia-plug-in-installation-for-openerp-6.html Hans at Breuer dot Org --- Tell me what you need, and I'll tell you how to get along without it.-- Dilbert ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: DIA extend properties
On 01/04/15 10:21, Yosua Alvin Adi Soetrisno wrote: I want to ask how to compile DIA with make Hi. What happens when you try it? ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
DIA extend properties
Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still on progress working my master thesis. I'd like to develop OpenERP module based on DIA OpenERP Interface. My problem is I can't extend default object properties with custom data type like properties list. I want to ask how to compile DIA with make, but there is some customization in dispcallback.c with include Python.h, i want to extend some right click properties with custom Python GTK Window, so i linked it with C script Thanks before, I've referenced by Lars Causen to ask in mailing list Regards Yosua Alvin ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: DIA extend properties
Your message is received, but I do not know the answer. Someone will write back who does know. On Wed, Apr 1, 2015 at 1:21 PM, Yosua Alvin Adi Soetrisno yosuaalvin.mt...@mail.ugm.ac.id wrote: Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still on progress working my master thesis. I'd like to develop OpenERP module based on DIA OpenERP Interface. My problem is I can't extend default object properties with custom data type like properties list. I want to ask how to compile DIA with make, but there is some customization in dispcallback.c with include Python.h, i want to extend some right click properties with custom Python GTK Window, so i linked it with C script Thanks before, I've referenced by Lars Causen to ask in mailing list Regards Yosua Alvin ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia -- To invent, you need a good imagination and a pile of junk. Thomas A. Edison http://www.brainyquote.com/quotes/quotes/t/thomasaed125362.html A public-opinion poll is no substitute for thought. *Warren Buffet* Michael E. Ross (919) 585-6737 Land (919) 576-0824 https://www.google.com/voice/b/0?pli=1#phones Google Phone (919) 631-1451 Cell michael.e.r...@gmail.com michael.e.r...@gmail.com ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia