fxruby 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +199 -0
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/changes.html +48 -3
- data/doc/cvs.html +2 -2
- data/doc/differences.html +3 -3
- data/doc/gems.html +43 -43
- 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/examples/browser.rb +1 -1
- data/examples/button.rb +59 -48
- data/examples/groupbox.rb +5 -4
- data/examples/ratio.rb +70 -0
- data/examples/table.rb +1 -1
- data/ext/fox12/FXRuby.cpp +2 -1
- data/ext/fox12/core_wrap.cpp +16 -6
- data/ext/fox12/dc_wrap.cpp +16 -6
- data/ext/fox12/dialogs_wrap.cpp +16 -6
- data/ext/fox12/frames_wrap.cpp +16 -6
- data/ext/fox12/fx3d_wrap.cpp +16 -6
- data/ext/fox12/iconlist_wrap.cpp +16 -6
- data/ext/fox12/icons_wrap.cpp +18 -7
- data/ext/fox12/image_wrap.cpp +16 -6
- data/ext/fox12/label_wrap.cpp +16 -6
- data/ext/fox12/layout_wrap.cpp +16 -6
- data/ext/fox12/librb.c +18 -7
- data/ext/fox12/list_wrap.cpp +16 -6
- data/ext/fox12/mdi_wrap.cpp +16 -6
- data/ext/fox12/menu_wrap.cpp +16 -6
- data/ext/fox12/scintilla_wrap.cpp +19 -12
- data/ext/fox12/table_wrap.cpp +16 -6
- data/ext/fox12/text_wrap.cpp +16 -6
- data/ext/fox12/treelist_wrap.cpp +16 -6
- data/ext/fox12/ui_wrap.cpp +16 -6
- data/lib/fox12/aliases.rb +32 -11
- data/lib/fox12/dialogs.rb +72 -0
- data/lib/fox12/execute_nonmodal.rb +70 -0
- data/lib/fox12/iterators.rb +3 -3
- data/lib/fox12/splashscreen.rb +83 -0
- data/lib/fox12/version.rb +1 -1
- data/rdoc-sources/FXDC.rb +14 -13
- data/rdoc-sources/FXDataTarget.rb +30 -5
- data/rdoc-sources/FXFileDialog.rb +50 -5
- data/rdoc-sources/FXList.rb +13 -13
- data/rdoc-sources/FXMemoryBuffer.rb +15 -10
- data/rdoc-sources/FXTable.rb +193 -107
- data/rdoc-sources/FXText.rb +2 -2
- data/rdoc-sources/FXToolBarTab.rb +69 -0
- data/rdoc-sources/FXToolTip.rb +1 -1
- data/tests/TC_FXMaterial.rb +14 -0
- metadata +10 -4
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
module Fox
|
|
2
|
+
#
|
|
3
|
+
# A toolbar tab is used to collapse or uncollapse a sibling
|
|
4
|
+
# widget. The sibling affected is the widget immediately following
|
|
5
|
+
# the toolbar tab or, if the toolbar tab is the last widget in the list,
|
|
6
|
+
# the widget immediately preceding the toolbar tab.
|
|
7
|
+
# Typically, the toolbar tab is paired with just one sibling widget
|
|
8
|
+
# inside a paired container, e.g.
|
|
9
|
+
#
|
|
10
|
+
# FXHorizontalFrame.new(...) do |p|
|
|
11
|
+
# FXToolBarTab.new(p)
|
|
12
|
+
# FXLabel.new(p, "Hideable label", nil, LAYOUT_FILL_X)
|
|
13
|
+
# end
|
|
14
|
+
#
|
|
15
|
+
# === Events
|
|
16
|
+
#
|
|
17
|
+
# The following messages are sent by FXToolBarTab to its target:
|
|
18
|
+
#
|
|
19
|
+
# +SEL_KEYPRESS+:: Sent when a key goes down; the message data is an FXEvent instance.
|
|
20
|
+
# +SEL_KEYRELEASE+:: Sent when a key goes up; the message data is an FXEvent instance.
|
|
21
|
+
# +SEL_COMMAND+:: Sent after the toolbar tab is collapsed (or uncollapsed). The message data indicates the new collapsed state (i.e. it's +true+ if the toolbar tab is now collapsed, +false+ if it is now uncollapsed).
|
|
22
|
+
#
|
|
23
|
+
# === Toolbar tab styles
|
|
24
|
+
#
|
|
25
|
+
# +TOOLBARTAB_HORIZONTAL+:: Default is for horizontal toolbar
|
|
26
|
+
# +TOOLBARTAB_VERTICAL+:: For vertical toolbar
|
|
27
|
+
#
|
|
28
|
+
# === Message identifiers
|
|
29
|
+
#
|
|
30
|
+
# +ID_COLLAPSE+:: Collapse the toolbar tab
|
|
31
|
+
# +ID_UNCOLLAPSE+:: Uncollapse the toolbar tab
|
|
32
|
+
#
|
|
33
|
+
class FXToolBarTab < FXFrame
|
|
34
|
+
|
|
35
|
+
# The tab style [Integer]
|
|
36
|
+
attr_accessor :tabStyle
|
|
37
|
+
|
|
38
|
+
# The active color [FXColor]
|
|
39
|
+
attr_accessor :activeColor
|
|
40
|
+
|
|
41
|
+
#
|
|
42
|
+
# Return an initialized FXToolBarTab instance.
|
|
43
|
+
#
|
|
44
|
+
# ==== Parameters:
|
|
45
|
+
#
|
|
46
|
+
# +p+:: the parent window for this toolbar tab [FXWindow]
|
|
47
|
+
# +tgt+:: the message target [FXObject]
|
|
48
|
+
# +sel+:: the message identifier [Integer]
|
|
49
|
+
# +opts+:: the options [Integer]
|
|
50
|
+
# +x+:: x-coordinate of window upper left corner [Integer]
|
|
51
|
+
# +y+:: y-coordinate of window upper left corner [Integer]
|
|
52
|
+
# +w+:: window width [Integer]
|
|
53
|
+
# +h+:: window height [Integer]
|
|
54
|
+
#
|
|
55
|
+
def initialize(p, tgt=nil, sel=0, opts=FRAME_RAISED, x=0, y=0, w=0, h=0) # :yield: theToolBarTab
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Collapse (if _c_ is +true+) or uncollapse the toolbar.
|
|
60
|
+
#
|
|
61
|
+
def collapse(c=true); end
|
|
62
|
+
|
|
63
|
+
#
|
|
64
|
+
# Return +true+ if the toolbar is collapsed, +false+ otherwise.
|
|
65
|
+
#
|
|
66
|
+
def collapsed?; end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
data/rdoc-sources/FXToolTip.rb
CHANGED
data/tests/TC_FXMaterial.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require 'test/unit'
|
|
2
2
|
|
|
3
3
|
require 'fox12'
|
|
4
|
+
require 'fox12/glshapes'
|
|
4
5
|
|
|
5
6
|
include Fox
|
|
6
7
|
|
|
@@ -72,4 +73,17 @@ class TC_FXMaterial < Test::Unit::TestCase
|
|
|
72
73
|
@mat.shininess = 0.5
|
|
73
74
|
assert_in_delta(0.5, @mat.shininess, DELTA)
|
|
74
75
|
end
|
|
76
|
+
|
|
77
|
+
def test_bug
|
|
78
|
+
cube = FXGLCube.new(0, 0, 0, 0, 0)
|
|
79
|
+
mat = FXMaterial.new
|
|
80
|
+
mat.diffuse = FXVec4f.new(0, 0, 0, 0)
|
|
81
|
+
mat.specular = FXVec4f.new(0, 0, 0, 0)
|
|
82
|
+
mat.ambient = FXVec4f.new(0, 0, 0, 0)
|
|
83
|
+
cube.setMaterial(0, mat)
|
|
84
|
+
mat2 = cube.getMaterial(0)
|
|
85
|
+
assert_instance_of(FXVec4f, mat2.ambient)
|
|
86
|
+
assert_instance_of(FXVec4f, mat2.specular)
|
|
87
|
+
assert_instance_of(FXVec4f, mat2.diffuse)
|
|
88
|
+
end
|
|
75
89
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
|
-
rubygems_version: 0.8.
|
|
2
|
+
rubygems_version: 0.8.4
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: fxruby
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 1.2.
|
|
7
|
-
date:
|
|
6
|
+
version: 1.2.3
|
|
7
|
+
date: 2005-01-22
|
|
8
8
|
summary: FXRuby is the Ruby binding to the FOX GUI toolkit.
|
|
9
9
|
require_paths:
|
|
10
10
|
- ext/fox12
|
|
11
11
|
- lib
|
|
12
|
-
author: Lyle Johnson
|
|
13
12
|
email: lyle@knology.net
|
|
14
13
|
homepage: http://www.fxruby.org
|
|
15
14
|
rubyforge_project:
|
|
@@ -26,6 +25,8 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
|
26
25
|
version: 0.0.0
|
|
27
26
|
version:
|
|
28
27
|
platform: ruby
|
|
28
|
+
authors:
|
|
29
|
+
- Lyle Johnson
|
|
29
30
|
files:
|
|
30
31
|
- ANNOUNCE
|
|
31
32
|
- ChangeLog
|
|
@@ -129,6 +130,7 @@ files:
|
|
|
129
130
|
- examples/pig.rb
|
|
130
131
|
- examples/RAA.rb
|
|
131
132
|
- examples/raabrowser.rb
|
|
133
|
+
- examples/ratio.rb
|
|
132
134
|
- examples/scintilla-test.rb
|
|
133
135
|
- examples/scribble-orig.rb
|
|
134
136
|
- examples/scribble.rb
|
|
@@ -215,7 +217,9 @@ files:
|
|
|
215
217
|
- lib/fox12/chore.rb
|
|
216
218
|
- lib/fox12/colors.rb
|
|
217
219
|
- lib/fox12/core.rb
|
|
220
|
+
- lib/fox12/dialogs.rb
|
|
218
221
|
- lib/fox12/dict.rb
|
|
222
|
+
- lib/fox12/execute_nonmodal.rb
|
|
219
223
|
- lib/fox12/glgroup.rb
|
|
220
224
|
- lib/fox12/glshapes.rb
|
|
221
225
|
- lib/fox12/input.rb
|
|
@@ -230,6 +234,7 @@ files:
|
|
|
230
234
|
- lib/fox12/scintilla.rb
|
|
231
235
|
- lib/fox12/settings.rb
|
|
232
236
|
- lib/fox12/signal.rb
|
|
237
|
+
- lib/fox12/splashscreen.rb
|
|
233
238
|
- lib/fox12/timeout.rb
|
|
234
239
|
- lib/fox12/undolist.rb
|
|
235
240
|
- lib/fox12/version.rb
|
|
@@ -702,6 +707,7 @@ files:
|
|
|
702
707
|
- rdoc-sources/FXToolBar.rb
|
|
703
708
|
- rdoc-sources/FXToolBarGrip.rb
|
|
704
709
|
- rdoc-sources/FXToolBarShell.rb
|
|
710
|
+
- rdoc-sources/FXToolBarTab.rb
|
|
705
711
|
- rdoc-sources/FXToolTip.rb
|
|
706
712
|
- rdoc-sources/FXTopWindow.rb
|
|
707
713
|
- rdoc-sources/FXTreeList.rb
|