UrShape definition Part III

2001-06-27 Thread Andre Kloss
Good morning, fellow developers and mailing list readers! After a night of good sleep (which I have rather seldom these times) I have some ideas of how to improve the header further. So I think, it's time for Part III, so people can see any advancing. ;) What I like to do in this part is definin

Re: UrShape definition Part II

2001-06-27 Thread Andre Kloss
Hi again. > > In my opinion it will rather be an element (post if you disagree). > > It's really up to you. Basically, you have these ancestors: > Object -- when nothing else fits The lowest denominator. Object is what I'll resort to if someone dislikes the limitations of Elements. >

Re: GTK+ 2.0 widget for dia

2001-06-27 Thread Cyrille Chepelov
Le mer, jun 27, 2001, à 08:44:36 +0200, Xavier Ordoquy a écrit: > I just looked a bit in diagramdata.c and dia-newcanvas looks pretty > similar. I think Jamesh would explain better than I can do how this > fits, but looks like it's fine. > dia canvas has items (line, rectangle, ...) with some pro

Re: UrShape definition Part II

2001-06-27 Thread Cyrille Chepelov
Le mer, jun 27, 2001, à 08:14:43 +0200, Andre Kloss a écrit: > > OTOH, every UrShape (if UrShape are really seen as objects by the > > core) should have at least an Object as their first member > > (usually named obj if it's an Object, elem if it's an Element, and > > so on). > In my opinion it w

Re: GTK+ 2.0 widget for dia

2001-06-27 Thread Xavier Ordoquy
> Hmmm... could the Renderer interface be synced with dia's ? (namely, the > prerender_string() method [a no-op in the gtk renderer, some stuff in > lib/diagramdata.c, if that applies to dia-newcanvas]. There has also been > some discussion to help support groups for export renderers (would be

UrShape definition Part II

2001-06-27 Thread Andre Kloss
Cyrille: Thanks for this enlighening answer. To anyone else: > This is somewhat of a mess now, but it's also the way to integrate into the > dia core without it really knowing the UrShapes are special (which it > shouldn't, until the UrShape code is considered "core" like stdprop now is). Yep. I

Re: GTK+ 2.0 widget for dia

2001-06-27 Thread Cyrille Chepelov
Le mer, jun 27, 2001, à 05:47:35 +0200, Xavier Ordoquy a écrit: > Hi all. > > I've just read one mail about the dia port to gtk+2.0 and later, gnome > 2. > I have taken over the dia-newcanvas widget that was initiated by james > henstridge. The widget is under developement but can be usefull > fo

Re: UrShape definition Part I

2001-06-27 Thread John Palmieri
Hey Andre, check out my UrShape and GObject post. I think this will solve a lot. They are basically non-gui Gtk objects. Andre Kloss wrote: > Hi again. > > > Could someone give a brief overview of what the ObjectOps and ObjectType > > stuff do? Is this still used or is it depricated in the Std

Re: UrShape definition Part I

2001-06-27 Thread Cyrille Chepelov
Le mer, jun 27, 2001, à 06:17:45 +0200, Andre Kloss a écrit: > > Could someone give a brief overview of what the ObjectOps and ObjectType > > stuff do? Is this still used or is it depricated in the StdProps code? > Well, I don't know. I just found it in the source and it looked > reasonable to m

Re: UrShape definition Part I

2001-06-27 Thread Andre Kloss
Hi again. > Could someone give a brief overview of what the ObjectOps and ObjectType > stuff do? Is this still used or is it depricated in the StdProps code? Well, I don't know. I just found it in the source and it looked reasonable to me. Cyrille? James? Someone? > > int max_children; > We d

GTK+ 2.0 widget for dia

2001-06-27 Thread Xavier Ordoquy
Hi all. I've just read one mail about the dia port to gtk+2.0 and later, gnome 2. I have taken over the dia-newcanvas widget that was initiated by james henstridge. The widget is under developement but can be usefull for dia. It will mostly care about the item selection, movement, grabbing, snapp

UrShape and GObject

2001-06-27 Thread John Palmieri
Well I just got finished reading about GObject and am convinced they are the way to go. They OO and provide for signal and slots which solves the callback stuff. The only problem is that to use them requires GLib-2.0 and GTK+ 2.0 which may cause your systems to become unstable. Bleeding edge bab

Re: UrShape definition Part I

2001-06-27 Thread John Palmieri
Andre Kloss wrote: > Hi, there. > > Since I don't see anyone providing a basic UrShape definition, I'll > try to write one myself. It is far from complete, but I need to > advance with this project, since my profesor will stop me from using > dia if I don't have a "working draft" of a UrShape b

UrShape definition Part I

2001-06-27 Thread Andre Kloss
Hi, there. Since I don't see anyone providing a basic UrShape definition, I'll try to write one myself. It is far from complete, but I need to advance with this project, since my profesor will stop me from using dia if I don't have a "working draft" of a UrShape by Friday. typedef struct UrShape