Re: Making plugins



Hi again!
I've made a very simple diagram of what it shoud be. It is not nice, it is
just how it could work. It is not the way it should look like, because it will
be based on some kind of standard.
Don't spend too much time on that, I got all the time I need to do it,
document it, document about making plugins and all. I should begin by
documenting (in french and then in english) how to make the kind of plugins I
need and then go on to programming. As I have never used Gtk and his friends
before, it should take some time, I'm actually learning all that, it's full of
tutorials.
We use several applications to have different system views to create the
systems and then we will use dia for schematics output because we can create
the plugins and custom shapes we need. The documentation is for the future
maintainers of the applications used to make all the board logical schematics.
The plugins I make should have future developpements to be easier to use,
support the standards, making bigger systems...

The connectors should always be inside the board, so I'll look about
parenting.
When the board is too small, it should enlarge to carry up more connectors. I
don't know yet about size of all this, but allowing to resize it could make
strange things. The connections between boards and subsubsystems should have a
special aspect, maybe I will have to make some special kind of zigzagline. We
will be adding some sets of shapes, but it should mostly be specific shapes
for the systems we make, so, not useful for anyone, but I'll hand those that
should be reusable (and not "classified" ;) ) or have interesting code for
future dynamic shapes.

Regards,
Clément

Lars Clausen a écrit :

On Thu, 2005-03-17 at 11:44 +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)

Look at the xfig plugin for a good example of that.

- 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!

An extendable board is doable, though probably a bit tricky.  Chronogram
should show you some of the ropes.  You may consider using the parenting
system for the connectors, if they're always to be inside the board.
Though I don't think the parent gets notified of children being added.

Could you do a quick mock-up of what this would look like in use, that'd
give me a much better idea of where you want to look.

-Lars

--
Lars Clausen <lars raeder dk>

_______________________________________________
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

Attachment: board-example.dia
Description: application/dia



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