fxruby 1.6.7 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/build.html +24 -24
- data/doc/ch03s02.html +1 -1
- data/doc/ch03s03.html +1 -1
- data/doc/ch03s04.html +1 -1
- data/doc/ch03s05.html +1 -1
- data/doc/ch04s02.html +6 -7
- data/doc/ch04s03.html +1 -1
- data/doc/ch04s04.html +1 -1
- data/doc/ch05s02.html +44 -46
- data/doc/ch05s03.html +21 -22
- data/doc/changes.html +31 -24
- data/doc/clipboardtut.html +7 -8
- data/doc/differences.html +9 -9
- data/doc/dragdroptut.html +52 -55
- data/doc/events.html +7 -7
- data/doc/examples.html +24 -24
- data/doc/gems.html +10 -10
- data/doc/goals.html +8 -6
- data/doc/implementation.html +1 -1
- data/doc/infosources.html +5 -5
- data/doc/library.html +5 -5
- data/doc/opengl.html +5 -5
- data/doc/pt01.html +1 -1
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +8 -8
- data/doc/style.css +246 -2
- data/doc/subversion.html +1 -1
- data/doc/tutorial1.html +2 -2
- data/doc/unicode.html +2 -2
- data/examples/babelfish.rb +0 -1
- data/examples/bounce.rb +0 -1
- data/examples/button.rb +0 -1
- data/examples/datatarget.rb +0 -1
- data/examples/dialog.rb +0 -1
- data/examples/dilbert.rb +0 -1
- data/examples/dirlist.rb +0 -1
- data/examples/dragdrop.rb +0 -1
- data/examples/dragsource.rb +0 -1
- data/examples/dropsite.rb +1 -2
- data/examples/foursplit.rb +0 -1
- data/examples/gltest.rb +0 -1
- data/examples/glviewer.rb +0 -1
- data/examples/groupbox.rb +0 -1
- data/examples/header.rb +0 -1
- data/examples/iconlist.rb +0 -1
- data/examples/image.rb +0 -1
- data/examples/imageviewer.rb +0 -1
- data/examples/inputs.rb +0 -1
- data/examples/mditest.rb +0 -1
- data/examples/pig.rb +0 -1
- data/examples/raabrowser.rb +0 -1
- data/examples/ratio.rb +0 -1
- data/examples/rulerview.rb +0 -1
- data/examples/scribble.rb +0 -1
- data/examples/shutter.rb +0 -1
- data/examples/splitter.rb +0 -1
- data/examples/tabbook.rb +0 -1
- data/examples/table.rb +0 -1
- data/ext/fox16/FXRuby.cpp +3 -4
- data/lib/fox16/version.rb +1 -1
- metadata +2 -3
- data/doc/todo.html +0 -40
data/doc/subversion.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://svnbook.red-bean.com/" target="_top">book</a>.</p><p>You're also going to need to have a working <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.swig.org/" target="_top">SWIG</a> installation so that you can
|
15
15
|
generate the C++ source files from the SWIG interface files. As of this
|
16
16
|
writing, FXRuby requires SWIG version 1.3.22; later versions of SWIG will
|
17
|
-
not work, nor will versions earlier than about 1.3.15.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
17
|
+
not work, nor will versions earlier than about 1.3.15.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e5431"></a>Checking out the code</h2></div></div></div><p>To check out the development version (i.e. the trunk) for FXRuby,
|
18
18
|
type the following command:</p><pre class="screen">svn checkout svn://rubyforge.org/var/svn/fxruby/trunk/FXRuby</pre><p>Next, you'll need to use SWIG to generate the C++ source code from
|
19
19
|
the SWIG interface files. To do that, type:</p><pre class="screen">rake swig</pre><p>At this point, you should be ready to change to the top-level
|
20
20
|
directory and go through the normal build and installation process, as
|
data/doc/tutorial1.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
<html><head>
|
2
2
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
3
|
-
<title>Chapter 3. Hello, World!</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt01.html" title="Part I. The Basics"><link rel="prev" href="gems.html" title="Chapter 2. Installing from Gems"><link rel="next" href="ch03s02.html" title="Better living through buttons"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Hello, World!</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gems.html">Prev</a> </td><th width="60%" align="center">Part I. The Basics</th><td width="20%" align="right"> <a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="tutorial1"></a>Chapter 3. Hello, World!</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="tutorial1.html#
|
3
|
+
<title>Chapter 3. Hello, World!</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt01.html" title="Part I. The Basics"><link rel="prev" href="gems.html" title="Chapter 2. Installing from Gems"><link rel="next" href="ch03s02.html" title="Better living through buttons"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Hello, World!</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gems.html">Prev</a> </td><th width="60%" align="center">Part I. The Basics</th><td width="20%" align="right"> <a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="tutorial1"></a>Chapter 3. Hello, World!</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="tutorial1.html#d0e614">First Things First</a></span></dt><dt><span class="section"><a href="ch03s02.html">Better living through buttons</a></span></dt><dt><span class="section"><a href="ch03s03.html">Messages</a></span></dt><dt><span class="section"><a href="ch03s04.html">Adding a tool tip</a></span></dt><dt><span class="section"><a href="ch03s05.html">Adding an icon</a></span></dt></dl></div><p>There are a few things common to all programs that use FXRuby, and the
|
4
4
|
purpose of this chapter is to help you get familiar with those. We'll do
|
5
5
|
this by developing a short program that simply displays a button containing
|
6
6
|
the text, "Hello, World!". For reference, this program is included in the
|
7
7
|
<code class="filename">examples</code> subdirectory of the standard FXRuby source
|
8
|
-
code distribution.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
8
|
+
code distribution.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e614"></a>First Things First</h2></div></div></div><p>All of the code associated with the FXRuby extension is provided by
|
9
9
|
the <code class="classname">fox16 </code>gem, so we need to start by requiring
|
10
10
|
this gem:</p><pre class="programlisting">require 'fox16'</pre><p>Since all of the FXRuby classes are defined under the
|
11
11
|
<code class="classname">Fox</code> module, you'd normally need to refer to them
|
data/doc/unicode.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
<html><head>
|
2
2
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
3
|
-
<title>Chapter 6. Unicode and FXRuby</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt01.html" title="Part I. The Basics"><link rel="prev" href="ch05s03.html" title="Putting It All Together"><link rel="next" href="examples.html" title="Chapter 7. Examples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 6. Unicode and FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch05s03.html">Prev</a> </td><th width="60%" align="center">Part I. The Basics</th><td width="20%" align="right"> <a accesskey="n" href="examples.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="unicode"></a>Chapter 6. Unicode and FXRuby</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="unicode.html#
|
3
|
+
<title>Chapter 6. Unicode and FXRuby</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt01.html" title="Part I. The Basics"><link rel="prev" href="ch05s03.html" title="Putting It All Together"><link rel="next" href="examples.html" title="Chapter 7. Examples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 6. Unicode and FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch05s03.html">Prev</a> </td><th width="60%" align="center">Part I. The Basics</th><td width="20%" align="right"> <a accesskey="n" href="examples.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="unicode"></a>Chapter 6. Unicode and FXRuby</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="unicode.html#d0e1628">Basic Application</a></span></dt></dl></div><p>Beginning with version 1.6, FOX and FXRuby provide support for the
|
4
4
|
display of Unicode strings in FOX widgets. For some excellent discussion
|
5
5
|
about how to use Unicode in Ruby, I recommend Patrick Hall's article, <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://ruphus.com/blog/2005/06/11/ruby-and-unicode/" target="_top">"Ruby and
|
6
6
|
Unicode"</a> and why the lucky stiff's follow-up article, <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://redhanded.hobix.com/inspect/closingInOnUnicodeWithJcode.html" target="_top">"Closing
|
7
7
|
in on Unicode with Jcode"</a>. Here, we're going to make use of the
|
8
8
|
ideas in those articles to give a quick demonstration of how to use FXRuby's
|
9
|
-
support for Unicode.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
9
|
+
support for Unicode.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1628"></a>Basic Application</h2></div></div></div><p>Here's the original version of our "Hello, World!" program:</p><pre class="programlisting">require 'fox16'
|
10
10
|
|
11
11
|
include Fox
|
12
12
|
|
data/examples/babelfish.rb
CHANGED
data/examples/bounce.rb
CHANGED
data/examples/button.rb
CHANGED
data/examples/datatarget.rb
CHANGED
data/examples/dialog.rb
CHANGED
data/examples/dilbert.rb
CHANGED
data/examples/dirlist.rb
CHANGED
data/examples/dragdrop.rb
CHANGED
data/examples/dragsource.rb
CHANGED
data/examples/dropsite.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'fox16'
|
2
|
-
require 'fox16/kwargs'
|
3
2
|
|
4
3
|
include Fox
|
5
4
|
|
@@ -7,7 +6,7 @@ class DropSite < FXMainWindow
|
|
7
6
|
|
8
7
|
def initialize(anApp)
|
9
8
|
# Initialize base class
|
10
|
-
super(anApp, "Drop Site"
|
9
|
+
super(anApp, "Drop Site", :opts => DECOR_ALL, :width => 400, :height => 300)
|
11
10
|
|
12
11
|
# Fill main window with canvas
|
13
12
|
@canvas = FXCanvas.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
data/examples/foursplit.rb
CHANGED
data/examples/gltest.rb
CHANGED
data/examples/glviewer.rb
CHANGED
data/examples/groupbox.rb
CHANGED
data/examples/header.rb
CHANGED
data/examples/iconlist.rb
CHANGED
data/examples/image.rb
CHANGED
data/examples/imageviewer.rb
CHANGED
data/examples/inputs.rb
CHANGED
data/examples/mditest.rb
CHANGED
data/examples/pig.rb
CHANGED
data/examples/raabrowser.rb
CHANGED
data/examples/ratio.rb
CHANGED
data/examples/rulerview.rb
CHANGED
data/examples/scribble.rb
CHANGED
data/examples/shutter.rb
CHANGED
data/examples/splitter.rb
CHANGED
data/examples/tabbook.rb
CHANGED
data/examples/table.rb
CHANGED
data/ext/fox16/FXRuby.cpp
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
***********************************************************************/
|
22
22
|
|
23
23
|
/***********************************************************************
|
24
|
-
* $Id: FXRuby.cpp
|
24
|
+
* $Id: FXRuby.cpp 2643 2007-04-05 03:22:03Z lyle $
|
25
25
|
***********************************************************************/
|
26
26
|
|
27
27
|
#ifdef _MSC_VER
|
@@ -136,13 +136,11 @@ VALUE FXRbNewPointerObj(void *ptr,swig_type_info* ty){
|
|
136
136
|
FXASSERT(ty!=0);
|
137
137
|
VALUE obj;
|
138
138
|
FXRubyObjDesc *desc;
|
139
|
-
int result;
|
140
139
|
if(FXMALLOC(&desc,FXRubyObjDesc,1)){
|
141
140
|
obj=SWIG_Ruby_NewPointerObj(ptr,ty,1);
|
142
141
|
desc->obj=obj;
|
143
142
|
desc->borrowed=true;
|
144
|
-
|
145
|
-
FXASSERT(result==0);
|
143
|
+
st_insert(FXRuby_Objects,reinterpret_cast<st_data_t>(ptr),reinterpret_cast<st_data_t>(desc));
|
146
144
|
return obj;
|
147
145
|
}
|
148
146
|
else{
|
@@ -2011,6 +2009,7 @@ extern "C" void Init_fox16(void) {
|
|
2011
2009
|
REQUIRE("fox16/glgroup");
|
2012
2010
|
REQUIRE("fox16/execute_nonmodal");
|
2013
2011
|
REQUIRE("fox16/version");
|
2012
|
+
REQUIRE("fox16/kwargs");
|
2014
2013
|
|
2015
2014
|
id_assocs=rb_intern("@assocs");
|
2016
2015
|
id_backtrace=rb_intern("backtrace");
|
data/lib/fox16/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fxruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.6.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.6.8
|
7
|
+
date: 2007-04-04 00:00:00 -05:00
|
8
8
|
summary: FXRuby is the Ruby binding to the FOX GUI toolkit.
|
9
9
|
require_paths:
|
10
10
|
- ext/fox16
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- doc/pt02.html
|
64
64
|
- doc/scintilla.html
|
65
65
|
- doc/subversion.html
|
66
|
-
- doc/todo.html
|
67
66
|
- doc/tutorial1.html
|
68
67
|
- doc/unicode.html
|
69
68
|
- doc/images/babelfish.png
|
data/doc/todo.html
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
<html><head>
|
2
|
-
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
3
|
-
<title>Chapter 9. To-do list</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt01.html" title="Part I. The Basics"><link rel="prev" href="events.html" title="Chapter 8. FXRuby's Message-Target System"><link rel="next" href="infosources.html" title="Chapter 10. Other Sources of Information"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 9. To-do list</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="events.html">Prev</a> </td><th width="60%" align="center">Part I. The Basics</th><td width="20%" align="right"> <a accesskey="n" href="infosources.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="todo"></a>Chapter 9. To-do list</h2></div></div></div><div class="itemizedlist"><ul type="bullet"><li style="list-style-type: disc"><p>I haven't yet paid much attention to some of the more esoteric
|
4
|
-
issues such as multithreaded applications, or interactions with other
|
5
|
-
popular Ruby extensions. FXRuby seems to cooperate well with Ruby's
|
6
|
-
thread scheduler on all platforms, although threading support for the
|
7
|
-
mswin32 build of Ruby was broken for Ruby versions 1.6.7 and earlier.
|
8
|
-
For best results, use Ruby versions 1.6.8 or later.</p></li><li style="list-style-type: disc"><p>More examples are always good. Instead of (or in addition to)
|
9
|
-
merely cloning the C++ examples from the standard FOX distribution, it
|
10
|
-
would be nice to have original example programs that demonstrate
|
11
|
-
Ruby's special strengths.</p></li><li style="list-style-type: disc"><p>Documentation is of course a big weakness at this point. I am
|
12
|
-
slowly building up a set of "pseudo-sources" with RDoc-style
|
13
|
-
comments that can be used to generate API documentation but this is far
|
14
|
-
from complete (see the <code class="filename">rdoc-sources</code>
|
15
|
-
directory in the standard source distribution).</p></li><li style="list-style-type: disc"><p>Many people have expressed interest in a framework similar to
|
16
|
-
Tk's <code class="classname">Canvas</code> widget that allows you to draw
|
17
|
-
and drag 2-D shapes around, etc. Should be able to implement this kind
|
18
|
-
of thing directly in Ruby code (i.e. no need to write it in C++ first
|
19
|
-
and then "wrap" it).</p></li><li style="list-style-type: disc"><p>There is no native Mac OS X port of FOX, but many people are
|
20
|
-
successfully building and running FOX and FXRuby applications on Mac OS
|
21
|
-
X using Apple's X11 server implementation. For more information,
|
22
|
-
please see the <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.fox-toolkit.net/cgi-bin/wiki.pl?Mac_OS_X" target="_top">Mac OS X</a>
|
23
|
-
page at the <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.fox-toolkit.net" target="_top">FOX Community Wiki</a>
|
24
|
-
site.</p></li><li style="list-style-type: disc"><p>Need to investigate how well FXRuby-based applications work with
|
25
|
-
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://exerb.sourceforge.jp/index.en.html" target="_top">exerb</a>,
|
26
|
-
and perhaps add a section to the documentation about how to do this.</p></li><li style="list-style-type: disc"><p>As of this writing, FOX doesn't provide any support for
|
27
|
-
internationalization (I18N) or Unicode text and so FXRuby doesn't
|
28
|
-
either. It is possible that FOX 1.2 will include some I18N support (see
|
29
|
-
the <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.fox-toolkit.net/cgi-bin/wiki.pl?FAQ" target="_top">FAQ</a>
|
30
|
-
at the <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.fox-toolkit.net" target="_top">FOX Community Wiki</a>
|
31
|
-
site), and if so, appropriate changes will be made to FXRuby at that
|
32
|
-
time.</p></li><li style="list-style-type: disc"><p>FOX's list-like widgets (such as <code class="classname">FXList</code>)
|
33
|
-
behave differently from Ruby container objects (such as
|
34
|
-
<code class="classname">Array</code>) in the sense that when a list widget is
|
35
|
-
destroyed, it typically destroys all of its contained items at the same
|
36
|
-
time. One consequence of this behavior is that you can end up with Ruby
|
37
|
-
objects that refer to dead C++ objects (a variation of the dangling
|
38
|
-
pointer problem familiar to C/C++ programmers). I would like to see if
|
39
|
-
this behavior can be modified for FXRuby so that it's impossible to
|
40
|
-
end up with these "dangling references".</p></li></ul></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="events.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pt01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="infosources.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 8. FXRuby's Message-Target System </td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 10. Other Sources of Information</td></tr></table></div></body></html>
|