foxguib 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/changelog.txt +128 -0
  4. data/doc/www/index.html +173 -0
  5. data/doc/www/upload.rb +9 -0
  6. data/examples/event_handler.rb +67 -0
  7. data/examples/event_handlers.rbin +0 -0
  8. data/examples/guib_testdialog.rb +31 -0
  9. data/examples/testdialog.rb +29 -0
  10. data/exe/foxguib +1 -0
  11. data/foxGUIb-debug.rb +37 -0
  12. data/foxGUIb.rb +88 -0
  13. data/foxGUIb_win32.rbw +1 -0
  14. data/foxguib.gemspec +26 -0
  15. data/license.txt +49 -0
  16. data/readme.txt +1 -0
  17. data/release_notes.txt +68 -0
  18. data/src/assert.rb +8 -0
  19. data/src/cfgman.rb +27 -0
  20. data/src/code-gen/code-generator.rb +171 -0
  21. data/src/code-gen/property-generators.rb +65 -0
  22. data/src/code-gen/widget-generator.rb +22 -0
  23. data/src/convert.rb +60 -0
  24. data/src/direct_widget_manipulation.rb +343 -0
  25. data/src/docman.rb +260 -0
  26. data/src/document.rb +405 -0
  27. data/src/event_categories.yaml +85 -0
  28. data/src/event_listener.rb +57 -0
  29. data/src/events.yaml +77 -0
  30. data/src/events_docu.yaml +228 -0
  31. data/src/get_events.rb +64 -0
  32. data/src/gui/ArrowButton.tga +0 -0
  33. data/src/gui/BoxMinus.tga +0 -0
  34. data/src/gui/BoxPlus.tga +0 -0
  35. data/src/gui/Button.tga +0 -0
  36. data/src/gui/CheckButton.tga +0 -0
  37. data/src/gui/ComboBox.tga +0 -0
  38. data/src/gui/Dial.tga +0 -0
  39. data/src/gui/GroupBox.tga +0 -0
  40. data/src/gui/HorizontalFrame.tga +0 -0
  41. data/src/gui/HorizontalSeparator.tga +0 -0
  42. data/src/gui/Label.tga +0 -0
  43. data/src/gui/MDIChild.tga +0 -0
  44. data/src/gui/MDIClient.tga +0 -0
  45. data/src/gui/Matrix.tga +0 -0
  46. data/src/gui/MenuCaption.tga +0 -0
  47. data/src/gui/MenuCascade.tga +0 -0
  48. data/src/gui/MenuCheck.tga +0 -0
  49. data/src/gui/MenuCommand.tga +0 -0
  50. data/src/gui/MenuPane.tga +0 -0
  51. data/src/gui/MenuRadio.tga +0 -0
  52. data/src/gui/MenuSeparator.tga +0 -0
  53. data/src/gui/MenuTitle.tga +0 -0
  54. data/src/gui/Menubar.tga +0 -0
  55. data/src/gui/Packer.tga +0 -0
  56. data/src/gui/ProgressBar.tga +0 -0
  57. data/src/gui/RadioButton.tga +0 -0
  58. data/src/gui/RadioMutex.tga +0 -0
  59. data/src/gui/ScrollWindow.tga +0 -0
  60. data/src/gui/Scrollbar.tga +0 -0
  61. data/src/gui/Shutter.tga +0 -0
  62. data/src/gui/ShutterItem.tga +0 -0
  63. data/src/gui/Slider.tga +0 -0
  64. data/src/gui/Spinner.tga +0 -0
  65. data/src/gui/Splitter.tga +0 -0
  66. data/src/gui/StatusBar.tga +0 -0
  67. data/src/gui/Statusline.tga +0 -0
  68. data/src/gui/Switcher.tga +0 -0
  69. data/src/gui/TabBar.tga +0 -0
  70. data/src/gui/TabBook.tga +0 -0
  71. data/src/gui/TabItem.tga +0 -0
  72. data/src/gui/Text.tga +0 -0
  73. data/src/gui/TextField.tga +0 -0
  74. data/src/gui/ToggleButton.tga +0 -0
  75. data/src/gui/Toolbar.tga +0 -0
  76. data/src/gui/VerticalFrame.tga +0 -0
  77. data/src/gui/VerticalSeparator.tga +0 -0
  78. data/src/gui/_guib_event_editor.rb +185 -0
  79. data/src/gui/_guib_event_editor.rbin +0 -0
  80. data/src/gui/_guib_genruby.rb +414 -0
  81. data/src/gui/_guib_genruby.rbin +0 -0
  82. data/src/gui/_guib_mainwin.rb +574 -0
  83. data/src/gui/_guib_mainwin.rbin +0 -0
  84. data/src/gui/event_editor.rb +180 -0
  85. data/src/gui/genruby.rb +155 -0
  86. data/src/gui/guib__console.rb +265 -0
  87. data/src/gui/mainwin.rb +71 -0
  88. data/src/gui/ruby_console.rb +263 -0
  89. data/src/gui/svg/Matrix.svg +87 -0
  90. data/src/gui/svg/MenuCheck.svg +135 -0
  91. data/src/gui/svg/MenuRadio.svg +130 -0
  92. data/src/gui/svg/RadioMutex.svg +119 -0
  93. data/src/gui/textview.rb +101 -0
  94. data/src/gui/textview.rbin +0 -0
  95. data/src/minitest.rb +60 -0
  96. data/src/prop-lists.rb +323 -0
  97. data/src/prop-types.rb +606 -0
  98. data/src/properties.rb +119 -0
  99. data/src/propman.rb +88 -0
  100. data/src/relink_mechanisms.rb +95 -0
  101. data/src/serialize.rb +167 -0
  102. data/src/state_machine.rb +73 -0
  103. data/src/version.rb +6 -0
  104. data/src/widget-lists.rb +118 -0
  105. data/src/widget-selector.rb +85 -0
  106. data/src/widgettree-controls.rb +183 -0
  107. data.tar.gz.sig +0 -0
  108. metadata +236 -0
  109. metadata.gz.sig +0 -0
@@ -0,0 +1,228 @@
1
+ ---
2
+ FX::Canvas:
3
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
4
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
5
+ SEL_MOTION: !str sent when the mouse moves; the message data is an FXEvent instance.
6
+ SEL_PAINT: !str sent when the canvas needs to be redrawn; the message data is an FXEvent instance.
7
+ FX::DirBox:
8
+ SEL_CHANGED: !str sent when the current item changes; the message data is the new current directory.
9
+ SEL_COMMAND: !str sent when the current item changes; the message data is the new current directory.
10
+ FX::DirList:
11
+ SEL_CLOSED: !str sent when a folder item is closed; the message data is a reference to the FXDirItem that was closed
12
+ SEL_OPENED: !str sent when a folder item is opened; the message data is a reference to the FXDirItem that was opened
13
+ FX::DriveBox:
14
+ SEL_CHANGED: !str sent when the current item changes; the message data is the current drive
15
+ SEL_COMMAND: !str sent when a new item is selected from the list; the message data is the drive
16
+ FX::FileList:
17
+ FX::Header:
18
+ SEL_CHANGED: !str sent continuously while a header item is being resized, if the HEADER_TRACKING option was specified, or at the end of the resize if HEADER_TRACKING was not specfied. The message data is an integer indicating the index of the item being resized.
19
+ SEL_COMMAND: !str sent when a header item is clicked; the message data is an integer indicating the index of the current item.
20
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
21
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
22
+ SEL_REPLACED: !str sent when a header item is about to be replaced; the message data is an Integer indicating the index of the item to be replaced.
23
+ SEL_INSERTED: !str sent after a header item is inserted; the message data is an Integer indicating the index of the item that was inserted.
24
+ SEL_DELETED: !str sent when a header item is about to be removed; the message data is an Integer indicating the index of the item to be removed.
25
+ FX::HorizontalSeparator:
26
+ FX::IconList:
27
+ SEL_CHANGED: !str sent when the current list item changes; the message data is an Integer indicating the index of the current item.
28
+ SEL_COMMAND: !str sent when the current list item changes; the message data is an Integer indicating the index of the current item.
29
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
30
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
31
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
32
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
33
+ SEL_RIGHTBUTTONPRESS: !str sent when the right mouse button goes down; the message data is an FXEvent instance.
34
+ SEL_RIGHTBUTTONRELEASE: !str sent when the right mouse button goes up; the message data is an FXEvent instance.
35
+ SEL_CLICKED: !str sent when a list item is single-clicked; the message data is an Integer indicating the index of the current item.
36
+ SEL_DOUBLECLICKED: !str sent when a list item is double-clicked; the message data is an Integer indicating the index of the current item.
37
+ SEL_TRIPLECLICKED: !str sent when a list item is triple-clicked; the message data is an Integer indicating the index of the current item.
38
+ SEL_SELECTED: !str sent when a list item is selected; the message data is an Integer indicating the index of the selected item.
39
+ SEL_DESELECTED: !str sent when a list item is deselected; the message data is an Integer indicating the index of the deselected item.
40
+ SEL_REPLACED: !str sent when a list item is about to be replaced; the message data is an Integer indicating the index of the item to be replaced.
41
+ SEL_INSERTED: !str sent after a list item is inserted; the message data is an Integer indicating the index of the item that was inserted.
42
+ SEL_DELETED: !str sent when a list item is about to be removed; the message data is an Integer indicating the index of the item to be removed.
43
+ FX::List:
44
+ SEL_CHANGED: !str sent when the current list item changes; the message data is an Integer indicating the index of the current item.
45
+ SEL_COMMAND: !str sent when the current list item changes; the message data is an Integer indicating the index of the current item.
46
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
47
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
48
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
49
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
50
+ SEL_RIGHTBUTTONPRESS: !str sent when the right mouse button goes down; the message data is an FXEvent instance.
51
+ SEL_RIGHTBUTTONRELEASE: !str sent when the right mouse button goes up; the message data is an FXEvent instance.
52
+ SEL_CLICKED: !str sent when a list item is single-clicked; the message data is an Integer indicating the index of the current item.
53
+ SEL_DOUBLECLICKED: !str sent when a list item is double-clicked; the message data is an Integer indicating the index of the current item.
54
+ SEL_TRIPLECLICKED: !str sent when a list item is triple-clicked; the message data is an Integer indicating the index of the current item.
55
+ SEL_SELECTED: !str sent when a list item is selected; the message data is an Integer indicating the index of the selected item.
56
+ SEL_DESELECTED: !str sent when a list item is deselected; the message data is an Integer indicating the index of the deselected item.
57
+ SEL_REPLACED: !str sent when a list item is about to be replaced; the message data is an Integer indicating the index of the item to be replaced.
58
+ SEL_INSERTED: !str sent after a list item is inserted; the message data is an Integer indicating the index of the item that was inserted.
59
+ SEL_DELETED: !str sent when a list item is about to be removed; the message data is an Integer indicating the index of the item to be removed.
60
+ FX::ListBox:
61
+ SEL_COMMAND: !str sent when a new list item is clicked; the message data is the index of the selected item.
62
+ SEL_CHANGED: !str sent when a new list item is clicked; the message data is the index of the selected item.
63
+ FX::MenuButton:
64
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
65
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
66
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
67
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
68
+ FX::Option:
69
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
70
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
71
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
72
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
73
+ SEL_COMMAND: !str sent when this option is clicked; the message data is an FXEvent instance.
74
+ FX::OptionMenu:
75
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
76
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
77
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
78
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
79
+ FX::ScrollArea:
80
+ FX::TreeList:
81
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
82
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
83
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
84
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
85
+ SEL_RIGHTBUTTONPRESS: !str sent when the right mouse button goes down; the message data is an FXEvent instance.
86
+ SEL_RIGHTBUTTONRELEASE: !str sent when the right mouse button goes up; the message data is an FXEvent instance.
87
+ SEL_COMMAND: !str sent when a list item is clicked on; the message data is a reference to the item (an FXTreeItem instance).
88
+ SEL_CLICKED: !str sent when the left mouse button is single-clicked in the list; the message data is a reference to the item clicked (an FXTreeItem instance) or nil if no item was clicked.
89
+ SEL_DOUBLECLICKED: !str sent when the left mouse button is double-clicked in the list; the message data is a reference to the item clicked (an FXTreeItem instance) or nil if no item was clicked.
90
+ SEL_TRIPLECLICKED: !str sent when the left mouse button is triple-clicked in the list; the message data is a reference to the item clicked (an FXTreeItem instance) or nil if no item was clicked.
91
+ SEL_OPENED: !str sent when an item is opened; the message data is a reference to the item (an FXTreeItem instance).
92
+ SEL_CLOSED: !str sent when an item is closed; the message data is a reference to the item (an FXTreeItem instance).
93
+ SEL_EXPANDED: !str sent when a sub-tree is expanded; the message data is a reference to the root item for the sub-tree (an FXTreeItem instance).
94
+ SEL_COLLAPSED: !str sent when a sub-tree is collapsed; the message data is a reference to the root item for the sub-tree (an FXTreeItem instance).
95
+ SEL_SELECTED: !str sent when an item is selected; the message data is a reference to the item (an FXTreeItem instance).
96
+ SEL_DESELECTED: !str sent when an item is deselected; the message data is a reference to the item (an FXTreeItem instance).
97
+ SEL_CHANGED: !str sent when the current item changes; the message data is a reference to the current item (an FXTreeItem instance).
98
+ SEL_INSERTED: !str sent after an item is added to the list; the message data is a reference to the item (an FXTreeItem instance).
99
+ SEL_DELETED: !str sent before an item is removed from the list; the message data is a reference to the item (an FXTreeItem instance).
100
+ FX::VerticalSeparator:
101
+ FX::VerticalFrame:
102
+ FX::HorizontalFrame:
103
+ FX::Packer:
104
+ FX::GroupBox:
105
+ FX::ScrollWindow:
106
+ FX::Shutter:
107
+ SEL_COMMAND: !str sent whenever a new shutter item is opened; the message data is an integer indicating the new currently displayed shutter item.
108
+ FX::ShutterItem:
109
+ FX::Splitter:
110
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
111
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
112
+ SEL_COMMAND: !str sent at the end of a resize operation, to signal that the resize is complete
113
+ SEL_CHANGED: !str sent continuously while a resize operation is occurring
114
+ FX::Matrix:
115
+ FX::MDIClient:
116
+ SEL_CHANGED: !str sent when the active child changes; the message data is a reference to the new active child window (or nil if there is none)
117
+ FX::TabBar:
118
+ SEL_COMMAND: !str sent whenever the current tab item changes; the message data is an integer indicating the new current tab item's index.
119
+ FX::TabBook:
120
+ FX::TabItem:
121
+ FX::Switcher:
122
+ SEL_COMMAND: !str sent whenever the current (topmost) child window changes; the message data is an integer indicating the new current window's index.
123
+ FX::MenuBar:
124
+ FX::ToolBar:
125
+ FX::StatusBar:
126
+ FX::StatusLine:
127
+ SEL_UPDATE: !str Sent when the widget currently under the mouse cursor doesn't respond to a SEL_UPDATE message with identifier ID_QUERY_HELP, as described above.
128
+ FX::MenuBar:
129
+ FX::MenuCaption:
130
+ FX::MenuCascade:
131
+ FX::MenuCommand:
132
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
133
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
134
+ SEL_COMMAND: !str sent when the command is activated
135
+ FX::MenuSeparator:
136
+ FX::MenuTitle:
137
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
138
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
139
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
140
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
141
+ FX::MenuPane:
142
+ FX::ArrowButton:
143
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
144
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
145
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
146
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
147
+ SEL_COMMAND: !str sent when the button is clicked (or repeatedly while the button is held down, if the ARROW_REPEAT option is in effect).
148
+ FX::Button:
149
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
150
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
151
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
152
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
153
+ SEL_COMMAND: !str sent when the button is clicked.
154
+ FX::CheckButton:
155
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
156
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
157
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
158
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
159
+ SEL_COMMAND: !str sent when the button is clicked.
160
+ FX::ComboBox:
161
+ SEL_CHANGED: !str sent when the text in the text field changes; the message data is a String containing the new text.
162
+ SEL_COMMAND: !str sent when a new item is selected from the list, or when a command message is sent from the text field; the message data is a String containing the new text.
163
+ FX::Dial:
164
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
165
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
166
+ SEL_CHANGED: !str sent when the dial's value changes; the message data is the new value (an integer).
167
+ SEL_COMMAND: !str sent when the user stops changing the dial's value and releases the mouse button; the message data is the new value (an integer).
168
+ FX::Label:
169
+ FX::RadioButton:
170
+ SEL_COMMAND: !str sent when the radio button is pressed.
171
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
172
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
173
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
174
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
175
+ FX::Text:
176
+ SEL_KEYPRESS: !str sent when a key is pressed; the message data is an FXEvent instance.
177
+ SEL_KEYRELEASE: !str sent when a key is released; the message data is an FXEvent instance.
178
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
179
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
180
+ SEL_MIDDLEBUTTONPRESS: !str sent when the middle mouse button goes down; the message data is an FXEvent instance.
181
+ SEL_MIDDLEBUTTONRELEASE: !str sent when the middle mouse button goes up; the message data is an FXEvent instance.
182
+ SEL_RIGHTBUTTONPRESS: !str sent when the right mouse button goes down; the message data is an FXEvent instance.
183
+ SEL_RIGHTBUTTONRELEASE: !str sent when the right mouse button goes up; the message data is an FXEvent instance.
184
+ SEL_INSERTED: !str sent after text is inserted into the text buffer; the message data is a two-element array indicating the position at which the text was inserted and the number of characters inserted.
185
+ SEL_DELETED: !str sent before text is removed from the text buffer; the message data is a two-element array indicating the position at which text will be removed and the number of characters to be removed.
186
+ SEL_CHANGED: !str sent when the contents of the text buffer change in any way; the message data is an integer indicating the cursor position.
187
+ SEL_SELECTED: !str sent after text is selected; the message data is a two-element array indicating the starting position of the selected text and the number of characters selected.
188
+ SEL_DESELECTED: !str sent before text is deselected; the message data is a two-element array indicating the starting position of the deselected text and the number of characters deselected.
189
+ FX::TextField:
190
+ SEL_COMMAND: !str sent when the user presses the Enter key or tabs out of the text field; the message data is a String containing the text.
191
+ SEL_CHANGED: !str sent when the text changes; the message data is a String containing the text.
192
+ SEL_VERIFY: !str sent when the user attempts to enter new text in the text field; the message data is a String containing the proposed new text.
193
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
194
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
195
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
196
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
197
+ SEL_MIDDLEBUTTONPRESS: !str sent when the middle mouse button goes down; the message data is an FXEvent instance.
198
+ SEL_MIDDLEBUTTONRELEASE: !str sent when the middle mouse button goes up; the message data is an FXEvent instance.
199
+ FX::ToggleButton:
200
+ SEL_COMMAND: !str sent when the toggle button is pressed.
201
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
202
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
203
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
204
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
205
+ FX::Slider:
206
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
207
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
208
+ SEL_MIDDLEBUTTONPRESS: !str sent when the middle mouse button goes down; the message data is an FXEvent instance.
209
+ SEL_MIDDLEBUTTONRELEASE: !str sent when the middle mouse button goes up; the message data is an FXEvent instance.
210
+ SEL_COMMAND: !str sent at the end of a slider move; the message data is the new position of the slider (an Integer).
211
+ SEL_CHANGED: !str sent continuously while the slider is being moved; the message data is an integer indicating the current slider position.
212
+ FX::Spinner:
213
+ SEL_KEYPRESS: !str sent when a key goes down; the message data is an FXEvent instance.
214
+ SEL_KEYRELEASE: !str sent when a key goes up; the message data is an FXEvent instance.
215
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
216
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
217
+ SEL_COMMAND: !str sent whenever the spinner's value changes; the message data is an integer indicating the new spinner value.
218
+ SEL_CHANGED: !str sent whenever the text in the spinner's text field changes; the message data is an integer indicating the new spinner value.
219
+ FX::ScrollBar:
220
+ SEL_LEFTBUTTONPRESS: !str sent when the left mouse button goes down; the message data is an FXEvent instance.
221
+ SEL_LEFTBUTTONRELEASE: !str sent when the left mouse button goes up; the message data is an FXEvent instance.
222
+ SEL_MIDDLEBUTTONPRESS: !str sent when the middle mouse button goes down; the message data is an FXEvent instance.
223
+ SEL_MIDDLEBUTTONRELEASE: !str sent when the middle mouse button goes up; the message data is an FXEvent instance.
224
+ SEL_RIGHTBUTTONPRESS: !str sent when the right mouse button goes down; the message data is an FXEvent instance.
225
+ SEL_RIGHTBUTTONRELEASE: !str sent when the right mouse button goes up; the message data is an FXEvent instance.
226
+ SEL_CHANGED: !str sent continuously while the scroll bar is moving; the message data is an integer indicating the current position of the scroll bar.
227
+ SEL_COMMAND: !str sent at the end of a scrolling operation, to signal that the scrolling is complete. The message data is an integer indicating the new position of the scroll bar.
228
+ FX::ProgressBar:
data/src/get_events.rb ADDED
@@ -0,0 +1,64 @@
1
+ # Copyright (c) 2004-2006 by Henon (meinrad dot recheis at gmail dot com)
2
+
3
+ require "net/http"
4
+ require "uri"
5
+ $stdout.sync = true
6
+
7
+ require "widget-lists"
8
+ require "serialize"
9
+
10
+ LINK_REGEX = /(?m)(<a (?:.(?!<|>))*.>(?:.(?!<\/a>))*.<\/a>)/
11
+ LINK_SPLIT = LINK_REGEX # /(#{LINK_REGEX})/
12
+
13
+ def scan_text html, substitutions = nil
14
+ substitutions ||= {
15
+ /<br>|<p>/ => "\n",
16
+ /<table/ => "\n---:\n<table",
17
+ /<tr/ => "<tr",
18
+ /<\/tr/ => " \n</tr",
19
+ /<td/ => " <td",
20
+ /&nbsp;/ => " ",
21
+ /&#8217;/ => "'"
22
+ }
23
+ s = html.split.join(" ")
24
+ substitutions.each { |re, ss|
25
+ s.gsub!(re, ss)
26
+ }
27
+ s.scan(/(?m)>((?:(?=(?!<|>)).)+)</).flatten
28
+ end
29
+
30
+ def scan_tags html
31
+ html.scan(/<(?:.(?!<|>))*.>/)
32
+ end
33
+
34
+ def scan_strings html
35
+ html.scan(/(["'])((?:(?!\1).)*)\1/)
36
+ end
37
+
38
+ def scan_links html
39
+ html.scan(LINK_REGEX).flatten
40
+ end
41
+
42
+ def split_links html
43
+ html.split(LINK_REGEX)
44
+ end
45
+
46
+ include Serialize
47
+
48
+ File.open("events_docu.yaml", "wb") { |f|
49
+ Net::HTTP.start("www.fxruby.org", 80) { |http|
50
+ f.puts "---"
51
+ ALL_WIDGETS.each { |name|
52
+ response = http.get("/doc/api/classes/Fox/FX#{name}.html")
53
+ f.puts "FX::#{name}:"
54
+ a = scan_text(response.body).join.scan(/^\s*SEL_.+/)
55
+ a.collect { |line|
56
+ parts = line.split(":")
57
+ event = parts.shift
58
+ description = "!str #{parts.join(":")}"
59
+ f.puts " #{event}: #{description}"
60
+ }
61
+ }
62
+ }
63
+ }
64
+ pp load_yaml("events_docu.yaml")
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/src/gui/Dial.tga ADDED
Binary file
Binary file
Binary file
Binary file
data/src/gui/Label.tga ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/src/gui/Text.tga ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,185 @@
1
+ # source generated by foxGUIb 0.5.0
2
+
3
+ class GuibEventEditor
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
+ @GuibEventEditor = w
13
+ w.wdg_name = "GuibEventEditor"
14
+ w.padLeft = 0
15
+ w.width = 657
16
+ w.padRight = 0
17
+ w.shown = true
18
+ w.y = 527
19
+ w.height = 490
20
+ w.padBottom = 0
21
+ w.title = "Event Editor"
22
+ w.padTop = 0
23
+ w.x = 228
24
+ FX::HorizontalFrame.new(@GuibEventEditor) { |w|
25
+ @HorizontalFrame2 = w
26
+ w.wdg_name = "HorizontalFrame2"
27
+ w.width = 657
28
+ w.height = 490
29
+ FX::VerticalFrame.new(@HorizontalFrame2) { |w|
30
+ @editframe = w
31
+ w.wdg_name = "editframe"
32
+ w.width = 435
33
+ w.height = 490
34
+ FX::HorizontalFrame.new(@editframe) { |w|
35
+ @editframeBar = w
36
+ w.wdg_name = "editframeBar"
37
+ w.width = 435
38
+ w.height = 22
39
+ w.layoutHints = 1024
40
+ FX::Label.new(@editframeBar) { |w|
41
+ @editframeLabel = w
42
+ w.wdg_name = "editframeLabel"
43
+ w.text = "@widget.connect(SEL_COMMAND){"
44
+ w.backColor = Fox::FXRGBA(183, 225, 255, 255)
45
+ w.width = 435
46
+ w.height = 22
47
+ w.padTop = 5
48
+ w.layoutHints = 1024
49
+ w.justify = 32768
50
+ }
51
+ }
52
+ FX::HorizontalSeparator.new(@editframe) { |w|
53
+ @HorizontalSeparator = w
54
+ w.wdg_name = "HorizontalSeparator"
55
+ w.backColor = Fox::FXRGBA(0, 0, 0, 255)
56
+ w.width = 435
57
+ w.separatorStyle = 131072
58
+ w.y = 22
59
+ w.height = 2
60
+ w.padTop = 1
61
+ }
62
+ FX::VerticalFrame.new(@editframe) { |w|
63
+ @VerticalFrame4 = w
64
+ w.wdg_name = "VerticalFrame4"
65
+ w.backColor = Fox::FXRGBA(230, 230, 230, 255)
66
+ w.padLeft = 30
67
+ w.width = 435
68
+ w.y = 24
69
+ w.height = 447
70
+ FX::Text.new(@VerticalFrame4) { |w|
71
+ @Text = w
72
+ w.wdg_name = "Text"
73
+ w.backColor = Fox::FXRGBA(230, 230, 230, 255)
74
+ w.textTextStyle = 33554432
75
+ w.width = 405
76
+ w.height = 447
77
+ w.x = 30
78
+ }
79
+ }
80
+ FX::Label.new(@editframe) { |w|
81
+ @editframeLabel2 = w
82
+ w.wdg_name = "editframeLabel2"
83
+ w.text = "}"
84
+ w.backColor = Fox::FXRGBA(230, 230, 230, 255)
85
+ w.width = 435
86
+ w.y = 471
87
+ w.height = 19
88
+ w.layoutHints = 1024
89
+ w.justify = 32768
90
+ }
91
+ }
92
+ FX::VerticalFrame.new(@HorizontalFrame2) { |w|
93
+ @eventsframe = w
94
+ w.wdg_name = "eventsframe"
95
+ w.backColor = Fox::FXRGBA(183, 225, 255, 255)
96
+ w.width = 222
97
+ w.height = 490
98
+ w.x = 435
99
+ FX::Label.new(@eventsframe) { |w|
100
+ @evframeLabel = w
101
+ w.wdg_name = "evframeLabel"
102
+ w.backColor = Fox::FXRGBA(183, 225, 255, 255)
103
+ w.width = 222
104
+ w.height = 22
105
+ w.padTop = 5
106
+ w.layoutHints = 1024
107
+ w.justify = 32768
108
+ }
109
+ FX::HorizontalSeparator.new(@eventsframe) { |w|
110
+ @HorizontalSeparator2 = w
111
+ w.wdg_name = "HorizontalSeparator2"
112
+ w.backColor = Fox::FXRGBA(0, 0, 0, 255)
113
+ w.width = 222
114
+ w.separatorStyle = 131072
115
+ w.y = 22
116
+ w.height = 2
117
+ w.padTop = 1
118
+ }
119
+ FX::CheckButton.new(@eventsframe) { |w|
120
+ @CheckButton = w
121
+ w.wdg_name = "CheckButton"
122
+ w.text = "show all events"
123
+ w.backColor = Fox::FXRGBA(168, 168, 168, 255)
124
+ w.width = 222
125
+ w.y = 24
126
+ w.height = 19
127
+ w.layoutHints = 1024
128
+ w.state = true
129
+ w.justify = 32768
130
+ }
131
+ FX::ScrollWindow.new(@eventsframe) { |w|
132
+ @ScrollWindow = w
133
+ w.wdg_name = "ScrollWindow"
134
+ w.width = 222
135
+ w.y = 43
136
+ w.height = 447
137
+ FX::VerticalFrame.new(@ScrollWindow) { |w|
138
+ @eventList = w
139
+ w.wdg_name = "eventList"
140
+ w.backColor = Fox::FXRGBA(168, 168, 168, 255)
141
+ w.width = 222
142
+ w.height = 447
143
+ w.vSpacing = 1
144
+ }
145
+ }
146
+ }
147
+ }
148
+ FX::MenuBar.new(@GuibEventEditor) { |w|
149
+ @MenuBar = w
150
+ w.wdg_name = "MenuBar"
151
+ w.backColor = Fox::FXRGBA(253, 255, 111, 255)
152
+ w.width = 657
153
+ w.y = 494
154
+ w.height = 4
155
+ }
156
+ }
157
+ end
158
+ attr_reader :topwin
159
+ attr_reader :GuibEventEditor
160
+ attr_reader :HorizontalFrame2
161
+ attr_reader :editframe
162
+ attr_reader :editframeBar
163
+ attr_reader :editframeLabel
164
+ attr_reader :HorizontalSeparator
165
+ attr_reader :VerticalFrame4
166
+ attr_reader :Text
167
+ attr_reader :editframeLabel2
168
+ attr_reader :eventsframe
169
+ attr_reader :evframeLabel
170
+ attr_reader :HorizontalSeparator2
171
+ attr_reader :CheckButton
172
+ attr_reader :ScrollWindow
173
+ attr_reader :eventList
174
+ attr_reader :MenuBar
175
+ end
176
+
177
+ # unit test
178
+ if __FILE__ == $0
179
+ require "libGUIb14"
180
+ app = FX::App.new
181
+ w = GuibEventEditor.new app
182
+ w.topwin.show(Fox::PLACEMENT_SCREEN)
183
+ app.create
184
+ app.run
185
+ end
Binary file