fxruby 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/doc/apes02.html +6 -6
  2. data/doc/apes03.html +11 -11
  3. data/doc/book.html +1 -1
  4. data/doc/build.html +63 -63
  5. data/doc/ch03s02.html +7 -7
  6. data/doc/ch03s03.html +18 -18
  7. data/doc/ch03s04.html +11 -11
  8. data/doc/ch03s05.html +14 -14
  9. data/doc/ch04s02.html +14 -14
  10. data/doc/ch04s03.html +15 -15
  11. data/doc/ch04s04.html +28 -28
  12. data/doc/ch05s02.html +49 -49
  13. data/doc/ch05s03.html +8 -8
  14. data/doc/changes.html +263 -193
  15. data/doc/clipboardtut.html +57 -45
  16. data/doc/cvs.html +10 -10
  17. data/doc/differences.html +4 -4
  18. data/doc/dragdroptut.html +50 -50
  19. data/doc/events.html +11 -11
  20. data/doc/examples.html +48 -48
  21. data/doc/gems.html +37 -37
  22. data/doc/goals.html +4 -4
  23. data/doc/implementation.html +4 -4
  24. data/doc/infosources.html +6 -6
  25. data/doc/library.html +19 -19
  26. data/doc/opengl.html +31 -31
  27. data/doc/pt01.html +1 -1
  28. data/doc/pt02.html +1 -1
  29. data/doc/scintilla.html +15 -15
  30. data/doc/style.css +3 -0
  31. data/doc/todo.html +5 -5
  32. data/doc/tutorial1.html +34 -34
  33. data/doc/unicode.html +56 -0
  34. data/ext/fox16/dialogs_wrap.cpp +38 -14
  35. data/ext/fox16/frames_wrap.cpp +856 -22
  36. data/ext/fox16/fx3d_wrap.cpp +169 -144
  37. data/ext/fox16/icons_wrap.cpp +24 -6
  38. data/ext/fox16/image_wrap.cpp +24 -6
  39. data/ext/fox16/label_wrap.cpp +23 -8
  40. data/ext/fox16/markfuncs.cpp +8 -1
  41. data/ext/fox16/mdi_wrap.cpp +53 -23
  42. data/ext/fox16/menu_wrap.cpp +43 -19
  43. data/ext/fox16/scintilla_wrap.cpp +31 -7
  44. data/ext/fox16/table_wrap.cpp +31 -7
  45. data/ext/fox16/text_wrap.cpp +31 -7
  46. data/ext/fox16/treelist_wrap.cpp +300 -276
  47. data/ext/fox16/ui_wrap.cpp +385 -26
  48. data/lib/fox16/aliases.rb +3 -0
  49. data/lib/fox16/version.rb +1 -1
  50. data/rdoc-sources/FXFoldingList.rb +2 -2
  51. data/tests/TC_FXDirList.rb +1 -1
  52. data/tests/TC_FXGLViewer.rb +2 -0
  53. data/tests/TC_FXHeader.rb +1 -1
  54. data/tests/TC_FXIconList.rb +1 -1
  55. data/tests/TC_FXId.rb +1 -1
  56. data/tests/TC_FXList.rb +1 -1
  57. data/tests/TC_FXListBox.rb +1 -1
  58. data/tests/TC_FXMenuCommand.rb +0 -14
  59. data/tests/TC_FXTable.rb +0 -32
  60. data/tests/TC_FXTableItem.rb +1 -1
  61. data/tests/TC_FXTreeList.rb +1 -1
  62. data/tests/TC_FXTreeListBox.rb +1 -1
  63. metadata +5 -4
data/lib/fox16/aliases.rb CHANGED
@@ -1815,6 +1815,9 @@ module Fox
1815
1815
  def current? # :nodoc:
1816
1816
  isCurrent()
1817
1817
  end
1818
+ def isShared # :nodoc:
1819
+ shared?
1820
+ end
1818
1821
  end
1819
1822
 
1820
1823
  class FXGLContext
data/lib/fox16/version.rb CHANGED
@@ -5,7 +5,7 @@ module Fox
5
5
  # Returns the FXRuby version number as a string, e.g. "1.0.19".
6
6
  #
7
7
  def Fox.fxrubyversion
8
- "1.6.1"
8
+ "1.6.2"
9
9
  end
10
10
  end
11
11
 
@@ -469,12 +469,12 @@ module Fox
469
469
  # Collapse sub-tree rooted at _tree_.
470
470
  # If _notify_ is +true+, a +SEL_COLLAPSED+ message is sent to the list's
471
471
  # message target after the sub-tree is collapsed.
472
- def collapseFolding(tree, notify=false); end
472
+ def collapseTree(tree, notify=false); end
473
473
 
474
474
  # Expand sub-tree rooted at _tree_.
475
475
  # If _notify_ is +true+, a +SEL_EXPANDED+ message is sent to the list's
476
476
  # message target after the sub-tree is expanded.
477
- def expandFolding(tree, notify=false); end
477
+ def expandTree(tree, notify=false); end
478
478
 
479
479
  # Change current item.
480
480
  # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's
@@ -7,7 +7,7 @@ include Fox
7
7
  class TC_FXDirList < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
- @dirList = FXDirList.new(mainWindow, 1)
10
+ @dirList = FXDirList.new(mainWindow)
11
11
  end
12
12
 
13
13
  def test_setCurrentFile
@@ -10,9 +10,11 @@ class TC_FXGLViewer < TestCase
10
10
  vis = FXGLVisual.new(app, VISUAL_DOUBLEBUFFER)
11
11
  @viewer = FXGLViewer.new(mainWindow, vis)
12
12
  end
13
+ =begin
13
14
  def test_readPixels
14
15
  pixels = @viewer.readPixels(0, 0, @viewer.width, @viewer.height)
15
16
  assert(pixels)
16
17
  assert_equal(3*@viewer.width*@viewer.height, pixels.size)
17
18
  end
19
+ =end
18
20
  end
data/tests/TC_FXHeader.rb CHANGED
@@ -53,7 +53,7 @@ class TC_FXHeader < TestCase
53
53
  @header.connect(SEL_REPLACED) { |sender, sel, ptr|
54
54
  itemIndex = ptr
55
55
  }
56
- @header.replaceItem(1, "", nil, 0, nil, true)
56
+ @header.setItem(1, "", nil, 0, nil, true)
57
57
  assert_equal(1, itemIndex)
58
58
  end
59
59
 
@@ -128,7 +128,7 @@ public
128
128
  @iconList.connect(SEL_REPLACED) { |sender, sel, ptr|
129
129
  itemIndex = ptr
130
130
  }
131
- @iconList.replaceItem(1, "", nil, nil, nil, true)
131
+ @iconList.setItem(1, "", nil, nil, nil, true)
132
132
  assert_equal(1, itemIndex)
133
133
  end
134
134
 
data/tests/TC_FXId.rb CHANGED
@@ -11,7 +11,7 @@ class TC_FXId < TestCase
11
11
 
12
12
  def test_created?
13
13
  assert(!mainWindow.created?)
14
- theApp.create
14
+ app.create
15
15
  assert(mainWindow.created?)
16
16
  mainWindow.destroy
17
17
  assert(!mainWindow.created?)
data/tests/TC_FXList.rb CHANGED
@@ -7,7 +7,7 @@ include Fox
7
7
  class TC_FXList < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
- @list = FXList.new(mainWindow, 3)
10
+ @list = FXList.new(mainWindow)
11
11
  end
12
12
 
13
13
  def test_numVisible
@@ -7,7 +7,7 @@ include Fox
7
7
  class TC_FXListBox < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
- @listBox = FXListBox.new(mainWindow, 1)
10
+ @listBox = FXListBox.new(mainWindow)
11
11
  end
12
12
 
13
13
  def test_appendItem
@@ -9,18 +9,4 @@ class TC_FXMenuCommand < TestCase
9
9
  super(self.class.name)
10
10
  @menuCommand = FXMenuCommand.new(mainWindow, "menuCommand")
11
11
  end
12
-
13
- def test_checked?
14
- @menuCommand.check
15
- assert(@menuCommand.checked?)
16
- @menuCommand.uncheck
17
- assert(!@menuCommand.checked?)
18
- end
19
-
20
- def test_radioChecked?
21
- @menuCommand.checkRadio
22
- assert(@menuCommand.radioChecked?)
23
- @menuCommand.uncheckRadio
24
- assert(!@menuCommand.radioChecked?)
25
- end
26
12
  end
data/tests/TC_FXTable.rb CHANGED
@@ -332,22 +332,6 @@ public
332
332
  }
333
333
  end
334
334
 
335
- def test_setColumnX
336
- @table.setTableSize(5, 5)
337
- assert_raises(IndexError) {
338
- @table.setColumnX(-1, 0)
339
- }
340
- assert_nothing_raised {
341
- @table.setColumnX(0, 0)
342
- }
343
- assert_nothing_raised {
344
- @table.setColumnX(5, 0)
345
- }
346
- assert_raises(IndexError) {
347
- @table.setColumnX(6, 0)
348
- }
349
- end
350
-
351
335
  def test_getRowY
352
336
  @table.setTableSize(5, 5)
353
337
  assert_raises(IndexError) {
@@ -364,22 +348,6 @@ public
364
348
  }
365
349
  end
366
350
 
367
- def test_setRowY
368
- @table.setTableSize(5, 5)
369
- assert_raises(IndexError) {
370
- @table.setRowY(-1, 0) # out of bounds
371
- }
372
- assert_nothing_raised {
373
- @table.setRowY(0, 0) # top edge
374
- }
375
- assert_nothing_raised {
376
- @table.setRowY(5, 0) # bottom edge
377
- }
378
- assert_raises(IndexError) {
379
- @table.setRowY(6, 0) # out of bounds
380
- }
381
- end
382
-
383
351
  def test_extractText
384
352
  @table.setTableSize(2, 2)
385
353
  @table.setItemText(0, 0, "(0, 0)")
@@ -19,7 +19,7 @@ end
19
19
  class TC_FXTableItem < TestCase
20
20
  def setup
21
21
  super(self.class.name)
22
- @table = FXTable.new(mainWindow, 0, 0)
22
+ @table = FXTable.new(mainWindow)
23
23
  @table.setTableSize(1, 1)
24
24
  @tableItem = FXTableItem.new("item")
25
25
  end
@@ -7,7 +7,7 @@ include Fox
7
7
  class TC_FXTreeList < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
- @treeList = FXTreeList.new(mainWindow, 0, nil, 0,
10
+ @treeList = FXTreeList.new(mainWindow, nil, 0,
11
11
  (TREELIST_BROWSESELECT|TREELIST_SHOWS_LINES|TREELIST_SHOWS_BOXES|
12
12
  TREELIST_ROOT_BOXES|LAYOUT_FILL_X|LAYOUT_FILL_Y))
13
13
  end
@@ -7,7 +7,7 @@ include Fox
7
7
  class TC_FXTreeListBox < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
- @treeListBox = FXTreeListBox.new(mainWindow, 1)
10
+ @treeListBox = FXTreeListBox.new(mainWindow)
11
11
  end
12
12
 
13
13
  def test_sortRootItems
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: fxruby
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.6.1
7
- date: 2006-07-21 00:00:00 -05:00
6
+ version: 1.6.2
7
+ date: 2006-09-14 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
@@ -26,13 +26,13 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
26
26
  platform: ruby
27
27
  signing_key:
28
28
  cert_chain:
29
- post_install_message:
30
29
  authors:
31
30
  - Lyle Johnson
32
31
  files:
33
32
  - LICENSE
34
33
  - README
35
34
  - index.html
35
+ - doc/style.css
36
36
  - doc/apes02.html
37
37
  - doc/apes03.html
38
38
  - doc/book.html
@@ -64,6 +64,7 @@ files:
64
64
  - doc/scintilla.html
65
65
  - doc/todo.html
66
66
  - doc/tutorial1.html
67
+ - doc/unicode.html
67
68
  - doc/images/babelfish.png
68
69
  - doc/images/browser.png
69
70
  - doc/images/button.png