Re: Adding shapes to dia



Hello Thimo,

Yes please. If you can send me the draft version that would be great,
maybe I can even add my experience to it ;-)

Thanks.
Robert

On Tue, 2010-10-26 at 12:12 +0200, Thimo Langbehn wrote:
Dear Robert,

Is there a detailed tutorial on how to add sheets/shapes to dia?

there is a tutorial, however it is not yet ready for publication.
Nevertheless, it might be of help to you even in its current state.
If you are interested, I can send you a copy.

This is my problem:
I like to add/change a sheet to the dia core.
So I copied the SADT.sheet.in to mySADT.sheet.in and the SADT sub-dir to
mySADT. 
Changed the file names "box.c" to "mybox.c"
Changed the references to the SADT shapes into mySADT shapes (mySADT -
fbox).
Changed the library reference (libmysadt_objects.la)
Changed the objects/Makefile.am
Changed the sheets/Makefile.am
Added "objects/mySADT/makefile to AC_OUTPUT in configure.in

Now if I run ./autogen.sh, ./configure and make all is fine (no errors).
If I start Dia (./app/run_dia.sh ) Dia runs as expected. I can even see
me sheet (mySADT) BUT there are no shapes visible. I can not select
anything.

Verify that the name in the mySADT.sheet.in (object name="XY") is the
same as in your mybox.c (ELEMENT_NAME="XY") and that the object file for
your shape is build.

Regards,

Thimo Langbehn
_______________________________________________
dia-list mailing list
dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia





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