fxruby 1.6.5 → 1.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/doc/apes02.html +2 -2
  2. data/doc/apes03.html +1 -1
  3. data/doc/book.html +1 -1
  4. data/doc/changes.html +55 -21
  5. data/doc/differences.html +9 -9
  6. data/doc/implementation.html +1 -1
  7. data/doc/library.html +5 -5
  8. data/doc/opengl.html +5 -5
  9. data/doc/pt02.html +1 -1
  10. data/doc/scintilla.html +4 -4
  11. data/doc/subversion.html +1 -1
  12. data/examples/accell.rb +36 -0
  13. data/examples/babelfish.rb +6 -9
  14. data/examples/bounce.rb +5 -4
  15. data/examples/button.rb +19 -21
  16. data/examples/datatarget.rb +9 -8
  17. data/examples/dctest.rb +7 -13
  18. data/examples/dialog.rb +12 -16
  19. data/examples/dilbert.rb +4 -4
  20. data/examples/dirlist.rb +6 -5
  21. data/examples/dragdrop.rb +30 -33
  22. data/examples/dragsource.rb +22 -22
  23. data/examples/dropsite.rb +16 -17
  24. data/examples/foursplit.rb +8 -13
  25. data/examples/gltest.rb +21 -24
  26. data/examples/glviewer.rb +56 -58
  27. data/examples/header.rb +25 -25
  28. data/examples/iconlist.rb +12 -8
  29. data/examples/image.rb +36 -34
  30. data/examples/imageviewer.rb +44 -43
  31. data/examples/inputs.rb +15 -15
  32. data/examples/mditest.rb +6 -5
  33. data/examples/pig.rb +1 -0
  34. data/examples/raabrowser.rb +31 -40
  35. data/examples/ratio.rb +27 -16
  36. data/examples/rulerview.rb +4 -3
  37. data/examples/scribble.rb +14 -17
  38. data/examples/shutter.rb +10 -9
  39. data/examples/splitter.rb +7 -6
  40. data/examples/tabbook.rb +59 -17
  41. data/examples/table.rb +12 -16
  42. data/ext/fox16/FXRuby.cpp +2 -2
  43. data/lib/fox16/glshapes.rb +6 -6
  44. data/lib/fox16/iterators.rb +13 -8
  45. data/lib/fox16/kwargs.rb +604 -380
  46. data/lib/fox16/version.rb +1 -1
  47. data/tests/TC_FXTreeList.rb +13 -13
  48. data/tests/TC_FXTreeListBox.rb +3 -3
  49. metadata +4 -3
data/lib/fox16/version.rb CHANGED
@@ -3,7 +3,7 @@ module Fox
3
3
  # Returns the FXRuby version number as a string, e.g. "1.0.19".
4
4
  #
5
5
  def Fox.fxrubyversion
6
- "1.6.5"
6
+ "1.6.6"
7
7
  end
8
8
  end
9
9
 
@@ -14,27 +14,27 @@ class TC_FXTreeList < TestCase
14
14
 
15
15
  def test_firstItem
16
16
  assert_nil(@treeList.firstItem)
17
- item = @treeList.addItemFirst(nil, "first")
17
+ item = @treeList.prependItem(nil, "first")
18
18
  assert_same(item, @treeList.firstItem)
19
19
  end
20
20
 
21
21
  def test_lastItem
22
22
  assert_nil(@treeList.lastItem)
23
- item = @treeList.addItemFirst(nil, "first")
23
+ item = @treeList.prependItem(nil, "first")
24
24
  assert_same(item, @treeList.lastItem)
25
25
  end
26
26
 
27
27
  def test_reparentItem
28
- rootItem = @treeList.addItemFirst(nil, "Root Item")
29
- childItem = @treeList.addItemFirst(@treeList.firstItem, "Child Item")
28
+ rootItem = @treeList.prependItem(nil, "Root Item")
29
+ childItem = @treeList.prependItem(@treeList.firstItem, "Child Item")
30
30
  @treeList.reparentItem(childItem, nil)
31
31
  assert_same(rootItem, @treeList.firstItem)
32
32
  assert_same(childItem, @treeList.lastItem)
33
33
  end
34
34
 
35
35
  def test_moveItemBefore
36
- first = @treeList.addItemLast(nil, "first")
37
- second = @treeList.addItemLast(nil, "second")
36
+ first = @treeList.appendItem(nil, "first")
37
+ second = @treeList.appendItem(nil, "second")
38
38
  assert_same(second, first.next)
39
39
  assert_same(first, second.prev)
40
40
  assert_same(second, @treeList.moveItemBefore(first, second))
@@ -43,8 +43,8 @@ class TC_FXTreeList < TestCase
43
43
  end
44
44
 
45
45
  def test_moveItemAfter
46
- first = @treeList.addItemLast(nil, "first")
47
- second = @treeList.addItemLast(nil, "second")
46
+ first = @treeList.appendItem(nil, "first")
47
+ second = @treeList.appendItem(nil, "second")
48
48
  assert_same(second, first.next)
49
49
  assert_same(first, second.prev)
50
50
  assert_same(first, @treeList.moveItemAfter(second, first))
@@ -53,9 +53,9 @@ class TC_FXTreeList < TestCase
53
53
  end
54
54
 
55
55
  def test_sortRootItems
56
- @treeList.addItemLast(nil, "B")
57
- @treeList.addItemLast(nil, "A")
58
- @treeList.addItemLast(nil, "C")
56
+ @treeList.appendItem(nil, "B")
57
+ @treeList.appendItem(nil, "A")
58
+ @treeList.appendItem(nil, "C")
59
59
  @treeList.sortRootItems
60
60
  assert_equal("A", @treeList.firstItem.text)
61
61
  assert_equal("B", @treeList.firstItem.next.text)
@@ -67,12 +67,12 @@ class TC_FXTreeList < TestCase
67
67
  @treeList.connect(SEL_INSERTED) { |sender, sel, ptr|
68
68
  anItem = ptr
69
69
  }
70
- theItem = @treeList.addItemLast(nil, "", nil, nil, nil, true)
70
+ theItem = @treeList.appendItem(nil, "", nil, nil, nil, true)
71
71
  assert_same(theItem, anItem)
72
72
  end
73
73
 
74
74
  def test_SEL_DELETED
75
- theItem = @treeList.addItemLast(nil, "")
75
+ theItem = @treeList.appendItem(nil, "")
76
76
  anItem = nil
77
77
  @treeList.connect(SEL_DELETED) { |sender, sel, ptr|
78
78
  anItem = ptr
@@ -11,9 +11,9 @@ class TC_FXTreeListBox < TestCase
11
11
  end
12
12
 
13
13
  def test_sortRootItems
14
- @treeListBox.addItemLast(nil, "B")
15
- @treeListBox.addItemLast(nil, "A")
16
- @treeListBox.addItemLast(nil, "C")
14
+ @treeListBox.appendItem(nil, "B")
15
+ @treeListBox.appendItem(nil, "A")
16
+ @treeListBox.appendItem(nil, "C")
17
17
  @treeListBox.sortRootItems
18
18
  assert_equal("A", @treeListBox.firstItem.text)
19
19
  assert_equal("B", @treeListBox.firstItem.next.text)
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.1
2
+ 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.5
7
- date: 2007-01-20 00:00:00 -06:00
6
+ version: 1.6.6
7
+ date: 2007-02-10 00:00:00 -06:00
8
8
  summary: FXRuby is the Ruby binding to the FOX GUI toolkit.
9
9
  require_paths:
10
10
  - ext/fox16
@@ -103,6 +103,7 @@ files:
103
103
  - doc/images/table.png
104
104
  - doc/images/tutorial1.png
105
105
  - examples/README
106
+ - examples/accell.rb
106
107
  - examples/babelfish.rb
107
108
  - examples/bounce.rb
108
109
  - examples/browser.rb