fxruby 1.6.20 → 1.6.22.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/.gemtest +0 -0
  2. data/README.txt +2 -1
  3. data/Rakefile +43 -35
  4. data/TODO +4 -4
  5. data/doap.rdf +2 -2
  6. data/ext/fox16/FXRbDataTarget.cpp +2 -2
  7. data/ext/fox16/FXRuby.cpp +31 -96
  8. data/ext/fox16/core_wrap.cpp +5 -1
  9. data/ext/fox16/dialogs_wrap.cpp +4 -4
  10. data/ext/fox16/extconf.rb +15 -7
  11. data/ext/fox16/frames_wrap.cpp +1 -1
  12. data/ext/fox16/fx3d_wrap.cpp +1 -1
  13. data/ext/fox16/iconlist_wrap.cpp +2 -2
  14. data/ext/fox16/include/FXRbApp.h +2 -2
  15. data/ext/fox16/include/FXRbCommon.h +2 -0
  16. data/ext/fox16/list_wrap.cpp +3 -3
  17. data/ext/fox16/markfuncs.cpp +1 -0
  18. data/ext/fox16/treelist_wrap.cpp +2 -2
  19. data/ext/fox16/ui_wrap.cpp +3 -3
  20. data/lib/fox16/accel_table.rb +16 -3
  21. data/lib/fox16/bitmapview.rb +7 -8
  22. data/lib/fox16/core.rb +5 -5
  23. data/lib/fox16/kwargs.rb +877 -879
  24. data/lib/fox16/scintilla.rb +1321 -45
  25. data/lib/fox16/version.rb +1 -1
  26. data/scripts/generate_kwargs_lib.rb +2 -4
  27. data/swig-interfaces/FXMemoryStream.i +9 -5
  28. data/swig-interfaces/ruby-typemaps.i +4 -4
  29. data/test/TC_FXAccelTable.rb +2 -2
  30. data/test/TC_FXApp.rb +48 -2
  31. data/test/TC_FXArc.rb +2 -2
  32. data/test/TC_FXBMPIcon.rb +2 -2
  33. data/test/TC_FXBMPImage.rb +2 -2
  34. data/test/TC_FXButton.rb +2 -2
  35. data/test/TC_FXCheckButton.rb +2 -2
  36. data/test/TC_FXComboBox.rb +2 -2
  37. data/test/TC_FXDC.rb +2 -2
  38. data/test/TC_FXDCPrint.rb +6 -5
  39. data/test/TC_FXDCWindow.rb +5 -3
  40. data/test/TC_FXDataTarget.rb +2 -2
  41. data/test/TC_FXDialogBox.rb +2 -2
  42. data/test/TC_FXDirList.rb +2 -2
  43. data/test/TC_FXExtentd.rb +2 -2
  44. data/test/TC_FXExtentf.rb +2 -2
  45. data/test/TC_FXFileAssoc.rb +2 -2
  46. data/test/TC_FXFileStream.rb +2 -2
  47. data/test/TC_FXFoldingList.rb +2 -2
  48. data/test/TC_FXFont.rb +2 -2
  49. data/test/TC_FXFontDesc.rb +2 -2
  50. data/test/TC_FXGLGroup.rb +2 -2
  51. data/test/TC_FXGLShape.rb +2 -2
  52. data/test/TC_FXGLViewer.rb +2 -2
  53. data/test/TC_FXGradientBar.rb +2 -2
  54. data/test/TC_FXHeader.rb +2 -2
  55. data/test/TC_FXHiliteStyle.rb +2 -2
  56. data/test/TC_FXIconDict.rb +2 -2
  57. data/test/TC_FXIconList.rb +2 -2
  58. data/test/TC_FXId.rb +2 -2
  59. data/test/TC_FXImage.rb +2 -2
  60. data/test/TC_FXLight.rb +2 -2
  61. data/test/TC_FXList.rb +2 -2
  62. data/test/TC_FXListBox.rb +2 -2
  63. data/test/TC_FXMainWindow.rb +2 -2
  64. data/test/TC_FXMat4f.rb +2 -2
  65. data/test/TC_FXMaterial.rb +2 -16
  66. data/test/TC_FXMemoryStream.rb +6 -6
  67. data/test/TC_FXMenuCheck.rb +2 -2
  68. data/test/TC_FXMenuCommand.rb +2 -2
  69. data/test/TC_FXMenuRadio.rb +7 -7
  70. data/test/TC_FXMessageBox.rb +2 -2
  71. data/test/TC_FXPoint.rb +2 -2
  72. data/test/TC_FXQuatf.rb +2 -2
  73. data/test/TC_FXRadioButton.rb +2 -2
  74. data/test/TC_FXRanged.rb +2 -2
  75. data/test/TC_FXRangef.rb +2 -2
  76. data/test/TC_FXRectangle.rb +2 -2
  77. data/test/TC_FXRegion.rb +2 -2
  78. data/test/TC_FXRegistry.rb +2 -2
  79. data/test/TC_FXScrollArea.rb +2 -2
  80. data/test/TC_FXScrollWindow.rb +2 -2
  81. data/test/TC_FXSegment.rb +2 -2
  82. data/test/TC_FXSettings.rb +2 -2
  83. data/test/TC_FXShell.rb +2 -2
  84. data/test/TC_FXSize.rb +2 -2
  85. data/test/TC_FXStream.rb +2 -2
  86. data/test/TC_FXTable.rb +47 -47
  87. data/test/TC_FXTableItem.rb +4 -4
  88. data/test/TC_FXText.rb +4 -4
  89. data/test/TC_FXTopWindow.rb +2 -2
  90. data/test/TC_FXTreeList.rb +2 -2
  91. data/test/TC_FXTreeListBox.rb +2 -2
  92. data/test/TC_FXUndoList.rb +3 -3
  93. data/test/TC_FXVec2d.rb +2 -2
  94. data/test/TC_FXVec2f.rb +2 -2
  95. data/test/TC_FXVec3d.rb +2 -2
  96. data/test/TC_FXVec3f.rb +2 -2
  97. data/test/TC_FXVec4f.rb +2 -2
  98. data/test/TC_FXViewport.rb +2 -2
  99. data/test/TC_FXXBMIcon.rb +2 -2
  100. data/test/TC_FXXBMImage.rb +2 -2
  101. data/test/TC_FXXPMIcon.rb +2 -2
  102. data/test/TC_FXXPMImage.rb +2 -2
  103. data/test/TC_downcast.rb +2 -2
  104. metadata +112 -77
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXFontDesc < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @fontdesc = FXFontDesc.new
10
10
  end
data/test/TC_FXGLGroup.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXGLGroup < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def setup
8
8
  @group = FXGLGroup.new
9
9
  end
data/test/TC_FXGLShape.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXGLShape < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
 
8
8
  DELTA = 1.0e-5
9
9
 
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXGLViewer < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXGLViewer < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  vis = FXGLVisual.new(app, VISUAL_DOUBLEBUFFER)
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXGradientBar < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXGradientBar < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @gradientBar = FXGradientBar.new(mainWindow)
data/test/TC_FXHeader.rb CHANGED
@@ -2,9 +2,9 @@ require 'fox16'
2
2
  require 'test/unit'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXHeader < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXHeader < TestCase
8
8
 
9
9
  def setup
10
10
  super(self.class.name)
@@ -1,9 +1,9 @@
1
1
  require 'fox16'
2
2
  require 'test/unit'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXHiliteStyle < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
 
8
8
  def setup
9
9
  @style = FXHiliteStyle.new
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXIconDict < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXIconDict < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXIconList < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXIconList < TestCase
8
8
 
9
9
  private
10
10
 
data/test/TC_FXId.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXId < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXId < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
data/test/TC_FXImage.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXImage < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXImage < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
data/test/TC_FXLight.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXLight < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @light = FXLight.new
10
10
  end
data/test/TC_FXList.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXList < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXList < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @list = FXList.new(mainWindow)
data/test/TC_FXListBox.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXListBox < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXListBox < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @listBox = FXListBox.new(mainWindow)
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXMainWindow < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def test_nil_app_raises_argument_error
8
8
  assert_raise ArgumentError do
9
9
  FXMainWindow.new(nil, "title")
data/test/TC_FXMat4f.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXMat4f < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def setup
8
8
  @hmat = FXMat4f.new
9
9
  end
@@ -3,9 +3,9 @@ require 'test/unit'
3
3
  require 'fox16'
4
4
  require 'fox16/glshapes'
5
5
 
6
- include Fox
7
-
8
6
  class TC_FXMaterial < Test::Unit::TestCase
7
+ include Fox
8
+
9
9
 
10
10
  DELTA = 1.0e-6
11
11
 
@@ -55,20 +55,6 @@ class TC_FXMaterial < Test::Unit::TestCase
55
55
  assert_in_delta(0.8, @mat.emission[3], DELTA)
56
56
  end
57
57
 
58
- def test_emission
59
- @mat.emission = [0.5, 0.6, 0.7, 0.8]
60
- assert_in_delta(0.5, @mat.emission[0], DELTA)
61
- assert_in_delta(0.6, @mat.emission[1], DELTA)
62
- assert_in_delta(0.7, @mat.emission[2], DELTA)
63
- assert_in_delta(0.8, @mat.emission[3], DELTA)
64
-
65
- @mat.emission = FXVec4f.new(0.5, 0.6, 0.7, 0.8)
66
- assert_in_delta(0.5, @mat.emission[0], DELTA)
67
- assert_in_delta(0.6, @mat.emission[1], DELTA)
68
- assert_in_delta(0.7, @mat.emission[2], DELTA)
69
- assert_in_delta(0.8, @mat.emission[3], DELTA)
70
- end
71
-
72
58
  def test_shininess
73
59
  @mat.shininess = 0.5
74
60
  assert_in_delta(0.5, @mat.shininess, DELTA)
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXMemoryStream < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
 
8
8
  DEFAULT_BUFFER_SIZE = 16
9
9
 
@@ -30,10 +30,10 @@ class TC_FXMemoryStream < Test::Unit::TestCase
30
30
  end
31
31
 
32
32
  def test_open_streamload_unknown_size
33
- s = FXMemoryStream.new
34
- assert(s.open(FXStreamLoad, "foo"))
35
- s.close
36
- end
33
+ s = FXMemoryStream.new
34
+ assert(s.open(FXStreamLoad, "foo"))
35
+ s.close
36
+ end
37
37
 
38
38
  def test_open_streamsave_unknown_size
39
39
  s = FXMemoryStream.new
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXMenuCheck < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXMenuCheck < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @menuCheck = FXMenuCheck.new(mainWindow, "menuCheck")
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXMenuCommand < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXMenuCommand < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @menuCommand = FXMenuCommand.new(mainWindow, "menuCommand")
@@ -2,14 +2,14 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXMenuRadio < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXMenuRadio < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @menuRadio = FXMenuRadio.new(mainWindow, "menuRadio")
11
11
  end
12
-
12
+
13
13
  def test_setCheck_TRUE
14
14
  @menuRadio.check = Fox::TRUE
15
15
  assert_equal(true, @menuRadio.check)
@@ -18,7 +18,7 @@ class TC_FXMenuRadio < TestCase
18
18
  assert(!@menuRadio.unchecked?)
19
19
  assert(!@menuRadio.maybe?)
20
20
  end
21
-
21
+
22
22
  def test_setCheck_FALSE
23
23
  @menuRadio.check = Fox::FALSE
24
24
  assert_equal(false, @menuRadio.check)
@@ -27,7 +27,7 @@ class TC_FXMenuRadio < TestCase
27
27
  assert(@menuRadio.unchecked?)
28
28
  assert(!@menuRadio.maybe?)
29
29
  end
30
-
30
+
31
31
  def test_setCheck_MAYBE
32
32
  @menuRadio.check = Fox::MAYBE
33
33
  assert_equal(true, @menuRadio.check) # this is not a typo!
@@ -36,7 +36,7 @@ class TC_FXMenuRadio < TestCase
36
36
  assert(!@menuRadio.unchecked?)
37
37
  assert(@menuRadio.maybe?)
38
38
  end
39
-
39
+
40
40
  def test_setCheck_true
41
41
  @menuRadio.check = true
42
42
  assert_equal(true, @menuRadio.check)
@@ -45,7 +45,7 @@ class TC_FXMenuRadio < TestCase
45
45
  assert(!@menuRadio.unchecked?)
46
46
  assert(!@menuRadio.maybe?)
47
47
  end
48
-
48
+
49
49
  def test_setCheck_false
50
50
  @menuRadio.check = false
51
51
  assert_equal(false, @menuRadio.check)
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXMessageBox < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXMessageBox < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
data/test/TC_FXPoint.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXPoint < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @point1 = FXPoint.new
10
10
  @point2 = FXPoint.new(300, 200)
data/test/TC_FXQuatf.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXQuatf < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def setup
8
8
  @quat = FXQuatf.new
9
9
  end
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXRadioButton < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXRadioButton < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @radioButton = FXRadioButton.new(mainWindow, "cbText")
data/test/TC_FXRanged.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXRanged < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
 
9
9
  WIDTH, HEIGHT, DEPTH = 2, 4, 6
10
10
 
data/test/TC_FXRangef.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXRangef < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
 
9
9
  WIDTH, HEIGHT, DEPTH = 2, 4, 6
10
10
 
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXRectangle < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @rect1 = FXRectangle.new
10
10
  @rect2 = FXRectangle.new(5, 5, 300, 200)
data/test/TC_FXRegion.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXRegion < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
 
9
9
  def setup
10
10
  @region = FXRegion.new(5, 5, 10, 10)