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.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +27 -2
  3. data/README.md +15 -15
  4. data/ext/wxruby3/include/wxRubyApp.h +145 -46
  5. data/ext/wxruby3/include/wxruby-ComboPopup.h +25 -8
  6. data/ext/wxruby3/include/wxruby-GCTracking.h +262 -0
  7. data/ext/wxruby3/include/wxruby-MBConv.h +190 -0
  8. data/ext/wxruby3/include/wxruby-SharedEventHandler.h +183 -0
  9. data/ext/wxruby3/include/wxruby-SharedPtr.h +104 -0
  10. data/ext/wxruby3/include/wxruby-runtime.h +29 -0
  11. data/ext/wxruby3/swig/custom/rubytracking.swg +8 -22
  12. data/ext/wxruby3/swig/custom/wx_ruby_shared_ptr.i +434 -0
  13. data/ext/wxruby3/swig/custom/wx_shared_ptr.i +431 -0
  14. data/ext/wxruby3/swig/mark_free_impl.i +7 -132
  15. data/ext/wxruby3/swig/memory_management.i +8 -44
  16. data/ext/wxruby3/swig/wx.i +46 -73
  17. data/lib/wx/core/const.rb +0 -1
  18. data/lib/wx/core/context_help.rb +17 -0
  19. data/lib/wx/core/cursor.rb +1 -0
  20. data/lib/wx/core/helpcontrollerhelpprovider.rb +10 -2
  21. data/lib/wx/core/mbconv.rb +11 -0
  22. data/lib/wx/core/media_ctrl.rb +31 -0
  23. data/lib/wx/core/top_level_window.rb +7 -0
  24. data/lib/wx/core.rb +6 -0
  25. data/lib/wx/doc/art_provider.rb +17 -0
  26. data/lib/wx/doc/context_help.rb +42 -0
  27. data/lib/wx/doc/core.rb +0 -5
  28. data/lib/wx/doc/functions.rb +10 -0
  29. data/lib/wx/doc/gen/affine_matrix2d.rb +2 -0
  30. data/lib/wx/doc/gen/art_provider.rb +12 -0
  31. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +15 -15
  32. data/lib/wx/doc/gen/aui/aui_pane_info.rb +8 -8
  33. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -5
  34. data/lib/wx/doc/gen/book_ctrl_base.rb +2 -1
  35. data/lib/wx/doc/gen/calendar_event.rb +5 -5
  36. data/lib/wx/doc/gen/choicebook.rb +2 -2
  37. data/lib/wx/doc/gen/collapsible_pane.rb +1 -1
  38. data/lib/wx/doc/gen/colour_dialog.rb +1 -1
  39. data/lib/wx/doc/gen/colour_picker_event.rb +3 -3
  40. data/lib/wx/doc/gen/context_help_button.rb +0 -53
  41. data/lib/wx/doc/gen/core.rb +4 -4
  42. data/lib/wx/doc/gen/credential_entry_dialog.rb +2 -2
  43. data/lib/wx/doc/gen/date_event.rb +2 -2
  44. data/lib/wx/doc/gen/dial_up_event.rb +2 -2
  45. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  46. data/lib/wx/doc/gen/event.rb +58 -58
  47. data/lib/wx/doc/gen/ext_help_controller.rb +62 -16
  48. data/lib/wx/doc/gen/file_ctrl.rb +4 -4
  49. data/lib/wx/doc/gen/file_dir_picker_event.rb +2 -2
  50. data/lib/wx/doc/gen/file_system.rb +1 -1
  51. data/lib/wx/doc/gen/find_dialog_event.rb +5 -5
  52. data/lib/wx/doc/gen/font_picker_event.rb +1 -1
  53. data/lib/wx/doc/gen/grid/grid_ctrl.rb +67 -32
  54. data/lib/wx/doc/gen/header_ctrl_event.rb +13 -13
  55. data/lib/wx/doc/gen/help_controller.rb +45 -2
  56. data/lib/wx/doc/gen/html/html_help_controller.rb +74 -32
  57. data/lib/wx/doc/gen/html/html_help_window.rb +3 -3
  58. data/lib/wx/doc/gen/html/html_window.rb +4 -4
  59. data/lib/wx/doc/gen/hyperlink_ctrl.rb +1 -1
  60. data/lib/wx/doc/gen/list_ctrl.rb +22 -22
  61. data/lib/wx/doc/gen/listbook.rb +2 -2
  62. data/lib/wx/doc/gen/mb_conv.rb +10 -0
  63. data/lib/wx/doc/gen/media_event.rb +6 -6
  64. data/lib/wx/doc/gen/notebook.rb +2 -2
  65. data/lib/wx/doc/gen/pg/pg_validation_info.rb +14 -14
  66. data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
  67. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -9
  68. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +2 -2
  69. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +3 -3
  70. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
  71. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -2
  72. data/lib/wx/doc/gen/rt/event_list.rb +17 -0
  73. data/lib/wx/doc/gen/rt/shared_evt_handler.rb +14 -0
  74. data/lib/wx/doc/gen/rt/thread_event.rb +71 -0
  75. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
  76. data/lib/wx/doc/gen/sash_event.rb +2 -2
  77. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  78. data/lib/wx/doc/gen/search_ctrl.rb +2 -2
  79. data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
  80. data/lib/wx/doc/gen/splitter_window.rb +6 -6
  81. data/lib/wx/doc/gen/stc/styled_text_event.rb +34 -34
  82. data/lib/wx/doc/gen/task_bar_icon_event.rb +10 -10
  83. data/lib/wx/doc/gen/text_ctrl.rb +4 -4
  84. data/lib/wx/doc/gen/toggle_button.rb +1 -1
  85. data/lib/wx/doc/gen/toolbook.rb +2 -2
  86. data/lib/wx/doc/gen/top_level_window.rb +19 -0
  87. data/lib/wx/doc/gen/tree_ctrl.rb +21 -21
  88. data/lib/wx/doc/gen/treebook.rb +4 -4
  89. data/lib/wx/doc/gen/utils.rb +2 -2
  90. data/lib/wx/doc/gen/web/event_list.rb +95 -0
  91. data/lib/wx/doc/gen/web/web_view.rb +1136 -0
  92. data/lib/wx/doc/gen/web/web_view_event.rb +210 -0
  93. data/lib/wx/doc/gen/web/web_view_handler.rb +318 -0
  94. data/lib/wx/doc/gen/window.rb +1 -1
  95. data/lib/wx/doc/gen/wizard_event.rb +7 -7
  96. data/lib/wx/doc/html/html_help_controller.rb +23 -1
  97. data/lib/wx/doc/mbconv.rb +108 -0
  98. data/lib/wx/doc/rt/shared_event_handler.rb +49 -0
  99. data/lib/wx/doc/rt/thread_event.rb +28 -0
  100. data/lib/wx/doc/webview.rb +40 -0
  101. data/lib/wx/helpers.rb +1 -1
  102. data/lib/wx/html/htmlhelpcontroller.rb +10 -0
  103. data/lib/wx/keyword_defs.rb +11 -0
  104. data/lib/wx/rt/events/evt_list.rb +8 -0
  105. data/lib/wx/rt/require.rb +8 -0
  106. data/lib/wx/rt/thread_event.rb +14 -0
  107. data/lib/wx/rt.rb +16 -0
  108. data/lib/wx/version.rb +1 -1
  109. data/lib/wx/web/events/evt_list.rb +74 -0
  110. data/lib/wx/web/require.rb +8 -0
  111. data/lib/wx/web/webview.rb +106 -0
  112. data/lib/wx/web.rb +17 -0
  113. data/lib/wx/wxruby/cmd/setup.rb +15 -0
  114. data/lib/wx.rb +2 -0
  115. data/rakelib/configure.rb +24 -0
  116. data/rakelib/gem.rb +3 -2
  117. data/rakelib/install.rb +54 -27
  118. data/rakelib/lib/config/macosx.rb +7 -5
  119. data/rakelib/lib/config/mingw.rb +66 -5
  120. data/rakelib/lib/config/pkgman/mingw.rb +1 -1
  121. data/rakelib/lib/config/unixish.rb +4 -2
  122. data/rakelib/lib/config.rb +37 -3
  123. data/rakelib/lib/core/include/client_data.inc +38 -17
  124. data/rakelib/lib/core/include/funcall.inc +1 -1
  125. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  126. data/rakelib/lib/core/include/swigrubyrun.inc +14 -26
  127. data/rakelib/lib/core/package.rb +0 -2
  128. data/rakelib/lib/director/app.rb +1 -8
  129. data/rakelib/lib/director/art_provider.rb +7 -3
  130. data/rakelib/lib/director/comboctrl.rb +0 -7
  131. data/rakelib/lib/director/context_help_button.rb +35 -2
  132. data/rakelib/lib/director/event_handler.rb +32 -28
  133. data/rakelib/lib/director/fs_file.rb +15 -10
  134. data/rakelib/lib/director/functions.rb +8 -0
  135. data/rakelib/lib/director/grid_cell_attr.rb +1 -3
  136. data/rakelib/lib/director/grid_cell_editor.rb +14 -12
  137. data/rakelib/lib/director/grid_cell_renderer.rb +11 -8
  138. data/rakelib/lib/director/grid_ctrl.rb +140 -121
  139. data/rakelib/lib/director/help_controller.rb +70 -2
  140. data/rakelib/lib/director/mb_conv.rb +30 -0
  141. data/rakelib/lib/director/menu.rb +92 -42
  142. data/rakelib/lib/director/menu_bar.rb +84 -45
  143. data/rakelib/lib/director/menu_item.rb +2 -2
  144. data/rakelib/lib/director/persistence_manager.rb +3 -2
  145. data/rakelib/lib/director/preview_frame.rb +2 -2
  146. data/rakelib/lib/director/richtext_buffer.rb +5 -2
  147. data/rakelib/lib/director/shared_evt_handler.rb +30 -0
  148. data/rakelib/lib/director/sizer.rb +8 -17
  149. data/rakelib/lib/director/sizer_item.rb +3 -4
  150. data/rakelib/lib/director/task_bar_icon.rb +7 -7
  151. data/rakelib/lib/director/thread_event.rb +33 -0
  152. data/rakelib/lib/director/validator.rb +3 -1
  153. data/rakelib/lib/director/variant.rb +16 -12
  154. data/rakelib/lib/director/webview.rb +166 -0
  155. data/rakelib/lib/director/webview_event.rb +37 -0
  156. data/rakelib/lib/director/webview_handler.rb +63 -0
  157. data/rakelib/lib/generate/doc/thread_event.yaml +20 -0
  158. data/rakelib/lib/generate/doc/web_view.yaml +135 -0
  159. data/rakelib/lib/generate/doc/web_view_event.yaml +38 -0
  160. data/rakelib/lib/generate/doc/web_view_handler.yaml +58 -0
  161. data/rakelib/lib/specs/interfaces.rb +12 -0
  162. data/rakelib/lib/typemap/common.rb +34 -1
  163. data/rakelib/lib/typemap/mb_conv.rb +58 -0
  164. data/rakelib/prepost.rake +23 -31
  165. data/rakelib/prepost.rb +20 -0
  166. data/samples/event/threaded.rb +295 -42
  167. data/samples/event/tn_threaded.png +0 -0
  168. data/samples/help/doc/back.gif +0 -0
  169. data/samples/help/doc/contents.gif +0 -0
  170. data/samples/help/doc/cshelp.txt +9 -0
  171. data/samples/help/doc/doc.chm +0 -0
  172. data/samples/help/doc/doc.cnt +8 -0
  173. data/samples/help/doc/doc.h +7 -0
  174. data/samples/help/doc/doc.hhc +40 -0
  175. data/samples/help/doc/doc.hhk +31 -0
  176. data/samples/help/doc/doc.hhp +33 -0
  177. data/samples/help/doc/doc.hpj +21 -0
  178. data/samples/help/doc/doc.htm +27 -0
  179. data/samples/help/doc/doc1.htm +24 -0
  180. data/samples/help/doc/doc2.htm +12 -0
  181. data/samples/help/doc/doc3.htm +12 -0
  182. data/samples/help/doc/doc4.htm +12 -0
  183. data/samples/help/doc/doc5.htm +14 -0
  184. data/samples/help/doc/forward.gif +0 -0
  185. data/samples/help/doc/up.gif +0 -0
  186. data/samples/help/doc.chm +0 -0
  187. data/samples/help/doc.chw +0 -0
  188. data/samples/help/doc.zip +0 -0
  189. data/samples/help/help.rb +352 -0
  190. data/samples/help/tn_help.png +0 -0
  191. data/samples/webview/handler_advanced.html +55 -0
  192. data/samples/webview/tn_webview.png +0 -0
  193. data/samples/webview/webview.rb +1264 -0
  194. data/tests/assets/handler_advanced.html +55 -0
  195. data/tests/assets/test.css +1 -0
  196. data/tests/assets/test.html +9 -0
  197. data/tests/assets/test.zip +0 -0
  198. data/tests/lib/text_entry_tests.rb +2 -2
  199. data/tests/lib/wxapp_runner.rb +40 -0
  200. data/tests/lib/wxframe_runner.rb +17 -2
  201. data/tests/test_art.rb +8 -8
  202. data/tests/test_clipboard.rb +4 -4
  203. data/tests/test_config.rb +6 -6
  204. data/tests/test_exceptions.rb +8 -6
  205. data/tests/test_ext_controls.rb +3 -3
  206. data/tests/test_file_dialog.rb +5 -5
  207. data/tests/test_font.rb +7 -7
  208. data/tests/test_grid_ctrl.rb +133 -0
  209. data/tests/test_help.rb +88 -0
  210. data/tests/test_intl.rb +1 -1
  211. data/tests/test_media_ctrl.rb +14 -6
  212. data/tests/test_menu.rb +94 -86
  213. data/tests/test_persistence.rb +1 -1
  214. data/tests/test_proof_check.rb +5 -5
  215. data/tests/test_propgrid.rb +1 -1
  216. data/tests/test_shared_event_handler.rb +141 -0
  217. data/tests/test_std_controls.rb +5 -5
  218. data/tests/test_webview.rb +492 -0
  219. data/tests/test_window.rb +3 -3
  220. metadata +78 -2
@@ -10,23 +10,23 @@ module Wx
10
10
 
11
11
  #
12
12
  #
13
- EVT_AUITOOLBAR_TOOL_DROPDOWN = 10367
13
+ EVT_AUITOOLBAR_TOOL_DROPDOWN = 10370
14
14
 
15
15
  #
16
16
  #
17
- EVT_AUITOOLBAR_OVERFLOW_CLICK = 10368
17
+ EVT_AUITOOLBAR_OVERFLOW_CLICK = 10371
18
18
 
19
19
  #
20
20
  #
21
- EVT_AUITOOLBAR_RIGHT_CLICK = 10369
21
+ EVT_AUITOOLBAR_RIGHT_CLICK = 10372
22
22
 
23
23
  #
24
24
  #
25
- EVT_AUITOOLBAR_MIDDLE_CLICK = 10370
25
+ EVT_AUITOOLBAR_MIDDLE_CLICK = 10373
26
26
 
27
27
  #
28
28
  #
29
- EVT_AUITOOLBAR_BEGIN_DRAG = 10371
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 = 10251
101
+ EVT_CALENDAR_SEL_CHANGED = 10254
102
102
 
103
103
  #
104
104
  #
105
- EVT_CALENDAR_PAGE_CHANGED = 10252
105
+ EVT_CALENDAR_PAGE_CHANGED = 10255
106
106
 
107
107
  #
108
108
  #
109
- EVT_CALENDAR_DOUBLECLICKED = 10253
109
+ EVT_CALENDAR_DOUBLECLICKED = 10256
110
110
 
111
111
  #
112
112
  #
113
- EVT_CALENDAR_WEEKDAY_CLICKED = 10254
113
+ EVT_CALENDAR_WEEKDAY_CLICKED = 10257
114
114
 
115
115
  #
116
116
  #
117
- EVT_CALENDAR_WEEK_CLICKED = 10255
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 = 10232
29
+ EVT_CHOICEBOOK_PAGE_CHANGED = 10235
30
30
 
31
31
  #
32
32
  #
33
- EVT_CHOICEBOOK_PAGE_CHANGING = 10231
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
  #
@@ -14,7 +14,7 @@ module Wx
14
14
 
15
15
  #
16
16
  #
17
- EVT_COLLAPSIBLEPANE_CHANGED = 10145
17
+ EVT_COLLAPSIBLEPANE_CHANGED = 10148
18
18
 
19
19
  # A collapsible pane is a container with an embedded button-like control which can be used by the user to collapse or expand the pane's contents.
20
20
  #
@@ -8,7 +8,7 @@ module Wx
8
8
 
9
9
  #
10
10
  #
11
- EVT_COLOUR_CHANGED = 10151
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 = 10148
23
+ EVT_COLOURPICKER_CHANGED = 10151
24
24
 
25
25
  #
26
26
  #
27
- EVT_COLOURPICKER_CURRENT_CHANGED = 10149
27
+ EVT_COLOURPICKER_CURRENT_CHANGED = 10152
28
28
 
29
29
  #
30
30
  #
31
- EVT_COLOURPICKER_DIALOG_CANCELLED = 10150
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
@@ -7,19 +7,19 @@
7
7
  module Wx
8
8
 
9
9
  # wxRuby version string
10
- WXRUBY_VERSION = '1.7.0'
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 = 7
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.2'
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 = 2
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 = 10337
11
+ EVT_WEBREQUEST_STATE = 10340
12
12
 
13
13
  #
14
14
  #
15
- EVT_WEBREQUEST_DATA = 10338
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 = 10249
11
+ EVT_DATE_CHANGED = 10252
12
12
 
13
13
  #
14
14
  #
15
- EVT_TIME_CHANGED = 10250
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 = 10134
10
+ EVT_DIALUP_CONNECTED = 10137
11
11
 
12
12
  # disconnected event
13
- EVT_DIALUP_DISCONNECTED = 10135
13
+ EVT_DIALUP_DISCONNECTED = 10138
14
14
 
15
15
  # This is the event class for the dialup events sent by {Wx::DialUpManager}.
16
16
  #
@@ -36,11 +36,11 @@ module Wx
36
36
 
37
37
  #
38
38
  #
39
- EVT_DIRCTRL_SELECTIONCHANGED = 10234
39
+ EVT_DIRCTRL_SELECTIONCHANGED = 10237
40
40
 
41
41
  #
42
42
  #
43
- EVT_DIRCTRL_FILEACTIVATED = 10235
43
+ EVT_DIRCTRL_FILEACTIVATED = 10238
44
44
 
45
45
  #
46
46
  #
@@ -480,151 +480,151 @@ module Wx
480
480
 
481
481
  #
482
482
  #
483
- EVT_GESTURE_PAN = 10076
483
+ EVT_GESTURE_PAN = 10079
484
484
 
485
485
  #
486
486
  #
487
- EVT_GESTURE_ZOOM = 10077
487
+ EVT_GESTURE_ZOOM = 10080
488
488
 
489
489
  #
490
490
  #
491
- EVT_GESTURE_ROTATE = 10078
491
+ EVT_GESTURE_ROTATE = 10081
492
492
 
493
493
  #
494
494
  #
495
- EVT_TWO_FINGER_TAP = 10079
495
+ EVT_TWO_FINGER_TAP = 10082
496
496
 
497
497
  #
498
498
  #
499
- EVT_LONG_PRESS = 10080
499
+ EVT_LONG_PRESS = 10083
500
500
 
501
501
  #
502
502
  #
503
- EVT_PRESS_AND_TAP = 10081
503
+ EVT_PRESS_AND_TAP = 10084
504
504
 
505
505
  #
506
506
  #
507
- EVT_SIZE = 10082
507
+ EVT_SIZE = 10085
508
508
 
509
509
  #
510
510
  #
511
- EVT_MOVE = 10084
511
+ EVT_MOVE = 10087
512
512
 
513
513
  #
514
514
  #
515
- EVT_CLOSE_WINDOW = 10088
515
+ EVT_CLOSE_WINDOW = 10091
516
516
 
517
517
  #
518
518
  #
519
- EVT_END_SESSION = 10089
519
+ EVT_END_SESSION = 10092
520
520
 
521
521
  #
522
522
  #
523
- EVT_QUERY_END_SESSION = 10090
523
+ EVT_QUERY_END_SESSION = 10093
524
524
 
525
525
  #
526
526
  #
527
- EVT_ACTIVATE_APP = 10092
527
+ EVT_ACTIVATE_APP = 10095
528
528
 
529
529
  #
530
530
  #
531
- EVT_ACTIVATE = 10093
531
+ EVT_ACTIVATE = 10096
532
532
 
533
533
  #
534
534
  #
535
- EVT_CREATE = 10094
535
+ EVT_CREATE = 10097
536
536
 
537
537
  #
538
538
  #
539
- EVT_DESTROY = 10095
539
+ EVT_DESTROY = 10098
540
540
 
541
541
  #
542
542
  #
543
- EVT_SHOW = 10096
543
+ EVT_SHOW = 10099
544
544
 
545
545
  #
546
546
  #
547
- EVT_ICONIZE = 10097
547
+ EVT_ICONIZE = 10100
548
548
 
549
549
  #
550
550
  #
551
- EVT_MAXIMIZE = 10098
551
+ EVT_MAXIMIZE = 10101
552
552
 
553
553
  #
554
554
  #
555
- EVT_FULLSCREEN = 10099
555
+ EVT_FULLSCREEN = 10102
556
556
 
557
557
  #
558
558
  #
559
- EVT_PAINT = 10102
559
+ EVT_PAINT = 10105
560
560
 
561
561
  #
562
562
  #
563
- EVT_ERASE_BACKGROUND = 10103
563
+ EVT_ERASE_BACKGROUND = 10106
564
564
 
565
565
  #
566
566
  #
567
- EVT_NC_PAINT = 10104
567
+ EVT_NC_PAINT = 10107
568
568
 
569
569
  #
570
570
  #
571
- EVT_MENU_OPEN = 10105
571
+ EVT_MENU_OPEN = 10108
572
572
 
573
573
  #
574
574
  #
575
- EVT_MENU_CLOSE = 10106
575
+ EVT_MENU_CLOSE = 10109
576
576
 
577
577
  #
578
578
  #
579
- EVT_MENU_HIGHLIGHT = 10107
579
+ EVT_MENU_HIGHLIGHT = 10110
580
580
 
581
581
  #
582
582
  #
583
- EVT_CONTEXT_MENU = 10108
583
+ EVT_CONTEXT_MENU = 10111
584
584
 
585
585
  #
586
586
  #
587
- EVT_SYS_COLOUR_CHANGED = 10109
587
+ EVT_SYS_COLOUR_CHANGED = 10112
588
588
 
589
589
  #
590
590
  #
591
- EVT_SYS_METRIC_CHANGED = 10110
591
+ EVT_SYS_METRIC_CHANGED = 10113
592
592
 
593
593
  #
594
594
  #
595
- EVT_DPI_CHANGED = 10112
595
+ EVT_DPI_CHANGED = 10115
596
596
 
597
597
  #
598
598
  #
599
- EVT_QUERY_NEW_PALETTE = 10113
599
+ EVT_QUERY_NEW_PALETTE = 10116
600
600
 
601
601
  #
602
602
  #
603
- EVT_PALETTE_CHANGED = 10114
603
+ EVT_PALETTE_CHANGED = 10117
604
604
 
605
605
  #
606
606
  #
607
- EVT_JOY_BUTTON_DOWN = 10115
607
+ EVT_JOY_BUTTON_DOWN = 10118
608
608
 
609
609
  #
610
610
  #
611
- EVT_JOY_BUTTON_UP = 10116
611
+ EVT_JOY_BUTTON_UP = 10119
612
612
 
613
613
  #
614
614
  #
615
- EVT_JOY_MOVE = 10117
615
+ EVT_JOY_MOVE = 10120
616
616
 
617
617
  #
618
618
  #
619
- EVT_JOY_ZMOVE = 10118
619
+ EVT_JOY_ZMOVE = 10121
620
620
 
621
621
  #
622
622
  #
623
- EVT_DROP_FILES = 10119
623
+ EVT_DROP_FILES = 10122
624
624
 
625
625
  #
626
626
  #
627
- EVT_INIT_DIALOG = 10120
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 = 10121
635
+ EVT_UPDATE_UI = 10124
636
636
 
637
637
  #
638
638
  #
639
- EVT_SIZING = 10083
639
+ EVT_SIZING = 10086
640
640
 
641
641
  #
642
642
  #
643
- EVT_MOVING = 10085
643
+ EVT_MOVING = 10088
644
644
 
645
645
  #
646
646
  #
647
- EVT_MOVE_START = 10086
647
+ EVT_MOVE_START = 10089
648
648
 
649
649
  #
650
650
  #
651
- EVT_MOVE_END = 10087
651
+ EVT_MOVE_END = 10090
652
652
 
653
653
  #
654
654
  #
655
- EVT_HIBERNATE = 10091
655
+ EVT_HIBERNATE = 10094
656
656
 
657
657
  #
658
658
  #
659
- EVT_TEXT_COPY = 10122
659
+ EVT_TEXT_COPY = 10125
660
660
 
661
661
  #
662
662
  #
663
- EVT_TEXT_CUT = 10123
663
+ EVT_TEXT_CUT = 10126
664
664
 
665
665
  #
666
666
  #
667
- EVT_TEXT_PASTE = 10124
667
+ EVT_TEXT_PASTE = 10127
668
668
 
669
669
  #
670
670
  #
671
- EVT_COMMAND_LEFT_CLICK = 10125
671
+ EVT_COMMAND_LEFT_CLICK = 10128
672
672
 
673
673
  #
674
674
  #
675
- EVT_COMMAND_LEFT_DCLICK = 10126
675
+ EVT_COMMAND_LEFT_DCLICK = 10129
676
676
 
677
677
  #
678
678
  #
679
- EVT_COMMAND_RIGHT_CLICK = 10127
679
+ EVT_COMMAND_RIGHT_CLICK = 10130
680
680
 
681
681
  #
682
682
  #
683
- EVT_COMMAND_RIGHT_DCLICK = 10128
683
+ EVT_COMMAND_RIGHT_DCLICK = 10131
684
684
 
685
685
  #
686
686
  #
687
- EVT_COMMAND_SET_FOCUS = 10129
687
+ EVT_COMMAND_SET_FOCUS = 10132
688
688
 
689
689
  #
690
690
  #
691
- EVT_COMMAND_KILL_FOCUS = 10130
691
+ EVT_COMMAND_KILL_FOCUS = 10133
692
692
 
693
693
  #
694
694
  #
695
- EVT_COMMAND_ENTER = 10131
695
+ EVT_COMMAND_ENTER = 10134
696
696
 
697
697
  #
698
698
  #
699
- EVT_HELP = 10132
699
+ EVT_HELP = 10135
700
700
 
701
701
  #
702
702
  #
703
- EVT_DETAILED_HELP = 10133
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 = 10152
711
+ EVT_WINDOW_MODAL_DIALOG_CLOSED = 10155
712
712
 
713
713
  #
714
- EVT_MENU_HIGHLIGHT_ALL = 10107
714
+ EVT_MENU_HIGHLIGHT_ALL = 10110
715
715
 
716
716
  #
717
- EVT_NC_PAINT = 10104
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}.