wxruby-ruby19 1.9.8-x86-darwin-9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wx.rb +53 -0
- data/lib/wx/accessors.rb +52 -0
- data/lib/wx/classes/acceleratortable.rb +28 -0
- data/lib/wx/classes/animation.rb +18 -0
- data/lib/wx/classes/app.rb +45 -0
- data/lib/wx/classes/artprovider.rb +31 -0
- data/lib/wx/classes/auinotebook.rb +9 -0
- data/lib/wx/classes/bitmap.rb +28 -0
- data/lib/wx/classes/busycursor.rb +12 -0
- data/lib/wx/classes/checklistbox.rb +45 -0
- data/lib/wx/classes/choice.rb +4 -0
- data/lib/wx/classes/clientdc.rb +13 -0
- data/lib/wx/classes/clipboard.rb +16 -0
- data/lib/wx/classes/colour.rb +47 -0
- data/lib/wx/classes/combobox.rb +4 -0
- data/lib/wx/classes/commandevent.rb +7 -0
- data/lib/wx/classes/controlwithitems.rb +10 -0
- data/lib/wx/classes/dc.rb +57 -0
- data/lib/wx/classes/event.rb +5 -0
- data/lib/wx/classes/evthandler.rb +964 -0
- data/lib/wx/classes/font.rb +118 -0
- data/lib/wx/classes/functions.rb +44 -0
- data/lib/wx/classes/gauge.rb +12 -0
- data/lib/wx/classes/grid.rb +138 -0
- data/lib/wx/classes/helpcontroller.rb +5 -0
- data/lib/wx/classes/helpcontrollerhelpprovider.rb +23 -0
- data/lib/wx/classes/helpprovider.rb +15 -0
- data/lib/wx/classes/htmlhelpcontroller.rb +5 -0
- data/lib/wx/classes/htmlwindow.rb +14 -0
- data/lib/wx/classes/icon.rb +21 -0
- data/lib/wx/classes/iconbundle.rb +3 -0
- data/lib/wx/classes/image.rb +31 -0
- data/lib/wx/classes/imagelist.rb +3 -0
- data/lib/wx/classes/listbox.rb +4 -0
- data/lib/wx/classes/listctrl.rb +21 -0
- data/lib/wx/classes/locale.rb +28 -0
- data/lib/wx/classes/mediactrl.rb +48 -0
- data/lib/wx/classes/menu.rb +62 -0
- data/lib/wx/classes/menuitem.rb +7 -0
- data/lib/wx/classes/notebook.rb +9 -0
- data/lib/wx/classes/object.rb +14 -0
- data/lib/wx/classes/paintdc.rb +12 -0
- data/lib/wx/classes/point.rb +48 -0
- data/lib/wx/classes/previewframe.rb +13 -0
- data/lib/wx/classes/rect.rb +10 -0
- data/lib/wx/classes/simplehelpprovider.rb +38 -0
- data/lib/wx/classes/size.rb +49 -0
- data/lib/wx/classes/sizer.rb +22 -0
- data/lib/wx/classes/sound.rb +23 -0
- data/lib/wx/classes/styledtextctrl.rb +92 -0
- data/lib/wx/classes/textctrl.rb +14 -0
- data/lib/wx/classes/texturlevent.rb +6 -0
- data/lib/wx/classes/timer.rb +94 -0
- data/lib/wx/classes/toolbar.rb +29 -0
- data/lib/wx/classes/toolbartool.rb +4 -0
- data/lib/wx/classes/treectrl.rb +44 -0
- data/lib/wx/classes/window.rb +82 -0
- data/lib/wx/classes/xmlresource.rb +37 -0
- data/lib/wx/helpers.rb +30 -0
- data/lib/wx/keyword_ctors.rb +203 -0
- data/lib/wx/keyword_defs.rb +507 -0
- data/lib/wx/version.rb +3 -0
- data/lib/wxruby2.bundle +0 -0
- metadata +323 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
# Class for drawing primitives and bitmaps on various outputs (screen, paper)
|
2
|
+
class Wx::DC
|
3
|
+
# Several methods accept an array of Wx::Point objects. In line with
|
4
|
+
# the rest of the wxRuby API, allow these points to be specified as
|
5
|
+
# simple two-element arrays [x, y].
|
6
|
+
def __convert_point_array(arr)
|
7
|
+
if arr.all? { | x | x.kind_of?(Wx::Point) }
|
8
|
+
return arr
|
9
|
+
end
|
10
|
+
arr.map do | x |
|
11
|
+
case x
|
12
|
+
when Wx::Point
|
13
|
+
x
|
14
|
+
when Array
|
15
|
+
if x.length != 2
|
16
|
+
msg = "Wrong number of elements in point array item, should be two"
|
17
|
+
err = ArgumentError.new(msg)
|
18
|
+
err.set_backtrace(caller[2..-1])
|
19
|
+
Kernel.raise(err)
|
20
|
+
end
|
21
|
+
Wx::Point.new(x[0], x[1])
|
22
|
+
else
|
23
|
+
msg = "Wrong type of item #{x.inspect} in point array"
|
24
|
+
err = ArgumentError.new(msg)
|
25
|
+
err.set_backtrace(caller[2..-1])
|
26
|
+
Kernel.raise(err)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
private :__convert_point_array
|
31
|
+
|
32
|
+
wx_draw_lines = self.instance_method(:draw_lines)
|
33
|
+
define_method(:draw_lines) do | *args |
|
34
|
+
args[0] = __convert_point_array(args[0])
|
35
|
+
wx_draw_lines.bind(self).call(*args)
|
36
|
+
end
|
37
|
+
|
38
|
+
wx_draw_polygon = self.instance_method(:draw_polygon)
|
39
|
+
define_method(:draw_polygon) do | *args |
|
40
|
+
args[0] = __convert_point_array(args[0])
|
41
|
+
wx_draw_polygon.bind(self).call(*args)
|
42
|
+
end
|
43
|
+
|
44
|
+
wx_draw_poly_polygon = self.instance_method(:draw_poly_polygon)
|
45
|
+
define_method(:draw_poly_polygon) do | *args |
|
46
|
+
args[0].map! do | arr |
|
47
|
+
__convert_point_array(arr)
|
48
|
+
end
|
49
|
+
wx_draw_poly_polygon.bind(self).call(*args)
|
50
|
+
end
|
51
|
+
|
52
|
+
wx_draw_spline = self.instance_method(:draw_spline)
|
53
|
+
define_method(:draw_spline) do | *args |
|
54
|
+
args[0] = __convert_point_array(args[0])
|
55
|
+
wx_draw_spline.bind(self).call(*args)
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,964 @@
|
|
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_button', 1,
|
239
|
+
Wx::EVT_COMMAND_BUTTON_CLICKED,
|
240
|
+
Wx::CommandEvent],
|
241
|
+
EventType['evt_calculate_layout', 0,
|
242
|
+
Wx::EVT_CALCULATE_LAYOUT,
|
243
|
+
Wx::CalculateLayoutEvent],
|
244
|
+
EventType['evt_calendar', 1,
|
245
|
+
Wx::EVT_CALENDAR_DOUBLECLICKED,
|
246
|
+
Wx::CalendarEvent],
|
247
|
+
EventType['evt_calendar_day', 1,
|
248
|
+
Wx::EVT_CALENDAR_DAY_CHANGED,
|
249
|
+
Wx::CalendarEvent],
|
250
|
+
EventType['evt_calendar_month', 1,
|
251
|
+
Wx::EVT_CALENDAR_MONTH_CHANGED,
|
252
|
+
Wx::CalendarEvent],
|
253
|
+
EventType['evt_calendar_sel_changed', 1,
|
254
|
+
Wx::EVT_CALENDAR_SEL_CHANGED,
|
255
|
+
Wx::CalendarEvent],
|
256
|
+
EventType['evt_calendar_weekday_clicked', 1,
|
257
|
+
Wx::EVT_CALENDAR_WEEKDAY_CLICKED,
|
258
|
+
Wx::CalendarEvent],
|
259
|
+
EventType['evt_calendar_year', 1,
|
260
|
+
Wx::EVT_CALENDAR_YEAR_CHANGED,
|
261
|
+
Wx::CalendarEvent],
|
262
|
+
EventType['evt_char', 0,
|
263
|
+
Wx::EVT_CHAR,
|
264
|
+
Wx::KeyEvent],
|
265
|
+
EventType['evt_char_hook', 0,
|
266
|
+
Wx::EVT_CHAR_HOOK,
|
267
|
+
Wx::KeyEvent],
|
268
|
+
EventType['evt_checkbox', 1,
|
269
|
+
Wx::EVT_COMMAND_CHECKBOX_CLICKED,
|
270
|
+
Wx::CommandEvent],
|
271
|
+
EventType['evt_checklistbox', 1,
|
272
|
+
Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED,
|
273
|
+
Wx::CommandEvent],
|
274
|
+
EventType['evt_child_focus', 0,
|
275
|
+
Wx::EVT_CHILD_FOCUS,
|
276
|
+
Wx::ChildFocusEvent],
|
277
|
+
EventType['evt_choice', 1,
|
278
|
+
Wx::EVT_COMMAND_CHOICE_SELECTED,
|
279
|
+
Wx::CommandEvent],
|
280
|
+
EventType['evt_choicebook_page_changed', 1,
|
281
|
+
Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGED,
|
282
|
+
Wx::ChoicebookEvent],
|
283
|
+
EventType['evt_choicebook_page_changing', 1,
|
284
|
+
Wx::EVT_COMMAND_CHOICEBOOK_PAGE_CHANGING,
|
285
|
+
Wx::ChoicebookEvent],
|
286
|
+
EventType['evt_close', 0,
|
287
|
+
Wx::EVT_CLOSE_WINDOW,
|
288
|
+
Wx::CloseEvent],
|
289
|
+
EventType['evt_collapsiblepane_changed', 1,
|
290
|
+
Wx::EVT_COMMAND_COLLPANE_CHANGED,
|
291
|
+
Wx::CollapsiblePaneEvent],
|
292
|
+
EventType['evt_combobox', 1,
|
293
|
+
Wx::EVT_COMMAND_COMBOBOX_SELECTED,
|
294
|
+
Wx::CommandEvent],
|
295
|
+
EventType['evt_command_enter', 1,
|
296
|
+
Wx::EVT_COMMAND_ENTER,
|
297
|
+
Wx::CommandEvent],
|
298
|
+
EventType['evt_command_kill_focus', 1,
|
299
|
+
Wx::EVT_COMMAND_KILL_FOCUS,
|
300
|
+
Wx::CommandEvent],
|
301
|
+
EventType['evt_command_left_click', 1,
|
302
|
+
Wx::EVT_COMMAND_LEFT_CLICK,
|
303
|
+
Wx::CommandEvent],
|
304
|
+
EventType['evt_command_left_dclick', 1,
|
305
|
+
Wx::EVT_COMMAND_LEFT_DCLICK,
|
306
|
+
Wx::CommandEvent],
|
307
|
+
EventType['evt_command_right_click', 1,
|
308
|
+
Wx::EVT_COMMAND_RIGHT_CLICK,
|
309
|
+
Wx::CommandEvent],
|
310
|
+
EventType['evt_command_set_focus', 1,
|
311
|
+
Wx::EVT_COMMAND_SET_FOCUS,
|
312
|
+
Wx::CommandEvent],
|
313
|
+
EventType['evt_context_menu', 0,
|
314
|
+
Wx::EVT_CONTEXT_MENU,
|
315
|
+
Wx::ContextMenuEvent],
|
316
|
+
EventType['evt_drop_files', 0,
|
317
|
+
Wx::EVT_DROP_FILES,
|
318
|
+
Wx::Event],
|
319
|
+
EventType['evt_detailed_help', 1,
|
320
|
+
Wx::EVT_DETAILED_HELP,
|
321
|
+
Wx::HelpEvent],
|
322
|
+
EventType['evt_detailed_help_range', 2,
|
323
|
+
Wx::EVT_DETAILED_HELP,
|
324
|
+
Wx::HelpEvent],
|
325
|
+
EventType['evt_end_process', 1,
|
326
|
+
Wx::EVT_END_PROCESS,
|
327
|
+
Wx::Event],
|
328
|
+
EventType['evt_end_session', 0,
|
329
|
+
Wx::EVT_END_SESSION,
|
330
|
+
Wx::Event],
|
331
|
+
EventType['evt_enter_window', 0,
|
332
|
+
Wx::EVT_ENTER_WINDOW,
|
333
|
+
Wx::MouseEvent],
|
334
|
+
EventType['evt_erase_background', 0,
|
335
|
+
Wx::EVT_ERASE_BACKGROUND,
|
336
|
+
Wx::EraseEvent],
|
337
|
+
EventType['evt_find', 1,
|
338
|
+
Wx::EVT_COMMAND_FIND,
|
339
|
+
Wx::FindDialogEvent],
|
340
|
+
EventType['evt_find_close', 1,
|
341
|
+
Wx::EVT_COMMAND_FIND_CLOSE,
|
342
|
+
Wx::FindDialogEvent],
|
343
|
+
EventType['evt_find_next', 1,
|
344
|
+
Wx::EVT_COMMAND_FIND_NEXT,
|
345
|
+
Wx::FindDialogEvent],
|
346
|
+
EventType['evt_find_replace', 1,
|
347
|
+
Wx::EVT_COMMAND_FIND_REPLACE,
|
348
|
+
Wx::FindDialogEvent],
|
349
|
+
EventType['evt_find_replace_all', 1,
|
350
|
+
Wx::EVT_COMMAND_FIND_REPLACE_ALL,
|
351
|
+
Wx::FindDialogEvent],
|
352
|
+
EventType['evt_grid_cell_change', 0,
|
353
|
+
Wx::EVT_GRID_CELL_CHANGE,
|
354
|
+
Wx::GridEvent],
|
355
|
+
EventType['evt_grid_cell_left_click', 0,
|
356
|
+
Wx::EVT_GRID_CELL_LEFT_CLICK,
|
357
|
+
Wx::GridEvent],
|
358
|
+
EventType['evt_grid_cell_left_dclick', 0,
|
359
|
+
Wx::EVT_GRID_CELL_LEFT_DCLICK,
|
360
|
+
Wx::GridEvent],
|
361
|
+
EventType['evt_grid_cell_right_click', 0,
|
362
|
+
Wx::EVT_GRID_CELL_RIGHT_CLICK,
|
363
|
+
Wx::GridEvent],
|
364
|
+
EventType['evt_grid_cell_right_dclick', 0,
|
365
|
+
Wx::EVT_GRID_CELL_RIGHT_DCLICK,
|
366
|
+
Wx::GridEvent],
|
367
|
+
EventType['evt_grid_cmd_cell_change', 1,
|
368
|
+
Wx::EVT_GRID_CELL_CHANGE,
|
369
|
+
Wx::GridEvent],
|
370
|
+
EventType['evt_grid_cmd_cell_left_click', 1,
|
371
|
+
Wx::EVT_GRID_CELL_LEFT_CLICK,
|
372
|
+
Wx::GridEvent],
|
373
|
+
EventType['evt_grid_cmd_cell_left_dclick', 1,
|
374
|
+
Wx::EVT_GRID_CELL_LEFT_DCLICK,
|
375
|
+
Wx::GridEvent],
|
376
|
+
EventType['evt_grid_cmd_cell_right_click', 1,
|
377
|
+
Wx::EVT_GRID_CELL_RIGHT_CLICK,
|
378
|
+
Wx::GridEvent],
|
379
|
+
EventType['evt_grid_cmd_cell_right_dclick', 1,
|
380
|
+
Wx::EVT_GRID_CELL_RIGHT_DCLICK,
|
381
|
+
Wx::GridEvent],
|
382
|
+
EventType['evt_grid_cmd_col_size', 1,
|
383
|
+
Wx::EVT_GRID_COL_SIZE,
|
384
|
+
Wx::GridSizeEvent],
|
385
|
+
EventType['evt_grid_cmd_editor_created', 1,
|
386
|
+
Wx::EVT_GRID_EDITOR_CREATED,
|
387
|
+
Wx::GridEditorCreatedEvent],
|
388
|
+
EventType['evt_grid_cmd_editor_hidden', 1,
|
389
|
+
Wx::EVT_GRID_EDITOR_HIDDEN,
|
390
|
+
Wx::GridEvent],
|
391
|
+
EventType['evt_grid_cmd_editor_shown', 1,
|
392
|
+
Wx::EVT_GRID_EDITOR_SHOWN,
|
393
|
+
Wx::GridEvent],
|
394
|
+
EventType['evt_grid_cmd_label_left_click', 1,
|
395
|
+
Wx::EVT_GRID_LABEL_LEFT_CLICK,
|
396
|
+
Wx::GridEvent],
|
397
|
+
EventType['evt_grid_cmd_label_left_dclick', 1,
|
398
|
+
Wx::EVT_GRID_LABEL_LEFT_DCLICK,
|
399
|
+
Wx::GridEvent],
|
400
|
+
EventType['evt_grid_cmd_label_right_click', 1,
|
401
|
+
Wx::EVT_GRID_LABEL_RIGHT_CLICK,
|
402
|
+
Wx::GridEvent],
|
403
|
+
EventType['evt_grid_cmd_label_right_dclick', 1,
|
404
|
+
Wx::EVT_GRID_LABEL_RIGHT_DCLICK,
|
405
|
+
Wx::GridEvent],
|
406
|
+
EventType['evt_grid_cmd_range_select', 1,
|
407
|
+
Wx::EVT_GRID_RANGE_SELECT,
|
408
|
+
Wx::GridRangeSelectEvent],
|
409
|
+
EventType['evt_grid_cmd_row_size', 1,
|
410
|
+
Wx::EVT_GRID_ROW_SIZE,
|
411
|
+
Wx::GridSizeEvent],
|
412
|
+
EventType['evt_grid_cmd_select_cell', 1,
|
413
|
+
Wx::EVT_GRID_SELECT_CELL,
|
414
|
+
Wx::GridEvent],
|
415
|
+
EventType['evt_grid_col_size', 0,
|
416
|
+
Wx::EVT_GRID_COL_SIZE,
|
417
|
+
Wx::GridSizeEvent],
|
418
|
+
EventType['evt_grid_editor_created', 0,
|
419
|
+
Wx::EVT_GRID_EDITOR_CREATED,
|
420
|
+
Wx::GridEditorCreatedEvent],
|
421
|
+
EventType['evt_grid_editor_hidden', 0,
|
422
|
+
Wx::EVT_GRID_EDITOR_HIDDEN,
|
423
|
+
Wx::GridEvent],
|
424
|
+
EventType['evt_grid_editor_shown', 0,
|
425
|
+
Wx::EVT_GRID_EDITOR_SHOWN,
|
426
|
+
Wx::GridEvent],
|
427
|
+
EventType['evt_grid_label_left_click', 0,
|
428
|
+
Wx::EVT_GRID_LABEL_LEFT_CLICK,
|
429
|
+
Wx::GridEvent],
|
430
|
+
EventType['evt_grid_label_left_dclick', 0,
|
431
|
+
Wx::EVT_GRID_LABEL_LEFT_DCLICK,
|
432
|
+
Wx::GridEvent],
|
433
|
+
EventType['evt_grid_label_right_click', 0,
|
434
|
+
Wx::EVT_GRID_LABEL_RIGHT_CLICK,
|
435
|
+
Wx::GridEvent],
|
436
|
+
EventType['evt_grid_label_right_dclick', 0,
|
437
|
+
Wx::EVT_GRID_LABEL_RIGHT_DCLICK,
|
438
|
+
Wx::GridEvent],
|
439
|
+
EventType['evt_grid_range_select', 0,
|
440
|
+
Wx::EVT_GRID_RANGE_SELECT,
|
441
|
+
Wx::GridRangeSelectEvent],
|
442
|
+
EventType['evt_grid_row_size', 0,
|
443
|
+
Wx::EVT_GRID_ROW_SIZE,
|
444
|
+
Wx::GridSizeEvent],
|
445
|
+
EventType['evt_grid_select_cell', 0,
|
446
|
+
Wx::EVT_GRID_SELECT_CELL,
|
447
|
+
Wx::GridEvent],
|
448
|
+
EventType['evt_help', 1,
|
449
|
+
Wx::EVT_HELP,
|
450
|
+
Wx::HelpEvent],
|
451
|
+
EventType['evt_help_range', 2,
|
452
|
+
Wx::EVT_HELP,
|
453
|
+
Wx::HelpEvent],
|
454
|
+
EventType['evt_hibernate', 2,
|
455
|
+
Wx::EVT_HIBERNATE,
|
456
|
+
Wx::ActivateEvent],
|
457
|
+
EventType['evt_html_cell_clicked', 1,
|
458
|
+
Wx::EVT_COMMAND_HTML_CELL_CLICKED,
|
459
|
+
Wx::HtmlCellEvent],
|
460
|
+
EventType['evt_html_cell_hover', 1,
|
461
|
+
Wx::EVT_COMMAND_HTML_CELL_HOVER,
|
462
|
+
Wx::HtmlCellEvent],
|
463
|
+
EventType['evt_html_link_clicked', 1,
|
464
|
+
Wx::EVT_COMMAND_HTML_LINK_CLICKED,
|
465
|
+
Wx::HtmlLinkEvent],
|
466
|
+
EventType['evt_hyperlink', 1,
|
467
|
+
Wx::EVT_COMMAND_HYPERLINK,
|
468
|
+
Wx::HyperlinkEvent],
|
469
|
+
EventType['evt_iconize', 0,
|
470
|
+
Wx::EVT_ICONIZE,
|
471
|
+
Wx::IconizeEvent],
|
472
|
+
EventType['evt_idle', 0,
|
473
|
+
Wx::EVT_IDLE,
|
474
|
+
Wx::IdleEvent],
|
475
|
+
EventType['evt_init_dialog', 0,
|
476
|
+
Wx::EVT_INIT_DIALOG,
|
477
|
+
Wx::Event],
|
478
|
+
EventType['evt_joy_button_down', 0,
|
479
|
+
Wx::EVT_JOY_BUTTON_DOWN,
|
480
|
+
Wx::Event],
|
481
|
+
EventType['evt_joy_button_up', 0,
|
482
|
+
Wx::EVT_JOY_BUTTON_UP,
|
483
|
+
Wx::Event],
|
484
|
+
EventType['evt_joy_move', 0,
|
485
|
+
Wx::EVT_JOY_MOVE,
|
486
|
+
Wx::Event],
|
487
|
+
EventType['evt_joy_zmove', 0,
|
488
|
+
Wx::EVT_JOY_ZMOVE,
|
489
|
+
Wx::Event],
|
490
|
+
EventType['evt_key_down', 0,
|
491
|
+
Wx::EVT_KEY_DOWN,
|
492
|
+
Wx::KeyEvent],
|
493
|
+
EventType['evt_key_up', 0,
|
494
|
+
Wx::EVT_KEY_UP,
|
495
|
+
Wx::KeyEvent],
|
496
|
+
EventType['evt_kill_focus', 0,
|
497
|
+
Wx::EVT_KILL_FOCUS,
|
498
|
+
Wx::FocusEvent],
|
499
|
+
EventType['evt_leave_window', 0,
|
500
|
+
Wx::EVT_LEAVE_WINDOW,
|
501
|
+
Wx::MouseEvent],
|
502
|
+
EventType['evt_left_dclick', 0,
|
503
|
+
Wx::EVT_LEFT_DCLICK,
|
504
|
+
Wx::MouseEvent],
|
505
|
+
EventType['evt_left_down', 0,
|
506
|
+
Wx::EVT_LEFT_DOWN,
|
507
|
+
Wx::MouseEvent],
|
508
|
+
EventType['evt_left_up', 0,
|
509
|
+
Wx::EVT_LEFT_UP,
|
510
|
+
Wx::MouseEvent],
|
511
|
+
EventType['evt_listbook_page_changed', 1,
|
512
|
+
Wx::EVT_COMMAND_LISTBOOK_PAGE_CHANGED,
|
513
|
+
Wx::ListbookEvent],
|
514
|
+
EventType['evt_listbook_page_changing', 1,
|
515
|
+
Wx::EVT_COMMAND_LISTBOOK_PAGE_CHANGING,
|
516
|
+
Wx::ListbookEvent],
|
517
|
+
EventType['evt_listbox', 1,
|
518
|
+
Wx::EVT_COMMAND_LISTBOX_SELECTED,
|
519
|
+
Wx::CommandEvent],
|
520
|
+
EventType['evt_listbox_dclick', 1,
|
521
|
+
Wx::EVT_COMMAND_LISTBOX_DOUBLECLICKED,
|
522
|
+
Wx::CommandEvent],
|
523
|
+
EventType['evt_list_begin_drag', 1,
|
524
|
+
Wx::EVT_COMMAND_LIST_BEGIN_DRAG,
|
525
|
+
Wx::ListEvent],
|
526
|
+
EventType['evt_list_begin_label_edit', 1,
|
527
|
+
Wx::EVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
|
528
|
+
Wx::ListEvent],
|
529
|
+
EventType['evt_list_begin_rdrag', 1,
|
530
|
+
Wx::EVT_COMMAND_LIST_BEGIN_RDRAG,
|
531
|
+
Wx::ListEvent],
|
532
|
+
EventType['evt_list_cache_hint', 1,
|
533
|
+
Wx::EVT_COMMAND_LIST_CACHE_HINT,
|
534
|
+
Wx::ListEvent],
|
535
|
+
EventType['evt_list_col_begin_drag', 1,
|
536
|
+
Wx::EVT_COMMAND_LIST_COL_BEGIN_DRAG,
|
537
|
+
Wx::ListEvent],
|
538
|
+
EventType['evt_list_col_click', 1,
|
539
|
+
Wx::EVT_COMMAND_LIST_COL_CLICK,
|
540
|
+
Wx::ListEvent],
|
541
|
+
EventType['evt_list_col_dragging', 1,
|
542
|
+
Wx::EVT_COMMAND_LIST_COL_DRAGGING,
|
543
|
+
Wx::ListEvent],
|
544
|
+
EventType['evt_list_col_end_drag', 1,
|
545
|
+
Wx::EVT_COMMAND_LIST_COL_END_DRAG,
|
546
|
+
Wx::ListEvent],
|
547
|
+
EventType['evt_list_col_right_click', 1,
|
548
|
+
Wx::EVT_COMMAND_LIST_COL_RIGHT_CLICK,
|
549
|
+
Wx::ListEvent],
|
550
|
+
EventType['evt_list_delete_all_items', 1,
|
551
|
+
Wx::EVT_COMMAND_LIST_DELETE_ALL_ITEMS,
|
552
|
+
Wx::ListEvent],
|
553
|
+
EventType['evt_list_delete_item', 1,
|
554
|
+
Wx::EVT_COMMAND_LIST_DELETE_ITEM,
|
555
|
+
Wx::ListEvent],
|
556
|
+
EventType['evt_list_end_label_edit', 1,
|
557
|
+
Wx::EVT_COMMAND_LIST_END_LABEL_EDIT,
|
558
|
+
Wx::ListEvent],
|
559
|
+
EventType['evt_list_insert_item', 1,
|
560
|
+
Wx::EVT_COMMAND_LIST_INSERT_ITEM,
|
561
|
+
Wx::ListEvent],
|
562
|
+
EventType['evt_list_item_activated', 1,
|
563
|
+
Wx::EVT_COMMAND_LIST_ITEM_ACTIVATED,
|
564
|
+
Wx::ListEvent],
|
565
|
+
EventType['evt_list_item_deselected', 1,
|
566
|
+
Wx::EVT_COMMAND_LIST_ITEM_DESELECTED,
|
567
|
+
Wx::ListEvent],
|
568
|
+
EventType['evt_list_item_focused', 1,
|
569
|
+
Wx::EVT_COMMAND_LIST_ITEM_FOCUSED,
|
570
|
+
Wx::ListEvent],
|
571
|
+
EventType['evt_list_item_middle_click', 1,
|
572
|
+
Wx::EVT_COMMAND_LIST_ITEM_MIDDLE_CLICK,
|
573
|
+
Wx::ListEvent],
|
574
|
+
EventType['evt_list_item_right_click', 1,
|
575
|
+
Wx::EVT_COMMAND_LIST_ITEM_RIGHT_CLICK,
|
576
|
+
Wx::ListEvent],
|
577
|
+
EventType['evt_list_item_selected', 1,
|
578
|
+
Wx::EVT_COMMAND_LIST_ITEM_SELECTED,
|
579
|
+
Wx::ListEvent],
|
580
|
+
EventType['evt_list_key_down', 1,
|
581
|
+
Wx::EVT_COMMAND_LIST_KEY_DOWN,
|
582
|
+
Wx::ListEvent],
|
583
|
+
EventType['evt_maximize', 0,
|
584
|
+
Wx::EVT_MAXIMIZE,
|
585
|
+
Wx::Event],
|
586
|
+
EventType['evt_menu', 1,
|
587
|
+
Wx::EVT_COMMAND_MENU_SELECTED,
|
588
|
+
Wx::CommandEvent],
|
589
|
+
EventType['evt_menu_close', 0,
|
590
|
+
Wx::EVT_MENU_CLOSE,
|
591
|
+
Wx::MenuEvent],
|
592
|
+
EventType['evt_menu_highlight', 1,
|
593
|
+
Wx::EVT_MENU_HIGHLIGHT,
|
594
|
+
Wx::MenuEvent],
|
595
|
+
EventType['evt_menu_highlight_all', 0,
|
596
|
+
Wx::EVT_MENU_HIGHLIGHT,
|
597
|
+
Wx::MenuEvent],
|
598
|
+
EventType['evt_menu_open', 0,
|
599
|
+
Wx::EVT_MENU_OPEN,
|
600
|
+
Wx::MenuEvent],
|
601
|
+
EventType['evt_menu_range', 2,
|
602
|
+
Wx::EVT_COMMAND_MENU_SELECTED,
|
603
|
+
Wx::CommandEvent],
|
604
|
+
EventType['evt_middle_dclick', 0,
|
605
|
+
Wx::EVT_MIDDLE_DCLICK,
|
606
|
+
Wx::MouseEvent],
|
607
|
+
EventType['evt_middle_down', 0,
|
608
|
+
Wx::EVT_MIDDLE_DOWN,
|
609
|
+
Wx::MouseEvent],
|
610
|
+
EventType['evt_middle_up', 0,
|
611
|
+
Wx::EVT_MIDDLE_UP,
|
612
|
+
Wx::MouseEvent],
|
613
|
+
EventType['evt_motion', 0,
|
614
|
+
Wx::EVT_MOTION,
|
615
|
+
Wx::MouseEvent],
|
616
|
+
EventType['evt_mousewheel', 0,
|
617
|
+
Wx::EVT_MOUSEWHEEL,
|
618
|
+
Wx::MouseEvent],
|
619
|
+
EventType['evt_mouse_capture_changed', 0,
|
620
|
+
Wx::EVT_MOUSE_CAPTURE_CHANGED,
|
621
|
+
Wx::Event],
|
622
|
+
EventType['evt_move', 0,
|
623
|
+
Wx::EVT_MOVE,
|
624
|
+
Wx::MoveEvent],
|
625
|
+
EventType['evt_moving', 0,
|
626
|
+
Wx::EVT_MOVING,
|
627
|
+
Wx::MoveEvent],
|
628
|
+
EventType['evt_nc_paint', 0,
|
629
|
+
Wx::EVT_NC_PAINT,
|
630
|
+
Wx::Event],
|
631
|
+
EventType['evt_notebook_page_changed', 1,
|
632
|
+
Wx::EVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
|
633
|
+
Wx::NotebookEvent],
|
634
|
+
EventType['evt_notebook_page_changing', 1,
|
635
|
+
Wx::EVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
|
636
|
+
Wx::NotebookEvent],
|
637
|
+
EventType['evt_paint', 0,
|
638
|
+
Wx::EVT_PAINT,
|
639
|
+
Wx::PaintEvent],
|
640
|
+
EventType['evt_query_end_session', 0,
|
641
|
+
Wx::EVT_QUERY_END_SESSION,
|
642
|
+
Wx::Event],
|
643
|
+
EventType['evt_query_layout_info', 0,
|
644
|
+
Wx::EVT_QUERY_LAYOUT_INFO,
|
645
|
+
Wx::QueryLayoutInfoEvent],
|
646
|
+
EventType['evt_radiobox', 1,
|
647
|
+
Wx::EVT_COMMAND_RADIOBOX_SELECTED,
|
648
|
+
Wx::CommandEvent],
|
649
|
+
EventType['evt_radiobutton', 1,
|
650
|
+
Wx::EVT_COMMAND_RADIOBUTTON_SELECTED,
|
651
|
+
Wx::CommandEvent],
|
652
|
+
EventType['evt_right_dclick', 0,
|
653
|
+
Wx::EVT_RIGHT_DCLICK,
|
654
|
+
Wx::MouseEvent],
|
655
|
+
EventType['evt_right_down', 0,
|
656
|
+
Wx::EVT_RIGHT_DOWN,
|
657
|
+
Wx::MouseEvent],
|
658
|
+
EventType['evt_right_up', 0,
|
659
|
+
Wx::EVT_RIGHT_UP,
|
660
|
+
Wx::MouseEvent],
|
661
|
+
EventType['evt_sash_dragged', 1,
|
662
|
+
Wx::EVT_SASH_DRAGGED,
|
663
|
+
Wx::SashEvent],
|
664
|
+
EventType['evt_sash_dragged_range', 2,
|
665
|
+
Wx::EVT_SASH_DRAGGED,
|
666
|
+
Wx::SashEvent],
|
667
|
+
EventType['evt_scrollbar', 1,
|
668
|
+
Wx::EVT_COMMAND_SCROLLBAR_UPDATED,
|
669
|
+
Wx::CommandEvent],
|
670
|
+
EventType['evt_scrollwin_bottom', 0,
|
671
|
+
Wx::EVT_SCROLLWIN_TOP,
|
672
|
+
Wx::ScrollWinEvent],
|
673
|
+
EventType['evt_scrollwin_linedown', 0,
|
674
|
+
Wx::EVT_SCROLLWIN_LINEDOWN,
|
675
|
+
Wx::ScrollWinEvent],
|
676
|
+
EventType['evt_scrollwin_lineup', 0,
|
677
|
+
Wx::EVT_SCROLLWIN_LINEUP,
|
678
|
+
Wx::ScrollWinEvent],
|
679
|
+
EventType['evt_scrollwin_pagedown', 0,
|
680
|
+
Wx::EVT_SCROLLWIN_PAGEDOWN,
|
681
|
+
Wx::ScrollWinEvent],
|
682
|
+
EventType['evt_scrollwin_pageup', 0,
|
683
|
+
Wx::EVT_SCROLLWIN_PAGEUP,
|
684
|
+
Wx::ScrollWinEvent],
|
685
|
+
EventType['evt_scrollwin_thumbrelease', 0,
|
686
|
+
Wx::EVT_SCROLLWIN_THUMBRELEASE,
|
687
|
+
Wx::ScrollWinEvent],
|
688
|
+
EventType['evt_scrollwin_thumbtrack', 0,
|
689
|
+
Wx::EVT_SCROLLWIN_THUMBTRACK,
|
690
|
+
Wx::ScrollWinEvent],
|
691
|
+
EventType['evt_scrollwin_top', 0,
|
692
|
+
Wx::EVT_SCROLLWIN_TOP,
|
693
|
+
Wx::ScrollWinEvent],
|
694
|
+
EventType['evt_scroll_bottom', 0,
|
695
|
+
Wx::EVT_SCROLL_BOTTOM,
|
696
|
+
Wx::ScrollEvent],
|
697
|
+
EventType['evt_scroll_linedown', 0,
|
698
|
+
Wx::EVT_SCROLL_LINEDOWN,
|
699
|
+
Wx::ScrollEvent],
|
700
|
+
EventType['evt_scroll_lineup', 0,
|
701
|
+
Wx::EVT_SCROLL_LINEUP,
|
702
|
+
Wx::ScrollEvent],
|
703
|
+
EventType['evt_scroll_pagedown', 0,
|
704
|
+
Wx::EVT_SCROLL_PAGEDOWN,
|
705
|
+
Wx::ScrollEvent],
|
706
|
+
EventType['evt_scroll_pageup', 0,
|
707
|
+
Wx::EVT_SCROLL_PAGEUP,
|
708
|
+
Wx::ScrollEvent],
|
709
|
+
EventType['evt_scroll_thumbrelease', 0,
|
710
|
+
Wx::EVT_SCROLL_THUMBRELEASE,
|
711
|
+
Wx::ScrollEvent],
|
712
|
+
EventType['evt_scroll_thumbtrack', 0,
|
713
|
+
Wx::EVT_SCROLL_THUMBTRACK,
|
714
|
+
Wx::ScrollEvent],
|
715
|
+
EventType['evt_scroll_top', 0,
|
716
|
+
Wx::EVT_SCROLL_TOP,
|
717
|
+
Wx::ScrollEvent],
|
718
|
+
EventType['evt_searchctrl_cancel_btn', 1,
|
719
|
+
Wx::EVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
|
720
|
+
Wx::CommandEvent],
|
721
|
+
EventType['evt_searchctrl_search_btn', 1,
|
722
|
+
Wx::EVT_COMMAND_SEARCHCTRL_SEARCH_BTN,
|
723
|
+
Wx::CommandEvent],
|
724
|
+
EventType['evt_set_cursor', 0,
|
725
|
+
Wx::EVT_SET_CURSOR,
|
726
|
+
Wx::SetCursorEvent],
|
727
|
+
EventType['evt_set_focus', 0,
|
728
|
+
Wx::EVT_SET_FOCUS,
|
729
|
+
Wx::FocusEvent],
|
730
|
+
EventType['evt_show', 1,
|
731
|
+
Wx::EVT_SHOW,
|
732
|
+
Wx::ShowEvent],
|
733
|
+
EventType['evt_size', 0,
|
734
|
+
Wx::EVT_SIZE,
|
735
|
+
Wx::SizeEvent],
|
736
|
+
EventType['evt_sizing', 0,
|
737
|
+
Wx::EVT_SIZING,
|
738
|
+
Wx::SizeEvent],
|
739
|
+
EventType['evt_slider', 1,
|
740
|
+
Wx::EVT_COMMAND_SLIDER_UPDATED,
|
741
|
+
Wx::CommandEvent],
|
742
|
+
EventType['evt_socket', 1,
|
743
|
+
Wx::EVT_SOCKET,
|
744
|
+
Wx::Event],
|
745
|
+
EventType['evt_spin', 1,
|
746
|
+
Wx::EVT_SCROLL_THUMBTRACK,
|
747
|
+
Wx::ScrollEvent],
|
748
|
+
EventType['evt_spinctrl', 1,
|
749
|
+
Wx::EVT_COMMAND_SPINCTRL_UPDATED,
|
750
|
+
Wx::SpinEvent],
|
751
|
+
EventType['evt_spin_down', 1,
|
752
|
+
Wx::EVT_SCROLL_LINEDOWN,
|
753
|
+
Wx::ScrollEvent],
|
754
|
+
EventType['evt_spin_up', 1,
|
755
|
+
Wx::EVT_SCROLL_LINEUP,
|
756
|
+
Wx::ScrollEvent],
|
757
|
+
EventType['evt_splitter_dclick', 1,
|
758
|
+
Wx::EVT_COMMAND_SPLITTER_DOUBLECLICKED,
|
759
|
+
Wx::SplitterEvent],
|
760
|
+
EventType['evt_splitter_sash_pos_changed', 1,
|
761
|
+
Wx::EVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
|
762
|
+
Wx::SplitterEvent],
|
763
|
+
EventType['evt_splitter_sash_pos_changing', 1,
|
764
|
+
Wx::EVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
|
765
|
+
Wx::SplitterEvent],
|
766
|
+
EventType['evt_splitter_unsplit', 1,
|
767
|
+
Wx::EVT_COMMAND_SPLITTER_UNSPLIT,
|
768
|
+
Wx::SplitterEvent],
|
769
|
+
EventType['evt_sys_colour_changed', 0,
|
770
|
+
Wx::EVT_SYS_COLOUR_CHANGED,
|
771
|
+
Wx::Event],
|
772
|
+
EventType['evt_taskbar_left_dclick', 0,
|
773
|
+
Wx::EVT_TASKBAR_LEFT_DCLICK,
|
774
|
+
Wx::Event],
|
775
|
+
EventType['evt_taskbar_left_down', 0,
|
776
|
+
Wx::EVT_TASKBAR_LEFT_DOWN,
|
777
|
+
Wx::Event],
|
778
|
+
EventType['evt_taskbar_left_up', 0,
|
779
|
+
Wx::EVT_TASKBAR_LEFT_UP,
|
780
|
+
Wx::Event],
|
781
|
+
EventType['evt_taskbar_move', 0,
|
782
|
+
Wx::EVT_TASKBAR_MOVE,
|
783
|
+
Wx::Event],
|
784
|
+
EventType['evt_taskbar_right_dclick', 0,
|
785
|
+
Wx::EVT_TASKBAR_RIGHT_DCLICK,
|
786
|
+
Wx::Event],
|
787
|
+
EventType['evt_taskbar_right_down', 0,
|
788
|
+
Wx::EVT_TASKBAR_RIGHT_DOWN,
|
789
|
+
Wx::Event],
|
790
|
+
EventType['evt_taskbar_right_up', 0,
|
791
|
+
Wx::EVT_TASKBAR_RIGHT_UP,
|
792
|
+
Wx::Event],
|
793
|
+
EventType['evt_text', 1,
|
794
|
+
Wx::EVT_COMMAND_TEXT_UPDATED,
|
795
|
+
Wx::CommandEvent],
|
796
|
+
EventType['evt_text_copy', 1,
|
797
|
+
Wx::EVT_COMMAND_TEXT_COPY,
|
798
|
+
Wx::ClipboardTextEvent],
|
799
|
+
EventType['evt_text_cut', 1,
|
800
|
+
Wx::EVT_COMMAND_TEXT_CUT,
|
801
|
+
Wx::ClipboardTextEvent],
|
802
|
+
EventType['evt_text_enter', 1,
|
803
|
+
Wx::EVT_COMMAND_TEXT_ENTER,
|
804
|
+
Wx::CommandEvent],
|
805
|
+
EventType['evt_text_maxlen', 1,
|
806
|
+
Wx::EVT_COMMAND_TEXT_MAXLEN,
|
807
|
+
Wx::CommandEvent],
|
808
|
+
EventType['evt_text_paste', 1,
|
809
|
+
Wx::EVT_COMMAND_TEXT_PASTE,
|
810
|
+
Wx::ClipboardTextEvent],
|
811
|
+
EventType['evt_text_url', 1,
|
812
|
+
Wx::EVT_COMMAND_TEXT_URL,
|
813
|
+
Wx::TextUrlEvent],
|
814
|
+
EventType['evt_timer', 1,
|
815
|
+
Wx::EVT_TIMER,
|
816
|
+
Wx::TimerEvent],
|
817
|
+
EventType['evt_togglebutton', 1,
|
818
|
+
Wx::EVT_COMMAND_TOGGLEBUTTON_CLICKED,
|
819
|
+
Wx::Event],
|
820
|
+
EventType['evt_tool', 1,
|
821
|
+
Wx::EVT_COMMAND_TOOL_CLICKED,
|
822
|
+
Wx::CommandEvent],
|
823
|
+
EventType['evt_tool_enter', 1,
|
824
|
+
Wx::EVT_COMMAND_TOOL_ENTER,
|
825
|
+
Wx::CommandEvent],
|
826
|
+
EventType['evt_tool_range', 2,
|
827
|
+
Wx::EVT_COMMAND_TOOL_CLICKED,
|
828
|
+
Wx::CommandEvent],
|
829
|
+
EventType['evt_tool_rclicked', 1,
|
830
|
+
Wx::EVT_COMMAND_TOOL_RCLICKED,
|
831
|
+
Wx::CommandEvent],
|
832
|
+
EventType['evt_tool_rclicked_range', 2,
|
833
|
+
Wx::EVT_COMMAND_TOOL_RCLICKED,
|
834
|
+
Wx::CommandEvent],
|
835
|
+
EventType['evt_tree_begin_drag', 1,
|
836
|
+
Wx::EVT_COMMAND_TREE_BEGIN_DRAG,
|
837
|
+
Wx::TreeEvent],
|
838
|
+
EventType['evt_tree_begin_label_edit', 1,
|
839
|
+
Wx::EVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
|
840
|
+
Wx::TreeEvent],
|
841
|
+
EventType['evt_tree_begin_rdrag', 1,
|
842
|
+
Wx::EVT_COMMAND_TREE_BEGIN_RDRAG,
|
843
|
+
Wx::TreeEvent],
|
844
|
+
EventType['evt_tree_delete_item', 1,
|
845
|
+
Wx::EVT_COMMAND_TREE_DELETE_ITEM,
|
846
|
+
Wx::TreeEvent],
|
847
|
+
EventType['evt_tree_end_drag', 1,
|
848
|
+
Wx::EVT_COMMAND_TREE_END_DRAG,
|
849
|
+
Wx::TreeEvent],
|
850
|
+
EventType['evt_tree_end_label_edit', 1,
|
851
|
+
Wx::EVT_COMMAND_TREE_END_LABEL_EDIT,
|
852
|
+
Wx::TreeEvent],
|
853
|
+
EventType['evt_tree_get_info', 1,
|
854
|
+
Wx::EVT_COMMAND_TREE_GET_INFO,
|
855
|
+
Wx::TreeEvent],
|
856
|
+
EventType['evt_tree_item_activated', 1,
|
857
|
+
Wx::EVT_COMMAND_TREE_ITEM_ACTIVATED,
|
858
|
+
Wx::TreeEvent],
|
859
|
+
EventType['evt_tree_item_collapsed', 1,
|
860
|
+
Wx::EVT_COMMAND_TREE_ITEM_COLLAPSED,
|
861
|
+
Wx::TreeEvent],
|
862
|
+
EventType['evt_tree_item_collapsing', 1,
|
863
|
+
Wx::EVT_COMMAND_TREE_ITEM_COLLAPSING,
|
864
|
+
Wx::TreeEvent],
|
865
|
+
EventType['evt_tree_item_expanded', 1,
|
866
|
+
Wx::EVT_COMMAND_TREE_ITEM_EXPANDED,
|
867
|
+
Wx::TreeEvent],
|
868
|
+
EventType['evt_tree_item_expanding', 1,
|
869
|
+
Wx::EVT_COMMAND_TREE_ITEM_EXPANDING,
|
870
|
+
Wx::TreeEvent],
|
871
|
+
EventType['evt_tree_item_gettooltip', 1,
|
872
|
+
Wx::EVT_COMMAND_TREE_ITEM_GETTOOLTIP,
|
873
|
+
Wx::TreeEvent],
|
874
|
+
EventType['evt_tree_item_menu', 1,
|
875
|
+
Wx::EVT_COMMAND_TREE_ITEM_MENU,
|
876
|
+
Wx::TreeEvent],
|
877
|
+
EventType['evt_tree_item_middle_click', 1,
|
878
|
+
Wx::EVT_COMMAND_TREE_ITEM_MIDDLE_CLICK,
|
879
|
+
Wx::TreeEvent],
|
880
|
+
EventType['evt_tree_item_right_click', 1,
|
881
|
+
Wx::EVT_COMMAND_TREE_ITEM_RIGHT_CLICK,
|
882
|
+
Wx::TreeEvent],
|
883
|
+
EventType['evt_tree_key_down', 1,
|
884
|
+
Wx::EVT_COMMAND_TREE_KEY_DOWN,
|
885
|
+
Wx::TreeEvent],
|
886
|
+
EventType['evt_tree_sel_changed', 1,
|
887
|
+
Wx::EVT_COMMAND_TREE_SEL_CHANGED,
|
888
|
+
Wx::TreeEvent],
|
889
|
+
EventType['evt_tree_sel_changing', 1,
|
890
|
+
Wx::EVT_COMMAND_TREE_SEL_CHANGING,
|
891
|
+
Wx::TreeEvent],
|
892
|
+
EventType['evt_tree_set_info', 1,
|
893
|
+
Wx::EVT_COMMAND_TREE_SET_INFO,
|
894
|
+
Wx::TreeEvent],
|
895
|
+
EventType['evt_tree_state_image_click', 1,
|
896
|
+
Wx::EVT_COMMAND_TREE_STATE_IMAGE_CLICK,
|
897
|
+
Wx::TreeEvent],
|
898
|
+
EventType['evt_update_ui', 1,
|
899
|
+
Wx::EVT_UPDATE_UI,
|
900
|
+
Wx::UpdateUIEvent],
|
901
|
+
EventType['evt_update_ui_range', 2,
|
902
|
+
Wx::EVT_UPDATE_UI,
|
903
|
+
Wx::UpdateUIEvent],
|
904
|
+
EventType['evt_window_create', 0,
|
905
|
+
Wx::EVT_CREATE,
|
906
|
+
Wx::WindowCreateEvent],
|
907
|
+
EventType['evt_window_destroy', 0,
|
908
|
+
Wx::EVT_DESTROY,
|
909
|
+
Wx::WindowDestroyEvent],
|
910
|
+
EventType['evt_wizard_cancel', 1,
|
911
|
+
Wx::EVT_WIZARD_CANCEL,
|
912
|
+
Wx::WizardEvent],
|
913
|
+
EventType['evt_wizard_finished', 1,
|
914
|
+
Wx::EVT_WIZARD_FINISHED,
|
915
|
+
Wx::WizardEvent],
|
916
|
+
EventType['evt_wizard_help', 1,
|
917
|
+
Wx::EVT_WIZARD_HELP,
|
918
|
+
Wx::WizardEvent],
|
919
|
+
EventType['evt_wizard_page_changed', 1,
|
920
|
+
Wx::EVT_WIZARD_PAGE_CHANGED,
|
921
|
+
Wx::WizardEvent],
|
922
|
+
EventType['evt_wizard_page_changing', 1,
|
923
|
+
Wx::EVT_WIZARD_PAGE_CHANGING,
|
924
|
+
Wx::WizardEvent]
|
925
|
+
]
|
926
|
+
|
927
|
+
# Loop over the event definitions to set up two things:
|
928
|
+
# 1) A hash mapping Event Type ids to event classes, used when events
|
929
|
+
# are fired to quickly look up the right type to yield
|
930
|
+
# 2) EvtHandler instance methods like evt_xxx to conveniently set
|
931
|
+
# up event handlers
|
932
|
+
EVENT_DEFINITIONS.each { | ev_type | register_event_type(ev_type) }
|
933
|
+
|
934
|
+
|
935
|
+
# convenience evt_handler to listen to all mouse events
|
936
|
+
def evt_mouse_events(&block)
|
937
|
+
evt_left_down(&block)
|
938
|
+
evt_left_up(&block)
|
939
|
+
evt_middle_down(&block)
|
940
|
+
evt_middle_up(&block)
|
941
|
+
evt_right_down(&block)
|
942
|
+
evt_right_up(&block)
|
943
|
+
evt_motion(&block)
|
944
|
+
evt_left_dclick(&block)
|
945
|
+
evt_middle_dclick(&block)
|
946
|
+
evt_right_dclick(&block)
|
947
|
+
evt_leave_window(&block)
|
948
|
+
evt_enter_window(&block)
|
949
|
+
evt_mousewheel(&block)
|
950
|
+
end
|
951
|
+
|
952
|
+
# convenience evt handler to listen to all scrollwin events
|
953
|
+
def evt_scrollwin(&block)
|
954
|
+
evt_scrollwin_top(&block)
|
955
|
+
evt_scrollwin_bottom(&block)
|
956
|
+
evt_scrollwin_lineup(&block)
|
957
|
+
evt_scrollwin_linedown(&block)
|
958
|
+
evt_scrollwin_pageup(&block)
|
959
|
+
evt_scrollwin_pagedown(&block)
|
960
|
+
evt_scrollwin_thumbtrack(&block)
|
961
|
+
evt_scrollwin_thumbrelease(&block)
|
962
|
+
end
|
963
|
+
end
|
964
|
+
|