[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Making plugins



Clement,

I too am making a C-based plugin. I started with the chronogram library as it seemed to use the standard Dia property management system. Some quick notes on the integration of the new plugin:

1. The plugins in are in the objects subdir, forking mostly involves copying and renaming.
2. The Makefile.am in objects will need to know about your new plug-in as well.
3. You'll need to create a stencil (?) sheet in the sheets directory so that the Dia gui will know about your plugin. Makefile.am needs to be edited here as well.


I am finding that the standard property management system wasn't expressive enough to deal with lists of structures - I have to use the techniques found in the UML library. Note as well that the GtkList structure that the UML plugin uses is also deprecated in the latest GTK+. I'm having to write my own using GtkListStore, etc. which is adding a lot of coding work.

Good Luck!

--Larry


At 11:44 AM 3/17/2005 +0100, clement begue wrote:
Hi everyone!
I am actually trying to see how to make plugins in Dia.
The type of plugins I need to make is (tell me if those things are not
to be done this way) :
- Import plugins (generating a diagram from the output of a program we
have here)
- Shapes with a specific dialog and attributes.

I read in this mailing list that I should not use the UML attributes
dialog as an example, so what should I base my work on?
The kind of shape I need to make would be somewhat dynamic.
I mean, I put the shape (the shape is a kind of electronic board) on the
diagram, open properties, and then I want to be able to add connectors
(rectangles with a name) on the border of the board that would set in
the right place directly (the first on upper left and then the
connectors are added all around the board and not over a previous
connector, enlarging the board if it is needed).
Am I dreaming of something that isn't possible? I would love to do such
thing much better than 200 shapes for all kind of boards and number of
connectors!

Thanks in advance for the answers!

Regards,

Clément

_______________________________________________
Dia-list mailing list
Dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK