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