multi fields

2006-07-24 Thread lidiriel
ter. What's the method for use a table ? It is good ? 2=> What is PROP_TYPE_DARRAY ? I don't found a simple example only with uml plugin and this plugin is complicated... thanks for your help ! Lidiriel /* Object Menu definition */ typedef struct _Menu { Element element;

create python dia plugin : need help !

2006-07-26 Thread lidiriel
I have recompiled dia 0.95 on linux. I paste into ~/.dia/python/hello.py , the hello code found in this mailling list : import dia def hello_callback(data, flags): print "Hello, Dia!\n" dia.register_callback("Hello, world", "/Plugins/Hello", hello_c

Re: create python dia plugin : need help !

2006-07-26 Thread lidiriel
Robert Staudinger wrote: > > The API has changed as Dia has been moving from using the deprecated > GtkItemFactory to GtkActions. Dia's existing plugins have been > updated, check [1] for reference. > > [1] > http://cvs.gnome.org/viewcvs/dia/plug-ins/python/debug_objects.py?rev=1.5&view=markup

export filter

2006-07-27 Thread lidiriel
ppress the message) (For information the export file is not a graphical file but a script file) lidiriel ___ 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 pa

access to custom object properties in plugin

2006-07-28 Thread lidiriel
lidiriel wrote: > Hello, > > now i stop my python development and i began a new export filter in C. > I created fews objects in new lib and i try to generate an export file. > I use the method : > static void draw_object(DiaRenderer *self, DiaObject *object) for > det

Re: access to custom object properties in plugin

2006-07-28 Thread lidiriel
rop = object_prop_by_name(dObj, "value"); val = ((EnumProperty *)prop)->enum_data; if(val == BAY_BOUNDARY_BEGIN){ /* ... */ } It's work... that's cool ! I like dia :) It's time f

line object

2006-08-01 Thread lidiriel
Hello, for a plugin : I must know those 2 objects which are connected to a begin and the end point of a line. For information the connection point of the line is not use. How I made this ? thanks for your help ! Lidiriel. ___ Dia-list mailing list

Re: line object

2006-08-01 Thread lidiriel
Lars Clausen wrote: > On Tue, 2006-08-01 at 17:35 +0200, lidiriel wrote: >> Hello, >> >> for a plugin : >> I must know those 2 objects which are connected to a begin and the end >> point of a line. For information the connection point of the line is not >

stringlist

2006-08-04 Thread lidiriel
, is complicated to write ? or how i save a GList of gchar when the number of char are variable (user can add or delete a text field). thanks Lidiriel. ___ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at

Re: line object

2006-08-04 Thread lidiriel
lidiriel wrote: > Lars Clausen wrote: >> On Tue, 2006-08-01 at 17:35 +0200, lidiriel wrote: >>> Hello, >>> >>> for a plugin : >>> I must know those 2 objects which are connected to a begin and the end >>> point of a line. For information the

Re: stringlist

2006-08-09 Thread lidiriel
On Tue, 2006-08-08 at 17:36 +0200, ludovic mercier wrote: > Le vendredi 04 août 2006 à 17:51 +0200, Lars Clausen a écrit : > > On Fri, 2006-08-04 at 17:25 +0200, lidiriel wrote: > > > They should be fairly easy. Check out pointarrayprop_load and _save in > > prop_geomty

bug in stringlist ?

2006-08-09 Thread lidiriel
(Diagram *dia, DiaObject *obj) { layer_add_object(dia->data->active_layer, obj); diagram_modified(dia); diagram_tree_add_object(diagram_tree(), dia, obj); } ... probably i don't use correctly this type ?? Sommeone have an example of uses for this type

Re: bug in stringlist ?

2006-08-10 Thread lidiriel
In two case the PropOffset is : { "foo", PROP_TYPE_STRINGLIST, offsetof(TheObject, foo) }, with the var GList * foo; Lidiriel ps : Sorry if i send this mail twice... ___ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org/mailman/

Re: Drawing GUIs

2006-08-10 Thread lidiriel
ween them) really well, but Glade or even Gimp would > > be more useful for creating those. > > > > -Lars Hello Pablo, you can try xfig for this with the "interface library" . Lidiriel ___ 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

stringlist

2006-08-11 Thread lidiriel
e function : stringlistprop_set_from_widget(...) is full. Where i can look for this in dia code ?? Lidiriel ___ 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.or

graph algo

2006-08-11 Thread lidiriel
Hello I think it will be interresting for next dia development to create a class object whitch implement different graph algorithm. Like Depth-first search algorithm, and other. what think about it ? Lidiriel. ___ Dia-list mailing list Dia-list

Re: graph algo

2006-08-11 Thread lidiriel
On Fri, 2006-08-11 at 18:29 +0200, Lars Clausen wrote: > On Fri, 2006-08-11 at 17:50 +0200, lidiriel wrote: > > Hello > > > > I think it will be interresting for next dia development to create a > > class object whitch implement different graph algorithm. > >

PropDescription & extradata

2006-08-22 Thread lidiriel
inter will be modify in the update_object function. And how i made this ?? because the now i have an error "initializer element is not constant" Have you any idea ? Lidiriel. ___ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org

Re: PropDescription & extradata

2006-08-24 Thread lidiriel
Ok with the adress of Glist pointer it's work. On Wed, 2006-08-23 at 16:43 +0200, ludovic mercier wrote: > Le mardi 22 août 2006 à 17:48 +0200, Lars Clausen a écrit : > > On Tue, 2006-08-22 at 17:20 +0200, lidiriel wrote: > > > Hi, > > > > > > in the PropD