fxruby 1.6.5 → 1.6.6
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/changes.html +55 -21
- data/doc/differences.html +9 -9
- data/doc/implementation.html +1 -1
- data/doc/library.html +5 -5
- data/doc/opengl.html +5 -5
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +4 -4
- data/doc/subversion.html +1 -1
- data/examples/accell.rb +36 -0
- data/examples/babelfish.rb +6 -9
- data/examples/bounce.rb +5 -4
- data/examples/button.rb +19 -21
- data/examples/datatarget.rb +9 -8
- data/examples/dctest.rb +7 -13
- data/examples/dialog.rb +12 -16
- data/examples/dilbert.rb +4 -4
- data/examples/dirlist.rb +6 -5
- data/examples/dragdrop.rb +30 -33
- data/examples/dragsource.rb +22 -22
- data/examples/dropsite.rb +16 -17
- data/examples/foursplit.rb +8 -13
- data/examples/gltest.rb +21 -24
- data/examples/glviewer.rb +56 -58
- data/examples/header.rb +25 -25
- data/examples/iconlist.rb +12 -8
- data/examples/image.rb +36 -34
- data/examples/imageviewer.rb +44 -43
- data/examples/inputs.rb +15 -15
- data/examples/mditest.rb +6 -5
- data/examples/pig.rb +1 -0
- data/examples/raabrowser.rb +31 -40
- data/examples/ratio.rb +27 -16
- data/examples/rulerview.rb +4 -3
- data/examples/scribble.rb +14 -17
- data/examples/shutter.rb +10 -9
- data/examples/splitter.rb +7 -6
- data/examples/tabbook.rb +59 -17
- data/examples/table.rb +12 -16
- data/ext/fox16/FXRuby.cpp +2 -2
- data/lib/fox16/glshapes.rb +6 -6
- data/lib/fox16/iterators.rb +13 -8
- data/lib/fox16/kwargs.rb +604 -380
- data/lib/fox16/version.rb +1 -1
- data/tests/TC_FXTreeList.rb +13 -13
- data/tests/TC_FXTreeListBox.rb +3 -3
- metadata +4 -3
data/lib/fox16/version.rb
CHANGED
data/tests/TC_FXTreeList.rb
CHANGED
@@ -14,27 +14,27 @@ class TC_FXTreeList < TestCase
|
|
14
14
|
|
15
15
|
def test_firstItem
|
16
16
|
assert_nil(@treeList.firstItem)
|
17
|
-
item = @treeList.
|
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.
|
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.
|
29
|
-
childItem = @treeList.
|
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.
|
37
|
-
second = @treeList.
|
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.
|
47
|
-
second = @treeList.
|
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.
|
57
|
-
@treeList.
|
58
|
-
@treeList.
|
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.
|
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.
|
75
|
+
theItem = @treeList.appendItem(nil, "")
|
76
76
|
anItem = nil
|
77
77
|
@treeList.connect(SEL_DELETED) { |sender, sel, ptr|
|
78
78
|
anItem = ptr
|
data/tests/TC_FXTreeListBox.rb
CHANGED
@@ -11,9 +11,9 @@ class TC_FXTreeListBox < TestCase
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_sortRootItems
|
14
|
-
@treeListBox.
|
15
|
-
@treeListBox.
|
16
|
-
@treeListBox.
|
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.
|
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.
|
7
|
-
date: 2007-
|
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
|