From zdennis at mktec.com Mon Nov 1 04:41:35 2004 From: zdennis at mktec.com (Zach Dennis) Date: Mon Nov 1 08:31:21 2004 Subject: [Wxruby-users] wxruby-swig compile/rake problem In-Reply-To: <4185C011.9000206@nicreations.com> References: <20041029134904.568BE215E89@enfermeira.convex.pt> <41852668.4060008@mktec.com> <4185733F.2090902@nicreations.com> <418560A6.3070206@mktec.com> <4185C011.9000206@nicreations.com> Message-ID: <418604CF.70800@mktec.com> Nick wrote: > > I'm assuming you've installed ruby 1.8 over the Mac default? Yep, I installed 1.8 over the Debian default. I'm running Debian Linux atm, my Mac box is the next in line for me to get going. Zach > > Nick > > Zach Dennis wrote: > >> Nick wrote: >> >>> >>> What version of Swig do you have? Make sure it is the bleeding-edge >>> latest. >>> >>> Nick >> >> >> >> That did it, thx. >> >> Next question....everything compiled fine and i got my wx.so in the >> libs directory. I put that in my "/usr/lib/ruby/1.8/i386-linux/" >> directory with other .so files, and when say "require 'wx'", it >> says...it cannot find the library. Anything here jump out at you, if >> not I'll look into it more tomorrow, i'm going to call it a night. >> >> Thanks, >> >> Zach >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > From devel at nicreations.com Mon Nov 1 08:42:42 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 1 08:45:05 2004 Subject: [Wxruby-users] wxruby-swig compile/rake problem In-Reply-To: <418604CF.70800@mktec.com> References: <20041029134904.568BE215E89@enfermeira.convex.pt> <41852668.4060008@mktec.com> <4185733F.2090902@nicreations.com> <418560A6.3070206@mktec.com> <4185C011.9000206@nicreations.com> <418604CF.70800@mktec.com> Message-ID: <41863D52.9000306@nicreations.com> > Yep, I installed 1.8 over the Debian default. I'm running Debian Linux > atm, my Mac box is the next in line for me to get going. I don't have any Linux info, though if you give the entire error message it may be useful. Nick Zach Dennis wrote: > Nick wrote: > >> >> I'm assuming you've installed ruby 1.8 over the Mac default? > > > Yep, I installed 1.8 over the Debian default. I'm running Debian Linux > atm, my Mac box is the next in line for me to get going. > > Zach > > >> >> Nick >> >> Zach Dennis wrote: >> >>> Nick wrote: >>> >>>> >>>> What version of Swig do you have? Make sure it is the bleeding-edge >>>> latest. >>>> >>>> Nick >>> >>> >>> >>> >>> That did it, thx. >>> >>> Next question....everything compiled fine and i got my wx.so in the >>> libs directory. I put that in my "/usr/lib/ruby/1.8/i386-linux/" >>> directory with other .so files, and when say "require 'wx'", it >>> says...it cannot find the library. Anything here jump out at you, if >>> not I'll look into it more tomorrow, i'm going to call it a night. >>> >>> Thanks, >>> >>> Zach >>> _______________________________________________ >>> wxruby-users mailing list >>> wxruby-users@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wxruby-users >>> >>> >>> >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From devel at nicreations.com Mon Nov 1 14:20:12 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 1 14:22:35 2004 Subject: [Wxruby-users] News for OS X Users In-Reply-To: <41756B8F.6060106@nicreations.com> References: <41756B8F.6060106@nicreations.com> Message-ID: <41868C6C.5020706@nicreations.com> New link: http://www.nicreations.com/wxruby-swig-osx-panther-preview.dmg This includes a binary installer for fink. I want other people to test it to see if it works ok. I can easily make a darwinports version if SOMEBODY VOLUNTEERS TO HELP. Nick Nick wrote: > > Sorry things have gone silent on the release front, but I have some > good news: I've gotten wxruby-swig to build as a OS X framework. This > has a couple of ramifications > > 1) wxruby for the Mac will finally exactly like its Linux and PC > counterparts, menu bar and all. > 2) Bundling wxruby applications becomes a lot easier. > 3) The next binary installer should be able to support darwinports, > fink, and all of the other various rubies for Mac OS X. > > I'm going to work on getting the installer ready. I'm also going to > try to back-port this to wxruby, so it's available in the next release. > > Nick > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From melfstrand at maf.org Mon Nov 1 15:19:13 2004 From: melfstrand at maf.org (Marshall Elfstrand) Date: Mon Nov 1 15:19:53 2004 Subject: [Wxruby-users] News for OS X Users In-Reply-To: <41868C6C.5020706@nicreations.com> References: <41756B8F.6060106@nicreations.com> <41868C6C.5020706@nicreations.com> Message-ID: <4C56A81A-2C43-11D9-B863-000A95A04A54@maf.org> Nick, I'm testing out the installer and haven't gotten it to work. Both 'require "wxruby"' and 'require "wx"' result in LoadErrors. The installer appears to place wx.bundle in: /sw/lib/ruby/site_ruby/1.8/powerpc-darwin7.5.0/ but the $LOAD_PATH on my system doesn't have the "7.5.0" after "powerpc-darwin". I tried moving the bundle to: /sw/lib/ruby/site_ruby/1.8/powerpc-darwin/ and now 'require "wx"' results in: dyld: ruby1.8 can't open library: /sw/lib/libdl.1.dylib (No such file or directory, errno = 2) Trace/BPT trap The usual 'require "wxruby"' still results in a LoadError. Is wxruby-swig changing the name of the required file? Thanks, Marshall On Nov 1, 2004, at 11:20 AM, Nick wrote: > > New link: > > http://www.nicreations.com/wxruby-swig-osx-panther-preview.dmg > > This includes a binary installer for fink. I want other people to test > it to see if it works ok. > > I can easily make a darwinports version if SOMEBODY VOLUNTEERS TO HELP. > > Nick > > > Nick wrote: > >> >> Sorry things have gone silent on the release front, but I have some >> good news: I've gotten wxruby-swig to build as a OS X framework. This >> has a couple of ramifications >> >> 1) wxruby for the Mac will finally exactly like its Linux and PC >> counterparts, menu bar and all. >> 2) Bundling wxruby applications becomes a lot easier. >> 3) The next binary installer should be able to support darwinports, >> fink, and all of the other various rubies for Mac OS X. >> >> I'm going to work on getting the installer ready. I'm also going to >> try to back-port this to wxruby, so it's available in the next >> release. >> >> Nick >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From devel at nicreations.com Mon Nov 1 15:36:41 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 1 15:39:15 2004 Subject: [Wxruby-users] News for OS X Users In-Reply-To: <4C56A81A-2C43-11D9-B863-000A95A04A54@maf.org> References: <41756B8F.6060106@nicreations.com> <41868C6C.5020706@nicreations.com> <4C56A81A-2C43-11D9-B863-000A95A04A54@maf.org> Message-ID: <41869E59.2040006@nicreations.com> > > and now 'require "wx"' results in: > > dyld: ruby1.8 can't open library: /sw/lib/libdl.1.dylib > (No such file or directory, errno = 2) > Trace/BPT trap (Nick does a double take) Augh! Something has introduced an external dependancy to libdl... Marshall, could you email me (off list) the wx.bundle that built from the last preview? I want to see what the differences are. Nick Marshall Elfstrand wrote: > Nick, > > I'm testing out the installer and haven't gotten it to work. Both > 'require "wxruby"' and 'require "wx"' result in LoadErrors. The > installer appears to place wx.bundle in: > > /sw/lib/ruby/site_ruby/1.8/powerpc-darwin7.5.0/ > > but the $LOAD_PATH on my system doesn't have the "7.5.0" after > "powerpc-darwin". I tried moving the bundle to: > > /sw/lib/ruby/site_ruby/1.8/powerpc-darwin/ > > and now 'require "wx"' results in: > > dyld: ruby1.8 can't open library: /sw/lib/libdl.1.dylib > (No such file or directory, errno = 2) > Trace/BPT trap > > The usual 'require "wxruby"' still results in a LoadError. Is > wxruby-swig changing the name of the required file? > > Thanks, > Marshall > > > On Nov 1, 2004, at 11:20 AM, Nick wrote: > >> >> New link: >> >> http://www.nicreations.com/wxruby-swig-osx-panther-preview.dmg >> >> This includes a binary installer for fink. I want other people to >> test it to see if it works ok. >> >> I can easily make a darwinports version if SOMEBODY VOLUNTEERS TO HELP. >> >> Nick >> >> >> Nick wrote: >> >>> >>> Sorry things have gone silent on the release front, but I have some >>> good news: I've gotten wxruby-swig to build as a OS X framework. >>> This has a couple of ramifications >>> >>> 1) wxruby for the Mac will finally exactly like its Linux and PC >>> counterparts, menu bar and all. >>> 2) Bundling wxruby applications becomes a lot easier. >>> 3) The next binary installer should be able to support darwinports, >>> fink, and all of the other various rubies for Mac OS X. >>> >>> I'm going to work on getting the installer ready. I'm also going to >>> try to back-port this to wxruby, so it's available in the next release. >>> >>> Nick >>> _______________________________________________ >>> wxruby-users mailing list >>> wxruby-users@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wxruby-users >>> >>> >>> >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From melfstrand at maf.org Thu Nov 4 12:16:16 2004 From: melfstrand at maf.org (Marshall Elfstrand) Date: Thu Nov 4 12:16:28 2004 Subject: [Wxruby-users] 0.5.1 release? Message-ID: <3CB8D22C-2E85-11D9-B863-000A95A04A54@maf.org> A while back there was some discussion of a wxRuby 0.5.1 release that would have the XRC fixes. Any ideas of when that might become available, or what the current status is? Thanks! Marshall From david.mitchell at telogis.com Thu Nov 4 17:13:11 2004 From: david.mitchell at telogis.com (David Mitchell) Date: Thu Nov 4 17:12:51 2004 Subject: [Wxruby-users] wxruby-swig release - what version number? In-Reply-To: References: Message-ID: <1099606391.27593.1.camel@localhost> What's the status on this release now? Looking forward to trying it. David On Thu, 2004-10-14 at 08:13 -0500, Curt Hibbs wrote: > Nick wrote: > > > > Sorry to be holding things up - work came up again. > > > > I'm having some trouble making a new Mac installer. The problem comes > > from the interaction between the OS X installer and the various rubies > > of OS X. It may take a few days for me to come up with a wxuby-swig > > installer for OS X. Should I just release Curt's build in the meantime? > > I don't think a few more days will make much difference. I'd rather wait for > a single coordinated relapse. > > Curt > > > In good news, I've checked in my patches for wxruby regarding the > > missing XRC and static methods. It's been tested on OS X and Win32, so > > I'll wait for Kevin's ok before tagging anything. > > > > Nick > > > > > > Nick wrote: > > > > > > > > Works for me. I say ship it! > > > > > > Nick > > > > > > Curt Hibbs wrote: > > > > > >> Nick wrote: > > >> > > >> > > >>> Hmmm... if possible, I'd like to attach some sort of "preview" postfix > > >>> so people don't get the wrong idea. > > >>> > > >>> Nick > > >>> > > >> > > >> > > >> Well from that perspective, how about: > > >> > > >> wxruby-swig-preview_1-mswin.exe > > >> > > >> A subsequent release can =1 the preview number, and when we > > are ready to > > >> replace the legacy wxruby we can just call it wxruby using > > whatever the > > >> next wxruby release number would be. I like this! > > >> > > >> What do you think? > > >> > > >> Curt > > >> > > >> > > >> > > >> > > >>> Curt Hibbs wrote: > > >>> > > >>> > > >>> > > >>>> What version number do you want to use for the release? I was > > >>>> > > >>> > > >>> thinking 0.4.0 > > >>> > > >>> > > >>>> since its not that far off from wxRuby. If so then I would name > > >>>> > > >>> > > >>> my release > > >>> > > >>> > > >>>> installer: > > >>>> > > >>>> wxruby-swig-0.4.0-mswin.exe > > >>>> > > >>>> Curt > > >>>> > > >>> > > >> > > >> _______________________________________________ > > >> wxruby-users mailing list > > >> wxruby-users@rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/wxruby-users > > >> > > >> > > >> > > >> > > >> > > > > > > _______________________________________________ > > > wxruby-users mailing list > > > wxruby-users@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > > > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users@rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > --- > > Incoming mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.775 / Virus Database: 522 - Release Date: 10/8/2004 > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- David Mitchell Software Engineer Telogis NOTICE: This message (including any attachments) contains CONFIDENTIAL INFORMATION intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. From david.mitchell at telogis.com Thu Nov 4 18:13:47 2004 From: david.mitchell at telogis.com (David Mitchell) Date: Thu Nov 4 18:13:12 2004 Subject: [Wxruby-users] Strange create_tool_bar behaviour Message-ID: <1099610027.27593.8.camel@localhost> This has to be wrong: I have an application that shows a form with a toolbar on it. The toolbar is created using `create_tool_bar` On linux, everything works fine. On windows, sometimes when this form is shown `create_tool_bar` returns an object of type FLogin, instead of WxToolBar. FLogin is the class of my login form. Any ideas? -- David Mitchell Software Engineer Telogis NOTICE: This message (including any attachments) contains CONFIDENTIAL INFORMATION intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. From devel at nicreations.com Fri Nov 5 09:23:14 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 5 09:25:34 2004 Subject: [Wxruby-users] Strange create_tool_bar behaviour In-Reply-To: <1099610027.27593.8.camel@localhost> References: <1099610027.27593.8.camel@localhost> Message-ID: <418B8CD2.9030209@nicreations.com> Which version of wxruby are you using? Which ruby version are you using? Nick David Mitchell wrote: >This has to be wrong: > >I have an application that shows a form with a toolbar on it. The >toolbar is created using `create_tool_bar` > >On linux, everything works fine. On windows, sometimes when this form is >shown `create_tool_bar` returns an object of type FLogin, instead of >WxToolBar. FLogin is the class of my login form. > >Any ideas? > > > From devel at nicreations.com Fri Nov 5 09:26:21 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 5 09:28:40 2004 Subject: [Wxruby-users] 0.5.1 release? In-Reply-To: <3CB8D22C-2E85-11D9-B863-000A95A04A54@maf.org> References: <3CB8D22C-2E85-11D9-B863-000A95A04A54@maf.org> Message-ID: <418B8D8D.1080909@nicreations.com> Sorry. All the maintainers are buried in work, so the wxruby release is waiting. The changes were checked into CVS, so you can rebuild from the source in the meantime. Sorry for the inconvience. Nick Marshall Elfstrand wrote: > A while back there was some discussion of a wxRuby 0.5.1 release that > would have the XRC fixes. Any ideas of when that might become > available, or what the current status is? > > Thanks! > Marshall > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From jnelas at convex.pt Fri Nov 5 14:47:57 2004 From: jnelas at convex.pt (=?iso-8859-1?Q?Jo=E3o_Nelas?=) Date: Fri Nov 5 14:49:21 2004 Subject: [Wxruby-users] Some advice regarding lists In-Reply-To: <418B8D8D.1080909@nicreations.com> Message-ID: <20041105195820.16E56215EC0@enfermeira.convex.pt> Hi, i'm not only new to wxRuby but also to GUI programming in general. Most (all) of my work falls into server-side or web based apps. That said, i was wondering if any of you could give me some pointers in how can something like this could be implemented in wxRuby. I would like to make some kind of custom lists, in which each line can have some diferent controls (checkboxes, text, bitmaps, etc...). I've tried to attach an example of what i'm talking about, i don't know if the list allows attachments. If it does, you can see what i'm talking about, if not i hope you understood me. In html+css this sort of thing is really easy, but i'm stuck in GUI world :) Thanks Jo?o Nelas -------------- next part -------------- A non-text attachment was scrubbed... Name: list_mock.gif Type: image/gif Size: 2749 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20041105/40d73990/list_mock.gif From david.mitchell at telogis.com Sun Nov 7 15:08:24 2004 From: david.mitchell at telogis.com (David Mitchell) Date: Sun Nov 7 15:07:32 2004 Subject: [Wxruby-users] Strange create_tool_bar behaviour In-Reply-To: <418B8CD2.9030209@nicreations.com> References: <1099610027.27593.8.camel@localhost> <418B8CD2.9030209@nicreations.com> Message-ID: <1099858105.27593.11.camel@localhost> Using wxruby 0.5 with ruby 1.8.2 prerelease. On Fri, 2004-11-05 at 08:23 -0600, Nick wrote: > Which version of wxruby are you using? Which ruby version are you using? > > Nick > > David Mitchell wrote: > > >This has to be wrong: > > > >I have an application that shows a form with a toolbar on it. The > >toolbar is created using `create_tool_bar` > > > >On linux, everything works fine. On windows, sometimes when this form is > >shown `create_tool_bar` returns an object of type FLogin, instead of > >WxToolBar. FLogin is the class of my login form. > > > >Any ideas? > > > > > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- David Mitchell Software Engineer Telogis NOTICE: This message (including any attachments) contains CONFIDENTIAL INFORMATION intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. From alex at pressure.to Mon Nov 8 08:48:03 2004 From: alex at pressure.to (alex fenton) Date: Mon Nov 8 08:48:16 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] Message-ID: <418F7913.1090109@pressure.to> Hi Just released a first version of the WxRuby project I've been working on. Firstly, I wanted to say thanks to everyone on this list who's helped at various points over the past year - every time I ran into a problem someone jumped in with advice. A very brief explanation of the app - I'm a sociologist/anthropologist by trade, and the app is intended for use in social research projects where you have a body of text documents to analyse, for example transcripts of interviews. The app helps in developing an analysis by letting you mark up sections of text in different documents as relating to a common theme or topic. Anyway, I guess it's of more interest to this group as an example of a good-sized app written using WxRuby. There's probably a few thousand lines of Ruby in there. The cross-platform aspect isn't perfect yet, as I don't have a Linux box with a monitor to test on (I do have one - anyway I can view its desktop on my Windows machine? Like VNC in reverse?). The main page is at http://www.pressure.to/qda/ This has a windows installler for the app; source code is also available for download - follow the link for "not windows". Cheers alex -------- Original Message -------- Subject: Weft - a free open-source QDA tool Date: Mon, 8 Nov 2004 12:54:57 +0000 From: alex fenton Reply-To: qual-software To: QUAL-SOFTWARE@JISCMAIL.AC.UK Hi I'm pleased to announce a preview release of Weft QDA - a free, open-source software tool for qualitative data analysis. There's further information and downloads at http://www.pressure.to/qda/ The tool was originally written for use in my MSc research project on credit unions in South London, submitted to the University of Surrey this summer. The intention was to create a simple interface for the generic "code-and-retrieve" activity in qualitative data analysis. It's been modififed to make it easier to install and use elsewhere, and I hope it might now be of use to others. I would very much welcome comments and suggestions for new features. Working full-time now, my time for developing the software is somewhat limited at present. However, I'm committed to fixing any problems that emerge and implementing new features as possible. Cheers Alex Fenton From zdennis at mktec.com Mon Nov 8 09:46:20 2004 From: zdennis at mktec.com (Zach Dennis) Date: Mon Nov 8 09:46:48 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: <418F7913.1090109@pressure.to> References: <418F7913.1090109@pressure.to> Message-ID: <418F86BC.5010005@mktec.com> alex fenton wrote: > Hi > > Just released a first version of the WxRuby project I've been working > on. Firstly, I wanted to say thanks to everyone on this list who's > helped at various points over the past year - every time I ran into a > problem someone jumped in with advice. > > A very brief explanation of the app - I'm a sociologist/anthropologist > by trade, and the app is intended for use in social research projects > where you have a body of text documents to analyse, for example > transcripts of interviews. The app helps in developing an analysis by > letting you mark up sections of text in different documents as > relating to a common theme or topic. > > Anyway, I guess it's of more interest to this group as an example of a > good-sized app written using WxRuby. There's probably a few thousand > lines of Ruby in there. The cross-platform aspect isn't perfect yet, > as I don't have a Linux box with a monitor to test on (I do have one - > anyway I can view its desktop on my Windows machine? Like VNC in > reverse?). > > The main page is at > > http://www.pressure.to/qda/ > > This has a windows installler for the app; source code is also > available for download - follow the link for "not windows". > > Cheers > alex > > -------- Original Message -------- > Subject: Weft - a free open-source QDA tool > Date: Mon, 8 Nov 2004 12:54:57 +0000 > From: alex fenton > Reply-To: qual-software > To: QUAL-SOFTWARE@JISCMAIL.AC.UK > > Hi > > I'm pleased to announce a preview release of Weft QDA - a free, > open-source software tool for qualitative data analysis. There's further > information and downloads at > > http://www.pressure.to/qda/ > > The tool was originally written for use in my MSc research project on > credit unions in South London, submitted to the University of Surrey > this summer. The intention was to create a simple interface for the > generic "code-and-retrieve" activity in qualitative data analysis. It's > been modififed to make it easier to install and use elsewhere, and I > hope it might now be of use to others. > > I would very much welcome comments and suggestions for new features. > Working full-time now, my time for developing the software is somewhat > limited at present. However, I'm committed to fixing any problems that > emerge and implementing new features as possible. > > Cheers > Alex Fenton > First comment: Very, very very very cool! Thank you for sharing this post. I find this post rather inspiring since I've been stuck doing alot of Java Swing programming in the past few months. Here are some constructive suggestions. I do not know much about the field this tool was built for so please take these suggestions with a grain of salt.: 1 - In the documents section, should there be a grouping of documents? I see you have "diary-january", "diary-february", etc...Should these have the ability to be grouped in a Tree structure where you would end up with something like: Diary - January - February - March - etc... People - Ade - Lauara - etc... Generic / Misc. - document1 - document2 2. I notice in one of the screenshotss that it shows multiple documents in a single window (jump-to-context.png). You have "michael[40435-40824]" and "diary-march[3858-4114]". What are the numbers? Should the numbers be listed in the original ListBox next to the name of the document? Would it be helpful if the ListBox had different sorting options? (Alphabetically and possibly by number in ascending/descending order?) 3. Are the categories the same for each document, or do these changed based on the document? Would it be nice if there was a way to graphically see what documents are linked to which categories....(Is there a one-to-many relationship or many-to-many relationship between documents and categories)? Just thinking outloud because you asked for feedback. ;) Zach Zach From alex at pressure.to Mon Nov 8 13:00:46 2004 From: alex at pressure.to (alex fenton) Date: Mon Nov 8 13:01:10 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: <418F86BC.5010005@mktec.com> References: <418F7913.1090109@pressure.to> <418F86BC.5010005@mktec.com> Message-ID: <418FB44E.9050205@pressure.to> Zach Dennis wrote: > First comment: Very, very very very cool! Thank you for sharing this > post. I find this post rather inspiring since I've been stuck doing alot > of Java Swing programming in the past few months. Thanks. Working in WxRuby has generally been great (I switched from Fox about 12 months ago). The API's fine to work with and fitted well with my ruby coding style elsewhere. I'll cross-post to c.l.r. as I hope it shows that even though it's still not stable, WxRuby is very usable (only once has a version change caused me any probs). > Here are some constructive suggestions. I do not know much about the > field this tool was built for so please take these suggestions with a > grain of salt.: Nope, really useful, thanks. Apologies if I get too field-geeky! > 1 - In the documents section, should there be a grouping of documents? I > see you have "diary-january", "diary-february", etc...Should these have > the ability to be grouped in a Tree structure where you would end up > with something like: > Diary > - January > - February > - March > - etc... > People > - Ade > - Lauara > - etc... > Generic / Misc. - document1 > - document2 yup, I think this is a better way to organise it. Thanks for the suggestion. I hope there's a Wx folder icon somewhere. > 2. I notice in one of the screenshotss that it shows multiple documents > in a single window (jump-to-context.png). You have > "michael[40435-40824]" and "diary-march[3858-4114]". What are the > numbers? Should the numbers be listed in the original ListBox next to > the name of the document? Would it be helpful if the ListBox had > different sorting options? (Alphabetically and possibly by number in > ascending/descending order?) the numbers correspond to the character position within the source document that the extract is from (a string offset, really). There's probably a more meaningful way to put this - maybe percentage of the way through the source document. > 3. Are the categories the same for each document, or do these changed > based on the document? Would it be nice if there was a way to > graphically see what documents are linked to which categories....(Is > there a one-to-many relationship or many-to-many relationship between > documents and categories)? Each category can potentially mark any section of any document. Every category has none or more vectors, substrings of documents that are associated with that category. But being able to see the document-to-category relationships is important too (in the field), but not possible at the moment. I wanted to do this by using text backgrounds to highlight sections of documents, but wx::TextAttr background colours don't seem to work for me on Windows, only on Linux (wxruby 0.5.0). Don't suppose anyone's had any joy ... > Just thinking outloud because you asked for feedback. ;) :) cheers alex > Zach > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > From assaph at gmail.com Mon Nov 8 18:56:35 2004 From: assaph at gmail.com (Assaph (Assaph) Mehr) Date: Mon Nov 8 18:57:05 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: <418F7913.1090109@pressure.to> References: <418F7913.1090109@pressure.to> Message-ID: <3ff47be904110815564825a3cf@mail.gmail.com> > I don't have a Linux box with a monitor to test on (I do have one - > anyway I can view its desktop on my Windows machine? Like VNC in reverse?). Off topic: It's easy. You should run VNC server on the linux and use the VNC viewer from your windows. Look for TightVNC for a good client & server implementation. If you want something better (and have no objection to Cygwin), try this: * MSWin - Install cygwin X11 libraries (all) * Linux - enable the GDM (Gnome Desktop) XDMCP. They way I always remeber how to do it is by looking for gdm.conf somewhere under /etc then finding the first "Enable" in the file (which should be under the XDMCP section) and setting it to true. You'll need to restart the gdm process. * from cygwin run 'xwin -query &' and you should get the gnome desktop :-) HTH. From devel at nicreations.com Mon Nov 8 19:34:22 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 8 19:36:33 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: <418F7913.1090109@pressure.to> References: <418F7913.1090109@pressure.to> Message-ID: <4190108E.9@nicreations.com> Awesome! Always good to see new projects take shape! Nick alex fenton wrote: > Hi > > Just released a first version of the WxRuby project I've been working > on. Firstly, I wanted to say thanks to everyone on this list who's > helped at various points over the past year - every time I ran into a > problem someone jumped in with advice. > > A very brief explanation of the app - I'm a sociologist/anthropologist > by trade, and the app is intended for use in social research projects > where you have a body of text documents to analyse, for example > transcripts of interviews. The app helps in developing an analysis by > letting you mark up sections of text in different documents as > relating to a common theme or topic. > > Anyway, I guess it's of more interest to this group as an example of a > good-sized app written using WxRuby. There's probably a few thousand > lines of Ruby in there. The cross-platform aspect isn't perfect yet, > as I don't have a Linux box with a monitor to test on (I do have one - > anyway I can view its desktop on my Windows machine? Like VNC in > reverse?). > > The main page is at > > http://www.pressure.to/qda/ > > This has a windows installler for the app; source code is also > available for download - follow the link for "not windows". > > Cheers > alex > > -------- Original Message -------- > Subject: Weft - a free open-source QDA tool > Date: Mon, 8 Nov 2004 12:54:57 +0000 > From: alex fenton > Reply-To: qual-software > To: QUAL-SOFTWARE@JISCMAIL.AC.UK > > Hi > > I'm pleased to announce a preview release of Weft QDA - a free, > open-source software tool for qualitative data analysis. There's further > information and downloads at > > http://www.pressure.to/qda/ > > The tool was originally written for use in my MSc research project on > credit unions in South London, submitted to the University of Surrey > this summer. The intention was to create a simple interface for the > generic "code-and-retrieve" activity in qualitative data analysis. It's > been modififed to make it easier to install and use elsewhere, and I > hope it might now be of use to others. > > I would very much welcome comments and suggestions for new features. > Working full-time now, my time for developing the software is somewhat > limited at present. However, I'm committed to fixing any problems that > emerge and implementing new features as possible. > > Cheers > Alex Fenton > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From curt at hibbs.com Mon Nov 8 21:13:45 2004 From: curt at hibbs.com (Curt Hibbs) Date: Mon Nov 8 21:13:41 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: <3ff47be904110815564825a3cf@mail.gmail.com> Message-ID: Assaph (Assaph) Mehr wrote: > > > I don't have a Linux box with a monitor to test on (I do have one - > > anyway I can view its desktop on my Windows machine? Like VNC > in reverse?). > > Off topic: > > It's easy. You should run VNC server on the linux and use the VNC > viewer from your windows. Look for TightVNC for a good client & server > implementation. I used to use TightVNC (which I liked a lot), but now I use UltraVNC (I think its on SourceForge) -- check it out, its much better than TightVNC. Curt From zdennis at mktec.com Wed Nov 10 22:39:04 2004 From: zdennis at mktec.com (Zach Dennis) Date: Wed Nov 10 22:41:32 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: References: Message-ID: <4192DED8.2030601@mktec.com> Curt Hibbs wrote: >Assaph (Assaph) Mehr wrote: > > >>>I don't have a Linux box with a monitor to test on (I do have one - >>>anyway I can view its desktop on my Windows machine? Like VNC >>> >>> >>in reverse?). >> >>Off topic: >> >>It's easy. You should run VNC server on the linux and use the VNC >>viewer from your windows. Look for TightVNC for a good client & server >>implementation. >> >> > >I used to use TightVNC (which I liked a lot), but now I use UltraVNC (I >think its on SourceForge) -- check it out, its much better than TightVNC. > > Curt, I have pretty much exclusively used RealVNC for the past 2 years. Have you used it? If so, what comparisons would you make between UltraVNC, TightVNC and RealVNC? I have neve rused the first two. Thanks, Zach From curt at hibbs.com Wed Nov 10 23:04:07 2004 From: curt at hibbs.com (Curt Hibbs) Date: Wed Nov 10 23:03:58 2004 Subject: [Wxruby-users] [Fwd: Weft - a free open-source QDA tool] In-Reply-To: <4192DED8.2030601@mktec.com> Message-ID: Zach Dennis wrote: > > Curt Hibbs wrote: > > >I used to use TightVNC (which I liked a lot), but now I use UltraVNC (I > >think its on SourceForge) -- check it out, its much better than TightVNC. > > > > > Curt, > > I have pretty much exclusively used RealVNC for the past 2 years. Have > you used it? If so, what comparisons would you make between UltraVNC, > TightVNC and RealVNC? I have neve rused the first two. Thanks, I started off with the original open source VNC. Later I started using TightVNC because it featured better compression of the data stream. TightVNC was usable in low bandwidth situations where regular VNC was impossible to use. Then the original developers of VNC took the codebase proprietary called it RealVNC and released a free edition and an enterprise edition. UltraVNC is a fork of TightVNC (on which development had stagnated) and is at: http://ultravnc.sourceforge.net/ It is very fast, features really useful things like desktop scaling, file transfer, dynamic bandwidth adjustment (for example, it will automatically down-switch to 8-bit color if it detects slow transfer rate). Also, it has a special video driver you can install for even faster performance (at least on windows). I've never used RealVNC. But I took a quick look at the feature lists, and it looks like the free UltraVNC has more features than the commercial RealVNC Enterprise: UltraVNC Key Features (from their web page): * File Transfer with intuitive Graphical User Interface * Optional Video Driver for high speed and low CPU (W2000/XP/2003), Ddi hooking (Win 9.x) * NT Domain and Active Directory based security * High speed and performances over LAN connections. * Very good responsivness over slow connections (cable, modem) * Embedded Client/Server Text Chat * Optional Data Stream Enrcryption Plugin * Viewer with Auto Configuration, Quick Options and Auto Scaling * Standard Win32 Viewer and JavaViewer connections over TCP/IP * Supported Operating Systems: Win9x/NT4/Win2000/XP/2003 * Viewer Toolbar and Hot keys * View Modes: Full-Screen, Scaled and Windowed * Viewer Status Window * Dynamic Single Window/Full Desktop view switching * Backward Compatible with others VNC flavors. * Support for 32/24/16/8 bits colors * Server's Desktop dynamic resolution switching * Server Screen Blanking/mouse locking from viewer side * Bandwidth Saving technologies : Bitmap Cache management, server screen scaling * Possibility to send Ctrl-Alt-Del to the remote server Hope this helps! Curt From q at uni.de Sat Nov 13 15:12:10 2004 From: q at uni.de (Ulrich Spoerlein) Date: Sat Nov 13 15:12:00 2004 Subject: [Wxruby-users] wxRuby and XRC via wxGlade Message-ID: <20041113201210.GA2810@galgenberg.net> Hello, I need to finish a small GUI program till friday and I am somewhat stuck. First of all, wxRuby seems to ignore the size request of the frame as defined via XRC (or I'm completly doing the wrong thing!) Second, it complains about the statusbar and doesn't display it. What am I doing wrong? The files are attached Thank you Ulrich Spoerlein -- PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? -------------- next part -------------- Stupid Test 1 667, 563 wxVERTICAL wxEXPAND 1 wxHORIZONTAL wxEXPAND wxVERTICAL wxEXPAND wxEXPAND 2 -1, -3 -------------- next part -------------- #!/usr/local/bin/ruby require "wxruby" class Foo < Wx::App def on_init Wx::init_all_image_handlers() $xml = Wx::XmlResource.get(); $xml.init_all_handlers(); $xml.load("foo.xrc") $main = $xml.load_frame(self, "frame_1") $main.show(true) end end Foo.new.main_loop From melfstrand at maf.org Sun Nov 14 03:19:45 2004 From: melfstrand at maf.org (Marshall Elfstrand) Date: Sun Nov 14 03:19:31 2004 Subject: [Wxruby-users] wxRuby and XRC via wxGlade In-Reply-To: <20041113201210.GA2810@galgenberg.net> References: <20041113201210.GA2810@galgenberg.net> Message-ID: Not sure about the size issue (I'm not sitting at a computer with wxRuby at the moment to try it out) but I believe the status bar problem is due to wxRuby currently using wxWidgets 2.4.2. XRC support for wxStatusBar wasn't added until 2.5.1, according to the wxWidgets change log. I worked around this by just putting a label at the bottom of the frame and placing a horizontal line over it with no left/right borders; another solution would be to add the status bar in code after the frame is loaded from the XRC file. Marshall On Nov 13, 2004, at 12:12 PM, Ulrich Spoerlein wrote: > Hello, > > I need to finish a small GUI program till friday and I am somewhat > stuck. First of all, wxRuby seems to ignore the size request of the > frame as defined via XRC (or I'm completly doing the wrong thing!) > > Second, it complains about the statusbar and doesn't display it. What > am > I doing wrong? > > The files are attached > > Thank you > Ulrich Spoerlein > -- > PGP Key ID: F0DB9F44 Encrypted mail welcome! > Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 > Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." > didn't you understand? > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From melfstrand at maf.org Mon Nov 15 14:14:51 2004 From: melfstrand at maf.org (Marshall Elfstrand) Date: Mon Nov 15 14:14:44 2004 Subject: [Wxruby-users] wxRuby and XRC via wxGlade In-Reply-To: <20041113201210.GA2810@galgenberg.net> References: <20041113201210.GA2810@galgenberg.net> Message-ID: <9FBDA9BA-373A-11D9-9E05-000A95A04A54@maf.org> OK, regarding the size of the frame: it looks like specifying a sizer for a frame in XRC causes the frame to fit the sizer automatically. If you want a minimum size for the frame, you can set the minsize attribute on the frame's sizer. If you're just looking to set a default size for a user-resizable frame, you might want to provide a default in code after the frame loads from the XRC file. Ideally you'd load a user preference for the frame size, with the default size used if no preference is found, but it sounds like this isn't a big enough project to be worth the effort. :-) Hope this helps, Marshall On Nov 13, 2004, at 12:12 PM, Ulrich Spoerlein wrote: > Hello, > > I need to finish a small GUI program till friday and I am somewhat > stuck. First of all, wxRuby seems to ignore the size request of the > frame as defined via XRC (or I'm completly doing the wrong thing!) > > Second, it complains about the statusbar and doesn't display it. What > am > I doing wrong? > > The files are attached > > Thank you > Ulrich Spoerlein > -- > PGP Key ID: F0DB9F44 Encrypted mail welcome! > Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 > Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." > didn't you understand? > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users From dmartenson at multitech.com Thu Nov 18 16:26:44 2004 From: dmartenson at multitech.com (Dale Martenson) Date: Thu Nov 18 16:23:53 2004 Subject: [Wxruby-users] Wx::Grid Questions ... Message-ID: <419D1394.70606@multitech.com> I am trying to use a grid widget in my application, but run into a number of issues: -- Can they be placed in a panel? Or better yet, placed in sizer with other controls? I have only been able to place a grid inside a frame. -- Can you designate multiple rows (or columns) as being used for labels? -- Can you create cells that span cols (or rows)? -- What events are available to trigger on? How does one capture updates to certain cells of the grid? If my questions seem silly, it is because I am a newbie to wxRuby. Thanks, Dale Martenson From zdennis at mktec.com Thu Nov 18 16:55:06 2004 From: zdennis at mktec.com (Zach Dennis) Date: Thu Nov 18 16:55:06 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1394.70606@multitech.com> References: <419D1394.70606@multitech.com> Message-ID: <419D1A3A.90608@mktec.com> Dale Martenson wrote: > I am trying to use a grid widget in my application, but run into a > number of issues: > -- Can they be placed in a panel? Or better yet, placed in sizer with > other controls? I have only been able to place a grid inside a frame. yes they can, you need to set the size and location of the grid, then make sure you call create_grid. see below: require "wxruby" class MyApp < Wx::App def on_init @frame = Wx::Frame.new( nil , -1 , "Title" , Wx::Point.new( 0 , 0 ) , Wx::Size.new( 500 , 500 ) ) @panel = Wx::Panel.new( @frame , -1 ) @grid = Wx::Grid.new( @panel , -1 , Wx::Point.new( 1 , 1 ) , Wx::Size.new( 200 , 200 ) ) @grid.create_grid( 20 , 20 ) @frame.show self.main_loop end end m = MyApp.new > -- Can you designate multiple rows (or columns) as being used for labels? Labels as in column headers and row labels? > -- Can you create cells that span cols (or rows)? i dont think so. > -- What events are available to trigger on? How does one capture updates > to certain cells of the grid? At one point I went through all of the evt_xxx calls for Wx::Grid and wrote down what did what, but I'll have to see if I still have that document. You could refer to: http://wxruby.rubyforge.org/wxrubydoc.html and check out: http://www.kochandreas.com/home/language/cases/SPREADSHEET_RUBY.HTM Look at the "on_init" and the "createGridEvtHandler" methods. > > If my questions seem silly, it is because I am a newbie to wxRuby. > Nope, these are all good questions. I asked the same ones a few months back when I wrote the MiniSpreadSheetAppp you'll find at the www.kochandreas.com. Zach From devel at nicreations.com Thu Nov 18 16:59:53 2004 From: devel at nicreations.com (Nick) Date: Thu Nov 18 17:01:59 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1394.70606@multitech.com> References: <419D1394.70606@multitech.com> Message-ID: <419D1B59.60003@nicreations.com> I've used the wxGrid in C++, but not wxruby. What platform/ruby version are you using? Dale Martenson wrote: > I am trying to use a grid widget in my application, but run into a > number of issues: > -- Can they be placed in a panel? Or better yet, placed in sizer with > other controls? I have only been able to place a grid inside a frame. I know they can be inside of a panel. What behavior are you seeing? > -- Can you designate multiple rows (or columns) as being used for labels? > -- Can you create cells that span cols (or rows)? I don't think so on either. > -- What events are available to trigger on? How does one capture > updates to certain cells of the grid? Wow.... I just checked, and the grid event handlers don't exist! This seems like a pretty big oversight. Lemme see how hard it is to address this. Nick From zdennis at mktec.com Thu Nov 18 17:07:26 2004 From: zdennis at mktec.com (Zach Dennis) Date: Thu Nov 18 17:07:26 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1B59.60003@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> Message-ID: <419D1D1E.3040300@mktec.com> Nick wrote: [snip] > > >> -- What events are available to trigger on? How does one capture >> updates to certain cells of the grid? > > > Wow.... I just checked, and the grid event handlers don't exist! This > seems like a pretty big oversight. Lemme see how hard it is to address > this. Wx::Grid responds to some of the generic Events like evt_key_down. When you say "address" this, are you going to create a Grid Event class and wrap the events with that class? Zach From dmartenson at multitech.com Thu Nov 18 17:16:13 2004 From: dmartenson at multitech.com (Dale Martenson) Date: Thu Nov 18 17:13:02 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1A3A.90608@mktec.com> References: <419D1394.70606@multitech.com> <419D1A3A.90608@mktec.com> Message-ID: <419D1F2D.4020904@multitech.com> Zach Dennis wrote: > Dale Martenson wrote: > >> I am trying to use a grid widget in my application, but run into a >> number of issues: >> -- Can they be placed in a panel? Or better yet, placed in sizer with >> other controls? I have only been able to place a grid inside a frame. > > > yes they can, you need to set the size and location of the grid, then > make sure you call create_grid. see below: > > require "wxruby" > class MyApp < Wx::App > def on_init > @frame = Wx::Frame.new( nil , -1 , "Title" , Wx::Point.new( 0 , 0 > ) , Wx::Size.new( 500 , 500 ) ) > > @panel = Wx::Panel.new( @frame , -1 ) > > @grid = Wx::Grid.new( @panel , -1 , Wx::Point.new( 1 , 1 ) , > Wx::Size.new( 200 , 200 ) ) > @grid.create_grid( 20 , 20 ) > > @frame.show > self.main_loop > end > end > > m = MyApp.new > Thanks, I will give it a try. >> -- Can you designate multiple rows (or columns) as being used for >> labels? > > > Labels as in column headers and row labels? > Yes, that is what I meant. It kind of goes along with the next question about spanning columns. I wanted to group columns by having several column labels under a single spanning column label. This is all in an attempt to clean-up the output. It is not functionally necessary, but makes it look better. >> -- Can you create cells that span cols (or rows)? > > > i dont think so. > >> -- What events are available to trigger on? How does one capture >> updates to certain cells of the grid? > > > At one point I went through all of the evt_xxx calls for Wx::Grid and > wrote down what did what, but I'll have to see if I still have that > document. You could refer to: > > http://wxruby.rubyforge.org/wxrubydoc.html > > and check out: > > http://www.kochandreas.com/home/language/cases/SPREADSHEET_RUBY.HTM > > Look at the "on_init" and the "createGridEvtHandler" methods. > Thanks, I will look into that. > >> >> If my questions seem silly, it is because I am a newbie to wxRuby. >> > > Nope, these are all good questions. I asked the same ones a few months > back when I wrote the MiniSpreadSheetAppp you'll find at the > www.kochandreas.com. > > Zach > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From dmartenson at multitech.com Thu Nov 18 17:20:32 2004 From: dmartenson at multitech.com (Dale Martenson) Date: Thu Nov 18 17:17:22 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1B59.60003@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> Message-ID: <419D2030.1080009@multitech.com> Nick wrote: > > I've used the wxGrid in C++, but not wxruby. What platform/ruby > version are you using? > Windows XP and Ruby 1.8.2 I hope to have the application running on Linux also. > >> -- What events are available to trigger on? How does one capture >> updates to certain cells of the grid? > > > Wow.... I just checked, and the grid event handlers don't exist! This > seems like a pretty big oversight. Lemme see how hard it is to address > this. > That does seem like an Oops. Please, let me know what you find out. > Nick > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From devel at nicreations.com Thu Nov 18 17:22:26 2004 From: devel at nicreations.com (Nick) Date: Thu Nov 18 17:24:27 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1D1E.3040300@mktec.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> Message-ID: <419D20A2.1000508@nicreations.com> > > Wx::Grid responds to some of the generic Events like evt_key_down. > When you say "address" this, are you going to create a Grid Event > class and wrap the events with that class? Yes, but it will have to wait for now. We're trying to get wxruby 0.6 released, despite two of the developers buried in work and my linux box kernel panic-ing on boot. Nick From zdennis at mktec.com Fri Nov 19 05:01:28 2004 From: zdennis at mktec.com (Zach Dennis) Date: Fri Nov 19 05:03:49 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D20A2.1000508@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> Message-ID: <419DC478.5020509@mktec.com> Nick wrote: > > >> >> Wx::Grid responds to some of the generic Events like evt_key_down. >> When you say "address" this, are you going to create a Grid Event >> class and wrap the events with that class? > > > > Yes, but it will have to wait for now. We're trying to get wxruby 0.6 > released, despite two of the developers buried in work and my linux box > kernel panic-ing on boot. > I downloaded the cvs wxruby source (not swig) and wrote in the grid events. I've got everything compiling fine, but for example the EVT_GRID_CELL_LEFT_CLICK events fires when I left click on a cell, but when it does I get a error and application quits: splitterWindow.rb:46:in `main_loop': wrong argument type false (expected Class) (TypeError) from splitterWindow.rb:46:in `on_init' from splitterWindow.rb:50:in `initialize' from splitterWindow.rb:50:in `new' from splitterWindow.rb:50 Nick,Curt,Kevin....any ideas? Have you seen this type of error before? I'm running: - ruby 1.8.2 - windows 2000 - latest cvs pull of wxruby - msvc++ 6 Thanks, Zach From sdate at everestkc.net Fri Nov 19 05:42:48 2004 From: sdate at everestkc.net (Shashank Date) Date: Fri Nov 19 05:42:33 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419D1B59.60003@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> Message-ID: <419DCE28.2030707@everestkc.net> Nick wrote: > Wow.... I just checked, and the grid event handlers don't exist! This > seems like a pretty big oversight. Lemme see how hard it is to address > this. Awesome ! Just in time for me to hold on to my plan of commercializing the application (closed-source) I delivered early this month (thanks to a lot many folks on this list, but especially Kevin, Curt, Nick, Zach, Assaph, Alex). We were thinking of moving to something else (FxRuby/VisualuRuby/.NET) mainly due to lack of grid event handlers. Looks like I might not have to do that after all :-) Speaking of releasing commercial apps, does wxRuby's licensing scheme allow that ? I read in archives, Kevin mentioning about changing to MIT License which I think is liberal and permissive. But does it (wxRuby's license) also depend on wxWidgets License (which is slightly confusing to me)? This is what wxWdigets License says (http://www.wxwindows.org/newlicen.htm): "The wxWidgets 2 licence is essentially the L-GPL (Library General Public Licence), with an exception stating that derived works in binary form may be distributed on the user's own terms. This is a solution that satisfies those who wish to produce GPL'ed software using wxWidgets, and also those producing proprietary software." I am not sure I understand these issues well. > Nick Thanks, -- Shashank From devel at nicreations.com Fri Nov 19 08:46:53 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 19 08:48:58 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419DC478.5020509@mktec.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> <419DC478.5020509@mktec.com> Message-ID: <419DF94D.6070407@nicreations.com> Not specifically. Can you send me the evthandler.cpp change and your sample so I can take a look? Nick Zach Dennis wrote: > Nick wrote: > >> >> >>> >>> Wx::Grid responds to some of the generic Events like evt_key_down. >>> When you say "address" this, are you going to create a Grid Event >>> class and wrap the events with that class? >> >> >> >> >> Yes, but it will have to wait for now. We're trying to get wxruby 0.6 >> released, despite two of the developers buried in work and my linux >> box kernel panic-ing on boot. >> > > I downloaded the cvs wxruby source (not swig) and wrote in the grid > events. I've got everything compiling fine, but for example the > EVT_GRID_CELL_LEFT_CLICK events fires when I left click on a cell, but > when it does I get a error and application quits: > > splitterWindow.rb:46:in `main_loop': wrong argument type false > (expected Class) > (TypeError) > from splitterWindow.rb:46:in `on_init' > from splitterWindow.rb:50:in `initialize' > from splitterWindow.rb:50:in `new' > from splitterWindow.rb:50 > > > Nick,Curt,Kevin....any ideas? Have you seen this type of error before? > > I'm running: > - ruby 1.8.2 > - windows 2000 > - latest cvs pull of wxruby > - msvc++ 6 > > Thanks, > > Zach > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From devel at nicreations.com Fri Nov 19 09:19:16 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 19 09:21:20 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419DCE28.2030707@everestkc.net> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419DCE28.2030707@everestkc.net> Message-ID: <419E00E4.2070003@nicreations.com> It's all a bit confusing due to the number of licences involved. Here's my understanding of commercialization: 1) The ruby licence is semi-gpl, but it allows for binary ruby releases as long as you (a) include the libraries that come along, or (b) rename the executable so it won't be confused with the real ruby. 2) The wxWidgets licence is the very liberal, and basically allows distribution in binary form without the need to open up the application's source. There are two small caveats: using TIFF's or using JPEG. See the Gotcha's section of the wxruby licence. 3) I *thought* Keven had changed the licence to something MIT based, but I don't see a mention of it in the licence file. So long story short, wxRuby is allowed in commercial apps. Nick Shashank Date wrote: > Nick wrote: > >> Wow.... I just checked, and the grid event handlers don't exist! This >> seems like a pretty big oversight. Lemme see how hard it is to >> address this. > > > Awesome ! Just in time for me to hold on to my plan of > commercializing the application (closed-source) I delivered early this > month (thanks to a lot many folks on this list, but especially Kevin, > Curt, Nick, Zach, Assaph, Alex). > > We were thinking of moving to something else > (FxRuby/VisualuRuby/.NET) mainly due to lack of grid event handlers. > Looks like I might not have to do that after all :-) > > Speaking of releasing commercial apps, does wxRuby's licensing scheme > allow that ? I read in archives, Kevin mentioning about changing to > MIT License which I think is liberal and permissive. But does it > (wxRuby's license) also depend on wxWidgets License (which is slightly > confusing to me)? This is what wxWdigets License says > (http://www.wxwindows.org/newlicen.htm): > > "The wxWidgets 2 licence is essentially the L-GPL (Library General > Public Licence), with an exception stating that derived works in > binary form may be distributed on the user's own terms. This is a > solution that satisfies those who wish to produce GPL'ed software > using wxWidgets, and also those producing proprietary software." > > I am not sure I understand these issues well. > >> Nick > > > Thanks, > -- Shashank > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From devel at nicreations.com Fri Nov 19 14:12:21 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 19 14:14:16 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419DC478.5020509@mktec.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> <419DC478.5020509@mktec.com> Message-ID: <419E4595.2070107@nicreations.com> I added Zach's changes into wxruby, and tested them. They'll go into the 0.6 release Nick Zach Dennis wrote: > Nick wrote: > >> >> >>> >>> Wx::Grid responds to some of the generic Events like evt_key_down. >>> When you say "address" this, are you going to create a Grid Event >>> class and wrap the events with that class? >> >> >> >> >> Yes, but it will have to wait for now. We're trying to get wxruby 0.6 >> released, despite two of the developers buried in work and my linux >> box kernel panic-ing on boot. >> > > I downloaded the cvs wxruby source (not swig) and wrote in the grid > events. I've got everything compiling fine, but for example the > EVT_GRID_CELL_LEFT_CLICK events fires when I left click on a cell, but > when it does I get a error and application quits: > > splitterWindow.rb:46:in `main_loop': wrong argument type false > (expected Class) > (TypeError) > from splitterWindow.rb:46:in `on_init' > from splitterWindow.rb:50:in `initialize' > from splitterWindow.rb:50:in `new' > from splitterWindow.rb:50 > > > Nick,Curt,Kevin....any ideas? Have you seen this type of error before? > > I'm running: > - ruby 1.8.2 > - windows 2000 > - latest cvs pull of wxruby > - msvc++ 6 > > Thanks, > > Zach > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From zdennis at mktec.com Fri Nov 19 15:56:48 2004 From: zdennis at mktec.com (Zach Dennis) Date: Fri Nov 19 15:56:51 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419E4595.2070107@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> <419DC478.5020509@mktec.com> <419E4595.2070107@nicreations.com> Message-ID: <419E5E10.3010803@mktec.com> Nick wrote: > > I added Zach's changes into wxruby, and tested them. They'll go into the > 0.6 release > Any idea when the 0.6 release will be? Zach From devel at nicreations.com Fri Nov 19 19:07:27 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 19 19:09:21 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419E5E10.3010803@mktec.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> <419DC478.5020509@mktec.com> <419E4595.2070107@nicreations.com> <419E5E10.3010803@mktec.com> Message-ID: <419E8ABF.9060809@nicreations.com> It would be today, but my linux box has gone to the bit-bucket in the sky. If a linux user could get the latest CVS code and make sure it builds and runs, I think we would be good to go. Nick Zach Dennis wrote: > Nick wrote: > >> >> I added Zach's changes into wxruby, and tested them. They'll go into >> the 0.6 release >> > > Any idea when the 0.6 release will be? > > Zach > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From sdate at everestkc.net Fri Nov 19 19:40:00 2004 From: sdate at everestkc.net (Shashank Date) Date: Fri Nov 19 19:39:35 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419E00E4.2070003@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419DCE28.2030707@everestkc.net> <419E00E4.2070003@nicreations.com> Message-ID: <419E9260.5060604@everestkc.net> Nick wrote: > It's all a bit confusing due to the number of licences involved. > Here's my understanding of commercialization: > > 1) The ruby licence is semi-gpl, but it allows for binary ruby > releases as long as you (a) include the libraries that come along, or > (b) rename the executable so it won't be confused with the real ruby. And what about the regex library which is still GPL (soon to be replaced with Oniguruma)? If I have to release the app before the replacement becomes mainstream, will I be able to compile it myself into ruby and then build my app, thereby escaping the issue? > 2) The wxWidgets licence is the very liberal, and basically allows > distribution in binary form without the need to open up the > application's source. There are two small caveats: using TIFF's or > using JPEG. See the Gotcha's section of the wxruby licence. OK ... that will not bother me since I do not use TIFF's/JPEGs. > 3) I *thought* Keven had changed the licence to something MIT based, > but I don't see a mention of it in the licence file. Hmmm ... I will wait for Kevin to respond. > So long story short, wxRuby is allowed in commercial apps. Good to know. Is there some ritual we will have to perform to keep the law sharks at bay, like getting it approved from a copyright lawyer or some such? Thanks, > Nick -- Shashank From zdennis at mktec.com Fri Nov 19 22:24:23 2004 From: zdennis at mktec.com (Zach Dennis) Date: Fri Nov 19 22:26:43 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419E8ABF.9060809@nicreations.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> <419DC478.5020509@mktec.com> <419E4595.2070107@nicreations.com> <419E5E10.3010803@mktec.com> <419E8ABF.9060809@nicreations.com> Message-ID: <419EB8E7.2060802@mktec.com> I tested in on my linux box. Everything appears to be working just fine. If you need access to a linux box I can get you ssh access to a debian box, you can have your pick at window managers from TWM, FVWM or IceWM and choose between desktop managers Ice, Gnome or KDE, and vnc or xport forward in. Just let me know if you need access, and I'll get you the account. Zach Nick wrote: > > It would be today, but my linux box has gone to the bit-bucket in the > sky. If a linux user could get the latest CVS code and make sure it > builds and runs, I think we would be good to go. > > Nick > > Zach Dennis wrote: > >> Nick wrote: >> >>> >>> I added Zach's changes into wxruby, and tested them. They'll go into >>> the 0.6 release >>> >> >> Any idea when the 0.6 release will be? >> >> Zach >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > From devel at nicreations.com Fri Nov 19 22:28:05 2004 From: devel at nicreations.com (Nick) Date: Fri Nov 19 22:30:18 2004 Subject: [Wxruby-users] Wx::Grid Questions ... In-Reply-To: <419EB8E7.2060802@mktec.com> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419D1D1E.3040300@mktec.com> <419D20A2.1000508@nicreations.com> <419DC478.5020509@mktec.com> <419E4595.2070107@nicreations.com> <419E5E10.3010803@mktec.com> <419E8ABF.9060809@nicreations.com> <419EB8E7.2060802@mktec.com> Message-ID: <419EB9C5.2000501@nicreations.com> Zach Dennis wrote: > I tested in on my linux box. Everything appears to be working just fine. Thanks! Thats what I needed to hear. Nick From zdennis at mktec.com Fri Nov 19 22:39:53 2004 From: zdennis at mktec.com (Zach Dennis) Date: Fri Nov 19 22:42:14 2004 Subject: [Wxruby-users] Adding to wxRuby (Now I fired up) Message-ID: <419EBC89.1040709@mktec.com> Nick, Curt, Kevin, Now that I have dabbled ever so slightly in adding to wxRuby on a source level (and it wasn't perfect, Nick had to fix some of my code!), I feel all fired up. Any areas specific that need to be added that I could test my luck with again, or can I just go pick and choose? This gets funner every day... (yes, i constitute "funner" as a word), Zach From curt at hibbs.com Fri Nov 19 23:10:12 2004 From: curt at hibbs.com (Curt Hibbs) Date: Fri Nov 19 23:09:45 2004 Subject: [Wxruby-users] Adding to wxRuby (Now I fired up) In-Reply-To: <419EBC89.1040709@mktec.com> Message-ID: Zach Dennis wrote: > > Nick, Curt, Kevin, > > Now that I have dabbled ever so slightly in adding to wxRuby on a source > level (and it wasn't perfect, Nick had to fix some of my code!), I feel > all fired up. > > Any areas specific that need to be added that I could test my luck with > again, or can I just go pick and choose? That's great, Zach! At the moment, Kevin is overwhelmed with other things in his life, and I've pretty much relegated myself helping with builds and releases (I've got my fingers in too many pies :-). So, you and Nick should coordinate on what would make sense. > This gets funner every day... (yes, i constitute "funner" as a word), I like "funner"! Curt From devel at nicreations.com Sat Nov 20 19:00:35 2004 From: devel at nicreations.com (Nick) Date: Sat Nov 20 19:02:29 2004 Subject: [Wxruby-users] Adding to wxRuby (Now I fired up) In-Reply-To: <419EBC89.1040709@mktec.com> References: <419EBC89.1040709@mktec.com> Message-ID: <419FDAA3.3000600@nicreations.com> > Any areas specific that need to be added that I could test my luck > with again, or can I just go pick and choose? One area we're missing in specifically (and would be really great to have) is wxPrinter, wxPrinterDC, wxPrintout, wxPrintPreview, and wxPrintDialog. wxPrinterDC should be an easy subclass of wxDC, while the rest I *think* should be fine with using .t files. Nick Zach Dennis wrote: > Nick, Curt, Kevin, > > Now that I have dabbled ever so slightly in adding to wxRuby on a > source level (and it wasn't perfect, Nick had to fix some of my > code!), I feel all fired up. > > Any areas specific that need to be added that I could test my luck > with again, or can I just go pick and choose? > > This gets funner every day... (yes, i constitute "funner" as a word), > > Zach > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From zdennis at mktec.com Sat Nov 20 20:04:54 2004 From: zdennis at mktec.com (Zach Dennis) Date: Sat Nov 20 20:07:16 2004 Subject: [Wxruby-users] Adding to wxRuby (Now I fired up) In-Reply-To: <419FDAA3.3000600@nicreations.com> References: <419EBC89.1040709@mktec.com> <419FDAA3.3000600@nicreations.com> Message-ID: <419FE9B6.7030801@mktec.com> Nick wrote: > >> Any areas specific that need to be added that I could test my luck >> with again, or can I just go pick and choose? > > > One area we're missing in specifically (and would be really great to > have) is wxPrinter, wxPrinterDC, wxPrintout, wxPrintPreview, and > wxPrintDialog. wxPrinterDC should be an easy subclass of wxDC, while the > rest I *think* should be fine with using .t files. > I will start looking into this tomorrow! Zach From zdennis at mktec.com Sun Nov 21 01:08:50 2004 From: zdennis at mktec.com (Zach Dennis) Date: Sun Nov 21 01:11:10 2004 Subject: [Wxruby-users] [DEVEL] Virtual Methods Message-ID: <41A030F2.6020801@mktec.com> Nick, I had a few minutes so I implemented the WxPrinterDC class tonight, and I have a question on Virtual Methods. Is there a general rule of thumb to follow? Should they be implemented in the wxRuby header and source files, or should I ignore them? They are not listed on the WxWidgets documentation page, but they are in the wxWidgets source file, as being public virtual methods. Examples: StartDoc //virtual method overriding the DC::StartDoc EndDoc //virtual method overriding the DC::EndDoc StartPage //virtual method overridng the DC::StartPage EndPage //virtual method overriding the DC::EndPage If I need trial and error I can do that, but thought maybe you followed a certain pattern... Thanks, Zach From wxruby at qualitycode.com Sun Nov 21 01:13:40 2004 From: wxruby at qualitycode.com (Kevin Smith) Date: Sun Nov 21 01:13:23 2004 Subject: [Wxruby-users] wxRuby license questions (was: Wx::Grid Questions ...) In-Reply-To: <419E9260.5060604@everestkc.net> References: <419D1394.70606@multitech.com> <419D1B59.60003@nicreations.com> <419DCE28.2030707@everestkc.net> <419E00E4.2070003@nicreations.com> <419E9260.5060604@everestkc.net> Message-ID: <41A03214.8010707@qualitycode.com> Shashank Date wrote: > Nick wrote: > >> It's all a bit confusing due to the number of licences involved. True. >> Here's my understanding of commercialization: >> >> 1) The ruby licence is semi-gpl, but it allows for binary ruby I'm no expert on the ruby license, but I think I agree with your summary. >> 2) The wxWidgets licence is the very liberal, and basically allows >> distribution in binary form without the need to open up the >> application's source. There are two small caveats: using TIFF's or >> using JPEG. See the Gotcha's section of the wxruby licence. Sounds right. The wxWindows (wxWidgets) wiki has a page or two about copyrights, licenses, patents, and other legal issues. Sorry I don't have a link handy. >> 3) I *thought* Keven had changed the licence to something MIT based, >> but I don't see a mention of it in the licence file. > > Hmmm ... I will wait for Kevin to respond. The older (non-swig) wxruby code is still under the same license that it had when I inherited the project, because I didn't feel comfortable changing the license of someone else's work. When I started wxruby-swig (from scratch), I chose a very simple and liberal MIT-style license, mostly because the wxWindows license is so confusing, >> So long story short, wxRuby is allowed in commercial apps. To the best of my knowlege, yes. > Good to know. Is there some ritual we will have to perform to keep the > law sharks at bay, like getting it approved from a copyright lawyer or > some such? Because both versions reuse existing licenses (wxWindows and MIT), I think we're in pretty good shape. Kevin From wxruby at qualitycode.com Sun Nov 21 01:21:46 2004 From: wxruby at qualitycode.com (Kevin Smith) Date: Sun Nov 21 01:21:29 2004 Subject: [Wxruby-users] [DEVEL] Virtual Methods In-Reply-To: <41A030F2.6020801@mktec.com> References: <41A030F2.6020801@mktec.com> Message-ID: <41A033FA.1000701@qualitycode.com> Zach Dennis wrote: > I had a few minutes so I implemented the WxPrinterDC class tonight, and > I have a question on Virtual Methods. Is there a general rule of thumb > to follow? Should they be implemented in the wxRuby header and source > files, or should I ignore them? I would have to look more closely to provide a really good answer. Some virtual methods are mandatory, and without them the class is useless. Others are rarely needed, and may not be worth the effort. > They are not listed on the WxWidgets documentation page, but they are in > the wxWidgets source file, as being public virtual methods. That would lead me to leave them out at first, and only add them if someone requests them. Unless they would be quick and easy to add, in which case I might do them while I'm working on the class anyway. > If I need trial and error I can do that, but thought maybe you followed > a certain pattern... My general pattern was to implement as much of a class that was easy, and then add any other critical parts, and then to move on to the next one. I hope that helps... Kevin P.S. Thanks for your recent work! A project like this is really hard to sustain, and any help is greatly appreciated. From devel at nicreations.com Sun Nov 21 09:03:35 2004 From: devel at nicreations.com (Nick) Date: Sun Nov 21 09:05:29 2004 Subject: [Wxruby-users] [DEVEL] Virtual Methods In-Reply-To: <41A030F2.6020801@mktec.com> References: <41A030F2.6020801@mktec.com> Message-ID: <41A0A037.4070509@nicreations.com> From my understanding of wxPrinterDC, those are for people to implement the platform specific contexts, or things like wxPostscriptDC. Since (for now) I can't imagine somebody attempting that sort of feat with wxPrinterDC, I would say pretend they're not virtual. Nick Zach Dennis wrote: > Nick, > > I had a few minutes so I implemented the WxPrinterDC class tonight, > and I have a question on Virtual Methods. Is there a general rule of > thumb to follow? Should they be implemented in the wxRuby header and > source files, or should I ignore them? > > They are not listed on the WxWidgets documentation page, but they are > in the wxWidgets source file, as being public virtual methods. > > Examples: > > StartDoc //virtual method overriding the DC::StartDoc > EndDoc //virtual method overriding the DC::EndDoc > StartPage //virtual method overridng the DC::StartPage > EndPage //virtual method overriding the DC::EndPage > > If I need trial and error I can do that, but thought maybe you > followed a certain pattern... > > Thanks, > > Zach > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From devel at nicreations.com Sun Nov 21 11:07:29 2004 From: devel at nicreations.com (Nick) Date: Sun Nov 21 11:09:32 2004 Subject: [Wxruby-users] wxRuby 0.6.0 is released! Message-ID: <41A0BD41.1000903@nicreations.com> wxRuby 0.6.0 has been released and is now available for download from RubyForge at http://wxruby.rubyforge.org/ This release includes binary builds for Max OS X and MS Windows. Changes in this release include: * Additional widget support in XRC (thanks to Marshall Elfstrand) * Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle Technologies Inc) * Addition of wxGrid event handlers (thanks to Zach Dennis) * wxBusyCursor and wxWindowDisabler interfaces changed to match the wxruby-swig interface. ---------- What is wxRuby? wxRuby is an open source GUI toolkit for the Ruby programming language. It provides a Ruby interface to the cross-platform wxWidgets C++ GUI framework (formerly known as wxWindows). wxRuby is intended to dramatically extend Ruby's usefulness in rapid prototyping and general UI development. wxWidgets is a mature, cross-platform GUI toolkit that uses native GUI widgets. This means that wxRuby applications can integrate seamlessly on each supported platform, and can behave like the user expects. Nick From sdate at everestkc.net Sun Nov 21 12:53:23 2004 From: sdate at everestkc.net (Shashank Date) Date: Sun Nov 21 12:52:57 2004 Subject: [Wxruby-users] wxRuby 0.6.0 is released! In-Reply-To: <41A0BD41.1000903@nicreations.com> References: <41A0BD41.1000903@nicreations.com> Message-ID: <41A0D613.3070101@everestkc.net> Nick wrote: > wxRuby 0.6.0 has been released and is now available for > download from RubyForge at http://wxruby.rubyforge.org/ > This release includes binary builds for Max OS X and > MS Windows. You guys are just awesome ! > Changes in this release include: > * Additional widget support in XRC (thanks to Marshall Elfstrand) > * Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle > Technologies Inc) > * Addition of wxGrid event handlers (thanks to Zach Dennis) > Great ! Thanks a million, Zach, I was desperately wanting Grid events. Do you have a new list of the additional events ... may be a new example :-) > * wxBusyCursor and wxWindowDisabler interfaces changed to match the > wxruby-swig interface. Where can I read about more details of "what is new in 0.6.0"? The ChangeLog hasn't changed much since the last release ;-) > Nick Again, I really really thank all of you for the good work. Really ! -- shanko From devel at nicreations.com Sun Nov 21 13:09:38 2004 From: devel at nicreations.com (Nick) Date: Sun Nov 21 13:11:40 2004 Subject: [Wxruby-users] wxRuby 0.6.0 is released! In-Reply-To: <41A0D613.3070101@everestkc.net> References: <41A0BD41.1000903@nicreations.com> <41A0D613.3070101@everestkc.net> Message-ID: <41A0D9E2.2090009@nicreations.com> > Great ! Thanks a million, Zach, I was desperately wanting Grid events. > Do you have a new list of the additional events ... may be > a new example :-) In order to test the new events, I addded some event handlers to the grid sample. There are some modifications - The wxGridEditorCreatedEvent does not have any "set" methods. This seemed unnecessary since it isn't an event posted by anyone except the grid itself - wxGridRangeSelectedEvent::GetBottomRightCoords and wxGridRangeSelectedEvent::GetTopLeftCoords return an array of coordinates instead of a wxGridCoords class. Nick Shashank Date wrote: > Nick wrote: > >> wxRuby 0.6.0 has been released and is now available for >> download from RubyForge at http://wxruby.rubyforge.org/ >> This release includes binary builds for Max OS X and >> MS Windows. > > > You guys are just awesome ! > >> Changes in this release include: >> * Additional widget support in XRC (thanks to Marshall Elfstrand) >> * Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle >> Technologies Inc) >> * Addition of wxGrid event handlers (thanks to Zach Dennis) >> > > > Great ! Thanks a million, Zach, I was desperately wanting Grid events. > Do you have a new list of the additional events ... may be > a new example :-) > >> * wxBusyCursor and wxWindowDisabler interfaces changed to match the >> wxruby-swig interface. > > > Where can I read about more details of "what is new in 0.6.0"? > The ChangeLog hasn't changed much since the last release ;-) > >> Nick > > > Again, I really really thank all of you for the good work. Really ! > -- shanko > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > From sdate at everestkc.net Sun Nov 21 14:54:10 2004 From: sdate at everestkc.net (Shashank Date) Date: Sun Nov 21 14:53:54 2004 Subject: [Wxruby-users] wxRuby 0.6.0 is released! In-Reply-To: <41A0D9E2.2090009@nicreations.com> References: <41A0BD41.1000903@nicreations.com> <41A0D613.3070101@everestkc.net> <41A0D9E2.2090009@nicreations.com> Message-ID: <41A0F262.5030200@everestkc.net> Hi Nick, Nick wrote: > > > Great ! Thanks a million, Zach, I was desperately wanting Grid events. > > Do you have a new list of the additional events ... may be > > a new example :-) > > In order to test the new events, I addded some event handlers to the > grid sample. There are some modifications > > - The wxGridEditorCreatedEvent does not have any "set" methods. This > seemed unnecessary since it isn't an event posted by anyone except the > grid itself > - wxGridRangeSelectedEvent::GetBottomRightCoords and > wxGridRangeSelectedEvent::GetTopLeftCoords return an array of > coordinates instead of a wxGridCoords class. Thanks, I will check it out. > Nick -- Shashank From devel at nicreations.com Mon Nov 22 08:18:56 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 22 08:21:03 2004 Subject: [Wxruby-users] Re: wxRuby 0.6.0 is released! In-Reply-To: <20041122.120625.41188814.Meino.Cramer@gmx.de> References: <41A0BD41.1000903@nicreations.com> <20041122.120625.41188814.Meino.Cramer@gmx.de> Message-ID: <41A1E740.6080002@nicreations.com> The issue is that wxGTK-2.4.2 fails to include the htmlproc.h header with the distribution. This usually isn't an issue, but since we're trying to wrap functionality, it doesn't build. Are you sure you have the 0.6 version of wxruby? I added a line in the extconf to remove the html widget on linux systems. Nick Meino Christian Cramer wrote: > From: Nick > Subject: wxRuby 0.6.0 is released! > Date: Mon, 22 Nov 2004 01:09:55 +0900 > > Hi, > > While compiling on a Linux box I get this error: > > g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fforce-addr -falign-functions=4 -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I. -c htmleasyprinting.cpp > g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fforce-addr -falign-functions=4 -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp > In file included from htmlprocessor.cpp:7: > htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory > In file included from htmlprocessor.cpp:7: > htmlprocessor.h:11: error: expected class-name before '{' token > htmlprocessor.h:28: error: variable or field `validateCppObject' declared void > htmlprocessor.h:28: error: expected `;' before '(' token > > .... > > I installed wxWindow 2.4.2 ... > > gcc ist of version 3.4.2 > > What didi I wrong here ? > > Regards, > Meino Cramer > > > >>wxRuby 0.6.0 has been released and is now available for >>download from RubyForge at http://wxruby.rubyforge.org/ >>This release includes binary builds for Max OS X and >>MS Windows. >> >>Changes in this release include: >>* Additional widget support in XRC (thanks to Marshall Elfstrand) >>* Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle >>Technologies Inc) >>* Addition of wxGrid event handlers (thanks to Zach Dennis) >>* wxBusyCursor and wxWindowDisabler interfaces changed to match the >>wxruby-swig interface. >> >>---------- >> >>What is wxRuby? >> >>wxRuby is an open source GUI toolkit for the Ruby programming >>language. It provides a Ruby interface to the cross-platform >>wxWidgets C++ GUI framework (formerly known as wxWindows). >>wxRuby is intended to dramatically extend Ruby's usefulness in >>rapid prototyping and general UI development. >> >>wxWidgets is a mature, cross-platform GUI toolkit that uses native >>GUI widgets. This means that wxRuby applications can integrate >>seamlessly on each supported platform, and can behave like the >>user expects. >> >>Nick >> >> >> > > > > From dmartenson at multitech.com Mon Nov 22 18:00:33 2004 From: dmartenson at multitech.com (Dale Martenson) Date: Mon Nov 22 17:53:42 2004 Subject: [Wxruby-users] Layout Issue ... Message-ID: <41A26F91.2060203@multitech.com> The following program represents the basic layout of my application. The problem I have is that the panel, and thus, the grid does not resize when the window width is expanded. Also, I would like the entire grid to be displayed without the horizontal scroll bar. How can I force this behavior? Please tell me if I am going about this incorrectly. I am just getting familar with wxRuby and any advice is appreciated. # CODE STARTS HERE .... require 'wxruby' class TestApp < Wx::App def on_init @frame = Wx::Frame.new( nil, -1, "Test", Wx::DEFAULT_POSITION ) @panel = Wx::Panel.new( @frame ) @topSizer = Wx::FlexGridSizer.new( 1, 3 ) @topSizer.add( createInputSizer(), 1, Wx::GROW|Wx::ALL, 2 ) @topSizer.add( createGridSizer(), 1, Wx::GROW|Wx::ALL, 2 ) @topSizer.add( createButtonSizer(), 1, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALL, 2 ) @panel.set_sizer( @topSizer ) @topSizer.fit( @frame ) @frame.show self.main_loop end def createButtonSizer @buttonSizer = Wx::BoxSizer.new( Wx::HORIZONTAL ) @btn1 = Wx::Button.new(@panel, -1, 'Button 1') @buttonSizer.add(@btn1, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2) @btn2 = Wx::Button.new(@panel, -1, 'Print') @buttonSizer.add(@btn2, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2) @buttonSizer end def createGridSizer @gridSizer = Wx::BoxSizer.new( Wx::VERTICAL ) @grid = Wx::Grid.new( @panel, -1, Wx::Point.new( 1, 1 ), Wx::Size.new( 500, 350 ) ) @grid.create_grid( 15, 7 ) @gridSizer.add( @grid, 1, Wx::GROW|Wx::ALL, 5 ) @gridSizer end def createInputSizer @inputSizer = Wx::FlexGridSizer.new( 4, 3 ) st1 = Wx::StaticText.new( @panel, -1, "Text:" ) @inputSizer.add( st1, 0, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL|Wx::ADJUST_MINSIZE, 5 ) @text1 = Wx::TextCtrl.new(@panel, -1, 'Type in here' ) @inputSizer.add( @text1, 0, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 5 ) st2 = Wx::StaticText.new( @panel, -1, "Text:" ) @inputSizer.add( st2, 0, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL|Wx::ADJUST_MINSIZE, 5 ) @text2 = Wx::TextCtrl.new(@panel, -1, 'Type in here' ) @inputSizer.add( @text2, 0, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 5 ) @inputSizer end end app = TestApp.new() From zdennis at mktec.com Mon Nov 22 19:07:02 2004 From: zdennis at mktec.com (Zach Dennis) Date: Mon Nov 22 19:06:56 2004 Subject: [Wxruby-users] Layout Issue ... In-Reply-To: <41A26F91.2060203@multitech.com> References: <41A26F91.2060203@multitech.com> Message-ID: <41A27F26.9040601@mktec.com> To give you some quick help.... Dale Martenson wrote: > The following program represents the basic layout of my application. The > problem I have is that the panel, and thus, the grid does not resize > when the window width is expanded. Since you are using a FlexGridSizer, you need to set the growable column and/or row. Add the following to your TestApp.on_init method, after you create the @topSizer. @topSizer.add_growable_col( 0 ) #the 1st column, which houses your grid @topSizer.add_growable_row( 1 ) #the 2nd row, which houses your grid > Also, I would like the entire grid to be displayed without the > horizontal scroll bar. How can I force this behavior? WxGrid is derived from WxScrolledWindow....and there is a method enable_scrolling on WxScrolledWindow, but it doesn't appear to be working, at least for WxGrid. I'll check it out later this week if somebody doesn't get to it first. When it is working you should be able to say: @grid.enable_scrolling( false , false ) to disable both x and y scrolling Another way that should disable the scrollbars is by giving the WxGrid enough screen space to be shown for it's total width and height. The method "get_best_size" and "get_adjusted_best_size" should give you the desired/preferred size of your Wx component, but they appear to be off by a few pixels. You can refer to the wxWindows documentation: http://www.wxwidgets.org/manuals/2.4.2/wx411.htm#wxwindow for more information. There are a few quirks with WxGrid. I don't know if they are WxRuby related or WxWindows related (I've never used WxWindows outside of WxRuby). The WxGrid seems to want to have white space at the bottom and at the right of the WxGrid. This appears to be the space that the ScrollBars would take up, and I can't say how to get rid of it. Feel free to keep asking Dale, if us folk on the list know an answer we'll give it to you, if we don't we'll try to find it out! Zach From zdennis at mktec.com Wed Nov 24 02:27:04 2004 From: zdennis at mktec.com (Zach Dennis) Date: Wed Nov 24 02:29:28 2004 Subject: [Wxruby-users] [DEVEL] Defining Pure Virtual Functions Message-ID: <41A437C8.3080309@mktec.com> I am working on the Printer, PrintDialog, PrintDialogData, PrinterDC, etc... classes and I'm having a problem with Printout. In the wxWindows source, the file "prntbase.h" defines the class "wxPrintout". When wrapping this for wxRuby I am trying the call: cppResult = new wxPrintout( cppParm0 ); //where cppParm0 is a wxString If I do this it complains that I need to override the abstract class wxPrintout, and define the method "bool OnPrintPage( int )". If I define in my header file: class wxPrintout{ public: virtual bool OnPrintPage( int i ); }; It will complain to be about "class type redefinition". Nick, Curt or kevin....have any of you seen this and could you give me any pointers on how to fix it? Thanks, Zach From wxruby at qualitycode.com Wed Nov 24 13:55:40 2004 From: wxruby at qualitycode.com (Kevin Smith) Date: Wed Nov 24 13:55:15 2004 Subject: [Wxruby-users] [DEVEL] Defining Pure Virtual Functions In-Reply-To: <41A437C8.3080309@mktec.com> References: <41A437C8.3080309@mktec.com> Message-ID: <41A4D92C.9060400@qualitycode.com> Zach Dennis wrote: > In the wxWindows source, the file "prntbase.h" defines the class > "wxPrintout". When wrapping this for wxRuby I am trying the call: > > cppResult = new wxPrintout( cppParm0 ); //where cppParm0 is a wxString > > If I do this it complains that I need to override the abstract class > wxPrintout, and define the method "bool OnPrintPage( int )". I believe you can pattern this class after dataobject.t. It seems that wxpp supports an "abstract" keyword for methods, along with an ABSTRACT keyword for the class declaration. I believe these will allow you to solve the problem you are seeing. You will need to implement stubs of the virtual methods, and it will be up to the ruby developer to override those implementations with their own "real" implementations in ruby. Hope this helps. Kevin From zdennis at mktec.com Wed Nov 24 23:04:55 2004 From: zdennis at mktec.com (Zach Dennis) Date: Wed Nov 24 23:07:12 2004 Subject: [Wxruby-users] wxRuby Print class Progress Message-ID: <41A559E7.60504@mktec.com> Right now I have the following progress made with printing: - WxPrinterDC - 100% - WxPrinter, 90% - WxPrintData - 10% - WxPrintDialog - 80% - WxPrintDialogData - 10% - WxHtmlPrintout - 10% - WxPrintout - 0% (this is abstract class I need to work on so wxRuby users can subclass) - WxPrintPreview - 0% By the end of this weekend I hope to have all of the above classes completed. I do have partial Windows printing capabilities working at this point. I thought'd I'd give the community a heads up. Nick/Curt/Kevin, how should I submit my code when I am done, email it to one of you or can i commit into cvs? Zach From zdennis at mktec.com Wed Nov 24 23:10:04 2004 From: zdennis at mktec.com (Zach Dennis) Date: Wed Nov 24 23:12:22 2004 Subject: [Wxruby-users] [DEVEL] Defining Pure Virtual Functions In-Reply-To: <41A4D92C.9060400@qualitycode.com> References: <41A437C8.3080309@mktec.com> <41A4D92C.9060400@qualitycode.com> Message-ID: <41A55B1C.107@mktec.com> Kevin Smith wrote: > Zach Dennis wrote: > >> In the wxWindows source, the file "prntbase.h" defines the class >> "wxPrintout". When wrapping this for wxRuby I am trying the call: >> >> cppResult = new wxPrintout( cppParm0 ); //where cppParm0 is a wxString >> >> If I do this it complains that I need to override the abstract class >> wxPrintout, and define the method "bool OnPrintPage( int )". > > > I believe you can pattern this class after dataobject.t. When you run wxpp.rb is it supposed to generate a .h and .cpp file, or does the extconf.rb look for a .t and do that? I have been doing everything by hand thus far to get a better feel for what I"m doing and partially because I dion't get what a .t file does. > It seems that > wxpp supports an "abstract" keyword for methods, along with an ABSTRACT > keyword for the class declaration. I believe these will allow you to > solve the problem you are seeing. You will need to implement stubs of > the virtual methods, and it will be up to the ruby developer to override > those implementations with their own "real" implementations in ruby. I am wxpp challenged. ;( but I will proceed on with wrapping the class and force the wxRuby user to provide implementation of methods. Thanks, Zach From wxruby at qualitycode.com Thu Nov 25 22:09:12 2004 From: wxruby at qualitycode.com (Kevin Smith) Date: Thu Nov 25 22:08:45 2004 Subject: [Wxruby-users] [DEVEL] Defining Pure Virtual Functions In-Reply-To: <41A55B1C.107@mktec.com> References: <41A437C8.3080309@mktec.com> <41A4D92C.9060400@qualitycode.com> <41A55B1C.107@mktec.com> Message-ID: <41A69E58.2060308@qualitycode.com> Zach Dennis wrote: > When you run wxpp.rb is it supposed to generate a .h and .cpp > file, or does the extconf.rb look for a .t and do that? I have been > doing everything by hand thus far to get a better feel for what I"m > doing and partially because I dion't get what a .t file does. A .t file "describes" a class. It is similar to a swig description, if you are familiar with that (but if you aren't, don't worry about it). Running wxpp.rb on a .t file will produce the corresponding .cpp and .h files. You should tell extconf about them so the makefile will build them for you automatically. The .t file gets checked into cvs, and the built .cpp and .h files do not. > I am wxpp challenged. ;( Unfortunately, we all are. That's part of the motivation to move to swig. Swig basically does what wxpp does, but it is a standard tool that many people already know, and it is quite a bit more powerful in several ways. Cheers, Kevin From wxruby at qualitycode.com Fri Nov 26 10:28:10 2004 From: wxruby at qualitycode.com (Kevin Smith) Date: Fri Nov 26 10:27:38 2004 Subject: [Wxruby-users] wxRuby Print class Progress In-Reply-To: <41A559E7.60504@mktec.com> References: <41A559E7.60504@mktec.com> Message-ID: <41A74B8A.10507@qualitycode.com> Zach Dennis wrote: > Right now I have the following progress made with printing: Cool! > Nick/Curt/Kevin, how should I submit my code when I am done, email it to > one of you or can i commit into cvs? Hopefully Nick is in a position to accept your submission via email and check it in. Our project policy so far has been to request patches to be submitted via email (off-list, if they are large). After we have confidence in the skills and intent of a contributor, we would grant that person cvs rights to make it easier for everyone. As an aside, that's my biggest frustration with cvs (and subversion), and the reason I experimented with darcs for version control a few months ago. I still expect to switch to a distributed version control system like arch/arx or monotone at some point. So far, none of the distributed version control systems are stable, robust, and usable on all three major platforms (win/mac/linux). But all are close, and are making good progress. Such a tool could greatly improve the productivity of small projects like wxruby. Thanks, Kevin From zdennis at mktec.com Sun Nov 28 00:39:41 2004 From: zdennis at mktec.com (Zach Dennis) Date: Sun Nov 28 00:41:56 2004 Subject: [Wxruby-users] wxRuby Print class Progress In-Reply-To: <41A559E7.60504@mktec.com> References: <41A559E7.60504@mktec.com> Message-ID: <41A9649D.2030407@mktec.com> I have the following classes complete except for a few methods... - WxPrinter - WxPrinterDC - WxPrintDialog - WxPrintDialogData - WxPrintData - WxHtmlPrintout - WxPrintPreview For the most part printing is working on Windows. I have my Linux and my OS X box up, and I'm going to test it on there tomorrow. I still need to convert my .cpp and .h file into a .t file. Does anyone have a script that converts the .cpp and .h file into a .t file (just to save me a little time)? I still have to write a wrapper for the wxPrintout abstract class, and that should be done tomorrow. My question is....as I am testing this I would like to start writing on the Wiki at the same time so I make sure I document it as I go. There are a few quirks I found, but I haven't used wxWindows outside of wxRuby so I don't know if it's my work or just how wxWindows works. Should I just write on the wiki (even though the printing isn't in a release yet) or should I hold off until someone (Nick?) gets a chance to check it out? Also, the API documentation needs to be updated on the wiki. Is there a script that auto does this, or...does it need to be written? I don't mind writing one if it needs to be there. If there is one, could I look at it's source, I am thinking of writing a semi-intelligent ruby script which links to the approriate wxWindows documentation page for a class and/or method. Thanks, Zach From wxruby at qualitycode.com Sun Nov 28 10:16:06 2004 From: wxruby at qualitycode.com (Kevin Smith) Date: Sun Nov 28 10:15:41 2004 Subject: [Wxruby-users] wxRuby Print class Progress In-Reply-To: <41A9649D.2030407@mktec.com> References: <41A559E7.60504@mktec.com> <41A9649D.2030407@mktec.com> Message-ID: <41A9EBB6.9050107@qualitycode.com> Zach Dennis wrote: > I still need to convert my .cpp and .h file into a .t file. Does anyone > have a script that converts the .cpp and .h file into a .t file (just to > save me a little time)? I wouldn't bother converting them. The .t files are intended to serve two purposes: 1) make it easier to implement a class, and 2) Eliminate duplicate code between classes. The former is not an issue here, since you have already done the work. The main benefits of the latter don't kick in until *all* the classes are .t files, at which point things like memory management become easier to implement system-wide. So my advice would be to just go ahead and submit your .cpp and .h files. Later, someone can sweep through the entire system converting existing .cpp/.h files to be .t files, if there is enough benefit. However, my guess/hope is that wxruby-swig will be working before then. > My question is....as I am testing this I would like to start writing on > the Wiki at the same time so I make sure I document it as I go. There > are a few quirks I found, but I haven't used wxWindows outside of wxRuby > so I don't know if it's my work or just how wxWindows works. Should I > just write on the wiki (even though the printing isn't in a release yet) > or should I hold off until someone (Nick?) gets a chance to check it out? If I understand your question correctly, I think it would be best for you to write your documentation on the wiki, but put a note at the top saying that as of this date/version, these classes are not yet part of the official project. Later, you (or someone) can update or remove the note. Thanks, Kevin From devel at nicreations.com Mon Nov 29 16:54:08 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 29 16:56:10 2004 Subject: [Wxruby-users] Problems with wxruby 0.6 under linux In-Reply-To: <20041124.080929.41633531.Meino.Cramer@gmx.de> References: <41A0BD41.1000903@nicreations.com> <20041122.120625.41188814.Meino.Cramer@gmx.de> <41A1E740.6080002@nicreations.com> <20041124.080929.41633531.Meino.Cramer@gmx.de> Message-ID: <41AB9A80.4000303@nicreations.com> Sorry for the delay - was on vacation. Double check your extconf file - there should be a couple of lines under the linux section that remove the html files. Change the lines: ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| $objs.delete(str) end to the following ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| puts "Removing ${str}" $objs.delete(str) end Re-run the extconf, and see if you get the debug message. Nick Meino Christian Cramer wrote: > From: Nick > Subject: Re: wxRuby 0.6.0 is released! > Date: Mon, 22 Nov 2004 22:21:35 +0900 > > Hi Nick, > > thanks for your reply ! > Yes, I am sure... > I downloaded a fresh copy of version 0.6 of wxRuby and did the following > > [wxruby-0.6-src/] :cd src > [src/] :ruby extconf.rb > creating Makefile > [src/] :make > > ....(many lines of successful compiled source files).... > > g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fforce-addr -falign-functions=4 -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp > In file included from htmlprocessor.cpp:7: > htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory > In file included from htmlprocessor.cpp:7: > htmlprocessor.h:11: error: expected class-name before '{' token > > Again compilation fails... > > (PS: For an unkown reason to me, I can read the ruby-mailinglist, but > as soon I try to post, I get a "not allowed" back...that's why this a > private mail to you but do not hesitate to handle it as it would be > posted to the public, Nick!) > > Keep hacking! > Meino > > > >>The issue is that wxGTK-2.4.2 fails to include the htmlproc.h header >>with the distribution. This usually isn't an issue, but since we're >>trying to wrap functionality, it doesn't build. >> >>Are you sure you have the 0.6 version of wxruby? I added a line in the >>extconf to remove the html widget on linux systems. >> >>Nick >> >> >>Meino Christian Cramer wrote: >> >>>From: Nick >>>Subject: wxRuby 0.6.0 is released! >>>Date: Mon, 22 Nov 2004 01:09:55 +0900 >>> >>>Hi, >>> >>> While compiling on a Linux box I get this error: >>> >>> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fforce-addr -falign-functions=4 -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I. -c htmleasyprinting.cpp >>> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fforce-addr -falign-functions=4 -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp >>> In file included from htmlprocessor.cpp:7: >>> htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory >>> In file included from htmlprocessor.cpp:7: >>> htmlprocessor.h:11: error: expected class-name before '{' token >>> htmlprocessor.h:28: error: variable or field `validateCppObject' declared void >>> htmlprocessor.h:28: error: expected `;' before '(' token >>> >>> .... >>> >>> I installed wxWindow 2.4.2 ... >>> >>> gcc ist of version 3.4.2 >>> >>> What didi I wrong here ? >>> >>> Regards, >>> Meino Cramer >>> >>> >>> >>> >>>>wxRuby 0.6.0 has been released and is now available for >>>>download from RubyForge at http://wxruby.rubyforge.org/ >>>>This release includes binary builds for Max OS X and >>>>MS Windows. >>>> >>>>Changes in this release include: >>>>* Additional widget support in XRC (thanks to Marshall Elfstrand) >>>>* Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle >>>>Technologies Inc) >>>>* Addition of wxGrid event handlers (thanks to Zach Dennis) >>>>* wxBusyCursor and wxWindowDisabler interfaces changed to match the >>>>wxruby-swig interface. >>>> >>>>---------- >>>> >>>>What is wxRuby? >>>> >>>>wxRuby is an open source GUI toolkit for the Ruby programming >>>>language. It provides a Ruby interface to the cross-platform >>>>wxWidgets C++ GUI framework (formerly known as wxWindows). >>>>wxRuby is intended to dramatically extend Ruby's usefulness in >>>>rapid prototyping and general UI development. >>>> >>>>wxWidgets is a mature, cross-platform GUI toolkit that uses native >>>>GUI widgets. This means that wxRuby applications can integrate >>>>seamlessly on each supported platform, and can behave like the >>>>user expects. >>>> >>>>Nick >>>> >>>> >>>> >>> >>> >>> >>> >> > > > From zdennis at mktec.com Mon Nov 29 17:07:49 2004 From: zdennis at mktec.com (Zach Dennis) Date: Mon Nov 29 17:07:29 2004 Subject: [Wxruby-users] Problems with wxruby 0.6 under linux In-Reply-To: <41AB9A80.4000303@nicreations.com> References: <41A0BD41.1000903@nicreations.com> <20041122.120625.41188814.Meino.Cramer@gmx.de> <41A1E740.6080002@nicreations.com> <20041124.080929.41633531.Meino.Cramer@gmx.de> <41AB9A80.4000303@nicreations.com> Message-ID: <41AB9DB5.1060008@mktec.com> I didn't even see this one...i apologize for not catching this earlier and looking into it! Zach Nick wrote: > > Sorry for the delay - was on vacation. Double check your extconf file - > there should be a couple of lines under the linux section that remove > the html files. Change the lines: > > ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| > $objs.delete(str) > end > > > to the following > > ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| > puts "Removing ${str}" > $objs.delete(str) > end > > > Re-run the extconf, and see if you get the debug message. > > Nick > > Meino Christian Cramer wrote: > >> From: Nick >> Subject: Re: wxRuby 0.6.0 is released! >> Date: Mon, 22 Nov 2004 22:21:35 +0900 >> >> Hi Nick, >> >> thanks for your reply ! Yes, I am sure... >> I downloaded a fresh copy of version 0.6 of wxRuby and did the following >> >> [wxruby-0.6-src/] :cd src >> [src/] :ruby extconf.rb >> creating Makefile >> [src/] :make >> >> ....(many lines of successful compiled source files).... >> >> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse >> -funroll-loops -fforce-addr -falign-functions=4 >> -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config >> --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux >> -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp >> In file included from htmlprocessor.cpp:7: >> htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory >> In file included from htmlprocessor.cpp:7: >> htmlprocessor.h:11: error: expected class-name before '{' token >> >> Again compilation fails... >> >> (PS: For an unkown reason to me, I can read the ruby-mailinglist, but >> as soon I try to post, I get a "not allowed" back...that's why this a >> private mail to you but do not hesitate to handle it as it would be >> posted to the public, Nick!) >> >> Keep hacking! >> Meino >> >> >> >>> The issue is that wxGTK-2.4.2 fails to include the htmlproc.h header >>> with the distribution. This usually isn't an issue, but since we're >>> trying to wrap functionality, it doesn't build. >>> >>> Are you sure you have the 0.6 version of wxruby? I added a line in >>> the extconf to remove the html widget on linux systems. >>> >>> Nick >>> >>> >>> Meino Christian Cramer wrote: >>> >>>> From: Nick >>>> Subject: wxRuby 0.6.0 is released! >>>> Date: Mon, 22 Nov 2004 01:09:55 +0900 >>>> >>>> Hi, >>>> >>>> While compiling on a Linux box I get this error: >>>> >>>> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse >>>> -funroll-loops -fforce-addr -falign-functions=4 >>>> -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config >>>> --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux >>>> -I/usr/lib/ruby/1.8/i686-linux -I. -c htmleasyprinting.cpp >>>> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse >>>> -funroll-loops -fforce-addr -falign-functions=4 >>>> -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config >>>> --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux >>>> -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp >>>> In file included from htmlprocessor.cpp:7: >>>> htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory >>>> In file included from htmlprocessor.cpp:7: >>>> htmlprocessor.h:11: error: expected class-name before '{' token >>>> htmlprocessor.h:28: error: variable or field `validateCppObject' >>>> declared void >>>> htmlprocessor.h:28: error: expected `;' before '(' token >>>> >>>> .... >>>> >>>> I installed wxWindow 2.4.2 ... >>>> >>>> gcc ist of version 3.4.2 >>>> >>>> What didi I wrong here ? >>>> >>>> Regards, >>>> Meino Cramer >>>> >>>> >>>> >>>> >>>>> wxRuby 0.6.0 has been released and is now available for >>>>> download from RubyForge at http://wxruby.rubyforge.org/ >>>>> This release includes binary builds for Max OS X and >>>>> MS Windows. >>>>> >>>>> Changes in this release include: >>>>> * Additional widget support in XRC (thanks to Marshall Elfstrand) >>>>> * Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle >>>>> Technologies Inc) >>>>> * Addition of wxGrid event handlers (thanks to Zach Dennis) >>>>> * wxBusyCursor and wxWindowDisabler interfaces changed to match the >>>>> wxruby-swig interface. >>>>> >>>>> ---------- >>>>> >>>>> What is wxRuby? >>>>> >>>>> wxRuby is an open source GUI toolkit for the Ruby programming >>>>> language. It provides a Ruby interface to the cross-platform >>>>> wxWidgets C++ GUI framework (formerly known as wxWindows). >>>>> wxRuby is intended to dramatically extend Ruby's usefulness in >>>>> rapid prototyping and general UI development. >>>>> >>>>> wxWidgets is a mature, cross-platform GUI toolkit that uses native >>>>> GUI widgets. This means that wxRuby applications can integrate >>>>> seamlessly on each supported platform, and can behave like the >>>>> user expects. >>>>> >>>>> Nick >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >> >> >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > From devel at nicreations.com Mon Nov 29 17:27:13 2004 From: devel at nicreations.com (Nick) Date: Mon Nov 29 17:28:56 2004 Subject: [Wxruby-users] Problems with wxruby 0.6 under linux In-Reply-To: <41AB9A80.4000303@nicreations.com> References: <41A0BD41.1000903@nicreations.com> <20041122.120625.41188814.Meino.Cramer@gmx.de> <41A1E740.6080002@nicreations.com> <20041124.080929.41633531.Meino.Cramer@gmx.de> <41AB9A80.4000303@nicreations.com> Message-ID: <41ABA241.5050106@nicreations.com> I should have prefixed this with "This comes from a question from the ruby-talk list". Nick wrote: > > Sorry for the delay - was on vacation. Double check your extconf file - > there should be a couple of lines under the linux section that remove > the html files. Change the lines: > > ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| > $objs.delete(str) > end > > > to the following > > ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| > puts "Removing ${str}" > $objs.delete(str) > end > > > Re-run the extconf, and see if you get the debug message. > > Nick > > Meino Christian Cramer wrote: > >> From: Nick >> Subject: Re: wxRuby 0.6.0 is released! >> Date: Mon, 22 Nov 2004 22:21:35 +0900 >> >> Hi Nick, >> >> thanks for your reply ! Yes, I am sure... >> I downloaded a fresh copy of version 0.6 of wxRuby and did the following >> >> [wxruby-0.6-src/] :cd src >> [src/] :ruby extconf.rb >> creating Makefile >> [src/] :make >> >> ....(many lines of successful compiled source files).... >> >> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse >> -funroll-loops -fforce-addr -falign-functions=4 >> -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config >> --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux >> -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp >> In file included from htmlprocessor.cpp:7: >> htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory >> In file included from htmlprocessor.cpp:7: >> htmlprocessor.h:11: error: expected class-name before '{' token >> >> Again compilation fails... >> >> (PS: For an unkown reason to me, I can read the ruby-mailinglist, but >> as soon I try to post, I get a "not allowed" back...that's why this a >> private mail to you but do not hesitate to handle it as it would be >> posted to the public, Nick!) >> >> Keep hacking! >> Meino >> >> >> >>> The issue is that wxGTK-2.4.2 fails to include the htmlproc.h header >>> with the distribution. This usually isn't an issue, but since we're >>> trying to wrap functionality, it doesn't build. >>> >>> Are you sure you have the 0.6 version of wxruby? I added a line in >>> the extconf to remove the html widget on linux systems. >>> >>> Nick >>> >>> >>> Meino Christian Cramer wrote: >>> >>>> From: Nick >>>> Subject: wxRuby 0.6.0 is released! >>>> Date: Mon, 22 Nov 2004 01:09:55 +0900 >>>> >>>> Hi, >>>> >>>> While compiling on a Linux box I get this error: >>>> >>>> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse >>>> -funroll-loops -fforce-addr -falign-functions=4 >>>> -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config >>>> --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux >>>> -I/usr/lib/ruby/1.8/i686-linux -I. -c htmleasyprinting.cpp >>>> g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse >>>> -funroll-loops -fforce-addr -falign-functions=4 >>>> -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx -fPIC `wx-config >>>> --cxxflags` -I. -I/usr/lib/ruby/1.8/i686-linux >>>> -I/usr/lib/ruby/1.8/i686-linux -I. -c htmlprocessor.cpp >>>> In file included from htmlprocessor.cpp:7: >>>> htmlprocessor.h:9:30: wx/html/htmlproc.h: No such file or directory >>>> In file included from htmlprocessor.cpp:7: >>>> htmlprocessor.h:11: error: expected class-name before '{' token >>>> htmlprocessor.h:28: error: variable or field `validateCppObject' >>>> declared void >>>> htmlprocessor.h:28: error: expected `;' before '(' token >>>> >>>> .... >>>> >>>> I installed wxWindow 2.4.2 ... >>>> >>>> gcc ist of version 3.4.2 >>>> >>>> What didi I wrong here ? >>>> >>>> Regards, >>>> Meino Cramer >>>> >>>> >>>> >>>> >>>>> wxRuby 0.6.0 has been released and is now available for >>>>> download from RubyForge at http://wxruby.rubyforge.org/ >>>>> This release includes binary builds for Max OS X and >>>>> MS Windows. >>>>> >>>>> Changes in this release include: >>>>> * Additional widget support in XRC (thanks to Marshall Elfstrand) >>>>> * Addition of wxScrollbar (thanks to Hans Harmon of Pinnacle >>>>> Technologies Inc) >>>>> * Addition of wxGrid event handlers (thanks to Zach Dennis) >>>>> * wxBusyCursor and wxWindowDisabler interfaces changed to match the >>>>> wxruby-swig interface. >>>>> >>>>> ---------- >>>>> >>>>> What is wxRuby? >>>>> >>>>> wxRuby is an open source GUI toolkit for the Ruby programming >>>>> language. It provides a Ruby interface to the cross-platform >>>>> wxWidgets C++ GUI framework (formerly known as wxWindows). >>>>> wxRuby is intended to dramatically extend Ruby's usefulness in >>>>> rapid prototyping and general UI development. >>>>> >>>>> wxWidgets is a mature, cross-platform GUI toolkit that uses native >>>>> GUI widgets. This means that wxRuby applications can integrate >>>>> seamlessly on each supported platform, and can behave like the >>>>> user expects. >>>>> >>>>> Nick >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >> >> >> > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >