From MAILER-DAEMON Sun Jun 01 01:55:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MLoP-00048n-Vr
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 01:55:21 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MLoN-00045G-Oc
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 01:55:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MLoK-0003wx-NS
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 01:55:18 -0400
Received: from h008.c000.snv.cp.net ([209.228.32.72] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19MLoJ-0003qW-Gx
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 01:55:15 -0400
Received: (cpmta 25108 invoked from network); 31 May 2003 22:55:11 -0700
Received: from 68.24.73.96 (HELO l5)
  by smtp.hibbs.com (209.228.32.72) with SMTP; 31 May 2003 22:55:11 -0700
X-Sent: 1 Jun 2003 05:55:11 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Status report
Date: Sun, 1 Jun 2003 00:55:00 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEAEPBGLAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <1054403652.30646.30.camel@CC1644462-A>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 01 Jun 2003 05:55:20 -0000

I can't tell you how happy I am that you've jumped into this. You're making
great progress! I'm still pretty much on the sidelines as I concentrate on
my new job.

But I'm really looking forward to (in the near future) developing a FreeRIDE
plugin that renders the FreeRIDE GUI with wxRuby.  The only unknown about
this for me is Scintilla. We need a wxScintilla for the code-editing
component. I remember reading somewhere that Scintilla is used somewhere
within wxWindows, so this work may already be done. I will research this
when I get a chance.

Curt

> -----Original Message-----
> From: wxruby-dev-bounces+curt=hibbs.com@nongnu.org
> [mailto:wxruby-dev-bounces+curt=hibbs.com@nongnu.org]On Behalf Of Kevin
> Smith
> Sent: Saturday, May 31, 2003 12:54 PM
> To: wxruby-dev@nongnu.org
> Subject: [Wxruby-dev] Status report
>
>
> Today I bumped the savannah project status up from "planning" to
> "pre-alpha".
>
> This past week, I have been doing minor refactoring that will generally
> make it easier to move forward. Mostly, I have been moving code out of
> .h files and into .cpp files.
>
> Originally I thought I would end up with a bunch of code in the .h files
> as a result of my template process. Later, I realized it was better for
> several reasons to keep the code in the .cpp file, and it turned out to
> be easy to do with templates once I had the right model.
>
> This weekend, I hope to have each class able to define itself, which
> will mean that wx.cpp won't have to include the world. This is important
> to cut compile times as I fiddle with individual classes.
>
> After that, I'll get back to templatizing more classes.
>
> Kevin
>
>
>
>
> _______________________________________________
> Wxruby-dev mailing list
> Wxruby-dev@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/wxruby-dev
>




From MAILER-DAEMON Sun Jun 01 01:57:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MLqF-0000tR-H6
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 01:57:15 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MLq6-0000La-Bk
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 01:57:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MLq1-00006k-OX
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 01:57:02 -0400
Received: from h008.c000.snv.cp.net ([209.228.32.72] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19MLpi-0007ck-Me
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 01:56:42 -0400
Received: (cpmta 25907 invoked from network); 31 May 2003 22:56:40 -0700
Received: from 68.24.73.96 (HELO l5)
  by smtp.hibbs.com (209.228.32.72) with SMTP; 31 May 2003 22:56:40 -0700
X-Sent: 1 Jun 2003 05:56:40 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Request for non-coding assistance
Date: Sun, 1 Jun 2003 00:56:29 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEEEPBGLAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <F49A38ED-93B8-11D7-8858-000A95765742@infoether.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 01 Jun 2003 05:57:13 -0000

Thanks Rich for jumping in here and helping out!

Curt

> -----Original Message-----
> From: wxruby-dev-bounces+curt=hibbs.com@nongnu.org
> [mailto:wxruby-dev-bounces+curt=hibbs.com@nongnu.org]On Behalf Of
> Richard Kilmer
> Sent: Saturday, May 31, 2003 5:41 PM
> To: wxruby-dev@nongnu.org
> Subject: Re: [Wxruby-dev] Request for non-coding assistance
> 
> 
> OK...so here you go.  It was a bit nasty to parse out some of the 
> destructors and stuff...but here the jist of it.  I have a file 
> (attached) named 'parse_wxdoc.rb'.  Drop it in the doc/latex/wx dir.  
> It actually builds an object structure:
> 
> WxClass
>    name
>    constructors (array of WxMethods)
>    methods (array of WxMethods)
> 
> WxMethod
>    return_type
>    name
>    params (array of WxParams)
> 
> WxParam
>    ptype
>    pname
> 
> If you run with a parameter "ruby parse_wxdoc.rb frame.tex" it will 
> output the class/methods+params.  If you just run this file with "ruby 
> parse_wxdoc.rb" it will iterate over all of the .tex files and try and 
> parse them.  There is a whole slew it cannot parse (and it lists 
> those), but it gets the majority of them.  It then outputs the 
> class/methods+params.  Its easy from this point to generate whatever 
> you want insofar as a format goes.
> 
> Let me know if this works for you.
> 
> Best,
> 
> Rich
> 
> 



From MAILER-DAEMON Sun Jun 01 12:37:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MVnJ-0003vn-TL
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 12:34:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MVmt-0003De-SZ
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 12:34:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MVmM-0002l0-7E
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 12:33:54 -0400
Received: from smtp802.mail.sc5.yahoo.com ([66.163.168.181])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19MVlO-0001hU-9q
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 12:32:54 -0400
Received: from adsl-67-125-86-97.dsl.snfc21.pacbell.net (HELO ?192.168.254.2?)
	(kevins527@sbcglobal.net@67.125.86.97 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	1 Jun 2003 16:32:53 -0000
Subject: Re: [Wxruby-dev] Request for non-coding assistance
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <F49A38ED-93B8-11D7-8858-000A95765742@infoether.com>
References: <F49A38ED-93B8-11D7-8858-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1054485172.30078.84.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 01 Jun 2003 09:32:52 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 01 Jun 2003 16:34:52 -0000

Hey Rich,

I got parse_wxdoc working, but I have one possible problem, and one
feature request. It's already way better than what I was planning to
have to do, so you've already saved me time.

The first file I tried was window. Generally it looks good, but I see
that ClientToScreen isn't listed. I haven't yet looked at the tex file
to try to figure it out.

The feature request is: Would it be possible to list the Python
signatures where they exist? I plan to match the Python implementation
where it differs from C++. One example is window's ClientToScreen call. 

Do you think it would be difficult to include the Python alternatives as
extra text associated with the method? Then, they could be printed out
below the C++ version, with an extra tab to set them off. That would be
really great.

Thanks!

Kevin


On Sat, 2003-05-31 at 15:41, Richard Kilmer wrote:
> OK...so here you go.  It was a bit nasty to parse out some of the 
> destructors and stuff...but here the jist of it.  I have a file 
> (attached) named 'parse_wxdoc.rb'.  Drop it in the doc/latex/wx dir.  
> It actually builds an object structure:
> 
> WxClass
>    name
>    constructors (array of WxMethods)
>    methods (array of WxMethods)
> 
> WxMethod
>    return_type
>    name
>    params (array of WxParams)
> 
> WxParam
>    ptype
>    pname
> 
> If you run with a parameter "ruby parse_wxdoc.rb frame.tex" it will 
> output the class/methods+params.  If you just run this file with "ruby 
> parse_wxdoc.rb" it will iterate over all of the .tex files and try and 
> parse them.  There is a whole slew it cannot parse (and it lists 
> those), but it gets the majority of them.  It then outputs the 
> class/methods+params.  Its easy from this point to generate whatever 
> you want insofar as a format goes.
> 
> Let me know if this works for you.
> 
> Best,
> 
> Rich
> 





From MAILER-DAEMON Sun Jun 01 13:19:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MWTy-0007m8-Bu
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 13:18:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MWTQ-0006dV-Cn
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 13:18:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MWTG-0006Lw-Nb
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 13:18:15 -0400
Received: from smtp800.mail.sc5.yahoo.com ([66.163.168.179])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19MWTA-0006An-QS
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 13:18:08 -0400
Received: from adsl-67-125-86-97.dsl.snfc21.pacbell.net (HELO ?192.168.254.2?)
	(kevins527@sbcglobal.net@67.125.86.97 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	1 Jun 2003 17:18:03 -0000
Subject: RE: [Wxruby-dev] Internal mechanism question
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <INEGJNJOFAMNDPNEABNEEEBGGLAA.curt@hibbs.com>
References: <INEGJNJOFAMNDPNEABNEEEBGGLAA.curt@hibbs.com>
Content-Type: text/plain
Organization: 
Message-Id: <1054487883.30078.91.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 01 Jun 2003 10:18:03 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 01 Jun 2003 17:18:57 -0000

On Sun, 2003-05-25 at 23:29, Curt Hibbs wrote:
> Why not have the WxFrame class contain an instance variable that holds a
> reference to the frame's menubar (which is initialized to nil). Then when
> get_menu_bar is called, the wrapper is created if the instance variable is
> nil, otherwise the value of the instance variable is returned.

I went back and looked at this today. Each WxClass would have to store
quite a few variables, and I suspect it would be difficult to get them
set correctly at the right times.

So I put code in my template that every time any ruby WxXxx object is
created, we put the ruby and cpp objects in a hashmap. Whenever any cpp
function returns a cpp wxXxx object, we look it up in the map to see if
we already have the corresponding ruby object. If we don't, we wrap it
by creating a ruby object of the appropriate base type.

It's only about twenty lines of code total, and should do the job.
Later, when I get back to handling object destruction cleanly, I'll have
to delete entries from that map as needed.

Kevin





From MAILER-DAEMON Sun Jun 01 15:14:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MYGW-0006bb-O7
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 15:13:12 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MYFu-0005eV-8v
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 15:12:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MYFq-0005cN-Rk
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 15:12:31 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19MYFX-0005Jz-UG
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 15:12:12 -0400
Received: (qmail 8032 invoked from network); 1 Jun 2003 19:06:46 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 1 Jun 2003 19:06:46 -0000
Date: Sun, 1 Jun 2003 15:12:11 -0400
Subject: Re: [Wxruby-dev] Request for non-coding assistance
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <1054485172.30078.84.camel@CC1644462-A>
Message-Id: <F2194B60-9464-11D7-95D2-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 01 Jun 2003 19:13:11 -0000

Am looking into it now...

Best,

Rich

On Sunday, June 1, 2003, at 12:32  PM, Kevin Smith wrote:

> Hey Rich,
>
> I got parse_wxdoc working, but I have one possible problem, and one
> feature request. It's already way better than what I was planning to
> have to do, so you've already saved me time.
>
> The first file I tried was window. Generally it looks good, but I see
> that ClientToScreen isn't listed. I haven't yet looked at the tex file
> to try to figure it out.
>
> The feature request is: Would it be possible to list the Python
> signatures where they exist? I plan to match the Python implementation
> where it differs from C++. One example is window's ClientToScreen call.
>
> Do you think it would be difficult to include the Python alternatives 
> as
> extra text associated with the method? Then, they could be printed out
> below the C++ version, with an extra tab to set them off. That would be
> really great.
>
> Thanks!
>
> Kevin
>
>
> On Sat, 2003-05-31 at 15:41, Richard Kilmer wrote:
>> OK...so here you go.  It was a bit nasty to parse out some of the
>> destructors and stuff...but here the jist of it.  I have a file
>> (attached) named 'parse_wxdoc.rb'.  Drop it in the doc/latex/wx dir.
>> It actually builds an object structure:
>>
>> WxClass
>>    name
>>    constructors (array of WxMethods)
>>    methods (array of WxMethods)
>>
>> WxMethod
>>    return_type
>>    name
>>    params (array of WxParams)
>>
>> WxParam
>>    ptype
>>    pname
>>
>> If you run with a parameter "ruby parse_wxdoc.rb frame.tex" it will
>> output the class/methods+params.  If you just run this file with "ruby
>> parse_wxdoc.rb" it will iterate over all of the .tex files and try and
>> parse them.  There is a whole slew it cannot parse (and it lists
>> those), but it gets the majority of them.  It then outputs the
>> class/methods+params.  Its easy from this point to generate whatever
>> you want insofar as a format goes.
>>
>> Let me know if this works for you.
>>
>> Best,
>>
>> Rich
>>
>
>
>
>
> _______________________________________________
> Wxruby-dev mailing list
> Wxruby-dev@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/wxruby-dev
>




From MAILER-DAEMON Sun Jun 01 16:08:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MZ7g-0007zm-12
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 16:08:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MZ7W-0007u3-5k
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 16:07:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MZ7T-0007sC-7G
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 16:07:56 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19MZ7S-0007qN-13
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 16:07:54 -0400
Received: (qmail 8257 invoked from network); 1 Jun 2003 20:02:28 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 1 Jun 2003 20:02:28 -0000
Date: Sun, 1 Jun 2003 16:07:53 -0400
Subject: Re: [Wxruby-dev] Request for non-coding assistance
Content-Type: multipart/mixed; boundary=Apple-Mail-8-1028945948
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1054485172.30078.84.camel@CC1644462-A>
Message-Id: <BA6EF3FB-946C-11D7-95D2-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 01 Jun 2003 20:08:00 -0000


--Apple-Mail-8-1028945948
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

On Sunday, June 1, 2003, at 12:32  PM, Kevin Smith wrote:

> The first file I tried was window. Generally it looks good, but I see
> that ClientToScreen isn't listed. I haven't yet looked at the tex file
> to try to figure it out.
>

Figured out the ClientToScreen thing.  I was finding lines that started 
with \func and it seems that there are also \constfunc lines (which is 
what ClientToScreen is).  I fixed the parse_wxdoc.rb file (attached) to 
include \constfunc's.

--Apple-Mail-8-1028945948
Content-Disposition: attachment;
	filename=parse_wxdoc.rb
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="parse_wxdoc.rb"

class WxParam
  attr_accessor :ptype, :pname
  def initialize(ptype, pname)
    @ptype = ptype
    @pname = pname
  end
  def to_s
    "#{@ptype} #{@pname}"
  end
end

class WxMethod
  attr_accessor :return_type, :name, :params
  def self.from_wxdoc(line)
    line.gsub!(/\\pipe/, "|")
    line.gsub!(/\\_/, "_")
    line.gsub!(/\\\&/, "&")
    line.gsub!(/\{\\tt\ TRUE\}/, "TRUE")
    method = WxMethod.new
    method.return_type = line[1...line.index("}")]
    methodindex = (line.index("}{")+2)
    begin
      method.name = line[methodindex...line.index('}{', methodindex)]
    rescue
      raise "Error parsing method name on line: #{line}"
    end
    paramlist = line[line.index('}{', methodindex)+2..-2]
    paramlist = paramlist.split(/\\param/).collect { |param| param.strip }
    paramlist.each do |param|
      if param[0,1]=="{"
        begin
          ptype = param[1...param.index('}{')].strip
          pname = param[(param.index('}{')+2)...-1].strip
          pname = pname[0...-1] if pname[-1,1]=="}"
          method.add_param(ptype, pname)
        rescue
          raise "Error parsing params on line: #{line}"
        end
      end
    end
    return method
  end
  def initialize
    @params = []
  end
  def add_param(ptype, pname)
    @params << WxParam.new(ptype.strip, pname.strip)
  end
  def to_s
    "#{@return_type} #{@name}(#{@params.join(', ')});"
  end
end

class WxClass
  attr_reader :constructors, :methods, :name, :filename
  
  def initialize(filename, name)
    @filename = filename
    @name = name
    @methods = []
    @constructors = []
  end
  
  def self.from_file(file)
    begin
      data = []
      File.open(file) do |f|
        append = false
        f.each_line do |line|
          line.strip!
          next_line = line
          next_line = (next_line[0...-6] + " ") if next_line[-6..-1]=='\\rtfsp'
          if append
            data.last << next_line
          else
            data << next_line
          end
          append = false
          append = true if line[-6..-1]=='\\rtfsp' || line[-1, 1]==","
        end
      end
      wxclass = nil
      data.each do |line|
        if line[0,16] == '\section{\class{'
          wxclass = WxClass.new(file, line[16...line.index("}}", 16)])
        end
        if (line[0, 5]=='\func' || line[0,10]=='\constfunc') && !line.index('\destruct')
          return nil unless wxclass
          method = WxMethod.from_wxdoc(line[line.index("{")..-1])
          if method.name==wxclass.name
            wxclass.constructors << method
          else
            wxclass.methods << method
          end
        end
      end
      wxclass
    rescue
      return nil
    end
  end
end

if __FILE__ == $0
  file = ARGV[0]
  unless file
    unparsed_list = []
    Dir.glob("*.tex") do |file|
      wxclass = WxClass.from_file(file)
      if wxclass
        puts "Class: #{wxclass.name}"
        puts "File:  #{wxclass.filename}"
        if wxclass.constructors.size > 0
          puts "Constructors:"
          wxclass.constructors.each { |method| puts "  "+method.to_s }
        end
        if wxclass.methods.size > 0
          puts "Methods:"
          wxclass.methods.each { |method| puts "  "+method.to_s }
        end
        puts ""
      else
        unparsed_list << file
      end
    end
    puts "Could not parse the following files:"
    puts unparsed_list.sort
  else
    wxclass = WxClass.from_file(file)
    if wxclass
      puts "Class: #{wxclass.name}"
      puts "File:  #{wxclass.filename}"
      if wxclass.constructors.size > 0
        puts "Constructors:"
        wxclass.constructors.each { |method| puts "  "+method.to_s }
      end
      if wxclass.methods.size > 0
        puts "Methods:"
        wxclass.methods.each { |method| puts "  "+method.to_s }
      end
      puts ""
    end
  end
end
--Apple-Mail-8-1028945948
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



> The feature request is: Would it be possible to list the Python
> signatures where they exist? I plan to match the Python implementation
> where it differs from C++. One example is window's ClientToScreen call.

It looks like with the python signatures, they vary the method names in 
methods that have overloaded methods (like ClientToScreen).  There are 
'\pythonnote' sections under these methods that I probably could figure 
out how to parse, but it may be a pain in the rear end.  For WxWindow 
there are 14 such \pythonnote sections (and one that changes the return 
type). Across all of the .tex files there are 129 such \pythonnotes. It 
may be better to just emit these notes (as annotations on the methods) 
for access our output.

Let me know what you want to do.

-rich

Here is a (grep'ed) list of \constfunc's:

\constfunc{virtual void}{ClientToScreen}{\param{int* }{x}, \param{int* 
}{y}}
\constfunc{virtual wxPoint}{ClientToScreen}{\param{const wxPoint\&}{ 
pt}}
\constfunc{wxSize}{GetAdjustedBestSize}{\void}
\constfunc{virtual wxColour}{GetBackgroundColour}{\void}
\constfunc{virtual wxSize}{GetBestSize}{\void}
\constfunc{wxCaret *}{GetCaret}{\void}
\constfunc{virtual int}{GetCharHeight}{\void}
\constfunc{virtual int}{GetCharWidth}{\void}
\constfunc{virtual void}{GetClientSize}{\param{int* }{width}, 
\param{int* }{height}}
\constfunc{virtual wxSize}{GetClientSize}{\void}
\constfunc{wxLayoutConstraints*}{GetConstraints}{\void}
\constfunc{const wxSizer *}{GetContainingSizer}{\void}
\constfunc{wxDropTarget*}{GetDropTarget}{\void}
\constfunc{wxEvtHandler*}{GetEventHandler}{\void}
\constfunc{long}{GetExtraStyle}{\void}
\constfunc{wxFont\&}{GetFont}{\void}
\constfunc{wxWindow*}{GetGrandParent}{\void}
\constfunc{void*}{GetHandle}{\void}
\constfunc{virtual wxString}{GetHelpText}{\void}
\constfunc{int}{GetId}{\void}
\constfunc{virtual wxString }{GetLabel}{\void}
\constfunc{virtual wxString }{GetName}{\void}
\constfunc{virtual wxWindow*}{GetParent}{\void}
\constfunc{virtual void}{GetPosition}{\param{int* }{x}, \param{int* 
}{y}}
\constfunc{wxPoint}{GetPosition}{\void}
\constfunc{virtual wxRect}{GetRect}{\void}
\constfunc{virtual void}{GetSize}{\param{int* }{width}, \param{int* 
}{height}}
\constfunc{virtual wxSize}{GetSize}{\void}
\constfunc{wxSizer *}{GetSizer}{\void}
\constfunc{virtual void}{GetTextExtent}{\param{const wxString\& 
}{string}, \param{int* }{x}, \param{int* }{y},
\constfunc{virtual wxRegion}{GetUpdateRegion}{\void}
\constfunc{wxValidator*}{GetValidator}{\void}
\constfunc{void}{GetVirtualSize}{\param{int* }{width}, \param{int* 
}{height}}
\constfunc{wxSize}{GetVirtualSize}{\void}
\constfunc{long}{GetWindowStyleFlag}{\void}
\constfunc{virtual bool}{HasCapture}{\void}
\constfunc{virtual bool}{IsEnabled}{\void}
\constfunc{bool}{IsExposed}{\param{int }{x}, \param{int }{y}}
\constfunc{bool}{IsExposed}{\param{wxPoint }{\&pt}}
\constfunc{bool}{IsExposed}{\param{int }{x}, \param{int }{y}, 
\param{int }{w}, \param{int }{h}}
\constfunc{bool}{IsExposed}{\param{wxRect }{\&rect}}
\constfunc{virtual bool}{IsRetained}{\void}
\constfunc{virtual bool}{IsShown}{\void}
\constfunc{bool}{IsTopLevel}{\void}
\constfunc{wxEvtHandler*}{PopEventHandler}{\param{bool }{deleteHandler 
= {\tt FALSE}}}
\constfunc{virtual void}{ScreenToClient}{\param{int* }{x}, \param{int* 
}{y}}
\constfunc{virtual wxPoint}{ScreenToClient}{\param{const wxPoint\& 
}{pt}}
\constfunc{void}{SetCaret}{\param{wxCaret *}{caret}}
\constfunc{wxToolTip*}{GetToolTip}{\void}

And here is a grep'ed list of \func's:

\func{}{wxWindow}{\void}
\func{}{wxWindow}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id},
\func{}{\destruct{wxWindow}}{\void}
\func{virtual void}{AddChild}{\param{wxWindow* }{child}}
\func{virtual void}{CaptureMouse}{\void}
\func{void}{Center}{\param{int}{ direction}}
\func{void}{CenterOnParent}{\param{int}{ direction}}
\func{void}{CenterOnScreen}{\param{int}{ direction}}
\func{void}{Centre}{\param{int}{ direction = wxBOTH}}
\func{void}{CentreOnParent}{\param{int}{ direction = wxBOTH}}
\func{void}{CentreOnScreen}{\param{int}{ direction = wxBOTH}}
\func{void}{Clear}{\void}
\func{virtual bool}{Close}{\param{bool}{ force = {\tt FALSE}}}
\func{wxPoint}{ConvertDialogToPixels}{\param{const wxPoint\&}{ pt}}
\func{wxSize}{ConvertDialogToPixels}{\param{const wxSize\&}{ sz}}
\func{wxPoint}{ConvertPixelsToDialog}{\param{const wxPoint\&}{ pt}}
\func{wxSize}{ConvertPixelsToDialog}{\param{const wxSize\&}{ sz}}
\func{virtual bool}{Destroy}{\void}
\func{virtual void}{DestroyChildren}{\void}
\func{void}{Disable}{\void}
\func{virtual void}{DragAcceptFiles}{\param{bool}{ accept}}
\func{virtual bool}{Enable}{\param{bool}{ enable = {\tt TRUE}}}
\func{static wxWindow*}{FindFocus}{\void}
\func{wxWindow*}{FindWindow}{\param{long}{ id}}
\func{wxWindow*}{FindWindow}{\param{const wxString\&}{ name}}
\func{static wxWindow*}{FindWindowById}{\param{long}{ id}, 
\param{wxWindow*}{ parent = NULL}}
\func{static wxWindow*}{FindWindowByName}{\param{const wxString\&}{ 
name}, \param{wxWindow*}{ parent = NULL}}
\func{static wxWindow*}{FindWindowByLabel}{\param{const wxString\&}{ 
label}, \param{wxWindow*}{ parent = NULL}}
\func{virtual void}{Fit}{\void}
\func{virtual void}{FitInside}{\void}
\func{virtual void}{Freeze}{\void}
\func{static wxWindow *}{GetCapture}{\void}
\func{wxList\&}{GetChildren}{\void}
\func{virtual wxColour}{GetForegroundColour}{\void}
\func{virtual int}{GetScrollThumb}{\param{int }{orientation}}
\func{virtual int}{GetScrollPos}{\param{int }{orientation}}
\func{virtual int}{GetScrollRange}{\param{int }{orientation}}
\func{virtual wxString}{GetTitle}{\void}
\func{bool}{Hide}{\void}
\func{void}{InitDialog}{\void}
\func{void}{Layout}{\void}
\func{virtual bool}{LoadFromResource}{\param{wxWindow* }{parent},\rtfsp
\func{void}{Lower}{\void}
\func{virtual void}{MakeModal}{\param{bool }{flag}}
\func{void}{Move}{\param{int}{ x}, \param{int}{ y}}
\func{void}{Move}{\param{const wxPoint\&}{ pt}}
\func{bool}{PopupMenu}{\param{wxMenu* }{menu}, \param{const wxPoint\& 
}{pos}}
\func{bool}{PopupMenu}{\param{wxMenu* }{menu}, \param{int }{x}, 
\param{int }{y}}
\func{void}{PushEventHandler}{\param{wxEvtHandler* }{handler}}
\func{void}{Raise}{\void}
\func{virtual void}{Refresh}{\param{bool}{ eraseBackground = {\tt 
TRUE}}, \param{const wxRect* }{rect
\func{virtual void}{Refresh}{\param{const wxRect\& }{rect}}
\func{virtual void}{ReleaseMouse}{\void}
\func{virtual void}{RemoveChild}{\param{wxWindow* }{child}}
\func{bool}{RemoveEventHandler}{\param{wxEvtHandler *}{handler}}
\func{virtual bool}{Reparent}{\param{wxWindow* }{newParent}}
\func{virtual bool}{ScrollLines}{\param{int }{lines}}
\func{virtual bool}{ScrollPages}{\param{int }{pages}}
\func{virtual void}{ScrollWindow}{\param{int }{dx}, \param{int }{dy}, 
\param{const wxRect*}{ rect = NULL}}
\func{virtual void}{SetAcceleratorTable}{\param{const 
wxAcceleratorTable\&}{ accel}}
\func{void}{SetAutoLayout}{\param{bool}{ autoLayout}}
\func{virtual void}{SetBackgroundColour}{\param{const wxColour\& 
}{colour}}
\func{virtual void}{SetClientSize}{\param{int}{ width}, \param{int}{ 
height}}
\func{virtual void}{SetClientSize}{\param{const wxSize\&}{ size}}
\func{void}{SetContainingSizer}{\param{wxSizer* }{sizer}}
\func{virtual void}{SetCursor}{\param{const wxCursor\&}{cursor}}
\func{void}{SetConstraints}{\param{wxLayoutConstraints* }{constraints}}
\func{void}{SetDropTarget}{\param{wxDropTarget*}{ target}}
\func{void}{SetEventHandler}{\param{wxEvtHandler* }{handler}}
\func{void}{SetExtraStyle}{\param{long }{exStyle}}
\func{virtual void}{SetFocus}{\void}
\func{virtual void}{SetFocusFromKbd}{\void}
\func{void}{SetFont}{\param{const wxFont\& }{font}}
\func{virtual void}{SetForegroundColour}{\param{const wxColour\& 
}{colour}}
\func{virtual void}{SetHelpText}{\param{const wxString\& }{helpText}}
\func{void}{SetId}{\param{int}{ id}}
\func{virtual void}{SetName}{\param{const wxString\& }{name}}
\func{virtual void}{SetPalette}{\param{wxPalette* }{palette}}
\func{virtual void}{SetScrollbar}{\param{int }{orientation}, \param{int 
}{position},\rtfsp
\func{virtual void}{SetScrollPage}{\param{int }{orientation}, 
\param{int }{pageSize}, \param{bool }{refresh = {\tt TRUE}}}
\func{virtual void}{SetScrollPos}{\param{int }{orientation}, \param{int 
}{pos}, \param{bool }{refresh = {\tt TRUE}}}
\func{virtual void}{SetScrollRange}{\param{int }{orientation}, 
\param{int }{range}, \param{bool }{refresh = {\tt TRUE}}}
\func{virtual void}{SetSize}{\param{int}{ x}, \param{int}{ y}, 
\param{int}{ width}, \param{int}{ height},
\func{virtual void}{SetSize}{\param{const wxRect\&}{ rect}}
\func{virtual void}{SetSize}{\param{int}{ width}, \param{int}{ height}}
\func{virtual void}{SetSize}{\param{const wxSize\&}{ size}}
\func{virtual void}{SetSizeHints}{\param{int}{ minW=-1}, \param{int}{ 
minH=-1}, \param{int}{ maxW=-1}, \param{int}{ maxH=-1},
\func{void}{SetSizer}{\param{wxSizer* }{sizer}, \param{bool 
}{deleteOld=TRUE}}
\func{void}{SetSizerAndFit}{\param{wxSizer* }{sizer}, \param{bool 
}{deleteOld=TRUE}}
\func{virtual void}{SetTitle}{\param{const wxString\& }{title}}
\func{virtual void}{SetThemeEnabled}{\param{bool }{enable}}
\func{virtual void}{SetValidator}{\param{const wxValidator\&}{ 
validator}}
\func{void}{SetToolTip}{\param{const wxString\& }{tip}}
\func{void}{SetToolTip}{\param{wxToolTip* }{tip}}
\func{void}{SetVirtualSize}{\param{int}{ width}, \param{int}{ height}}
\func{void}{SetVirtualSize}{\param{const wxSize\&}{ size}}
\func{virtual void}{SetVirtualSizeHints}{\param{int}{ 
minW},\param{int}{ minH}, \param{int}{ maxW=-1}, \param{int}{ maxH=-1}}
\func{void}{SetWindowStyle}{\param{long}{ style}}
\func{virtual void}{SetWindowStyleFlag}{\param{long}{ style}}
\func{virtual bool}{Show}{\param{bool}{ show = {\tt TRUE}}}
\func{virtual void}{Thaw}{\void}
\func{virtual bool}{TransferDataFromWindow}{\void}
\func{virtual bool}{TransferDataToWindow}{\void}
\func{virtual void}{Update}{\void}
\func{virtual bool}{Validate}{\void}
\func{void}{WarpPointer}{\param{int}{ x}, \param{int}{ y}}

--Apple-Mail-8-1028945948--




From MAILER-DAEMON Sun Jun 01 22:47:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MfLq-00028u-Ku
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 22:47:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MfLV-0001Jf-GN
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 22:46:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MfLM-0000vT-9y
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 22:46:40 -0400
Received: from smtp807.mail.sc5.yahoo.com ([66.163.168.186])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19MfLL-0000hR-KK
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 22:46:39 -0400
Received: from adsl-67-125-86-97.dsl.snfc21.pacbell.net (HELO ?192.168.254.2?)
	(kevins527@sbcglobal.net@67.125.86.97 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	2 Jun 2003 02:46:26 -0000
Subject: Re: [Wxruby-dev] Request for non-coding assistance
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <BA6EF3FB-946C-11D7-95D2-000A95765742@infoether.com>
References: <BA6EF3FB-946C-11D7-95D2-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1054521986.30073.99.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 01 Jun 2003 19:46:26 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 02 Jun 2003 02:47:07 -0000

On Sun, 2003-06-01 at 13:07, Richard Kilmer wrote:
> I fixed the parse_wxdoc.rb file (attached) to include \constfunc's.

Thanks Rich. Much better!

There are still a couple small glitches, like:
  virtual bool Close(bool force = {\tt FALSE);

but nothing so far that I can't easily work around. This is great.

> Across all of the .tex files there are 129 such \pythonnotes. It 
> may be better to just emit these notes (as annotations on the methods) 
> for access our output.

Yes, I would appreciate if you could also emit the PythonNotes. Nothing
fancy is required there. Just an easy way for me to know which functions
need to be adjusted.

Kevin





From MAILER-DAEMON Sun Jun 01 23:17:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Mfoj-0001YN-Px
	for mharc-wxruby-dev@gnu.org; Sun, 01 Jun 2003 23:17:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MfoV-0000gZ-Bo
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 23:16:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MfoN-0000E3-EB
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 23:16:40 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Mfo9-000865-W3
	for wxruby-dev@nongnu.org; Sun, 01 Jun 2003 23:16:26 -0400
Received: (qmail 9711 invoked from network); 2 Jun 2003 03:10:52 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 2 Jun 2003 03:10:52 -0000
Date: Sun, 1 Jun 2003 23:16:19 -0400
Subject: Re: [Wxruby-dev] Request for non-coding assistance
Content-Type: multipart/mixed; boundary=Apple-Mail-3-1054652225
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1054521986.30073.99.camel@CC1644462-A>
Message-Id: <94919C44-94A8-11D7-B64D-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 02 Jun 2003 03:16:57 -0000


--Apple-Mail-3-1054652225
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed


On Sunday, June 1, 2003, at 10:46  PM, Kevin Smith wrote:

> On Sun, 2003-06-01 at 13:07, Richard Kilmer wrote:
>> I fixed the parse_wxdoc.rb file (attached) to include \constfunc's.
>
> Thanks Rich. Much better!
>
> There are still a couple small glitches, like:
>   virtual bool Close(bool force = {\tt FALSE);
>
> but nothing so far that I can't easily work around. This is great.

This was a bug...fixed (and attached)...will work on PythonNotes 
tomorrow.


--Apple-Mail-3-1054652225
Content-Disposition: attachment;
	filename=parse_wxdoc.rb
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="parse_wxdoc.rb"

class WxParam
  attr_accessor :ptype, :pname
  def initialize(ptype, pname)
    @ptype = ptype
    @pname = pname
  end
  def to_s
    "#{@ptype} #{@pname}"
  end
end

class WxMethod
  attr_accessor :return_type, :name, :params
  def self.from_wxdoc(line)
    line.gsub!(/\\pipe/, "|")
    line.gsub!(/\\_/, "_")
    line.gsub!(/\\\&/, "&")
    line.gsub!(/\{\\tt\ TRUE\}/, "TRUE")
    line.gsub!(/\{\\tt\ FALSE\}/, "FALSE")
    method = WxMethod.new
    method.return_type = line[1...line.index("}")]
    methodindex = (line.index("}{")+2)
    begin
      method.name = line[methodindex...line.index('}{', methodindex)]
    rescue
      raise "Error parsing method name on line: #{line}"
    end
    paramlist = line[line.index('}{', methodindex)+2..-2]
    paramlist = paramlist.split(/\\param/).collect { |param| param.strip }
    paramlist.each do |param|
      if param[0,1]=="{"
        begin
          ptype = param[1...param.index('}{')].strip
          pname = param[(param.index('}{')+2)...-1].strip
          pname = pname[0...-1] if pname[-1,1]=="}"
          method.add_param(ptype, pname)
        rescue
          raise "Error parsing params on line: #{line}"
        end
      end
    end
    return method
  end
  def initialize
    @params = []
  end
  def add_param(ptype, pname)
    @params << WxParam.new(ptype.strip, pname.strip)
  end
  def to_s
    "#{@return_type} #{@name}(#{@params.join(', ')});"
  end
end

class WxClass
  attr_reader :constructors, :methods, :name, :filename
  
  def initialize(filename, name)
    @filename = filename
    @name = name
    @methods = []
    @constructors = []
  end
  
  def self.from_file(file)
    begin
      data = []
      File.open(file) do |f|
        append = false
        f.each_line do |line|
          line.strip!
          next_line = line
          next_line = (next_line[0...-6] + " ") if next_line[-6..-1]=='\\rtfsp'
          if append
            data.last << next_line
          else
            data << next_line
          end
          append = false
          append = true if line[-6..-1]=='\\rtfsp' || line[-1, 1]==","
        end
      end
      wxclass = nil
      data.each do |line|
        if line[0,16] == '\section{\class{'
          wxclass = WxClass.new(file, line[16...line.index("}}", 16)])
        end
        if (line[0, 5]=='\func' || line[0,10]=='\constfunc') && !line.index('\destruct')
          return nil unless wxclass
          method = WxMethod.from_wxdoc(line[line.index("{")..-1])
          if method.name==wxclass.name
            wxclass.constructors << method
          else
            wxclass.methods << method
          end
        end
      end
      wxclass
    rescue
      return nil
    end
  end
end

if __FILE__ == $0
  file = ARGV[0]
  unless file
    unparsed_list = []
    Dir.glob("*.tex") do |file|
      wxclass = WxClass.from_file(file)
      if wxclass
        puts "Class: #{wxclass.name}"
        puts "File:  #{wxclass.filename}"
        if wxclass.constructors.size > 0
          puts "Constructors:"
          wxclass.constructors.each { |method| puts "  "+method.to_s }
        end
        if wxclass.methods.size > 0
          puts "Methods:"
          wxclass.methods.each { |method| puts "  "+method.to_s }
        end
        puts ""
      else
        unparsed_list << file
      end
    end
    puts "Could not parse the following files:"
    puts unparsed_list.sort
  else
    wxclass = WxClass.from_file(file)
    if wxclass
      puts "Class: #{wxclass.name}"
      puts "File:  #{wxclass.filename}"
      if wxclass.constructors.size > 0
        puts "Constructors:"
        wxclass.constructors.each { |method| puts "  "+method.to_s }
      end
      if wxclass.methods.size > 0
        puts "Methods:"
        wxclass.methods.each { |method| puts "  "+method.to_s }
      end
      puts ""
    end
  end
end
--Apple-Mail-3-1054652225
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



>
>> Across all of the .tex files there are 129 such \pythonnotes. It
>> may be better to just emit these notes (as annotations on the methods)
>> for access our output.
>
> Yes, I would appreciate if you could also emit the PythonNotes. Nothing
> fancy is required there. Just an easy way for me to know which 
> functions
> need to be adjusted.
>
> Kevin
>
>
>
>
> _______________________________________________
> Wxruby-dev mailing list
> Wxruby-dev@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/wxruby-dev
>

--Apple-Mail-3-1054652225--




From MAILER-DAEMON Mon Jun 02 00:40:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Mh76-0006aT-74
	for mharc-wxruby-dev@gnu.org; Mon, 02 Jun 2003 00:40:04 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Mh6h-0005zh-T0
	for wxruby-dev@nongnu.org; Mon, 02 Jun 2003 00:39:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Mh6X-0005ff-2n
	for wxruby-dev@nongnu.org; Mon, 02 Jun 2003 00:39:31 -0400
Received: from smtp801.mail.sc5.yahoo.com ([66.163.168.180])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Mh6D-0005NA-R9
	for wxruby-dev@nongnu.org; Mon, 02 Jun 2003 00:39:09 -0400
Received: from adsl-67-125-86-97.dsl.snfc21.pacbell.net (HELO ?192.168.254.2?)
	(kevins527@sbcglobal.net@67.125.86.97 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	2 Jun 2003 04:39:05 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <94919C44-94A8-11D7-B64D-000A95765742@infoether.com>
References: <94919C44-94A8-11D7-B64D-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1054528745.30078.117.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 01 Jun 2003 21:39:05 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] WxWindow status (was: Request for non-coding assistance)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 02 Jun 2003 04:40:02 -0000

On Sun, 2003-06-01 at 20:16, Richard Kilmer wrote:
> This was a bug...fixed (and attached)...will work on PythonNotes 
> tomorrow.

Cool. 

I have imported all the signatures for the wxWindow class, and things
look pretty good. Currently, window.t is 475 lines, and it will go down
over time. When run through the wxpp.rb template expander, it creates
157 lines of window.h and 2069 lines of window.cpp (those counts will
remain fairly close to where they are right now. 

Here's the summary for WxWindow as it stands right now:

107 methods are fully handled by templates. 
20 are C++ method overloads that I'll need to resolve.
9 are "redundant" overloads that are not critical to implement.
6 are "strange", but all are easily resolved manually (see below).
5 are static methods, which wxpp.rb does not yet support.
3 have return types that wxpp.rb does not yet support.
2 I can't test because they are MSW only, but should work fine. 

Of the "strange" methods, some are mismatches between the docs and
reality, Others are methods that don't show up in the docs but which
appeared in the list (perhaps they are private/protected?). Here are the
details, copy and pasted from window.t:

// according to wx/window.h, the final bool parameter does not exist
// (also, Python binds it quite differently anyway)
	virtual void GetTextExtent(const wxString& string, int* x, int* y, int*
descent = NULL, int* externalLeading = NULL, const wxFont* font = NULL,
bool use16 = FALSE);

// according to the online wx 2.4 and 2.5 help, these do not exist
	virtual void SetScrollPage(int orientation, int pageSize, bool refresh
= TRUE);
	virtual void SetScrollRange(int orientation, int range, bool refresh =
TRUE);

// this is in the 2.4 help, but according to wx/window.h, this method
does not exist, 
// the 2.5 docs do not list it
	virtual bool LoadFromResource(wxWindow* parent, const wxString&
resourceName, const wxResourceTable* resourceTable = NULL);

// according to wx/window.h, palette is passed as reference, not
pointer,
// the 2.4 docs have it as shown here, but the 2.5 docs say it is
obsolete anyway
	virtual void SetPalette(wxPalette* palette);

// according to wx/window.h, the first two parameters are not optional
// the 2.4 and 2.5 documentation have it as shown here
	virtual void SetSizeHints(int minW=-1, int minH=-1, int maxW=-1, int
maxH=-1, int incW=-1, int incH=-1);

Kevin





From MAILER-DAEMON Wed Jun 04 11:36:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NaGY-0005bN-Ld
	for mharc-wxruby-dev@gnu.org; Wed, 04 Jun 2003 11:33:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19NaBt-0003ci-3z
	for wxruby-dev@nongnu.org; Wed, 04 Jun 2003 11:28:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Na7m-000206-6f
	for wxruby-dev@nongnu.org; Wed, 04 Jun 2003 11:24:26 -0400
Received: from smtp806.mail.sc5.yahoo.com ([66.163.168.185])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Na70-0001Ys-3e
	for wxruby-dev@nongnu.org; Wed, 04 Jun 2003 11:23:38 -0400
Received: from adsl-67-125-86-97.dsl.snfc21.pacbell.net (HELO ?192.168.254.2?)
	(kevins527@sbcglobal.net@67.125.86.97 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	4 Jun 2003 15:23:36 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1054740215.13892.37.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 04 Jun 2003 08:23:35 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Changed extconf.rb
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 04 Jun 2003 15:33:28 -0000

I've updated extconf.rb to create a Makefile that can create a 'depends'
file, and it launches 'make depends' as the last step in its process. I
have intentionally not checked in my depends file, since it got built
with hard paths like /usr/lib/ruby/1.6/i386-linux/config.h

I'm not sure if that's proper behavior for an extconf.rb script. Perhaps
someone who's more familiar with extconf.rb could take a look. 

Also, the way I build the depends file is pretty dependent on gcc, so if
anyone knows a cleaner way, I'd appreciate knowing that as well.

I want to keep this compatible with Windows, but I don't have a Windows
box to test with.

The problem is that without knowing dependencies, the project cannot
possibly be built from scratch. This is because bitmap.o should depend
on window.h, which in turn should depend on window.t. If those
dependencies aren't specified, bitmap.o can't be built until after
window.o has been built.

Kevin





From MAILER-DAEMON Wed Jun 04 12:23:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NauB-00081A-B8
	for mharc-wxruby-dev@gnu.org; Wed, 04 Jun 2003 12:14:27 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Nau2-0007z5-Qh
	for wxruby-dev@nongnu.org; Wed, 04 Jun 2003 12:14:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Natz-0007xY-2A
	for wxruby-dev@nongnu.org; Wed, 04 Jun 2003 12:14:16 -0400
Received: from h001.c000.snv.cp.net ([209.228.32.65] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Naty-0007pF-8Y
	for wxruby-dev@nongnu.org; Wed, 04 Jun 2003 12:14:14 -0400
Received: (cpmta 1965 invoked from network); 4 Jun 2003 09:13:48 -0700
Received: from 63.254.221.195 (HELO l5)
  by smtp.hibbs.com (209.228.32.65) with SMTP; 4 Jun 2003 09:13:48 -0700
X-Sent: 4 Jun 2003 16:13:48 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Changed extconf.rb
Date: Wed, 4 Jun 2003 11:13:39 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEOEFGGMAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <1054740215.13892.37.camel@CC1644462-A>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 04 Jun 2003 16:14:20 -0000

Kevin Smith wrote:
>
> I've updated extconf.rb to create a Makefile that can create a 'depends'
> file, and it launches 'make depends' as the last step in its process. I
> have intentionally not checked in my depends file, since it got built
> with hard paths like /usr/lib/ruby/1.6/i386-linux/config.h
>
> I'm not sure if that's proper behavior for an extconf.rb script. Perhaps
> someone who's more familiar with extconf.rb could take a look.
>
> Also, the way I build the depends file is pretty dependent on gcc, so if
> anyone knows a cleaner way, I'd appreciate knowing that as well.
>
> I want to keep this compatible with Windows, but I don't have a Windows
> box to test with.
>
> The problem is that without knowing dependencies, the project cannot
> possibly be built from scratch. This is because bitmap.o should depend
> on window.h, which in turn should depend on window.t. If those
> dependencies aren't specified, bitmap.o can't be built until after
> window.o has been built.
>
> Kevin

I can't help you with your extconf.rb or depends questions (I'll bet Rich
can), but I can test under Windows. I won't be able to do so until at this
Saturday.

Curt




From MAILER-DAEMON Fri Jun 20 23:54:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TZSa-0007P9-Kz
	for mharc-wxruby-dev@gnu.org; Fri, 20 Jun 2003 23:54:40 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TZSX-0007GF-L4
	for wxruby-dev@nongnu.org; Fri, 20 Jun 2003 23:54:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TZSW-0007Ex-65
	for wxruby-dev@nongnu.org; Fri, 20 Jun 2003 23:54:36 -0400
Received: from smtp801.mail.sc5.yahoo.com ([66.163.168.180])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19TZRa-0006qx-92
	for wxruby-dev@nongnu.org; Fri, 20 Jun 2003 23:53:38 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	21 Jun 2003 03:53:33 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056167613.29708.55.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 20 Jun 2003 20:53:33 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Status report, and a plan (and an alternate plan)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 21 Jun 2003 03:54:38 -0000

Unfortunately, I have been tied up in crunch mode at work for the last
three weeks. Not much time or energy left to work on wxRuby, although
I've done a few small tasks.

A couple things have become clear to me:

1. Converting to my template approach will take a long time to complete.
If I could convert one class each day, it would still take more than two
months.

2. Nobody should use the library until after we convert the method names
to match ruby conventions. Therefore, this should be the highest
priority story. It would be easier to do this after converting to
templates, but that's too far in the future.

Therefore, I plan to start renaming methods this weekend. I hope to
complete the entire library quickly (perhaps this weekend). At that
point, the library will be ready for alpha testing. Hopefully that will
bring in feedback which can drive further development.

If there are serious bugs (leaks, crashing), we can fix them. If there
are missing methods in certain classes, I can focus on switching those
classes to the template method first, at which point it becomes very
easy to add the missing methods.

As time permits, I can continue a slow but steady conversion of other
classes to templates.

So that's my plan. But there is one alternative that I will put out
there as an option:

I could comment out all the non-template classes, and convert just the
template classes to the new naming scheme. Next, I could convert all the
classes used by the examples. At that point, the library would be very
small, but there would be no legacy code to worry about. As alpha
testers needed additional classes to be supported, I would create the
templates for those classes.

This alternate plan would be cleaner, and a bit easier for me, but I
think it would cause too many problems for potential users of the
library. I've only mentioned it as a possibility in case anyone thinks
it's a great idea.

Kevin





From MAILER-DAEMON Sat Jun 21 00:45:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TaG7-0002g1-9w
	for mharc-wxruby-dev@gnu.org; Sat, 21 Jun 2003 00:45:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TaG0-0002LG-Ni
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 00:45:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TaFt-00025v-3y
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 00:45:37 -0400
Received: from smtp802.mail.sc5.yahoo.com ([66.163.168.181])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19TaFb-0001jm-OR
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 00:45:19 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	21 Jun 2003 04:45:18 -0000
Subject: Re: [Wxruby-dev] Naming questions
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <608B6BAA-8F84-11D7-837D-000A95765742@infoether.com>
References: <608B6BAA-8F84-11D7-837D-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056170717.29707.65.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 20 Jun 2003 21:45:17 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 21 Jun 2003 04:45:50 -0000

On Mon, 2003-05-26 at 07:14, Richard Kilmer wrote:
> I wrote the wrapper for the Scintilla edit controller and had to deal 
> with the CamelCase -vs- underscore_notation issue...I wrote this Ruby 
> function to convert them to underscore from Camel:
(snip)

Hey Rich, thanks for this! I was able to wrap about 40 lines of ruby
code around your function, and use it to convert all the method names to
the new scheme in a matter of minutes. It's done and checked in.

All the samples are now broken, so I'll be fixing those tomorrow.

Kevin





From MAILER-DAEMON Sat Jun 21 13:29:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TmBR-0004Mk-LH
	for mharc-wxruby-dev@gnu.org; Sat, 21 Jun 2003 13:29:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TmBM-00043J-NZ
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 13:29:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TmBA-0003NG-TG
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 13:29:35 -0400
Received: from smtp802.mail.sc5.yahoo.com ([66.163.168.181])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19TmB8-00039e-Bv
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 13:29:30 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	21 Jun 2003 17:29:29 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056216568.29705.91.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 21 Jun 2003 10:29:28 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Group vote on naming questions
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 21 Jun 2003 17:29:47 -0000

I would like a "group vote" on some naming issues. Ideally the core
people would respond this weekend, so I can completely finish the naming
transformation this weekend. Here are the questions:

----
1. Currently, the library is named 'wxruby', but the module is named
'Wx'. This means you might say:

require 'wxruby'
include 'Wx'

I think 'wxruby' is perfect.

I think the module name should remain 'Wx', because it should start with
an upper case letter, and should be mixed-case. I guess 'WxRuby' would
be an option, but it seems too long if you choose not to use include and
have to use WxRuby::... everywhere. 

Please vote for 'Wx', 'WxRuby', or something else.

----
2. Currently, classes are named like WxWindow, so you would either refer
to them as:

include 'Wx'
WxWindow.new(...)

or just

Wx::WxWindow.new(...)

This seems redundant to me, so I would like to rename them to just
Window instead of WxWindow. Ok?

----
3. Currently, global constants are named like WxSUNKEN_BORDER.

This also seems redundant to me, so I would like to rename them to just
SUNKEN_BORDER? Ok?
If not, it still seems like inconsistent case usage, so how about
WX_SUNKEN_BORDER?

----

Thanks!

Kevin





From MAILER-DAEMON Sat Jun 21 21:42:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Ttrx-00063v-1v
	for mharc-wxruby-dev@gnu.org; Sat, 21 Jun 2003 21:42:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Ttru-0005wO-Po
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 21:42:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Ttrl-0005g7-Ox
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 21:42:03 -0400
Received: from h000.c000.snv.cp.net ([209.228.32.64] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Ttrl-0005YO-0X
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 21:42:01 -0400
Received: (cpmta 29517 invoked from network); 21 Jun 2003 18:41:56 -0700
Received: from 68.24.69.51 (HELO l5)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 21 Jun 2003 18:41:56 -0700
X-Sent: 22 Jun 2003 01:41:56 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Group vote on naming questions
Date: Sat, 21 Jun 2003 20:41:51 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEEEGCGOAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <1056216568.29705.91.camel@CC1644462-A>
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 01:42:11 -0000

Kevin Smith wrote:
>
> I would like a "group vote" on some naming issues. Ideally the core
> people would respond this weekend, so I can completely finish the naming
> transformation this weekend. Here are the questions:
>
> ----
> 1. Currently, the library is named 'wxruby', but the module is named
> 'Wx'. This means you might say:
>
> require 'wxruby'
> include 'Wx'
>
> I think 'wxruby' is perfect.

I agree.

> I think the module name should remain 'Wx', because it should start with
> an upper case letter, and should be mixed-case. I guess 'WxRuby' would
> be an option, but it seems too long if you choose not to use include and
> have to use WxRuby::... everywhere.
>
> Please vote for 'Wx', 'WxRuby', or something else.

I like "Wx".

> 2. Currently, classes are named like WxWindow, so you would either refer
> to them as:
>
> include 'Wx'
> WxWindow.new(...)
>
> or just
>
> Wx::WxWindow.new(...)
>
> This seems redundant to me, so I would like to rename them to just
> Window instead of WxWindow. Ok?

I agree here, too -- go with "Wx::Window".

> 3. Currently, global constants are named like WxSUNKEN_BORDER.
>
> This also seems redundant to me, so I would like to rename them to just
> SUNKEN_BORDER? Ok?
> If not, it still seems like inconsistent case usage, so how about
> WX_SUNKEN_BORDER?

I would go with WX_SUNKEN_BORDER or put them in the module and use
Wx::SUNKEN_BORDER.

Curt




From MAILER-DAEMON Sat Jun 21 22:11:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TuJz-0001bp-A8
	for mharc-wxruby-dev@gnu.org; Sat, 21 Jun 2003 22:11:11 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TuJw-0001aX-Fy
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 22:11:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TuJu-0001YO-UB
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 22:11:07 -0400
Received: from smtp801.mail.sc5.yahoo.com ([66.163.168.180])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19TuJu-0001Uv-6N
	for wxruby-dev@nongnu.org; Sat, 21 Jun 2003 22:11:06 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	22 Jun 2003 02:11:04 -0000
Subject: RE: [Wxruby-dev] Group vote on naming questions
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <INEGJNJOFAMNDPNEABNEEEGCGOAA.curt@hibbs.com>
References: <INEGJNJOFAMNDPNEABNEEEGCGOAA.curt@hibbs.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056247864.29699.169.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 21 Jun 2003 19:11:04 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 02:11:09 -0000

Thanks for your input, Curt!

On Sat, 2003-06-21 at 18:41, Curt Hibbs wrote:
> > 3. Currently, global constants are named like WxSUNKEN_BORDER.
> >
> > This also seems redundant to me, so I would like to rename them to just
> > SUNKEN_BORDER? Ok?
> > If not, it still seems like inconsistent case usage, so how about
> > WX_SUNKEN_BORDER?
> 
> I would go with WX_SUNKEN_BORDER or put them in the module and use
> Wx::SUNKEN_BORDER.

They are already in the Wx module, so right now they are
Wx::WxSUNKEN_BORDER. Your last suggestion is my preferred option:
Wx::SUNKEN_BORDER

Kevin





From MAILER-DAEMON Sun Jun 22 08:29:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19U3y6-0007uy-Lw
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 08:29:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19U3xb-0007bM-DR
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 08:28:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19U3xL-0007RO-Mq
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 08:28:28 -0400
Received: from smtp03-out.iafrica.com ([196.2.48.34] helo=smtp03.iafrica.com)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19U3xH-0007Mo-JC
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 08:28:26 -0400
Received: from nld-dial-196-7-26-145.mweb.co.za ([196.7.26.145] helo=neo)
	by smtp03.iafrica.com with smtp (Exim 3.33 #1)
	id 19U3up-0001YE-00
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 14:25:52 +0200
From: "repeater" <repeater@lucentprimate.cjb.net>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Group vote on naming questions
Date: Sun, 22 Jun 2003 14:29:58 +0200
Message-ID: <AFEPKIEHDHMBGKFGPFLNMEPIFIAA.repeater@lucentprimate.cjb.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-reply-to: <INEGJNJOFAMNDPNEABNEEEGCGOAA.curt@hibbs.com>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: repeater@lucentprimate.cjb.net, wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 12:29:13 -0000

Curt Hibbs wrote:
>
>
> Kevin Smith wrote:
> >
> > I would like a "group vote" on some naming issues. Ideally the core
> > people would respond this weekend, so I can completely finish the naming
> > transformation this weekend. Here are the questions:
> >
> > ----
> > 1. Currently, the library is named 'wxruby', but the module is named
> > 'Wx'. This means you might say:
> >
> > require 'wxruby'
> > include 'Wx'
> >
> > I think 'wxruby' is perfect.
>
> I agree.
>
> > I think the module name should remain 'Wx', because it should start with
> > an upper case letter, and should be mixed-case. I guess 'WxRuby' would
> > be an option, but it seems too long if you choose not to use include and
> > have to use WxRuby::... everywhere.
> >
> > Please vote for 'Wx', 'WxRuby', or something else.
>
> I like "Wx".
>
> > 2. Currently, classes are named like WxWindow, so you would either refer
> > to them as:
> >
> > include 'Wx'
> > WxWindow.new(...)
> >
> > or just
> >
> > Wx::WxWindow.new(...)
> >
> > This seems redundant to me, so I would like to rename them to just
> > Window instead of WxWindow. Ok?
>
> I agree here, too -- go with "Wx::Window".

I second the things Curt have said, but regarding the above:

-One must just make sure that with WxSomething there is no Something that
conflicts with Ruby (and that is something that may bite you as the
wxWindows team add something later, like wxInteger)
-Mostly i would say 'include Wx', and i suspect so would normal users.
'Window' may thus become an idiom - subsequently when the WxWindows
documentation is used, it might just add a slight level of confusion. The
wxWindows documentation will remain the primary reference for quite some
while i believe, so it may not be a good idea to stray too much.

So i think you should try to keep the class names the same.

Kevin, have you considered how to make the interface more Rubyesque, or do
you think that is something better left for a later revision?

regards
Peter





From MAILER-DAEMON Sun Jun 22 11:10:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19U6T7-0000ZS-Rm
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 11:09:25 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19U6T0-0000CR-MQ
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 11:09:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19U6Sy-00009A-Gq
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 11:09:16 -0400
Received: from julliard.net1.nerim.net ([62.212.103.8]
	helo=voldemort.moldus.org)
	by monty-python.gnu.org with esmtp (Exim 4.20)	id 19U6Sx-000078-55
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 11:09:15 -0400
Received: by voldemort.moldus.org (Postfix, from userid 104)
	id 821351BD77; Sun, 22 Jun 2003 17:09:13 +0200 (CEST)
Received: from moldus.org (bostan.maison.fr [192.168.1.5])
	by voldemort.moldus.org (Postfix) with ESMTP id A24671BD6D
	for <wxruby-dev@nongnu.org>; Sun, 22 Jun 2003 17:09:12 +0200 (CEST)
Message-ID: <3EF5C696.1090102@moldus.org>
Date: Sun, 22 Jun 2003 17:09:10 +0200
From: Laurent Julliard <laurent@moldus.org>
Organization: A la maison / At home
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: wxruby-dev@nongnu.org
Subject: Re: [Wxruby-dev] Group vote on naming questions
References: <1056216568.29705.91.camel@CC1644462-A>
In-Reply-To: <1056216568.29705.91.camel@CC1644462-A>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 15:09:24 -0000

Kevin Smith wrote:
> I would like a "group vote" on some naming issues. Ideally the core
> people would respond this weekend, so I can completely finish the naming
> transformation this weekend. Here are the questions:
> 

wxruby and Wx are my choices. This is consistent with fxruby / Fox 
naming convention

Laurent

-- 
Laurent JULLIARD
http://www.moldus.org/~laurent




From MAILER-DAEMON Sun Jun 22 12:46:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19U7yx-0002gV-9i
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 12:46:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19U7yp-0002W0-MS
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 12:46:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19U7y9-0001pk-D9
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 12:45:38 -0400
Received: from smtp801.mail.sc5.yahoo.com ([66.163.168.180])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19U7y6-0001cB-2p
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 12:45:30 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	22 Jun 2003 16:45:28 -0000
Subject: RE: [Wxruby-dev] Group vote on naming questions
From: Kevin Smith <wxRuby@qualitycode.com>
To: repeater@lucentprimate.cjb.net, wxruby-dev@nongnu.org
In-Reply-To: <AFEPKIEHDHMBGKFGPFLNMEPIFIAA.repeater@lucentprimate.cjb.net>
References: <AFEPKIEHDHMBGKFGPFLNMEPIFIAA.repeater@lucentprimate.cjb.net>
Content-Type: text/plain
Organization: 
Message-Id: <1056300327.7350.13.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 22 Jun 2003 09:45:28 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 16:46:21 -0000

On Sun, 2003-06-22 at 05:29, repeater wrote:
> -One must just make sure that with WxSomething there is no Something that
> conflicts with Ruby (and that is something that may bite you as the
> wxWindows team add something later, like wxInteger)

Yes, I just had the same thought last night. I realized that the root
class in wxWindows is wxObject. It's not actually used much (Park didn't
even implement it at all), but could definitely cause confusion if we
tried to have a Wx::Object class.

So it seems like we really need to go one of two completely different
directions. Either need to tell people NOT to "include 'Wx'", in which
case they would have Wx::Window and Wx::SUNKEN_BORDER, or we need to
tell people they really SHOULD do "include 'Wx'" and use WxWindow and
WX_SUNKEN_BORDER. Otherwise they'll end up with just Window, or with
Wx::WxWindow, neither of which are great.

I'm not entirely happy with it, but I guess I now think that the class
names should remain WxWindow, and constants should become
WX_SUNKEN_BORDER. Sigh.

I suppose that also means that for consistency, the module-level
functions should be named wx_message_box instead of just message_box.
Dang. I'll have to undo some of what I did last night.

> Kevin, have you considered how to make the interface more Rubyesque, or do
> you think that is something better left for a later revision?

My first goal is a "straight port" that someone can use by referring to
the C++/Python wxWindows docs. After that, I definitely want to make the
interface simpler, friendlier, and more Rubyesque. I'm considering
coding that upper layer in Ruby, so more Ruby folks can participate in
its development.

Thanks!

Kevin





From MAILER-DAEMON Sun Jun 22 13:05:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19U8Gx-0000b0-Po
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 13:04:59 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19U8Gv-0000YY-Mi
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 13:04:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19U8Gu-0000UX-AU
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 13:04:56 -0400
Received: from smtp800.mail.sc5.yahoo.com ([66.163.168.179])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19U8Gt-0000Rx-Ry
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 13:04:55 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	22 Jun 2003 17:04:54 -0000
Subject: RE: [Wxruby-dev] Group vote on naming questions
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1056300327.7350.13.camel@CC1644462-A>
References: <AFEPKIEHDHMBGKFGPFLNMEPIFIAA.repeater@lucentprimate.cjb.net>
	 <1056300327.7350.13.camel@CC1644462-A>
Content-Type: text/plain
Organization: 
Message-Id: <1056301494.7341.32.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 22 Jun 2003 10:04:54 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 17:04:58 -0000

On Sun, 2003-06-22 at 09:45, Kevin Smith wrote:
> I'm not entirely happy with it, but I guess I now think that the class
> names should remain WxWindow, and constants should become
> WX_SUNKEN_BORDER. Sigh.
> 
> I suppose that also means that for consistency, the module-level
> functions should be named wx_message_box instead of just message_box.
> Dang. I'll have to undo some of what I did last night.

It just got weirder. wxWindows also has null/default objects like:
wxNullColour, wxNullFont, wxDefaultPosition. And it has enumerated types
like wxLeft and wxPercentOf.

Should those be Wx::wxNullColour, Wx::WX_NULL_COLOUR, or
Wx::wx_null_colour? Since they are effectively constants, I think they
should be WX_NULL_COLOUR and WX_LEFT for consistency. Thoughts?

Coding is easy. Figuring out naming conventions is hard! I really wish
Ruby didn't use case differentiation as part of the language itself, so
we could just match wxWindows conventions exactly. Sigh.

Kevin





From MAILER-DAEMON Sun Jun 22 14:00:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19U98J-0004p1-KT
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 14:00:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19U98F-0004hJ-TX
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 14:00:03 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19U984-00044y-Kx
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 13:59:55 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19U97y-0003hD-P2
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 13:59:46 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	22 Jun 2003 17:59:45 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056304784.7350.53.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 22 Jun 2003 10:59:44 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Summary of naming problems
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 18:00:05 -0000

Ok. I've tried to figure out a way out of all of this. So I laid out all
the naming problems that I'm aware of right now. Here are the C++
wxWindows naming categories I've found, with examples:

CLASS
 wxWindow

CLASS METHOD
 GetPosition

GLOBAL METHOD
 wxMessageBox
 EVT_MENU

CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
 wxSUNKEN_BORDER
 wxLIGHT_GREY
 wxNullColour
 wxDefaultPosition
 WXK_TAB

Quite a mess, as you can see. Recently, I have been trying to "rubify"
all of this, but have ended up where virtually nothing in wxruby is the
same as wxWindows for C++ or Python. I now believe that's a mistake.

What if we try to stay as close to the original as possible? We would
only change conventions when Ruby *requires* us to, such as class names
starting with an upper-case letter. Here's the result (I think):

CLASS
 WxWindow (changed)

CLASS METHOD
 GetPosition (same)

GLOBAL METHOD
 wxMessageBox (same)
 EVT_MENU (same)

CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
 wxSUNKEN_BORDER
 wxLIGHT_GREY
 wxNullColour
 wxDefaultPosition
 WXK_TAB

The class methods and some "global" (actually module) methods would
start with upper case, but Ruby doesn't seem to mind that. Some
"constants" would start with lower case, but they could be implemented
as methods that return the underlying constant, so users wouldn't try to
change the value.

The big advantage is that there is only ONE change from the existing
wxWindows documentation. We would match not only the C++ version, but
also wxPython. To me, that seems worth it. We can always try to figure
out a more Rubyesque set of wrappers later, which would probably have to
include their own full set of documentation.

I'll probably postpone any coding on this for a week or so, hoping to
get more input before making more changes. I'll focus on migrating more
classes to templates, which will make these changes slightly easier
whenever I do them.

I know I keep asking different questions, but I do appreciate any
feedback that folks have. These questions really will set the flavor of
wxruby for the next few years (?), so they're pretty important. You can
probably tell that I'm not a great dictator.

Thanks,

Kevin





From MAILER-DAEMON Sun Jun 22 16:27:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UBQZ-00016P-BC
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 16:27:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UBQP-0000ca-GI
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 16:26:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UBQJ-0000MG-Nj
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 16:26:52 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19UBQ5-0008Sp-BA
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 16:26:37 -0400
Received: (qmail 6756 invoked from network); 22 Jun 2003 20:18:39 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 22 Jun 2003 20:18:39 -0000
Date: Sun, 22 Jun 2003 16:26:35 -0400
Subject: Re: [Wxruby-dev] Summary of naming problems
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <1056304784.7350.53.camel@CC1644462-A>
Message-Id: <D20B783B-A4EF-11D7-889A-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 20:27:05 -0000


On Sunday, June 22, 2003, at 01:59  PM, Kevin Smith wrote:

> Ok. I've tried to figure out a way out of all of this. So I laid out 
> all
> the naming problems that I'm aware of right now. Here are the C++
> wxWindows naming categories I've found, with examples:
>
> CLASS
>  wxWindow
>
> CLASS METHOD
>  GetPosition
>
> GLOBAL METHOD
>  wxMessageBox
>  EVT_MENU
>
> CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
>  wxSUNKEN_BORDER
>  wxLIGHT_GREY
>  wxNullColour
>  wxDefaultPosition
>  WXK_TAB
>
> Quite a mess, as you can see. Recently, I have been trying to "rubify"
> all of this, but have ended up where virtually nothing in wxruby is the
> same as wxWindows for C++ or Python. I now believe that's a mistake.
>
> What if we try to stay as close to the original as possible? We would
> only change conventions when Ruby *requires* us to, such as class names
> starting with an upper-case letter. Here's the result (I think):
>
> CLASS
>  WxWindow (changed)

I think that if the class was in the module Wx you could have:

Wx::Window and yes even Wx::Object...there is no problem with using 
Object as a class inside another module.

module Wx
   class Object
   end
   class Window
   end
end

puts Wx::Window.superclass #=> 'Wx::Object'

I know you know all this...I just wanted to put it out there.  Working 
with FreeRIDE, we used to use just "import Fox" in the top of the 
files, but that littered the namespace, so now we include it in classes 
that need it instead.  This requires you to fully qualify a subclass 
relationship, but it keeps things cleaner:

include 'fox'

class MyMainWindow < Fox::FXMainWindow
   include Fox
   ...use fox constants in here with Fox:: dereferencing...
end

Realize that all you are doing is making someone type two more 
characters:

Wx::Window

- vs -

include Wx
WxWindow

I personally like the Wx::Window.

>
> CLASS METHOD
>  GetPosition (same)

I would use get_position

...folks will expect to see documentation that aligned with this (not 
do the translation themselves) so the docs will have to be emitted in 
this form, but my experience with working with the documentation 
(latex) files this would be pretty easy to do.

>
> GLOBAL METHOD
>  wxMessageBox (same)

If this is already in the module (namespace) of Wx, I don't see why you 
cannot have:

Wx.message_box

Or define another module (inside of Wx):

module Wx
   module Globals
     def self.message_box
       ...
     end
   end
end

Wx::Globals.message_box


>  EVT_MENU (same)

Wx::Globals.evt_menu

>
> CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
>  wxSUNKEN_BORDER
>  wxLIGHT_GREY

Wx::Constants::SUNKEN_BORDER
-or-
include Wx::Constants
SUNKEN_BORDER

>  wxNullColour
>  wxDefaultPosition
>  WXK_TAB
>
> The class methods and some "global" (actually module) methods would
> start with upper case, but Ruby doesn't seem to mind that. Some

Ruby does not mind, but I believe the Ruby programmer might ;-)

> "constants" would start with lower case, but they could be implemented
> as methods that return the underlying constant, so users wouldn't try 
> to
> change the value.

I think that constants should be ALL_CAPS.  If you have class methods 
they should be
underscore_methods ... this is the Ruby way.

>
> The big advantage is that there is only ONE change from the existing
> wxWindows documentation. We would match not only the C++ version, but
> also wxPython. To me, that seems worth it. We can always try to figure

Again, we could write code to process the latex files and emit 
Rubyesque versions.

> out a more Rubyesque set of wrappers later, which would probably have 
> to
> include their own full set of documentation.
>
> I'll probably postpone any coding on this for a week or so, hoping to
> get more input before making more changes. I'll focus on migrating more
> classes to templates, which will make these changes slightly easier
> whenever I do them.
>
> I know I keep asking different questions, but I do appreciate any
> feedback that folks have. These questions really will set the flavor of
> wxruby for the next few years (?), so they're pretty important. You can
> probably tell that I'm not a great dictator.
>
> Thanks,
>
> Kevin
>

Thanks for publicly thinking through this...




From MAILER-DAEMON Sun Jun 22 18:43:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UDYI-00012f-LD
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 18:43:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UDY4-00007K-ID
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 18:43:00 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UDXo-0007oL-As
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 18:42:46 -0400
Received: from smtp808.mail.sc5.yahoo.com ([66.163.168.187])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19UDVR-0005ko-2c
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 18:40:17 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	22 Jun 2003 22:40:15 -0000
Subject: Re: [Wxruby-dev] Summary of naming problems
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <D20B783B-A4EF-11D7-889A-000A95765742@infoether.com>
References: <D20B783B-A4EF-11D7-889A-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056321615.7342.63.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 22 Jun 2003 15:40:15 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 22 Jun 2003 22:43:12 -0000

On Sun, 2003-06-22 at 13:26, Richard Kilmer wrote:
> I personally like the Wx::Window.

Me too, generally. But in this case I'm conflicted. Your FreeRIDE
anecdote was very interesting, and moderately compelling.

> > CLASS METHOD
> >  GetPosition (same)
> 
> I would use get_position
> 
> ...folks will expect to see documentation that aligned with this (not 
> do the translation themselves) so the docs will have to be emitted in 
> this form, but my experience with working with the documentation 
> (latex) files this would be pretty easy to do.

But this means that if they grab a wxWindows book off the shelf, or if
they are trying to use a wxPython program as a sample, they will always
have to perform the mental translation themselves.

When working with the RubyGTK library, I really appreciated being able
to use any of the C documents out on the web.

Maybe the best answer is to provide GetPosition and get_position (and 
perhaps getPosition), as aliases of each other.

> Wx::Globals.message_box

I don't think the extra level helps. Wx.message_box is better.

Still hoping for more opinions...

Kevin





From MAILER-DAEMON Sun Jun 22 21:21:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UG16-0006ug-IK
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 21:21:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UG13-0006n5-Qs
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 21:21:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UG12-0006jw-F1
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 21:21:04 -0400
Received: from h002.c000.snv.cp.net ([209.228.32.66] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19UG12-0006js-0l
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 21:21:04 -0400
Received: (cpmta 17052 invoked from network); 22 Jun 2003 18:20:59 -0700
Received: from 68.24.69.126 (HELO l5)
  by smtp.hibbs.com (209.228.32.66) with SMTP; 22 Jun 2003 18:20:59 -0700
X-Sent: 23 Jun 2003 01:20:59 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Summary of naming problems
Date: Sun, 22 Jun 2003 20:20:48 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEMEHDGOAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <1056321615.7342.63.camel@CC1644462-A>
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 23 Jun 2003 01:21:06 -0000

Kevin Smith wrote:

[snip]
>
> But this means that if they grab a wxWindows book off the shelf, or if
> they are trying to use a wxPython program as a sample, they will always
> have to perform the mental translation themselves.
>
> When working with the RubyGTK library, I really appreciated being able
> to use any of the C documents out on the web.

After thinking about all the previous comments, I've come to agree with
this. For now, its enough work just to write the code, and it would be
better not to simultaneously make the documentation and issue as well.

Change my vote to sick as close as possible to the existing wxWindows
documentation.


> Maybe the best answer is to provide GetPosition and get_position (and
> perhaps getPosition), as aliases of each other.

I wouldn't do this, at least not yet. Just do the simple straight-forward
approach. Later, when someone is really motivated, they can create a
rubyesque wrapper along with documentation for it.

Curt




From MAILER-DAEMON Sun Jun 22 23:16:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UHpB-00079R-6c
	for mharc-wxruby-dev@gnu.org; Sun, 22 Jun 2003 23:16:57 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UHp8-00077Z-Ho
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 23:16:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UHp7-00076f-6N
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 23:16:53 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19UHp6-00072D-Ln
	for wxruby-dev@nongnu.org; Sun, 22 Jun 2003 23:16:52 -0400
Received: (qmail 8442 invoked from network); 23 Jun 2003 03:08:53 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 23 Jun 2003 03:08:53 -0000
Date: Sun, 22 Jun 2003 23:16:52 -0400
Subject: Re: [Wxruby-dev] Summary of naming problems
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <INEGJNJOFAMNDPNEABNEMEHDGOAA.curt@hibbs.com>
Message-Id: <228CFA1A-A529-11D7-889A-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 23 Jun 2003 03:16:55 -0000


On Sunday, June 22, 2003, at 09:20  PM, Curt Hibbs wrote:

> Kevin Smith wrote:
>
> [snip]
>>
>> But this means that if they grab a wxWindows book off the shelf, or if
>> they are trying to use a wxPython program as a sample, they will 
>> always
>> have to perform the mental translation themselves.
>>
>> When working with the RubyGTK library, I really appreciated being able
>> to use any of the C documents out on the web.
>
> After thinking about all the previous comments, I've come to agree with
> this. For now, its enough work just to write the code, and it would be
> better not to simultaneously make the documentation and issue as well.
>
> Change my vote to sick as close as possible to the existing wxWindows
> documentation.

I would really like Wx to become the standard graphical library for 
Ruby because of its cross-platform reach and native widget approach.  
When you code a lot of Ruby and then run into a CamelCase library just 
feels odd, and I think that if Wx becomes the standard graphical 
library...that will be an issue.  I am just trying to look at this in 
the long run.  If we say "let's stick with the Wx API for now" that 
will likely be the API.

And, although there are lots of python examples of Wx apps out there, 
there are no printed books.

This is the closest effort: http://www.wxwindows.org/wxbook.htm

And its not been accepted by a publisher, and its goal is to be a C++ 
book.

The C++ documentation from the Wx site is the main class/method 
docs...these same latex files would be the files ported for wxruby

>
>
>> Maybe the best answer is to provide GetPosition and get_position (and
>> perhaps getPosition), as aliases of each other.
>
> I wouldn't do this, at least not yet. Just do the simple 
> straight-forward
> approach. Later, when someone is really motivated, they can create a
> rubyesque wrapper along with documentation for it.

I believe that the documentation could be converted more simply than 
the code...the method parameters are different in WxRuby vs. C++ 
anyway, so the documentation is going to have to be updated to some 
degree.  In the little utility I wrote to parse the latex and emit the 
method names for you, it was not all that much of a stretch to think of 
having it rewrite the documentation with the parsed/rewritten 
methods/classes/constants.

I will put this another way.  I will (in my copious free time ;-) 
"port" the documentation if that will help




From MAILER-DAEMON Mon Jun 23 02:13:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UKaH-0004wr-Av
	for mharc-wxruby-dev@gnu.org; Mon, 23 Jun 2003 02:13:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UKaF-0004wk-HG
	for wxruby-dev@nongnu.org; Mon, 23 Jun 2003 02:13:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UKaE-0004sv-2e
	for wxruby-dev@nongnu.org; Mon, 23 Jun 2003 02:13:42 -0400
Received: from smtp801.mail.sc5.yahoo.com ([66.163.168.180])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19UKaD-0004r9-Lf
	for wxruby-dev@nongnu.org; Mon, 23 Jun 2003 02:13:41 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	23 Jun 2003 06:13:40 -0000
Subject: Re: [Wxruby-dev] Summary of naming problems
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <228CFA1A-A529-11D7-889A-000A95765742@infoether.com>
References: <228CFA1A-A529-11D7-889A-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056348819.7350.96.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 22 Jun 2003 23:13:40 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 23 Jun 2003 06:13:44 -0000

On Sun, 2003-06-22 at 20:16, Richard Kilmer wrote:
> I would really like Wx to become the standard graphical library for 
> Ruby because of its cross-platform reach and native widget approach.  

Me too!

> When you code a lot of Ruby and then run into a CamelCase library just 
> feels odd, and I think that if Wx becomes the standard graphical 
> library...that will be an issue.  I am just trying to look at this in 
> the long run.  If we say "let's stick with the Wx API for now" that 
> will likely be the API.

I'm not sure about your fear of the long run. It's pretty trivial to
create aliases for everything...although that means that anyone looking
at a wxruby program might see names_like_this or namesLikeThis (or
perhaps both in the same app!).

I was curious what other GUI libraries have done. Here's what I found:

It seems that the ruby bindings for tk, fltk, and gtk all use
ruby_naming. But the underlying libraries also use that naming
convention. 

Meanwhile, the ruby bindings for qt and fox use camelCase. And, not
surprisingly, the underlying libraries do as well.

The exception to that pattern seems to be carbon, which (if my quick
research was accurate), uses camelCase in the native library, but
ruby_naming in the ruby bindings.

I'm still undecided. I generally prefer camelCase, but agree that being
rubyesque has value, but am bothered by the amount of subtle mental
conversions that would be required to go with ruby_naming.

> I believe that the documentation could be converted more simply than 
> the code...the method parameters are different in WxRuby vs. C++ 
> anyway, so the documentation is going to have to be updated to some 
> degree.  

If we went with camelCase, the ruby bindings could match the python
bindings almost exactly. Since the existing docs already cover the
python bindings, there would probably be just a handful of doc changes
required.

> In the little utility I wrote to parse the latex and emit the 
> method names for you, it was not all that much of a stretch to think of 
> having it rewrite the documentation with the parsed/rewritten 
> methods/classes/constants.

True. But it is one layer of indirection away from the "real" docs. So
it will be more effort.

In the end, we can either "be like ruby", giving up mental compatibility
with the c++ and python versions, or we can "be like the c++ and python
bindings", forcing ruby coders to deal with camelCase. There still
doesn't seem to be a clear "right answer" there.

Kevin

P.S. Switching the library between camelCase and ruby_naming probably
took less than an hour. Switching all the sample programs took me
several hours! I had to run each one, trying every option, to be sure I
didn't miss something. Ugh.





From MAILER-DAEMON Mon Jun 23 13:43:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UVKI-0001OX-0r
	for mharc-wxruby-dev@gnu.org; Mon, 23 Jun 2003 13:41:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UVJ1-0000wc-7A
	for wxruby-dev@nongnu.org; Mon, 23 Jun 2003 13:40:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UVHL-0000LI-TR
	for wxruby-dev@nongnu.org; Mon, 23 Jun 2003 13:38:57 -0400
Received: from h000.c000.snv.cp.net ([209.228.32.64] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19UVEe-0007No-AP
	for wxruby-dev@nongnu.org; Mon, 23 Jun 2003 13:36:08 -0400
Received: (cpmta 29245 invoked from network); 23 Jun 2003 10:36:05 -0700
Received: from 63.254.221.195 (HELO l5)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 23 Jun 2003 10:36:05 -0700
X-Sent: 23 Jun 2003 17:36:05 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Summary of naming problems
Date: Mon, 23 Jun 2003 12:36:01 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEIEIIGOAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <228CFA1A-A529-11D7-889A-000A95765742@infoether.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 23 Jun 2003 17:41:56 -0000

Richard Kilmer wrote:
>
> I believe that the documentation could be converted more simply than
> the code...the method parameters are different in WxRuby vs. C++
> anyway, so the documentation is going to have to be updated to some
> degree.  In the little utility I wrote to parse the latex and emit the
> method names for you, it was not all that much of a stretch to think of
> having it rewrite the documentation with the parsed/rewritten
> methods/classes/constants.

I hate to sound wishy-washy on this, but I've thought about it some more...
So let me try to clearly state my three main points:

1) I don't really like the idea of aliases or a follow-on wrapper of
aliases. My reason is that this throws up a barrier to sharing code. I would
prefer that all wxRuby code look the same.

2) I think a mental transformation from GetPosition to get_position and the
like are acceptable.

3) I don't want the documentation to be a impediment.

> I will put this another way.  I will (in my copious free time ;-)
> "port" the documentation if that will help

Well, that does it for me -- I'm sold: Curt officially flip-flops his vote
back to "ruby naming conventions".

Curt




From MAILER-DAEMON Tue Jun 24 00:36:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UfXC-0000cu-9G
	for mharc-wxruby-dev@gnu.org; Tue, 24 Jun 2003 00:35:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UfX6-0000Q9-BY
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 00:35:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UfWk-0008Ti-6e
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 00:35:30 -0400
Received: from smtp800.mail.sc5.yahoo.com ([66.163.168.179])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19UfWc-00087A-TH
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 00:35:23 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	24 Jun 2003 04:35:18 -0000
Subject: Re: [Wxruby-dev] Summary of naming problems
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1056304784.7350.53.camel@CC1644462-A>
References: <1056304784.7350.53.camel@CC1644462-A>
Content-Type: text/plain
Organization: 
Message-Id: <1056429317.15239.7.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 23 Jun 2003 21:35:17 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 24 Jun 2003 04:35:56 -0000

On Sun, 2003-06-22 at 10:59, Kevin Smith wrote:
> Ok. I've tried to figure out a way out of all of this. So I laid out all
> the naming problems that I'm aware of right now. Here are the C++
> wxWindows naming categories I've found, with examples:
> 
> CLASS
>  wxWindow
> 
> CLASS METHOD
>  GetPosition
> 
> GLOBAL METHOD
>  wxMessageBox
>  EVT_MENU
> 
> CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
>  wxSUNKEN_BORDER
>  wxLIGHT_GREY
>  wxNullColour
>  wxDefaultPosition
>  WXK_TAB

Rich and Curt now agree on ruby style, and I'm willing to go along. And
I think we have a consensus that we will discourage global including of
Wx and encourage the use of Wx:: (or Wx.). So here's the latest proposal
on the table:

CLASS
 Wx::Window

CLASS METHOD
 get_position

GLOBAL METHOD
 Wx.message_box
 Wx.evt_menu

CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
 Wx::SUNKEN_BORDER
 Wx::LIGHT_GREY
 Wx::NULL_COLOUR
 Wx::DEFAULT_POSITION
 Wx::K_TAB

I think I can live with that. And it means I don't have to undo anything
I've already done (Yea!).

Kevin





From MAILER-DAEMON Tue Jun 24 00:56:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UfrM-0001Ja-0N
	for mharc-wxruby-dev@gnu.org; Tue, 24 Jun 2003 00:56:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Ufr1-0000lb-N3
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 00:56:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Ufqy-0000ch-HP
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 00:56:25 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Ufqn-0008Up-Iy
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 00:56:13 -0400
Received: (qmail 25738 invoked from network); 24 Jun 2003 04:48:05 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 24 Jun 2003 04:48:05 -0000
Date: Tue, 24 Jun 2003 00:56:10 -0400
Subject: Re: [Wxruby-dev] Summary of naming problems
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <1056429317.15239.7.camel@CC1644462-A>
Message-Id: <2C16AF5C-A600-11D7-84D5-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 24 Jun 2003 04:56:46 -0000


On Tuesday, June 24, 2003, at 12:35  AM, Kevin Smith wrote:
>
> Rich and Curt now agree on ruby style, and I'm willing to go along. And
> I think we have a consensus that we will discourage global including of
> Wx and encourage the use of Wx:: (or Wx.). So here's the latest 
> proposal
> on the table:
>
> CLASS
>  Wx::Window
>
> CLASS METHOD
>  get_position
>
> GLOBAL METHOD
>  Wx.message_box
>  Wx.evt_menu
>
> CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
>  Wx::SUNKEN_BORDER
>  Wx::LIGHT_GREY
>  Wx::NULL_COLOUR
>  Wx::DEFAULT_POSITION
>  Wx::K_TAB
>
> I think I can live with that. And it means I don't have to undo 
> anything
> I've already done (Yea!).
>
> Kevin
>

And I will work on transforming/emitting the documentation...

So we get a documented, rubyesque, cross-platform, awesome UI framework!

I (for one) cannot wait!

-rich




From MAILER-DAEMON Tue Jun 24 03:40:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UiPj-0005YB-3z
	for mharc-wxruby-dev@gnu.org; Tue, 24 Jun 2003 03:40:27 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UiPV-0005G2-UU
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 03:40:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UiPL-0004j1-4y
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 03:40:05 -0400
Received: from mail.iskon.hr ([213.191.128.4])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19UiPG-0004To-SE
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 03:39:59 -0400
Received: (qmail 29388 invoked from network); 24 Jun 2003 09:39:55 +0200
Received: from zg02-074.dialin.iskon.hr (HELO gaura) (213.191.130.75)
  by mail.iskon.hr with SMTP; 24 Jun 2003 09:39:55 +0200
Received: (qmail 13554 invoked by uid 500); 24 Jun 2003 07:37:59 -0000
Date: Tue, 24 Jun 2003 09:37:59 +0200
From: Gour <gour@mail.inet.hr>
To: wxruby-dev@nongnu.org
Subject: Re: [Wxruby-dev] Summary of naming problems
Message-ID: <20030624073758.GD7807@mail.inet.hr>
References: <1056429317.15239.7.camel@CC1644462-A>
	<2C16AF5C-A600-11D7-84D5-000A95765742@infoether.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <2C16AF5C-A600-11D7-84D5-000A95765742@infoether.com>
User-Agent: Mutt/1.4i
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Gour <gour@mail.inet.hr>, wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 24 Jun 2003 07:40:24 -0000

Richard Kilmer (rich@infoether.com) wrote:

> And I will work on transforming/emitting the documentation...
> 
> So we get a documented, rubyesque, cross-platform, awesome UI framework!
> 
> I (for one) cannot wait!

For sure, you're not the only one :-)

Sincerely,
Gour

-- 
Gour
gour@mail.inet.hr
Registered Linux User #278493




From MAILER-DAEMON Tue Jun 24 13:01:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19UrB0-0004x0-OZ
	for mharc-wxruby-dev@gnu.org; Tue, 24 Jun 2003 13:01:50 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UrAy-0004wf-RU
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 13:01:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19UrAx-0004vu-AQ
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 13:01:47 -0400
Received: from h008.c000.snv.cp.net ([209.228.32.72] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Uqyz-0001OZ-Q1
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 12:49:25 -0400
Received: (cpmta 11931 invoked from network); 24 Jun 2003 09:49:23 -0700
Received: from 63.254.221.195 (HELO l5)
  by smtp.hibbs.com (209.228.32.72) with SMTP; 24 Jun 2003 09:49:23 -0700
X-Sent: 24 Jun 2003 16:49:23 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "Gour" <gour@mail.inet.hr>,
	<wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Summary of naming problems
Date: Tue, 24 Jun 2003 11:49:20 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEIELCGOAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
Importance: Normal
In-Reply-To: <20030624073758.GD7807@mail.inet.hr>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 24 Jun 2003 17:01:49 -0000

Gour wrote:
>
> Richard Kilmer (rich@infoether.com) wrote:
>
> > And I will work on transforming/emitting the documentation...
> >
> > So we get a documented, rubyesque, cross-platform, awesome UI framework!
> >
> > I (for one) cannot wait!
>
> For sure, you're not the only one :-)

I second (or third?) that sentiment!

Curt




From MAILER-DAEMON Tue Jun 24 15:05:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Ut6B-0002Qc-TN
	for mharc-wxruby-dev@gnu.org; Tue, 24 Jun 2003 15:04:59 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Ut69-0002Pb-K2
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 15:04:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Ut67-0002OY-Ly
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 15:04:56 -0400
Received: from smtp03-out.iafrica.com ([196.2.48.34] helo=smtp03.iafrica.com)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Ut63-00024q-Gm
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 15:04:54 -0400
Received: from nld-dial-196-7-201-230.mweb.co.za ([196.7.201.230] helo=neo)
	by smtp03.iafrica.com with smtp (Exim 3.33 #1)
	id 19Ut3K-0007oD-00
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 21:02:03 +0200
From: "repeater" <repeater@lucentprimate.cjb.net>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Summary of naming problems
Date: Tue, 24 Jun 2003 21:06:59 +0200
Message-ID: <AFEPKIEHDHMBGKFGPFLNGECNFJAA.repeater@lucentprimate.cjb.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-reply-to: <1056429317.15239.7.camel@CC1644462-A>
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: repeater@lucentprimate.cjb.net, wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 24 Jun 2003 19:04:58 -0000

Richard Kilmer wrote:
> On Sun, 2003-06-22 at 10:59, Kevin Smith wrote:
> > Ok. I've tried to figure out a way out of all of this. So I laid out all
> > the naming problems that I'm aware of right now. Here are the C++
> > wxWindows naming categories I've found, with examples:
> >
> > CLASS
> >  wxWindow
> >
> > CLASS METHOD
> >  GetPosition
> >
> > GLOBAL METHOD
> >  wxMessageBox
> >  EVT_MENU
> >
> > CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
> >  wxSUNKEN_BORDER
> >  wxLIGHT_GREY
> >  wxNullColour
> >  wxDefaultPosition
> >  WXK_TAB
>
> Rich and Curt now agree on ruby style, and I'm willing to go along. And
> I think we have a consensus that we will discourage global including of
> Wx and encourage the use of Wx:: (or Wx.). So here's the latest proposal
> on the table:
>
> CLASS
>  Wx::Window
>
> CLASS METHOD
>  get_position
>
> GLOBAL METHOD
>  Wx.message_box
>  Wx.evt_menu
>
> CONSTANT, PRE-DEFINED OBJECT, PTR TO PRE-DEFINED OBJECT
>  Wx::SUNKEN_BORDER
>  Wx::LIGHT_GREY
>  Wx::NULL_COLOUR
>  Wx::DEFAULT_POSITION
>  Wx::K_TAB
>
> I think I can live with that. And it means I don't have to undo anything
> I've already done (Yea!).
>

Hi!

I like the idea conceptually of that "Wx" actually _doing_ something by
indicating a namespace.

But I just want to point out a few counter arguments:

-the effort of two extra characters (together with shift that means 3) that
is perhaps not needed
-code readability, especially since Wx* is so numerous
example:
    @calendar = Wx::CalendarCtrl.new(self, ID_CALENDAR, Wx::DefaultDateTime,
                                     Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE,
                                     Wx::CAL_MONDAY_FIRST |
                                     Wx::CAL_SHOW_HOLIDAYS |
                                     Wx::RAISED_BORDER)

    dlgSizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
    calendarSizer = Wx::BoxSizer.new(Wx::VERTICAL)
    calendarSizer.Add(@calendar, 1, Wx::GROW)
    dlgSizer.Add(calendarSizer, 1, Wx::GROW)

vs

    @calendar = WxCalendarCtrl.new(self, ID_CALENDAR, WxDefaultDateTime,
                                     WxDEFAULT_POSITION, WxDEFAULT_SIZE,
                                     WxCAL_MONDAY_FIRST |
                                     WxCAL_SHOW_HOLIDAYS |
                                     WxRAISED_BORDER)

    dlgSizer = WxBoxSizer.new(WxHORIZONTAL)
    calendarSizer = WxBoxSizer.new(WxVERTICAL)
    calendarSizer.Add(@calendar, 1, WxGROW)
    dlgSizer.Add(calendarSizer, 1, WxGROW)
    SetSizer(dlgSizer)
    SetAutoLayout(TRUE)
    Layout()

For sure it is a matter of taste, but we must just make sure we can stomach
'::' in bulk.

-the cultural reorientation of people like me, who through experience with
other gui libs would 'include' the first thing that they see.

Keep up the good work!

regards
Peter




From MAILER-DAEMON Tue Jun 24 19:01:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Uwlv-0004my-RR
	for mharc-wxruby-dev@gnu.org; Tue, 24 Jun 2003 19:00:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19UwlS-0004PA-0R
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 18:59:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Uwil-00030B-WA
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 18:57:06 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Uwie-0002hG-Nq
	for wxruby-dev@nongnu.org; Tue, 24 Jun 2003 18:56:56 -0400
Received: (qmail 984 invoked from network); 24 Jun 2003 22:48:44 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 24 Jun 2003 22:48:44 -0000
Date: Tue, 24 Jun 2003 18:56:54 -0400
Subject: Re: [Wxruby-dev] Summary of naming problems
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: repeater@lucentprimate.cjb.net,
 wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <AFEPKIEHDHMBGKFGPFLNGECNFJAA.repeater@lucentprimate.cjb.net>
Message-Id: <26524F62-A697-11D7-8AF4-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 24 Jun 2003 23:00:17 -0000


On Tuesday, June 24, 2003, at 03:06  PM, repeater wrote:

> For sure it is a matter of taste, but we must just make sure we can 
> stomach
> '::' in bulk.
>
> -the cultural reorientation of people like me, who through experience 
> with
> other gui libs would 'include' the first thing that they see.

You can include if you want.  You just have to know that by doing so 
you are bringing in the whole constant pool of Wx...this is no 
different for Fox.  You can still access constants that existed before 
the inclusion of the namespace like for Object it would be ::Object 
(accessing the Object constant in the 'root' namespace).  What is nice 
is by giving you a choice, your example could become:

     include Wx
     @calendar = CalendarCtrl.new(self, ID_CALENDAR, DefaultDateTime,
                                      DEFAULT_POSITION, DEFAULT_SIZE,
                                      CAL_MONDAY_FIRST |
                                      CAL_SHOW_HOLIDAYS |
                                      RAISED_BORDER)

     dlgSizer = BoxSizer.new(HORIZONTAL)
     calendarSizer = BoxSizer.new(VERTICAL)
     calendarSizer.Add(@calendar, 1, GROW)
     dlgSizer.Add(calendarSizer, 1, GROW)

And of course if you just do this in a class:

class MyClass
   include Wx
   ...
end

It keeps the the inclusion isolated.

-rich




From MAILER-DAEMON Wed Jun 25 09:22:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VADf-0006f2-8t
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 09:21:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VADJ-0005yF-OZ
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 09:21:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VACz-0005qu-88
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 09:21:09 -0400
Received: from mlabdial.hit.bme.hu ([152.66.248.201])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VACv-0005l4-Hz
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 09:21:05 -0400
Received: (from kgergely@localhost)
	by mlabdial.hit.bme.hu (8.11.6/8.11.6) id h5PDKqO10575
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 15:20:52 +0200
Date: Wed, 25 Jun 2003 15:20:52 +0200
From: KONTRA Gergely <kgergely@mlabdial.hit.bme.hu>
To: wxruby-dev@nongnu.org
Subject: Re: [Wxruby-dev] Status report
Message-ID: <20030625132052.GF9464@mlabdial.hit.bme.hu>
References: <1054403652.30646.30.camel@CC1644462-A>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1054403652.30646.30.camel@CC1644462-A>
User-Agent: Mutt/1.4i
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 25 Jun 2003 13:21:49 -0000

On 0531, Kevin Smith wrote:

Hi!

I just want to ask, wheter wxruby is announced at the ruby site, ...

So, if I'd like to use or help in the work, where should I go?
Is there any FAQ how to help?

Gergo

-- 
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| http://www.mcl.hu/~kgergely            "Olyan langesz vagyok, hogy  |
| Mobil:(+36 20) 356 9656 ICQ: 175564914   poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+



From MAILER-DAEMON Wed Jun 25 12:53:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VDLc-0007Id-Jn
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 12:42:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VD9a-0000zZ-M9
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 12:29:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VD8d-0000ed-2G
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 12:28:51 -0400
Received: from gnuftp.gnu.org ([199.232.41.6])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VD6z-0000Ka-CW
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 12:27:09 -0400
Received: from smtp807.mail.sc5.yahoo.com ([66.163.168.186])
	by gnuftp.gnu.org with smtp (Exim 4.20)
	id 19VCVd-0005q7-Vm
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 11:48:34 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	25 Jun 2003 15:46:29 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056555988.20787.35.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 08:46:28 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Upcoming Alpha Release?
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 25 Jun 2003 16:42:14 -0000

I think I can be ready for an Alpha release this weekend. As far as I
know, the only coding that has to be done before we release is finishing
the "big renaming". Ideally we would also update the sample to
demonstrate our recommended coding patterns (no global include).

I propose we release these packages:

1. Linux binary (wxruby.so). Eventually I would like it to be statically
linked with wxWindows, but maybe not for this version. Eventually I
would like to add .RPM and .DEB packages, but those can wait!

2. Windows binary (wxruby.so). We should only release this if we
(someone other than me) can build and test it. Again, I would prefer
that it statically link wxWindows.

3. Samples (the samples/ directory).

4. Source (the src/ directory). I'm not sure this is absolutely
necessary--maybe we could require people to use CVS access to get the
source code.

Every package will also have to include a README and the license, of
course.

I'm not that familiar with Savannah, and would prefer to stay focused on
the coding. So can one of you (Curt? Rich?) take the lead on the
packaging issues?

Kevin





From MAILER-DAEMON Wed Jun 25 12:54:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VDWw-0001mY-94
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 12:53:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VDJc-0006Zg-4C
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 12:40:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VDHy-0005Js-O4
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 12:38:31 -0400
Received: from gnuftp.gnu.org ([199.232.41.6])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VDAp-0001IT-Ek
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 12:31:07 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by gnuftp.gnu.org with smtp (Exim 4.20)
	id 19VBoB-0006TK-Dd
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 11:03:39 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	25 Jun 2003 15:01:19 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <20030625132052.GF9464@mlabdial.hit.bme.hu>
References: <1054403652.30646.30.camel@CC1644462-A>
	 <20030625132052.GF9464@mlabdial.hit.bme.hu>
Content-Type: text/plain
Organization: 
Message-Id: <1056553279.20787.18.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 08:01:19 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] How to help (was: Status report)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 25 Jun 2003 16:53:56 -0000

On Wed, 2003-06-25 at 06:20, KONTRA Gergely wrote:
> I just want to ask, wheter wxruby is announced at the ruby site, ...
> 
> So, if I'd like to use or help in the work, where should I go?
> Is there any FAQ how to help?

The current version of wxruby is available from anonymous cvs at our
savannah site: https://savannah.nongnu.org/projects/wxruby/

Right now, it basiclly works, but:
- We are changing all the names to make them more ruby-like
- It will sometimes crash (segfault)
- Some class methods are missing
- It has not been tested under MS Windows recently

After we finish the big renaming, we will do an alpha release. And at
that time, it will become easier to split the work between multiple
people, because things will be more stable. The easiest and most
important way people could help is by testing that release, and
reporting any problems.

I will try to think of other tasks that you (and other people) could do.
It would help me if you could describe your skills and interests.

Thanks!

Kevin





From MAILER-DAEMON Wed Jun 25 17:24:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VHbp-0002N7-Fu
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 17:15:17 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VHQM-00007u-Tm
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 17:03:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VGs6-0000Q9-6a
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 16:28:02 -0400
Received: from h007.c000.snv.cp.net ([209.228.32.71] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19VGeR-0005Lt-An
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 16:13:55 -0400
Received: (cpmta 18639 invoked from network); 25 Jun 2003 13:13:49 -0700
Received: from 63.254.221.195 (HELO l5)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 25 Jun 2003 13:13:49 -0700
X-Sent: 25 Jun 2003 20:13:49 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Upcoming Alpha Release?
Date: Wed, 25 Jun 2003 15:13:46 -0500
Message-ID: <INEGJNJOFAMNDPNEABNECEOJGOAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <1056555988.20787.35.camel@CC1644462-A>
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 25 Jun 2003 21:15:16 -0000

Kevin Smith wrote:
>
> I think I can be ready for an Alpha release this weekend. As far as I
> know, the only coding that has to be done before we release is finishing
> the "big renaming". Ideally we would also update the sample to
> demonstrate our recommended coding patterns (no global include).

This is fantastic! Good work!

> I propose we release these packages:
>
> 1. Linux binary (wxruby.so). Eventually I would like it to be statically
> linked with wxWindows, but maybe not for this version. Eventually I
> would like to add .RPM and .DEB packages, but those can wait!
>
> 2. Windows binary (wxruby.so). We should only release this if we
> (someone other than me) can build and test it. Again, I would prefer
> that it statically link wxWindows.

I will do this.

> 3. Samples (the samples/ directory).
>
> 4. Source (the src/ directory). I'm not sure this is absolutely
> necessary--maybe we could require people to use CVS access to get the
> source code.
>
> Every package will also have to include a README and the license, of
> course.
>
> I'm not that familiar with Savannah, and would prefer to stay focused on
> the coding. So can one of you (Curt? Rich?) take the lead on the
> packaging issues?

I can probably do this (perhaps with some help from Laurent).

This is good timing for me in about three weeks I'm going to be very very
busy (that means no extra time) for the following month or two. So, I will
help out as much as I can over the next couple weeks.

Curt




From MAILER-DAEMON Wed Jun 25 22:10:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VLyF-0002zn-QY
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 21:54:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VLlM-00008U-RT
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 21:41:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VKGX-0006pg-JC
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 20:05:32 -0400
Received: from smtp03-out.iafrica.com ([196.2.48.34] helo=smtp03.iafrica.com)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VJDC-0004lb-OH
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 18:57:59 -0400
Received: from nld-dial-196-7-201-97.mweb.co.za ([196.7.201.97] helo=neo)
	by smtp03.iafrica.com with smtp (Exim 3.33 #1)
	id 19VJAc-0001jP-00
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:55:19 +0200
From: "repeater" <repeater@lucentprimate.cjb.net>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Summary of naming problems
Date: Thu, 26 Jun 2003 01:00:19 +0200
Message-ID: <AFEPKIEHDHMBGKFGPFLNKEEMFJAA.repeater@lucentprimate.cjb.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-reply-to: <26524F62-A697-11D7-8AF4-000A95765742@infoether.com>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: repeater@lucentprimate.cjb.net, wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 01:54:41 -0000

Richard Kilmer wrote:
> >
> > -the cultural reorientation of people like me, who through experience
> > with
> > other gui libs would 'include' the first thing that they see.
>
> You can include if you want.  You just have to know that by doing so
> you are bringing in the whole constant pool of Wx...this is no
> different for Fox.

The thing is that with Fox you've got for example FXButton, with two letters
that just makes any possible conflicts far less likely. And it corresponds
with docu, but that isn't that much a biggie.

> You can still access constants that existed before
> the inclusion of the namespace like for Object it would be ::Object
> (accessing the Object constant in the 'root' namespace).

As an aside, it seems that constants in root will not be replaced as include
takes places. Obviously so I suppose. So just don't create a Window class
when you want to use wxwindows...fair enough.

> What is nice
> is by giving you a choice, your example could become:
>
>      include Wx
>      @calendar = CalendarCtrl.new(self, ID_CALENDAR, DefaultDateTime,
>                                       DEFAULT_POSITION, DEFAULT_SIZE,
>                                       CAL_MONDAY_FIRST |
>                                       CAL_SHOW_HOLIDAYS |
>                                       RAISED_BORDER)
>

whoops no 'self' in my example above, we've got pure OO :-)

>      dlgSizer = BoxSizer.new(HORIZONTAL)
>      calendarSizer = BoxSizer.new(VERTICAL)
>      calendarSizer.Add(@calendar, 1, GROW)
>      dlgSizer.Add(calendarSizer, 1, GROW)
>

This looks better yes, I'm satisfied. Using a style with Wx::Button for
classes and just normal included names for the constants, would give you
best of both worlds.

Have a nice day
Peter




From MAILER-DAEMON Wed Jun 25 23:48:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VNjj-0004Th-LO
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 23:47:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VNi3-0003U2-Vo
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 23:46:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VNgR-0002cS-Bu
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 23:44:28 -0400
Received: from smtp805.mail.sc5.yahoo.com ([66.163.168.184])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19VMzU-0001es-Hd
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 23:00:04 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	26 Jun 2003 02:59:57 -0000
Subject: Re: [Wxruby-dev] How to help (was: Status report)
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1056553279.20787.18.camel@CC1644462-A>
References: <1054403652.30646.30.camel@CC1644462-A>
	 <20030625132052.GF9464@mlabdial.hit.bme.hu>
	 <1056553279.20787.18.camel@CC1644462-A>
Content-Type: text/plain
Organization: 
Message-Id: <1056596397.24979.36.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 19:59:57 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 03:47:50 -0000

On Wed, 2003-06-25 at 08:01, Kevin Smith wrote:
> The current version of wxruby is available from anonymous cvs at our
> savannah site: https://savannah.nongnu.org/projects/wxruby/
> 
> Right now, it basiclly works, but:

Oops. I forgot to mention that only the src/ and samples/ directories in
cvs are used for the current code. All the other directories are for the
SWIG prototype that is no longer being used.

Curt--Can we tag what's there now, and then "delete" all the unused
stuff, and tag it again? Does that make sense? We should definitely hide
the unused stuff before we do the alpha release.

Kevin





From MAILER-DAEMON Wed Jun 25 23:57:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VNp6-0006vv-La
	for mharc-wxruby-dev@gnu.org; Wed, 25 Jun 2003 23:53:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VNp2-0006ry-1s
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 23:53:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VNlP-0005QV-Vx
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 23:49:45 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VIxQ-0001ou-6s
	for wxruby-dev@nongnu.org; Wed, 25 Jun 2003 18:41:40 -0400
Received: (qmail 10019 invoked from network); 25 Jun 2003 22:33:20 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 25 Jun 2003 22:33:20 -0000
Date: Wed, 25 Jun 2003 18:41:38 -0400
Subject: Re: [Wxruby-dev] Upcoming Alpha Release?
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <1056555988.20787.35.camel@CC1644462-A>
Message-Id: <2EB67404-A75E-11D7-938D-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 03:53:23 -0000

I would really like to try and get a OS X version working as soon as 
possible.  If I get a chance I will check out cvs and try and build on 
OS X (I already have Wx installed on OS X).

Best,

rich
On Wednesday, June 25, 2003, at 11:46  AM, Kevin Smith wrote:

> I think I can be ready for an Alpha release this weekend. As far as I
> know, the only coding that has to be done before we release is 
> finishing
> the "big renaming". Ideally we would also update the sample to
> demonstrate our recommended coding patterns (no global include).
>
> I propose we release these packages:
>
> 1. Linux binary (wxruby.so). Eventually I would like it to be 
> statically
> linked with wxWindows, but maybe not for this version. Eventually I
> would like to add .RPM and .DEB packages, but those can wait!
>
> 2. Windows binary (wxruby.so). We should only release this if we
> (someone other than me) can build and test it. Again, I would prefer
> that it statically link wxWindows.
>
> 3. Samples (the samples/ directory).
>
> 4. Source (the src/ directory). I'm not sure this is absolutely
> necessary--maybe we could require people to use CVS access to get the
> source code.
>
> Every package will also have to include a README and the license, of
> course.
>
> I'm not that familiar with Savannah, and would prefer to stay focused 
> on
> the coding. So can one of you (Curt? Rich?) take the lead on the
> packaging issues?

I am not familiar with this either... Curt????

>
> Kevin
>
>
>
>
> _______________________________________________
> Wxruby-dev mailing list
> Wxruby-dev@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/wxruby-dev
>




From MAILER-DAEMON Thu Jun 26 00:33:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VORu-0008DZ-S1
	for mharc-wxruby-dev@gnu.org; Thu, 26 Jun 2003 00:33:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VORs-00089j-Kx
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:33:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VORi-0007fa-Se
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:33:19 -0400
Received: from smtp802.mail.sc5.yahoo.com ([66.163.168.181])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19VORh-0007ag-Vv
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:33:18 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	26 Jun 2003 04:33:15 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056601994.24962.49.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 21:33:15 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Naming problem
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 04:33:29 -0000

Doh!

I have done the "big rename" in the library itself, and am now starting
to fix all the samples.

Unfortunately, we have a conflict between wxLeft and wxLEFT.

wxLeft is an enumeration specifying the edge for a
wxIndividualLayoutConstraint.

wxLEFT is an enumeration specifying the label alignment in a wxGrid.

ARGH!!!

I guess my vote would be to make these constants local within their
respective classes: Wx::Grid::LEFT vs.
Wx::IndividualLayoutConstraint::LEFT

Otherwise, it would probably be best to rename both of them, so we would
have: Wx::LAYOUT_LEFT and Wx::ALIGN_LEFT (and right, bottom, and
center/centre too).

Any other or better ideas?

Kevin





From MAILER-DAEMON Thu Jun 26 00:51:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VOio-00081D-9j
	for mharc-wxruby-dev@gnu.org; Thu, 26 Jun 2003 00:50:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VOiO-0007cS-CR
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:50:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VOi6-0007Zb-IE
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:50:15 -0400
Received: from smtp803.mail.sc5.yahoo.com ([66.163.168.182])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19VOhe-0006Ru-JB
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 00:49:46 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	26 Jun 2003 04:49:45 -0000
Subject: Re: [Wxruby-dev] Upcoming Alpha Release?
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <2EB67404-A75E-11D7-938D-000A95765742@infoether.com>
References: <2EB67404-A75E-11D7-938D-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056602984.24976.51.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 21:49:44 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 04:50:56 -0000

On Wed, 2003-06-25 at 15:41, Richard Kilmer wrote:
> I would really like to try and get a OS X version working as soon as 
> possible.  If I get a chance I will check out cvs and try and build on 
> OS X (I already have Wx installed on OS X).

That would be really excellent. Fingers crossed.

Kevin





From MAILER-DAEMON Thu Jun 26 01:02:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VOsx-0000y4-Tz
	for mharc-wxruby-dev@gnu.org; Thu, 26 Jun 2003 01:01:27 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VOse-0000iL-Pm
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:01:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VOri-00089P-HL
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:00:18 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VOrf-0007zs-Fp
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:00:07 -0400
Received: (qmail 12633 invoked from network); 26 Jun 2003 04:51:17 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 26 Jun 2003 04:51:17 -0000
Date: Thu, 26 Jun 2003 00:59:37 -0400
Subject: Re: [Wxruby-dev] Naming problem
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <1056601994.24962.49.camel@CC1644462-A>
Message-Id: <FCC56EFB-A792-11D7-9325-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 05:01:25 -0000


On Thursday, June 26, 2003, at 12:33  AM, Kevin Smith wrote:

> Doh!
>
> I have done the "big rename" in the library itself, and am now starting
> to fix all the samples.
>
> Unfortunately, we have a conflict between wxLeft and wxLEFT.
>
> wxLeft is an enumeration specifying the edge for a
> wxIndividualLayoutConstraint.
>
> wxLEFT is an enumeration specifying the label alignment in a wxGrid.
>
> ARGH!!!

Gosh...that just sucks in general...to have to know to use WxLeft vs. 
WxLEFT (in the C++ code).

>
> I guess my vote would be to make these constants local within their
> respective classes: Wx::Grid::LEFT vs.
> Wx::IndividualLayoutConstraint::LEFT

Well, Ruby will allow you to have Left and LEFT and it treats them as 
different constants...but man...ug.

>
> Otherwise, it would probably be best to rename both of them, so we 
> would
> have: Wx::LAYOUT_LEFT and Wx::ALIGN_LEFT (and right, bottom, and
> center/centre too).

This makes them more descriptive...which is nice...and it leaves all 
the constants in the Wx namespace.  If just these are "one level 
deeper" its kind of weird.  The documentation would have to capture 
this, but I like these names better.




From MAILER-DAEMON Thu Jun 26 01:38:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VPSU-0003I9-Rb
	for mharc-wxruby-dev@gnu.org; Thu, 26 Jun 2003 01:38:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VPSS-0003I1-M4
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:38:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VPSR-0003Hl-Dl
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:38:07 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19VPSQ-0003HT-V6
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:38:07 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	26 Jun 2003 05:38:06 -0000
Subject: Re: [Wxruby-dev] Naming problem
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <FCC56EFB-A792-11D7-9325-000A95765742@infoether.com>
References: <FCC56EFB-A792-11D7-9325-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056605885.24962.74.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 22:38:05 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 05:38:09 -0000

On Wed, 2003-06-25 at 21:59, Richard Kilmer wrote:
> On Thursday, June 26, 2003, at 12:33  AM, Kevin Smith wrote:
> > Otherwise, it would probably be best to rename both of them, so we 
> > would
> > have: Wx::LAYOUT_LEFT and Wx::ALIGN_LEFT (and right, bottom, and
> > center/centre too).
> 
> This makes them more descriptive...which is nice...and it leaves all 
> the constants in the Wx namespace.  If just these are "one level 
> deeper" its kind of weird.  The documentation would have to capture 
> this, but I like these names better.

It turns out that wxLeft et.al. are only used in
IndividualLayoutConstraint. And constraints are deprecated in favor of
sizers. Plus the constants themselves are rarely used because there are
convenience methods instead. I had already moved those constants inside
IndividualLayoutConstraint before reading your email. Since it's
deprecated anyway, I'm inclined to leave them there for the moment. But
if anyone feels strongly, they could come back out to the global level
as LAYOUT_LEFT etc.

The bad news is that wxALIGN_LEFT et.al already exist. The other bad
news is that you might actually say something like (wxLEFT |
wxALIGN_LEFT) in a single expression! This all seems pretty broken, but
I don't think we can fix it completely.

Also, wxLEFT et.al. are actually directions, not alignments. And
directions are used VERY OFTEN. But actually wxWEST is an alias for
wxLEFT, so maybe we could change wxLEFT to be DIRECTION_LEFT, and
encourage people to use WEST instead. 

That was pretty messy. Here's my simple proposal:

wxLeft -> Wx::IndividualLayoutConstraint::LEFT (and it is deprecated)
wxLEFT -> Wx::DIRECTION_LEFT (but recommend using Wx::WEST instead)
wxALIGN_LEFT -> Wx::ALIGN_LEFT

Kevin





From MAILER-DAEMON Thu Jun 26 01:54:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VPii-0007WQ-Fa
	for mharc-wxruby-dev@gnu.org; Thu, 26 Jun 2003 01:54:56 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VPie-0007J1-3G
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:54:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VPib-0007FK-Dl
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:54:49 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19VPiU-0006vW-B5
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 01:54:42 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	26 Jun 2003 05:54:41 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056606880.24977.80.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 25 Jun 2003 22:54:40 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Status question on ruby-talk
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 05:54:55 -0000

I noticed a recent question on ruby-talk about the status of wxruby:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/74039


I'm not a subscriber to that list (too much traffic!). Can one of you
post a brief response for Phil?

Thanks,

Kevin





From MAILER-DAEMON Thu Jun 26 09:16:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19VWar-0005Qy-BN
	for mharc-wxruby-dev@gnu.org; Thu, 26 Jun 2003 09:15:17 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19VWZQ-0004l5-1b
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 09:13:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19VWXh-00030z-Ft
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 09:12:02 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19VWVK-0002Fl-N4
	for wxruby-dev@nongnu.org; Thu, 26 Jun 2003 09:09:34 -0400
Received: (qmail 15444 invoked from network); 26 Jun 2003 13:01:08 -0000
Received: from global-pat.ul.isotic.org (HELO infoether.com) (rich@4.22.165.4)
  by infoether.com with SMTP; 26 Jun 2003 13:01:08 -0000
Date: Thu, 26 Jun 2003 09:09:32 -0400
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
To: ruby-talk@ruby-lang.org
From: Richard Kilmer <rich@infoether.com>
In-Reply-To: <bcvofp2dc6@enews2.newsguy.com>
Message-Id: <6D1D9F37-A7D7-11D7-9F05-000A95765742@infoether.com>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.552)
cc: wxruby-dev@nongnu.org
Subject: [Wxruby-dev] Re: WxRuby status?
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 26 Jun 2003 13:15:15 -0000

Things are progressing great.  Kevin Smith has taken the development 
lead and made significant progress in the creation of a functional 
Ruby-WxWindows library using a templating approach w/out SWIG.  An 
Alpha release is being finalized after a discussion on the best naming 
convention when wrapping the underlying Wx classes/methods/constants.  
By consensus we decided to adopt a Rubyesque (underscore_methods) 
convention, and generate documentation accordingly.  Kevin is now busy 
finalizing that name change, and updating the samples.  Once the code 
is ready, Kevin will produce a binary for Linux, and Curt Hibbs will 
build a binary for Win32.  I am going to try and build one for OS X.

The WxRuby project is using Savannah so the code, et al is in CVS at:

http://savannah.nongnu.org/projects/wxruby/

And there is a Wiki located here (although not updated too often right 
now...busy coding!):

http://www.wxruby.org/cgi-bin/wiki.pl

There is some old code in the CVS repository that will be removed soon. 
  The two directories under CVS that contain the active code are 'src' 
and 'samples'.  Once cleaned up, these and a few others (doc, etc) will 
be left.  If you check out the CVS tree, just ignore the other 
directories for now.

Once the files are released (for Alpha) they will be located on the 
Savannah project page and we will make an announcement here (and on 
RAA).

Best,

-Rich

On Friday, June 20, 2003, at 04:37  PM, Phil Tomson wrote:

>
> Just curious: What is that status of ruby bindings for WxWindows?
>
> Phil
>
>




From MAILER-DAEMON Sat Jun 28 17:07:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WMuF-0002oA-OE
	for mharc-wxruby-dev@gnu.org; Sat, 28 Jun 2003 17:06:47 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WMtd-0002RW-6w	for wxruby-dev@mail.freesoftware.fsf.org;
	Sat, 28 Jun 2003 17:06:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WMtA-0001wJ-Ic	for wxruby-dev@mail.freesoftware.fsf.org;
	Sat, 28 Jun 2003 17:05:44 -0400
Received: from h008.c000.snv.cp.net ([209.228.32.72] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)	id 19WMt7-0001Ys-JX
	for wxruby-dev@mail.freesoftware.fsf.org;
	Sat, 28 Jun 2003 17:05:37 -0400
Received: (cpmta 288 invoked from network); 28 Jun 2003 14:05:30 -0700
Received: from 68.24.82.77 (HELO l5)
  by smtp.hibbs.com (209.228.32.72) with SMTP; 28 Jun 2003 14:05:30 -0700
X-Sent: 28 Jun 2003 21:05:30 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Sat, 28 Jun 2003 16:05:20 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEGEGFGPAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Subject: [Wxruby-dev] Alpha Release
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 28 Jun 2003 21:06:45 -0000

Kevin,

I may not be able to get to doing a Windows build until Wednesday, although
there's a possibility I can still do it Sunday night if get lucky with my
weekend priority tasks.

Is what you have in the cvs repo ready to go?

Curt




From MAILER-DAEMON Sat Jun 28 17:37:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WNNx-0004rY-BB
	for mharc-wxruby-dev@gnu.org; Sat, 28 Jun 2003 17:37:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WNNo-0004ao-Hr
	for wxruby-dev@nongnu.org; Sat, 28 Jun 2003 17:37:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WNNj-0004Rt-Nb
	for wxruby-dev@nongnu.org; Sat, 28 Jun 2003 17:37:16 -0400
Received: from smtp808.mail.sc5.yahoo.com ([66.163.168.187])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WNNc-0004Cj-LF
	for wxruby-dev@nongnu.org; Sat, 28 Jun 2003 17:37:08 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	28 Jun 2003 21:37:07 -0000
Subject: Re: [Wxruby-dev] Alpha Release
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <INEGJNJOFAMNDPNEABNEGEGFGPAA.curt@hibbs.com>
References: <INEGJNJOFAMNDPNEABNEGEGFGPAA.curt@hibbs.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056836226.31955.80.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 28 Jun 2003 14:37:06 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 28 Jun 2003 21:37:28 -0000

On Sat, 2003-06-28 at 14:05, Curt Hibbs wrote:
> I may not be able to get to doing a Windows build until Wednesday, although
> there's a possibility I can still do it Sunday night if get lucky with my
> weekend priority tasks.

Ok. We still need other stuff, like a good readme, and the other
compiled versions. Were you going to take care of that stuff, too? The
readme should mention that the samples are functional, but are not
written in a recommended style. I also have some "known problems" that
I'd like to include.

> Is what you have in the cvs repo ready to go?

Basically, yes. I'm not planning to make any more code changes to the
library itself. But I am still in the process of converting the samples
over to use the new names. I have finished everything outside the
samples/etc directory. I should have all the etc samples done by this
evening.

There is a small chance that during the etc sample conversions, I may
discover a bug in the main library that I have to fix. If so, I'll let
you know.

Kevin





From MAILER-DAEMON Sun Jun 29 01:55:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WV9q-0003sM-KK
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 01:55:26 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WV9R-0003Mt-4o
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 01:55:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WV9B-0002Nm-MM
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 01:54:49 -0400
Received: from smtp800.mail.sc5.yahoo.com ([66.163.168.179])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WV98-0002AC-GJ
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 01:54:42 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	29 Jun 2003 05:54:40 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056866080.31946.127.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 28 Jun 2003 22:54:40 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Weekend status
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 05:55:24 -0000

I found a significant missing feature that I'm now trying to put in:
Mouse event handling. There is currently no way to catch a mouse event,
such as a click, drag, etc. That's fine as long as you're only using
standard widgets (controls), but if you're trying to do a drawing
program, it's a problem.

I actually need mouse events myself, because I'm porting my Space
Monkeys game to wxruby. I originally wrote it with GTK, then ported it
to FLTK, and now to wx. It's going pretty well, but I can also see that
the current way we hook events is really cumbersome. We'll need to come
up with a more rubyesque method really soon!

Anyway, aside from this new feature, I still think the library code is
ready for alpha release.

Kevin





From MAILER-DAEMON Sun Jun 29 02:32:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WVj2-0008DQ-PU
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 02:31:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WVhn-0006cW-E9
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 02:30:31 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WVgP-0005wD-0A
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 02:29:06 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WVfp-0005hq-5i
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 02:28:29 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	29 Jun 2003 06:28:28 -0000
Subject: Re: [Wxruby-dev] Weekend status
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1056866080.31946.127.camel@CC1644462-A>
References: <1056866080.31946.127.camel@CC1644462-A>
Content-Type: text/plain
Organization: 
Message-Id: <1056868107.31946.130.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 28 Jun 2003 23:28:27 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 06:31:35 -0000

On Sat, 2003-06-28 at 22:54, Kevin Smith wrote:
> I found a significant missing feature that I'm now trying to put in:
> Mouse event handling. 

Done and checked in. The support is very minimal, but at least it's
there, and it's enough for my game.

Kevin





From MAILER-DAEMON Sun Jun 29 03:07:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WWGs-0000fa-W9
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 03:06:46 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WWGn-0000Ta-ST
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 03:06:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WWGJ-0007OJ-Em
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 03:06:13 -0400
Received: from mail.iskon.hr ([213.191.128.4])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WWGG-00078O-Aj
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 03:06:08 -0400
Received: (qmail 5728 invoked from network); 29 Jun 2003 09:06:04 +0200
Received: from zg04-022.dialin.iskon.hr (HELO gaura) (213.191.137.23)
  by mail.iskon.hr with SMTP; 29 Jun 2003 09:06:04 +0200
Received: (qmail 7547 invoked by uid 500); 29 Jun 2003 07:05:17 -0000
Date: Sun, 29 Jun 2003 09:05:17 +0200
From: Gour <gour@mail.inet.hr>
To: wxruby-dev@nongnu.org
Subject: Re: [Wxruby-dev] Weekend status
Message-ID: <20030629070517.GC6377@inet.hr>
References: <1056866080.31946.127.camel@CC1644462-A>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1056866080.31946.127.camel@CC1644462-A>
User-Agent: Mutt/1.4i
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Gour <gour@mail.inet.hr>, wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 07:06:45 -0000

Kevin Smith (wxRuby@qualitycode.com) wrote:

Hi Kevin!

I'm so happy that you are putting so much energy to bring out wxruby and I'm sure it
is a great service to Ruby community since it will drag many new souls to Ruby & wx
programming.

> I actually need mouse events myself, because I'm porting my Space Monkeys
> game to wxruby. I originally wrote it with GTK, then ported it to FLTK, and
> now to wx. It's going pretty well, but I can also see that the current way we
> hook events is really cumbersome. We'll need to come up with a more rubyesque
> method really soon!

Since you are familiar with GTK, FLTK & wx, how would you compare them in
pro & cons terms?

> 
> Anyway, aside from this new feature, I still think the library code is ready
> for alpha release.

Great news!

I hope I'd be able to help, at least,  with some testing.

Sincerely,
Gour

-- 
Gour
gour@mail.inet.hr
Registered Linux User #278493




From MAILER-DAEMON Sun Jun 29 13:11:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Wfhy-0006W1-Gk
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 13:11:22 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WfhW-0005oQ-6B
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 13:10:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WfhI-0005Nq-J6
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 13:10:42 -0400
Received: from smtp805.mail.sc5.yahoo.com ([66.163.168.184])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WfhA-00052P-Di
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 13:10:32 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	29 Jun 2003 17:10:30 -0000
Subject: Re: [Wxruby-dev] Weekend status
From: Kevin Smith <wxRuby@qualitycode.com>
To: Gour <gour@mail.inet.hr>, wxruby-dev@nongnu.org
In-Reply-To: <20030629070517.GC6377@inet.hr>
References: <1056866080.31946.127.camel@CC1644462-A>
	 <20030629070517.GC6377@inet.hr>
Content-Type: text/plain
Organization: 
Message-Id: <1056906630.31957.190.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 29 Jun 2003 10:10:30 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 17:11:20 -0000

On Sun, 2003-06-29 at 00:05, Gour wrote:
> Since you are familiar with GTK, FLTK & wx, how would you compare them in
> pro & cons terms?

I also updated the rubygarden wiki with this information:
http://www.rubygarden.org/ruby?ComparingGuiToolkits

In a nutshell, I think they are all well-written, well-designed, and
very usable. All three have a nice license. I would be comfortable using
any of the three on a project if told to do so. The same is true of FOX,
which I've explored a little bit.

GTK is a "standard" for Linux, but support for Windows has traditionally
not been as strong. It is probably the most complex, but has the most
documentation available.

FLTK (version 1.1) is very small and probably the easiest to learn. It
has the fewest widgets, and only supports 256 colors easily. The biggest
drawback for me is that it doesn't have automatic layout features--you
have to manually position each widget with xy pixel coordinates. Version
2.0 should fix this, so it will be much nicer when it is available.

wxWindows is the most mature, and uses native widgets (see below). It
probably has the most widgets, and has many non-widget classes (like
wxDocument and wxSocket) which is nice in C++ but I'm not sure if they
will help in ruby. 

For me, native widgets is the most important feature of wxWindows. If I
didn't care about native widgets, I would probably just use FOX instead
of working on wxruby. FOX has great ruby bindings (unlike Tk), and is
already very popular.

Native widgets give users on each platform the experience they are
already accustomed to, which is nice. But more important for me is that
native widgets are accessible to blind users who use screen readers or
braille output devices.

If someone else had already completed wxruby, and I didn't care about
native widgets, then I'm not sure which of the toolkit I would use.

Kevin





From MAILER-DAEMON Sun Jun 29 13:22:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Wfs5-00014U-P3
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 13:21:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Wfql-0008BS-Lg
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 13:20:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Wfpn-0007Js-EF
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 13:19:28 -0400
Received: from smtp806.mail.sc5.yahoo.com ([66.163.168.185])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WfpM-0007FE-D4
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 13:19:00 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	29 Jun 2003 17:18:58 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056907138.31957.200.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 29 Jun 2003 10:18:58 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Wait! Not ready for release
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 17:21:48 -0000

Last night, I realized that the event-handling problem is not that hard
to fix. And I would rather release the alpha with event handling that
will be at least quite close to the real method, rather than forcing
people to change their ruby application code after the alpha.

So I believe I can have new event handling working, and all the samples
updated, by the end of today.

Until now, you set up an event like this:
    evt_menu(self, ID_FILE_QUIT,  "onQuit")

This would be in your MyFrame class, and it says that any menu events
with an ID of ID_FILE_QUIT, should invoke MyFrame#onQuit(event).
Unfortunately, this means that you _must_ create a method for each kind
of event you want to handle, even if the code is trivial. 

My new approach looks like this:
    evt_menu(ID_FILE_QUIT) { onQuit }
or
    evt_menu(ID_FILE_QUIT) { |event| onQuit(event) }

Much simpler and more rubyesque. And if you really don't care about the
event (which is true 90% of the time), you don't have to pass it. 

For now, ID will be required, even though more than half the time it
will be -1. Once this part of the code is being generated by templates,
it will be trivial to have it default to -1.

Kevin





From MAILER-DAEMON Sun Jun 29 15:38:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Whzu-0004IW-3k
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 15:38:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Whzd-0003xI-Er
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 15:37:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Why2-0003II-8O
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 15:36:07 -0400
Received: from h007.c000.snv.cp.net ([209.228.32.71] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Whwd-000220-MA
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 15:34:39 -0400
Received: (cpmta 28140 invoked from network); 29 Jun 2003 12:34:33 -0700
Received: from 68.24.93.250 (HELO curtdev)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 29 Jun 2003 12:34:33 -0700
X-Sent: 29 Jun 2003 19:34:33 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Wait! Not ready for release
Date: Sun, 29 Jun 2003 14:34:55 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEAEJOGPAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <1056907138.31957.200.camel@CC1644462-A>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 19:38:00 -0000

Kevin Smith wrote:
>
> Until now, you set up an event like this:
>     evt_menu(self, ID_FILE_QUIT,  "onQuit")
>
> This would be in your MyFrame class, and it says that any menu events
> with an ID of ID_FILE_QUIT, should invoke MyFrame#onQuit(event).
> Unfortunately, this means that you _must_ create a method for each kind
> of event you want to handle, even if the code is trivial.
>
> My new approach looks like this:
>     evt_menu(ID_FILE_QUIT) { onQuit }
> or
>     evt_menu(ID_FILE_QUIT) { |event| onQuit(event) }
>
> Much simpler and more rubyesque. And if you really don't care about the
> event (which is true 90% of the time), you don't have to pass it.

This is the kind of thing that will make using wxRuby a pleasure --
excellent!

Curt
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003




From MAILER-DAEMON Sun Jun 29 18:15:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WkSE-0003Sv-Bc
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 18:15:26 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WkS7-0003DO-IO
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 18:15:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WkRt-0002vu-Ok
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 18:15:06 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WkRj-0002ZH-3q
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 18:14:55 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	29 Jun 2003 22:14:53 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056924893.31955.228.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 29 Jun 2003 15:14:53 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Ok. Ready for the release (again)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 29 Jun 2003 22:15:24 -0000

I've finished the event handling conversion, and have updated all the
samples. It went very smoothly. As usual, most of the time was spent
updating the samples :-(

Anyway, let me know how and when and where to put up a Linux .so file.
We should probably float a README candidate on this list, so people can
make suggestions for it before it goes live. Are you putting the README
together Curt? 

What version should this be? 0.1? 0.5?

Kevin






From MAILER-DAEMON Sun Jun 29 20:23:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19WmRq-0008Bu-4D
	for mharc-wxruby-dev@gnu.org; Sun, 29 Jun 2003 20:23:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19WmQv-0007wR-Hy
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 20:22:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19WmPU-00067P-Fs
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 20:20:45 -0400
Received: from h007.c000.snv.cp.net ([209.228.32.71] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19WmPT-000656-FX
	for wxruby-dev@nongnu.org; Sun, 29 Jun 2003 20:20:43 -0400
Received: (cpmta 9048 invoked from network); 29 Jun 2003 17:20:36 -0700
Received: from 68.24.93.250 (HELO curtdev)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 29 Jun 2003 17:20:36 -0700
X-Sent: 30 Jun 2003 00:20:36 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Ok. Ready for the release (again)
Date: Sun, 29 Jun 2003 19:21:13 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEEEKCGPAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <1056924893.31955.228.camel@CC1644462-A>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 30 Jun 2003 00:23:07 -0000

Kevin Smith wrote:
>
> I've finished the event handling conversion, and have updated all the
> samples. It went very smoothly. As usual, most of the time was spent
> updating the samples :-(
>
> Anyway, let me know how and when and where to put up a Linux .so file.
> We should probably float a README candidate on this list, so people can
> make suggestions for it before it goes live. Are you putting the README
> together Curt?
>
> What version should this be? 0.1? 0.5?

I can do a README if I have time, but not for at least a couple day. I'm
severely swamped at the moment (I've even cut about to 4 or 5 hours of sleep
just to get more time).

Let's call it 0.1 for now. You should be able to put the files on Savannah
in the download section for wxRuby. I can't tell you how to do it (Laurent
does this for FreeRIDE), but if you poke around as an administrator I'm sure
you can figure it out.

Curt




From MAILER-DAEMON Mon Jun 30 12:43:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19X1gx-0001VN-NR
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 12:39:47 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19X1e5-0000Y2-RW
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:36:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19X1dY-0000N6-1z
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:36:16 -0400
Received: from smtp803.mail.sc5.yahoo.com ([66.163.168.182])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19X1JJ-0003Fn-Qt
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:15:21 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	30 Jun 2003 16:15:20 -0000
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
Content-Type: text/plain
Organization: 
Message-Id: <1056989719.31946.267.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 30 Jun 2003 09:15:19 -0700
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Space Monkeys Wx!
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 30 Jun 2003 16:39:45 -0000

I have ported my Space Monkeys game to wxruby, and it works great! I can
play an entire game (about 1000 moves), with or without a human player,
with no errors. I plan to release it (GPL) this week as a larger wxRuby
sample.

The game has about 5500 lines of code, of which 1300 are tests, and 2100
are not GUI-related, and 700 are (more or less) related to wxRuby. It
also has the older UI code (500 lines for FLTK, 900 for GTK, but I
haven't maintained those so they may or may not work).

You can see a screenshot of the FLTK version here:
http://qualitycode.com/images/monkeys.png

Kevin





From MAILER-DAEMON Mon Jun 30 13:09:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19X29N-0000m8-Cm
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 13:09:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19X24U-0007YK-7V
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 13:04:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19X1zP-00065j-Rp
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:58:52 -0400
Received: from h000.c000.snv.cp.net ([209.228.32.64] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19X1mz-0002a7-Kg
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:46:01 -0400
Received: (cpmta 3311 invoked from network); 30 Jun 2003 09:45:57 -0700
Received: from 63.254.221.195 (HELO curtdev)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 30 Jun 2003 09:45:57 -0700
X-Sent: 30 Jun 2003 16:45:57 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@nongnu.org>
Subject: RE: [Wxruby-dev] Space Monkeys Wx!
Date: Mon, 30 Jun 2003 11:46:08 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEOELKGPAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <1056989719.31946.267.camel@CC1644462-A>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 30 Jun 2003 17:09:07 -0000

Kevin Smith wrote:
>
> I have ported my Space Monkeys game to wxruby, and it works great! I can
> play an entire game (about 1000 moves), with or without a human player,
> with no errors. I plan to release it (GPL) this week as a larger wxRuby
> sample.
>
> The game has about 5500 lines of code, of which 1300 are tests, and 2100
> are not GUI-related, and 700 are (more or less) related to wxRuby. It
> also has the older UI code (500 lines for FLTK, 900 for GTK, but I
> haven't maintained those so they may or may not work).

That's impressive! It makes me want to do our release at 0.5, but we should
stick with 0.1 until we've tested it out on other platforms.

> You can see a screenshot of the FLTK version here:
> http://qualitycode.com/images/monkeys.png
>
> Kevin




From MAILER-DAEMON Mon Jun 30 13:29:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19X1wD-0004gg-2C
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 12:55:33 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19X1VL-0006YT-SI
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:27:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19X1NX-0004Vg-Am
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:19:46 -0400
Received: from smtp804.mail.sc5.yahoo.com ([66.163.168.183])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19X1D3-0001fP-3u
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 12:08:53 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	30 Jun 2003 16:08:48 -0000
Subject: RE: [Wxruby-dev] Ok. Ready for the release (again)
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <INEGJNJOFAMNDPNEABNEEEKCGPAA.curt@hibbs.com>
References: <INEGJNJOFAMNDPNEABNEEEKCGPAA.curt@hibbs.com>
Content-Type: text/plain
Organization: 
Message-Id: <1056989327.31955.259.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 30 Jun 2003 09:08:47 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 30 Jun 2003 16:55:32 -0000

On Sun, 2003-06-29 at 17:21, Curt Hibbs wrote:
> I can do a README if I have time, but not for at least a couple day. I'm
> severely swamped at the moment (I've even cut about to 4 or 5 hours of sleep
> just to get more time).

Ouch. I understand.

I would be happy to pick up more of the project management tasks here
for now, but we just got through a release at work, so I'm a bit burned
out on all that. But I'm recovering now, so I'll see what I can do.

On the positive side, last night I fixed a significant crashing problem
that I introduced in the switch to new event handling model.

Kevin





From MAILER-DAEMON Mon Jun 30 18:57:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19X7TM-0007ZH-Cm
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 18:50:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19X7Q8-0006r4-2Y
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 18:46:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19X7NC-00065O-E6
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 18:43:47 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19X74H-0002BA-Pl
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 18:24:13 -0400
Received: (qmail 31420 invoked from network); 30 Jun 2003 22:15:18 -0000
Received: from global-pat.ul.isotic.org (HELO infoether.com) (rich@4.22.165.4)
  by infoether.com with SMTP; 30 Jun 2003 22:15:18 -0000
Date: Mon, 30 Jun 2003 18:24:16 -0400
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
To: wxruby-dev@nongnu.org
From: Richard Kilmer <rich@infoether.com>
Content-Transfer-Encoding: 7bit
Message-Id: <959FDCEC-AB49-11D7-9E7D-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
cc: Kevin Smith <wxRuby@qualitycode.com>
Subject: [Wxruby-dev] Building on OS X and 1.8...
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 30 Jun 2003 22:50:06 -0000

Kevin,

I am working on compiling on OS X w/ruby 1.8... (yeah!)

1) The makefile generation works on OS X just like for Linux

so...changing line 13 of extconf.rb from:

if /linux/ =~ RUBY_PLATFORM

to

if /linux/ =~ RUBY_PLATFORM || /powerpc-darwin/ =~ RUBY_PLATFORM

builds a proper makefile (very cool!)

2) In your wxpp.rb you do a lot of gsub!(match_string, 
replacement_string) instead of gsub!(regex, replacement_string).  This 
raises warnings on my installation of Ruby 1.8.  It seems that you are 
supposed to only use (regex, string) on 1.8.

What version of Ruby are you using?

3) I get this after those sets of warnings:

****** RubyToCpp error: ()
wxpp.rb:59:in `getRubyToCppConversionMethod': unhandled exception
         from wxpp.rb:227:in `convertVariables'
         from wxpp.rb:222:in `each_index'
         from wxpp.rb:222:in `convertVariables'
         from wxpp.rb:650:in `implementMemberMethods'
         from wxpp.rb:639:in `each'
         from wxpp.rb:639:in `implementMemberMethods'
         from wxpp.rb:949:in `handleImplement'
         from wxpp.rb:939:in `handleImplementClass'
         from wxpp.rb:832:in `command'
         from wxpp.rb:772:in `parse'
         from wxpp.rb:769:in `foreach'
         from wxpp.rb:769:in `parse'
         from wxpp.rb:983
make: *** [button.cpp] Error 1

and it dies.

further investigation (puts parameter.cppClass in 
getRubyToCppConversionMethod)

(wxWindow*
wxWindowID
wxString&
wxPoint&
wxSize&
long
wxValidator&
wxString&
()

That last one yields the error.

-rich




From MAILER-DAEMON Mon Jun 30 19:43:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19X7oR-0003fO-Mw
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 19:11:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19X7ls-0003Ou-1S
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 19:09:16 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19X7MK-0005k4-0f
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 18:42:52 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19X7Dg-0004Cr-UT
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 18:33:57 -0400
Received: (qmail 31494 invoked from network); 30 Jun 2003 22:25:01 -0000
Received: from global-pat.ul.isotic.org (HELO infoether.com) (rich@4.22.165.4)
  by infoether.com with SMTP; 30 Jun 2003 22:25:01 -0000
Date: Mon, 30 Jun 2003 18:33:59 -0400
Mime-Version: 1.0 (Apple Message framework v552)
Content-Type: text/plain; charset=US-ASCII; format=flowed
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
Message-Id: <F161DC4E-AB4A-11D7-9E7D-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
Subject: [Wxruby-dev] what happens to ruby threads
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 30 Jun 2003 23:11:53 -0000

then you enter:

a = RbApp.new
a.main_loop()

Do all other Ruby threads freeze?

In other words...if you have this (in minimal.rb):

<snip all the code for minimal.rb>

Thread.new do
   while true
     sleep 5
     puts "hello"
   end
end

a = RbApp.new
a.main_loop()

______

Will you ever see the hello(s)?




From MAILER-DAEMON Mon Jun 30 21:05:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19X9Zg-0003hy-HW
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 21:04:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19X9ZB-00035l-2b	for wxruby-dev@mail.freesoftware.fsf.org;
	Mon, 30 Jun 2003 21:04:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19X9YC-0002ol-71	for wxruby-dev@mail.freesoftware.fsf.org;
	Mon, 30 Jun 2003 21:03:17 -0400
Received: from h001.c000.snv.cp.net ([209.228.32.65] helo=c000.snv.cp.net)
	by monty-python.gnu.org with smtp (Exim 4.20)	id 19X9VR-0001TR-4w
	for wxruby-dev@mail.freesoftware.fsf.org;
	Mon, 30 Jun 2003 21:00:25 -0400
Received: (cpmta 9023 invoked from network); 30 Jun 2003 18:00:22 -0700
Received: from 63.254.221.195 (HELO curtdev)
  by smtp.hibbs.com (209.228.32.65) with SMTP; 30 Jun 2003 18:00:22 -0700
X-Sent: 1 Jul 2003 01:00:22 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <lyle@users.sourceforge.net>
Date: Mon, 30 Jun 2003 20:01:03 -0500
Message-ID: <INEGJNJOFAMNDPNEABNEGEMKGPAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <3F00DA09.1080804@users.sourceforge.net>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
cc: wxRuby <wxruby-dev@mail.freesoftware.fsf.org>
Subject: [Wxruby-dev] RE: wxRuby License
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 01 Jul 2003 01:04:47 -0000

Lyle Johnson wrote:
>
> Curt Hibbs wrote:
>
> > Well, haven't really discussed it, but I have always assumed we
> would do the
> > same thing we did with FreeRIDE -- use the Ruby license. So, it
> can be used
> > commercially.
>
> Just a side note: since wxRuby depends implicitly on the wxWindows
> libraries,  you may need to see how (or if) wxRuby is affected by the
> wxWindows license (http://www.wxwindows.org/newlicen.htm).
>

Thanks Lyle. It looks like we should probably use the wxWindows license as
it appears to be flexible enough to satify everyone.

Curt




From MAILER-DAEMON Mon Jun 30 22:17:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19XAhI-0008GZ-Uo
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 22:16:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19XAh0-0007cb-U0
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:16:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XAgZ-0006U9-Vk
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:16:01 -0400
Received: from smtp808.mail.sc5.yahoo.com ([66.163.168.187])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19XAgI-0005yW-Vt
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:15:43 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	1 Jul 2003 02:15:41 -0000
Subject: Re: [Wxruby-dev] RE: wxRuby License
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <INEGJNJOFAMNDPNEABNEGEMKGPAA.curt@hibbs.com>
References: <INEGJNJOFAMNDPNEABNEGEMKGPAA.curt@hibbs.com>
Content-Type: text/plain
Organization: 
Message-Id: <1057025740.10200.28.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 30 Jun 2003 19:15:40 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 01 Jul 2003 02:16:43 -0000

On Mon, 2003-06-30 at 18:01, Curt Hibbs wrote:
> Thanks Lyle. It looks like we should probably use the wxWindows license as
> it appears to be flexible enough to satify everyone.

Sounds good to me.

Kevin





From MAILER-DAEMON Mon Jun 30 22:23:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19XAmh-000711-Bq
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 22:22:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19XAlo-0006Gd-NY
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:21:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XAlS-0005ty-Hg
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:21:03 -0400
Received: from smtp803.mail.sc5.yahoo.com ([66.163.168.182])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19XAl6-0005fi-SE
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:20:40 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	1 Jul 2003 02:20:40 -0000
Subject: Re: [Wxruby-dev] what happens to ruby threads
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <F161DC4E-AB4A-11D7-9E7D-000A95765742@infoether.com>
References: <F161DC4E-AB4A-11D7-9E7D-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1057026039.10201.31.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 30 Jun 2003 19:20:39 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 01 Jul 2003 02:22:17 -0000

On Mon, 2003-06-30 at 15:33, Richard Kilmer wrote:
> Do all other Ruby threads freeze?

Good question.

> Thread.new do
>    while true
>      sleep 5
>      puts "hello"
>    end
> end
> 
> a = RbApp.new
> a.main_loop()

And the good news is that the hellos keep popping up. I haven't looked
into threading at all, but I suspect Park may be using wxWindows' OnIdle
to grab some time for ruby threads.

Beyond this simple test working, I have no idea what to expect.

Kevin





From MAILER-DAEMON Mon Jun 30 22:40:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19XB3D-00036u-Tu
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 22:39:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19XB32-0002mv-9g
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:39:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XB2u-0002Un-Al
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:39:05 -0400
Received: from smtp805.mail.sc5.yahoo.com ([66.163.168.184])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19XB2l-0002GE-PJ
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 22:38:55 -0400
Received: from adsl-67-125-87-222.dsl.snfc21.pacbell.net (HELO
	?192.168.254.2?) (kevins527@sbcglobal.net@67.125.87.222 with plain)
	by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP;
	1 Jul 2003 02:38:54 -0000
Subject: Re: [Wxruby-dev] Building on OS X and 1.8...
From: Kevin Smith <wxRuby@qualitycode.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <959FDCEC-AB49-11D7-9E7D-000A95765742@infoether.com>
References: <959FDCEC-AB49-11D7-9E7D-000A95765742@infoether.com>
Content-Type: text/plain
Organization: 
Message-Id: <1057027133.10200.51.camel@CC1644462-A>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 30 Jun 2003 19:38:54 -0700
Content-Transfer-Encoding: 7bit
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 01 Jul 2003 02:39:22 -0000

On Mon, 2003-06-30 at 15:24, Richard Kilmer wrote:
> if /linux/ =~ RUBY_PLATFORM || /powerpc-darwin/ =~ RUBY_PLATFORM

Cool. Do you want me to make that change and check it in on my end?

> 2) In your wxpp.rb you do a lot of gsub!(match_string, 
> replacement_string) instead of gsub!(regex, replacement_string).  This 
> raises warnings on my installation of Ruby 1.8.  It seems that you are 
> supposed to only use (regex, string) on 1.8.
> 
> What version of Ruby are you using?

Interesting. I'm still using Ruby 1.6.8 (the current stable version).
Bummer--I much prefer the simplicity and safety of replacing one string
with another. Oh well, gotta go with the crowd. I'll take care of it.

> 3) I get this after those sets of warnings:
> 
> ****** RubyToCpp error: ()
> wxpp.rb:59:in `getRubyToCppConversionMethod': unhandled exception
>          from wxpp.rb:227:in `convertVariables'
>          from wxpp.rb:222:in `each_index'
>          from wxpp.rb:222:in `convertVariables'
>          from wxpp.rb:650:in `implementMemberMethods'
>          from wxpp.rb:639:in `each'
>          from wxpp.rb:639:in `implementMemberMethods'
>          from wxpp.rb:949:in `handleImplement'
>          from wxpp.rb:939:in `handleImplementClass'
>          from wxpp.rb:832:in `command'
>          from wxpp.rb:772:in `parse'
>          from wxpp.rb:769:in `foreach'
>          from wxpp.rb:769:in `parse'
>          from wxpp.rb:983
> make: *** [button.cpp] Error 1
> 
> and it dies.
> 
> further investigation (puts parameter.cppClass in 
> getRubyToCppConversionMethod)
> 
> (wxWindow*
> wxWindowID
> wxString&
> wxPoint&
> wxSize&
> long
> wxValidator&
> wxString&
> ()
> 
> That last one yields the error.

Very interesting. Sounds like it might be a Ruby 1.8 thing. I suspect
the culprit is line 170:
        parmListString.gsub!('[()]', '')
This should have converted '()' into '', and it looks like it didn't.
AH, because it's a regex hidden inside a string! Oy. I've checked in a
change to:
        parmListString.gsub!(/[()]/, '')

I looked at all the other gsubs, and they all appear to be correct.
They'll still give warnings in 1.8, but they should still do what
they're supposed to.

Thanks!

Kevin





From MAILER-DAEMON Mon Jun 30 23:25:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19XBlq-0001rG-A2
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 23:25:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19XBli-0001VJ-U2
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 23:25:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XBlb-0001B6-9e
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 23:25:18 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19XBlW-00015a-C0
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 23:25:10 -0400
Received: (qmail 537 invoked from network); 1 Jul 2003 03:16:13 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 1 Jul 2003 03:16:13 -0000
Date: Mon, 30 Jun 2003 23:25:13 -0400
Subject: Re: [Wxruby-dev] Building on OS X and 1.8...
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
Content-Transfer-Encoding: 7bit
In-Reply-To: <1057027133.10200.51.camel@CC1644462-A>
Message-Id: <A0613C72-AB73-11D7-9EA4-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 01 Jul 2003 03:25:28 -0000

Please check in on your side.  I don't have commit access to wxruby yet 
:-)

-rich

On Monday, June 30, 2003, at 10:38  PM, Kevin Smith wrote:

>
> Cool. Do you want me to make that change and check it in on my end?




From MAILER-DAEMON Mon Jun 30 23:52:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19XCBR-0005hl-UD
	for mharc-wxruby-dev@gnu.org; Mon, 30 Jun 2003 23:51:57 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19XCBK-0005Oi-KJ
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 23:51:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XCBB-0005Ia-MB
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 23:51:45 -0400
Received: from dsl092-167-079.wdc1.dsl.speakeasy.net ([66.92.167.79]
	helo=infoether.com)	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19XCAT-0004sx-PY
	for wxruby-dev@nongnu.org; Mon, 30 Jun 2003 23:50:57 -0400
Received: (qmail 782 invoked from network); 1 Jul 2003 03:42:01 -0000
Received: from unknown (HELO infoether.com) (rich@192.168.1.2)
  by infoether.com with SMTP; 1 Jul 2003 03:42:01 -0000
Date: Mon, 30 Jun 2003 23:51:01 -0400
Subject: Re: [Wxruby-dev] Building on OS X and 1.8...
Content-Type: multipart/mixed; boundary=Apple-Mail-3--732633813
Mime-Version: 1.0 (Apple Message framework v552)
From: Richard Kilmer <rich@infoether.com>
To: wxruby-dev@nongnu.org
In-Reply-To: <1057027133.10200.51.camel@CC1644462-A>
Message-Id: <3B128A09-AB77-11D7-9EA4-000A95765742@infoether.com>
X-Mailer: Apple Mail (2.552)
X-BeenThere: wxruby-dev@nongnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: wxruby-dev@nongnu.org
List-Id: <wxruby-dev.nongnu.org>
List-Help: <mailto:wxruby-dev-request@nongnu.org?subject=help>
List-Post: <mailto:wxruby-dev@nongnu.org>
List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/wxruby-dev>
List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@nongnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 01 Jul 2003 03:51:53 -0000


--Apple-Mail-3--732633813
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	delsp=yes;
	charset=US-ASCII;
	format=flowed

now when I build...

In file included from button.cpp:7:
button.h:77: `wxToggleButton' was not declared in this scope
button.h:77: `pCpp' was not declared in this scope
button.h:77: invalid data member initialization
button.h:77: (use `=' to initialize static data members)
button.h:77: variable or field `validateCppObject' declared void
button.cpp: In static member function `static VALUE
    WxToggleButton::release(long unsigned int)':
button.cpp:479: `wxToggleButton' undeclared (first use this function)
button.cpp:479: (Each undeclared identifier is reported only once for  
each
    function it appears in.)
button.cpp:479: `pCpp' undeclared (first use this function)
button.cpp:479: template argument 1 is invalid
button.cpp:479: no matching function for call to `GetCpp(VALUE&)'
button.cpp: In static member function `static VALUE
    WxToggleButton::wrapNew(int, VALUE*, long unsigned int)':
button.cpp:488: template argument 1 is invalid
button.cpp:488: no matching function for call to `GetCpp(VALUE&)'
button.cpp:489: `WxToggleButton::validateCppObject' cannot be used as a
    function
button.cpp: At global scope:
button.cpp:495: conflicting types for `void  
WxToggleButton::validateCppObject'
button.h:77: previous declaration as `int  
WxToggleButton::validateCppObject'
button.cpp:495: variable `void WxToggleButton::validateCppObject' has
    initializer but incomplete type
button.cpp:495: syntax error before `{' token
button.cpp: In static member function `static bool
    WxToggleButton::constructor0(int, VALUE*, long unsigned int)':
button.cpp:548: template argument 1 is invalid
button.cpp:548: no matching function for call to `GetCpp(VALUE&)'
button.cpp:549: `cppResult' undeclared (first use this function)
button.cpp:549: parse error before `(' token
button.cpp: In static member function `static VALUE
    WxToggleButton::GetValue(int, VALUE*, long unsigned int)':
button.cpp:560: template argument 1 is invalid
button.cpp:560: no matching function for call to `GetCpp(VALUE&)'
button.cpp: In static member function `static VALUE
    WxToggleButton::SetValue(int, VALUE*, long unsigned int)':
button.cpp:574: template argument 1 is invalid
button.cpp:574: no matching function for call to `GetCpp(VALUE&)'
button.cpp: In constructor
     
`WxToggleButton::ZAutoDefineWxToggleButton::ZAutoDefineWxToggleButton()' 
:
button.cpp:595: parse error before `;' token
make: *** [button.o] Error 1

button.cpp and .h are attached.

-rich

--Apple-Mail-3--732633813
Content-Disposition: attachment;
	filename=button.h
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	x-unix-mode=0644;
	name="button.h"

/*

    This file was auto-generated. Do not edit this file.

*/
#ifndef WXRUBY_BUTTON_H
#define WXRUBY_BUTTON_H


#include "wx/tglbtn.h"

class WxButton
{
public:
//-----------BEGIN AUTO DECLARE-----------
	static void DefineClass();

	static VALUE alloc(VALUE self);
	static VALUE release(VALUE self);
	static VALUE wrapNew(int argc, VALUE *argv, VALUE self);
	static VALUE init(int argc, VALUE *argv, VALUE self);
	static void validateCppObject(wxButton* pCpp);
	static VALUE init0(wxButton* cppObject);
	static bool constructor0(int argc, VALUE *argv, VALUE self);


	static VALUE GetLabel(int argc, VALUE* argv, VALUE self);
	static VALUE GetDefaultSize(int argc, VALUE* argv, VALUE self);
	static VALUE SetDefault(int argc, VALUE* argv, VALUE self);
	static VALUE SetLabel(int argc, VALUE* argv, VALUE self);

	static VALUE rubyClass;
	VALUE rubyObject;

//-----------END AUTO DECLARE-----------
};

class WxBitmapButton
{
public:
//-----------BEGIN AUTO DECLARE-----------
	static void DefineClass();

	static VALUE alloc(VALUE self);
	static VALUE release(VALUE self);
	static VALUE wrapNew(int argc, VALUE *argv, VALUE self);
	static VALUE init(int argc, VALUE *argv, VALUE self);
	static void validateCppObject(wxBitmapButton* pCpp);
	static bool constructor0(int argc, VALUE *argv, VALUE self);


	static VALUE GetBitmapDisabled(int argc, VALUE* argv, VALUE self);
	static VALUE GetBitmapFocus(int argc, VALUE* argv, VALUE self);
	static VALUE GetBitmapLabel(int argc, VALUE* argv, VALUE self);
	static VALUE GetBitmapSelected(int argc, VALUE* argv, VALUE self);
	static VALUE SetBitmapDisabled(int argc, VALUE* argv, VALUE self);
	static VALUE SetBitmapFocus(int argc, VALUE* argv, VALUE self);
	static VALUE SetBitmapLabel(int argc, VALUE* argv, VALUE self);
	static VALUE SetBitmapSelected(int argc, VALUE* argv, VALUE self);

	static VALUE rubyClass;
	VALUE rubyObject;

//-----------END AUTO DECLARE-----------
};

class WxToggleButton
{
public:
//-----------BEGIN AUTO DECLARE-----------
	static void DefineClass();

	static VALUE alloc(VALUE self);
	static VALUE release(VALUE self);
	static VALUE wrapNew(int argc, VALUE *argv, VALUE self);
	static VALUE init(int argc, VALUE *argv, VALUE self);
	static void validateCppObject(wxToggleButton* pCpp);
	static bool constructor0(int argc, VALUE *argv, VALUE self);


	static VALUE GetValue(int argc, VALUE* argv, VALUE self);
	static VALUE SetValue(int argc, VALUE* argv, VALUE self);

	static VALUE rubyClass;
	VALUE rubyObject;

//-----------END AUTO DECLARE-----------
};



#endif

--Apple-Mail-3--732633813
Content-Disposition: attachment;
	filename=button.cpp
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	x-unix-mode=0644;
	name="button.cpp"

/*

    This file was auto-generated. Do not edit this file.

*/
#include "wx.h"
#include "button.h"
#include "control.h"

#include "size.h"
#include "bitmap.h"
#include "window.h"


//*****************************************************************
void WxButton::DefineClass()
{
//-----------BEGIN AUTO DEFINE METHODS-----------
	if(rubyClass)
		return;
	WxControl::DefineClass();
	rubyClass = rb_define_class_under(GetWxModule(),"Button", WxControl::rubyClass);
	rb_define_alloc_func(rubyClass,alloc);
	rb_define_singleton_method(rubyClass, "new", VALUEFUNC(wrapNew), -1);
	rb_define_method(rubyClass, "initialize", VALUEFUNC(init), -1);


	rb_define_method(rubyClass, "get_label", VALUEFUNC(GetLabel), -1);
	rb_define_method(rubyClass, "get_default_size", VALUEFUNC(GetDefaultSize), -1);
	rb_define_method(rubyClass, "set_default", VALUEFUNC(SetDefault), -1);
	rb_define_method(rubyClass, "set_label", VALUEFUNC(SetLabel), -1);

//-----------END AUTO DEFINE METHODS-----------
}
//-----------BEGIN AUTO IMPLEMENT METHODS-----------
VALUE WxButton::alloc(VALUE self)
{
	return Data_Wrap_Struct(self, 0, 0, 0);
}

VALUE WxButton::release(VALUE self)
{
    UnMapRubyObject(self);
	wxButton* pCpp = GetCpp<wxButton>(self);
    Data_Wrap_Struct(self, 0, 0, 0);
    delete pCpp;
}

VALUE WxButton::wrapNew(int argc, VALUE *argv, VALUE cls)
{
    VALUE self = rb_funcall2(cls, rb_intern("allocate"), 0, 0);
    rb_obj_call_init(self, argc, argv);
	wxButton* pCpp = GetCpp<wxButton>(self);
    validateCppObject(pCpp);

    return self;
}

void WxButton::validateCppObject(wxButton* pCpp)
{
    if(!pCpp)
        rb_fatal("A subclass of WxButton defined initialize that did not invoke super");
}

VALUE WxButton::init0(wxButton* cppObject)
{
    if(cppObject==NULL) return Qnil;
    VALUE self = Data_Wrap_Struct(rubyClass, 0, 0, 0);
    DATA_PTR(self) = cppObject;
    return self;
}

VALUE WxButton::init(int argc, VALUE* argv, VALUE self)
{
	if(constructor0(argc, argv, self))
		return self;
	rb_fatal("No matching constructor found");
	return Qnil;
}

bool WxButton::constructor0(int argc, VALUE* argv, VALUE self)
{
	if(argc < 3 || argc > 8)
		return false;

	VALUE rubyParm0 = Qnil;
	VALUE rubyParm1 = Qnil;
	VALUE rubyParm2 = Qnil;
	VALUE rubyParm3 = Qnil;
	VALUE rubyParm4 = Qnil;
	VALUE rubyParm5 = Qnil;
	VALUE rubyParm6 = Qnil;
	VALUE rubyParm7 = Qnil;
	int got=rb_scan_args(argc, argv, "35", &rubyParm0, &rubyParm1, &rubyParm2, &rubyParm3, &rubyParm4, &rubyParm5, &rubyParm6, &rubyParm7);

    wxWindow* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxWindow>(rubyParm0);
    wxWindowID cppParm1;
	if(got > 1)
		cppParm1 = NUM2INT(rubyParm1);
    wxString cppParm2;
	if(got > 2)
		cppParm2 = STR2CSTR(rubyParm2);
    wxPoint* cppParm3=(wxPoint*)&wxDefaultPosition;
	if(got > 3)
		cppParm3 = GetCpp<wxPoint>(rubyParm3);
    wxSize* cppParm4=(wxSize*)&wxDefaultSize;
	if(got > 4)
		cppParm4 = GetCpp<wxSize>(rubyParm4);
    long cppParm5=0;
	if(got > 5)
		cppParm5 = NUM2LONG(rubyParm5);
    wxValidator* cppParm6=(wxValidator*)&wxDefaultValidator;
	if(got > 6)
		cppParm6 = GetCpp<wxValidator>(rubyParm6);
    wxString cppParm7="button";
	if(got > 7)
		cppParm7 = STR2CSTR(rubyParm7);

	wxButton* pCpp = GetCpp<wxButton>(self);
    wxButton* cppResult = new wxButton(cppParm0, cppParm1, cppParm2, *cppParm3, *cppParm4, cppParm5, *cppParm6, cppParm7);
	VALUE vdata = rb_hash_new();
	rb_hash_aset(vdata,rb_str_new2("self"),self);
	cppResult->SetClientData((void*)vdata);
	DATA_PTR(self) = cppResult;
	MapRubyObjectToCppObject(self, cppResult);
	return true;
}

VALUE WxButton::GetLabel(int argc, VALUE* argv, VALUE self)
{
	wxButton* pCpp = GetCpp<wxButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    wxString cppResult = pCpp->GetLabel();

	VALUE rubyResult = rb_str_new2(cppResult);
	return rubyResult;
}

VALUE WxButton::GetDefaultSize(int argc, VALUE* argv, VALUE self)
{
	wxButton* pCpp = GetCpp<wxButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    wxSize cppResult = pCpp->GetDefaultSize();

	return WxSize::init0(cppResult);
}

VALUE WxButton::SetDefault(int argc, VALUE* argv, VALUE self)
{
	wxButton* pCpp = GetCpp<wxButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    pCpp->SetDefault();

	return Qnil;
}

VALUE WxButton::SetLabel(int argc, VALUE* argv, VALUE self)
{
	wxButton* pCpp = GetCpp<wxButton>(self);
    validateCppObject(pCpp);

	VALUE rubyParm0 = Qnil;
	int got=rb_scan_args(argc, argv, "10", &rubyParm0);

    wxString cppParm0;
	if(got > 0)
		cppParm0 = STR2CSTR(rubyParm0);

    pCpp->SetLabel(cppParm0);

	return Qnil;
}

VALUE WxButton::rubyClass;

class ZAutoDefineWxButton
{
public:
   ZAutoDefineWxButton()
    {
       WxButton::DefineClass();
    }
};
static ZAutoDefineWxButton autoWxButton;

//-----------END AUTO IMPLEMENT METHODS-----------



//*****************************************************************
void WxBitmapButton::DefineClass()
{
//-----------BEGIN AUTO DEFINE METHODS-----------
	if(rubyClass)
		return;
	WxButton::DefineClass();
	rubyClass = rb_define_class_under(GetWxModule(),"BitmapButton", WxButton::rubyClass);
	rb_define_alloc_func(rubyClass,alloc);
	rb_define_singleton_method(rubyClass, "new", VALUEFUNC(wrapNew), -1);
	rb_define_method(rubyClass, "initialize", VALUEFUNC(init), -1);


	rb_define_method(rubyClass, "get_bitmap_disabled", VALUEFUNC(GetBitmapDisabled), -1);
	rb_define_method(rubyClass, "get_bitmap_focus", VALUEFUNC(GetBitmapFocus), -1);
	rb_define_method(rubyClass, "get_bitmap_label", VALUEFUNC(GetBitmapLabel), -1);
	rb_define_method(rubyClass, "get_bitmap_selected", VALUEFUNC(GetBitmapSelected), -1);
	rb_define_method(rubyClass, "set_bitmap_disabled", VALUEFUNC(SetBitmapDisabled), -1);
	rb_define_method(rubyClass, "set_bitmap_focus", VALUEFUNC(SetBitmapFocus), -1);
	rb_define_method(rubyClass, "set_bitmap_label", VALUEFUNC(SetBitmapLabel), -1);
	rb_define_method(rubyClass, "set_bitmap_selected", VALUEFUNC(SetBitmapSelected), -1);

//-----------END AUTO DEFINE METHODS-----------
}
//-----------BEGIN AUTO IMPLEMENT METHODS-----------
VALUE WxBitmapButton::alloc(VALUE self)
{
	return Data_Wrap_Struct(self, 0, 0, 0);
}

VALUE WxBitmapButton::release(VALUE self)
{
    UnMapRubyObject(self);
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    Data_Wrap_Struct(self, 0, 0, 0);
    delete pCpp;
}

VALUE WxBitmapButton::wrapNew(int argc, VALUE *argv, VALUE cls)
{
    VALUE self = rb_funcall2(cls, rb_intern("allocate"), 0, 0);
    rb_obj_call_init(self, argc, argv);
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

    return self;
}

void WxBitmapButton::validateCppObject(wxBitmapButton* pCpp)
{
    if(!pCpp)
        rb_fatal("A subclass of WxBitmapButton defined initialize that did not invoke super");
}

VALUE WxBitmapButton::init(int argc, VALUE* argv, VALUE self)
{
	if(constructor0(argc, argv, self))
		return self;
	rb_fatal("No matching constructor found");
	return Qnil;
}

bool WxBitmapButton::constructor0(int argc, VALUE* argv, VALUE self)
{
	if(argc < 3 || argc > 8)
		return false;

	VALUE rubyParm0 = Qnil;
	VALUE rubyParm1 = Qnil;
	VALUE rubyParm2 = Qnil;
	VALUE rubyParm3 = Qnil;
	VALUE rubyParm4 = Qnil;
	VALUE rubyParm5 = Qnil;
	VALUE rubyParm6 = Qnil;
	VALUE rubyParm7 = Qnil;
	int got=rb_scan_args(argc, argv, "35", &rubyParm0, &rubyParm1, &rubyParm2, &rubyParm3, &rubyParm4, &rubyParm5, &rubyParm6, &rubyParm7);

    wxWindow* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxWindow>(rubyParm0);
    wxWindowID cppParm1;
	if(got > 1)
		cppParm1 = NUM2INT(rubyParm1);
    wxBitmap* cppParm2=0;
	if(got > 2)
		cppParm2 = GetCpp<wxBitmap>(rubyParm2);
    wxPoint* cppParm3=(wxPoint*)&wxDefaultPosition;
	if(got > 3)
		cppParm3 = GetCpp<wxPoint>(rubyParm3);
    wxSize* cppParm4=(wxSize*)&wxDefaultSize;
	if(got > 4)
		cppParm4 = GetCpp<wxSize>(rubyParm4);
    long cppParm5=wxBU_AUTODRAW;
	if(got > 5)
		cppParm5 = NUM2LONG(rubyParm5);
    wxValidator* cppParm6=(wxValidator*)&wxDefaultValidator;
	if(got > 6)
		cppParm6 = GetCpp<wxValidator>(rubyParm6);
    wxString cppParm7="button";
	if(got > 7)
		cppParm7 = STR2CSTR(rubyParm7);

	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    wxBitmapButton* cppResult = new wxBitmapButton(cppParm0, cppParm1, *cppParm2, *cppParm3, *cppParm4, cppParm5, *cppParm6, cppParm7);
	VALUE vdata = rb_hash_new();
	rb_hash_aset(vdata,rb_str_new2("self"),self);
	cppResult->SetClientData((void*)vdata);
	DATA_PTR(self) = cppResult;
	MapRubyObjectToCppObject(self, cppResult);
	return true;
}

VALUE WxBitmapButton::GetBitmapDisabled(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    wxBitmap cppResult = pCpp->GetBitmapDisabled();

	return WxBitmap::init0(cppResult);
}

VALUE WxBitmapButton::GetBitmapFocus(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    wxBitmap cppResult = pCpp->GetBitmapFocus();

	return WxBitmap::init0(cppResult);
}

VALUE WxBitmapButton::GetBitmapLabel(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    wxBitmap cppResult = pCpp->GetBitmapLabel();

	return WxBitmap::init0(cppResult);
}

VALUE WxBitmapButton::GetBitmapSelected(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    wxBitmap cppResult = pCpp->GetBitmapSelected();

	return WxBitmap::init0(cppResult);
}

VALUE WxBitmapButton::SetBitmapDisabled(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	VALUE rubyParm0 = Qnil;
	int got=rb_scan_args(argc, argv, "10", &rubyParm0);

    wxBitmap* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxBitmap>(rubyParm0);

    pCpp->SetBitmapDisabled(*cppParm0);

	return Qnil;
}

VALUE WxBitmapButton::SetBitmapFocus(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	VALUE rubyParm0 = Qnil;
	int got=rb_scan_args(argc, argv, "10", &rubyParm0);

    wxBitmap* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxBitmap>(rubyParm0);

    pCpp->SetBitmapFocus(*cppParm0);

	return Qnil;
}

VALUE WxBitmapButton::SetBitmapLabel(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	VALUE rubyParm0 = Qnil;
	int got=rb_scan_args(argc, argv, "10", &rubyParm0);

    wxBitmap* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxBitmap>(rubyParm0);

    pCpp->SetBitmapLabel(*cppParm0);

	return Qnil;
}

VALUE WxBitmapButton::SetBitmapSelected(int argc, VALUE* argv, VALUE self)
{
	wxBitmapButton* pCpp = GetCpp<wxBitmapButton>(self);
    validateCppObject(pCpp);

	VALUE rubyParm0 = Qnil;
	int got=rb_scan_args(argc, argv, "10", &rubyParm0);

    wxBitmap* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxBitmap>(rubyParm0);

    pCpp->SetBitmapSelected(*cppParm0);

	return Qnil;
}

VALUE WxBitmapButton::rubyClass;

class ZAutoDefineWxBitmapButton
{
public:
   ZAutoDefineWxBitmapButton()
    {
       WxBitmapButton::DefineClass();
    }
};
static ZAutoDefineWxBitmapButton autoWxBitmapButton;

//-----------END AUTO IMPLEMENT METHODS-----------



//*****************************************************************
void WxToggleButton::DefineClass()
{
//-----------BEGIN AUTO DEFINE METHODS-----------
	if(rubyClass)
		return;
	WxButton::DefineClass();
	rubyClass = rb_define_class_under(GetWxModule(),"ToggleButton", WxButton::rubyClass);
	rb_define_alloc_func(rubyClass,alloc);
	rb_define_singleton_method(rubyClass, "new", VALUEFUNC(wrapNew), -1);
	rb_define_method(rubyClass, "initialize", VALUEFUNC(init), -1);


	rb_define_method(rubyClass, "get_value", VALUEFUNC(GetValue), -1);
	rb_define_method(rubyClass, "set_value", VALUEFUNC(SetValue), -1);

//-----------END AUTO DEFINE METHODS-----------
}
//-----------BEGIN AUTO IMPLEMENT METHODS-----------
VALUE WxToggleButton::alloc(VALUE self)
{
	return Data_Wrap_Struct(self, 0, 0, 0);
}

VALUE WxToggleButton::release(VALUE self)
{
    UnMapRubyObject(self);
	wxToggleButton* pCpp = GetCpp<wxToggleButton>(self);
    Data_Wrap_Struct(self, 0, 0, 0);
    delete pCpp;
}

VALUE WxToggleButton::wrapNew(int argc, VALUE *argv, VALUE cls)
{
    VALUE self = rb_funcall2(cls, rb_intern("allocate"), 0, 0);
    rb_obj_call_init(self, argc, argv);
	wxToggleButton* pCpp = GetCpp<wxToggleButton>(self);
    validateCppObject(pCpp);

    return self;
}

void WxToggleButton::validateCppObject(wxToggleButton* pCpp)
{
    if(!pCpp)
        rb_fatal("A subclass of WxToggleButton defined initialize that did not invoke super");
}

VALUE WxToggleButton::init(int argc, VALUE* argv, VALUE self)
{
	if(constructor0(argc, argv, self))
		return self;
	rb_fatal("No matching constructor found");
	return Qnil;
}

bool WxToggleButton::constructor0(int argc, VALUE* argv, VALUE self)
{
	if(argc < 3 || argc > 8)
		return false;

	VALUE rubyParm0 = Qnil;
	VALUE rubyParm1 = Qnil;
	VALUE rubyParm2 = Qnil;
	VALUE rubyParm3 = Qnil;
	VALUE rubyParm4 = Qnil;
	VALUE rubyParm5 = Qnil;
	VALUE rubyParm6 = Qnil;
	VALUE rubyParm7 = Qnil;
	int got=rb_scan_args(argc, argv, "35", &rubyParm0, &rubyParm1, &rubyParm2, &rubyParm3, &rubyParm4, &rubyParm5, &rubyParm6, &rubyParm7);

    wxWindow* cppParm0=0;
	if(got > 0)
		cppParm0 = GetCpp<wxWindow>(rubyParm0);
    wxWindowID cppParm1;
	if(got > 1)
		cppParm1 = NUM2INT(rubyParm1);
    wxString cppParm2;
	if(got > 2)
		cppParm2 = STR2CSTR(rubyParm2);
    wxPoint* cppParm3=(wxPoint*)&wxDefaultPosition;
	if(got > 3)
		cppParm3 = GetCpp<wxPoint>(rubyParm3);
    wxSize* cppParm4=(wxSize*)&wxDefaultSize;
	if(got > 4)
		cppParm4 = GetCpp<wxSize>(rubyParm4);
    long cppParm5=0;
	if(got > 5)
		cppParm5 = NUM2LONG(rubyParm5);
    wxValidator* cppParm6=(wxValidator*)&wxDefaultValidator;
	if(got > 6)
		cppParm6 = GetCpp<wxValidator>(rubyParm6);
    wxString cppParm7="checkBox";
	if(got > 7)
		cppParm7 = STR2CSTR(rubyParm7);

	wxToggleButton* pCpp = GetCpp<wxToggleButton>(self);
    wxToggleButton* cppResult = new wxToggleButton(cppParm0, cppParm1, cppParm2, *cppParm3, *cppParm4, cppParm5, *cppParm6, cppParm7);
	VALUE vdata = rb_hash_new();
	rb_hash_aset(vdata,rb_str_new2("self"),self);
	cppResult->SetClientData((void*)vdata);
	DATA_PTR(self) = cppResult;
	MapRubyObjectToCppObject(self, cppResult);
	return true;
}

VALUE WxToggleButton::GetValue(int argc, VALUE* argv, VALUE self)
{
	wxToggleButton* pCpp = GetCpp<wxToggleButton>(self);
    validateCppObject(pCpp);

	int got=rb_scan_args(argc, argv, "00");


    bool cppResult = pCpp->GetValue();

	VALUE rubyResult = CppBoolToRubyBool(cppResult);
	return rubyResult;
}

VALUE WxToggleButton::SetValue(int argc, VALUE* argv, VALUE self)
{
	wxToggleButton* pCpp = GetCpp<wxToggleButton>(self);
    validateCppObject(pCpp);

	VALUE rubyParm0 = Qnil;
	int got=rb_scan_args(argc, argv, "10", &rubyParm0);

    bool cppParm0=0;
	if(got > 0)
		cppParm0 = IsTrue(rubyParm0);

    pCpp->SetValue(cppParm0);

	return Qnil;
}

VALUE WxToggleButton::rubyClass;

class ZAutoDefineWxToggleButton
{
public:
   ZAutoDefineWxToggleButton()
    {
       WxToggleButton::DefineClass();
    }
};
static ZAutoDefineWxToggleButton autoWxToggleButton;

//-----------END AUTO IMPLEMENT METHODS-----------


--Apple-Mail-3--732633813
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed




On Monday, June 30, 2003, at 10:38  PM, Kevin Smith wrote:

> I've checked in a
> change to:
>         parmListString.gsub!(/[()]/, '')
>
> I looked at all the other gsubs, and they all appear to be correct.
> They'll still give warnings in 1.8, but they should still do what
> they're supposed to.

--Apple-Mail-3--732633813--




