foxguib 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data/changelog.txt +128 -0
- data/doc/www/index.html +173 -0
- data/doc/www/upload.rb +9 -0
- data/examples/event_handler.rb +67 -0
- data/examples/event_handlers.rbin +0 -0
- data/examples/guib_testdialog.rb +31 -0
- data/examples/testdialog.rb +29 -0
- data/exe/foxguib +1 -0
- data/foxGUIb-debug.rb +37 -0
- data/foxGUIb.rb +88 -0
- data/foxGUIb_win32.rbw +1 -0
- data/foxguib.gemspec +26 -0
- data/license.txt +49 -0
- data/readme.txt +1 -0
- data/release_notes.txt +68 -0
- data/src/assert.rb +8 -0
- data/src/cfgman.rb +27 -0
- data/src/code-gen/code-generator.rb +171 -0
- data/src/code-gen/property-generators.rb +65 -0
- data/src/code-gen/widget-generator.rb +22 -0
- data/src/convert.rb +60 -0
- data/src/direct_widget_manipulation.rb +343 -0
- data/src/docman.rb +260 -0
- data/src/document.rb +405 -0
- data/src/event_categories.yaml +85 -0
- data/src/event_listener.rb +57 -0
- data/src/events.yaml +77 -0
- data/src/events_docu.yaml +228 -0
- data/src/get_events.rb +64 -0
- data/src/gui/ArrowButton.tga +0 -0
- data/src/gui/BoxMinus.tga +0 -0
- data/src/gui/BoxPlus.tga +0 -0
- data/src/gui/Button.tga +0 -0
- data/src/gui/CheckButton.tga +0 -0
- data/src/gui/ComboBox.tga +0 -0
- data/src/gui/Dial.tga +0 -0
- data/src/gui/GroupBox.tga +0 -0
- data/src/gui/HorizontalFrame.tga +0 -0
- data/src/gui/HorizontalSeparator.tga +0 -0
- data/src/gui/Label.tga +0 -0
- data/src/gui/MDIChild.tga +0 -0
- data/src/gui/MDIClient.tga +0 -0
- data/src/gui/Matrix.tga +0 -0
- data/src/gui/MenuCaption.tga +0 -0
- data/src/gui/MenuCascade.tga +0 -0
- data/src/gui/MenuCheck.tga +0 -0
- data/src/gui/MenuCommand.tga +0 -0
- data/src/gui/MenuPane.tga +0 -0
- data/src/gui/MenuRadio.tga +0 -0
- data/src/gui/MenuSeparator.tga +0 -0
- data/src/gui/MenuTitle.tga +0 -0
- data/src/gui/Menubar.tga +0 -0
- data/src/gui/Packer.tga +0 -0
- data/src/gui/ProgressBar.tga +0 -0
- data/src/gui/RadioButton.tga +0 -0
- data/src/gui/RadioMutex.tga +0 -0
- data/src/gui/ScrollWindow.tga +0 -0
- data/src/gui/Scrollbar.tga +0 -0
- data/src/gui/Shutter.tga +0 -0
- data/src/gui/ShutterItem.tga +0 -0
- data/src/gui/Slider.tga +0 -0
- data/src/gui/Spinner.tga +0 -0
- data/src/gui/Splitter.tga +0 -0
- data/src/gui/StatusBar.tga +0 -0
- data/src/gui/Statusline.tga +0 -0
- data/src/gui/Switcher.tga +0 -0
- data/src/gui/TabBar.tga +0 -0
- data/src/gui/TabBook.tga +0 -0
- data/src/gui/TabItem.tga +0 -0
- data/src/gui/Text.tga +0 -0
- data/src/gui/TextField.tga +0 -0
- data/src/gui/ToggleButton.tga +0 -0
- data/src/gui/Toolbar.tga +0 -0
- data/src/gui/VerticalFrame.tga +0 -0
- data/src/gui/VerticalSeparator.tga +0 -0
- data/src/gui/_guib_event_editor.rb +185 -0
- data/src/gui/_guib_event_editor.rbin +0 -0
- data/src/gui/_guib_genruby.rb +414 -0
- data/src/gui/_guib_genruby.rbin +0 -0
- data/src/gui/_guib_mainwin.rb +574 -0
- data/src/gui/_guib_mainwin.rbin +0 -0
- data/src/gui/event_editor.rb +180 -0
- data/src/gui/genruby.rb +155 -0
- data/src/gui/guib__console.rb +265 -0
- data/src/gui/mainwin.rb +71 -0
- data/src/gui/ruby_console.rb +263 -0
- data/src/gui/svg/Matrix.svg +87 -0
- data/src/gui/svg/MenuCheck.svg +135 -0
- data/src/gui/svg/MenuRadio.svg +130 -0
- data/src/gui/svg/RadioMutex.svg +119 -0
- data/src/gui/textview.rb +101 -0
- data/src/gui/textview.rbin +0 -0
- data/src/minitest.rb +60 -0
- data/src/prop-lists.rb +323 -0
- data/src/prop-types.rb +606 -0
- data/src/properties.rb +119 -0
- data/src/propman.rb +88 -0
- data/src/relink_mechanisms.rb +95 -0
- data/src/serialize.rb +167 -0
- data/src/state_machine.rb +73 -0
- data/src/version.rb +6 -0
- data/src/widget-lists.rb +118 -0
- data/src/widget-selector.rb +85 -0
- data/src/widgettree-controls.rb +183 -0
- data.tar.gz.sig +0 -0
- metadata +236 -0
- metadata.gz.sig +0 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
+
<svg
|
4
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
5
|
+
xmlns:cc="http://web.resource.org/cc/"
|
6
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
7
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
9
|
+
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
10
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
11
|
+
width="32.000000px"
|
12
|
+
height="32.000000px"
|
13
|
+
id="svg2"
|
14
|
+
sodipodi:version="0.32"
|
15
|
+
inkscape:version="0.42"
|
16
|
+
sodipodi:docbase="/d/pr/foxGUIb/gui/pngs"
|
17
|
+
sodipodi:docname="RadioMutex.svg"
|
18
|
+
inkscape:export-filename="/d/pr/foxGUIb/gui/pngs/Matrix.png"
|
19
|
+
inkscape:export-xdpi="72.000000"
|
20
|
+
inkscape:export-ydpi="72.000000">
|
21
|
+
<defs
|
22
|
+
id="defs4" />
|
23
|
+
<sodipodi:namedview
|
24
|
+
id="base"
|
25
|
+
pagecolor="#ffffff"
|
26
|
+
bordercolor="#666666"
|
27
|
+
borderopacity="1.0"
|
28
|
+
inkscape:pageopacity="1.0000000"
|
29
|
+
inkscape:pageshadow="2"
|
30
|
+
inkscape:zoom="1.00000000"
|
31
|
+
inkscape:cx="217.14923"
|
32
|
+
inkscape:cy="-0.56828242"
|
33
|
+
inkscape:document-units="px"
|
34
|
+
inkscape:current-layer="layer1"
|
35
|
+
inkscape:window-width="1024"
|
36
|
+
inkscape:window-height="743"
|
37
|
+
inkscape:window-x="99"
|
38
|
+
inkscape:window-y="292" />
|
39
|
+
<metadata
|
40
|
+
id="metadata7">
|
41
|
+
<rdf:RDF>
|
42
|
+
<cc:Work
|
43
|
+
rdf:about="">
|
44
|
+
<dc:format>image/svg+xml</dc:format>
|
45
|
+
<dc:type
|
46
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
47
|
+
</cc:Work>
|
48
|
+
</rdf:RDF>
|
49
|
+
</metadata>
|
50
|
+
<g
|
51
|
+
inkscape:label="Layer 1"
|
52
|
+
inkscape:groupmode="layer"
|
53
|
+
id="layer1">
|
54
|
+
<rect
|
55
|
+
style="opacity:1.0000000;color:#000000;fill:#869bb9;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
56
|
+
id="rect2051"
|
57
|
+
width="10.443892"
|
58
|
+
height="10.328205"
|
59
|
+
x="50.321602"
|
60
|
+
y="5.0702624"
|
61
|
+
rx="0.0000000" />
|
62
|
+
<rect
|
63
|
+
style="opacity:1.0000000;color:#000000;fill:#869bb9;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
64
|
+
id="rect2073"
|
65
|
+
width="10.517181"
|
66
|
+
height="10.400682"
|
67
|
+
x="36.101826"
|
68
|
+
y="19.076317"
|
69
|
+
rx="0.0000000" />
|
70
|
+
<rect
|
71
|
+
style="opacity:1.0000000;color:#000000;fill:#869bb9;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
72
|
+
id="rect2077"
|
73
|
+
width="10.517181"
|
74
|
+
height="10.400682"
|
75
|
+
x="50.418896"
|
76
|
+
y="19.076317"
|
77
|
+
rx="0.0000000" />
|
78
|
+
<path
|
79
|
+
sodipodi:type="arc"
|
80
|
+
style="opacity:1.0000000;color:#000000;fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.40869792;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
81
|
+
id="path2140"
|
82
|
+
sodipodi:cx="-5.4910712"
|
83
|
+
sodipodi:cy="3.2946427"
|
84
|
+
sodipodi:rx="1.6517857"
|
85
|
+
sodipodi:ry="1.5625000"
|
86
|
+
d="M -3.8392855 3.2946427 A 1.6517857 1.5625000 0 1 1 -7.1428570,3.2946427 A 1.6517857 1.5625000 0 1 1 -3.8392855 3.2946427 z"
|
87
|
+
transform="matrix(2.212146,0.000000,0.000000,2.212146,28.18329,-1.824347)" />
|
88
|
+
<path
|
89
|
+
sodipodi:type="arc"
|
90
|
+
style="opacity:1.0000000;color:#000000;fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.40869793;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
91
|
+
id="path2144"
|
92
|
+
sodipodi:cx="-5.4910712"
|
93
|
+
sodipodi:cy="3.2946427"
|
94
|
+
sodipodi:rx="1.6517857"
|
95
|
+
sodipodi:ry="1.5625000"
|
96
|
+
d="M -3.8392855 3.2946427 A 1.6517857 1.5625000 0 1 1 -7.1428570,3.2946427 A 1.6517857 1.5625000 0 1 1 -3.8392855 3.2946427 z"
|
97
|
+
transform="matrix(2.212146,0.000000,0.000000,2.212146,28.20219,19.52194)" />
|
98
|
+
<path
|
99
|
+
sodipodi:type="arc"
|
100
|
+
style="opacity:1.0000000;color:#000000;fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.40869793;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
101
|
+
id="path2142"
|
102
|
+
sodipodi:cx="-5.4910712"
|
103
|
+
sodipodi:cy="3.2946427"
|
104
|
+
sodipodi:rx="1.6517857"
|
105
|
+
sodipodi:ry="1.5625000"
|
106
|
+
d="M -3.8392855 3.2946427 A 1.6517857 1.5625000 0 1 1 -7.1428570,3.2946427 A 1.6517857 1.5625000 0 1 1 -3.8392855 3.2946427 z"
|
107
|
+
transform="matrix(2.212146,0.000000,0.000000,2.212146,28.26042,8.848802)" />
|
108
|
+
<path
|
109
|
+
sodipodi:type="arc"
|
110
|
+
style="opacity:1.0000000;color:#000000;fill:#000000;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:0.57439631;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;visibility:visible;display:inline;overflow:visible"
|
111
|
+
id="path2146"
|
112
|
+
sodipodi:cx="-5.4910712"
|
113
|
+
sodipodi:cy="3.2946427"
|
114
|
+
sodipodi:rx="1.6517857"
|
115
|
+
sodipodi:ry="1.5625000"
|
116
|
+
d="M -3.8392855 3.2946427 A 1.6517857 1.5625000 0 1 1 -7.1428570,3.2946427 A 1.6517857 1.5625000 0 1 1 -3.8392855 3.2946427 z"
|
117
|
+
transform="matrix(0.787000,0.000000,0.000000,0.787000,20.44675,13.48581)" />
|
118
|
+
</g>
|
119
|
+
</svg>
|
data/src/gui/textview.rb
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# source generated by 'libGUIb14'
|
2
|
+
|
3
|
+
class TextView
|
4
|
+
def initialize(parent)
|
5
|
+
construct_widget_tree(parent)
|
6
|
+
init if respond_to? :init
|
7
|
+
end
|
8
|
+
|
9
|
+
def construct_widget_tree(parent)
|
10
|
+
@topwin =
|
11
|
+
FX::DialogBox.new(parent) { |w|
|
12
|
+
@TextView = w
|
13
|
+
w.wdg_name = "TextView"
|
14
|
+
w.padLeft = 0
|
15
|
+
w.width = 400
|
16
|
+
w.padRight = 0
|
17
|
+
w.shown = true
|
18
|
+
w.y = 494
|
19
|
+
w.height = 295
|
20
|
+
w.padBottom = 0
|
21
|
+
w.title = "Documentation"
|
22
|
+
w.padTop = 0
|
23
|
+
w.x = 152
|
24
|
+
FX::VerticalFrame.new(@TextView) { |w|
|
25
|
+
@VerticalFrame = w
|
26
|
+
w.wdg_name = "VerticalFrame"
|
27
|
+
w.backColor = Fox::FXRGBA(174, 225, 255, 255)
|
28
|
+
w.width = 400
|
29
|
+
w.height = 295
|
30
|
+
w.padTop = 3
|
31
|
+
FX::Label.new(@VerticalFrame) { |w|
|
32
|
+
@heading = w
|
33
|
+
w.wdg_name = "heading"
|
34
|
+
w.backColor = Fox::FXRGBA(183, 225, 255, 255)
|
35
|
+
w.padLeft = 5
|
36
|
+
w.font = FX::Font.new.from_s("Sans|100|0|0|0|0|0").to_FXFont
|
37
|
+
w.width = 46
|
38
|
+
w.padRight = 5
|
39
|
+
w.y = 3
|
40
|
+
w.height = 21
|
41
|
+
}
|
42
|
+
FX::HorizontalSeparator.new(@VerticalFrame) { |w|
|
43
|
+
@HorizontalSeparator = w
|
44
|
+
w.wdg_name = "HorizontalSeparator"
|
45
|
+
w.backColor = Fox::FXRGBA(0, 0, 0, 255)
|
46
|
+
w.width = 400
|
47
|
+
w.separatorStyle = 131072
|
48
|
+
w.y = 24
|
49
|
+
w.height = 2
|
50
|
+
w.padTop = 1
|
51
|
+
}
|
52
|
+
FX::VerticalFrame.new(@VerticalFrame) { |w|
|
53
|
+
@VerticalFrame2 = w
|
54
|
+
w.wdg_name = "VerticalFrame2"
|
55
|
+
w.backColor = Fox::FXRGBA(230, 230, 230, 255)
|
56
|
+
w.padLeft = 5
|
57
|
+
w.width = 400
|
58
|
+
w.y = 26
|
59
|
+
w.height = 259
|
60
|
+
FX::Text.new(@VerticalFrame2) { |w|
|
61
|
+
@Text = w
|
62
|
+
w.wdg_name = "Text"
|
63
|
+
w.backColor = Fox::FXRGBA(230, 230, 230, 255)
|
64
|
+
w.textTextStyle = 3145728
|
65
|
+
w.width = 395
|
66
|
+
w.height = 259
|
67
|
+
w.x = 5
|
68
|
+
}
|
69
|
+
}
|
70
|
+
FX::HorizontalFrame.new(@VerticalFrame) { |w|
|
71
|
+
@HorizontalFrame2 = w
|
72
|
+
w.wdg_name = "HorizontalFrame2"
|
73
|
+
w.backColor = Fox::FXRGBA(168, 168, 168, 255)
|
74
|
+
w.width = 400
|
75
|
+
w.y = 285
|
76
|
+
w.height = 10
|
77
|
+
w.padTop = 10
|
78
|
+
w.layoutHints = 1024
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
attr_reader :topwin
|
84
|
+
attr_reader :TextView
|
85
|
+
attr_reader :VerticalFrame
|
86
|
+
attr_reader :heading
|
87
|
+
attr_reader :HorizontalSeparator
|
88
|
+
attr_reader :VerticalFrame2
|
89
|
+
attr_reader :Text
|
90
|
+
attr_reader :HorizontalFrame2
|
91
|
+
end
|
92
|
+
|
93
|
+
# unit test
|
94
|
+
if __FILE__ == $0
|
95
|
+
require "libGUIb14"
|
96
|
+
app = App.new
|
97
|
+
w = TextView.new app
|
98
|
+
w.topwin.show(0)
|
99
|
+
app.create
|
100
|
+
app.run
|
101
|
+
end
|
Binary file
|
data/src/minitest.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Copyright (c) 2004-2006 by Henon (meinrad dot recheis at gmail dot com)
|
2
|
+
|
3
|
+
# minitest.rb (c) by henon. "meinrad/recheis\\gmx/at".gsub(/\//, ".").gsub(/\\/, "@")
|
4
|
+
# ruby license
|
5
|
+
require "test/unit/assertions"
|
6
|
+
include Test::Unit::Assertions
|
7
|
+
# use the global variable $testout to redirect test output to an IO object other than STDOUT.
|
8
|
+
# set $testout to nil if you want to silence the test
|
9
|
+
$testout = $stdout
|
10
|
+
$testout.sync = true
|
11
|
+
|
12
|
+
# a simple test case. the block contains the implementation of a test case.
|
13
|
+
# if the return value of the block is true the test case passes. if the block returns false
|
14
|
+
# or the code inside the block raises an exception the test fails.
|
15
|
+
# the output of the test is best viewed in the Scite editor which highlights the failed testcases.
|
16
|
+
# parameters:
|
17
|
+
# description is a string describing the functionality that is going to be tested by this test case.
|
18
|
+
# block is a proc object that usually returns a boolean expression which determines the pass-state of the testcase.
|
19
|
+
# returns true if the test passed, false otherwise
|
20
|
+
def test(description, &block)
|
21
|
+
return unless block
|
22
|
+
failed = false
|
23
|
+
except = ""
|
24
|
+
begin
|
25
|
+
failed = !yield
|
26
|
+
rescue Exception
|
27
|
+
failed = true
|
28
|
+
except = ([$!] + $!.backtrace).join("\n")
|
29
|
+
ensure
|
30
|
+
f = (failed ? "! " : "")
|
31
|
+
s = (failed ? "FAIL #{except}" : "OK")
|
32
|
+
if $testout
|
33
|
+
$testout.puts "#{f}#{description}"
|
34
|
+
$testout.puts "\t#{s}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
!failed
|
38
|
+
end
|
39
|
+
|
40
|
+
# minitests own unit test (selftest)
|
41
|
+
if __FILE__ == $0
|
42
|
+
test("minitest return value") {
|
43
|
+
$testout = nil
|
44
|
+
a = (test("test-testcase") { true } == true)
|
45
|
+
b = (test("test-testcase") { false } == false)
|
46
|
+
$testout = $stdout
|
47
|
+
a and b
|
48
|
+
}
|
49
|
+
test("fail if block raises exception") {
|
50
|
+
$testout = nil
|
51
|
+
a = (test("test-testcase") { raise "error" } == false)
|
52
|
+
$testout = $stdout
|
53
|
+
a
|
54
|
+
}
|
55
|
+
test("this one fails on purpose:") {
|
56
|
+
assert_nothing_raised {
|
57
|
+
raise "error"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
end
|
data/src/prop-lists.rb
ADDED
@@ -0,0 +1,323 @@
|
|
1
|
+
# Copyright (c) 2004-2006 by Henon (meinrad dot recheis at gmail dot com)
|
2
|
+
|
3
|
+
$color_props = [
|
4
|
+
["arrowColor=", "ColorProp"],
|
5
|
+
["barBGColor=", "ColorProp"],
|
6
|
+
["barColor=", "ColorProp"],
|
7
|
+
["boxColor=", "ColorProp"],
|
8
|
+
["backColor=", "ColorProp"],
|
9
|
+
["diskColor=", "ColorProp"],
|
10
|
+
["textColor=", "ColorProp"],
|
11
|
+
["textAltColor=", "ColorProp"],
|
12
|
+
["baseColor=", "ColorProp"],
|
13
|
+
["borderColor=", "ColorProp"],
|
14
|
+
["hiliteColor=", "ColorProp"],
|
15
|
+
["shadowColor=", "ColorProp"],
|
16
|
+
["selBackColor=", "ColorProp"],
|
17
|
+
["selTextColor=", "ColorProp"],
|
18
|
+
["slotColor=", "ColorProp"],
|
19
|
+
["frameColor=", "ColorProp"]
|
20
|
+
]
|
21
|
+
|
22
|
+
$general_props = [
|
23
|
+
["font=", "FontProp"],
|
24
|
+
["img=", "IconProp"],
|
25
|
+
["altImg=", "IconProp"],
|
26
|
+
["range=", "RangeProp"],
|
27
|
+
["enabled=", "BoolProp"],
|
28
|
+
["shown=", "BoolProp"],
|
29
|
+
["radioState=", "BoolProp"],
|
30
|
+
["state=", "BoolProp"], # ['checkState=', 'IntProp'],
|
31
|
+
["displayText=", "BoolProp"],
|
32
|
+
["hSpacing=", "IntProp"],
|
33
|
+
["vSpacing=", "IntProp"],
|
34
|
+
["padTop=", "IntProp"],
|
35
|
+
["padLeft=", "IntProp"],
|
36
|
+
["padRight=", "IntProp"],
|
37
|
+
["padBottom=", "IntProp"],
|
38
|
+
["x=", "IntProp"],
|
39
|
+
["y=", "IntProp"],
|
40
|
+
["width=", "IntProp"],
|
41
|
+
["height=", "IntProp"],
|
42
|
+
["headSize=", "IntProp"],
|
43
|
+
["numVisible=", "IntProp"],
|
44
|
+
["numColumns=", "IntProp"],
|
45
|
+
["numRows=", "IntProp"],
|
46
|
+
["indent=", "IntProp"],
|
47
|
+
["increment=", "IntProp"],
|
48
|
+
["current=", "IntProp"],
|
49
|
+
["borderWidth=", "IntProp"],
|
50
|
+
["barSize=", "IntProp"],
|
51
|
+
["value=", "IntProp"],
|
52
|
+
["arrowSize=", "IntProp"],
|
53
|
+
["attachment=", "IntProp"],
|
54
|
+
["xOffset=", "IntProp"],
|
55
|
+
["yOffset=", "IntProp"],
|
56
|
+
["progress=", "IntProp"],
|
57
|
+
["total=", "IntProp"],
|
58
|
+
["slotSize=", "IntProp"],
|
59
|
+
["tickDelta=", "IntProp"],
|
60
|
+
# ~ ['line','IntProp'],
|
61
|
+
# ~ ['page','IntProp'],
|
62
|
+
["position=", "IntProp"],
|
63
|
+
["accelText=", "StringProp"],
|
64
|
+
["title=", "StringProp"],
|
65
|
+
["text=", "StringProp"],
|
66
|
+
["altText=", "StringProp"],
|
67
|
+
["helpText=", "StringProp"],
|
68
|
+
["tipText=", "StringProp"],
|
69
|
+
["normalText=", "StringProp"],
|
70
|
+
["comboItems=", "StringProp"]
|
71
|
+
]
|
72
|
+
|
73
|
+
$const_props = [
|
74
|
+
["arrowStyle=", "ConstProp",
|
75
|
+
["ARROW_AUTO",
|
76
|
+
"ARROW_UP",
|
77
|
+
"ARROW_DOWN",
|
78
|
+
"ARROW_LEFT",
|
79
|
+
"ARROW_RIGHT",
|
80
|
+
"ARROW_REPEAT",
|
81
|
+
"ARROW_AUTOGRAY",
|
82
|
+
"ARROW_AUTOHIDE",
|
83
|
+
"ARROW_TOOLBAR",
|
84
|
+
"ARROW_NORMAL"]],
|
85
|
+
["buttonButtonStyle=", "ConstProp",
|
86
|
+
["BUTTON_AUTOGRAY",
|
87
|
+
"BUTTON_AUTOHIDE",
|
88
|
+
"BUTTON_TOOLBAR",
|
89
|
+
"BUTTON_DEFAULT",
|
90
|
+
"BUTTON_INITIAL",
|
91
|
+
"BUTTON_NORMAL\t"]],
|
92
|
+
["barStyle=", "ConstProp",
|
93
|
+
["PROGRESSBAR_HORIZONTAL",
|
94
|
+
"PROGRESSBAR_VERTICAL",
|
95
|
+
"PROGRESSBAR_PERCENTAGE",
|
96
|
+
"PROGRESSBAR_DIAL",
|
97
|
+
"PROGRESSBAR_NORMAL"]],
|
98
|
+
["checkButtonStyle=", "ConstProp",
|
99
|
+
["CHECKBUTTON_NORMAL",
|
100
|
+
"CHECKBUTTON_AUTOGRAY",
|
101
|
+
"CHECKBUTTON_AUTOHIDE",
|
102
|
+
"CHECKBUTTON_PLUS"]],
|
103
|
+
["comboStyle=", "ConstProp",
|
104
|
+
["COMBOBOX_NO_REPLACE",
|
105
|
+
"COMBOBOX_REPLACE",
|
106
|
+
"COMBOBOX_INSERT_BEFORE",
|
107
|
+
"COMBOBOX_INSERT_AFTER",
|
108
|
+
"COMBOBOX_INSERT_FIRST",
|
109
|
+
"COMBOBOX_INSERT_LAST",
|
110
|
+
"COMBOBOX_STATIC",
|
111
|
+
"COMBOBOX_NORMAL"]],
|
112
|
+
["decorations=", "ConstProp",
|
113
|
+
["DECOR_MENU", "DECOR_TITLE",
|
114
|
+
"DECOR_MINIMIZE", "DECOR_MAXIMIZE", "DECOR_CLOSE",
|
115
|
+
"DECOR_BORDER", "DECOR_SHRINKABLE", "DECOR_STRETCHABLE"]],
|
116
|
+
["dialStyle=", "ConstProp",
|
117
|
+
["DIAL_VERTICAL",
|
118
|
+
"DIAL_HORIZONTAL",
|
119
|
+
"DIAL_CYCLIC",
|
120
|
+
"DIAL_HAS_NOTCH",
|
121
|
+
"DIAL_NORMAL"]],
|
122
|
+
["frameStyle=", "ConstProp",
|
123
|
+
["FRAME_GROOVE",
|
124
|
+
"FRAME_LINE",
|
125
|
+
"FRAME_NONE",
|
126
|
+
"FRAME_NORMAL",
|
127
|
+
"FRAME_RAISED",
|
128
|
+
"FRAME_RIDGE",
|
129
|
+
"FRAME_SUNKEN",
|
130
|
+
"FRAME_THICK"]],
|
131
|
+
["groupBoxStyle=", "ConstProp",
|
132
|
+
["GROUPBOX_TITLE_LEFT",
|
133
|
+
"GROUPBOX_TITLE_CENTER",
|
134
|
+
"GROUPBOX_TITLE_RIGHT",
|
135
|
+
"GROUPBOX_NORMAL"]],
|
136
|
+
["layoutHints=", "ConstProp",
|
137
|
+
["LAYOUT_BOTTOM",
|
138
|
+
"LAYOUT_CENTER_X",
|
139
|
+
"LAYOUT_CENTER_Y",
|
140
|
+
"LAYOUT_EXPLICIT",
|
141
|
+
"LAYOUT_FILL_COLUMN",
|
142
|
+
"LAYOUT_FILL_ROW",
|
143
|
+
"LAYOUT_FILL_X",
|
144
|
+
"LAYOUT_FILL_Y",
|
145
|
+
"LAYOUT_FIX_HEIGHT",
|
146
|
+
"LAYOUT_FIX_WIDTH",
|
147
|
+
"LAYOUT_FIX_X",
|
148
|
+
"LAYOUT_FIX_Y",
|
149
|
+
"LAYOUT_LEFT",
|
150
|
+
"LAYOUT_MIN_HEIGHT",
|
151
|
+
"LAYOUT_MIN_WIDTH",
|
152
|
+
"LAYOUT_NORMAL",
|
153
|
+
"LAYOUT_RIGHT",
|
154
|
+
"LAYOUT_SIDE_BOTTOM",
|
155
|
+
"LAYOUT_SIDE_LEFT",
|
156
|
+
"LAYOUT_SIDE_RIGHT",
|
157
|
+
"LAYOUT_SIDE_TOP",
|
158
|
+
"LAYOUT_TOP"]],
|
159
|
+
["headerStyle=", "ConstProp",
|
160
|
+
["HEADER_BUTTON",
|
161
|
+
"HEADER_HORIZONTAL",
|
162
|
+
"HEADER_VERTICAL",
|
163
|
+
"HEADER_TRACKING",
|
164
|
+
"HEADER_NORMAL"]],
|
165
|
+
["iconListStyle=", "ConstProp",
|
166
|
+
["ICONLIST_EXTENDEDSELECT",
|
167
|
+
"ICONLIST_SINGLESELECT",
|
168
|
+
"ICONLIST_BROWSESELECT",
|
169
|
+
"ICONLIST_MULTIPLESELECT",
|
170
|
+
"ICONLIST_AUTOSIZE",
|
171
|
+
"ICONLIST_DETAILED",
|
172
|
+
"ICONLIST_MINI_ICONS",
|
173
|
+
"ICONLIST_BIG_ICONS",
|
174
|
+
"ICONLIST_ROWS",
|
175
|
+
"ICONLIST_COLUMNS",
|
176
|
+
"ICONLIST_NORMAL"]],
|
177
|
+
["iconPosition=", "ConstProp",
|
178
|
+
["ICON_UNDER_TEXT",
|
179
|
+
"ICON_AFTER_TEXT",
|
180
|
+
"ICON_BEFORE_TEXT",
|
181
|
+
"ICON_ABOVE_TEXT",
|
182
|
+
"ICON_BELOW_TEXT"]],
|
183
|
+
|
184
|
+
["justify=", "ConstProp",
|
185
|
+
["JUSTIFY_NORMAL",
|
186
|
+
"JUSTIFY_CENTER_X",
|
187
|
+
"JUSTIFY_LEFT",
|
188
|
+
"JUSTIFY_RIGHT",
|
189
|
+
"JUSTIFY_HZ_APART",
|
190
|
+
"JUSTIFY_CENTER_Y",
|
191
|
+
"JUSTIFY_TOP",
|
192
|
+
"JUSTIFY_BOTTOM",
|
193
|
+
"JUSTIFY_VT_APART"]],
|
194
|
+
["listListStyle=", "ConstProp",
|
195
|
+
["LIST_EXTENDEDSELECT",
|
196
|
+
"LIST_SINGLESELECT",
|
197
|
+
"LIST_BROWSESELECT",
|
198
|
+
"LIST_MULTIPLESELECT",
|
199
|
+
"LIST_AUTOSELECT",
|
200
|
+
"LIST_NORMAL"]],
|
201
|
+
["matrixStyle=", "ConstProp",
|
202
|
+
["MATRIX_BY_ROWS", "MATRIX_BY_COLUMNS"]],
|
203
|
+
["menuButtonStyle=", "ConstProp",
|
204
|
+
["MENUBUTTON_AUTOGRAY",
|
205
|
+
"MENUBUTTON_AUTOHIDE",
|
206
|
+
"MENUBUTTON_TOOLBAR",
|
207
|
+
"MENUBUTTON_DOWN",
|
208
|
+
"MENUBUTTON_UP",
|
209
|
+
"MENUBUTTON_LEFT",
|
210
|
+
"MENUBUTTON_RIGHT",
|
211
|
+
"MENUBUTTON_NOARROWS",
|
212
|
+
"MENUBUTTON_ATTACH_LEFT",
|
213
|
+
"MENUBUTTON_ATTACH_TOP",
|
214
|
+
"MENUBUTTON_ATTACH_RIGHT",
|
215
|
+
"MENUBUTTON_ATTACH_BOTTOM",
|
216
|
+
"MENUBUTTON_ATTACH_CENTER",
|
217
|
+
"MENUBUTTON_ATTACH_BOTH"]],
|
218
|
+
["menuStyle=", "ConstProp",
|
219
|
+
["MENU_AUTOGRAY", "MENU_AUTOHIDE"]],
|
220
|
+
["packingHints=", "ConstProp",
|
221
|
+
["PACK_NORMAL",
|
222
|
+
"PACK_UNIFORM_HEIGHT",
|
223
|
+
"PACK_UNIFORM_WIDTH"]],
|
224
|
+
["scrollStyle=", "ConstProp",
|
225
|
+
["SCROLLERS_NORMAL",
|
226
|
+
"HSCROLLER_ALWAYS",
|
227
|
+
"HSCROLLER_NEVER",
|
228
|
+
"VSCROLLER_ALWAYS",
|
229
|
+
"VSCROLLER_NEVER",
|
230
|
+
"HSCROLLING_ON",
|
231
|
+
"HSCROLLING_OFF",
|
232
|
+
"VSCROLLING_ON",
|
233
|
+
"VSCROLLING_OFF",
|
234
|
+
"SCROLLERS_TRACK",
|
235
|
+
"SCROLLERS_DONT_TRACK",
|
236
|
+
"SCROLLBAR_WHEELJUMP"]],
|
237
|
+
["spinnerStyle=", "ConstProp",
|
238
|
+
["SPIN_NORMAL",
|
239
|
+
"SPIN_CYCLIC",
|
240
|
+
"SPIN_NOTEXT",
|
241
|
+
"SPIN_NOMAX",
|
242
|
+
"SPIN_NOMIN"]],
|
243
|
+
["splitterStyle=", "ConstProp",
|
244
|
+
["SPLITTER_HORIZONTAL",
|
245
|
+
"SPLITTER_VERTICAL",
|
246
|
+
"SPLITTER_REVERSED",
|
247
|
+
"SPLITTER_TRACKING",
|
248
|
+
"SPLITTER_NORMAL"]],
|
249
|
+
["switcherStyle=", "ConstProp",
|
250
|
+
["SWITCHER_HCOLLAPSE",
|
251
|
+
"SWITCHER_VCOLLAPSE"]],
|
252
|
+
["tabStyle=", "ConstProp",
|
253
|
+
["TABBOOK_BOTTOMTABS",
|
254
|
+
"TABBOOK_LEFTTABS",
|
255
|
+
"TABBOOK_NORMAL",
|
256
|
+
"TABBOOK_RIGHTTABS",
|
257
|
+
"TABBOOK_SIDEWAYS",
|
258
|
+
"TABBOOK_TOPTABS"]],
|
259
|
+
["tabOrientation=", "ConstProp",
|
260
|
+
["TAB_BOTTOM",
|
261
|
+
"TAB_BOTTOM_NORMAL",
|
262
|
+
"TAB_LEFT",
|
263
|
+
"TAB_LEFT_NORMAL",
|
264
|
+
"TAB_RIGHT",
|
265
|
+
"TAB_RIGHT_NORMAL",
|
266
|
+
"TAB_TOP",
|
267
|
+
"TAB_TOP_NORMAL"]],
|
268
|
+
["textFieldTextStyle=", "ConstProp",
|
269
|
+
["TEXTFIELD_PASSWD",
|
270
|
+
"TEXTFIELD_INTEGER",
|
271
|
+
"TEXTFIELD_REAL",
|
272
|
+
"TEXTFIELD_READONLY",
|
273
|
+
"TEXTFIELD_ENTER_ONLY",
|
274
|
+
"TEXTFIELD_LIMITED",
|
275
|
+
"TEXTFIELD_OVERSTRIKE",
|
276
|
+
"TEXTFIELD_NORMAL",
|
277
|
+
"TEXTFIELD_AUTOGRAY",
|
278
|
+
"TEXTFIELD_AUTOHIDE"]],
|
279
|
+
["textTextStyle=", "ConstProp",
|
280
|
+
["TEXT_READONLY",
|
281
|
+
"TEXT_WORDWRAP",
|
282
|
+
"TEXT_OVERSTRIKE",
|
283
|
+
"TEXT_FIXEDWRAP",
|
284
|
+
"TEXT_NO_TABS",
|
285
|
+
"TEXT_AUTOINDENT",
|
286
|
+
"TEXT_SHOWACTIVE"]],
|
287
|
+
["treeListStyle=", "ConstProp",
|
288
|
+
["TREELIST_EXTENDEDSELECT",
|
289
|
+
"TREELIST_SINGLESELECT",
|
290
|
+
"TREELIST_BROWSESELECT",
|
291
|
+
"TREELIST_MULTIPLESELECT",
|
292
|
+
"TREELIST_AUTOSELECT",
|
293
|
+
"TREELIST_SHOWS_LINES",
|
294
|
+
"TREELIST_SHOWS_BOXES",
|
295
|
+
"TREELIST_ROOT_BOXES",
|
296
|
+
"TREELIST_NORMAL"]],
|
297
|
+
["toggleStyle=", "ConstProp",
|
298
|
+
["TOGGLEBUTTON_AUTOGRAY",
|
299
|
+
"TOGGLEBUTTON_AUTOHIDE",
|
300
|
+
"TOGGLEBUTTON_TOOLBAR",
|
301
|
+
"TOGGLEBUTTON_NORMAL",
|
302
|
+
"TOGGLEBUTTON_KEEPSTATE"]],
|
303
|
+
["separatorStyle=", "ConstProp",
|
304
|
+
["SEPARATOR_GROOVE",
|
305
|
+
"SEPARATOR_RIDGE",
|
306
|
+
"SEPARATOR_LINE"]],
|
307
|
+
["scrollbarStyle=", "ConstProp",
|
308
|
+
["SCROLLBAR_HORIZONTAL",
|
309
|
+
"SCROLLBAR_VERTICAL"]],
|
310
|
+
["sliderStyle=", "ConstProp",
|
311
|
+
["SLIDER_HORIZONTAL",
|
312
|
+
"SLIDER_VERTICAL",
|
313
|
+
"SLIDER_ARROW_UP",
|
314
|
+
"SLIDER_ARROW_DOWN",
|
315
|
+
"SLIDER_ARROW_LEFT",
|
316
|
+
"SLIDER_ARROW_RIGHT",
|
317
|
+
"SLIDER_INSIDE_BAR",
|
318
|
+
"SLIDER_TICKS_TOP",
|
319
|
+
"SLIDER_TICKS_BOTTOM",
|
320
|
+
"SLIDER_TICKS_LEFT",
|
321
|
+
"SLIDER_TICKS_RIGHT",
|
322
|
+
"SLIDER_NORMAL"]]
|
323
|
+
] # :
|