Thread: [cedet-eieio] customization
Brought to you by:
zappo
From: Pierre L. <pol...@wa...> - 2007-06-26 13:27:46
|
Hi I am very interested in using the customizing facilities provided by the eieio package. But ! I defined a class whose only slot is a list which will be filled with objects. So the custom type I found the most appropriated was (repeat object). ex : (defclass test () ((list :custom (repeat object)))) Objects are very simple objects in order to test the mechanism. When an object is created and customized with eieio-customize-object everything goes well : it displays correctly as would display any editable-list. It means with the ins and del button for each itm. But when trying to click the ins button an error occurs ! "No create method specified" This error comes from the eieio-object-value-create method. Indeed this method tries to retrieve :objecttype) or or :objectcreatefcn attribute from the newly created child widget. But method widget-editable-list-entry-create in the wid-edit library does not set any of this attributes. So what does this mean ? Can't we use the repat type without any slight modification ? Do we have to define a slightly modified type to handle this creation problem ? Once more, if there is something to implement I can try to do it but I only want to be sure that it is not something that I misunderstood ! Regards Pierre |
From: Pierre L. <pol...@wa...> - 2007-06-27 12:55:24
|
Hi, Sorry ! From: Pierre Lorenzon <pol...@wa...> Subject: [cedet-eieio] customization Date: Tue, 26 Jun 2007 15:27:03 +0200 (CEST) > > Hi > > I am very interested in using the customizing facilities > provided by the eieio package. But ! > > I defined a class whose only slot is a list which will be > filled with objects. So the custom type I found the most > appropriated was (repeat object). No ! > > ex : (defclass test () ((list :custom (repeat object)))) > > Objects are very simple objects in order to test the > mechanism. When an object is created and customized with > eieio-customize-object everything goes well : it displays > correctly as would display any editable-list. It means with the > ins and del button for each itm. But when trying to click the > ins button an error occurs ! > > "No create method specified" > > This error comes from the eieio-object-value-create > method. Indeed this method tries to retrieve :objecttype) or > or :objectcreatefcn attribute from the newly created child Yes and they have to be set in the the type declaration ! > widget. But method widget-editable-list-entry-create in the > wid-edit library does not set any of this attributes. > > So what does this mean ? Can't we use the repat type without > any slight modification ? Do we have to define a slightly > modified type to handle this creation problem ? > > Once more, if there is something to implement I can try to do > it but I only want to be sure that it is not something that I > misunderstood ! In dded there was something I misunderstood ! > > Regards > > Pierre Regards Pierre |
From: Eric M. L. <er...@si...> - 2007-07-04 20:59:45
|
Hi, I looked in the eieio.texi file, and there is no reference to the items you recently were confused about, and then discovered how to use. I must profess, I don't remember! Could you look at the eieio.texi file in the "Customization" section, and perhaps suggest an addition that would have helped you solve your problem more easily? Thanks! Eric >>> Pierre Lorenzon <pol...@wa...> seems to think that: >Hi, Sorry ! > > >From: Pierre Lorenzon <pol...@wa...> >Subject: [cedet-eieio] customization >Date: Tue, 26 Jun 2007 15:27:03 +0200 (CEST) > >> >> Hi >> >> I am very interested in using the customizing facilities >> provided by the eieio package. But ! >> >> I defined a class whose only slot is a list which will be >> filled with objects. So the custom type I found the most >> appropriated was (repeat object). > > No ! > > >> >> ex : (defclass test () ((list :custom (repeat object)))) >> >> Objects are very simple objects in order to test the >> mechanism. When an object is created and customized with >> eieio-customize-object everything goes well : it displays >> correctly as would display any editable-list. It means with the >> ins and del button for each itm. But when trying to click the >> ins button an error occurs ! >> >> "No create method specified" >> >> This error comes from the eieio-object-value-create >> method. Indeed this method tries to retrieve :objecttype) or >> or :objectcreatefcn attribute from the newly created child > > Yes and they have to be set in the the type declaration ! > >> widget. But method widget-editable-list-entry-create in the >> wid-edit library does not set any of this attributes. >> >> So what does this mean ? Can't we use the repat type without >> any slight modification ? Do we have to define a slightly >> modified type to handle this creation problem ? >> >> Once more, if there is something to implement I can try to do >> it but I only want to be sure that it is not something that I >> misunderstood ! > > In dded there was something I misunderstood ! > > >> >> Regards >> >> Pierre > > Regards > > Pierre > > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >cedet-eieio mailing list >ced...@li... >https://lists.sourceforge.net/lists/listinfo/cedet-eieio > |
From: Pierre L. <pol...@wa...> - 2007-07-05 06:45:47
|
Hi Eric ! Thanks for your answer ! From: "Eric M. Ludlam" <er...@si...> Subject: Re[2]: [cedet-eieio] customization Date: Wed, 4 Jul 2007 16:59:37 -0400 > Hi, > > I looked in the eieio.texi file, and there is no reference to the > items you recently were confused about, and then discovered how to > use. I must profess, I don't remember! > > Could you look at the eieio.texi file in the "Customization" > section, and perhaps suggest an addition that would have helped you > solve your problem more easily? Sure I can do it ! I know ! It is not enough to modify the code ! It is better to modify the doc as well ! But it is often a matter of time ... Regards Pierre |