wxruby 1.9.6-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. data/LICENSE +53 -0
  2. data/README +297 -0
  3. data/lib/wx/accessors.rb +52 -0
  4. data/lib/wx/classes/acceleratortable.rb +28 -0
  5. data/lib/wx/classes/animation.rb +18 -0
  6. data/lib/wx/classes/app.rb +45 -0
  7. data/lib/wx/classes/artprovider.rb +31 -0
  8. data/lib/wx/classes/bitmap.rb +28 -0
  9. data/lib/wx/classes/busycursor.rb +12 -0
  10. data/lib/wx/classes/checklistbox.rb +45 -0
  11. data/lib/wx/classes/choice.rb +4 -0
  12. data/lib/wx/classes/clientdc.rb +13 -0
  13. data/lib/wx/classes/clipboard.rb +16 -0
  14. data/lib/wx/classes/colour.rb +47 -0
  15. data/lib/wx/classes/combobox.rb +4 -0
  16. data/lib/wx/classes/commandevent.rb +7 -0
  17. data/lib/wx/classes/controlwithitems.rb +10 -0
  18. data/lib/wx/classes/dc.rb +57 -0
  19. data/lib/wx/classes/event.rb +5 -0
  20. data/lib/wx/classes/evthandler.rb +921 -0
  21. data/lib/wx/classes/font.rb +118 -0
  22. data/lib/wx/classes/functions.rb +44 -0
  23. data/lib/wx/classes/gauge.rb +12 -0
  24. data/lib/wx/classes/grid.rb +138 -0
  25. data/lib/wx/classes/helpcontroller.rb +5 -0
  26. data/lib/wx/classes/htmlhelpcontroller.rb +5 -0
  27. data/lib/wx/classes/htmlwindow.rb +14 -0
  28. data/lib/wx/classes/icon.rb +21 -0
  29. data/lib/wx/classes/iconbundle.rb +3 -0
  30. data/lib/wx/classes/image.rb +31 -0
  31. data/lib/wx/classes/imagelist.rb +3 -0
  32. data/lib/wx/classes/listbox.rb +4 -0
  33. data/lib/wx/classes/listctrl.rb +21 -0
  34. data/lib/wx/classes/locale.rb +28 -0
  35. data/lib/wx/classes/mediactrl.rb +22 -0
  36. data/lib/wx/classes/menu.rb +62 -0
  37. data/lib/wx/classes/menuitem.rb +7 -0
  38. data/lib/wx/classes/object.rb +7 -0
  39. data/lib/wx/classes/paintdc.rb +12 -0
  40. data/lib/wx/classes/point.rb +48 -0
  41. data/lib/wx/classes/previewframe.rb +13 -0
  42. data/lib/wx/classes/rect.rb +10 -0
  43. data/lib/wx/classes/size.rb +49 -0
  44. data/lib/wx/classes/sound.rb +23 -0
  45. data/lib/wx/classes/styledtextctrl.rb +92 -0
  46. data/lib/wx/classes/textctrl.rb +14 -0
  47. data/lib/wx/classes/texturlevent.rb +6 -0
  48. data/lib/wx/classes/timer.rb +94 -0
  49. data/lib/wx/classes/toolbartool.rb +4 -0
  50. data/lib/wx/classes/treectrl.rb +44 -0
  51. data/lib/wx/classes/window.rb +82 -0
  52. data/lib/wx/classes/xmlresource.rb +37 -0
  53. data/lib/wx/keyword_ctors.rb +222 -0
  54. data/lib/wx/keyword_defs.rb +492 -0
  55. data/lib/wx/version.rb +3 -0
  56. data/lib/wx.rb +42 -0
  57. data/lib/wxruby2.exp +0 -0
  58. data/lib/wxruby2.lib +0 -0
  59. data/lib/wxruby2.so +0 -0
  60. data/lib/wxruby2.so.manifest +13 -0
  61. data/samples/SAMPLES-LICENSE.TXT +18 -0
  62. data/samples/aui/aui.rb +1356 -0
  63. data/samples/bigdemo/About.rbw +39 -0
  64. data/samples/bigdemo/ColorPanel.rbw +23 -0
  65. data/samples/bigdemo/GridSimple.rbw +78 -0
  66. data/samples/bigdemo/MDIDemo.rbw +57 -0
  67. data/samples/bigdemo/PopupMenu.rbw +149 -0
  68. data/samples/bigdemo/ShapedWindow.rbw +131 -0
  69. data/samples/bigdemo/Sizers.rbw +543 -0
  70. data/samples/bigdemo/bigdemo.rb +823 -0
  71. data/samples/bigdemo/demoTemplate.rbw +33 -0
  72. data/samples/bigdemo/helpfile.htb +0 -0
  73. data/samples/bigdemo/icons/Test 015.jpg +0 -0
  74. data/samples/bigdemo/icons/Test 015.png +0 -0
  75. data/samples/bigdemo/icons/choice.bmp +0 -0
  76. data/samples/bigdemo/icons/choice.xpm +27 -0
  77. data/samples/bigdemo/icons/combo.bmp +0 -0
  78. data/samples/bigdemo/icons/combo.xpm +27 -0
  79. data/samples/bigdemo/icons/copy.xpm +25 -0
  80. data/samples/bigdemo/icons/cut.xpm +24 -0
  81. data/samples/bigdemo/icons/gauge.bmp +0 -0
  82. data/samples/bigdemo/icons/gauge.xpm +27 -0
  83. data/samples/bigdemo/icons/help.xpm +25 -0
  84. data/samples/bigdemo/icons/list.bmp +0 -0
  85. data/samples/bigdemo/icons/list.xpm +27 -0
  86. data/samples/bigdemo/icons/mondrian.ico +0 -0
  87. data/samples/bigdemo/icons/mondrian.xpm +44 -0
  88. data/samples/bigdemo/icons/new.xpm +24 -0
  89. data/samples/bigdemo/icons/ogl.ico +0 -0
  90. data/samples/bigdemo/icons/ogl.xpm +45 -0
  91. data/samples/bigdemo/icons/open.xpm +26 -0
  92. data/samples/bigdemo/icons/paste.bmp +0 -0
  93. data/samples/bigdemo/icons/paste.xpm +38 -0
  94. data/samples/bigdemo/icons/pointy.png +0 -0
  95. data/samples/bigdemo/icons/preview.xpm +26 -0
  96. data/samples/bigdemo/icons/print.xpm +26 -0
  97. data/samples/bigdemo/icons/radio.bmp +0 -0
  98. data/samples/bigdemo/icons/radio.xpm +27 -0
  99. data/samples/bigdemo/icons/robert.xpm +415 -0
  100. data/samples/bigdemo/icons/ruby.png +0 -0
  101. data/samples/bigdemo/icons/sashtest.ico +0 -0
  102. data/samples/bigdemo/icons/save.xpm +25 -0
  103. data/samples/bigdemo/icons/smiles.bmp +0 -0
  104. data/samples/bigdemo/icons/smiles.xpm +39 -0
  105. data/samples/bigdemo/icons/smiley.ico +0 -0
  106. data/samples/bigdemo/icons/smiley.xpm +42 -0
  107. data/samples/bigdemo/icons/stattext.xpm +24 -0
  108. data/samples/bigdemo/icons/test2.bmp +0 -0
  109. data/samples/bigdemo/icons/test2.png +0 -0
  110. data/samples/bigdemo/icons/test2.xpm +79 -0
  111. data/samples/bigdemo/icons/text.bmp +0 -0
  112. data/samples/bigdemo/icons/text.xpm +27 -0
  113. data/samples/bigdemo/icons/tog1.bmp +0 -0
  114. data/samples/bigdemo/icons/tog1.xpm +38 -0
  115. data/samples/bigdemo/icons/tog2.bmp +0 -0
  116. data/samples/bigdemo/icons/tog2.xpm +38 -0
  117. data/samples/bigdemo/icons/wxwin.ico +0 -0
  118. data/samples/bigdemo/icons/wxwin16x16.png +0 -0
  119. data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
  120. data/samples/bigdemo/icons/wxwin32x32.png +0 -0
  121. data/samples/bigdemo/icons/wxwin48x48.png +0 -0
  122. data/samples/bigdemo/run.rb +90 -0
  123. data/samples/bigdemo/tips.txt +7 -0
  124. data/samples/bigdemo/utils.rb +12 -0
  125. data/samples/bigdemo/wxArtProvider.rbw +281 -0
  126. data/samples/bigdemo/wxBitmapButton.rbw +65 -0
  127. data/samples/bigdemo/wxButton.rbw +64 -0
  128. data/samples/bigdemo/wxCalendarCtrl.rbw +60 -0
  129. data/samples/bigdemo/wxCheckBox.rbw +50 -0
  130. data/samples/bigdemo/wxCheckListBox.rbw +75 -0
  131. data/samples/bigdemo/wxChoice.rbw +47 -0
  132. data/samples/bigdemo/wxChoicebook.rbw +78 -0
  133. data/samples/bigdemo/wxColourDialog.rbw +31 -0
  134. data/samples/bigdemo/wxComboBox.rbw +77 -0
  135. data/samples/bigdemo/wxCursor.rbw +136 -0
  136. data/samples/bigdemo/wxDialog.rbw +74 -0
  137. data/samples/bigdemo/wxDirDialog.rbw +29 -0
  138. data/samples/bigdemo/wxDragImage.rbw +70 -0
  139. data/samples/bigdemo/wxFileDialog.rbw +37 -0
  140. data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
  141. data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
  142. data/samples/bigdemo/wxFontDialog.rbw +173 -0
  143. data/samples/bigdemo/wxFrame.rbw +53 -0
  144. data/samples/bigdemo/wxGauge.rbw +71 -0
  145. data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
  146. data/samples/bigdemo/wxGrid.rbw +66 -0
  147. data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
  148. data/samples/bigdemo/wxListBox.rbw +140 -0
  149. data/samples/bigdemo/wxListCtrl_virtual.rbw +107 -0
  150. data/samples/bigdemo/wxMDIWindows.rbw +50 -0
  151. data/samples/bigdemo/wxMenu.rbw +236 -0
  152. data/samples/bigdemo/wxMessageDialog.rbw +27 -0
  153. data/samples/bigdemo/wxMiniFrame.rbw +70 -0
  154. data/samples/bigdemo/wxMultipleChoiceDialog.rbw +32 -0
  155. data/samples/bigdemo/wxNotebook.rbw +136 -0
  156. data/samples/bigdemo/wxProgressDialog.rbw +43 -0
  157. data/samples/bigdemo/wxRadioBox.rbw +72 -0
  158. data/samples/bigdemo/wxRadioButton.rbw +125 -0
  159. data/samples/bigdemo/wxSashWindow.rbw +141 -0
  160. data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
  161. data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
  162. data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
  163. data/samples/bigdemo/wxSlider.rbw +42 -0
  164. data/samples/bigdemo/wxSpinButton.rbw +50 -0
  165. data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
  166. data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
  167. data/samples/bigdemo/wxStaticBitmap.rbw +51 -0
  168. data/samples/bigdemo/wxStaticText.rbw +55 -0
  169. data/samples/bigdemo/wxStatusBar.rbw +126 -0
  170. data/samples/bigdemo/wxTextCtrl.rbw +149 -0
  171. data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
  172. data/samples/bigdemo/wxToggleButton.rbw +49 -0
  173. data/samples/bigdemo/wxToolBar.rbw +131 -0
  174. data/samples/bigdemo/wxTreeCtrl.rbw +190 -0
  175. data/samples/calendar/calendar.rb +271 -0
  176. data/samples/caret/caret.rb +282 -0
  177. data/samples/caret/mondrian.xpm +44 -0
  178. data/samples/controls/controls.rb +1136 -0
  179. data/samples/controls/get_item_sample.rb +87 -0
  180. data/samples/controls/icons/choice.xpm +27 -0
  181. data/samples/controls/icons/combo.xpm +27 -0
  182. data/samples/controls/icons/gauge.xpm +27 -0
  183. data/samples/controls/icons/list.xpm +27 -0
  184. data/samples/controls/icons/radio.xpm +27 -0
  185. data/samples/controls/icons/stattext.xpm +24 -0
  186. data/samples/controls/icons/text.xpm +27 -0
  187. data/samples/controls/mondrian.ico +0 -0
  188. data/samples/controls/mondrian.xpm +44 -0
  189. data/samples/controls/test2.bmp +0 -0
  190. data/samples/dialogs/dialogs.rb +723 -0
  191. data/samples/dialogs/tips.txt +18 -0
  192. data/samples/drawing/graphics_drawing.rb +235 -0
  193. data/samples/drawing/images.rb +37 -0
  194. data/samples/drawing/paperclip.png +0 -0
  195. data/samples/etc/activation.rb +102 -0
  196. data/samples/etc/choice.rb +67 -0
  197. data/samples/etc/miniframe.rb +79 -0
  198. data/samples/etc/sash.rb +130 -0
  199. data/samples/etc/scrollwin.rb +110 -0
  200. data/samples/etc/system_settings.rb +252 -0
  201. data/samples/etc/threaded.rb +72 -0
  202. data/samples/etc/wizard.rb +74 -0
  203. data/samples/event/event.rb +182 -0
  204. data/samples/grid/grid.rb +198 -0
  205. data/samples/grid/gridtablebase.rb +134 -0
  206. data/samples/html/html.rb +262 -0
  207. data/samples/listbook/listbook.rb +174 -0
  208. data/samples/listbook/listbook.xrc +370 -0
  209. data/samples/mdi/mdi.rb +82 -0
  210. data/samples/media/mediactrl.rb +167 -0
  211. data/samples/minimal/minimal.rb +77 -0
  212. data/samples/minimal/mondrian.ico +0 -0
  213. data/samples/minimal/mondrian.png +0 -0
  214. data/samples/minimal/nothing.rb +16 -0
  215. data/samples/opengl/cube.rb +117 -0
  216. data/samples/printing/mondrian.ico +0 -0
  217. data/samples/printing/mondrian.xpm +44 -0
  218. data/samples/printing/printing.rb +310 -0
  219. data/samples/sockets/SocketPackets.rb +27 -0
  220. data/samples/sockets/res/message-new.png +0 -0
  221. data/samples/sockets/res/user.png +0 -0
  222. data/samples/sockets/wxClient.rb +395 -0
  223. data/samples/sockets/wxServer.rb +422 -0
  224. data/samples/sockets/wxSocketGUI.rb +97 -0
  225. data/samples/text/mondrian.ico +0 -0
  226. data/samples/text/mondrian.xpm +44 -0
  227. data/samples/text/scintilla.rb +169 -0
  228. data/samples/text/textctrl.rb +113 -0
  229. data/samples/text/unicode.rb +242 -0
  230. data/samples/text/utf8.txt +15 -0
  231. data/samples/treectrl/icon1.xpm +79 -0
  232. data/samples/treectrl/icon2.xpm +53 -0
  233. data/samples/treectrl/icon3.xpm +79 -0
  234. data/samples/treectrl/icon4.xpm +43 -0
  235. data/samples/treectrl/icon5.xpm +79 -0
  236. data/samples/treectrl/treectrl.rb +1174 -0
  237. data/samples/xrc/samples.xrc +46 -0
  238. data/samples/xrc/xrc_sample.rb +96 -0
  239. metadata +316 -0
@@ -0,0 +1,921 @@
1
+ # All classes which are capable of handling events inherit from
2
+ # EvtHandler. This includes all Wx::Window subclasses and Wx::App.
3
+
4
+ class Wx::EvtHandler
5
+ # EventType is an internal class that's used to set up event handlers
6
+ # and mappings.
7
+ # * 'name' is the name of the event handler method in ruby
8
+ # * 'arity' is the number of id arguments that method should accept
9
+ # * 'const' is the Wx EventType constant that identifies the event
10
+ # * 'evt_class' is the WxRuby event class which is passed to the event
11
+ # handler block
12
+ #
13
+ # NB: Some event types currently pass a Wx::Event into the event
14
+ # handler block; when the appropriate classes are added to wxRuby, the
15
+ # binding can be updated here.
16
+ EventType = Struct.new(:name, :arity, :const, :evt_class)
17
+
18
+ # Fast look-up hash to map event type ids to ruby event classes
19
+ EVENT_TYPE_CLASS_MAP = {}
20
+ # Hash to look up EVT constants from symbol names of evt handler
21
+ # methods; used internally by disconnect (see EvtHandler.i)
22
+ EVENT_NAME_TYPE_MAP = {}
23
+
24
+ # Given a Wx EventType id (eg Wx::EVT_MENU), returns a WxRuby Event
25
+ # class which should be passed to event handler blocks. The actual
26
+ # EVT_XXX constants themselves are in the compiled library, defined in
27
+ # swig/classes/Event.i
28
+ def self.event_class_for_type(id)
29
+ if evt_klass = EVENT_TYPE_CLASS_MAP[id]
30
+ return evt_klass
31
+ else
32
+ if Wx::DEBUG
33
+ warn "No event class defined for event type #{id}"
34
+ end
35
+ return Wx::Event
36
+ end
37
+ end
38
+
39
+ # Given the symbol name of an evt_xxx handler method, returns the
40
+ # Integer Wx::EVT_XXX constant associated with that handler.
41
+ def self.event_type_for_name(name)
42
+ EVENT_NAME_TYPE_MAP[name]
43
+ end
44
+
45
+ # Given the Integer constant Wx::EVT_XXX, returns the convenience
46
+ # handler method name associated with that type of event.
47
+ def self.event_name_for_type(name)
48
+ EVENT_NAME_TYPE_MAP.index(name)
49
+ end
50
+
51
+ # Given an integer value +int_val+, returns the name of the EVT_xxx
52
+ # constant which points to it. Mainly useful for debugging.
53
+ def self.const_to_name(int_val)
54
+ Wx::constants.grep(/^EVT/).find do | c_name |
55
+ Wx::const_get(c_name) == int_val
56
+ end
57
+ end
58
+
59
+ # Public method to register the mapping of a custom event type
60
+ # +konstant+ (which should be a unique integer; one will be created if
61
+ # not supplied) to a custom event class +klass+. If +meth+ and +arity+
62
+ # are given, a convenience evt_handler method called +meth+ will be
63
+ # created, which accepts +arity+ arguments.
64
+ def self.register_class( klass, konstant = nil,
65
+ meth = nil, arity = nil)
66
+ konstant ||= Wx::Event.new_event_type
67
+ unless klass < Wx::Event
68
+ Kernel.raise TypeError, "Event class should be a subclass of Wx::Event"
69
+ end
70
+ ev_type = EventType.new(meth, arity, konstant, klass)
71
+ register_event_type(ev_type)
72
+ return konstant
73
+ end
74
+
75
+ # Registers the event type +ev_type+, which should be an instance of
76
+ # the Struct class +Wx::EvtHandler::EventType+. This sets up the
77
+ # mapping of events of that type (identified by integer id) to the
78
+ # appropriate ruby event class, and defines a convenience evt_xxx
79
+ # instance method in the class EvtHandler.
80
+ def self.register_event_type(ev_type)
81
+ # set up the event type mapping
82
+ EVENT_TYPE_CLASS_MAP[ev_type.const] = ev_type.evt_class
83
+ EVENT_NAME_TYPE_MAP[ev_type.name.intern] = ev_type.const
84
+
85
+ unless ev_type.arity and ev_type.name
86
+ return
87
+ end
88
+
89
+ # set up the evt_xxx method
90
+ case ev_type.arity
91
+ when 0 # events without an id
92
+ class_eval %Q|
93
+ def #{ev_type.name}(meth = nil, &block)
94
+ handler = acquire_handler(meth, block)
95
+ connect(Wx::ID_ANY, Wx::ID_ANY, #{ev_type.const}, &handler)
96
+ end |
97
+ when 1 # events with an id
98
+ class_eval %Q|
99
+ def #{ev_type.name}(id, meth = nil, &block)
100
+ handler = acquire_handler(meth, block)
101
+ id = acquire_id(id)
102
+ connect(id, Wx::ID_ANY, #{ev_type.const}, &handler)
103
+ end |
104
+ when 2 # events with id range
105
+ class_eval %Q|
106
+ def #{ev_type.name}(first_id, last_id, meth = nil, &block)
107
+ handler = acquire_handler(meth, block)
108
+ first_id = acquire_id(first_id)
109
+ last_id = acquire_id(last_id)
110
+ connect( first_id, last_id, #{ev_type.const}, &handler)
111
+ end |
112
+ end
113
+ end
114
+
115
+ # Not for external use; determines whether to use a block or call a
116
+ # method in self to handle an event, passed to connect. Makes evt_xxx
117
+ # liberal about what it accepts - aside from a block, it can be a
118
+ # method name (as Symbol or String), a (bound) method object, or a
119
+ # Proc object
120
+ def acquire_handler(meth, block)
121
+ if block and not meth
122
+ return block
123
+ elsif meth and not block
124
+ h_meth = case meth
125
+ when Symbol, String then self.method(meth)
126
+ when Proc then meth
127
+ when Method then meth.to_proc
128
+ end
129
+ if h_meth.arity == 1
130
+ return lambda { | evt | h_meth.call(evt) }
131
+ else
132
+ return lambda { h_meth.call }
133
+ end
134
+ else
135
+ Kernel.raise ArgumentError,
136
+ "Specify event handler with a method, name, proc OR block"
137
+ caller
138
+ end
139
+ end
140
+
141
+ # Not for external use; acquires an id either from an explicit Fixnum
142
+ # parameter or by calling the wx_id method of a passed Window.
143
+ def acquire_id(window_or_id)
144
+ case window_or_id
145
+ when Fixnum
146
+ window_or_id
147
+ when Wx::Window, Wx::MenuItem, Wx::ToolBarTool
148
+ window_or_id.wx_id
149
+ else
150
+ Kernel.raise ArgumentError,
151
+ "Must specify Wx::Window event source or its Wx id, " +
152
+ "not '#{window_or_id.inspect}'",
153
+ caller
154
+ end
155
+ end
156
+ private :acquire_id, :acquire_handler
157
+
158
+ # Definitions for all event types that are part by core wxRuby. Events
159
+ # that are mapped to class Wx::Event are TODO as they are not
160
+ # currently wrapped by the correct class.
161
+
162
+ # All StyledTextCtrl (Scintilla) events with prefix EVT_STC are dealt
163
+ # with in the separate styledtextctrl.rb file.
164
+ #
165
+ # All MediaCtrl events with prefix EVT_MEDIA are dealt with in the
166
+ # separate mediactrl.rb file
167
+ EVENT_DEFINITIONS = [
168
+ EventType['evt_activate', 0,
169
+ Wx::EVT_ACTIVATE,
170
+ Wx::ActivateEvent],
171
+ EventType['evt_activate_app', 0,
172
+ Wx::EVT_ACTIVATE_APP,
173
+ Wx::ActivateEvent],
174
+ EventType['evt_auinotebook_allow_dnd', 1,
175
+ Wx::EVT_COMMAND_AUINOTEBOOK_ALLOW_DND,
176
+ Wx::AuiNotebookEvent],
177
+ EventType['evt_auinotebook_begin_drag', 1,
178
+ Wx::EVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG,
179
+ Wx::AuiNotebookEvent],
180
+ EventType['evt_auinotebook_button', 1,
181
+ Wx::EVT_COMMAND_AUINOTEBOOK_BUTTON,
182
+ Wx::AuiNotebookEvent],
183
+ EventType['evt_auinotebook_drag_motion', 1,
184
+ Wx::EVT_COMMAND_AUINOTEBOOK_DRAG_MOTION,
185
+ Wx::AuiNotebookEvent],
186
+ EventType['evt_auinotebook_end_drag', 1,
187
+ Wx::EVT_COMMAND_AUINOTEBOOK_END_DRAG,
188
+ Wx::AuiNotebookEvent],
189
+ EventType['evt_auinotebook_page_changed', 1,
190
+ Wx::EVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED,
191
+ Wx::AuiNotebookEvent],
192
+ EventType['evt_auinotebook_page_changing', 1,
193
+ Wx::EVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING,
194
+ Wx::AuiNotebookEvent],
195
+ EventType['evt_auinotebook_page_close', 1,
196
+ Wx::EVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE,
197
+ Wx::AuiNotebookEvent],
198
+ EventType['evt_aui_find_manager', 0,
199
+ Wx::EVT_AUI_FIND_MANAGER,
200
+ Wx::AuiManagerEvent],
201
+ EventType['evt_aui_pane_button', 0,
202
+ Wx::EVT_AUI_PANE_BUTTON,
203
+ Wx::AuiManagerEvent],
204
+ EventType['evt_aui_pane_close', 0,
205
+ Wx::EVT_AUI_PANE_CLOSE,
206
+ Wx::AuiManagerEvent],
207
+ EventType['evt_aui_pane_maximize', 0,
208
+ Wx::EVT_AUI_PANE_MAXIMIZE,
209
+ Wx::AuiManagerEvent],
210
+ EventType['evt_aui_pane_restore', 0,
211
+ Wx::EVT_AUI_PANE_RESTORE,
212
+ Wx::AuiManagerEvent],
213
+ EventType['evt_aui_render', 0,
214
+ Wx::EVT_AUI_RENDER,
215
+ Wx::AuiManagerEvent],
216
+ EventType['evt_button', 1,
217
+ Wx::EVT_COMMAND_BUTTON_CLICKED,
218
+ Wx::CommandEvent],
219
+ EventType['evt_calculate_layout', 0,
220
+ Wx::EVT_CALCULATE_LAYOUT,
221
+ Wx::CalculateLayoutEvent],
222
+ EventType['evt_calendar', 1,
223
+ Wx::EVT_CALENDAR_DOUBLECLICKED,
224
+ Wx::CalendarEvent],
225
+ EventType['evt_calendar_day', 1,
226
+ Wx::EVT_CALENDAR_DAY_CHANGED,
227
+ Wx::CalendarEvent],
228
+ EventType['evt_calendar_month', 1,
229
+ Wx::EVT_CALENDAR_MONTH_CHANGED,
230
+ Wx::CalendarEvent],
231
+ EventType['evt_calendar_sel_changed', 1,
232
+ Wx::EVT_CALENDAR_SEL_CHANGED,
233
+ Wx::CalendarEvent],
234
+ EventType['evt_calendar_weekday_clicked', 1,
235
+ Wx::EVT_CALENDAR_WEEKDAY_CLICKED,
236
+ Wx::CalendarEvent],
237
+ EventType['evt_calendar_year', 1,
238
+ Wx::EVT_CALENDAR_YEAR_CHANGED,
239
+ Wx::CalendarEvent],
240
+ EventType['evt_char', 0,
241
+ Wx::EVT_CHAR,
242
+ Wx::KeyEvent],
243
+ EventType['evt_char_hook', 0,
244
+ Wx::EVT_CHAR_HOOK,
245
+ Wx::KeyEvent],
246
+ EventType['evt_checkbox', 1,
247
+ Wx::EVT_COMMAND_CHECKBOX_CLICKED,
248
+ Wx::CommandEvent],
249
+ EventType['evt_checklistbox', 1,
250
+ Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED,
251
+ Wx::CommandEvent],
252
+ EventType['evt_child_focus', 0,
253
+ Wx::EVT_CHILD_FOCUS,
254
+ Wx::ChildFocusEvent],
255
+ EventType['evt_choice', 1,
256
+ Wx::EVT_COMMAND_CHOICE_SELECTED,
257
+ Wx::CommandEvent],
258
+ EventType['evt_choicebook_page_changed', 1,
259
+ Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGED,
260
+ Wx::ChoicebookEvent],
261
+ EventType['evt_choicebook_page_changing', 1,
262
+ Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGING,
263
+ Wx::ChoicebookEvent],
264
+ EventType['evt_close', 0,
265
+ Wx::EVT_CLOSE_WINDOW,
266
+ Wx::CloseEvent],
267
+ EventType['evt_collapsiblepane_changed', 1,
268
+ Wx::EVT_COMMAND_COLLPANE_CHANGED,
269
+ Wx::CollapsiblePaneEvent],
270
+ EventType['evt_combobox', 1,
271
+ Wx::EVT_COMMAND_COMBOBOX_SELECTED,
272
+ Wx::CommandEvent],
273
+ EventType['evt_command_enter', 1,
274
+ Wx::EVT_COMMAND_ENTER,
275
+ Wx::CommandEvent],
276
+ EventType['evt_command_kill_focus', 1,
277
+ Wx::EVT_COMMAND_KILL_FOCUS,
278
+ Wx::CommandEvent],
279
+ EventType['evt_command_left_click', 1,
280
+ Wx::EVT_COMMAND_LEFT_CLICK,
281
+ Wx::CommandEvent],
282
+ EventType['evt_command_left_dclick', 1,
283
+ Wx::EVT_COMMAND_LEFT_DCLICK,
284
+ Wx::CommandEvent],
285
+ EventType['evt_command_right_click', 1,
286
+ Wx::EVT_COMMAND_RIGHT_CLICK,
287
+ Wx::CommandEvent],
288
+ EventType['evt_command_set_focus', 1,
289
+ Wx::EVT_COMMAND_SET_FOCUS,
290
+ Wx::CommandEvent],
291
+ EventType['evt_context_menu', 0,
292
+ Wx::EVT_CONTEXT_MENU,
293
+ Wx::ContextMenuEvent],
294
+ EventType['evt_drop_files', 0,
295
+ Wx::EVT_DROP_FILES,
296
+ Wx::Event],
297
+ EventType['evt_end_process', 1,
298
+ Wx::EVT_END_PROCESS,
299
+ Wx::Event],
300
+ EventType['evt_end_session', 0,
301
+ Wx::EVT_END_SESSION,
302
+ Wx::Event],
303
+ EventType['evt_enter_window', 0,
304
+ Wx::EVT_ENTER_WINDOW,
305
+ Wx::MouseEvent],
306
+ EventType['evt_erase_background', 0,
307
+ Wx::EVT_ERASE_BACKGROUND,
308
+ Wx::EraseEvent],
309
+ EventType['evt_find', 1,
310
+ Wx::EVT_COMMAND_FIND,
311
+ Wx::FindDialogEvent],
312
+ EventType['evt_find_close', 1,
313
+ Wx::EVT_COMMAND_FIND_CLOSE,
314
+ Wx::FindDialogEvent],
315
+ EventType['evt_find_next', 1,
316
+ Wx::EVT_COMMAND_FIND_NEXT,
317
+ Wx::FindDialogEvent],
318
+ EventType['evt_find_replace', 1,
319
+ Wx::EVT_COMMAND_FIND_REPLACE,
320
+ Wx::FindDialogEvent],
321
+ EventType['evt_find_replace_all', 1,
322
+ Wx::EVT_COMMAND_FIND_REPLACE_ALL,
323
+ Wx::FindDialogEvent],
324
+ EventType['evt_grid_cell_change', 0,
325
+ Wx::EVT_GRID_CELL_CHANGE,
326
+ Wx::GridEvent],
327
+ EventType['evt_grid_cell_left_click', 0,
328
+ Wx::EVT_GRID_CELL_LEFT_CLICK,
329
+ Wx::GridEvent],
330
+ EventType['evt_grid_cell_left_dclick', 0,
331
+ Wx::EVT_GRID_CELL_LEFT_DCLICK,
332
+ Wx::GridEvent],
333
+ EventType['evt_grid_cell_right_click', 0,
334
+ Wx::EVT_GRID_CELL_RIGHT_CLICK,
335
+ Wx::GridEvent],
336
+ EventType['evt_grid_cell_right_dclick', 0,
337
+ Wx::EVT_GRID_CELL_RIGHT_DCLICK,
338
+ Wx::GridEvent],
339
+ EventType['evt_grid_cmd_cell_change', 1,
340
+ Wx::EVT_GRID_CELL_CHANGE,
341
+ Wx::GridEvent],
342
+ EventType['evt_grid_cmd_cell_left_click', 1,
343
+ Wx::EVT_GRID_CELL_LEFT_CLICK,
344
+ Wx::GridEvent],
345
+ EventType['evt_grid_cmd_cell_left_dclick', 1,
346
+ Wx::EVT_GRID_CELL_LEFT_DCLICK,
347
+ Wx::GridEvent],
348
+ EventType['evt_grid_cmd_cell_right_click', 1,
349
+ Wx::EVT_GRID_CELL_RIGHT_CLICK,
350
+ Wx::GridEvent],
351
+ EventType['evt_grid_cmd_cell_right_dclick', 1,
352
+ Wx::EVT_GRID_CELL_RIGHT_DCLICK,
353
+ Wx::GridEvent],
354
+ EventType['evt_grid_cmd_col_size', 1,
355
+ Wx::EVT_GRID_COL_SIZE,
356
+ Wx::GridSizeEvent],
357
+ EventType['evt_grid_cmd_editor_created', 1,
358
+ Wx::EVT_GRID_EDITOR_CREATED,
359
+ Wx::GridEditorCreatedEvent],
360
+ EventType['evt_grid_cmd_editor_hidden', 1,
361
+ Wx::EVT_GRID_EDITOR_HIDDEN,
362
+ Wx::GridEvent],
363
+ EventType['evt_grid_cmd_editor_shown', 1,
364
+ Wx::EVT_GRID_EDITOR_SHOWN,
365
+ Wx::GridEvent],
366
+ EventType['evt_grid_cmd_label_left_click', 1,
367
+ Wx::EVT_GRID_LABEL_LEFT_CLICK,
368
+ Wx::GridEvent],
369
+ EventType['evt_grid_cmd_label_left_dclick', 1,
370
+ Wx::EVT_GRID_LABEL_LEFT_DCLICK,
371
+ Wx::GridEvent],
372
+ EventType['evt_grid_cmd_label_right_click', 1,
373
+ Wx::EVT_GRID_LABEL_RIGHT_CLICK,
374
+ Wx::GridEvent],
375
+ EventType['evt_grid_cmd_label_right_dclick', 1,
376
+ Wx::EVT_GRID_LABEL_RIGHT_DCLICK,
377
+ Wx::GridEvent],
378
+ EventType['evt_grid_cmd_range_select', 1,
379
+ Wx::EVT_GRID_RANGE_SELECT,
380
+ Wx::GridRangeSelectEvent],
381
+ EventType['evt_grid_cmd_row_size', 1,
382
+ Wx::EVT_GRID_ROW_SIZE,
383
+ Wx::GridSizeEvent],
384
+ EventType['evt_grid_cmd_select_cell', 1,
385
+ Wx::EVT_GRID_SELECT_CELL,
386
+ Wx::GridEvent],
387
+ EventType['evt_grid_col_size', 0,
388
+ Wx::EVT_GRID_COL_SIZE,
389
+ Wx::GridSizeEvent],
390
+ EventType['evt_grid_editor_created', 0,
391
+ Wx::EVT_GRID_EDITOR_CREATED,
392
+ Wx::GridEditorCreatedEvent],
393
+ EventType['evt_grid_editor_hidden', 0,
394
+ Wx::EVT_GRID_EDITOR_HIDDEN,
395
+ Wx::GridEvent],
396
+ EventType['evt_grid_editor_shown', 0,
397
+ Wx::EVT_GRID_EDITOR_SHOWN,
398
+ Wx::GridEvent],
399
+ EventType['evt_grid_label_left_click', 0,
400
+ Wx::EVT_GRID_LABEL_LEFT_CLICK,
401
+ Wx::GridEvent],
402
+ EventType['evt_grid_label_left_dclick', 0,
403
+ Wx::EVT_GRID_LABEL_LEFT_DCLICK,
404
+ Wx::GridEvent],
405
+ EventType['evt_grid_label_right_click', 0,
406
+ Wx::EVT_GRID_LABEL_RIGHT_CLICK,
407
+ Wx::GridEvent],
408
+ EventType['evt_grid_label_right_dclick', 0,
409
+ Wx::EVT_GRID_LABEL_RIGHT_DCLICK,
410
+ Wx::GridEvent],
411
+ EventType['evt_grid_range_select', 0,
412
+ Wx::EVT_GRID_RANGE_SELECT,
413
+ Wx::GridRangeSelectEvent],
414
+ EventType['evt_grid_row_size', 0,
415
+ Wx::EVT_GRID_ROW_SIZE,
416
+ Wx::GridSizeEvent],
417
+ EventType['evt_grid_select_cell', 0,
418
+ Wx::EVT_GRID_SELECT_CELL,
419
+ Wx::GridEvent],
420
+ EventType['evt_help', 1,
421
+ Wx::EVT_HELP,
422
+ Wx::Event],
423
+ EventType['evt_help_range', 2,
424
+ Wx::EVT_HELP,
425
+ Wx::Event],
426
+ EventType['evt_html_cell_clicked', 1,
427
+ Wx::EVT_COMMAND_HTML_CELL_CLICKED,
428
+ Wx::HtmlCellEvent],
429
+ EventType['evt_html_cell_hover', 1,
430
+ Wx::EVT_COMMAND_HTML_CELL_HOVER,
431
+ Wx::HtmlCellEvent],
432
+ EventType['evt_html_link_clicked', 1,
433
+ Wx::EVT_COMMAND_HTML_LINK_CLICKED,
434
+ Wx::HtmlLinkEvent],
435
+ EventType['evt_hyperlink', 1,
436
+ Wx::EVT_COMMAND_HYPERLINK,
437
+ Wx::HyperlinkEvent],
438
+ EventType['evt_iconize', 0,
439
+ Wx::EVT_ICONIZE,
440
+ Wx::IconizeEvent],
441
+ EventType['evt_idle', 0,
442
+ Wx::EVT_IDLE,
443
+ Wx::IdleEvent],
444
+ EventType['evt_init_dialog', 0,
445
+ Wx::EVT_INIT_DIALOG,
446
+ Wx::Event],
447
+ EventType['evt_joy_button_down', 0,
448
+ Wx::EVT_JOY_BUTTON_DOWN,
449
+ Wx::Event],
450
+ EventType['evt_joy_button_up', 0,
451
+ Wx::EVT_JOY_BUTTON_UP,
452
+ Wx::Event],
453
+ EventType['evt_joy_move', 0,
454
+ Wx::EVT_JOY_MOVE,
455
+ Wx::Event],
456
+ EventType['evt_joy_zmove', 0,
457
+ Wx::EVT_JOY_ZMOVE,
458
+ Wx::Event],
459
+ EventType['evt_key_down', 0,
460
+ Wx::EVT_KEY_DOWN,
461
+ Wx::KeyEvent],
462
+ EventType['evt_key_up', 0,
463
+ Wx::EVT_KEY_UP,
464
+ Wx::KeyEvent],
465
+ EventType['evt_kill_focus', 0,
466
+ Wx::EVT_KILL_FOCUS,
467
+ Wx::FocusEvent],
468
+ EventType['evt_leave_window', 0,
469
+ Wx::EVT_LEAVE_WINDOW,
470
+ Wx::MouseEvent],
471
+ EventType['evt_left_dclick', 0,
472
+ Wx::EVT_LEFT_DCLICK,
473
+ Wx::MouseEvent],
474
+ EventType['evt_left_down', 0,
475
+ Wx::EVT_LEFT_DOWN,
476
+ Wx::MouseEvent],
477
+ EventType['evt_left_up', 0,
478
+ Wx::EVT_LEFT_UP,
479
+ Wx::MouseEvent],
480
+ EventType['evt_listbook_page_changed', 1,
481
+ Wx::EVT_COMMAND_LISTBOOK_PAGE_CHANGED,
482
+ Wx::ListbookEvent],
483
+ EventType['evt_listbook_page_changing', 1,
484
+ Wx::EVT_COMMAND_LISTBOOK_PAGE_CHANGING,
485
+ Wx::ListbookEvent],
486
+ EventType['evt_listbox', 1,
487
+ Wx::EVT_COMMAND_LISTBOX_SELECTED,
488
+ Wx::CommandEvent],
489
+ EventType['evt_listbox_dclick', 1,
490
+ Wx::EVT_COMMAND_LISTBOX_DOUBLECLICKED,
491
+ Wx::CommandEvent],
492
+ EventType['evt_list_begin_drag', 1,
493
+ Wx::EVT_COMMAND_LIST_BEGIN_DRAG,
494
+ Wx::ListEvent],
495
+ EventType['evt_list_begin_label_edit', 1,
496
+ Wx::EVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
497
+ Wx::ListEvent],
498
+ EventType['evt_list_begin_rdrag', 1,
499
+ Wx::EVT_COMMAND_LIST_BEGIN_RDRAG,
500
+ Wx::ListEvent],
501
+ EventType['evt_list_cache_hint', 1,
502
+ Wx::EVT_COMMAND_LIST_CACHE_HINT,
503
+ Wx::ListEvent],
504
+ EventType['evt_list_col_begin_drag', 1,
505
+ Wx::EVT_COMMAND_LIST_COL_BEGIN_DRAG,
506
+ Wx::ListEvent],
507
+ EventType['evt_list_col_click', 1,
508
+ Wx::EVT_COMMAND_LIST_COL_CLICK,
509
+ Wx::ListEvent],
510
+ EventType['evt_list_col_dragging', 1,
511
+ Wx::EVT_COMMAND_LIST_COL_DRAGGING,
512
+ Wx::ListEvent],
513
+ EventType['evt_list_col_end_drag', 1,
514
+ Wx::EVT_COMMAND_LIST_COL_END_DRAG,
515
+ Wx::ListEvent],
516
+ EventType['evt_list_col_right_click', 1,
517
+ Wx::EVT_COMMAND_LIST_COL_RIGHT_CLICK,
518
+ Wx::ListEvent],
519
+ EventType['evt_list_delete_all_items', 1,
520
+ Wx::EVT_COMMAND_LIST_DELETE_ALL_ITEMS,
521
+ Wx::ListEvent],
522
+ EventType['evt_list_delete_item', 1,
523
+ Wx::EVT_COMMAND_LIST_DELETE_ITEM,
524
+ Wx::ListEvent],
525
+ EventType['evt_list_end_label_edit', 1,
526
+ Wx::EVT_COMMAND_LIST_END_LABEL_EDIT,
527
+ Wx::ListEvent],
528
+ EventType['evt_list_insert_item', 1,
529
+ Wx::EVT_COMMAND_LIST_INSERT_ITEM,
530
+ Wx::ListEvent],
531
+ EventType['evt_list_item_activated', 1,
532
+ Wx::EVT_COMMAND_LIST_ITEM_ACTIVATED,
533
+ Wx::ListEvent],
534
+ EventType['evt_list_item_deselected', 1,
535
+ Wx::EVT_COMMAND_LIST_ITEM_DESELECTED,
536
+ Wx::ListEvent],
537
+ EventType['evt_list_item_focused', 1,
538
+ Wx::EVT_COMMAND_LIST_ITEM_FOCUSED,
539
+ Wx::ListEvent],
540
+ EventType['evt_list_item_middle_click', 1,
541
+ Wx::EVT_COMMAND_LIST_ITEM_MIDDLE_CLICK,
542
+ Wx::ListEvent],
543
+ EventType['evt_list_item_right_click', 1,
544
+ Wx::EVT_COMMAND_LIST_ITEM_RIGHT_CLICK,
545
+ Wx::ListEvent],
546
+ EventType['evt_list_item_selected', 1,
547
+ Wx::EVT_COMMAND_LIST_ITEM_SELECTED,
548
+ Wx::ListEvent],
549
+ EventType['evt_list_key_down', 1,
550
+ Wx::EVT_COMMAND_LIST_KEY_DOWN,
551
+ Wx::ListEvent],
552
+ EventType['evt_maximize', 0,
553
+ Wx::EVT_MAXIMIZE,
554
+ Wx::Event],
555
+ EventType['evt_menu', 1,
556
+ Wx::EVT_COMMAND_MENU_SELECTED,
557
+ Wx::CommandEvent],
558
+ EventType['evt_menu_close', 0,
559
+ Wx::EVT_MENU_CLOSE,
560
+ Wx::MenuEvent],
561
+ EventType['evt_menu_highlight', 1,
562
+ Wx::EVT_MENU_HIGHLIGHT,
563
+ Wx::MenuEvent],
564
+ EventType['evt_menu_highlight_all', 0,
565
+ Wx::EVT_MENU_HIGHLIGHT,
566
+ Wx::MenuEvent],
567
+ EventType['evt_menu_open', 0,
568
+ Wx::EVT_MENU_OPEN,
569
+ Wx::MenuEvent],
570
+ EventType['evt_menu_range', 2,
571
+ Wx::EVT_COMMAND_MENU_SELECTED,
572
+ Wx::CommandEvent],
573
+ EventType['evt_middle_dclick', 0,
574
+ Wx::EVT_MIDDLE_DCLICK,
575
+ Wx::MouseEvent],
576
+ EventType['evt_middle_down', 0,
577
+ Wx::EVT_MIDDLE_DOWN,
578
+ Wx::MouseEvent],
579
+ EventType['evt_middle_up', 0,
580
+ Wx::EVT_MIDDLE_UP,
581
+ Wx::MouseEvent],
582
+ EventType['evt_motion', 0,
583
+ Wx::EVT_MOTION,
584
+ Wx::MouseEvent],
585
+ EventType['evt_mousewheel', 0,
586
+ Wx::EVT_MOUSEWHEEL,
587
+ Wx::MouseEvent],
588
+ EventType['evt_mouse_capture_changed', 0,
589
+ Wx::EVT_MOUSE_CAPTURE_CHANGED,
590
+ Wx::Event],
591
+ EventType['evt_move', 0,
592
+ Wx::EVT_MOVE,
593
+ Wx::MoveEvent],
594
+ EventType['evt_moving', 0,
595
+ Wx::EVT_MOVING,
596
+ Wx::MoveEvent],
597
+ EventType['evt_nc_paint', 0,
598
+ Wx::EVT_NC_PAINT,
599
+ Wx::Event],
600
+ EventType['evt_notebook_page_changed', 1,
601
+ Wx::EVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
602
+ Wx::NotebookEvent],
603
+ EventType['evt_notebook_page_changing', 1,
604
+ Wx::EVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
605
+ Wx::NotebookEvent],
606
+ EventType['evt_paint', 0,
607
+ Wx::EVT_PAINT,
608
+ Wx::PaintEvent],
609
+ EventType['evt_query_end_session', 0,
610
+ Wx::EVT_QUERY_END_SESSION,
611
+ Wx::Event],
612
+ EventType['evt_query_layout_info', 0,
613
+ Wx::EVT_QUERY_LAYOUT_INFO,
614
+ Wx::QueryLayoutInfoEvent],
615
+ EventType['evt_radiobox', 1,
616
+ Wx::EVT_COMMAND_RADIOBOX_SELECTED,
617
+ Wx::CommandEvent],
618
+ EventType['evt_radiobutton', 1,
619
+ Wx::EVT_COMMAND_RADIOBUTTON_SELECTED,
620
+ Wx::CommandEvent],
621
+ EventType['evt_right_dclick', 0,
622
+ Wx::EVT_RIGHT_DCLICK,
623
+ Wx::MouseEvent],
624
+ EventType['evt_right_down', 0,
625
+ Wx::EVT_RIGHT_DOWN,
626
+ Wx::MouseEvent],
627
+ EventType['evt_right_up', 0,
628
+ Wx::EVT_RIGHT_UP,
629
+ Wx::MouseEvent],
630
+ EventType['evt_sash_dragged', 1,
631
+ Wx::EVT_SASH_DRAGGED,
632
+ Wx::SashEvent],
633
+ EventType['evt_sash_dragged_range', 2,
634
+ Wx::EVT_SASH_DRAGGED,
635
+ Wx::SashEvent],
636
+ EventType['evt_scrollbar', 1,
637
+ Wx::EVT_COMMAND_SCROLLBAR_UPDATED,
638
+ Wx::CommandEvent],
639
+ EventType['evt_scrollwin_bottom', 0,
640
+ Wx::EVT_SCROLLWIN_TOP,
641
+ Wx::ScrollWinEvent],
642
+ EventType['evt_scrollwin_linedown', 0,
643
+ Wx::EVT_SCROLLWIN_LINEDOWN,
644
+ Wx::ScrollWinEvent],
645
+ EventType['evt_scrollwin_lineup', 0,
646
+ Wx::EVT_SCROLLWIN_LINEUP,
647
+ Wx::ScrollWinEvent],
648
+ EventType['evt_scrollwin_pagedown', 0,
649
+ Wx::EVT_SCROLLWIN_PAGEDOWN,
650
+ Wx::ScrollWinEvent],
651
+ EventType['evt_scrollwin_pageup', 0,
652
+ Wx::EVT_SCROLLWIN_PAGEUP,
653
+ Wx::ScrollWinEvent],
654
+ EventType['evt_scrollwin_thumbrelease', 0,
655
+ Wx::EVT_SCROLLWIN_THUMBRELEASE,
656
+ Wx::ScrollWinEvent],
657
+ EventType['evt_scrollwin_thumbtrack', 0,
658
+ Wx::EVT_SCROLLWIN_THUMBTRACK,
659
+ Wx::ScrollWinEvent],
660
+ EventType['evt_scrollwin_top', 0,
661
+ Wx::EVT_SCROLLWIN_TOP,
662
+ Wx::ScrollWinEvent],
663
+ EventType['evt_scroll_bottom', 0,
664
+ Wx::EVT_SCROLL_BOTTOM,
665
+ Wx::ScrollEvent],
666
+ EventType['evt_scroll_linedown', 0,
667
+ Wx::EVT_SCROLL_LINEDOWN,
668
+ Wx::ScrollEvent],
669
+ EventType['evt_scroll_lineup', 0,
670
+ Wx::EVT_SCROLL_LINEUP,
671
+ Wx::ScrollEvent],
672
+ EventType['evt_scroll_pagedown', 0,
673
+ Wx::EVT_SCROLL_PAGEDOWN,
674
+ Wx::ScrollEvent],
675
+ EventType['evt_scroll_pageup', 0,
676
+ Wx::EVT_SCROLL_PAGEUP,
677
+ Wx::ScrollEvent],
678
+ EventType['evt_scroll_thumbrelease', 0,
679
+ Wx::EVT_SCROLL_THUMBRELEASE,
680
+ Wx::ScrollEvent],
681
+ EventType['evt_scroll_thumbtrack', 0,
682
+ Wx::EVT_SCROLL_THUMBTRACK,
683
+ Wx::ScrollEvent],
684
+ EventType['evt_scroll_top', 0,
685
+ Wx::EVT_SCROLL_TOP,
686
+ Wx::ScrollEvent],
687
+ EventType['evt_searchctrl_cancel_btn', 1,
688
+ Wx::EVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
689
+ Wx::CommandEvent],
690
+ EventType['evt_searchctrl_search_btn', 1,
691
+ Wx::EVT_COMMAND_SEARCHCTRL_SEARCH_BTN,
692
+ Wx::CommandEvent],
693
+ EventType['evt_set_cursor', 0,
694
+ Wx::EVT_SET_CURSOR,
695
+ Wx::SetCursorEvent],
696
+ EventType['evt_set_focus', 0,
697
+ Wx::EVT_SET_FOCUS,
698
+ Wx::FocusEvent],
699
+ EventType['evt_show', 1,
700
+ Wx::EVT_SHOW,
701
+ Wx::ShowEvent],
702
+ EventType['evt_size', 0,
703
+ Wx::EVT_SIZE,
704
+ Wx::SizeEvent],
705
+ EventType['evt_sizing', 0,
706
+ Wx::EVT_SIZING,
707
+ Wx::SizeEvent],
708
+ EventType['evt_slider', 1,
709
+ Wx::EVT_COMMAND_SLIDER_UPDATED,
710
+ Wx::CommandEvent],
711
+ EventType['evt_socket', 1,
712
+ Wx::EVT_SOCKET,
713
+ Wx::Event],
714
+ EventType['evt_spin', 1,
715
+ Wx::EVT_SCROLL_THUMBTRACK,
716
+ Wx::ScrollEvent],
717
+ EventType['evt_spinctrl', 1,
718
+ Wx::EVT_COMMAND_SPINCTRL_UPDATED,
719
+ Wx::SpinEvent],
720
+ EventType['evt_spin_down', 1,
721
+ Wx::EVT_SCROLL_LINEDOWN,
722
+ Wx::ScrollEvent],
723
+ EventType['evt_spin_up', 1,
724
+ Wx::EVT_SCROLL_LINEUP,
725
+ Wx::ScrollEvent],
726
+ EventType['evt_splitter_dclick', 1,
727
+ Wx::EVT_COMMAND_SPLITTER_DOUBLECLICKED,
728
+ Wx::SplitterEvent],
729
+ EventType['evt_splitter_sash_pos_changed', 1,
730
+ Wx::EVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
731
+ Wx::SplitterEvent],
732
+ EventType['evt_splitter_sash_pos_changing', 1,
733
+ Wx::EVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
734
+ Wx::SplitterEvent],
735
+ EventType['evt_splitter_unsplit', 1,
736
+ Wx::EVT_COMMAND_SPLITTER_UNSPLIT,
737
+ Wx::SplitterEvent],
738
+ EventType['evt_sys_colour_changed', 0,
739
+ Wx::EVT_SYS_COLOUR_CHANGED,
740
+ Wx::Event],
741
+ EventType['evt_taskbar_left_dclick', 0,
742
+ Wx::EVT_TASKBAR_LEFT_DCLICK,
743
+ Wx::Event],
744
+ EventType['evt_taskbar_left_down', 0,
745
+ Wx::EVT_TASKBAR_LEFT_DOWN,
746
+ Wx::Event],
747
+ EventType['evt_taskbar_left_up', 0,
748
+ Wx::EVT_TASKBAR_LEFT_UP,
749
+ Wx::Event],
750
+ EventType['evt_taskbar_move', 0,
751
+ Wx::EVT_TASKBAR_MOVE,
752
+ Wx::Event],
753
+ EventType['evt_taskbar_right_dclick', 0,
754
+ Wx::EVT_TASKBAR_RIGHT_DCLICK,
755
+ Wx::Event],
756
+ EventType['evt_taskbar_right_down', 0,
757
+ Wx::EVT_TASKBAR_RIGHT_DOWN,
758
+ Wx::Event],
759
+ EventType['evt_taskbar_right_up', 0,
760
+ Wx::EVT_TASKBAR_RIGHT_UP,
761
+ Wx::Event],
762
+ EventType['evt_text', 1,
763
+ Wx::EVT_COMMAND_TEXT_UPDATED,
764
+ Wx::CommandEvent],
765
+ EventType['evt_text_enter', 1,
766
+ Wx::EVT_COMMAND_TEXT_ENTER,
767
+ Wx::CommandEvent],
768
+ EventType['evt_text_maxlen', 1,
769
+ Wx::EVT_COMMAND_TEXT_MAXLEN,
770
+ Wx::CommandEvent],
771
+ EventType['evt_text_url', 1,
772
+ Wx::EVT_COMMAND_TEXT_URL,
773
+ Wx::TextUrlEvent],
774
+ EventType['evt_timer', 1,
775
+ Wx::EVT_TIMER,
776
+ Wx::TimerEvent],
777
+ EventType['evt_togglebutton', 1,
778
+ Wx::EVT_COMMAND_TOGGLEBUTTON_CLICKED,
779
+ Wx::Event],
780
+ EventType['evt_tool', 1,
781
+ Wx::EVT_COMMAND_TOOL_CLICKED,
782
+ Wx::CommandEvent],
783
+ EventType['evt_tool_enter', 1,
784
+ Wx::EVT_COMMAND_TOOL_ENTER,
785
+ Wx::CommandEvent],
786
+ EventType['evt_tool_range', 2,
787
+ Wx::EVT_COMMAND_TOOL_CLICKED,
788
+ Wx::CommandEvent],
789
+ EventType['evt_tool_rclicked', 1,
790
+ Wx::EVT_COMMAND_TOOL_RCLICKED,
791
+ Wx::CommandEvent],
792
+ EventType['evt_tool_rclicked_range', 2,
793
+ Wx::EVT_COMMAND_TOOL_RCLICKED,
794
+ Wx::CommandEvent],
795
+ EventType['evt_tree_begin_drag', 1,
796
+ Wx::EVT_COMMAND_TREE_BEGIN_DRAG,
797
+ Wx::TreeEvent],
798
+ EventType['evt_tree_begin_label_edit', 1,
799
+ Wx::EVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
800
+ Wx::TreeEvent],
801
+ EventType['evt_tree_begin_rdrag', 1,
802
+ Wx::EVT_COMMAND_TREE_BEGIN_RDRAG,
803
+ Wx::TreeEvent],
804
+ EventType['evt_tree_delete_item', 1,
805
+ Wx::EVT_COMMAND_TREE_DELETE_ITEM,
806
+ Wx::TreeEvent],
807
+ EventType['evt_tree_end_drag', 1,
808
+ Wx::EVT_COMMAND_TREE_END_DRAG,
809
+ Wx::TreeEvent],
810
+ EventType['evt_tree_end_label_edit', 1,
811
+ Wx::EVT_COMMAND_TREE_END_LABEL_EDIT,
812
+ Wx::TreeEvent],
813
+ EventType['evt_tree_get_info', 1,
814
+ Wx::EVT_COMMAND_TREE_GET_INFO,
815
+ Wx::TreeEvent],
816
+ EventType['evt_tree_item_activated', 1,
817
+ Wx::EVT_COMMAND_TREE_ITEM_ACTIVATED,
818
+ Wx::TreeEvent],
819
+ EventType['evt_tree_item_collapsed', 1,
820
+ Wx::EVT_COMMAND_TREE_ITEM_COLLAPSED,
821
+ Wx::TreeEvent],
822
+ EventType['evt_tree_item_collapsing', 1,
823
+ Wx::EVT_COMMAND_TREE_ITEM_COLLAPSING,
824
+ Wx::TreeEvent],
825
+ EventType['evt_tree_item_expanded', 1,
826
+ Wx::EVT_COMMAND_TREE_ITEM_EXPANDED,
827
+ Wx::TreeEvent],
828
+ EventType['evt_tree_item_expanding', 1,
829
+ Wx::EVT_COMMAND_TREE_ITEM_EXPANDING,
830
+ Wx::TreeEvent],
831
+ EventType['evt_tree_item_gettooltip', 1,
832
+ Wx::EVT_COMMAND_TREE_ITEM_GETTOOLTIP,
833
+ Wx::TreeEvent],
834
+ EventType['evt_tree_item_menu', 1,
835
+ Wx::EVT_COMMAND_TREE_ITEM_MENU,
836
+ Wx::TreeEvent],
837
+ EventType['evt_tree_item_middle_click', 1,
838
+ Wx::EVT_COMMAND_TREE_ITEM_MIDDLE_CLICK,
839
+ Wx::TreeEvent],
840
+ EventType['evt_tree_item_right_click', 1,
841
+ Wx::EVT_COMMAND_TREE_ITEM_RIGHT_CLICK,
842
+ Wx::TreeEvent],
843
+ EventType['evt_tree_key_down', 1,
844
+ Wx::EVT_COMMAND_TREE_KEY_DOWN,
845
+ Wx::TreeEvent],
846
+ EventType['evt_tree_sel_changed', 1,
847
+ Wx::EVT_COMMAND_TREE_SEL_CHANGED,
848
+ Wx::TreeEvent],
849
+ EventType['evt_tree_sel_changing', 1,
850
+ Wx::EVT_COMMAND_TREE_SEL_CHANGING,
851
+ Wx::TreeEvent],
852
+ EventType['evt_tree_set_info', 1,
853
+ Wx::EVT_COMMAND_TREE_SET_INFO,
854
+ Wx::TreeEvent],
855
+ EventType['evt_update_ui', 1,
856
+ Wx::EVT_UPDATE_UI,
857
+ Wx::UpdateUIEvent],
858
+ EventType['evt_update_ui_range', 2,
859
+ Wx::EVT_UPDATE_UI,
860
+ Wx::UpdateUIEvent],
861
+ EventType['evt_window_create', 0,
862
+ Wx::EVT_CREATE,
863
+ Wx::WindowCreateEvent],
864
+ EventType['evt_window_destroy', 0,
865
+ Wx::EVT_DESTROY,
866
+ Wx::WindowDestroyEvent],
867
+ EventType['evt_wizard_cancel', 1,
868
+ Wx::EVT_WIZARD_CANCEL,
869
+ Wx::WizardEvent],
870
+ EventType['evt_wizard_finished', 1,
871
+ Wx::EVT_WIZARD_FINISHED,
872
+ Wx::WizardEvent],
873
+ EventType['evt_wizard_help', 1,
874
+ Wx::EVT_WIZARD_HELP,
875
+ Wx::WizardEvent],
876
+ EventType['evt_wizard_page_changed', 1,
877
+ Wx::EVT_WIZARD_PAGE_CHANGED,
878
+ Wx::WizardEvent],
879
+ EventType['evt_wizard_page_changing', 1,
880
+ Wx::EVT_WIZARD_PAGE_CHANGING,
881
+ Wx::WizardEvent]
882
+ ]
883
+
884
+ # Loop over the event definitions to set up two things:
885
+ # 1) A hash mapping Event Type ids to event classes, used when events
886
+ # are fired to quickly look up the right type to yield
887
+ # 2) EvtHandler instance methods like evt_xxx to conveniently set
888
+ # up event handlers
889
+ EVENT_DEFINITIONS.each { | ev_type | register_event_type(ev_type) }
890
+
891
+
892
+ # convenience evt_handler to listen to all mouse events
893
+ def evt_mouse_events(&block)
894
+ evt_left_down(&block)
895
+ evt_left_up(&block)
896
+ evt_middle_down(&block)
897
+ evt_middle_up(&block)
898
+ evt_right_down(&block)
899
+ evt_right_up(&block)
900
+ evt_motion(&block)
901
+ evt_left_dclick(&block)
902
+ evt_middle_dclick(&block)
903
+ evt_right_dclick(&block)
904
+ evt_leave_window(&block)
905
+ evt_enter_window(&block)
906
+ evt_mousewheel(&block)
907
+ end
908
+
909
+ # convenience evt handler to listen to all scrollwin events
910
+ def evt_scrollwin(&block)
911
+ evt_scrollwin_top(&block)
912
+ evt_scrollwin_bottom(&block)
913
+ evt_scrollwin_lineup(&block)
914
+ evt_scrollwin_linedown(&block)
915
+ evt_scrollwin_pageup(&block)
916
+ evt_scrollwin_pagedown(&block)
917
+ evt_scrollwin_thumbtrack(&block)
918
+ evt_scrollwin_thumbrelease(&block)
919
+ end
920
+ end
921
+