fxruby 1.6.11 → 1.6.12
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/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/changes.html +77 -46
- 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/gltest.rb +14 -22
- data/examples/imageviewer.rb +1 -1
- data/examples/inputs.rb +1 -1
- data/examples/styledtext.rb +3 -13
- data/ext/fox16/FXRuby.cpp +51 -52
- data/ext/fox16/text_wrap.cpp +9 -13
- data/lib/fox16/aliases.rb +3 -0
- data/lib/fox16/chore.rb +26 -12
- data/lib/fox16/core.rb +19 -0
- data/lib/fox16/input.rb +13 -8
- data/lib/fox16/kwargs.rb +36 -0
- data/lib/fox16/responder2.rb +39 -30
- data/lib/fox16/signal.rb +11 -6
- data/lib/fox16/timeout.rb +29 -13
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXButton.rb +1 -1
- data/rdoc-sources/FXCursor.rb +1 -1
- data/rdoc-sources/FXImage.rb +80 -0
- data/rdoc-sources/FXImageFrame.rb +14 -0
- data/rdoc-sources/FXMDIChild.rb +0 -6
- data/rdoc-sources/FXMDIClient.rb +0 -6
- data/rdoc-sources/FXPacker.rb +1 -0
- data/rdoc-sources/FXTable.rb +36 -1
- data/rdoc-sources/FXText.rb +10 -9
- data/rdoc-sources/FXWindow.rb +1 -0
- data/tests/TC_FXText.rb +16 -1
- metadata +15 -8
@@ -16,6 +16,20 @@ module Fox
|
|
16
16
|
#
|
17
17
|
# Return an initialized FXImageFrame instance.
|
18
18
|
#
|
19
|
+
# ==== Parameters:
|
20
|
+
#
|
21
|
+
# +p+:: the parent window for this image frame [FXComposite]
|
22
|
+
# +img+:: the image to display [FXImage]
|
23
|
+
# +opts+:: frame options [Integer]
|
24
|
+
# +x+:: initial x-position [Integer]
|
25
|
+
# +y+:: initial y-position [Integer]
|
26
|
+
# +width+:: initial width [Integer]
|
27
|
+
# +height+:: initial height [Integer]
|
28
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
29
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
30
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
31
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
32
|
+
#
|
19
33
|
def initialize(p, img, opts=FRAME_SUNKEN|FRAME_THICK, x=0, y=0, width=0, height=0, padLeft=0, padRight=0, padTop=0, padBottom=0) # :yields: theImageFrame
|
20
34
|
end
|
21
35
|
end
|
data/rdoc-sources/FXMDIChild.rb
CHANGED
@@ -116,12 +116,6 @@ module Fox
|
|
116
116
|
def initialize(p, name, ic=nil, pup=nil, opts=0, x=0, y=0, width=0, height=0) # :yields: theMDIChild
|
117
117
|
end
|
118
118
|
|
119
|
-
# Get next MDI Child
|
120
|
-
def getMDINext(); end
|
121
|
-
|
122
|
-
# Get previous MDI Child
|
123
|
-
def getMDIPrev(); end
|
124
|
-
|
125
119
|
#
|
126
120
|
# Minimize this window.
|
127
121
|
# If _notify_ is +true+, ...
|
data/rdoc-sources/FXMDIClient.rb
CHANGED
@@ -38,12 +38,6 @@ module Fox
|
|
38
38
|
def initialize(p, opts=0, x=0, y=0, width=0, height=0) # :yields: theMDIClient
|
39
39
|
end
|
40
40
|
|
41
|
-
# Get first MDI Child
|
42
|
-
def getMDIChildFirst(); end
|
43
|
-
|
44
|
-
# Get last MDI Child
|
45
|
-
def getMDIChildLast(); end
|
46
|
-
|
47
41
|
#
|
48
42
|
# Pass message to all MDI windows, stopping when one of
|
49
43
|
# the MDI windows fails to handle the message.
|
data/rdoc-sources/FXPacker.rb
CHANGED
@@ -58,5 +58,6 @@ module Fox
|
|
58
58
|
#
|
59
59
|
def initialize(parent, opts=0, x=0, y=0, width=0, height=0, padLeft=DEFAULT_SPACING, padRight=DEFAULT_SPACING, padTop=DEFAULT_SPACING, padBottom=DEFAULT_SPACING, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: thePacker
|
60
60
|
end
|
61
|
+
end
|
61
62
|
end
|
62
63
|
|
data/rdoc-sources/FXTable.rb
CHANGED
@@ -155,7 +155,42 @@ module Fox
|
|
155
155
|
def destroy; end
|
156
156
|
end
|
157
157
|
|
158
|
-
#
|
158
|
+
#
|
159
|
+
# The FXTable widget displays a table of items, each with some text and optional
|
160
|
+
# icon. A column Header control provide captions for each column, and a row
|
161
|
+
# Header control provides captions for each row. Columns are resizable by
|
162
|
+
# means of the column Header control if the TABLE_COL_SIZABLE option is passed.
|
163
|
+
# Likewise, rows in the table are resizable if the TABLE_ROW_SIZABLE option is
|
164
|
+
# specified. An entire row (column) can be selected by clicking on the a button
|
165
|
+
# in the row (column) Header control. Passing TABLE_NO_COLSELECT disables column
|
166
|
+
# selection, and passing TABLE_NO_ROWSELECT disables column selection.
|
167
|
+
# When TABLE_COL_RENUMBER is specified, columns are automatically renumbered when
|
168
|
+
# columns are added or removed. Similarly, TABLE_ROW_RENUMBER will cause row numbers
|
169
|
+
# to be recalculated automatically when rows are added or removed.
|
170
|
+
# To disable editing of cells in the table, the TABLE_READONLY can be specified.
|
171
|
+
# Cells in the table may or may not have items in them. When populating a cell
|
172
|
+
# for the first time, an item will be automatically created if necessary. Thus,
|
173
|
+
# a cell in the table takes no space unless it has actual contents.
|
174
|
+
# Moreover, a contiguous, rectangular region of cells in the table may refer to
|
175
|
+
# one single item; in that case, the item will be stretched to cover all the
|
176
|
+
# cells in the region, and no grid lines will be drawn interior to the spanning
|
177
|
+
# item.
|
178
|
+
#
|
179
|
+
# The Table widget issues SEL_SELECTED or SEL_DESELECTED when cells are selected
|
180
|
+
# or deselected, respectively. The table position affected is passed along as the
|
181
|
+
# 3rd parameter of these messages.
|
182
|
+
# Whenever the current (focus) item is changed, a SEL_CHANGED message is sent with
|
183
|
+
# the new table position as a parameter.
|
184
|
+
# When items are added to the table, a SEL_INSERTED message is sent, with the table
|
185
|
+
# range of the newly added cells as the parameter in the message.
|
186
|
+
# When items are removed from the table, a SEL_DELETED message is sent prior to the
|
187
|
+
# removal of the items, and the table range of the removed cells is passed as a parameter.
|
188
|
+
# A SEL_REPLACED message is sent when the contents of a cell are changed, either through
|
189
|
+
# editing or by other means; the parameter is the range of affected cells. This message
|
190
|
+
# is sent prior to the change.
|
191
|
+
# SEL_CLICKED, SEL_DOUBLECLICKED, and SEL_TRIPLECLICKED messages are sent when a cell
|
192
|
+
# is clicked, double-clicked, or triple-clicked, respectively.
|
193
|
+
# A SEL_COMMAND is sent when an enabled item is clicked inside the table.
|
159
194
|
#
|
160
195
|
# === Events
|
161
196
|
#
|
data/rdoc-sources/FXText.rb
CHANGED
@@ -2,7 +2,7 @@ module Fox
|
|
2
2
|
#
|
3
3
|
# Highlight style entry
|
4
4
|
#
|
5
|
-
class FXHiliteStyle
|
5
|
+
class FXHiliteStyle
|
6
6
|
# Normal text foreground color [FXColor]
|
7
7
|
attr_accessor :normalForeColor
|
8
8
|
|
@@ -315,7 +315,7 @@ module Fox
|
|
315
315
|
# +p+:: the parent window for this text widget [FXComposite]
|
316
316
|
# +target+:: the message target, if any, for this text widget [FXObject]
|
317
317
|
# +selector+:: the message identifier for this text widget [Integer]
|
318
|
-
# +opts+::
|
318
|
+
# +opts+:: text options [Integer]
|
319
319
|
# +x+:: initial x-position [Integer]
|
320
320
|
# +y+:: initial y-position [Integer]
|
321
321
|
# +width+:: initial width [Integer]
|
@@ -430,18 +430,19 @@ module Fox
|
|
430
430
|
# text is inserted.
|
431
431
|
def shiftText(startPos, endPos, amount, notify=false); end
|
432
432
|
|
433
|
-
#
|
434
|
-
#
|
433
|
+
#
|
434
|
+
# Search for _string_ in text buffer, and return the extent of
|
435
|
+
# the string as a two-element array of arrays.
|
436
|
+
# The first array contains the beginning index (or indices)
|
437
|
+
# and the second array contains the ending index (or indices).
|
438
|
+
# The search starts from the given
|
435
439
|
# _start_ position, scans forward (+SEARCH_FORWARD+) or backward
|
436
440
|
# (+SEARCH_BACKWARD+), and wraps around if +SEARCH_WRAP+ has been
|
437
441
|
# specified. The search type is either a plain search (+SEARCH_EXACT+),
|
438
442
|
# case insensitive search (+SEARCH_IGNORECASE+), or regular expression
|
439
443
|
# search (+SEARCH_REGEX+).
|
440
|
-
#
|
441
|
-
|
442
|
-
# _beg_ and _end_ arrays must be _npar_ also. If either _beg_ or _end_ or
|
443
|
-
# both are nil, internal arrays are used.
|
444
|
-
def findText(string, beg=nil, end=nil, start=0, flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT, npar=1); end
|
444
|
+
#
|
445
|
+
def findText(string, start=0, flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT); end
|
445
446
|
|
446
447
|
# Return +true+ if position _pos_ is selected
|
447
448
|
def positionSelected?(pos); end
|
data/rdoc-sources/FXWindow.rb
CHANGED
@@ -78,6 +78,7 @@ module Fox
|
|
78
78
|
# +LAYOUT_MIN_HEIGHT+:: Minimum height is the default
|
79
79
|
# +LAYOUT_FILL_X+:: Stretch or shrink horizontally
|
80
80
|
# +LAYOUT_FILL_Y+:: Stretch or shrink vertically
|
81
|
+
# +LAYOUT_FILL:: Stretch or shrink in both directions
|
81
82
|
# +LAYOUT_EXPLICIT+:: Explicit placement
|
82
83
|
# +LAYOUT_DOCK_SAME+:: Dock on same galley, if it fits
|
83
84
|
# +LAYOUT_DOCK_NEXT+:: Dock on next galley
|
data/tests/TC_FXText.rb
CHANGED
@@ -72,10 +72,25 @@ public
|
|
72
72
|
assert_equal(SAMPLE, @text.text)
|
73
73
|
end
|
74
74
|
|
75
|
-
def
|
75
|
+
def test_find_text
|
76
76
|
@text.text = "99 bottles of beer"
|
77
77
|
startIndex, endIndex = @text.findText("bottles")
|
78
78
|
assert_equal([3], startIndex)
|
79
79
|
assert_equal([10], endIndex)
|
80
80
|
end
|
81
|
+
|
82
|
+
def test_find_text_with_startpos
|
83
|
+
@text.text = "I came, I saw, I conquered"
|
84
|
+
startIndex, endIndex = @text.findText("I ", 5)
|
85
|
+
assert_equal([8], startIndex)
|
86
|
+
assert_equal([10], endIndex)
|
87
|
+
end
|
88
|
+
|
89
|
+
def test_find_text_with_groups
|
90
|
+
@text.text = "I came, I saw, I conquered"
|
91
|
+
startIndex, endIndex = @text.findText("I ([a-z]+)(, )?", 0, SEARCH_REGEX)
|
92
|
+
assert_equal([0, 2, 6], startIndex)
|
93
|
+
assert_equal([8, 6, 8], endIndex)
|
94
|
+
end
|
95
|
+
|
81
96
|
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
3
|
-
specification_version:
|
2
|
+
rubygems_version: 0.9.4.5
|
3
|
+
specification_version: 2
|
4
4
|
name: fxruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.6.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.6.12
|
7
|
+
date: 2007-10-17 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
|
@@ -17,15 +17,22 @@ autorequire:
|
|
17
17
|
default_executable:
|
18
18
|
bindir: bin
|
19
19
|
has_rdoc: true
|
20
|
-
required_ruby_version: !ruby/object:Gem::
|
20
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
|
-
- - "
|
22
|
+
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0
|
24
|
+
version: "0"
|
25
|
+
version:
|
26
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: "0"
|
25
31
|
version:
|
26
32
|
platform: ruby
|
27
33
|
signing_key:
|
28
|
-
cert_chain:
|
34
|
+
cert_chain: []
|
35
|
+
|
29
36
|
post_install_message:
|
30
37
|
authors:
|
31
38
|
- Lyle Johnson
|