Thread: [Java-gnome-developer] Editable_cells from gtk-demo cloned
Brought to you by:
afcowie
From: Luca De R. <pie...@li...> - 2003-11-19 15:15:07
Attachments:
EditableCells.java
|
Here it is for your pleasure ;) Since (as I said) I'm a beginner, any comments on this will be very appreciated. I also have found that any time I edit a cell, it prints this message to stdout: > 3can vanilla ice cream > fireCellRendererTextEvent(CellRendererTextEvent where 3 is the threepath, and vanilla ice cream the new entered text. Is this supposed to work this way or am I missing something in my code? Ciao, Luca. -- Luca De Rugeriis <pie...@li...> |
From: Mark H. <mh...@ca...> - 2003-11-19 15:44:21
|
On Wed, Nov 19, 2003 at 04:13:05PM +0100, Luca De Rugeriis wrote: > I also have found that any time I edit a cell, it prints this message to > stdout: This is debugging info. Is the edit event passing the text correctly now? If so, it can be removed. One suggestion I have is to have two separate variables rather than a dataBlock array. This has two benefits - the name should help you remember what each dataBlock is for; and you don't have to cast to that particular dataBlock type. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Luca De R. <pie...@li...> - 2003-11-19 16:26:43
|
Il mer, 2003-11-19 alle 16:43, Mark Howard ha scritto: > On Wed, Nov 19, 2003 at 04:13:05PM +0100, Luca De Rugeriis wrote: > > I also have found that any time I edit a cell, it prints this message to > > stdout: > This is debugging info. Is the edit event passing the text correctly > now? If so, it can be removed. If you try it, it seems to work correctly. > One suggestion I have is to have two separate variables rather than a > dataBlock array. This has two benefits - the name should help you remember > what each dataBlock is for; and you don't have to cast to that > particular dataBlock type. Thanks a lot for the suggestion, I've used that array simply because I've ripped some code from other examples ;) I've thought to remove it too. This assumes that the rest of my code is fine ;) Are you going to amend the example and put it in the distribution ? Ciao, Luca. -- Luca De Rugeriis <pie...@li...> |
From: Mark H. <mh...@ca...> - 2003-11-19 16:59:29
|
On Wed, Nov 19, 2003 at 05:24:18PM +0100, Luca De Rugeriis wrote: > Are you going to amend the example and put it in the distribution ? Could really do with getting the base of the gtk-demo application started, including an interface for each code example to extend. Unfortunately I don't have any time for this in the next few weeks. Would you be interested in working on this? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Luca De R. <pie...@li...> - 2003-11-19 17:48:37
|
Il mer, 2003-11-19 alle 17:56, Mark Howard ha scritto: > On Wed, Nov 19, 2003 at 05:24:18PM +0100, Luca De Rugeriis wrote: > > Are you going to amend the example and put it in the distribution ? > > Could really do with getting the base of the gtk-demo application > started, including an interface for each code example to extend. > Unfortunately I don't have any time for this in the next few weeks. > Would you be interested in working on this? Yeah, this is why I've written this example. However, with my inexperience it takes me a couple of hours to write EditableCells, so I'll do that, but don't expect it will done quickly :) Now my question is about the structure of the project: I guess that the file that contains the main method (JavaGnomeDemo.java ?) must draw the main window, do (very simple) syntax highlighting and create all the objects for each example. Each single example must be in a separated class. Does it sound good? Is it preferable to create a javagnomedemo (or something) package? Have you a suggestion for the main class naming? Any further hint? If you confirm these choices are right ones, I'll write down the JavaGnomeDemo main window, and add all the needed interfaces. Then integrating the existing examples will be a snap. Let me know also if I should report the work in progress to the list, and post new code to be reviewed. Thanks, Luca. -- Luca De Rugeriis <pie...@li...> |
From: Mark H. <mh...@ca...> - 2003-11-19 19:37:06
|
On Wed, Nov 19, 2003 at 06:46:33PM +0100, Luca De Rugeriis wrote: > Now my question is about the structure of the project: > Is it preferable to create a javagnomedemo (or something) package? I'm not sure, TBH. My initial thoughts were to have this just as another example, and so just have the toplevel name as the package name. However, I now think it might be better to create this as a proper application so that it will be compiled with the rest of java-gnome and installed in binary packages as gtk-demo-java. This can then be used for reference as gtk-demo presumably is. In such a case, it would probably be better to have the full package structure. Jeff - do you have any thoughts about this. While we're on this topic, it might also be a good time to rearrange some of the examples in cvs. I think it would be much better if we make it easer to compile and run them, without having to mess about with classpath each time. Would an ant build file and a script to run the demos be enough? > Have you a suggestion for the main class naming? Main.java ? Package gtk-demo-java > Any further hint? Try to follow the sources of gtk-demo, but using the java style. TextView and ButtonBoxes have already been done - they can be simply copied. > If you confirm these choices are right ones, I'll write down the > JavaGnomeDemo main window, and add all the needed interfaces. > Then integrating the existing examples will be a snap. (Note you will probably find some bugs and unimplemented features in java-gnome ) > Let me know also if I should report the work in progress to the list, > and post new code to be reviewed. Yes please! We can easily add it to cvs if you do that, or you may be able to get a cvs account yourself. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Luca De R. <pie...@li...> - 2003-11-20 01:32:11
|
Il mer, 2003-11-19 alle 20:34, Mark Howard ha scritto: Thanks for your suggestions, I'll write the java-gnome-demo package with the main method in Main.java, and with each example in its own class. > (Note you will probably find some bugs and unimplemented features in > java-gnome > ) This would be the right chance for spotting them out. > > Let me know also if I should report the work in progress to the list, > > and post new code to be reviewed. > Yes please! > We can easily add it to cvs if you do that, or you may be able to get a > cvs account yourself. How? I have to ask for it explicitly? Luca. -- Luca De Rugeriis <pie...@li...> |