On Tue, 8 Jun 1999, Alexander Larsson wrote:
> > 1. How do I draw a partial ellipse?
> Use the draw_arc function. It doesn't need to have the same width and
> height.
Thanks.
> > 2. How do I ensure that, as the object gets resized,
> > the semicircles remain regular?
> What do you mean by regular? Do you mean non-elliptical?
I mean as tall as it is wide (or rather, twice as tall, since it's
a semicircle).
> You'd have to write some code for that.
Write code? Erk... :)
It seems that reading some code should be my first priority :)
> > So far, my objects are based on the code from
> > objects/network/computer.c which seems just to render
> > the object at creation time and leave the interface to
> > handle resizes, &c. While this seems very nice and
> > quite flexible, I'm not exactly sure how to go about
> > making the object change shape when it gets resized.
>
> Yes, using the RenderObject makes it very easy to create objects, but
> you are somewhat limited. Doing all yourself isn't much harder, and
> lets you controll much more. Check out the code for other objects.
> Particulary those in objects/standard/.
Can I have the RenderObjects resize my objects (the simpler ones, at
least) when I enter text in them, or do I have to implement that myself?
> Also check out the corner rounding of the normal box object. It's
> close to what you want.
Good idea, thanks.
> > I've also been playing with Oracle and have some Perl
> > to turn a table list into SQL creation scripts. I'd
> > like to hack something like Visio's database map into
> > dia, but I'm not rightly sure where I should start.
> >
> > Should I be able to hack something like that in without
> > seriously disrupting anything?
>
> You could do it either as an external script creating xml files. This
> wouldn't touch Dia at all. Or you could add some plugin interface to
> Dia. This is partly done (at least planned and as such part of the
> design), so it shouldn't be too much work.
The plug-in thing sounds interesting. How do you envisage it working? The
GIMP PDB seems like a nice simple extension mechanism, but Dia seems to be
a little more OO than Gimp, so maybe it wouldn't fit so well.
Matthew.