wxruby-ruby19 1.9.10-x86-mingw32

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