wxruby3 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/INSTALL.md +27 -2
- data/README.md +15 -15
- data/ext/wxruby3/include/wxRubyApp.h +145 -46
- data/ext/wxruby3/include/wxruby-ComboPopup.h +25 -8
- data/ext/wxruby3/include/wxruby-GCTracking.h +262 -0
- data/ext/wxruby3/include/wxruby-MBConv.h +190 -0
- data/ext/wxruby3/include/wxruby-SharedEventHandler.h +183 -0
- data/ext/wxruby3/include/wxruby-SharedPtr.h +104 -0
- data/ext/wxruby3/include/wxruby-runtime.h +29 -0
- data/ext/wxruby3/swig/custom/rubytracking.swg +8 -22
- data/ext/wxruby3/swig/custom/wx_ruby_shared_ptr.i +434 -0
- data/ext/wxruby3/swig/custom/wx_shared_ptr.i +431 -0
- data/ext/wxruby3/swig/mark_free_impl.i +7 -132
- data/ext/wxruby3/swig/memory_management.i +8 -44
- data/ext/wxruby3/swig/wx.i +46 -73
- data/lib/wx/core/const.rb +0 -1
- data/lib/wx/core/context_help.rb +17 -0
- data/lib/wx/core/cursor.rb +1 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +10 -2
- data/lib/wx/core/mbconv.rb +11 -0
- data/lib/wx/core/media_ctrl.rb +31 -0
- data/lib/wx/core/top_level_window.rb +7 -0
- data/lib/wx/core.rb +6 -0
- data/lib/wx/doc/art_provider.rb +17 -0
- data/lib/wx/doc/context_help.rb +42 -0
- data/lib/wx/doc/core.rb +0 -5
- data/lib/wx/doc/functions.rb +10 -0
- data/lib/wx/doc/gen/affine_matrix2d.rb +2 -0
- data/lib/wx/doc/gen/art_provider.rb +12 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +15 -15
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +8 -8
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/book_ctrl_base.rb +2 -1
- data/lib/wx/doc/gen/calendar_event.rb +5 -5
- data/lib/wx/doc/gen/choicebook.rb +2 -2
- data/lib/wx/doc/gen/collapsible_pane.rb +1 -1
- data/lib/wx/doc/gen/colour_dialog.rb +1 -1
- data/lib/wx/doc/gen/colour_picker_event.rb +3 -3
- data/lib/wx/doc/gen/context_help_button.rb +0 -53
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/credential_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/dial_up_event.rb +2 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/event.rb +58 -58
- data/lib/wx/doc/gen/ext_help_controller.rb +62 -16
- data/lib/wx/doc/gen/file_ctrl.rb +4 -4
- data/lib/wx/doc/gen/file_dir_picker_event.rb +2 -2
- data/lib/wx/doc/gen/file_system.rb +1 -1
- data/lib/wx/doc/gen/find_dialog_event.rb +5 -5
- data/lib/wx/doc/gen/font_picker_event.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +67 -32
- data/lib/wx/doc/gen/header_ctrl_event.rb +13 -13
- data/lib/wx/doc/gen/help_controller.rb +45 -2
- data/lib/wx/doc/gen/html/html_help_controller.rb +74 -32
- data/lib/wx/doc/gen/html/html_help_window.rb +3 -3
- data/lib/wx/doc/gen/html/html_window.rb +4 -4
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +1 -1
- data/lib/wx/doc/gen/list_ctrl.rb +22 -22
- data/lib/wx/doc/gen/listbook.rb +2 -2
- data/lib/wx/doc/gen/mb_conv.rb +10 -0
- data/lib/wx/doc/gen/media_event.rb +6 -6
- data/lib/wx/doc/gen/notebook.rb +2 -2
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +14 -14
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -9
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +3 -3
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -2
- data/lib/wx/doc/gen/rt/event_list.rb +17 -0
- data/lib/wx/doc/gen/rt/shared_evt_handler.rb +14 -0
- data/lib/wx/doc/gen/rt/thread_event.rb +71 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
- data/lib/wx/doc/gen/sash_event.rb +2 -2
- data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
- data/lib/wx/doc/gen/search_ctrl.rb +2 -2
- data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
- data/lib/wx/doc/gen/splitter_window.rb +6 -6
- data/lib/wx/doc/gen/stc/styled_text_event.rb +34 -34
- data/lib/wx/doc/gen/task_bar_icon_event.rb +10 -10
- data/lib/wx/doc/gen/text_ctrl.rb +4 -4
- data/lib/wx/doc/gen/toggle_button.rb +1 -1
- data/lib/wx/doc/gen/toolbook.rb +2 -2
- data/lib/wx/doc/gen/top_level_window.rb +19 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +21 -21
- data/lib/wx/doc/gen/treebook.rb +4 -4
- data/lib/wx/doc/gen/utils.rb +2 -2
- data/lib/wx/doc/gen/web/event_list.rb +95 -0
- data/lib/wx/doc/gen/web/web_view.rb +1136 -0
- data/lib/wx/doc/gen/web/web_view_event.rb +210 -0
- data/lib/wx/doc/gen/web/web_view_handler.rb +318 -0
- data/lib/wx/doc/gen/window.rb +1 -1
- data/lib/wx/doc/gen/wizard_event.rb +7 -7
- data/lib/wx/doc/html/html_help_controller.rb +23 -1
- data/lib/wx/doc/mbconv.rb +108 -0
- data/lib/wx/doc/rt/shared_event_handler.rb +49 -0
- data/lib/wx/doc/rt/thread_event.rb +28 -0
- data/lib/wx/doc/webview.rb +40 -0
- data/lib/wx/helpers.rb +1 -1
- data/lib/wx/html/htmlhelpcontroller.rb +10 -0
- data/lib/wx/keyword_defs.rb +11 -0
- data/lib/wx/rt/events/evt_list.rb +8 -0
- data/lib/wx/rt/require.rb +8 -0
- data/lib/wx/rt/thread_event.rb +14 -0
- data/lib/wx/rt.rb +16 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wx/web/events/evt_list.rb +74 -0
- data/lib/wx/web/require.rb +8 -0
- data/lib/wx/web/webview.rb +106 -0
- data/lib/wx/web.rb +17 -0
- data/lib/wx/wxruby/cmd/setup.rb +15 -0
- data/lib/wx.rb +2 -0
- data/rakelib/configure.rb +24 -0
- data/rakelib/gem.rb +3 -2
- data/rakelib/install.rb +54 -27
- data/rakelib/lib/config/macosx.rb +7 -5
- data/rakelib/lib/config/mingw.rb +66 -5
- data/rakelib/lib/config/pkgman/mingw.rb +1 -1
- data/rakelib/lib/config/unixish.rb +4 -2
- data/rakelib/lib/config.rb +37 -3
- data/rakelib/lib/core/include/client_data.inc +38 -17
- data/rakelib/lib/core/include/funcall.inc +1 -1
- data/rakelib/lib/core/include/swigdirector.inc +3 -3
- data/rakelib/lib/core/include/swigrubyrun.inc +14 -26
- data/rakelib/lib/core/package.rb +0 -2
- data/rakelib/lib/director/app.rb +1 -8
- data/rakelib/lib/director/art_provider.rb +7 -3
- data/rakelib/lib/director/comboctrl.rb +0 -7
- data/rakelib/lib/director/context_help_button.rb +35 -2
- data/rakelib/lib/director/event_handler.rb +32 -28
- data/rakelib/lib/director/fs_file.rb +15 -10
- data/rakelib/lib/director/functions.rb +8 -0
- data/rakelib/lib/director/grid_cell_attr.rb +1 -3
- data/rakelib/lib/director/grid_cell_editor.rb +14 -12
- data/rakelib/lib/director/grid_cell_renderer.rb +11 -8
- data/rakelib/lib/director/grid_ctrl.rb +140 -121
- data/rakelib/lib/director/help_controller.rb +70 -2
- data/rakelib/lib/director/mb_conv.rb +30 -0
- data/rakelib/lib/director/menu.rb +92 -42
- data/rakelib/lib/director/menu_bar.rb +84 -45
- data/rakelib/lib/director/menu_item.rb +2 -2
- data/rakelib/lib/director/persistence_manager.rb +3 -2
- data/rakelib/lib/director/preview_frame.rb +2 -2
- data/rakelib/lib/director/richtext_buffer.rb +5 -2
- data/rakelib/lib/director/shared_evt_handler.rb +30 -0
- data/rakelib/lib/director/sizer.rb +8 -17
- data/rakelib/lib/director/sizer_item.rb +3 -4
- data/rakelib/lib/director/task_bar_icon.rb +7 -7
- data/rakelib/lib/director/thread_event.rb +33 -0
- data/rakelib/lib/director/validator.rb +3 -1
- data/rakelib/lib/director/variant.rb +16 -12
- data/rakelib/lib/director/webview.rb +166 -0
- data/rakelib/lib/director/webview_event.rb +37 -0
- data/rakelib/lib/director/webview_handler.rb +63 -0
- data/rakelib/lib/generate/doc/thread_event.yaml +20 -0
- data/rakelib/lib/generate/doc/web_view.yaml +135 -0
- data/rakelib/lib/generate/doc/web_view_event.yaml +38 -0
- data/rakelib/lib/generate/doc/web_view_handler.yaml +58 -0
- data/rakelib/lib/specs/interfaces.rb +12 -0
- data/rakelib/lib/typemap/common.rb +34 -1
- data/rakelib/lib/typemap/mb_conv.rb +58 -0
- data/rakelib/prepost.rake +23 -31
- data/rakelib/prepost.rb +20 -0
- data/samples/event/threaded.rb +295 -42
- data/samples/event/tn_threaded.png +0 -0
- data/samples/help/doc/back.gif +0 -0
- data/samples/help/doc/contents.gif +0 -0
- data/samples/help/doc/cshelp.txt +9 -0
- data/samples/help/doc/doc.chm +0 -0
- data/samples/help/doc/doc.cnt +8 -0
- data/samples/help/doc/doc.h +7 -0
- data/samples/help/doc/doc.hhc +40 -0
- data/samples/help/doc/doc.hhk +31 -0
- data/samples/help/doc/doc.hhp +33 -0
- data/samples/help/doc/doc.hpj +21 -0
- data/samples/help/doc/doc.htm +27 -0
- data/samples/help/doc/doc1.htm +24 -0
- data/samples/help/doc/doc2.htm +12 -0
- data/samples/help/doc/doc3.htm +12 -0
- data/samples/help/doc/doc4.htm +12 -0
- data/samples/help/doc/doc5.htm +14 -0
- data/samples/help/doc/forward.gif +0 -0
- data/samples/help/doc/up.gif +0 -0
- data/samples/help/doc.chm +0 -0
- data/samples/help/doc.chw +0 -0
- data/samples/help/doc.zip +0 -0
- data/samples/help/help.rb +352 -0
- data/samples/help/tn_help.png +0 -0
- data/samples/webview/handler_advanced.html +55 -0
- data/samples/webview/tn_webview.png +0 -0
- data/samples/webview/webview.rb +1264 -0
- data/tests/assets/handler_advanced.html +55 -0
- data/tests/assets/test.css +1 -0
- data/tests/assets/test.html +9 -0
- data/tests/assets/test.zip +0 -0
- data/tests/lib/text_entry_tests.rb +2 -2
- data/tests/lib/wxapp_runner.rb +40 -0
- data/tests/lib/wxframe_runner.rb +17 -2
- data/tests/test_art.rb +8 -8
- data/tests/test_clipboard.rb +4 -4
- data/tests/test_config.rb +6 -6
- data/tests/test_exceptions.rb +8 -6
- data/tests/test_ext_controls.rb +3 -3
- data/tests/test_file_dialog.rb +5 -5
- data/tests/test_font.rb +7 -7
- data/tests/test_grid_ctrl.rb +133 -0
- data/tests/test_help.rb +88 -0
- data/tests/test_intl.rb +1 -1
- data/tests/test_media_ctrl.rb +14 -6
- data/tests/test_menu.rb +94 -86
- data/tests/test_persistence.rb +1 -1
- data/tests/test_proof_check.rb +5 -5
- data/tests/test_propgrid.rb +1 -1
- data/tests/test_shared_event_handler.rb +141 -0
- data/tests/test_std_controls.rb +5 -5
- data/tests/test_webview.rb +492 -0
- data/tests/test_window.rb +3 -3
- metadata +78 -2
|
@@ -10,23 +10,23 @@ module Wx
|
|
|
10
10
|
|
|
11
11
|
#
|
|
12
12
|
#
|
|
13
|
-
EVT_AUITOOLBAR_TOOL_DROPDOWN =
|
|
13
|
+
EVT_AUITOOLBAR_TOOL_DROPDOWN = 10370
|
|
14
14
|
|
|
15
15
|
#
|
|
16
16
|
#
|
|
17
|
-
EVT_AUITOOLBAR_OVERFLOW_CLICK =
|
|
17
|
+
EVT_AUITOOLBAR_OVERFLOW_CLICK = 10371
|
|
18
18
|
|
|
19
19
|
#
|
|
20
20
|
#
|
|
21
|
-
EVT_AUITOOLBAR_RIGHT_CLICK =
|
|
21
|
+
EVT_AUITOOLBAR_RIGHT_CLICK = 10372
|
|
22
22
|
|
|
23
23
|
#
|
|
24
24
|
#
|
|
25
|
-
EVT_AUITOOLBAR_MIDDLE_CLICK =
|
|
25
|
+
EVT_AUITOOLBAR_MIDDLE_CLICK = 10373
|
|
26
26
|
|
|
27
27
|
#
|
|
28
28
|
#
|
|
29
|
-
EVT_AUITOOLBAR_BEGIN_DRAG =
|
|
29
|
+
EVT_AUITOOLBAR_BEGIN_DRAG = 10374
|
|
30
30
|
|
|
31
31
|
# {Wx::AUI::AuiToolBarStyle} is part of the {Wx::AUI} class framework, used to define the appearance of a {Wx::AUI::AuiToolBar}.
|
|
32
32
|
#
|
|
@@ -193,8 +193,9 @@ module Wx
|
|
|
193
193
|
# @return [Boolean]
|
|
194
194
|
def insert_page(index, page, text, select=false, imageId=Wx::AUI::AuiNotebook::NO_IMAGE) end
|
|
195
195
|
|
|
196
|
-
# Deletes the specified page, without deleting the associated window.
|
|
196
|
+
# Deletes the specified page, without deleting the associated window The window will be hidden, though, so you may need to call {Wx::BookCtrlBase#show} after e.g.
|
|
197
197
|
#
|
|
198
|
+
# reparenting it.
|
|
198
199
|
# See {Wx::BookCtrlBase#delete_page} for a note about the events generated by this function.
|
|
199
200
|
# @param page [Integer]
|
|
200
201
|
# @return [Boolean]
|
|
@@ -98,23 +98,23 @@ module Wx
|
|
|
98
98
|
|
|
99
99
|
#
|
|
100
100
|
#
|
|
101
|
-
EVT_CALENDAR_SEL_CHANGED =
|
|
101
|
+
EVT_CALENDAR_SEL_CHANGED = 10254
|
|
102
102
|
|
|
103
103
|
#
|
|
104
104
|
#
|
|
105
|
-
EVT_CALENDAR_PAGE_CHANGED =
|
|
105
|
+
EVT_CALENDAR_PAGE_CHANGED = 10255
|
|
106
106
|
|
|
107
107
|
#
|
|
108
108
|
#
|
|
109
|
-
EVT_CALENDAR_DOUBLECLICKED =
|
|
109
|
+
EVT_CALENDAR_DOUBLECLICKED = 10256
|
|
110
110
|
|
|
111
111
|
#
|
|
112
112
|
#
|
|
113
|
-
EVT_CALENDAR_WEEKDAY_CLICKED =
|
|
113
|
+
EVT_CALENDAR_WEEKDAY_CLICKED = 10257
|
|
114
114
|
|
|
115
115
|
#
|
|
116
116
|
#
|
|
117
|
-
EVT_CALENDAR_WEEK_CLICKED =
|
|
117
|
+
EVT_CALENDAR_WEEK_CLICKED = 10258
|
|
118
118
|
|
|
119
119
|
# The {Wx::CalendarEvent} class is used together with {Wx::CalendarCtrl}.
|
|
120
120
|
#
|
|
@@ -26,11 +26,11 @@ module Wx
|
|
|
26
26
|
|
|
27
27
|
#
|
|
28
28
|
#
|
|
29
|
-
EVT_CHOICEBOOK_PAGE_CHANGED =
|
|
29
|
+
EVT_CHOICEBOOK_PAGE_CHANGED = 10235
|
|
30
30
|
|
|
31
31
|
#
|
|
32
32
|
#
|
|
33
|
-
EVT_CHOICEBOOK_PAGE_CHANGING =
|
|
33
|
+
EVT_CHOICEBOOK_PAGE_CHANGING = 10234
|
|
34
34
|
|
|
35
35
|
# {Wx::Choicebook} is a class similar to {Wx::Notebook}, but uses a {Wx::Choice} control to show the labels instead of the tabs.
|
|
36
36
|
#
|
|
@@ -8,7 +8,7 @@ module Wx
|
|
|
8
8
|
|
|
9
9
|
#
|
|
10
10
|
#
|
|
11
|
-
EVT_COLOUR_CHANGED =
|
|
11
|
+
EVT_COLOUR_CHANGED = 10154
|
|
12
12
|
|
|
13
13
|
# Shows the colour selection dialog and returns the colour selected by user or invalid colour (use {Wx::Colour#is_ok} to test whether a colour is valid) if the dialog was cancelled.
|
|
14
14
|
# @param parent [Wx::Window] The parent window for the colour selection dialog.
|
|
@@ -20,15 +20,15 @@ module Wx
|
|
|
20
20
|
|
|
21
21
|
#
|
|
22
22
|
#
|
|
23
|
-
EVT_COLOURPICKER_CHANGED =
|
|
23
|
+
EVT_COLOURPICKER_CHANGED = 10151
|
|
24
24
|
|
|
25
25
|
#
|
|
26
26
|
#
|
|
27
|
-
EVT_COLOURPICKER_CURRENT_CHANGED =
|
|
27
|
+
EVT_COLOURPICKER_CURRENT_CHANGED = 10152
|
|
28
28
|
|
|
29
29
|
#
|
|
30
30
|
#
|
|
31
|
-
EVT_COLOURPICKER_DIALOG_CANCELLED =
|
|
31
|
+
EVT_COLOURPICKER_DIALOG_CANCELLED = 10153
|
|
32
32
|
|
|
33
33
|
# This event class is used for the events generated by {Wx::ColourPickerCtrl}.
|
|
34
34
|
#
|
|
@@ -52,58 +52,5 @@ module Wx
|
|
|
52
52
|
|
|
53
53
|
end # ContextHelpButton
|
|
54
54
|
|
|
55
|
-
# This class changes the cursor to a query and puts the application into a 'context-sensitive help mode'.
|
|
56
|
-
#
|
|
57
|
-
# When the user left-clicks on a window within the specified window, a {Wx::EVT_HELP} event is sent to that control, and the application may respond to it by popping up some help.
|
|
58
|
-
# For example:
|
|
59
|
-
# ```ruby
|
|
60
|
-
# # puts the application into a 'context-sensitive help mode' for my_window
|
|
61
|
-
# context_help = Wx::ContextHelp.new(my_window)
|
|
62
|
-
# ...
|
|
63
|
-
# ...
|
|
64
|
-
# # ends the 'context-sensitive help mode' for my_window
|
|
65
|
-
# context_help.end_context_help
|
|
66
|
-
# ```
|
|
67
|
-
#
|
|
68
|
-
# There are a couple of ways to invoke this behaviour implicitly:
|
|
69
|
-
#
|
|
70
|
-
# - Use the {Wx::DIALOG_EX_CONTEXTHELP} style for a dialog (Windows only). This will put a question mark in the titlebar, and Windows will put the application into context-sensitive help mode automatically, with further programming.
|
|
71
|
-
# - Create a {Wx::ContextHelpButton}, whose predefined behaviour is to create a context help object. Normally you will write your application so that this button is only added to a dialog for non-Windows platforms (use {Wx::DIALOG_EX_CONTEXTHELP} on Windows).
|
|
72
|
-
#
|
|
73
|
-
# Note that on macOS, the cursor does not change when in context-sensitive help mode.
|
|
74
|
-
#
|
|
75
|
-
# Category: {Wx::HELP}
|
|
76
|
-
# @see Wx::HelpEvent
|
|
77
|
-
# @see Wx::HelpController
|
|
78
|
-
# @see Wx::ContextHelpButton
|
|
79
|
-
#
|
|
80
|
-
#
|
|
81
|
-
# @wxrb_require USE_HELP
|
|
82
|
-
class ContextHelp < Object
|
|
83
|
-
|
|
84
|
-
# Constructs a context help object, calling {Wx::ContextHelp#begin_context_help} if doNow is true (the default).
|
|
85
|
-
#
|
|
86
|
-
# If window is nil, the top window is used.
|
|
87
|
-
# @param window [Wx::Window]
|
|
88
|
-
# @param doNow [Boolean]
|
|
89
|
-
# @return [Wx::ContextHelp]
|
|
90
|
-
def initialize(window=nil, doNow=true) end
|
|
91
|
-
|
|
92
|
-
# Puts the application into context-sensitive help mode.
|
|
93
|
-
#
|
|
94
|
-
# window is the window which will be used to catch events; if nil, the top window will be used.
|
|
95
|
-
# Returns true if the application was successfully put into context-sensitive help mode. This function only returns when the event loop has finished.
|
|
96
|
-
# @param window [Wx::Window]
|
|
97
|
-
# @return [Boolean]
|
|
98
|
-
def begin_context_help(window) end
|
|
99
|
-
|
|
100
|
-
# Ends context-sensitive help mode.
|
|
101
|
-
#
|
|
102
|
-
# Not normally called by the application.
|
|
103
|
-
# @return [Boolean]
|
|
104
|
-
def end_context_help; end
|
|
105
|
-
|
|
106
|
-
end # ContextHelp
|
|
107
|
-
|
|
108
55
|
|
|
109
56
|
end
|
data/lib/wx/doc/gen/core.rb
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
module Wx
|
|
8
8
|
|
|
9
9
|
# wxRuby version string
|
|
10
|
-
WXRUBY_VERSION = '1.
|
|
10
|
+
WXRUBY_VERSION = '1.8.0'
|
|
11
11
|
|
|
12
12
|
# wxRuby version release type (alpha, beta, rc)
|
|
13
13
|
WXRUBY_RELEASE_TYPE = ''
|
|
14
14
|
# wxRuby major version number
|
|
15
15
|
WXRUBY_MAJOR = 1
|
|
16
16
|
# wxRuby minor version number
|
|
17
|
-
WXRUBY_MINOR =
|
|
17
|
+
WXRUBY_MINOR = 8
|
|
18
18
|
# wxRuby release number
|
|
19
19
|
WXRUBY_RELEASE = 0
|
|
20
20
|
|
|
21
21
|
# Convenience string for WxWidgets version info
|
|
22
|
-
WXWIDGETS_VERSION = '3.3.
|
|
22
|
+
WXWIDGETS_VERSION = '3.3.3'
|
|
23
23
|
|
|
24
24
|
# Integer constant reflecting the major version of the wxWidgets release used to build wxRuby
|
|
25
25
|
WXWIDGETS_MAJOR_VERSION = 3
|
|
@@ -28,7 +28,7 @@ module Wx
|
|
|
28
28
|
WXWIDGETS_MINOR_VERSION = 3
|
|
29
29
|
|
|
30
30
|
# Integer constant reflecting the release number of the wxWidgets release used to build wxRuby
|
|
31
|
-
WXWIDGETS_RELEASE_NUMBER =
|
|
31
|
+
WXWIDGETS_RELEASE_NUMBER = 3
|
|
32
32
|
|
|
33
33
|
# Integer constant reflecting the sub-release number of the wxWidgets release used to build wxRuby
|
|
34
34
|
WXWIDGETS_SUBRELEASE_NUMBER = 0
|
|
@@ -8,11 +8,11 @@ module Wx
|
|
|
8
8
|
|
|
9
9
|
#
|
|
10
10
|
#
|
|
11
|
-
EVT_WEBREQUEST_STATE =
|
|
11
|
+
EVT_WEBREQUEST_STATE = 10340
|
|
12
12
|
|
|
13
13
|
#
|
|
14
14
|
#
|
|
15
|
-
EVT_WEBREQUEST_DATA =
|
|
15
|
+
EVT_WEBREQUEST_DATA = 10341
|
|
16
16
|
|
|
17
17
|
# This class represents a dialog that requests a user name and a password from the user.
|
|
18
18
|
#
|
|
@@ -8,11 +8,11 @@ module Wx
|
|
|
8
8
|
|
|
9
9
|
#
|
|
10
10
|
#
|
|
11
|
-
EVT_DATE_CHANGED =
|
|
11
|
+
EVT_DATE_CHANGED = 10252
|
|
12
12
|
|
|
13
13
|
#
|
|
14
14
|
#
|
|
15
|
-
EVT_TIME_CHANGED =
|
|
15
|
+
EVT_TIME_CHANGED = 10253
|
|
16
16
|
|
|
17
17
|
# This event class holds information about a date change and is used together with {Wx::DatePickerCtrl}.
|
|
18
18
|
#
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
module Wx
|
|
8
8
|
|
|
9
9
|
# connected event
|
|
10
|
-
EVT_DIALUP_CONNECTED =
|
|
10
|
+
EVT_DIALUP_CONNECTED = 10137
|
|
11
11
|
|
|
12
12
|
# disconnected event
|
|
13
|
-
EVT_DIALUP_DISCONNECTED =
|
|
13
|
+
EVT_DIALUP_DISCONNECTED = 10138
|
|
14
14
|
|
|
15
15
|
# This is the event class for the dialup events sent by {Wx::DialUpManager}.
|
|
16
16
|
#
|
data/lib/wx/doc/gen/event.rb
CHANGED
|
@@ -480,151 +480,151 @@ module Wx
|
|
|
480
480
|
|
|
481
481
|
#
|
|
482
482
|
#
|
|
483
|
-
EVT_GESTURE_PAN =
|
|
483
|
+
EVT_GESTURE_PAN = 10079
|
|
484
484
|
|
|
485
485
|
#
|
|
486
486
|
#
|
|
487
|
-
EVT_GESTURE_ZOOM =
|
|
487
|
+
EVT_GESTURE_ZOOM = 10080
|
|
488
488
|
|
|
489
489
|
#
|
|
490
490
|
#
|
|
491
|
-
EVT_GESTURE_ROTATE =
|
|
491
|
+
EVT_GESTURE_ROTATE = 10081
|
|
492
492
|
|
|
493
493
|
#
|
|
494
494
|
#
|
|
495
|
-
EVT_TWO_FINGER_TAP =
|
|
495
|
+
EVT_TWO_FINGER_TAP = 10082
|
|
496
496
|
|
|
497
497
|
#
|
|
498
498
|
#
|
|
499
|
-
EVT_LONG_PRESS =
|
|
499
|
+
EVT_LONG_PRESS = 10083
|
|
500
500
|
|
|
501
501
|
#
|
|
502
502
|
#
|
|
503
|
-
EVT_PRESS_AND_TAP =
|
|
503
|
+
EVT_PRESS_AND_TAP = 10084
|
|
504
504
|
|
|
505
505
|
#
|
|
506
506
|
#
|
|
507
|
-
EVT_SIZE =
|
|
507
|
+
EVT_SIZE = 10085
|
|
508
508
|
|
|
509
509
|
#
|
|
510
510
|
#
|
|
511
|
-
EVT_MOVE =
|
|
511
|
+
EVT_MOVE = 10087
|
|
512
512
|
|
|
513
513
|
#
|
|
514
514
|
#
|
|
515
|
-
EVT_CLOSE_WINDOW =
|
|
515
|
+
EVT_CLOSE_WINDOW = 10091
|
|
516
516
|
|
|
517
517
|
#
|
|
518
518
|
#
|
|
519
|
-
EVT_END_SESSION =
|
|
519
|
+
EVT_END_SESSION = 10092
|
|
520
520
|
|
|
521
521
|
#
|
|
522
522
|
#
|
|
523
|
-
EVT_QUERY_END_SESSION =
|
|
523
|
+
EVT_QUERY_END_SESSION = 10093
|
|
524
524
|
|
|
525
525
|
#
|
|
526
526
|
#
|
|
527
|
-
EVT_ACTIVATE_APP =
|
|
527
|
+
EVT_ACTIVATE_APP = 10095
|
|
528
528
|
|
|
529
529
|
#
|
|
530
530
|
#
|
|
531
|
-
EVT_ACTIVATE =
|
|
531
|
+
EVT_ACTIVATE = 10096
|
|
532
532
|
|
|
533
533
|
#
|
|
534
534
|
#
|
|
535
|
-
EVT_CREATE =
|
|
535
|
+
EVT_CREATE = 10097
|
|
536
536
|
|
|
537
537
|
#
|
|
538
538
|
#
|
|
539
|
-
EVT_DESTROY =
|
|
539
|
+
EVT_DESTROY = 10098
|
|
540
540
|
|
|
541
541
|
#
|
|
542
542
|
#
|
|
543
|
-
EVT_SHOW =
|
|
543
|
+
EVT_SHOW = 10099
|
|
544
544
|
|
|
545
545
|
#
|
|
546
546
|
#
|
|
547
|
-
EVT_ICONIZE =
|
|
547
|
+
EVT_ICONIZE = 10100
|
|
548
548
|
|
|
549
549
|
#
|
|
550
550
|
#
|
|
551
|
-
EVT_MAXIMIZE =
|
|
551
|
+
EVT_MAXIMIZE = 10101
|
|
552
552
|
|
|
553
553
|
#
|
|
554
554
|
#
|
|
555
|
-
EVT_FULLSCREEN =
|
|
555
|
+
EVT_FULLSCREEN = 10102
|
|
556
556
|
|
|
557
557
|
#
|
|
558
558
|
#
|
|
559
|
-
EVT_PAINT =
|
|
559
|
+
EVT_PAINT = 10105
|
|
560
560
|
|
|
561
561
|
#
|
|
562
562
|
#
|
|
563
|
-
EVT_ERASE_BACKGROUND =
|
|
563
|
+
EVT_ERASE_BACKGROUND = 10106
|
|
564
564
|
|
|
565
565
|
#
|
|
566
566
|
#
|
|
567
|
-
EVT_NC_PAINT =
|
|
567
|
+
EVT_NC_PAINT = 10107
|
|
568
568
|
|
|
569
569
|
#
|
|
570
570
|
#
|
|
571
|
-
EVT_MENU_OPEN =
|
|
571
|
+
EVT_MENU_OPEN = 10108
|
|
572
572
|
|
|
573
573
|
#
|
|
574
574
|
#
|
|
575
|
-
EVT_MENU_CLOSE =
|
|
575
|
+
EVT_MENU_CLOSE = 10109
|
|
576
576
|
|
|
577
577
|
#
|
|
578
578
|
#
|
|
579
|
-
EVT_MENU_HIGHLIGHT =
|
|
579
|
+
EVT_MENU_HIGHLIGHT = 10110
|
|
580
580
|
|
|
581
581
|
#
|
|
582
582
|
#
|
|
583
|
-
EVT_CONTEXT_MENU =
|
|
583
|
+
EVT_CONTEXT_MENU = 10111
|
|
584
584
|
|
|
585
585
|
#
|
|
586
586
|
#
|
|
587
|
-
EVT_SYS_COLOUR_CHANGED =
|
|
587
|
+
EVT_SYS_COLOUR_CHANGED = 10112
|
|
588
588
|
|
|
589
589
|
#
|
|
590
590
|
#
|
|
591
|
-
EVT_SYS_METRIC_CHANGED =
|
|
591
|
+
EVT_SYS_METRIC_CHANGED = 10113
|
|
592
592
|
|
|
593
593
|
#
|
|
594
594
|
#
|
|
595
|
-
EVT_DPI_CHANGED =
|
|
595
|
+
EVT_DPI_CHANGED = 10115
|
|
596
596
|
|
|
597
597
|
#
|
|
598
598
|
#
|
|
599
|
-
EVT_QUERY_NEW_PALETTE =
|
|
599
|
+
EVT_QUERY_NEW_PALETTE = 10116
|
|
600
600
|
|
|
601
601
|
#
|
|
602
602
|
#
|
|
603
|
-
EVT_PALETTE_CHANGED =
|
|
603
|
+
EVT_PALETTE_CHANGED = 10117
|
|
604
604
|
|
|
605
605
|
#
|
|
606
606
|
#
|
|
607
|
-
EVT_JOY_BUTTON_DOWN =
|
|
607
|
+
EVT_JOY_BUTTON_DOWN = 10118
|
|
608
608
|
|
|
609
609
|
#
|
|
610
610
|
#
|
|
611
|
-
EVT_JOY_BUTTON_UP =
|
|
611
|
+
EVT_JOY_BUTTON_UP = 10119
|
|
612
612
|
|
|
613
613
|
#
|
|
614
614
|
#
|
|
615
|
-
EVT_JOY_MOVE =
|
|
615
|
+
EVT_JOY_MOVE = 10120
|
|
616
616
|
|
|
617
617
|
#
|
|
618
618
|
#
|
|
619
|
-
EVT_JOY_ZMOVE =
|
|
619
|
+
EVT_JOY_ZMOVE = 10121
|
|
620
620
|
|
|
621
621
|
#
|
|
622
622
|
#
|
|
623
|
-
EVT_DROP_FILES =
|
|
623
|
+
EVT_DROP_FILES = 10122
|
|
624
624
|
|
|
625
625
|
#
|
|
626
626
|
#
|
|
627
|
-
EVT_INIT_DIALOG =
|
|
627
|
+
EVT_INIT_DIALOG = 10123
|
|
628
628
|
|
|
629
629
|
#
|
|
630
630
|
#
|
|
@@ -632,75 +632,75 @@ module Wx
|
|
|
632
632
|
|
|
633
633
|
#
|
|
634
634
|
#
|
|
635
|
-
EVT_UPDATE_UI =
|
|
635
|
+
EVT_UPDATE_UI = 10124
|
|
636
636
|
|
|
637
637
|
#
|
|
638
638
|
#
|
|
639
|
-
EVT_SIZING =
|
|
639
|
+
EVT_SIZING = 10086
|
|
640
640
|
|
|
641
641
|
#
|
|
642
642
|
#
|
|
643
|
-
EVT_MOVING =
|
|
643
|
+
EVT_MOVING = 10088
|
|
644
644
|
|
|
645
645
|
#
|
|
646
646
|
#
|
|
647
|
-
EVT_MOVE_START =
|
|
647
|
+
EVT_MOVE_START = 10089
|
|
648
648
|
|
|
649
649
|
#
|
|
650
650
|
#
|
|
651
|
-
EVT_MOVE_END =
|
|
651
|
+
EVT_MOVE_END = 10090
|
|
652
652
|
|
|
653
653
|
#
|
|
654
654
|
#
|
|
655
|
-
EVT_HIBERNATE =
|
|
655
|
+
EVT_HIBERNATE = 10094
|
|
656
656
|
|
|
657
657
|
#
|
|
658
658
|
#
|
|
659
|
-
EVT_TEXT_COPY =
|
|
659
|
+
EVT_TEXT_COPY = 10125
|
|
660
660
|
|
|
661
661
|
#
|
|
662
662
|
#
|
|
663
|
-
EVT_TEXT_CUT =
|
|
663
|
+
EVT_TEXT_CUT = 10126
|
|
664
664
|
|
|
665
665
|
#
|
|
666
666
|
#
|
|
667
|
-
EVT_TEXT_PASTE =
|
|
667
|
+
EVT_TEXT_PASTE = 10127
|
|
668
668
|
|
|
669
669
|
#
|
|
670
670
|
#
|
|
671
|
-
EVT_COMMAND_LEFT_CLICK =
|
|
671
|
+
EVT_COMMAND_LEFT_CLICK = 10128
|
|
672
672
|
|
|
673
673
|
#
|
|
674
674
|
#
|
|
675
|
-
EVT_COMMAND_LEFT_DCLICK =
|
|
675
|
+
EVT_COMMAND_LEFT_DCLICK = 10129
|
|
676
676
|
|
|
677
677
|
#
|
|
678
678
|
#
|
|
679
|
-
EVT_COMMAND_RIGHT_CLICK =
|
|
679
|
+
EVT_COMMAND_RIGHT_CLICK = 10130
|
|
680
680
|
|
|
681
681
|
#
|
|
682
682
|
#
|
|
683
|
-
EVT_COMMAND_RIGHT_DCLICK =
|
|
683
|
+
EVT_COMMAND_RIGHT_DCLICK = 10131
|
|
684
684
|
|
|
685
685
|
#
|
|
686
686
|
#
|
|
687
|
-
EVT_COMMAND_SET_FOCUS =
|
|
687
|
+
EVT_COMMAND_SET_FOCUS = 10132
|
|
688
688
|
|
|
689
689
|
#
|
|
690
690
|
#
|
|
691
|
-
EVT_COMMAND_KILL_FOCUS =
|
|
691
|
+
EVT_COMMAND_KILL_FOCUS = 10133
|
|
692
692
|
|
|
693
693
|
#
|
|
694
694
|
#
|
|
695
|
-
EVT_COMMAND_ENTER =
|
|
695
|
+
EVT_COMMAND_ENTER = 10134
|
|
696
696
|
|
|
697
697
|
#
|
|
698
698
|
#
|
|
699
|
-
EVT_HELP =
|
|
699
|
+
EVT_HELP = 10135
|
|
700
700
|
|
|
701
701
|
#
|
|
702
702
|
#
|
|
703
|
-
EVT_DETAILED_HELP =
|
|
703
|
+
EVT_DETAILED_HELP = 10136
|
|
704
704
|
|
|
705
705
|
#
|
|
706
706
|
#
|
|
@@ -708,13 +708,13 @@ module Wx
|
|
|
708
708
|
|
|
709
709
|
#
|
|
710
710
|
#
|
|
711
|
-
EVT_WINDOW_MODAL_DIALOG_CLOSED =
|
|
711
|
+
EVT_WINDOW_MODAL_DIALOG_CLOSED = 10155
|
|
712
712
|
|
|
713
713
|
#
|
|
714
|
-
EVT_MENU_HIGHLIGHT_ALL =
|
|
714
|
+
EVT_MENU_HIGHLIGHT_ALL = 10110
|
|
715
715
|
|
|
716
716
|
#
|
|
717
|
-
EVT_NC_PAINT =
|
|
717
|
+
EVT_NC_PAINT = 10107
|
|
718
718
|
|
|
719
719
|
# Generates a new unique event type.
|
|
720
720
|
#
|
|
@@ -28,9 +28,9 @@ module Wx
|
|
|
28
28
|
#
|
|
29
29
|
# The Netscape support will check whether Netscape is already running (by looking at the .netscape/lock file in the user's home directory) and tell it to load the page into the existing window.
|
|
30
30
|
# @param viewer [String] The command to call a browser/html viewer.
|
|
31
|
-
# @param flags [Integer] Set this to {Wx::HELP_NETSCAPE} if the browser is some variant of Netscape.
|
|
31
|
+
# @param flags [Integer] Set this to {Wx::HTML::HELP_NETSCAPE} if the browser is some variant of Netscape.
|
|
32
32
|
# @return [void]
|
|
33
|
-
def set_viewer(viewer=(''), flags=Wx::HELP_NETSCAPE) end
|
|
33
|
+
def set_viewer(viewer=(''), flags=Wx::HTML::HELP_NETSCAPE) end
|
|
34
34
|
alias_method :viewer=, :set_viewer
|
|
35
35
|
|
|
36
36
|
# This must be called to tell the controller where to find the documentation.
|
|
@@ -42,20 +42,6 @@ module Wx
|
|
|
42
42
|
# @return [Boolean]
|
|
43
43
|
def init(dir) end
|
|
44
44
|
|
|
45
|
-
# Display list of all help entries.
|
|
46
|
-
#
|
|
47
|
-
# true on success
|
|
48
|
-
# @return [Boolean]
|
|
49
|
-
def display_contents; end
|
|
50
|
-
|
|
51
|
-
# Search comment/documentation fields in map file and present a list to chose from.
|
|
52
|
-
#
|
|
53
|
-
# true on success
|
|
54
|
-
# @param k [String] string to search for, empty string will list all entries
|
|
55
|
-
# @param mode [Wx::HelpSearchMode] optional parameter allows the search the index ({Wx::HelpSearchMode::HELP_SEARCH_INDEX}) but this currently only supported by the {Wx::HTML::HtmlHelpController}.
|
|
56
|
-
# @return [Boolean]
|
|
57
|
-
def keyword_search(k, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
|
|
58
|
-
|
|
59
45
|
# Does nothing.
|
|
60
46
|
# @return [void]
|
|
61
47
|
def on_quit; end
|
|
@@ -73,6 +59,21 @@ module Wx
|
|
|
73
59
|
# @return [void]
|
|
74
60
|
def set_frame_parameters(titleFormat, size, pos=Wx::DEFAULT_POSITION, newFrameEachTime=false) end
|
|
75
61
|
|
|
62
|
+
# If the help viewer is not running, runs it and displays the file at the given block number.
|
|
63
|
+
#
|
|
64
|
+
# - WinHelp: Refers to the context number.
|
|
65
|
+
# - MS HTML Help: Refers to the context number.
|
|
66
|
+
# - External HTML help: the same as for {display_section}.
|
|
67
|
+
# - {Wx::HTML::HtmlHelpController}: sectionNo is an identifier as specified in the <code></code>.hhc file. See Help Files Format.
|
|
68
|
+
# DeprecatedThis function is for backward compatibility only, and applications should use {display_section} instead.
|
|
69
|
+
# @param blockNo [Integer]
|
|
70
|
+
# @return [Boolean]
|
|
71
|
+
def display_block(blockNo) end
|
|
72
|
+
|
|
73
|
+
# If the help viewer is not running, runs it and displays the contents.
|
|
74
|
+
# @return [Boolean]
|
|
75
|
+
def display_contents; end
|
|
76
|
+
|
|
76
77
|
# Displays the section as a popup window using a context id.
|
|
77
78
|
#
|
|
78
79
|
# Returns false if unsuccessful or not implemented.
|
|
@@ -80,6 +81,23 @@ module Wx
|
|
|
80
81
|
# @return [Boolean]
|
|
81
82
|
def display_context_popup(contextId) end
|
|
82
83
|
|
|
84
|
+
# @overload display_section(section)
|
|
85
|
+
# If the help viewer is not running, runs it and displays the given section.
|
|
86
|
+
#
|
|
87
|
+
# The interpretation of section differs between help viewers. For most viewers, this call is equivalent to KeywordSearch. For MS HTML Help, {Wx::HTML} help and external HTML help, if section has a .htm or .html extension, that HTML file will be displayed; otherwise a keyword search is done.
|
|
88
|
+
# @param section [String]
|
|
89
|
+
# @return [Boolean]
|
|
90
|
+
# @overload display_section(sectionNo)
|
|
91
|
+
# If the help viewer is not running, runs it and displays the given section.
|
|
92
|
+
#
|
|
93
|
+
# - WinHelp, MS HTML Help sectionNo is a context id.
|
|
94
|
+
# - MS HTML Help: Pass -1 in sectionNo to display the index.
|
|
95
|
+
# - External HTML help: {Wx::ExtHelpController} implements sectionNo as an id in a map file, which is of the form:
|
|
96
|
+
# - {Wx::HTML::HtmlHelpController}: sectionNo is an identifier as specified in the <code></code>.hhc file. See Help Files Format. See also the help sample for notes on how to specify section numbers for various help file formats.
|
|
97
|
+
# @param sectionNo [Integer]
|
|
98
|
+
# @return [Boolean]
|
|
99
|
+
def display_section(*args) end
|
|
100
|
+
|
|
83
101
|
# Displays the text in a popup window, if possible.
|
|
84
102
|
#
|
|
85
103
|
# Returns false if unsuccessful or not implemented.
|
|
@@ -95,6 +113,34 @@ module Wx
|
|
|
95
113
|
def get_parent_window; end
|
|
96
114
|
alias_method :parent_window, :get_parent_window
|
|
97
115
|
|
|
116
|
+
# If the help viewer is not running, runs it, and searches for sections matching the given keyword.
|
|
117
|
+
#
|
|
118
|
+
# If one match is found, the file is displayed at this section. The optional parameter allows searching the index ({Wx::HelpSearchMode::HELP_SEARCH_INDEX}) but this currently is only supported by the {Wx::HTML::HtmlHelpController}.
|
|
119
|
+
#
|
|
120
|
+
# - WinHelp, MS HTML Help: If more than one match is found, the first topic is displayed.
|
|
121
|
+
# - MS HTML Help: Pass an empty string to display the search page.
|
|
122
|
+
# - External HTML help, simple {Wx::HTML} help: If more than one match is found, a choice of topics is displayed.
|
|
123
|
+
# - {Wx::HTML::HtmlHelpController}: see {Wx::HTML::HtmlHelpController::KeywordSearch}.
|
|
124
|
+
# @param keyWord [String]
|
|
125
|
+
# @param mode [Wx::HelpSearchMode]
|
|
126
|
+
# @return [Boolean]
|
|
127
|
+
def keyword_search(keyWord, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
|
|
128
|
+
|
|
129
|
+
# If the help viewer is not running, runs it and loads the given file.
|
|
130
|
+
#
|
|
131
|
+
# If the filename is not supplied or is empty, the file specified in {initialize} is used.
|
|
132
|
+
# If the viewer is already displaying the specified file, it will not be reloaded. This member function may be used before each display call in case the user has opened another file.
|
|
133
|
+
# {Wx::HTML::HtmlHelpController} ignores this call.
|
|
134
|
+
# @param file [String]
|
|
135
|
+
# @return [Boolean]
|
|
136
|
+
def load_file(file=('')) end
|
|
137
|
+
|
|
138
|
+
# If the viewer is running, quits it by disconnecting.
|
|
139
|
+
#
|
|
140
|
+
# For Windows Help, the viewer will only close if no other application is using it.
|
|
141
|
+
# @return [Boolean]
|
|
142
|
+
def quit; end
|
|
143
|
+
|
|
98
144
|
# Sets the window to be used as the parent for the help window.
|
|
99
145
|
#
|
|
100
146
|
# This is used by {Wx::CHMHelpController}, {Wx::WinHelpController} and {Wx::HTML::HtmlHelpController}.
|