From curt@hibbs.com Sun Sep 01 07:13:13 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lSfI-0000vd-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 07:13:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lSfF-0000ub-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 07:13:11 -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.10)
	id 17lSfE-0000u2-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 07:13:08 -0400
Received: (cpmta 16006 invoked from network); 1 Sep 2002 04:13:02 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.65) with SMTP; 1 Sep 2002 04:13:02 -0700
X-Sent: 1 Sep 2002 11:13:02 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Sun, 1 Sep 2002 04:12:54 -0700
Message-ID: <INEGJNJOFAMNDPNEABNECEBFEJAA.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)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Subject: [Wxruby-dev] The wxRuby Wiki is Up and Running!
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

The wiki is up -- but it has no real content, yet. See:

    http://www.wxruby.org

Curt



From robert.calco@verizon.net Sun Sep 01 08:19:47 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lThi-0005rP-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 08:19:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lTha-0005og-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 08:19:43 -0400
Received: from out008pub.verizon.net ([206.46.170.108] helo=out008.verizon.net)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17lThZ-0005no-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 08:19:37 -0400
Received: from CALCOLAPTOP ([141.156.44.22]) by out008.verizon.net
          (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with SMTP
          id <20020901121934.NJFS19644.out008.verizon.net@CALCOLAPTOP>
          for <wxruby-dev@mail.freesoftware.fsf.org>;
          Sun, 1 Sep 2002 07:19:34 -0500
From: "Bob Calco" <robert.calco@verizon.net>
To: <wxruby-dev@mail.freesoftware.fsf.org>
Subject: RE: [Wxruby-dev] The wxRuby Wiki is Up and Running!
Date: Sun, 1 Sep 2002 08:19:32 -0400
Message-ID: <NCEJJNLDMEJLEJHKNGNHGEHPDOAA.robert.calco@verizon.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.2910.0)
In-Reply-To: <INEGJNJOFAMNDPNEABNECEBFEJAA.curt@hibbs.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
X-Reply-To: <robert.calco@verizon.net>
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Excellent, Curt!

BTW, I thought I'd post the software version assumptions we will be
operating under, as Curt and I have been musing on these independently of
the group but agree we will henceforth post all such dissiderata to the
group for comments/questions/suggestions:

1. Ruby 1.7.3
2. SWIG 1.3.14
3. wxWindows 2.3.2

Keyword here is "latest/greatest".

As far as target OSs go:

1. Windows NT/2000/XP (also supporting 9x) (Bob & Curt to test)
2. Linux 2.24 kernel (Bob & Curt to test)
3. Mac OS X (eventually) (Rich to test????)

And compilers:

Windows:
	Cygwin (Bob)
	Visual C++ 6.0 (Curt)
	Visual C++ 7.0 (.NET) (Bob)
	Mingw (Curt?)
	Borland C++ (Bob)

RedHat Linux 7.3 (on Linux 2.24 kernel)
	GCC (Bob)

Any thoughts, comments suggestions, are welcome.

- Bob Calco


%% -----Original Message-----
%% From: wxruby-dev-admin@mail.freesoftware.fsf.org
%% [mailto:wxruby-dev-admin@mail.freesoftware.fsf.org]On Behalf Of Curt
%% Hibbs
%% Sent: Sunday, September 01, 2002 7:13 AM
%% To: wxRuby
%% Subject: [Wxruby-dev] The wxRuby Wiki is Up and Running!
%%
%%
%% The wiki is up -- but it has no real content, yet. See:
%%
%%     http://www.wxruby.org
%%
%% Curt
%%
%%
%% _______________________________________________
%% Wxruby-dev mailing list
%% Wxruby-dev@mail.freesoftware.fsf.org
%% http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev
%%





From robert.calco@verizon.net Sun Sep 01 12:00:40 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17lX9U-0004dV-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 12:00:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17lX9R-0004cW-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 12:00:39 -0400
Received: from out011pub.verizon.net ([206.46.170.135] helo=out011.verizon.net)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17lX9R-0004cS-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 01 Sep 2002 12:00:37 -0400
Received: from CALCOLAPTOP ([141.156.44.22]) by out011.verizon.net
          (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with SMTP
          id <20020901160036.CFUM17563.out011.verizon.net@CALCOLAPTOP>
          for <wxruby-dev@mail.freesoftware.fsf.org>;
          Sun, 1 Sep 2002 11:00:36 -0500
From: "Bob Calco" <robert.calco@verizon.net>
To: "Wxruby-Dev@Mail. Freesoftware. Fsf. Org" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Sun, 1 Sep 2002 12:00:33 -0400
Message-ID: <NCEJJNLDMEJLEJHKNGNHEEIGDOAA.robert.calco@verizon.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.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [Wxruby-dev] cygwin
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
X-Reply-To: <robert.calco@verizon.net>
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Everyone:

I note as I update my cygwin installation that gcc-3.2 is out now, as well
as a gcc-mingw implementation, which previously was not part of cygwin's
standard setup. So the following may peacefully coexist on a given cygwin
install:

gcc 3.2 \__ One or the
gcc 3.1 /   other of these
gcc-2 (which is 2.96 for backward compatibility)
gcc-mingw 3.2

So I will explore how ruby, swig and wxwindows behave when each of these
compilers are used to build them.

I'll also explore how VC++ 7 behaves with ruby, swig and wxwindows, since
Curt has only 6.0 right now. I also have Borland C++ 5.5 that comes with,
but can be gotten free separately from, C++ Builder 5. I've not tried to
compile Ruby with borland yet but I've wanted to.

We'll need to be able to accomodate these various configurations.

Sincerely,

Bob Calco





From curt@hibbs.com Tue Sep 03 18:23:32 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17mM56-00051X-00
	for wxruby-dev@mail.freesoftware.fsf.org; Tue, 03 Sep 2002 18:23:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17mM53-00051B-00
	for wxruby-dev@mail.freesoftware.fsf.org; Tue, 03 Sep 2002 18:23:31 -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.10)
	id 17mM53-00050u-00
	for wxruby-dev@mail.freesoftware.fsf.org; Tue, 03 Sep 2002 18:23:29 -0400
Received: (cpmta 27117 invoked from network); 3 Sep 2002 15:23:26 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 3 Sep 2002 15:23:26 -0700
X-Sent: 3 Sep 2002 22:23:26 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Tue, 3 Sep 2002 15:23:27 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEEEFFEJAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0012_01C2535D.DA7EEB50"
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.2600.0000
Importance: Normal
Subject: [Wxruby-dev] Flying my First Pig
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C2535D.DA7EEB50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Bob, I like the content outline you added to the home page of the wiki (I
know there's not yet any content behind it, but you "gotta start somewhere"
:-).

I think for our first pass we just want to concentrate on getting the swig'd
wxWindows api up and running. Nothing fancy, no interface changes. After
that we can decide how much we want to cleanup the interface to better match
the Ruby way.

I am going to pick a few of the wxPython interface files for a test port to
see what issues/problems I encounter. I will record my experiences on the
wiki and also post them here to the ML.

So here I go to try and fly my first wxRuby pig  :-)

Curt


------=_NextPart_000_0012_01C2535D.DA7EEB50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial size=3D2>Bob, I =
like the=20
content outline you added to the home page of the wiki (I know there's =
not yet=20
any content behind it, but you "gotta start somewhere" =
:-).</FONT></SPAN></DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial size=3D2>I =
think for our=20
first pass we just want to concentrate on getting the swig'd wxWindows =
api up=20
and running. Nothing fancy, no interface changes. After that we can =
decide how=20
much we want to cleanup the interface to better match the Ruby=20
way.</FONT></SPAN></DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial size=3D2>I am =
going to pick a=20
few of the wxPython interface files for a test port to see what =
issues/problems=20
I encounter. I will record my experiences on the wiki and also post them =
here to=20
the ML.</FONT></SPAN></DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial size=3D2>So =
here I go to try=20
and fly my first wxRuby pig&nbsp; :-)</FONT></SPAN></DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D159360022-03092002><FONT face=3DArial=20
size=3D2>Curt</FONT></SPAN></DIV>
<DIV><SPAN class=3D159360022-03092002></SPAN>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0012_01C2535D.DA7EEB50--




From curt@hibbs.com Sun Sep 08 07:04:57 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17nzs9-00086K-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 07:04:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17nzs5-000868-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 07:04:56 -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.10)
	id 17nzs4-000843-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 07:04:52 -0400
Received: (cpmta 11422 invoked from network); 8 Sep 2002 04:04:46 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 8 Sep 2002 04:04:46 -0700
X-Sent: 8 Sep 2002 11:04:46 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Sun, 8 Sep 2002 04:04:44 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEAEDDEKAA.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)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Subject: [Wxruby-dev] Rethinking my Approach to SWIG'ing wxWindows
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

I've been trying to get moving on SWIG'ing wxWindows and I am having second
thoughts about just "porting" the wxPython interface files (although I would
still make use of them).

But before I get to that, let me say a little about what I've done to get
where I am right now. Since I am new to both SWIG and wxWindows, I wanted to
make sure that I had a good, working build of wxWindows, and that I could
successfully the Ruby samples that came with SWIG. Here's my activity log
(the false-steps have been edited out):

- wxWindows Installation
   - Unpacked the distribution
   - Built wxWindows
   - Ran sample apps to verify the build
- SWIG Installation
   - Unzipped the windows SWIG distribution
     (includes pre-built windows binary)
   - Added SWIG-1.3.14 to my path
- Ruby SWIG examples, building:
   - Unpacked Ruby source into <rubysrc>
   - Built ruby (did this to get config.h, needed by swig)
   - defined RUBY_INCLUDE = <rubysrc>
   - Defined RUBY_LIB = <rubyrc>\msvcrt-ruby17.lib
   - Opened & Built: \SWIG-1.3.14\Examples\ruby\simple\example.dsp
   - Opened & Built: \SWIG-1.3.14\Examples\ruby\class\example.dsp

As I started to look at porting the wxPython, I realized that I would have
to "swallow the elephant whole" instead of taking it in nice little
"bite-sized chunks".

I tried to identify a minimal set of wxPython interfaces that I could port
and then actually test in a running program. This turned out to be much
larger that I wanted. Then, on top of that, I would need to spend a
considerable amount of time analyzing and determining what is
python-specific and what is not (or what is still applicable to Ruby). All
this while coming up to speed with both wxWindows and SWIG. And then, when
things don't work, figuring it out could be very time-consuming (so many new
areas, such much initial code).

What I would rather do is take a very incremental approach where I start off
with something very simple (like a SWIG'ed wxWIndows interface that only
lets you create and destroy a top-level window). This simple start can then
be incrementally built-out. Since each addition is small, when something
goes wrong you know where to look. The wxPython interface files can be used
as a source of "advice" and from which to cut-and-paste snippets of code.

So unless someone else has a better idea, that is how I am going to proceed.

Once I have that initial, minimalistic api SWIG'ed I will check that code in
to CVS and then come up with groupings of the remaining apis that Bob and I
(and anyone else) can divide and conquer in parallel.

Curt




From laurent@moldus.org Sun Sep 08 11:02:33 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17o3a5-0004O1-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 11:02:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17o3Zy-0004NV-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 11:02:32 -0400
Received: from julliard.net1.nerim.net ([62.212.103.8] helo=voldemort.moldus.org)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17o3Zx-0004NR-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 11:02:25 -0400
Received: by voldemort.moldus.org (Postfix, from userid 104)
	id E42481BD21; Sun,  8 Sep 2002 17:02:23 +0200 (CEST)
Received: from moldus.org (bostan.maison.fr [192.168.1.5])
	by voldemort.moldus.org (Postfix) with ESMTP id 322721BD21
	for <wxruby-dev@mail.freesoftware.fsf.org>; Sun,  8 Sep 2002 17:02:22 +0200 (CEST)
Message-ID: <3D7B666A.2070309@moldus.org>
Date: Sun, 08 Sep 2002 17:02:02 +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.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: wxruby-dev@mail.freesoftware.fsf.org
Subject: Re: [Wxruby-dev] Rethinking my Approach to SWIG'ing wxWindows
References: <INEGJNJOFAMNDPNEABNEAEDDEKAA.curt@hibbs.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Curt Hibbs wrote:
> I've been trying to get moving on SWIG'ing wxWindows and I am having second
> thoughts about just "porting" the wxPython interface files (although I would
> still make use of them).
> 
> But before I get to that, let me say a little about what I've done to get
> where I am right now. Since I am new to both SWIG and wxWindows, I wanted to
> make sure that I had a good, working build of wxWindows, and that I could
> successfully the Ruby samples that came with SWIG. Here's my activity log
> (the false-steps have been edited out):
> 
> - wxWindows Installation
>    - Unpacked the distribution
>    - Built wxWindows
>    - Ran sample apps to verify the build
> - SWIG Installation
>    - Unzipped the windows SWIG distribution
>      (includes pre-built windows binary)
>    - Added SWIG-1.3.14 to my path
> - Ruby SWIG examples, building:
>    - Unpacked Ruby source into <rubysrc>
>    - Built ruby (did this to get config.h, needed by swig)
>    - defined RUBY_INCLUDE = <rubysrc>
>    - Defined RUBY_LIB = <rubyrc>\msvcrt-ruby17.lib
>    - Opened & Built: \SWIG-1.3.14\Examples\ruby\simple\example.dsp
>    - Opened & Built: \SWIG-1.3.14\Examples\ruby\class\example.dsp
> 

So far you got it right :-)

> As I started to look at porting the wxPython, I realized that I would have
> to "swallow the elephant whole" instead of taking it in nice little
> "bite-sized chunks".
>
> I tried to identify a minimal set of wxPython interfaces that I could port
> and then actually test in a running program. This turned out to be much
> larger that I wanted. Then, on top of that, I would need to spend a
> considerable amount of time analyzing and determining what is
> python-specific and what is not (or what is still applicable to Ruby). All
> this while coming up to speed with both wxWindows and SWIG. And then, when
> things don't work, figuring it out could be very time-consuming (so many new
> areas, such much initial code).
> 
> What I would rather do is take a very incremental approach where I start off
> with something very simple (like a SWIG'ed wxWIndows interface that only
> lets you create and destroy a top-level window). This simple start can then
> be incrementally built-out. Since each addition is small, when something
> goes wrong you know where to look. The wxPython interface files can be used
> as a source of "advice" and from which to cut-and-paste snippets of code.
> 
> So unless someone else has a better idea, that is how I am going to proceed.
> 

This is exactl how I would have proceeded myself. Identify the base 
classes and then take the Window class which is (I guess) at the top 
of the class hierarchy and start from here.

One thing you could do as well is process the wxWindow code through 
some sort of code navigation utility that also generates class 
inheritance and you can easily see what are the base classes and how 
the widget classes are organized. From there take a top down approach

Keep going!

Laurent





From robert.calco@verizon.net Sun Sep 08 11:10:13 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17o3hU-0005AR-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 11:10:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17o3hS-0005AD-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 11:10:12 -0400
Received: from out017pub.verizon.net ([206.46.170.94] helo=out017.verizon.net)
	by monty-python.gnu.org with esmtp (Exim 4.10)
	id 17o3hR-0005A8-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sun, 08 Sep 2002 11:10:09 -0400
Received: from CALCOLAPTOP ([141.156.218.135]) by out017.verizon.net
          (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with SMTP
          id <20020908151008.XIZM6394.out017.verizon.net@CALCOLAPTOP>
          for <wxruby-dev@mail.freesoftware.fsf.org>;
          Sun, 8 Sep 2002 10:10:08 -0500
From: "Bob Calco" <robert.calco@verizon.net>
To: <wxruby-dev@mail.freesoftware.fsf.org>
Subject: RE: [Wxruby-dev] Rethinking my Approach to SWIG'ing wxWindows
Date: Sun, 8 Sep 2002 11:09:55 -0400
Message-ID: <NCEJJNLDMEJLEJHKNGNHMEJFEAAA.robert.calco@verizon.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.2910.0)
In-Reply-To: <INEGJNJOFAMNDPNEABNEAEDDEKAA.curt@hibbs.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
X-Reply-To: <robert.calco@verizon.net>
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Curt:

You have my blessing. I too will proceed in a similar vein and we can
compare experiences. Again, as is often the case in generator tools (like
SWIG, Lex, Yacc), the coupling of the python-swig-wx integration to the
python model is too tight to permit a one-for-one mapping in Ruby or even
easy imitation. I suggest rather than attempt to imitate the Python
implementation we expand our studies and look also at wxPerl and wxLua,
which are linked from the main wxWindows site via "Contributions", for ideas
and alternative approaches.

I think we should remove the python i code from CVS and start from a clean
directory structure. Build in little pieces, focusing on the most
fundamental stuff first, and go from there. Swallowing the whole elephant is
not merely painful, it's suicidal.

I am stuck home today, my wife _still_ recovering after a whole week from a
nasty bout of poison ivy, and between honey-do's (which should be few to
none after a few early manual chores) I hope to make some headway on wxRuby.
Wish me luck... ;)

Sincerely,

Bob Calco

%% -----Original Message-----
%% From: wxruby-dev-admin@mail.freesoftware.fsf.org
%% [mailto:wxruby-dev-admin@mail.freesoftware.fsf.org]On Behalf Of Curt
%% Hibbs
%% Sent: Sunday, September 08, 2002 7:05 AM
%% To: wxRuby
%% Subject: [Wxruby-dev] Rethinking my Approach to SWIG'ing wxWindows
%%
%%
%% I've been trying to get moving on SWIG'ing wxWindows and I am
%% having second
%% thoughts about just "porting" the wxPython interface files
%% (although I would
%% still make use of them).
%%
%% But before I get to that, let me say a little about what I've done to get
%% where I am right now. Since I am new to both SWIG and wxWindows,
%% I wanted to
%% make sure that I had a good, working build of wxWindows, and that I could
%% successfully the Ruby samples that came with SWIG. Here's my activity log
%% (the false-steps have been edited out):
%%
%% - wxWindows Installation
%%    - Unpacked the distribution
%%    - Built wxWindows
%%    - Ran sample apps to verify the build
%% - SWIG Installation
%%    - Unzipped the windows SWIG distribution
%%      (includes pre-built windows binary)
%%    - Added SWIG-1.3.14 to my path
%% - Ruby SWIG examples, building:
%%    - Unpacked Ruby source into <rubysrc>
%%    - Built ruby (did this to get config.h, needed by swig)
%%    - defined RUBY_INCLUDE = <rubysrc>
%%    - Defined RUBY_LIB = <rubyrc>\msvcrt-ruby17.lib
%%    - Opened & Built: \SWIG-1.3.14\Examples\ruby\simple\example.dsp
%%    - Opened & Built: \SWIG-1.3.14\Examples\ruby\class\example.dsp
%%
%% As I started to look at porting the wxPython, I realized that I
%% would have
%% to "swallow the elephant whole" instead of taking it in nice little
%% "bite-sized chunks".
%%
%% I tried to identify a minimal set of wxPython interfaces that I
%% could port
%% and then actually test in a running program. This turned out to be much
%% larger that I wanted. Then, on top of that, I would need to spend a
%% considerable amount of time analyzing and determining what is
%% python-specific and what is not (or what is still applicable to
%% Ruby). All
%% this while coming up to speed with both wxWindows and SWIG. And
%% then, when
%% things don't work, figuring it out could be very time-consuming
%% (so many new
%% areas, such much initial code).
%%
%% What I would rather do is take a very incremental approach where
%% I start off
%% with something very simple (like a SWIG'ed wxWIndows interface that only
%% lets you create and destroy a top-level window). This simple
%% start can then
%% be incrementally built-out. Since each addition is small, when something
%% goes wrong you know where to look. The wxPython interface files
%% can be used
%% as a source of "advice" and from which to cut-and-paste snippets of code.
%%
%% So unless someone else has a better idea, that is how I am going
%% to proceed.
%%
%% Once I have that initial, minimalistic api SWIG'ed I will check
%% that code in
%% to CVS and then come up with groupings of the remaining apis
%% that Bob and I
%% (and anyone else) can divide and conquer in parallel.
%%
%% Curt
%%
%%
%%
%% _______________________________________________
%% Wxruby-dev mailing list
%% Wxruby-dev@mail.freesoftware.fsf.org
%% http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev
%%





From curt@hibbs.com Wed Sep 11 19:52:47 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pHHr-0005bg-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 19:52:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pHHn-0005bM-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 19:52:44 -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.10)
	id 17pHHm-0005b9-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 19:52:42 -0400
Received: (cpmta 25040 invoked from network); 11 Sep 2002 16:52:38 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 11 Sep 2002 16:52:38 -0700
X-Sent: 11 Sep 2002 23:52:38 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "Lyle Johnson" <lyle@knology.net>
Cc: "Curt Hibbs" <curt@hibbs.com>,
	"Bob Calco" <robert.calco@verizon.net>,
	"wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Wed, 11 Sep 2002 16:52:29 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEIEMDEKAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [Wxruby-dev] SWIG Question
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Lyle,

I don't know how closely you've followed the FreeRIDE ML, but we decided to
take two of the FreeRIDE developers (myself and Bob Calco) temporarily off
of FreeRIDE to develop e Ruby binding for wxWindows. We wish we didn't to
have to this, but we really need the I18N support. If you are interested in
following the project you can join the wxRuby developer's ML
(www.wxruby.org).

Anyway, we are preparing to use SWIG to wrap the wxWindows library, and I
have a fundamental question that I wanted to ask before possibly going down
the wrong path.

I looked at what the Python people did with SWIG to produce wxPython, and I
looked at what you did to produce FXRuby, and this have left me with a
nagging question: is it really necessary to duplicate the all of the
underlying library's constants and such in the interface files when SWIG is
supposed to be able to process C/C++ header files and figure that stuff out
itself?

Duplicating the header file definitions in the interface files seems like a
potential maintenance headache. Every time the underlying library changes,
you'd have to do a diff to see what changed and then manually make those
changes in the interface files.

My ideal would be to not have to create any interface files at all. Instead,
I would like to have SWIG process the library's header files to create a
"raw" ruby binding to the library. And then, on top of that, create a layer
of Ruby code that presents a more Rubyesque api to the outside world.

But the fact that both wxPython and FXRuby have created extensive interface
files tells me that I must be missing something -- that there is something
important that I don't know.

So, my question is: is there some reason why the approach I outlined above
won't work?

Thanks in advance,
Curt




From lyle@knology.net Wed Sep 11 21:57:41 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pJEj-00017P-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 21:57:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pJEh-00017C-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 21:57:40 -0400
Received: from user-24-214-63-13.knology.net ([24.214.63.13] helo=smtp3.knology.net)
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17pJEg-000178-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 21:57:38 -0400
Received: (qmail 6700 invoked by uid 8002); 12 Sep 2002 01:57:34 -0000
Received: from unknown (HELO knology.net) (24.214.76.200)
  by smtp3.knology.net with SMTP; 12 Sep 2002 01:57:34 -0000
Message-ID: <3D7FF49A.7010802@knology.net>
Date: Wed, 11 Sep 2002 20:57:46 -0500
From: Lyle Johnson <lyle@knology.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Curt Hibbs <curt@hibbs.com>
CC: Bob Calco <robert.calco@verizon.net>, wxRuby
 <wxruby-dev@mail.freesoftware.fsf.org>,  beazley@cs.uchicago.edu
References: <INEGJNJOFAMNDPNEABNEIEMDEKAA.curt@hibbs.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Re: SWIG Question
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Curt Hibbs wrote:

>I looked at what the Python people did with SWIG to produce wxPython, and I
>looked at what you did to produce FXRuby, and this have left me with a
>nagging question: is it really necessary to duplicate the all of the
>underlying library's constants and such in the interface files when SWIG is
>supposed to be able to process C/C++ header files and figure that stuff out
>itself?
>
It is possible that, with the latest versions of SWIG, this may no 
longer be necessary. You need to know that, for example, wxPython was 
developed using SWIG 1.1, which didn't include a preprocessor and a 
number of other advanced features that SWIG 1.3 has. Similarly, when I 
began development of FXRuby (using a very early SWIG 1.3 release) it was 
missing a lot of the functionality that is currently available. One such 
feature that immediately comes to mind is the recently added support for 
overloaded methods; in earlier versions of FXRuby, I was having to "roll 
my own" version of overloading to make it work. When Dave (Beazley) got 
overloading working for SWIG 1.3.14, I was able to remove a lot of that 
cruft from FXRuby.

>Duplicating the header file definitions in the interface files seems like a
>potential maintenance headache. Every time the underlying library changes,
>you'd have to do a diff to see what changed and then manually make those
>changes in the interface files.
>
Agreed, this is a maintenance problem, so you should avoid it when possible.

>My ideal would be to not have to create any interface files at all. Instead,
>I would like to have SWIG process the library's header files to create a
>"raw" ruby binding to the library. And then, on top of that, create a layer
>of Ruby code that presents a more Rubyesque api to the outside world.
>
I have used a similar approach for other libraries, and it works quite 
well. In fact, though most of FXRuby is implemented in the extension 
module's shared library, some of the code is implemented in Ruby. My 
Ruby interface to CLIPS took this approach as well, wrapping the 
low-level C functions and then building an object-oriented interface in 
Ruby that calls those functions under the hood.

>But the fact that both wxPython and FXRuby have created extensive interface
>files tells me that I must be missing something -- that there is something
>important that I don't know.
>
There are some things that SWIG still doesn't do (and, to be fair, 
perhaps can't do in an automated way).

For example, one of my requirements for FXRuby is that you should be 
able to derive new Ruby classes from the (wrapped) FOX classes and 
override their virtual functions, and everything "just works". Let's say 
you want to implement a new layout manager for FOX, and you decide to 
subclass FXCompsite to get started:

    class MyLayoutManager < FXComposite
    end

Since some of the key functions involved in layout are the C++ virtual 
functions layout(), getDefaultWidth() and getDefaultHeight(), you'll 
probably need to override them to do the right thing for your layout 
manager:

    class MyLayoutManager < FXComposite
        def layout
            # Lay out my child widgets
        end
        def getDefaultWidth
            # Return the default width for this window
        end
        def getDefaultHeight
            # Return the default height for this window
        end
    end

Unfortunately, it's not that simple. You can create an instance of 
MyLayoutManager and use it, all right, but underneath it's still just an 
FXComposite as far as FOX is concerned. Why? Because there's no C++ 
inheritance involved. That is to say, when some object calls the 
object's virtual getDefaultWidth() function in C++-land, it's going to 
stop when it reaches FXComposite::getDefaultWidth(). The painful reality 
is that, for this virtual function dispatch to work, you must derive new 
C++ classes for any C++ class that has virtual functions that you want 
to override. I'll stop here for now, but there's a lot more to say about 
the topic ;)

Another issue is interaction with Ruby's garbage collector. As you may 
know, Ruby uses a "mark and sweep" GC algorithm that extension writers 
must pay attention to. If one of your Ruby objects holds references to 
other objects, you need to provide a function that "marks" those objects 
as reachable so the garbage collector won't clobber them prematurely. 
This, again, is not something that can be determined automatically by 
SWIG; you pretty much need to be familiar enough with the library to 
know which function calls cause new references to be saved (or released).

>So, my question is: is there some reason why the approach I outlined above
>won't work?
>
Not necessarily. The approach you've outlined will work for a lot of 
cases, and it's the one I use when I have the option. I'm not familiar 
enough with wxWindows enough to know how much of a problem the issues I 
identified are going to affect your decision. But Robin Dunn (the 
original developer of wxPython) is a pretty sharp guy, and I suspect 
that to get the full wxWindows "experience" you may have to make a 
similar investment.




From lyle@knology.net Wed Sep 11 22:06:40 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pJNQ-0001SI-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 22:06:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pJNL-0001S6-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 22:06:40 -0400
Received: from user-24-214-63-227.knology.net ([24.214.63.227] helo=smtp4.knology.net)
	by monty-python.gnu.org with smtp (Exim 4.10)
	id 17pJNL-0001S2-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 22:06:35 -0400
Received: (qmail 18623 invoked by uid 8002); 12 Sep 2002 02:06:26 -0000
Received: from unknown (HELO knology.net) (24.214.76.200)
  by smtp4.knology.net with SMTP; 12 Sep 2002 02:06:26 -0000
Message-ID: <3D7FF6AB.8060609@knology.net>
Date: Wed, 11 Sep 2002 21:06:35 -0500
From: Lyle Johnson <lyle@knology.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Curt Hibbs <curt@hibbs.com>
CC: Bob Calco <robert.calco@verizon.net>, wxRuby
 <wxruby-dev@mail.freesoftware.fsf.org>
References: <INEGJNJOFAMNDPNEABNEIEMDEKAA.curt@hibbs.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [Wxruby-dev] Re: I18N in wxWindows (was: SWIG Question)
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Curt Hibbs wrote:

>I don't know how closely you've followed the FreeRIDE ML, but we decided to
>take two of the FreeRIDE developers (myself and Bob Calco) temporarily off
>of FreeRIDE to develop a Ruby binding for wxWindows. We wish we didn't to
>have to this, but we really need the I18N support.
>
No, that's understandable. But, just for my curiosity, what kind of I18N 
support does wxWindows actually have? I took a brief look at the 
wxWindows 2 manual and it appears that they have some localization 
support (which is good). But the article "Unicode support in wxWindows":

    http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin457.htm#unicode

suggests that wxWindows' Unicode support is only available on Win32. Is 
that still true, or are the docs just out of date?




From curt@hibbs.com Wed Sep 11 23:53:21 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pL2f-00035n-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 23:53:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pL2d-00031N-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 23:53:20 -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.10)
	id 17pL2c-0002yJ-00
	for wxruby-dev@mail.freesoftware.fsf.org; Wed, 11 Sep 2002 23:53:18 -0400
Received: (cpmta 1629 invoked from network); 11 Sep 2002 20:53:16 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.65) with SMTP; 11 Sep 2002 20:53:16 -0700
X-Sent: 12 Sep 2002 03:53:16 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "Lyle Johnson" <lyle@knology.net>
Cc: "Bob Calco" <robert.calco@verizon.net>,
	"wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Wed, 11 Sep 2002 20:53:09 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEIEMIEKAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <3D7FF6AB.8060609@knology.net>
Importance: Normal
Subject: [Wxruby-dev] RE: I18N in wxWindows (was: SWIG Question)
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Lyle Johnson wrote:
>
> Curt Hibbs wrote:
>
> >I don't know how closely you've followed the FreeRIDE ML, but we
> decided to
> >take two of the FreeRIDE developers (myself and Bob Calco)
> temporarily off
> >of FreeRIDE to develop a Ruby binding for wxWindows. We wish we didn't to
> >have to this, but we really need the I18N support.
> >
> No, that's understandable. But, just for my curiosity, what kind of I18N
> support does wxWindows actually have? I took a brief look at the
> wxWindows 2 manual and it appears that they have some localization
> support (which is good). But the article "Unicode support in wxWindows":
>
>
> http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin457.htm#unicode
>
> suggests that wxWindows' Unicode support is only available on Win32. Is
> that still true, or are the docs just out of date?

I don't know, but I definitely want to find the answer before investing any
time in this.

Thanks,
Curt




From curt@hibbs.com Thu Sep 12 00:42:52 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pLoa-00010a-00
	for wxruby-dev@mail.freesoftware.fsf.org; Thu, 12 Sep 2002 00:42:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pLoY-00010I-00
	for wxruby-dev@mail.freesoftware.fsf.org; Thu, 12 Sep 2002 00:42:51 -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.10)
	id 17pLoY-000106-00
	for wxruby-dev@mail.freesoftware.fsf.org; Thu, 12 Sep 2002 00:42:50 -0400
Received: (cpmta 18921 invoked from network); 11 Sep 2002 21:42:46 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.72) with SMTP; 11 Sep 2002 21:42:46 -0700
X-Sent: 12 Sep 2002 04:42:46 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <wxruby-dev@mail.freesoftware.fsf.org>,
	"Lyle Johnson" <lyle@knology.net>
Cc: "Bob Calco" <robert.calco@verizon.net>
Subject: RE: [Wxruby-dev] RE: I18N in wxWindows (was: SWIG Question)
Date: Wed, 11 Sep 2002 21:42:39 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEKEMJEKAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <INEGJNJOFAMNDPNEABNEIEMIEKAA.curt@hibbs.com>
Importance: Normal
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Curt Hibbs wrote:
>
> Lyle Johnson wrote:
> >
> > No, that's understandable. But, just for my curiosity, what kind of I18N
> > support does wxWindows actually have? I took a brief look at the
> > wxWindows 2 manual and it appears that they have some localization
> > support (which is good). But the article "Unicode support in wxWindows":
> >
> >
> > http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin457.htm#unicode
> >
> > suggests that wxWindows' Unicode support is only available on Win32. Is
> > that still true, or are the docs just out of date?
>
> I don't know, but I definitely want to find the answer before
> investing any
> time in this.

The short answer is found at:

	http://www.wxwindows.org/i18n.htm

Basically wxWindows uses standard GNU gettext tools for localization.
Certainly, full unicode support would be better (although, that might not
help until Ruby supports unicode). But in an imperfect world we have to make
the best of the tradeoffs that are available.

Curt




From curt@hibbs.com Thu Sep 12 01:12:27 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17pMHD-0005ZT-00
	for wxruby-dev@mail.freesoftware.fsf.org; Thu, 12 Sep 2002 01:12:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17pMHA-0005Yo-00
	for wxruby-dev@mail.freesoftware.fsf.org; Thu, 12 Sep 2002 01:12:26 -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.10)
	id 17pMH9-0005YV-00
	for wxruby-dev@mail.freesoftware.fsf.org; Thu, 12 Sep 2002 01:12:24 -0400
Received: (cpmta 20007 invoked from network); 11 Sep 2002 22:12:19 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 11 Sep 2002 22:12:19 -0700
X-Sent: 12 Sep 2002 05:12:19 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "Lyle Johnson" <lyle@knology.net>
Cc: "Bob Calco" <robert.calco@verizon.net>,
	"wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>,
	<beazley@cs.uchicago.edu>
Date: Wed, 11 Sep 2002 22:12:12 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEAEMLEKAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <3D7FF49A.7010802@knology.net>
Importance: Normal
Subject: [Wxruby-dev] RE: SWIG Question
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Thank you very much Lyle for your extensive and informative reply. I have
interspersed a few comments below...

> -----Original Message-----
> From: Lyle Johnson [mailto:lyle@knology.net]
> Sent: Wednesday, September 11, 2002 6:58 PM
> To: Curt Hibbs
> Cc: Bob Calco; wxRuby; beazley@cs.uchicago.edu
> Subject: Re: SWIG Question
>
>
> Curt Hibbs wrote:
>
> >I looked at what the Python people did with SWIG to produce
> wxPython, and I
> >looked at what you did to produce FXRuby, and this have left me with a
> >nagging question: is it really necessary to duplicate the all of the
> >underlying library's constants and such in the interface files
> when SWIG is
> >supposed to be able to process C/C++ header files and figure
> that stuff out
> >itself?
> >
> It is possible that, with the latest versions of SWIG, this may no
> longer be necessary. You need to know that, for example, wxPython was
> developed using SWIG 1.1, which didn't include a preprocessor and a
> number of other advanced features that SWIG 1.3 has. Similarly, when I
> began development of FXRuby (using a very early SWIG 1.3 release) it was
> missing a lot of the functionality that is currently available. One such
> feature that immediately comes to mind is the recently added support for
> overloaded methods; in earlier versions of FXRuby, I was having to "roll
> my own" version of overloading to make it work. When Dave (Beazley) got
> overloading working for SWIG 1.3.14, I was able to remove a lot of that
> cruft from FXRuby.


Great! I was hoping that a lot of what I was seeing was historical remnants.


> >Duplicating the header file definitions in the interface files
> seems like a
> >potential maintenance headache. Every time the underlying
> library changes,
> >you'd have to do a diff to see what changed and then manually make those
> >changes in the interface files.
> >
> Agreed, this is a maintenance problem, so you should avoid it
> when possible.
>
> >My ideal would be to not have to create any interface files at
> all. Instead,
> >I would like to have SWIG process the library's header files to create a
> >"raw" ruby binding to the library. And then, on top of that,
> create a layer
> >of Ruby code that presents a more Rubyesque api to the outside world.
> >
> I have used a similar approach for other libraries, and it works quite
> well. In fact, though most of FXRuby is implemented in the extension
> module's shared library, some of the code is implemented in Ruby. My
> Ruby interface to CLIPS took this approach as well, wrapping the
> low-level C functions and then building an object-oriented interface in
> Ruby that calls those functions under the hood.


Excellent. I think, then, that it would be prudent for us to proceed this
way (in general) and deal with problems that arise on a case-by-case basis.


> >But the fact that both wxPython and FXRuby have created
> extensive interface
> >files tells me that I must be missing something -- that there is
> something
> >important that I don't know.
> >
> There are some things that SWIG still doesn't do (and, to be fair,
> perhaps can't do in an automated way).
>
> For example, one of my requirements for FXRuby is that you should be
> able to derive new Ruby classes from the (wrapped) FOX classes and
> override their virtual functions, and everything "just works". Let's say
> you want to implement a new layout manager for FOX, and you decide to
> subclass FXCompsite to get started:
>
>     class MyLayoutManager < FXComposite
>     end
>
> Since some of the key functions involved in layout are the C++ virtual
> functions layout(), getDefaultWidth() and getDefaultHeight(), you'll
> probably need to override them to do the right thing for your layout
> manager:
>
>     class MyLayoutManager < FXComposite
>         def layout
>             # Lay out my child widgets
>         end
>         def getDefaultWidth
>             # Return the default width for this window
>         end
>         def getDefaultHeight
>             # Return the default height for this window
>         end
>     end
>
> Unfortunately, it's not that simple. You can create an instance of
> MyLayoutManager and use it, all right, but underneath it's still just an
> FXComposite as far as FOX is concerned. Why? Because there's no C++
> inheritance involved. That is to say, when some object calls the
> object's virtual getDefaultWidth() function in C++-land, it's going to
> stop when it reaches FXComposite::getDefaultWidth(). The painful reality
> is that, for this virtual function dispatch to work, you must derive new
> C++ classes for any C++ class that has virtual functions that you want
> to override. I'll stop here for now, but there's a lot more to say about
> the topic ;)


Yes, I can see the issues involved.

I think the approach I want to take can avoid this. I'm not really
interested in presenting the wxWindows api "as is" to the Ruby programmer.
What I want to do is to treat wxWindows as the "platform primitives" upon
which the Ruby api is based. As such, I would have no requirement to be able
to extend the wxWindows classes in Ruby as I would not directly expose those
classes. Instead, the classes that implement the Ruby api would be
extendable.


> Another issue is interaction with Ruby's garbage collector. As you may
> know, Ruby uses a "mark and sweep" GC algorithm that extension writers
> must pay attention to. If one of your Ruby objects holds references to
> other objects, you need to provide a function that "marks" those objects
> as reachable so the garbage collector won't clobber them prematurely.
> This, again, is not something that can be determined automatically by
> SWIG; you pretty much need to be familiar enough with the library to
> know which function calls cause new references to be saved (or released).


I'm hoping that keeping as much of the code in Ruby as possible will make
this a little easier.


> >So, my question is: is there some reason why the approach I
> outlined above
> >won't work?
> >
> Not necessarily. The approach you've outlined will work for a lot of
> cases, and it's the one I use when I have the option. I'm not familiar
> enough with wxWindows enough to know how much of a problem the issues I
> identified are going to affect your decision. But Robin Dunn (the
> original developer of wxPython) is a pretty sharp guy, and I suspect
> that to get the full wxWindows "experience" you may have to make a
> similar investment.


Thanks again, Lyle -- this really helped a lot!

Curt




From curt@hibbs.com Fri Sep 20 06:03:38 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sKdO-0006HT-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 06:03:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sKdL-0006HH-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 06:03:37 -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.10)
	id 17sKdL-0006HD-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 06:03:35 -0400
Received: (cpmta 20675 invoked from network); 20 Sep 2002 03:03:32 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 20 Sep 2002 03:03:32 -0700
X-Sent: 20 Sep 2002 10:03:32 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: <ruby-talk@ruby-lang.org>
Cc: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 20 Sep 2002 03:03:29 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEGEMJELAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <amekbj$m67$1@news1.kornet.net>
Importance: Normal
Subject: [Wxruby-dev] RE: wxWindows for Ruby Again
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Park Heesob wrote:
>
> Hello all,
>
> Is anybody working on wxWindows for Ruby?
>
> I know the project to wrap wxwindows for ruby called
> wxruby(http://sourceforge.net/projects/wxruby/).
> But I can't see any change.

We have just goten started on wxRuby, which is now hosted at savannah (we
plan, eventually, to mirror the project at sourceforge). The main homepage
for the project is the wiki which you can find at www.wxruby.org but you
won't find much substance there, yet (as I said we are just getting
started).

> So I made my own version of wxruby adapted from wxPython only for
> MS-Windows.
> It just works but if fails to exit gracefully.
> I wish someone maintain wxruby project for other platforms and document.
>
> Download at http://www.physics.pe.ly/wxruby.zip

Thanks, I just downloaded this and will evaluate it this weekend to see if
we can use your initial work to accelerate the project.

What is it about this port that makes it windows only?

Curt

> Requirement:
>  Visual C++ 6.0
>  wxWindows 1.3.2
>
> Install:
> Unzip wxruby.zip
> nmake -f makefile.swig
> nmake
> ruby test.rb
>
> Test code following
> ===========================================================
> require 'wx'
> include Wx
>
> MENU_FILE_OPEN,MENU_FILE_SAVE,MENU_FILE_QUIT,MENU_INFO_ABOUT = 1..4
>
> class TextFrame < WxFrame
>
>   def initialize(title,xpos,ypos,width,height)
>  super(nil, -1, title, WxPoint.new(xpos, ypos), WxSize.new(width, height))
>
>  @m_pTextCtrl = WxTextCtrl.new(self, -1, "Type some text...",
>            Wx::wxDefaultPosition, Wx::wxDefaultSize, Wx::WxTE_MULTILINE)
>  @m_pMenuBar = WxMenuBar.new
>  @m_pFileMenu = WxMenu.new
>  @m_pFileMenu.Append(MENU_FILE_OPEN, "&Open", "Opens an existing file")
>  @m_pFileMenu.Append(MENU_FILE_SAVE, "&Save", "Save the content")
>  @m_pFileMenu.AppendSeparator();
>  @m_pFileMenu.Append(MENU_FILE_QUIT, "&Quit", "Quit the application")
>
>  @m_pMenuBar.Append(@m_pFileMenu, "&File")
>  @m_pInfoMenu = WxMenu.new
>  @m_pInfoMenu.Append(MENU_INFO_ABOUT, "&About", "Shows
> information about the
> application")
>  @m_pMenuBar.Append(@m_pInfoMenu, "&Info")
>  SetMenuBar(@m_pMenuBar)
>  CreateStatusBar(3)
>  SetStatusText("Ready", 0)
>
>   end
>   def OnMenuFileOpen
>     puts "OnMenuFileOpen"
>   end
>   def OnMenuFileSave
>     puts "OnMenuFileSave"
>   end
>   def OnMenuFileQuit
>     Close(0)
>   end
>   def OnMenuInfoAbout
>     puts "OnMenuInfoAbout"
>   end
>
> end
>
>
> class WxApp < WxRbApp
>   def initialize
>     super
>     __wxStart(self)
>   end
>   def OnInit()
>    @frame = TextFrame.new("Simple Text Editor", 200, 200, 500, 500)
>  EVT_MENU(@frame, MENU_FILE_OPEN,  "OnMenuFileOpen")
>  EVT_MENU(@frame, MENU_FILE_SAVE,  "OnMenuFileSave")
>  EVT_MENU(@frame, MENU_FILE_QUIT,  "OnMenuFileQuit")
>  EVT_MENU(@frame, MENU_INFO_ABOUT, "OnMenuInfoAbout")
>  @frame.Show()
>  SetTopWindow(@frame)
>   end
>
> end
>
> a = WxApp.new
> a.MainLoop()
>
> exit!
> =============================================================
>
>
> - Park Heesob
>
>
>
>




From curt@hibbs.com Fri Sep 20 10:49:38 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sP6A-0007XN-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:49:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sP64-0007Wk-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:49:37 -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.10)
	id 17sP63-0007Wg-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:49:32 -0400
Received: (cpmta 6557 invoked from network); 20 Sep 2002 07:49:29 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.66) with SMTP; 20 Sep 2002 07:49:29 -0700
X-Sent: 20 Sep 2002 14:49:29 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 20 Sep 2002 07:49:26 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEEEMOELAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [Wxruby-dev] FW: wxWindows for Ruby Again
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>


-----Original Message-----
From: Park Heesob [mailto:phasis@kornet.net]
Sent: Friday, September 20, 2002 1:41 AM
To: ruby-talk ML
Subject: wxWindows for Ruby Again



Hello all,

Is anybody working on wxWindows for Ruby?

I know the project to wrap wxwindows for ruby called
wxruby(http://sourceforge.net/projects/wxruby/).
But I can't see any change.

So I made my own version of wxruby adapted from wxPython only for
MS-Windows.
It just works but if fails to exit gracefully.
I wish someone maintain wxruby project for other platforms and document.

Download at http://www.physics.pe.ly/wxruby.zip

Requirement:
 Visual C++ 6.0
 wxWindows 1.3.2

Install:
Unzip wxruby.zip
nmake -f makefile.swig
nmake
ruby test.rb

Test code following
===========================================================
require 'wx'
include Wx

MENU_FILE_OPEN,MENU_FILE_SAVE,MENU_FILE_QUIT,MENU_INFO_ABOUT = 1..4

class TextFrame < WxFrame

  def initialize(title,xpos,ypos,width,height)
 super(nil, -1, title, WxPoint.new(xpos, ypos), WxSize.new(width, height))

 @m_pTextCtrl = WxTextCtrl.new(self, -1, "Type some text...",
           Wx::wxDefaultPosition, Wx::wxDefaultSize, Wx::WxTE_MULTILINE)
 @m_pMenuBar = WxMenuBar.new
 @m_pFileMenu = WxMenu.new
 @m_pFileMenu.Append(MENU_FILE_OPEN, "&Open", "Opens an existing file")
 @m_pFileMenu.Append(MENU_FILE_SAVE, "&Save", "Save the content")
 @m_pFileMenu.AppendSeparator();
 @m_pFileMenu.Append(MENU_FILE_QUIT, "&Quit", "Quit the application")

 @m_pMenuBar.Append(@m_pFileMenu, "&File")
 @m_pInfoMenu = WxMenu.new
 @m_pInfoMenu.Append(MENU_INFO_ABOUT, "&About", "Shows information about the
application")
 @m_pMenuBar.Append(@m_pInfoMenu, "&Info")
 SetMenuBar(@m_pMenuBar)
 CreateStatusBar(3)
 SetStatusText("Ready", 0)

  end
  def OnMenuFileOpen
    puts "OnMenuFileOpen"
  end
  def OnMenuFileSave
    puts "OnMenuFileSave"
  end
  def OnMenuFileQuit
    Close(0)
  end
  def OnMenuInfoAbout
    puts "OnMenuInfoAbout"
  end

end


class WxApp < WxRbApp
  def initialize
    super
    __wxStart(self)
  end
  def OnInit()
   @frame = TextFrame.new("Simple Text Editor", 200, 200, 500, 500)
 EVT_MENU(@frame, MENU_FILE_OPEN,  "OnMenuFileOpen")
 EVT_MENU(@frame, MENU_FILE_SAVE,  "OnMenuFileSave")
 EVT_MENU(@frame, MENU_FILE_QUIT,  "OnMenuFileQuit")
 EVT_MENU(@frame, MENU_INFO_ABOUT, "OnMenuInfoAbout")
 @frame.Show()
 SetTopWindow(@frame)
  end

end

a = WxApp.new
a.MainLoop()

exit!
=============================================================


- Park Heesob







From curt@hibbs.com Fri Sep 20 10:49:59 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sP6V-0007Yk-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:49:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sP6S-0007YC-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:49:58 -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.10)
	id 17sP6R-0007Y7-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:49:56 -0400
Received: (cpmta 14410 invoked from network); 20 Sep 2002 07:49:50 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 20 Sep 2002 07:49:50 -0700
X-Sent: 20 Sep 2002 14:49:50 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 20 Sep 2002 07:49:47 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEIEMOELAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [Wxruby-dev] RE: wxWindows for Ruby Again
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>


-----Original Message-----
From: Curt Hibbs [mailto:curt@hibbs.com]
Sent: Friday, September 20, 2002 3:05 AM
To: ruby-talk ML
Cc: wxRuby
Subject: RE: wxWindows for Ruby Again


Park Heesob wrote:
>
> Hello all,
>
> Is anybody working on wxWindows for Ruby?
>
> I know the project to wrap wxwindows for ruby called
> wxruby(http://sourceforge.net/projects/wxruby/).
> But I can't see any change.

We have just goten started on wxRuby, which is now hosted at savannah (we
plan, eventually, to mirror the project at sourceforge). The main homepage
for the project is the wiki which you can find at www.wxruby.org but you
won't find much substance there, yet (as I said we are just getting
started).

> So I made my own version of wxruby adapted from wxPython only for
> MS-Windows.
> It just works but if fails to exit gracefully.
> I wish someone maintain wxruby project for other platforms and document.
>
> Download at http://www.physics.pe.ly/wxruby.zip

Thanks, I just downloaded this and will evaluate it this weekend to see if
we can use your initial work to accelerate the project.

What is it about this port that makes it windows only?

Curt

> Requirement:
>  Visual C++ 6.0
>  wxWindows 1.3.2
>
> Install:
> Unzip wxruby.zip
> nmake -f makefile.swig
> nmake
> ruby test.rb
>
> Test code following
> ===========================================================
> require 'wx'
> include Wx
>
> MENU_FILE_OPEN,MENU_FILE_SAVE,MENU_FILE_QUIT,MENU_INFO_ABOUT = 1..4
>
> class TextFrame < WxFrame
>
>   def initialize(title,xpos,ypos,width,height)
>  super(nil, -1, title, WxPoint.new(xpos, ypos), WxSize.new(width, height))
>
>  @m_pTextCtrl = WxTextCtrl.new(self, -1, "Type some text...",
>            Wx::wxDefaultPosition, Wx::wxDefaultSize, Wx::WxTE_MULTILINE)
>  @m_pMenuBar = WxMenuBar.new
>  @m_pFileMenu = WxMenu.new
>  @m_pFileMenu.Append(MENU_FILE_OPEN, "&Open", "Opens an existing file")
>  @m_pFileMenu.Append(MENU_FILE_SAVE, "&Save", "Save the content")
>  @m_pFileMenu.AppendSeparator();
>  @m_pFileMenu.Append(MENU_FILE_QUIT, "&Quit", "Quit the application")
>
>  @m_pMenuBar.Append(@m_pFileMenu, "&File")
>  @m_pInfoMenu = WxMenu.new
>  @m_pInfoMenu.Append(MENU_INFO_ABOUT, "&About", "Shows
> information about the
> application")
>  @m_pMenuBar.Append(@m_pInfoMenu, "&Info")
>  SetMenuBar(@m_pMenuBar)
>  CreateStatusBar(3)
>  SetStatusText("Ready", 0)
>
>   end
>   def OnMenuFileOpen
>     puts "OnMenuFileOpen"
>   end
>   def OnMenuFileSave
>     puts "OnMenuFileSave"
>   end
>   def OnMenuFileQuit
>     Close(0)
>   end
>   def OnMenuInfoAbout
>     puts "OnMenuInfoAbout"
>   end
>
> end
>
>
> class WxApp < WxRbApp
>   def initialize
>     super
>     __wxStart(self)
>   end
>   def OnInit()
>    @frame = TextFrame.new("Simple Text Editor", 200, 200, 500, 500)
>  EVT_MENU(@frame, MENU_FILE_OPEN,  "OnMenuFileOpen")
>  EVT_MENU(@frame, MENU_FILE_SAVE,  "OnMenuFileSave")
>  EVT_MENU(@frame, MENU_FILE_QUIT,  "OnMenuFileQuit")
>  EVT_MENU(@frame, MENU_INFO_ABOUT, "OnMenuInfoAbout")
>  @frame.Show()
>  SetTopWindow(@frame)
>   end
>
> end
>
> a = WxApp.new
> a.MainLoop()
>
> exit!
> =============================================================
>
>
> - Park Heesob
>
>
>
>





From curt@hibbs.com Fri Sep 20 10:52:07 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sP8Y-0007ci-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:52:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sP8U-0007cC-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:52: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.10)
	id 17sP8T-0007c3-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:52:01 -0400
Received: (cpmta 9932 invoked from network); 20 Sep 2002 07:52:00 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.66) with SMTP; 20 Sep 2002 07:52:00 -0700
X-Sent: 20 Sep 2002 14:52:00 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 20 Sep 2002 07:51:57 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEOEMOELAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [Wxruby-dev] FW: wxWindows for Ruby Again
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>


-----Original Message-----
From: Park Heesob [mailto:phasis@kornet.net]
Sent: Friday, September 20, 2002 5:43 AM
To: ruby-talk ML
Subject: Re: wxWindows for Ruby Again



Hi,
"Curt Hibbs" <curt@hibbs.com> wrote in message
news:INEGJNJOFAMNDPNEABNEGEMJELAA.curt@hibbs.com...
> Park Heesob wrote:
> >
> > Hello all,
> >
> > Is anybody working on wxWindows for Ruby?
> >
> > I know the project to wrap wxwindows for ruby called
> > wxruby(http://sourceforge.net/projects/wxruby/).
> > But I can't see any change.
>
> We have just goten started on wxRuby, which is now hosted at savannah (we
> plan, eventually, to mirror the project at sourceforge). The main homepage
> for the project is the wiki which you can find at www.wxruby.org but you
> won't find much substance there, yet (as I said we are just getting
> started).
>
I'd glad to see www.wxruby.org is working on.
I belive WxRuby will be as powerful as WxPython  in a few months.

> > So I made my own version of wxruby adapted from wxPython only for
> > MS-Windows.
> > It just works but if fails to exit gracefully.
> > I wish someone maintain wxruby project for other platforms and document.
> >
> > Download at http://www.physics.pe.ly/wxruby.zip
>
> Thanks, I just downloaded this and will evaluate it this weekend to see if
> we can use your initial work to accelerate the project.
>
> What is it about this port that makes it windows only?
>
Because I tested only in Windows XP.
It needs some modifications for other platforms.

> Curt
>

Park Heesob







From curt@hibbs.com Fri Sep 20 10:54:02 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sPAQ-0007vX-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:54:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sPAK-0007u6-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:54:01 -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.10)
	id 17sPAK-0007u0-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 10:53:56 -0400
Received: (cpmta 19437 invoked from network); 20 Sep 2002 07:53:52 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 20 Sep 2002 07:53:52 -0700
X-Sent: 20 Sep 2002 14:53:52 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 20 Sep 2002 07:53:50 -0700
Message-ID: <INEGJNJOFAMNDPNEABNECEMPELAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000A_01C2607A.DB807260"
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.2600.0000
Importance: Normal
Subject: [Wxruby-dev] This is a test
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C2607A.DB807260
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I'm sending this message as a test because it seems like my posts to wxRuby
ML are not coming back to me.

Curt

------=_NextPart_000_000A_01C2607A.DB807260
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D063505214-20092002><FONT face=3DArial size=3D2>I'm =
sending this=20
message as a test because it seems like my posts to wxRuby ML are not =
coming=20
back to me.</FONT></SPAN></DIV>
<DIV><SPAN class=3D063505214-20092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D063505214-20092002><FONT face=3DArial=20
size=3D2>Curt</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_000A_01C2607A.DB807260--




From curt@hibbs.com Fri Sep 20 11:26:44 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sPg4-0004FE-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 11:26:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sPg1-0004EV-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 11:26:43 -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.10)
	id 17sPg1-0004E8-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 20 Sep 2002 11:26:41 -0400
Received: (cpmta 15712 invoked from network); 20 Sep 2002 08:26:38 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.71) with SMTP; 20 Sep 2002 08:26:38 -0700
X-Sent: 20 Sep 2002 15:26:38 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "Tobias Peters" <tobias@medi.physik.uni-oldenburg.de>,
	"Park Heesob" <phasis@kornet.net>
Cc: "Curt Hibbs" <curt@hibbs.com>,
	"wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>,
	"Bob Calco" <robert.calco@verizon.net>,
	"Rich Kilmer" <rich@infoether.com>,
	"Laurent Julliard" <laurent@moldus.org>
Date: Fri, 20 Sep 2002 08:26:36 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEOENAELAA.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)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <Pine.LNX.4.44.0209201451050.13098-100000@andromeda>
Importance: Normal
Subject: [Wxruby-dev] RE: wxWindows for Ruby Again
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Tobias Peters wrote:
>
> On Fri, 20 Sep 2002, Park Heesob wrote:
>
> > Because I tested only in Windows XP.
> > It needs some modifications for other platforms.
> >
> > > Curt
>
> I just downloaded it and tried to compile on linux. extconf.rb contains
> visual c++ specific stuff. I replaced it with:
>
> require 'mkmf'
> $CFLAGS += `wx-config --cflags`
> $libs += `wx-config --libs`
> create_makefile('wx')
>
> then compilation fails with
>
> g++ -fPIC -g -O2 -I/usr/X11R6/lib/wx/include/gtk-2.2 -I/usr/X11R6/include
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT
> -I/home/tobias/lib/ruby/1.6/i686-linux -I. -I/home/tobias/include    -c -o
> wx_wrap.o wx_wrap.cpp
> wx_wrap.cpp:1269: wx/tglbtn.h: No such file or directory
> wx_wrap.cpp:1425: wx/fdrepdlg.h: No such file or directory
> wx_wrap.cpp:1491: wx/popupwin.h: No such file or directory
> wx_wrap.cpp:1492: wx/tipwin.h: No such file or directory
>
> I give up here because I don't know anything about wxwindows. Maybe it's
> due to the wx library version:
>
> $ wx-config --version
> 2.2.9
>
> and you state I need wxWindows 1.3.2 .

I am assuming that he really meant to say wxWindows 2.3.2 (which is the most
recent version).

> Thanks for your work, Park!

Yes, definitely!

>   Tobias

Let me say a few words about the approach we are taking in the development
of wxRuby, because it differs from what they did with wxPython.

The problem with the wxPython implementation is that in their interface
files they duplicated all of the definitions in the wxWindows headers files
(in fairness, they may have had no choice as they were using SWIG 1.1). Over
time this becomes a maintenance headache because every time a new version of
wxWindows is released, you have to do a diff to see what changed and then
duplicate those changes in the interface files.

SWIG 1.3.14 (the current version) has a much better implementation of the
c/c++ preprocessor and is, consequently, better able to directly process
header files without the need for interface files. We started with a copy of
the wxPython interface files, intending to port them, but quickly decided to
discard them and try to wrap wxWindows with as little such duplication as
possible.

The existence for Park's working (on windows) port of the wxPython
implementation will probably alter our approach. What I am going to
investigate this weekend, is using Park's port as a working starting point
and then systematically remove the duplications (where possible).

Thanks again, Park!

Curt




From curt@hibbs.com Sat Sep 21 02:35:12 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17sdrE-00020z-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sat, 21 Sep 2002 02:35:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17sdrA-00020n-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sat, 21 Sep 2002 02:35:10 -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.10)
	id 17sdr9-00020e-00
	for wxruby-dev@mail.freesoftware.fsf.org; Sat, 21 Sep 2002 02:35:07 -0400
Received: (cpmta 2484 invoked from network); 20 Sep 2002 23:35:03 -0700
Received: from 148.63.129.187 (HELO L5)
  by smtp.hibbs.com (209.228.32.64) with SMTP; 20 Sep 2002 23:35:03 -0700
X-Sent: 21 Sep 2002 06:35:03 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 20 Sep 2002 23:34:59 -0700
Message-ID: <INEGJNJOFAMNDPNEABNECEODELAA.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)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Subject: [Wxruby-dev] FW: wxWindows for Ruby Again
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

Park sent this directly to me, but had some relevant comments at the end --
so I am forwarding this to the wxRuby ML.

Curt

-----Original Message-----
From: Park Heesob [mailto:phasis@kornet.net]
Sent: Friday, September 20, 2002 9:02 PM
To: Curt Hibbs
Subject: Re: wxWindows for Ruby Again


Hi,
----- Original Message -----
From: "Curt Hibbs" <curt@hibbs.com>
To: "Tobias Peters" <tobias@medi.physik.uni-oldenburg.de>; "Park Heesob"
<phasis@kornet.net>
Cc: "Curt Hibbs" <curt@hibbs.com>; "wxRuby"
<wxruby-dev@mail.freesoftware.fsf.org>; "Bob Calco"
<robert.calco@verizon.net>; "Rich Kilmer" <rich@infoether.com>; "Laurent
Julliard" <laurent@moldus.org>
Sent: Saturday, September 21, 2002 12:26 AM
Subject: RE: wxWindows for Ruby Again


> Tobias Peters wrote:
> >
> > On Fri, 20 Sep 2002, Park Heesob wrote:
> >
> > > Because I tested only in Windows XP.
> > > It needs some modifications for other platforms.
> > >
> > > > Curt
> >
> > I just downloaded it and tried to compile on linux. extconf.rb contains
> > visual c++ specific stuff. I replaced it with:
> >
> > require 'mkmf'
> > $CFLAGS += `wx-config --cflags`
> > $libs += `wx-config --libs`
> > create_makefile('wx')
> >
> > then compilation fails with
> >
> >
g++ -fPIC -g -O2 -I/usr/X11R6/lib/wx/include/gtk-2.2 -I/usr/X11R6/include
> > -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT
>
> -I/home/tobias/lib/ruby/1.6/i686-linux -I. -I/home/tobias/include    -c -o
> > wx_wrap.o wx_wrap.cpp
> > wx_wrap.cpp:1269: wx/tglbtn.h: No such file or directory
> > wx_wrap.cpp:1425: wx/fdrepdlg.h: No such file or directory
> > wx_wrap.cpp:1491: wx/popupwin.h: No such file or directory
> > wx_wrap.cpp:1492: wx/tipwin.h: No such file or directory
> >
> > I give up here because I don't know anything about wxwindows. Maybe it's
> > due to the wx library version:
> >
> > $ wx-config --version
> > 2.2.9
> >
> > and you state I need wxWindows 1.3.2 .
>
> I am assuming that he really meant to say wxWindows 2.3.2 (which is the
most
> recent version).
>
Yes, you need wxWindows 2.3.2

> > Thanks for your work, Park!
>
> Yes, definitely!
>
> >   Tobias
>
> Let me say a few words about the approach we are taking in the development
> of wxRuby, because it differs from what they did with wxPython.
>
> The problem with the wxPython implementation is that in their interface
> files they duplicated all of the definitions in the wxWindows headers
files
> (in fairness, they may have had no choice as they were using SWIG 1.1).
Over
> time this becomes a maintenance headache because every time a new version
of
> wxWindows is released, you have to do a diff to see what changed and then
> duplicate those changes in the interface files.
>
> SWIG 1.3.14 (the current version) has a much better implementation of the
> c/c++ preprocessor and is, consequently, better able to directly process
> header files without the need for interface files. We started with a copy
of
> the wxPython interface files, intending to port them, but quickly decided
to
> discard them and try to wrap wxWindows with as little such duplication as
> possible.
>
> The existence for Park's working (on windows) port of the wxPython
> implementation will probably alter our approach. What I am going to
> investigate this weekend, is using Park's port as a working starting point
> and then systematically remove the duplications (where possible).
>
I know little about wxWindows, Python and SWIG.
But, I believe wxRuby is easier than wxPython.
I have examined wxPython, wxPerl, wxLua, wxBasic and wxWindows source code.
It seems that wxPython is more stable than others and it also use SWIG.
So I decided porting from wxPython.

I used SWIG 1.3.14.
It allows overloading method, but some problems in parameter type checking
for Ruby.
It also needs somes modifications of *.swg files in case of wxRuby.
Most of work I made is trial and error.
I hope you release stable wxRuby version soon or later.

> Thanks again, Park!
You're welcome.
>
> Curt
>

Park Heesob




From curt@hibbs.com Fri Sep 27 16:33:42 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
	id 17v1ny-0000y1-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 27 Sep 2002 16:33:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
	id 17v1nu-0000xi-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 27 Sep 2002 16:33:41 -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.10)
	id 17v1nt-0000xe-00
	for wxruby-dev@mail.freesoftware.fsf.org; Fri, 27 Sep 2002 16:33:38 -0400
Received: (cpmta 1535 invoked from network); 27 Sep 2002 13:33:31 -0700
Received: from 208.25.91.16 (HELO L5)
  by smtp.hibbs.com (209.228.32.65) with SMTP; 27 Sep 2002 13:33:31 -0700
X-Sent: 27 Sep 2002 20:33:31 GMT
From: "Curt Hibbs" <curt@hibbs.com>
To: "wxRuby" <wxruby-dev@mail.freesoftware.fsf.org>
Date: Fri, 27 Sep 2002 13:33:30 -0700
Message-ID: <INEGJNJOFAMNDPNEABNEKEOFEMAA.curt@hibbs.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0038_01C2662A.77D78DB0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Subject: [Wxruby-dev] Quick Update
Sender: wxruby-dev-admin@mail.freesoftware.fsf.org
Errors-To: wxruby-dev-admin@mail.freesoftware.fsf.org
X-BeenThere: wxruby-dev@mail.freesoftware.fsf.org
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: wxruby-dev@mail.freesoftware.fsf.org
List-Help: <mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=help>
List-Post: <mailto:wxruby-dev@mail.freesoftware.fsf.org>
List-Subscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=subscribe>
List-Id: <wxruby-dev.mail.freesoftware.fsf.org>
List-Unsubscribe: <http://mail.freesoftware.fsf.org/mailman/listinfo/wxruby-dev>,
	<mailto:wxruby-dev-request@mail.freesoftware.fsf.org?subject=unsubscribe>
List-Archive: <http://mail.freesoftware.fsf.org/pipermail/wxruby-dev/>

This is a multi-part message in MIME format.

------=_NextPart_000_0038_01C2662A.77D78DB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Just wanted to let you know that I am pursuing my previously announced
strategy of starting with Park's wxPython port to Ruby and cutting it down
top eliminate duplicate definitions.I haven't done very much yet (due to a
very heavy schedule at work), but I am moving forward a little at a time
when I can.

Also, it is possible that I might have to put the work on hold for the month
of October to help get the first release of FreeRIDE finished before the
Ruby Conference. We'll see - hopefully I will have time for both.

Curt

------=_NextPart_000_0038_01C2662A.77D78DB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D502422320-27092002><FONT face=3DArial size=3D2>Just =
wanted to let=20
you know that I am pursuing my previously announced strategy of starting =
with=20
Park's wxPython port to Ruby and cutting it down top eliminate duplicate =

definitions.</FONT></SPAN><SPAN class=3D502422320-27092002><FONT =
face=3DArial=20
size=3D2>I haven't done very much yet (due to a very heavy schedule at =
work), but=20
I am moving forward a little at a time when I can. </FONT></SPAN></DIV>
<DIV><SPAN class=3D502422320-27092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D502422320-27092002><FONT face=3DArial size=3D2>Also, =
it is possible=20
that I might have to put the work on hold for the month of October to =
help get=20
the first release of FreeRIDE finished before the Ruby Conference. We'll =
see -=20
hopefully I will have time for both.</FONT></SPAN></DIV>
<DIV><SPAN class=3D502422320-27092002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D502422320-27092002><FONT face=3DArial=20
size=3D2>Curt</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_0038_01C2662A.77D78DB0--




