fxruby 1.6.18-universal-darwin-9 → 1.6.19-universal-darwin-9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,5 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
- require 'ftools'
4
3
  require 'tempfile'
5
4
 
6
5
  include Fox
@@ -84,7 +83,7 @@ class TC_FXFileStream < Test::Unit::TestCase
84
83
 
85
84
  def teardown
86
85
  if File.exists?("goobers")
87
- File.rm_f("goobers")
86
+ FileUtils.rm_f("goobers")
88
87
  end
89
88
  end
90
89
  end
data/tests/TC_FXId.rb CHANGED
@@ -10,10 +10,10 @@ class TC_FXId < TestCase
10
10
  end
11
11
 
12
12
  def test_created?
13
- assert(!mainWindow.created?)
13
+ assert !mainWindow.created?
14
14
  app.create
15
- assert(mainWindow.created?)
15
+ assert mainWindow.created?, "main window should be created after call to FXApp#create"
16
16
  mainWindow.destroy
17
- assert(!mainWindow.created?)
17
+ assert !mainWindow.created?
18
18
  end
19
19
  end
data/tests/TC_FXQuatf.rb CHANGED
@@ -7,63 +7,83 @@ class TC_FXQuatf < Test::Unit::TestCase
7
7
  def setup
8
8
  @quat = FXQuatf.new
9
9
  end
10
+
10
11
  def test_default_constructor
11
12
  q = FXQuatf.new
12
13
  end
14
+
13
15
  def test_construct_from_axis_and_angle
14
16
  axis = FXVec3f.new(1.0, 1.0, 1.0)
15
17
  q = FXQuatf.new(axis)
16
18
  q = FXQuatf.new(axis, 0.0)
17
19
  end
20
+
18
21
  def test_construct_from_components
19
22
  x, y, z, w = 1.0, 1.0, 1.0, 1.0
20
23
  q = FXQuatf.new(x, y, z, w)
21
24
  end
25
+
22
26
  def test_construct_from_roll_pitch_yaw
23
27
  roll, pitch, yaw = 45.0, 45.0, 45.0
24
28
  q = FXQuatf.new(roll, pitch, yaw)
25
29
  end
30
+
26
31
  def test_adjust!
27
32
  adjusted = @quat.adjust!
28
33
  assert_same(@quat, adjusted)
29
34
  end
35
+
30
36
  def test_setRollPitchYaw
31
37
  roll, pitch, yaw = 0.0, 0.0, 0.0
32
38
  @quat.setRollPitchYaw(roll, pitch, yaw)
33
39
  end
40
+
34
41
  def test_getRollPitchYaw
35
42
  rpy = @quat.getRollPitchYaw()
36
43
  assert_instance_of(Array, rpy)
37
44
  assert_equal(3, rpy.length)
38
45
  end
46
+
39
47
  def test_exp
40
48
  expQuat = @quat.exp
41
49
  assert_instance_of(FXQuatf, expQuat)
42
50
  end
51
+
43
52
  def test_log
44
53
  logQuat = @quat.log
45
54
  assert_instance_of(FXQuatf, logQuat)
46
55
  end
56
+
47
57
  def test_invert
48
58
  invertQuat = @quat.invert
49
59
  assert_instance_of(FXQuatf, invertQuat)
50
60
  end
61
+
51
62
  def test_conj
52
63
  conjQuat = @quat.conj
53
64
  assert_instance_of(FXQuatf, conjQuat)
54
65
  end
55
- def test_mul
56
- anotherQuat = FXQuatf.new
57
- product = @quat*anotherQuat
66
+
67
+ def test_multiplication_result_is_another_quat
68
+ q1 = FXQuatf.new(1, 2, 3, 4)
69
+ q2 = FXQuatf.new(1, 2, 3, 4)
70
+ product = q1*q2
58
71
  assert_instance_of(FXQuatf, product)
59
- assert_equal(product, anotherQuat*@quat)
60
72
  end
73
+
74
+ def test_multiplication_is_commutative
75
+ q1 = FXQuatf.new(1, 2, 3, 4)
76
+ q2 = FXQuatf.new(1, 2, 3, 4)
77
+ assert_equal(q1*q2, q2*q1)
78
+ end
79
+
61
80
  def test_arc
62
81
  a = FXVec3f.new(0.0, 0.0, 0.0)
63
82
  b = FXVec3f.new(0.0, 0.0, 0.0)
64
83
  q = FXQuatf.arc(a, b)
65
84
  assert_instance_of(FXQuatf, q)
66
85
  end
86
+
67
87
  def test_lerp
68
88
  u = FXQuatf.new
69
89
  v = FXQuatf.new
data/tests/stress1.rb CHANGED
@@ -20,7 +20,7 @@ class DirTree < FXTreeList
20
20
 
21
21
  def create
22
22
  super
23
- item = addItemLast(nil, "root")
23
+ item = appendItem(nil, "root")
24
24
  @currentItem = item
25
25
  expand
26
26
  end
@@ -34,7 +34,7 @@ class DirTree < FXTreeList
34
34
  def listSubDir(parentItem)
35
35
  entries = (1..NUMBER_OF_ITEMS).collect { |i| i.to_s }
36
36
  entries.each do |entry|
37
- item = addItemLast(parentItem, entry)
37
+ item = appendItem(parentItem, entry)
38
38
  @currentItem = item if entry == "1"
39
39
  end
40
40
  end
data/web/community.html CHANGED
@@ -3,6 +3,7 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
+ <meta name="verify-v1" content="oJj9+cXtpch0MSVjYgtyvC+Y57yYC6Cz9zFOd1+FXSw=" />
6
7
  <link rel="stylesheet" href="css/style.css" type="text/css" />
7
8
  <link rel="meta" title="DOAP" type="application/rdf+xml" href="http://www.fxruby.org/doap.rdf" />
8
9
  <title>Community</title>
@@ -53,24 +54,10 @@
53
54
  <div id="main">
54
55
 
55
56
  <h1>Mailing Lists</h1>
56
-
57
-
58
- <h2>Announcements</h2>
59
-
60
-
61
- <p>The announcements list is a low-traffic list on which new releases of FXRuby, as well as software based on FXRuby, will be
62
- announced. Discussions on various topics however should preferably take place in the users list, to prevent swamping people&#8217;s
63
- mailboxes. To subscribe, fill out the <a href="http://rubyforge.org/mailman/listinfo/fxruby-announce" title="Announcements List Subscription
64
- Form">web-based subscription form</a>.</p>
65
-
66
-
67
- <h2>General Discussion</h2>
68
-
69
-
70
- <p>The users list is intended for discussion on various FOX and FXRuby topics between developers and/or users of FXRuby and
71
- applications based on it. If you have questions, feel free to post your questions here, as many people are only too happy to
72
- answer them. To subscribe, fill out the <a href="http://rubyforge.org/mailman/listinfo/fxruby-users" title="General Discussion List Subscription
73
- Form">web-based subscription form</a>.</p>
57
+ <h2>Announcements</h2>
58
+ <p>The announcements list is a low-traffic list on which new releases of FXRuby, as well as software based on FXRuby, will be announced. Discussions on various topics however should preferably take place in the users list, to prevent swamping people&#8217;s mailboxes. To subscribe, fill out the <a href="http://rubyforge.org/mailman/listinfo/fxruby-announce" title="Announcements List Subscription Form">web-based subscription form</a>.</p>
59
+ <h2>General Discussion</h2>
60
+ <p>The users list is intended for discussion on various FOX and FXRuby topics between developers and/or users of FXRuby and applications based on it. If you have questions, feel free to post your questions here, as many people are only too happy to answer them. To subscribe, fill out the <a href="http://rubyforge.org/mailman/listinfo/fxruby-users" title="General Discussion List Subscription Form">web-based subscription form</a>.</p>
74
61
 
75
62
  </div>
76
63
 
@@ -3,6 +3,7 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
+ <meta name="verify-v1" content="oJj9+cXtpch0MSVjYgtyvC+Y57yYC6Cz9zFOd1+FXSw=" />
6
7
  <link rel="stylesheet" href="css/style.css" type="text/css" />
7
8
  <link rel="meta" title="DOAP" type="application/rdf+xml" href="http://www.fxruby.org/doap.rdf" />
8
9
  <title>Documentation</title>
@@ -53,30 +54,12 @@
53
54
  <div id="main">
54
55
 
55
56
  <h1>Books</h1>
56
-
57
-
58
- <p>The book <cite>FXRuby: Create Lean and Mean GUIs with Ruby</cite> (available from the <a href="http://www.pragmaticprogrammer.com/titles/fxruby/">Pragmatic
59
- Programmers</a> and other booksellers) is the best print source of documentation
60
- for FXRuby. It&#8217;s also available as a PDF.</p>
61
-
62
-
63
- <p>Several other books, including <cite>Ruby Developer&#8217;s Guide</cite> and <cite>The Ruby Way</cite>, include chapters or sections
64
- on GUI development with FXRuby.</p>
65
-
66
-
67
- <h1>Online</h1>
68
-
69
-
70
- <p>The <a href="http://www.fxruby.org/doc/book.html">FXRuby User&#8217;s Guide</a> provides detailed installation instructions as well
71
- as a handful of tutorial exercises to get you started with FXRuby development.</p>
72
-
73
-
74
- <p>If you&#8217;re looking for API reference documentation, all of the classes and methods for FXRuby are documented
75
- <a href="http://www.fxruby.org/doc/api/">here</a>.</p>
76
-
77
-
78
- <p>Other good sources of documentation include the <a href="http://www.fox-toolkit.org/">FOX home page</a> and the <a href="http://www.fox-toolkit.net/">FOX Community
79
- Wiki</a> site.</p>
57
+ <p>The book <cite>FXRuby: Create Lean and Mean GUIs with Ruby</cite> (available from the <a href="http://www.pragmaticprogrammer.com/titles/fxruby/">Pragmatic Programmers</a> and other booksellers) is the best print source of documentation for FXRuby. It&#8217;s also available as a PDF.</p>
58
+ <p>Several other books, including <cite>Ruby Developer&#8217;s Guide</cite> and <cite>The Ruby Way</cite>, include chapters or sections on GUI development with FXRuby.</p>
59
+ <h1>Online</h1>
60
+ <p>The <a href="http://www.fxruby.org/doc/book.html">FXRuby User&#8217;s Guide</a> provides detailed installation instructions as well as a handful of tutorial exercises to get you started with FXRuby development.</p>
61
+ <p>If you&#8217;re looking for API reference documentation, all of the classes and methods for FXRuby are documented <a href="http://www.fxruby.org/doc/api/">here</a>.</p>
62
+ <p>Other good sources of documentation include the <a href="http://www.fox-toolkit.org/">FOX home page</a> and the <a href="http://www.fox-toolkit.net/">FOX Community Wiki</a> site.</p>
80
63
 
81
64
  </div>
82
65
 
data/web/downloads.html CHANGED
@@ -3,6 +3,7 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
+ <meta name="verify-v1" content="oJj9+cXtpch0MSVjYgtyvC+Y57yYC6Cz9zFOd1+FXSw=" />
6
7
  <link rel="stylesheet" href="css/style.css" type="text/css" />
7
8
  <link rel="meta" title="DOAP" type="application/rdf+xml" href="http://www.fxruby.org/doap.rdf" />
8
9
  <title>Downloads</title>
@@ -52,45 +53,15 @@
52
53
 
53
54
  <div id="main">
54
55
 
55
- <p>The latest version of FXRuby is always available from the <a href="http://rubyforge.org/projects/fxruby/">RubyForge project page</a>. The
56
- RubyForge releases should always have accompanying release notes describing the changes for that release. A cumulative ChangeLog
57
- file is also included in the FXRuby source code distribution. Note that any FXRuby 1.6.x release should be compatible with any
58
- FOX 1.6.x release, but won&#8217;t be compatible with earlier (or later) versions of FOX.</p>
59
-
60
-
61
- <h1>Source Code</h1>
62
-
63
-
64
- <p>The FXRuby source code is distributed as a gzipped tar archive, and is available for download from the <a href="http://rubyforge.org/projects/fxruby/">RubyForge project
65
- page</a>.</p>
66
-
67
-
68
- <h1>Binaries for Unix/Linux</h1>
69
-
70
-
71
- <p>Precompiled binaries for FOX, FXScintilla and FXRuby are available for various Unix/Linux platforms, but not in any
72
- centralized way.</p>
73
-
74
-
75
- <p>Both the <a href="http://www.fox-toolkit.net/">FOX Community Wiki</a> site and the main <a href="http://www.fox-toolkit.org/">FOX web site</a> list a
76
- number of independent sources for package downloads for various Linux distributions, but many of these are for older FOX
77
- releases. You may have better luck using a RPM search engine like <a href="http://rpmfind.net/">rpmfind.net</a> to find the most recent
78
- packages for your distribution.</p>
79
-
80
-
81
- <h1>Binaries for Microsoft Windows</h1>
82
-
83
-
84
- <p>Windows installers for FXRuby are available for download from the <a href="http://rubyforge.org/projects/fxruby/">RubyForge project
85
- page</a>. The FOX and FXScintilla libraries are built into the Windows installers for FXRuby,
86
- and you should not need to download and install those packages separately. These binaries are also compatible with the standard
87
- Ruby installer for Windows that are available for download from RubyForge.</p>
88
-
89
-
90
- <p>Note that the precompiled binaries for Windows are built with OpenGL support, and thus depend on the OpenGL runtime libraries
91
- (opengl32.dll and glu32.dll). These libraries were not included with Windows 95 (earlier than OSR2), so if you&#8217;re using Ruby and
92
- FXRuby on a Windows 95 machine, you may need to download the OpenGL runtime libraries. You must have these libraries installed
93
- even if you don&#8217;t plan to do anything OpenGL-related with FXRuby.</p>
56
+ <p>The latest version of FXRuby is always available from the <a href="http://rubyforge.org/projects/fxruby/">RubyForge project page</a>. The RubyForge releases should always have accompanying release notes describing the changes for that release. A cumulative ChangeLog file is also included in the FXRuby source code distribution. Note that any FXRuby 1.6.x release should be compatible with any FOX 1.6.x release, but won&#8217;t be compatible with earlier (or later) versions of FOX.</p>
57
+ <h1>Source Code</h1>
58
+ <p>The FXRuby source code is distributed as a gzipped tar archive, and is available for download from the <a href="http://rubyforge.org/projects/fxruby/">RubyForge project page</a>.</p>
59
+ <h1>Binaries for Unix/Linux</h1>
60
+ <p>Precompiled binaries for FOX, FXScintilla and FXRuby are available for various Unix/Linux platforms, but not in any centralized way.</p>
61
+ <p>Both the <a href="http://www.fox-toolkit.net/">FOX Community Wiki</a> site and the main <a href="http://www.fox-toolkit.org/">FOX web site</a> list a number of independent sources for package downloads for various Linux distributions, but many of these are for older FOX releases. You may have better luck using a RPM search engine like <a href="http://rpmfind.net/">rpmfind.net</a> to find the most recent packages for your distribution.</p>
62
+ <h1>Binaries for Microsoft Windows</h1>
63
+ <p>Windows installers for FXRuby are available for download from the <a href="http://rubyforge.org/projects/fxruby/">RubyForge project page</a>. The FOX and FXScintilla libraries are built into the Windows installers for FXRuby, and you should not need to download and install those packages separately. These binaries are also compatible with the standard Ruby installer for Windows that are available for download from RubyForge.</p>
64
+ <p>Note that the precompiled binaries for Windows are built with OpenGL support, and thus depend on the OpenGL runtime libraries (opengl32.dll and glu32.dll). These libraries were not included with Windows 95 (earlier than OSR2), so if you&#8217;re using Ruby and FXRuby on a Windows 95 machine, you may need to download the OpenGL runtime libraries. You must have these libraries installed even if you don&#8217;t plan to do anything OpenGL-related with FXRuby.</p>
94
65
 
95
66
  </div>
96
67
 
data/web/index.html CHANGED
@@ -3,6 +3,7 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
+ <meta name="verify-v1" content="oJj9+cXtpch0MSVjYgtyvC+Y57yYC6Cz9zFOd1+FXSw=" />
6
7
  <link rel="stylesheet" href="css/style.css" type="text/css" />
7
8
  <link rel="meta" title="DOAP" type="application/rdf+xml" href="http://www.fxruby.org/doap.rdf" />
8
9
  <title>FXRuby</title>
@@ -52,27 +53,18 @@
52
53
 
53
54
  <div id="main">
54
55
 
55
- <p>FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby
56
- applications. It&#8217;s based on the <a href="http://www.fox-toolkit.org/" title="FOX Home Page">FOX Toolkit</a>, a popular open source
57
- C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you&#8217;re able to
58
- write code in the <a href="http://www.ruby-lang.org/" title="Ruby Home Page">Ruby</a> programming language that you already know and love,
59
- while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit.</p>
60
-
61
-
62
- <h1>Projects Using FXRuby</h1>
63
-
64
-
65
- <p>Projects using FXRuby include:</p>
66
-
67
-
68
- <ul>
69
- <li><a href="http://www.insula.cz/dbtalk">DbTalk</a> is an interactive GUI-based tool for database querying, programming, administration, etc. It is developed by Dalibor Sramek.</li>
70
- <li><a href="http://freeride.rubyforge.org/wiki/wiki.pl">FreeRIDE</a> is an IDE for the Ruby programming language.</li>
71
- <li><a href="http://www.fisica.uniud.it/~glast/FRED">FRED</a> is a high energy physics event display built out of Ruby and FOX by Riccardo Giannitrapani and Marco Frailis.</li>
72
- <li><a href="http://www.mondrian-ide.com/">Mondrian</a> is a cross-platform project-manager and editor for the Ruby language. Written in 100% native Ruby using the FOX GUI toolkit, Mondrian has the familiar look and feel of a modern IDE while remaining dedicated to the uniqueness of the Ruby language and its community.</li>
73
- <li><a href="http://fox-tool.rubyforge.org/">foxGUIb</a> is an interactive gui builder and codegenerator for FXRuby. This tool makes it easy to quickly build complex and good looking graphical user interfaces for Ruby.
74
- If your project uses FXRuby for its user interface, and you&#8217;d like to see it listed here, please send me an e-mail with the information.</li>
75
- </ul>
56
+ <p>FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby applications. It&#8217;s based on the <a href="http://www.fox-toolkit.org/" title="FOX Home Page">FOX Toolkit</a>, a popular open source C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you&#8217;re able to write code in the <a href="http://www.ruby-lang.org/" title="Ruby Home Page">Ruby</a> programming language that you already know and love, while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit.</p>
57
+ <h1>Projects Using FXRuby</h1>
58
+ <p>Projects using FXRuby include:</p>
59
+ <ul>
60
+ <li><a href="http://www.attiksystem.ch/beerp/beerp-the-fxruby-erp/">BeERP</a> is a commercial ERP built entirely with the FXRuby library.</li>
61
+ <li><a href="http://www.discretizer.org/">Discretizer</a> is an interactive mesh creation tool. It can be used to create geometry and meshes for three dimensional flow simulations (CFD).</li>
62
+ <li><a href="http://fox-tool.rubyforge.org/">foxGUIb</a> is an interactive gui builder and codegenerator for FXRuby. This tool makes it easy to quickly build complex and good looking graphical user interfaces for Ruby.</li>
63
+ <li><a href="http://rubyforge.org/projects/fxri/">FXRI</a> is a FXRuby Interface to RI that supports search-on-typing. FXRI is a small little program that tries to provide the desired information as fast as possible.</li>
64
+ <li><a href="http://fxtwitter.rubyforge.org/">fxtwitter</a> is a simple Twitter client written in Ruby.</li>
65
+ <li><a href="http://freeride.rubyforge.org/wiki/wiki.pl">FreeRIDE</a> is an IDE for the Ruby programming language.</li>
66
+ </ul>
67
+ <p>If your project uses FXRuby for its user interface, and you&#8217;d like to see it listed here, please send me an e-mail with the information.</p>
76
68
 
77
69
  </div>
78
70
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.18
4
+ version: 1.6.19
5
5
  platform: universal-darwin-9
6
6
  authors:
7
7
  - Lyle Johnson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-29 00:00:00 -06:00
12
+ date: 2009-03-06 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -25,6 +25,7 @@ extra_rdoc_files:
25
25
  files:
26
26
  - LICENSE
27
27
  - README
28
+ - index.html
28
29
  - doc/style.css
29
30
  - doc/apes02.html
30
31
  - doc/apes03.html
@@ -208,6 +209,7 @@ files:
208
209
  - examples/textedit/helpwindow.rb
209
210
  - examples/textedit/prefdialog.rb
210
211
  - examples/textedit/textedit.rb
212
+ - lib/fox16/accel_table.rb
211
213
  - lib/fox16/aliases.rb
212
214
  - lib/fox16/calendar.rb
213
215
  - lib/fox16/chore.rb
@@ -254,6 +256,8 @@ files:
254
256
  - tests/TC_FXDCWindow.rb
255
257
  - tests/TC_FXDialogBox.rb
256
258
  - tests/TC_FXDirList.rb
259
+ - tests/TC_FXExtentd.rb
260
+ - tests/TC_FXExtentf.rb
257
261
  - tests/TC_FXFileAssoc.rb
258
262
  - tests/TC_FXFileStream.rb
259
263
  - tests/TC_FXFoldingList.rb