wxruby3 0.9.5-x64-mingw-ucrt → 0.9.7-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. checksums.yaml +4 -4
  2. data/.wxconfig +9 -8
  3. data/INSTALL.md +315 -78
  4. data/README.md +31 -20
  5. data/ext/wxbase32u_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  7. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  20. data/lib/wx/core/ext.rb +22 -3
  21. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  22. data/lib/wx/doc/gen/accelerator.rb +1 -1
  23. data/lib/wx/doc/gen/accessible.rb +1 -1
  24. data/lib/wx/doc/gen/activity_indicator.rb +1 -1
  25. data/lib/wx/doc/gen/animation.rb +1 -1
  26. data/lib/wx/doc/gen/animation_ctrl.rb +1 -1
  27. data/lib/wx/doc/gen/any_button.rb +1 -1
  28. data/lib/wx/doc/gen/app.rb +1 -1
  29. data/lib/wx/doc/gen/app_traits.rb +1 -1
  30. data/lib/wx/doc/gen/art_provider.rb +1 -1
  31. data/lib/wx/doc/gen/aui/aui_dock_art.rb +430 -426
  32. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +34 -30
  33. data/lib/wx/doc/gen/aui/aui_manager.rb +352 -348
  34. data/lib/wx/doc/gen/aui/aui_manager_event.rb +107 -103
  35. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +157 -153
  36. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +42 -38
  37. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -105
  38. data/lib/wx/doc/gen/aui/aui_notebook.rb +438 -434
  39. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +145 -141
  40. data/lib/wx/doc/gen/aui/aui_pane_info.rb +689 -685
  41. data/lib/wx/doc/gen/aui/aui_tab_art.rb +369 -365
  42. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +100 -96
  43. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +445 -441
  44. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +268 -264
  45. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +179 -175
  46. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +219 -215
  47. data/lib/wx/doc/gen/banner_window.rb +1 -1
  48. data/lib/wx/doc/gen/bitmap.rb +1 -1
  49. data/lib/wx/doc/gen/bitmap_button.rb +1 -1
  50. data/lib/wx/doc/gen/bitmap_combo_box.rb +1 -1
  51. data/lib/wx/doc/gen/book_ctrl_base.rb +1 -1
  52. data/lib/wx/doc/gen/book_ctrl_event.rb +1 -1
  53. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  54. data/lib/wx/doc/gen/brush.rb +1 -1
  55. data/lib/wx/doc/gen/busy_info.rb +1 -1
  56. data/lib/wx/doc/gen/button.rb +1 -1
  57. data/lib/wx/doc/gen/calculate_layout_event.rb +1 -1
  58. data/lib/wx/doc/gen/calendar_ctrl.rb +1 -1
  59. data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
  60. data/lib/wx/doc/gen/calendar_event.rb +1 -1
  61. data/lib/wx/doc/gen/caret.rb +1 -1
  62. data/lib/wx/doc/gen/check_box.rb +1 -1
  63. data/lib/wx/doc/gen/check_list_box.rb +1 -1
  64. data/lib/wx/doc/gen/choice.rb +1 -1
  65. data/lib/wx/doc/gen/choicebook.rb +1 -1
  66. data/lib/wx/doc/gen/client_dc.rb +1 -1
  67. data/lib/wx/doc/gen/clipboard.rb +1 -1
  68. data/lib/wx/doc/gen/collapsible_pane.rb +1 -1
  69. data/lib/wx/doc/gen/collapsible_pane_event.rb +1 -1
  70. data/lib/wx/doc/gen/colour.rb +1 -1
  71. data/lib/wx/doc/gen/colour_dialog.rb +1 -1
  72. data/lib/wx/doc/gen/colour_picker_ctrl.rb +1 -1
  73. data/lib/wx/doc/gen/colour_picker_event.rb +1 -1
  74. data/lib/wx/doc/gen/combo_box.rb +1 -1
  75. data/lib/wx/doc/gen/combo_ctrl.rb +1 -1
  76. data/lib/wx/doc/gen/command_link_button.rb +1 -1
  77. data/lib/wx/doc/gen/config_base.rb +1 -1
  78. data/lib/wx/doc/gen/context_help_button.rb +1 -1
  79. data/lib/wx/doc/gen/control.rb +1 -1
  80. data/lib/wx/doc/gen/control_with_items.rb +1 -1
  81. data/lib/wx/doc/gen/core.rb +5 -5
  82. data/lib/wx/doc/gen/cursor.rb +1 -1
  83. data/lib/wx/doc/gen/data_format.rb +1 -1
  84. data/lib/wx/doc/gen/data_object.rb +1 -1
  85. data/lib/wx/doc/gen/data_object_simple_base.rb +1 -1
  86. data/lib/wx/doc/gen/date_event.rb +1 -1
  87. data/lib/wx/doc/gen/date_picker_ctrl.rb +1 -1
  88. data/lib/wx/doc/gen/dc.rb +1 -1
  89. data/lib/wx/doc/gen/defs.rb +1 -1
  90. data/lib/wx/doc/gen/dial_up_event.rb +1 -1
  91. data/lib/wx/doc/gen/dial_up_manager.rb +1 -1
  92. data/lib/wx/doc/gen/dialog.rb +1 -1
  93. data/lib/wx/doc/gen/dir_dialog.rb +1 -1
  94. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -1
  95. data/lib/wx/doc/gen/dir_picker_ctrl.rb +1 -1
  96. data/lib/wx/doc/gen/drag_drop.rb +1 -1
  97. data/lib/wx/doc/gen/drag_image.rb +1 -1
  98. data/lib/wx/doc/gen/editable_list_box.rb +1 -1
  99. data/lib/wx/doc/gen/event.rb +1 -1
  100. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  101. data/lib/wx/doc/gen/event_filter.rb +1 -1
  102. data/lib/wx/doc/gen/events.rb +1 -1
  103. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  104. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  105. data/lib/wx/doc/gen/file_ctrl.rb +1 -1
  106. data/lib/wx/doc/gen/file_ctrl_event.rb +1 -1
  107. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  108. data/lib/wx/doc/gen/file_dialog_custom_control.rb +1 -1
  109. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +1 -1
  110. data/lib/wx/doc/gen/file_dir_picker_event.rb +1 -1
  111. data/lib/wx/doc/gen/file_picker_ctrl.rb +1 -1
  112. data/lib/wx/doc/gen/file_system.rb +1 -1
  113. data/lib/wx/doc/gen/find_dialog_event.rb +1 -1
  114. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  115. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  116. data/lib/wx/doc/gen/flex_grid_sizer.rb +1 -1
  117. data/lib/wx/doc/gen/font.rb +1 -1
  118. data/lib/wx/doc/gen/font_data.rb +1 -1
  119. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  120. data/lib/wx/doc/gen/font_picker_ctrl.rb +1 -1
  121. data/lib/wx/doc/gen/font_picker_event.rb +1 -1
  122. data/lib/wx/doc/gen/frame.rb +1 -1
  123. data/lib/wx/doc/gen/fs_file.rb +1 -1
  124. data/lib/wx/doc/gen/functions.rb +1 -1
  125. data/lib/wx/doc/gen/gauge.rb +1 -1
  126. data/lib/wx/doc/gen/gb_sizer_item.rb +1 -1
  127. data/lib/wx/doc/gen/gcdc.rb +1 -1
  128. data/lib/wx/doc/gen/gdi_common.rb +3 -3
  129. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  130. data/lib/wx/doc/gen/generic_dir_ctrl.rb +1 -1
  131. data/lib/wx/doc/gen/graphics_context.rb +1 -1
  132. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  133. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +28 -24
  134. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +251 -247
  135. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +25 -21
  136. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +27 -23
  137. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +38 -34
  138. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +25 -21
  139. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +35 -31
  140. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +28 -24
  141. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +34 -30
  142. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +30 -26
  143. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +183 -179
  144. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +29 -25
  145. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +33 -29
  146. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +34 -30
  147. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +67 -63
  148. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +34 -30
  149. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +25 -21
  150. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +93 -89
  151. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +25 -21
  152. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +38 -34
  153. data/lib/wx/doc/gen/grid/grid_ctrl.rb +2722 -2718
  154. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +82 -78
  155. data/lib/wx/doc/gen/grid/grid_event.rb +106 -102
  156. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +93 -89
  157. data/lib/wx/doc/gen/grid/grid_size_event.rb +70 -66
  158. data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -126
  159. data/lib/wx/doc/gen/grid/grid_table_base.rb +303 -299
  160. data/lib/wx/doc/gen/grid/grid_table_message.rb +70 -66
  161. data/lib/wx/doc/gen/grid_bag_sizer.rb +1 -1
  162. data/lib/wx/doc/gen/grid_sizer.rb +1 -1
  163. data/lib/wx/doc/gen/gui_event_loop.rb +1 -1
  164. data/lib/wx/doc/gen/header_ctrl.rb +1 -1
  165. data/lib/wx/doc/gen/header_ctrl_event.rb +1 -1
  166. data/lib/wx/doc/gen/help_controller.rb +1 -1
  167. data/lib/wx/doc/gen/help_provider.rb +1 -1
  168. data/lib/wx/doc/gen/html/html_cell.rb +515 -511
  169. data/lib/wx/doc/gen/html/html_cell_event.rb +58 -54
  170. data/lib/wx/doc/gen/html/html_easy_printing.rb +171 -167
  171. data/lib/wx/doc/gen/html/html_help_controller.rb +292 -288
  172. data/lib/wx/doc/gen/html/html_help_data.rb +147 -143
  173. data/lib/wx/doc/gen/html/html_help_window.rb +232 -228
  174. data/lib/wx/doc/gen/html/html_link_event.rb +30 -26
  175. data/lib/wx/doc/gen/html/html_list_box.rb +301 -297
  176. data/lib/wx/doc/gen/html/html_printout.rb +94 -90
  177. data/lib/wx/doc/gen/html/html_window.rb +406 -402
  178. data/lib/wx/doc/gen/hyperlink_ctrl.rb +1 -1
  179. data/lib/wx/doc/gen/hyperlink_event.rb +1 -1
  180. data/lib/wx/doc/gen/icon.rb +1 -1
  181. data/lib/wx/doc/gen/icon_location.rb +1 -1
  182. data/lib/wx/doc/gen/image.rb +1 -1
  183. data/lib/wx/doc/gen/image_list.rb +1 -1
  184. data/lib/wx/doc/gen/info_bar.rb +1 -1
  185. data/lib/wx/doc/gen/keyboard_state.rb +1 -1
  186. data/lib/wx/doc/gen/list_box.rb +1 -1
  187. data/lib/wx/doc/gen/list_ctrl.rb +1 -1
  188. data/lib/wx/doc/gen/list_event.rb +1 -1
  189. data/lib/wx/doc/gen/listbook.rb +1 -1
  190. data/lib/wx/doc/gen/locale.rb +1 -1
  191. data/lib/wx/doc/gen/log.rb +1 -1
  192. data/lib/wx/doc/gen/mdi_client_window.rb +1 -1
  193. data/lib/wx/doc/gen/mdi_frame.rb +1 -1
  194. data/lib/wx/doc/gen/media_ctrl.rb +1 -1
  195. data/lib/wx/doc/gen/media_event.rb +1 -1
  196. data/lib/wx/doc/gen/memory_dc.rb +1 -1
  197. data/lib/wx/doc/gen/menu.rb +1 -1
  198. data/lib/wx/doc/gen/menu_bar.rb +1 -1
  199. data/lib/wx/doc/gen/menu_item.rb +1 -1
  200. data/lib/wx/doc/gen/message_dialog.rb +1 -1
  201. data/lib/wx/doc/gen/mini_frame.rb +1 -1
  202. data/lib/wx/doc/gen/mirror_dc.rb +1 -1
  203. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  204. data/lib/wx/doc/gen/multi_choice_dialog.rb +1 -1
  205. data/lib/wx/doc/gen/non_owned_window.rb +1 -1
  206. data/lib/wx/doc/gen/notebook.rb +1 -1
  207. data/lib/wx/doc/gen/num_validator.rb +1 -1
  208. data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
  209. data/lib/wx/doc/gen/object.rb +1 -1
  210. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +1 -1
  211. data/lib/wx/doc/gen/paint_dc.rb +1 -1
  212. data/lib/wx/doc/gen/palette.rb +1 -1
  213. data/lib/wx/doc/gen/panel.rb +1 -1
  214. data/lib/wx/doc/gen/pen.rb +1 -1
  215. data/lib/wx/doc/gen/persistence_manager.rb +1 -1
  216. data/lib/wx/doc/gen/persistent_object.rb +1 -1
  217. data/lib/wx/doc/gen/persistent_window.rb +1 -1
  218. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +33 -29
  219. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +299 -295
  220. data/lib/wx/doc/gen/pg/pg_cell.rb +162 -158
  221. data/lib/wx/doc/gen/pg/pg_editor.rb +693 -689
  222. data/lib/wx/doc/gen/pg/pg_multi_button.rb +133 -129
  223. data/lib/wx/doc/gen/pg/pg_properties.rb +2662 -2658
  224. data/lib/wx/doc/gen/pg/pg_property.rb +1929 -1925
  225. data/lib/wx/doc/gen/pg/pg_validation_info.rb +275 -271
  226. data/lib/wx/doc/gen/pg/property_grid.rb +708 -704
  227. data/lib/wx/doc/gen/pg/property_grid_event.rb +168 -164
  228. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1071 -1067
  229. data/lib/wx/doc/gen/pg/property_grid_manager.rb +386 -382
  230. data/lib/wx/doc/gen/pg/property_grid_page.rb +267 -263
  231. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +147 -143
  232. data/lib/wx/doc/gen/picker_base.rb +1 -1
  233. data/lib/wx/doc/gen/platform_info.rb +1 -1
  234. data/lib/wx/doc/gen/popup_window.rb +1 -1
  235. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  236. data/lib/wx/doc/gen/property_sheet_dialog.rb +1 -1
  237. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +32 -28
  238. data/lib/wx/doc/gen/prt/post_script_dc.rb +21 -17
  239. data/lib/wx/doc/gen/prt/preview_frame.rb +49 -45
  240. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +126 -122
  241. data/lib/wx/doc/gen/prt/print_data.rb +637 -633
  242. data/lib/wx/doc/gen/prt/print_dialog.rb +43 -39
  243. data/lib/wx/doc/gen/prt/printer.rb +484 -480
  244. data/lib/wx/doc/gen/prt/printer_dc.rb +26 -22
  245. data/lib/wx/doc/gen/query_layout_info_event.rb +1 -1
  246. data/lib/wx/doc/gen/radio_box.rb +1 -1
  247. data/lib/wx/doc/gen/radio_button.rb +1 -1
  248. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1716 -1712
  249. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +239 -235
  250. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +34 -30
  251. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +439 -435
  252. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +52 -48
  253. data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -112
  254. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +205 -201
  255. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +44 -40
  256. data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -125
  257. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +229 -225
  258. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +34 -30
  259. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +329 -325
  260. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +31 -27
  261. data/lib/wx/doc/gen/rearrange_ctrl.rb +1 -1
  262. data/lib/wx/doc/gen/rearrange_list.rb +1 -1
  263. data/lib/wx/doc/gen/region.rb +1 -1
  264. data/lib/wx/doc/gen/region_iterator.rb +1 -1
  265. data/lib/wx/doc/gen/rtc/rich_text_box.rb +424 -420
  266. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1148 -1144
  267. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +30 -26
  268. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +516 -512
  269. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +1991 -1987
  270. data/lib/wx/doc/gen/rtc/rich_text_event.rb +159 -155
  271. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +167 -163
  272. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +271 -267
  273. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +171 -167
  274. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +88 -84
  275. data/lib/wx/doc/gen/rtc/rich_text_image.rb +323 -319
  276. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2819 -2815
  277. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1187 -1183
  278. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +242 -238
  279. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +286 -282
  280. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +181 -177
  281. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +47 -43
  282. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +145 -141
  283. data/lib/wx/doc/gen/sash_event.rb +1 -1
  284. data/lib/wx/doc/gen/sash_layout_window.rb +1 -1
  285. data/lib/wx/doc/gen/sash_window.rb +1 -1
  286. data/lib/wx/doc/gen/scaled_dc.rb +1 -1
  287. data/lib/wx/doc/gen/screen_dc.rb +1 -1
  288. data/lib/wx/doc/gen/scroll_bar.rb +1 -1
  289. data/lib/wx/doc/gen/scrolled_canvas.rb +1 -1
  290. data/lib/wx/doc/gen/scrolled_control.rb +1 -1
  291. data/lib/wx/doc/gen/scrolled_window.rb +1 -1
  292. data/lib/wx/doc/gen/search_ctrl.rb +1 -1
  293. data/lib/wx/doc/gen/simplebook.rb +1 -1
  294. data/lib/wx/doc/gen/single_choice_dialog.rb +1 -1
  295. data/lib/wx/doc/gen/sizer.rb +1 -1
  296. data/lib/wx/doc/gen/sizer_item.rb +1 -1
  297. data/lib/wx/doc/gen/slider.rb +1 -1
  298. data/lib/wx/doc/gen/spin_button.rb +1 -1
  299. data/lib/wx/doc/gen/spin_ctrl.rb +1 -1
  300. data/lib/wx/doc/gen/spin_ctrl_double.rb +1 -1
  301. data/lib/wx/doc/gen/spin_double_event.rb +1 -1
  302. data/lib/wx/doc/gen/spin_event.rb +1 -1
  303. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  304. data/lib/wx/doc/gen/splitter_event.rb +1 -1
  305. data/lib/wx/doc/gen/splitter_window.rb +1 -1
  306. data/lib/wx/doc/gen/static_bitmap.rb +1 -1
  307. data/lib/wx/doc/gen/static_box.rb +1 -1
  308. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  309. data/lib/wx/doc/gen/static_line.rb +1 -1
  310. data/lib/wx/doc/gen/static_text.rb +1 -1
  311. data/lib/wx/doc/gen/status_bar.rb +1 -1
  312. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4202 -4198
  313. data/lib/wx/doc/gen/stc/styled_text_event.rb +7511 -7507
  314. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +1 -1
  315. data/lib/wx/doc/gen/svg_file_dc.rb +1 -1
  316. data/lib/wx/doc/gen/system_options.rb +1 -1
  317. data/lib/wx/doc/gen/system_settings.rb +1 -1
  318. data/lib/wx/doc/gen/task_bar_button.rb +1 -1
  319. data/lib/wx/doc/gen/task_bar_icon.rb +1 -1
  320. data/lib/wx/doc/gen/task_bar_icon_event.rb +1 -1
  321. data/lib/wx/doc/gen/text_attr.rb +1 -1
  322. data/lib/wx/doc/gen/text_ctrl.rb +1 -1
  323. data/lib/wx/doc/gen/text_entry.rb +1 -1
  324. data/lib/wx/doc/gen/text_entry_dialog.rb +1 -1
  325. data/lib/wx/doc/gen/text_validator.rb +1 -1
  326. data/lib/wx/doc/gen/time_picker_ctrl.rb +1 -1
  327. data/lib/wx/doc/gen/timer.rb +1 -1
  328. data/lib/wx/doc/gen/timer_event.rb +1 -1
  329. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  330. data/lib/wx/doc/gen/toggle_button.rb +1 -1
  331. data/lib/wx/doc/gen/tool_bar.rb +1 -1
  332. data/lib/wx/doc/gen/tool_tip.rb +1 -1
  333. data/lib/wx/doc/gen/toolbook.rb +1 -1
  334. data/lib/wx/doc/gen/top_level_window.rb +1 -1
  335. data/lib/wx/doc/gen/tree_ctrl.rb +1 -1
  336. data/lib/wx/doc/gen/tree_event.rb +1 -1
  337. data/lib/wx/doc/gen/treebook.rb +1 -1
  338. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  339. data/lib/wx/doc/gen/utils.rb +1 -1
  340. data/lib/wx/doc/gen/v_list_box.rb +1 -1
  341. data/lib/wx/doc/gen/v_scrolled_window.rb +1 -1
  342. data/lib/wx/doc/gen/validator.rb +1 -1
  343. data/lib/wx/doc/gen/variant.rb +1 -1
  344. data/lib/wx/doc/gen/window.rb +1 -1
  345. data/lib/wx/doc/gen/window_dc.rb +1 -1
  346. data/lib/wx/doc/gen/window_disabler.rb +1 -1
  347. data/lib/wx/doc/gen/with_images.rb +1 -1
  348. data/lib/wx/doc/gen/wizard.rb +1 -1
  349. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  350. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  351. data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
  352. data/lib/wx/doc/gen/wrap_sizer.rb +1 -1
  353. data/lib/wx/doc/gen/xml_node.rb +1 -1
  354. data/lib/wx/doc/gen/xml_resource.rb +1 -1
  355. data/lib/wx/rtc/ext/rich_text_ctrl.rb +5 -5
  356. data/lib/wx/version.rb +1 -1
  357. data/lib/wx/wxruby/base.rb +6 -4
  358. data/lib/wx/wxruby/cmd/sampler.rb +39 -29
  359. data/lib/wx/wxruby/cmd/setup.rb +122 -0
  360. data/lib/wx/wxruby/cmd/test.rb +56 -6
  361. data/lib/wxruby_aui.so +0 -0
  362. data/lib/wxruby_core.so +0 -0
  363. data/lib/wxruby_grid.so +0 -0
  364. data/lib/wxruby_html.so +0 -0
  365. data/lib/wxruby_pg.so +0 -0
  366. data/lib/wxruby_prt.so +0 -0
  367. data/lib/wxruby_rbn.so +0 -0
  368. data/lib/wxruby_rtc.so +0 -0
  369. data/lib/wxruby_stc.so +0 -0
  370. data/rakelib/install.rb +2 -0
  371. data/rakelib/lib/config/linux.rb +24 -2
  372. data/rakelib/lib/config/macosx.rb +16 -0
  373. data/rakelib/lib/config/mingw.rb +133 -9
  374. data/rakelib/lib/config/pkgman/arch.rb +53 -0
  375. data/rakelib/lib/config/pkgman/base.rb +169 -0
  376. data/rakelib/lib/config/pkgman/debian.rb +66 -0
  377. data/rakelib/lib/config/pkgman/macosx.rb +183 -0
  378. data/rakelib/lib/config/pkgman/rhel.rb +54 -0
  379. data/rakelib/lib/config/pkgman/suse.rb +54 -0
  380. data/rakelib/lib/config/unixish.rb +36 -19
  381. data/rakelib/lib/config.rb +254 -61
  382. data/rakelib/prepost.rake +9 -4
  383. data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +14 -0
  384. data/rakelib/yard/templates/default/fulldoc/html/setup.rb +5 -5
  385. data/rakelib/yard/yard/relative_markdown_links.rb +7 -1
  386. metadata +23 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0ad2e04d5e9c1abdb9af5996fb90f9840998e61791ef6e70dfd38451dc6cc96
4
- data.tar.gz: 650f43b258547d2bf337f3dad0562f92991fee005b99c64347eeab9ae2f8e125
3
+ metadata.gz: de6a6f3d68dc67a60da8abf0b8f3964a8b5ae07cbb814c6d37fe39424ae761a2
4
+ data.tar.gz: 939d2798c7bd84c5bd498704698db4aa068c1d673d44c73752be6f9d0b5b411e
5
5
  SHA512:
6
- metadata.gz: 944eec6b06fd0503e651e5a02760a1ff8e50f2c1f61ea3e0e706d61a7c62e8ee045cda7a6f03e5d1a99eaec2284ba5722e3f70a6fdcd068b0c7ebd6d680de7dc
7
- data.tar.gz: 9f1588496325b7253cd5a110ca3309b92f59b6d7537e0f53a8c8ce002a1b0d5907896a205b44da75b02035a8c1a7ef7b688cea91b02eb53101e849c6215801ed
6
+ metadata.gz: 430e06a96542e2b29b6fe5a3a6c4b6a6263fe22347a53a62192c93902e1889501ec7a9b18520a999e392566f6130c3f167bddb9ac1c53cbf745ac86f440cae43
7
+ data.tar.gz: ccb5ccd3f573e3fa5b7e0bdefc460bc476a3c0a233bc2d389a3c38610563b06f43425c0e72155d9fe5019ac7f0d6e2288dc6d3c7724ce7157c388230fdb9dcf8
data/.wxconfig CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
- "libruby": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby",
3
- "librubyver": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby/3.2.0",
4
- "librubyverarch": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby/3.2.0/x64-mingw-ucrt",
5
- "siteruby": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby/site_ruby",
6
- "siterubyver": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby/site_ruby/3.2.0",
7
- "siterubyverarch": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby/site_ruby/3.2.0/x64-ucrt",
2
+ "libruby": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby",
3
+ "librubyver": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby/3.2.0",
4
+ "librubyverarch": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby/3.2.0/x64-mingw-ucrt",
5
+ "siteruby": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby/site_ruby",
6
+ "siterubyver": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby/site_ruby/3.2.0",
7
+ "siterubyverarch": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby/site_ruby/3.2.0/x64-ucrt",
8
8
  "rbdir": "$siterubyver",
9
9
  "sodir": "$siterubyverarch",
10
10
  "wxwin": "",
11
11
  "wxxml": "",
12
- "wxwininstdir": "C:/hostedtoolcache/windows/Ruby/3.2.2/x64/lib/ruby/site_ruby/3.2.0/x64-ucrt",
12
+ "wxwininstdir": "C:/hostedtoolcache/windows/Ruby/3.2.3/x64/lib/ruby/site_ruby/3.2.0/x64-ucrt",
13
13
  "with-wxwin": true,
14
14
  "with-debug": false,
15
15
  "swig": "swig",
16
- "doxygen": "doxygen"
16
+ "doxygen": "doxygen",
17
+ "git": "git"
17
18
  }
data/INSTALL.md CHANGED
@@ -4,28 +4,104 @@
4
4
 
5
5
  # Installation of wxRuby3
6
6
 
7
- Below are installation instructions for Linux, Windows, and Mac (both AMD64 and ARM64).
7
+ ## Default installation
8
8
 
9
- ## Minimal requirements for installing wxRuby3
9
+ The wxRuby3 gem provides a **worry-free** installation for all supported platforms.
10
10
 
11
- The minimal requirements for installing any source based setup (gem, source package or Github clone) of wxRuby3 are:
11
+ The default gem installation commands
12
+ ```shell
13
+ gem install wxruby3
14
+ ```
15
+
16
+ for Windows and
17
+
18
+ ```shell
19
+ gem install wxruby3 && wxruby setup
20
+ ```
21
+ for Linux and MacOSX (see Note below) and Windows (if installing for Ruby releases older than the latest stable release)
22
+ should always result in a successfully installed wxRuby3 version.<br>
23
+ Just follow the (very few and in some cases none) prompts at the start of the setup procedure and sit back and relax.
24
+
25
+ > **NOTE**<br>
26
+ > Currently installing the wxRuby3 gem for the system supplied Ruby on MacOSX systems does not work.<br>
27
+ > The user is therefor required to install a Ruby interpreter using either [MacPorts](https://www.macports.org/) (both
28
+ > privileged and user installations are supported) or [Homebrew](https://brew.sh/) or Ruby installers/version managers
29
+ > like [ruby-install](https://github.com/postmodern/ruby-install) or [RVM](https://rvm.io) (only user installations supported) .
30
+
31
+ [Below](INSTALL.md#installing-software-requirements) more details regarding the software requirements for wxRuby3, the
32
+ setup procedure and various options to tweak and customize the installation (including platform specific details for
33
+ Linux, Windows and MacOSX) are described.
34
+
35
+ ## Bundled CLI
36
+
37
+ Installing the wxRuby3 gem will also install the bundled `wxruby` CLI binary.
38
+
39
+ For source gem installations the CLI will initially only provide the *setup* command.
40
+
41
+ For binary gem installations and successfully set up source gem installations the *setup* command is replaced by other
42
+ utility commands providing the ability to run the bundled regression tests and access (run or copy) the bundled examples.<br>
43
+ Run the following command to see the available options at any time:
44
+
45
+ ```shell
46
+ wxruby --help
47
+ ```
48
+
49
+ ## Software requirements for wxRuby3
50
+
51
+ The software requirements for setting up a wxRuby3 runtime environment are:
52
+
53
+ | Sofware | Notes |
54
+ |-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
55
+ | Ruby | A supported version of the Ruby interpreter needs to be installed. This is an absolute requirement for any installation as one cannot install gems without Ruby and building from source requires Ruby to drive the build process. |
56
+ | C++ compiler<br>(incl. dev tools like `make`) | Required for a source based installation to build wxWidgets (optionally) and the wxRuby extension libraries.<br/>On linux a recent version of the GNU C++ compiler (with c++-14 support) is required.<br>On Windows the RubyInstaller MSYS2-Devkit would be required.<br>On MacOS XCode with commandline tools would be required. |
57
+ | Git version control toolkit | Required for a source based installation in to (possibly) clone a copy of the wxWidgets Github repository or to clone the Github repository of wxRuby3 itself for a fully source based installation. |
58
+ | Doxygen (>= 1.9.1) | Required for building the wxRuby3 extension libraries for a source based installation. [**1**] |
59
+ | SWIG >= 3.0.12 | Required for building the wxRuby3 extension libraries for a source based installation. [**2**] |
60
+ | Patchelf (Linux) or install_name_tool (OSX) | Required for setting up embedded wxWidgets libraries. [**3**] |
61
+ | wxWidgets (>= 3.2) | Runtime libraries required for any wxRuby3 installation (either from embedded wxWidgets installation or a system or user installation; see below). |
62
+
63
+ Except for Ruby itself all other software requirements can be handled by the **worry-free**, fully automated installation procedure of wxRuby3.
64
+
65
+ But of course any of these requirements can also be fulfilled explicitly with self controlled steps **before** starting the
66
+ wxRuby3 installation procedure. See the platform specific sections of [Installing software requirements](INSTALL.md#installing-software-requirements) for details on
67
+ how to go about that.
68
+
69
+ [**1**] The wxRuby3 build process needs doxygen to generated XML files containing wxWidgets interface specs which are used to
70
+ generate interface definitions for SWIG
71
+
72
+ [**2**] The wxRuby3 build process uses SWIG to generate C++ source code for the wrapper interfaces from
73
+ which the native extensions are compiled. Both SWIG version 3 and version 4 are supported.
12
74
 
13
- | Sofware | Notes |
14
- |-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
15
- | Ruby | A supported version of the Ruby interpreter needs to be installed. |
16
- | C++ compiler<br>(incl. dev tools like `make`) | On linux a recent version of the GNU C++ compiler (with c++-14 support) needs to be installed<br>On Windows the RubyInstaller MSYS2-Devkit needs to be installed<br>On MacOS XCode with commandline tools needs to be installed via <code>sudo xcode-select --install</code> |
17
- | Git version control toolkit | |
18
- | SWIG >= 3.0.12 | On MacOS install Homebrew (https://brew.sh) and than <code>brew install swig</code> |
19
- | Doxygen (>= 1.9.1) | On MacOS install Homebrew (https://brew.sh) and than <code>brew install doxygen@</code> |
20
- | wxWidgets (>= 3.2) | See the <b>wxWidgets installation</b> section below. |
75
+ [**3**] The wxRuby3 build process uses these tools to adjust the shared library load paths ('rpath' setting) in case of embedded wxWidgets libraries.
21
76
 
22
- The wxRuby3 build process requires `git` to clone a copy of the wxWidgets Github repository to extract the interface
23
- specifications from.<br>
24
- The wxRuby3 build process needs doxygen to generated XML files containing wxWidgets interface specs which are used to
25
- generate SWIG interface definitions from which SWIG to generates C++ source code for the wrapper interfaces from
26
- which the native extension is compiled.
77
+ ### wxWidgets installation variants
27
78
 
28
- ## Installation of a wxRuby3 Gem
79
+ wxRuby3 can be built and installed for 3 different types of wxWidgets installations:
80
+
81
+ 1. A system installation of wxWidgets libraries and development files.<br>
82
+ This actually only has real meaning on Linux where this corresponds with installing distribution provided packages.
83
+ On MacOSX and Windows this only means that libraries are installed (as a user addon since no standard distribution
84
+ packages exist for these platforms but possibly using the administrator account) such that they can be loaded using
85
+ the default library load paths and the `wx-config` tool is executable from the default search path.<br>
86
+ This kind of installation is automatically detected and no special setup options are required for the wxRuby3 installation procedure.
87
+ 2. A user installation of wxWidgets libraries and development files.<br>
88
+ This is the most likely scenario for a development setup of wxRuby3 where a special (possibly updated) release of
89
+ wxWidgets is installed to build wxRuby3 for.<br>
90
+ In this case the libraries and development files are most likely not found in standard locations and the wxRuby3
91
+ installation procedure will require specific options to have these locations provided.
92
+ 3. An 'embedded' installation of wxWidgets setup by the wxRuby3 installation procedure.<br>
93
+ This is the default when the installation procedure does not detect a (compatible!) system installation or if an
94
+ option has been provided explicitly specifying to install an embedded wxWidgets version.
95
+
96
+ Please note that in case of option **2** the user is responsible to make sure the wxWidgets shared libraries can be
97
+ found by the system's dynamic loader at runtime.
98
+
99
+ As described with option **3** a wxWidgets system installation must be compatible (>= version 3.2) to be selected. In case
100
+ the installed version does not meet this requirement it is ignored as if not installed.
101
+
102
+ For more information on how to install wxWidgets see the [Installing software requirements](INSTALL.md#installing-software-requirements) section below.
103
+
104
+ ## wxRuby3 gem installation details
29
105
 
30
106
  The wxRuby3 project provides gems on [RubyGems](https://rubygems.org) which can be installed with the
31
107
  standard `gem install` command line this:
@@ -34,92 +110,253 @@ standard `gem install` command line this:
34
110
  gem install wxruby3
35
111
  ```
36
112
 
37
- On Linux systems this will install the source based gem which will automatically build the native wxruby3 extension
38
- for the platform on which wxRuby3 is being installed.
113
+ On Linux and MacOSX systems this will install the source based gem which will require a follow-up command to build the native wxruby3 extension
114
+ for the platform on which wxRuby3 is being installed.<br>
39
115
  On Windows systems a prebuilt binary gem is available for the latest stable release(s) of [RubyInstaller](https://rubyinstaller.org)
40
116
  installed rubies that will be installed by default if installing for that platform (including an embedded, latest
41
117
  stable version, wxWidgets installation).<br>
42
- Alternatively the source gem can be installed on Windows by installing with explicit platform specification like this:
118
+ Alternatively the source gem can be installed on Windows by installing with an explicit platform specification like this:
43
119
 
44
120
  ```shell
45
121
  gem install wxruby3 --platform=ruby
46
122
  ```
47
123
 
48
- When installing the source gem the minimal requirements listed above apply.
124
+ > The result of installing the gem on a Linux platform should be something like this:
125
+ > ```
126
+ > $ gem install wxruby3
127
+ >
128
+ > The wxRuby3 Gem has been successfully installed.
129
+ > Before being able to use wxRuby3 you need to run the post-install setup process
130
+ > by executing the command 'wxruby setup'.
131
+ >
132
+ > Run 'wxruby setup -h' to see information on the available commandline options.
133
+ >
134
+ > Successfully installed wxruby3-0.9.5
135
+ > Parsing documentation for wxruby3-0.9.5
136
+ > Installing ri documentation for wxruby3-0.9.5
137
+ > Done installing documentation for wxruby3 after 10 seconds
138
+ > 1 gem installed
139
+ > ```
140
+
141
+ As said, on Linux and MacOSX systems (also on Windows when installing the source gem) an additional command is required
142
+ to build the actual wxRuby3 extension libraries for the platform which is a wxRuby3 CLI command installed by the gem:
49
143
 
50
- On MacOS, if wxWidgets was not available, you can pull in the latest wxWidgets and build it by adding the `WITH_WXWIN=1` option:
144
+ ```shell
145
+ wxruby setup
146
+ ```
147
+
148
+ The wxRuby3 CLI `wxruby` is installed by all wxRuby3 gems. In case of the source gem initially the CLI will provide only
149
+ a single command `wxruby setup` to finish wxRuby3 extension (build and) installation.
150
+
151
+ For most (user) installations the default setup command as shown above will suffice nicely. In this case the setup
152
+ (or installation) procedure will analyze the system to see if it meets the software requirements described above and if not
153
+ collect information on what is missing and needs to be added to finish the wxRuby3 installation. In order this would check:
154
+
155
+ - availability of the `doxygen` tool
156
+ - availability of the `swig` tool
157
+ - availability of the `git` tool
158
+ - availability of a (compatible) system installation of wxWidgets
159
+ - development tools and libraries required for an embedded wxWidgets installation (in case no system installation is used)
160
+
161
+ If any required software needs to be added the setup procedure will ask consent (showing what it intends to do) and, if given,
162
+ install the missing software using appropriate tooling for the platform (on Linux standard distribution installers which
163
+ may require a 'sudo' password and on MacOSX using either [MacPorts](https://www.macports.org/) or [Homebrew](https://brew.sh/)).
164
+
165
+ > Running the setup command will look something like this:
166
+ > ```
167
+ > $ wxruby setup
168
+ >
169
+ > ---
170
+ > Now running wxRuby3 post-install setup.
171
+ > This will (possibly) install required software, build the wxWidgets libraries,
172
+ > build the native wxRuby3 extensions and generate the wxRuby3 reference documentation.
173
+ > Please be patient as this may take quite a while depending on your system.
174
+ > ---
175
+ >
176
+ > [ --- ATTENTION! --- ]
177
+ > wxRuby3 requires some software packages to be installed before being able to continue building.
178
+ > If you like these can be automatically installed next (if you are building the source gem the
179
+ > software will be removed again after building finishes).
180
+ > Do you want to have the required software installed now? [yN] :
181
+ > ```
182
+
183
+ The initial message shown (between lines starting with '---' ) is indicative of what is going to happen depending
184
+ on options passed to the setup command.<br>
185
+ Building the wxRuby3 native extensions and generating reference documentation will always happen.
186
+
187
+ ### Disable prompting for automatic install
188
+
189
+ To prevent having the setup procedure asking consent the setup procedure can be started with the `--autoinstall` option
190
+ like this:
51
191
 
52
192
  ```shell
53
- gem install wxruby3 -- WITH_WXWIN=1
193
+ wxruby setup --autoinstall
54
194
  ```
55
195
 
56
- ### wxWidgets installation
57
-
58
- Also a wxWidgets installation (version 3.2 or later) is required for which there are multiple options.
59
-
60
- 1. System installed wxWidgets version (including development package)<br/>
61
- <br/>
62
- This is the default method used when installing the source gem without any options.<br>
63
- The wxRuby build procedure will determine the availability and version of wxWidgets by locating and calling
64
- the `wx-config` utility script. In case no (compatible) wxWidgets version is found installation ends with an error.<br>
65
- Please note that even with this method a copy of the wxWidgets project will be checked out from GitHUb as the wxRuby3
66
- build procedure requires access to the wxWidgets interface specification sources which are not normally part of any of
67
- the standard distribution packages.<br/>
68
- <br/>
69
- On MacOS, you can install wxWidgets via [Homebrew](https://brew.sh/):
70
- ```shell
71
- brew install wxwidgets
72
- ```
73
- Afterwards, you can install the Ruby gem and it will detect wxWidgets in the system automatically:
74
- ```shell
75
- gem install wxruby3
76
- ```
77
-
78
- 2. User installed wxWidgets version<br>
79
- <br>
80
- In case the system being installed on does not provide (a compatible) wxWidgets version or a specific (possibly updated)
81
- wxWidgets version is required the source gem can be installed using a user installed version like this (where the
82
- `WXWIN` path should provide the location where the wxWidgets binaries are installed under `<wxwin path>/bin`):<br>
83
- ```shell
84
- gem install wxruby3 -- WXWIN=/path/to/wx/install
85
- ```
86
-
87
- 3. Automatic installed, embedded, wxWidgets version<br>
88
- <br>
89
- This is the easiest method when the system being installed on does not provide (a compatible) wxWidgets version (and
90
- no specific user defined version is required) and can be used by installing the source gem like this (which will
91
- cause automatic checkout and building of the latest stable wxWidgets release (>= 3.2) from GitHub:
92
- ```shell
93
- gem install wxruby3 -- WITH_WXWIN=1
94
- ```
95
-
96
- In case of option **2** it is also possible to do the doxygen XML generation as part of the wxWidgets user installation
97
- and use that for the gem installation. In that case the user is required to generate the XML interface specs using the
98
- `regen` script found in the `docs/doxygen` folder of the wxWidgets installation after which the XML output folder can be
99
- provided to the gem installation as follows:
196
+ Note that on Linux that may still present a prompt in case the `sudo` command requires a password.
197
+
198
+ ### Prevent automatic installation of software requirements
199
+
200
+ To prevent the setup procedure from considering to automatically install (with or without prompting) any missing software
201
+ requirements the setup procedure can be started with the `--no-autoinstall` option like this:
100
202
 
101
203
  ```shell
102
- gem install wxruby3 -- WXWIN=/path/to/wx/install WXXML=/path/to/wx/doxygen/xml
204
+ wxruby setup --no-autoinstall
103
205
  ```
104
206
 
105
- Please also not that in case of option **2** the user is responsible to make sure the wxWidgets shared libraries can be
106
- found by the system's dynamic loader at runtime.
207
+ The setup procedure will still analyze the system for available software requirements and if it finds any missing it
208
+ will end the procedure and show a message of what it found missing.
107
209
 
108
- > **NOTE:** Be patient when installing the source gem. Building wxRuby3 takes a while and when wxWidgets is included event more.
210
+ ### Force embedded wxWidgets installation
109
211
 
110
- > **NOTE:** Be aware that for prerelease versions of the gem you should add the `--pre` argument to the `gem install` command.
212
+ To prevent the setup procedure of using any system installed wxWidgets version the setup procedure can be started with
213
+ the `--with-wxwin` option like this:
111
214
 
112
- ### Bundled CLI
215
+ ```shell
216
+ wxruby setup --with-wxwin
217
+ ```
113
218
 
114
- Installing the wxRuby3 gem will also install the bundled `wxruby` CLI binary.
219
+ This will force the setup procedure to build and install an embedded wxWidgets version for wxRuby3.
115
220
 
116
- Currently this binary can be used to run the bundled regression tests and access (run or copy) the bundled examples.
117
- Run the following command to see the options:
221
+ ### Setup with user installed wxWidgets
222
+
223
+ In case of a (custom) user installation of wxWidgets the `--wxwin` (and optionally `--wxxml`) option(s) can be used to
224
+ start the setup procedure to build for this installation like this:
118
225
 
119
226
  ```shell
120
- wxruby --help
227
+ wxruby setup --wxwin=/my/custom/wxWidgets
228
+ ```
229
+
230
+ If the wxWidgets installation also holds the doxygen generated XML interface specification files in the default location
231
+ (`docs/doxygen/out/xml`) these will be used to build the wxRuby3 extensions. If not, the setup procedure will create these
232
+ files itself (from a freshly cloned copy of the wxWidgets repository).<br>
233
+ If the XML files have been created in a non-standard location that can be passed on to the setup procedure like this:
234
+
235
+ ```shell
236
+ wxruby setup --wxwin=/my/custom/wxWidgets --wxxml=/my/alternate/wxWidgets/xml
237
+ ```
238
+
239
+ > **NOTE**<br>
240
+ > Please be aware that in case of building wxRuby3 for a user installation of wxWidgets the user is also
241
+ > responsible for making sure the wxRuby3 extension library can find the wxWidgets libraries at runtime (normally this
242
+ > requires updating the standard shared library search path for the platform).
243
+
244
+ ### Setup with customized tool paths
245
+
246
+ If for whatever reason the required development tools `doxygen`, `swig` and/or `git` have been installed in a location
247
+ not in the standard executable search path the full path to these tools can be passed on the setup procedure using the
248
+ `--doxygen`, `--swig` and/or `--git` options like this:
249
+
250
+ ```shell
251
+ wxruby setup --doxygen=/my/path/to/doxygen
252
+ ```
253
+
254
+ ### Redirect log to customized path
255
+
256
+ The setup procedure will log full build results to a file setup.log at the location where the gem contents is stored.
257
+ If the setup fails the error message will display the log file location and by default if the setup succeeds the log
258
+ file is deleted.<br>
259
+ To redirect the log file to be stored at an alternate location an not be deleted in any case the `--log` option can be
260
+ used like this:
261
+
262
+ ```shell
263
+ wxruby setup --log=/my/log/folder
121
264
  ```
122
265
 
266
+ In this case the log file would be created as `/my/log/folder/setup.log`.
267
+
268
+ ## Installing software requirements
269
+
270
+ As described, instead of having the wxRuby3 setup procedure install the software requirements automatically these can
271
+ also be installed beforehand.
272
+
273
+ The following sections give some information how to accomplish that for the various supported platforms.
274
+
275
+ ### Installing software requirements on Windows
276
+
277
+ On Windows these software requirements are only needed when **not** installing the binary gem.
278
+
279
+ #### Compiler
280
+
281
+ Download and install the [RubyInstaller MSYS2-Devkit](https://rubyinstaller.org/downloads/) which includes both Ruby
282
+ and a full set of development tools like GNU C++, make etc.
283
+
284
+ #### Doxygen
285
+
286
+ Download the Windows installer [here](https://doxygen.nl/download.html).
287
+
288
+ #### SWIG
289
+
290
+ Download the Windows archive [here](https://www.swig.org/download.html).
291
+
292
+ #### Git
293
+
294
+ Any Windows compatible Git version will do like [this](https://gitforwindows.org/) one.
295
+
296
+ #### wxWidgets
297
+
298
+ See the information on the wxWidgets website [here](https://wxwidgets.org/downloads/). Download and install either
299
+ a binary installation compatible with the MingW64 compiler version available from the RubyInstaller MSYS2-Devkit
300
+ installation (make sure to get this right or bad things will happen) or download a source package and build using the
301
+ compiler tools from the RubyInstaller MSYS2-Devkit installation. See [here](https://docs.wxwidgets.org/3.2/overview_install.html) for information about
302
+ building wxWidgets from source.
303
+
304
+ ### Installing software requirements on MacOSX
305
+
306
+ #### Compiler
307
+
308
+ Install the XCode commandline tools using the command <code>sudo xcode-select --install</code>.
309
+
310
+ #### Doxygen
311
+
312
+ Depending on how you installed Ruby on your MacOS system use [Homebrew](https://brew.sh) with the command <code>brew install doxygen</code>
313
+ or use [MacPorts](https://www.macports.org/) with the command <code>port install doxygen</code>.
314
+
315
+ #### SWIG
316
+
317
+ Depending on how you installed Ruby on your MacOS system use [Homebrew](https://brew.sh) with the command <code>brew install swig</code>
318
+ or use [MacPorts](https://www.macports.org/) with the command <code>port install swig</code>.
319
+
320
+ #### Git
321
+
322
+ Is included in the XCode commandline tools.
323
+
324
+ #### wxWidgets
325
+
326
+ Either install a compatible wxWidgets version (>= 3.2) with the package manager of choice (Homebrew or MacPorts) if available
327
+ or download and build a source package from [here](https://wxwidgets.org/downloads/) (alternatively the wxWidgets Github
328
+ repository could be cloned). See [here](https://docs.wxwidgets.org/3.2/overview_install.html) for information about
329
+ building wxWidgets from source.
330
+
331
+ ### Installing software requirements on Linux
332
+
333
+ #### Compiler
334
+
335
+ Install the GNU C++ compiler and common development tools like 'make' using the system provided package management.
336
+
337
+ #### Patchelf
338
+
339
+ Install the patchelf tool using the system provided package management.
340
+
341
+ #### Doxygen
342
+
343
+ Install the doxygen tool using the system provided package management.
344
+
345
+ #### SWIG
346
+
347
+ Install the swig tool using the system provided package management.
348
+
349
+ #### Git
350
+
351
+ Install the git tool using the system provided package management.
352
+
353
+ #### wxWidgets
354
+
355
+ Either install a compatible wxWidgets version (>= 3.2) with the system provided package management if available
356
+ or download and build a source package from [here](https://wxwidgets.org/downloads/) (alternatively the wxWidgets Github
357
+ repository could be cloned). See [here](https://docs.wxwidgets.org/3.2/overview_install.html) for information about
358
+ building wxWidgets from source.
359
+
123
360
  ## Building from source
124
361
 
125
362
  Checkout the wxRuby3 sources from [GitHub](https://github.com/mcorino/wxRuby3) or download and unpack a release package.
@@ -132,7 +369,7 @@ To be able to run the Rake memory check task the option `:develop` group should
132
369
  The wxRuby3 project provides a Rake based build system. Call `rake help` to get an overview of the available commands.
133
370
  As mentioned there the `rake configure` command is required as the very first command. Call `rake configure[--help]` to
134
371
  get a detailed overview of the options for this command.<br>
135
- As with the source gem 3 options exist for the wxWidgets installation which will have to be specified to `rake configure`.
372
+ As with the source gem 3 options exist for the wxWidgets installation for which details can be specified to `rake configure`.
136
373
 
137
374
  When wxRuby3 has been configured the extensions can be build by calling the `rake build` command. The wxRuby3 build
138
375
  commands are executed using parallel task execution by default.
data/README.md CHANGED
@@ -96,11 +96,11 @@ of these products.
96
96
 
97
97
  Currently the following are fully supported:
98
98
 
99
- | Platform | Ruby version(s) | wxWidgets version(s) |
100
- |----------------------------------------------------------------------------|---------------------------------------------|----------------------|
101
- | Windows 10 (tested)<br>(most likely also Windows 11) | Ruby >= 2.5<br>(RubyInstaller MSYS2-DevKit) | wxWidgets >= 3.2 |
102
- | Linux (tested; any AMD-64 distribution)<br>(most likely also i686 and ARM) | Ruby >= 2.5 | wxWidgets >= 3.2 |
103
- | MacOS >= 10.10 using Cocoa (tested on AMD-64 and ARM64 M2 Chip) | Ruby >= 2.5 | wxWidgets >= 3.2 |
99
+ | Platform | Ruby version(s) | wxWidgets version(s) |
100
+ |-----------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|----------------------|
101
+ | Windows 10 (tested)<br>(most likely also Windows 11) | Ruby >= 2.5<br>(RubyInstaller MSYS2-DevKit) | wxWidgets >= 3.2 |
102
+ | Linux (tested; all major AMD-64 distributions: Ubuntu, Debian, Fedora, OpenSuSE and ArchLinux)<br>(most likely also i686 and ARM) | Ruby >= 2.5 | wxWidgets >= 3.2 |
103
+ | MacOS >= 10.10 using Cocoa (tested on AMD-64 and ARM64 M2 Chip) | Ruby >= 2.5 (MacPorts, Homebrew, ruby-install, RVM) | wxWidgets >= 3.2 |
104
104
 
105
105
  Support for other platforms is not being actively developed at present,
106
106
  but patches are welcome. It is likely to be much simpler to get wxRuby
@@ -111,30 +111,41 @@ on legacy systems (eg Windows 98, Mac OS 9).
111
111
 
112
112
  wxRuby3 is distributed as a Ruby gem on [RubyGems](https://rubygems.org).<br>
113
113
  Apart from a regular source-only version of the gem there is also a binary gem version for Windows 10 provided (for the
114
- latest stable Ruby version at the time of publishing) which includes an embedded wxWidgets installation (also latest
114
+ latest stable Ruby release at the time of publishing) which includes an embedded wxWidgets installation (also latest
115
115
  stable version).
116
116
 
117
- Installing the binary gem version on Windows requires no additional software to be installed except for a supported
118
- version of the Ruby interpreter.<br>
119
- To install the source-only gem the following software is required:
117
+ The wxRuby3 gem provides a **worry-free** installation procedure for all supported platforms.
120
118
 
121
- | Sofware | Notes |
122
- |-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
123
- | Ruby | A supported version of the Ruby interpreter needs to be installed. |
124
- | C++ compiler<br>(incl. dev tools like `make`) | On linux a recent version of the GNU C++ compiler (with c++-14 support) needs to be installed<br>On Windows the RubyInstaller MSYS2-Devkit needs to be installed<br>On MacOS XCode with commandline tools needs to be installed |
125
- | Git version control toolkit | |
126
- | SWIG >= 3.0.12 | On MacOS install with Homebrew |
127
- | Doxygen (>= 1.9.1) | On MacOS install with Homebrew |
128
- | wxWidgets >= 3.2 (*OPTIONAL*) | On Linux most distributions provide system installable (development) packages for wxWidgets providing a supported version.<br>Alternatively you can fairly easily install your own preferred version manually. |
119
+ Installing the binary gem version on Windows (which is the default when installing for the latest stable Ruby release for
120
+ that platform) requires no additional installation steps and/or additional software to be installed except for a supported
121
+ version of the Ruby interpreter. So for this platform the following command is all it takes to get up and running:
129
122
 
130
- See the [INSTALL](INSTALL.md) document for more details.
123
+ ```shell
124
+ gem install wxruby3
125
+ ```
131
126
 
132
- In case the prerequisites above are met the (source-only or binary) gem can be installed executing the following command:
127
+ For the platforms requiring a source based installation (Linux and MacOSX as well as Windows for older Ruby releases
128
+ or when explicitly selecting source based install) an additional (simple) setup step is required to finish installation.
129
+ For these platforms the full installation sequence would be:
133
130
 
134
131
  ```shell
135
- gem install wxruby3
132
+ gem install wxruby3 && wxruby setup
136
133
  ```
137
134
 
135
+ The second part of this command sequence is a fully automated setup procedure provided by the wxRuby3 **CLI** installed with
136
+ the gem. This procedure (by default) will analyze your system and install (after asking your consent) any missing software
137
+ requirements and build the wxRuby3 extension libraries (including a embedded copy of wxWidgets if necessary). It may take
138
+ quite a while depending on your system but you can mostly sit back and relax.
139
+
140
+ > **NOTE**<br>
141
+ > A source based installation requires the availability of the Ruby development headers. User installed Rubies in most cases
142
+ > will already include those but (especially on Linux) system installed Rubies may require having an additional '-dev/-devel'
143
+ > package installed.
144
+
145
+ This install procedure can of course be tweaked and customized with commandline arguments.
146
+ See the [INSTALL](INSTALL.md) document for more details.
147
+
148
+
138
149
  ### Where can I ask a question, or report a bug?
139
150
 
140
151
  Use GitHUb Issues.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file