wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (383) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +73 -22
  3. data/README.md +40 -8
  4. data/assets/hello_button-macos.png +0 -0
  5. data/assets/hello_button-msw.png +0 -0
  6. data/assets/hello_button_clicked-macos.png +0 -0
  7. data/assets/hello_button_clicked-msw.png +0 -0
  8. data/assets/hello_button_clicked_combi.png +0 -0
  9. data/assets/hello_world-macos.png +0 -0
  10. data/assets/hello_world-msw.png +0 -0
  11. data/assets/hello_world_combi.png +0 -0
  12. data/ext/wxbase32u_gcc_custom.dll +0 -0
  13. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  14. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  25. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  26. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  27. data/lib/wx/core/brush.rb +6 -0
  28. data/lib/wx/core/event_loop.rb +7 -0
  29. data/lib/wx/core/events/evt_list.rb +7 -0
  30. data/lib/wx/core/evthandler.rb +12 -2
  31. data/lib/wx/core/font.rb +22 -14
  32. data/lib/wx/core/helpprovider.rb +2 -2
  33. data/lib/wx/core/image.rb +33 -0
  34. data/lib/wx/core/listctrl.rb +17 -13
  35. data/lib/wx/core/log.rb +90 -0
  36. data/lib/wx/core/menu.rb +5 -0
  37. data/lib/wx/core/pen.rb +6 -0
  38. data/lib/wx/core/window.rb +28 -1
  39. data/lib/wx/doc/app.rb +40 -0
  40. data/lib/wx/doc/bitmap.rb +11 -15
  41. data/lib/wx/doc/brush.rb +17 -0
  42. data/lib/wx/doc/event_loop.rb +7 -0
  43. data/lib/wx/doc/extra/00_starting.md +6 -6
  44. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  45. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  46. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  47. data/lib/wx/doc/font.rb +27 -0
  48. data/lib/wx/doc/functions.rb +51 -23
  49. data/lib/wx/doc/gc_dc.rb +1 -1
  50. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  51. data/lib/wx/doc/gen/accelerator.rb +6 -6
  52. data/lib/wx/doc/gen/accessible.rb +6 -2
  53. data/lib/wx/doc/gen/activity_indicator.rb +65 -0
  54. data/lib/wx/doc/gen/animation.rb +7 -7
  55. data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
  56. data/lib/wx/doc/gen/any_button.rb +1 -1
  57. data/lib/wx/doc/gen/app.rb +17 -11
  58. data/lib/wx/doc/gen/art_provider.rb +61 -1
  59. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  60. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  61. data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
  62. data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
  63. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
  64. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
  65. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
  66. data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
  67. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  68. data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
  69. data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
  70. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
  71. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
  72. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
  73. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
  74. data/lib/wx/doc/gen/bitmap.rb +32 -26
  75. data/lib/wx/doc/gen/bitmap_button.rb +10 -6
  76. data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
  77. data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
  78. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  79. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  80. data/lib/wx/doc/gen/brush.rb +16 -4
  81. data/lib/wx/doc/gen/busy_info.rb +1 -1
  82. data/lib/wx/doc/gen/button.rb +19 -7
  83. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  84. data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
  85. data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
  86. data/lib/wx/doc/gen/calendar_event.rb +3 -3
  87. data/lib/wx/doc/gen/caret.rb +2 -2
  88. data/lib/wx/doc/gen/check_box.rb +10 -6
  89. data/lib/wx/doc/gen/check_list_box.rb +8 -7
  90. data/lib/wx/doc/gen/choice.rb +7 -6
  91. data/lib/wx/doc/gen/choicebook.rb +12 -6
  92. data/lib/wx/doc/gen/client_dc.rb +1 -1
  93. data/lib/wx/doc/gen/clipboard.rb +1 -1
  94. data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
  95. data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
  96. data/lib/wx/doc/gen/colour.rb +16 -6
  97. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  98. data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
  99. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  100. data/lib/wx/doc/gen/combo_box.rb +22 -13
  101. data/lib/wx/doc/gen/context_help_button.rb +50 -1
  102. data/lib/wx/doc/gen/control.rb +9 -6
  103. data/lib/wx/doc/gen/core.rb +5 -2
  104. data/lib/wx/doc/gen/cursor.rb +16 -11
  105. data/lib/wx/doc/gen/data_format.rb +2 -2
  106. data/lib/wx/doc/gen/data_object.rb +23 -16
  107. data/lib/wx/doc/gen/date_event.rb +3 -3
  108. data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
  109. data/lib/wx/doc/gen/dc.rb +37 -12
  110. data/lib/wx/doc/gen/defs.rb +16 -16
  111. data/lib/wx/doc/gen/dialog.rb +19 -5
  112. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  113. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  114. data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
  115. data/lib/wx/doc/gen/drag_drop.rb +15 -15
  116. data/lib/wx/doc/gen/drag_image.rb +6 -6
  117. data/lib/wx/doc/gen/editable_list_box.rb +7 -3
  118. data/lib/wx/doc/gen/event.rb +44 -13
  119. data/lib/wx/doc/gen/event_blocker.rb +19 -17
  120. data/lib/wx/doc/gen/event_filter.rb +43 -47
  121. data/lib/wx/doc/gen/event_list.rb +22 -15
  122. data/lib/wx/doc/gen/events.rb +215 -79
  123. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  124. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  125. data/lib/wx/doc/gen/file_dialog.rb +64 -56
  126. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  127. data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
  128. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  129. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  130. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  131. data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
  132. data/lib/wx/doc/gen/font.rb +39 -29
  133. data/lib/wx/doc/gen/font_data.rb +9 -5
  134. data/lib/wx/doc/gen/font_dialog.rb +3 -3
  135. data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
  136. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  137. data/lib/wx/doc/gen/frame.rb +34 -11
  138. data/lib/wx/doc/gen/fs_file.rb +4 -17
  139. data/lib/wx/doc/gen/gauge.rb +11 -7
  140. data/lib/wx/doc/gen/gcdc.rb +5 -1
  141. data/lib/wx/doc/gen/gdi_common.rb +35 -33
  142. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  143. data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
  144. data/lib/wx/doc/gen/graphics_context.rb +29 -28
  145. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  146. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
  147. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
  148. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
  149. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
  150. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  151. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
  152. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
  153. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
  154. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
  155. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  156. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
  157. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  158. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  159. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  160. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  161. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
  162. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
  163. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
  164. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
  165. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
  166. data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
  167. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  168. data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
  169. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
  170. data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
  171. data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
  172. data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
  173. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  174. data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
  175. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  176. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  177. data/lib/wx/doc/gen/help_controller.rb +18 -12
  178. data/lib/wx/doc/gen/html/html_cell.rb +36 -18
  179. data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
  180. data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
  181. data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
  182. data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
  183. data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
  184. data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
  185. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  186. data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
  187. data/lib/wx/doc/gen/html/html_printout.rb +15 -5
  188. data/lib/wx/doc/gen/html/html_window.rb +19 -8
  189. data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
  190. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  191. data/lib/wx/doc/gen/icon.rb +14 -14
  192. data/lib/wx/doc/gen/image.rb +119 -64
  193. data/lib/wx/doc/gen/image_list.rb +10 -6
  194. data/lib/wx/doc/gen/keyboard_state.rb +7 -7
  195. data/lib/wx/doc/gen/list_box.rb +30 -21
  196. data/lib/wx/doc/gen/list_ctrl.rb +169 -78
  197. data/lib/wx/doc/gen/list_event.rb +24 -2
  198. data/lib/wx/doc/gen/listbook.rb +12 -6
  199. data/lib/wx/doc/gen/locale.rb +11 -36
  200. data/lib/wx/doc/gen/log.rb +122 -45
  201. data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
  202. data/lib/wx/doc/gen/mdi_frame.rb +15 -9
  203. data/lib/wx/doc/gen/media_ctrl.rb +7 -4
  204. data/lib/wx/doc/gen/media_event.rb +8 -2
  205. data/lib/wx/doc/gen/memory_dc.rb +23 -27
  206. data/lib/wx/doc/gen/menu.rb +9 -9
  207. data/lib/wx/doc/gen/menu_bar.rb +4 -10
  208. data/lib/wx/doc/gen/menu_item.rb +115 -34
  209. data/lib/wx/doc/gen/message_dialog.rb +48 -30
  210. data/lib/wx/doc/gen/mini_frame.rb +12 -3
  211. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  212. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  213. data/lib/wx/doc/gen/non_owned_window.rb +6 -7
  214. data/lib/wx/doc/gen/notebook.rb +20 -15
  215. data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
  216. data/lib/wx/doc/gen/object.rb +2 -2
  217. data/lib/wx/doc/gen/palette.rb +3 -3
  218. data/lib/wx/doc/gen/panel.rb +4 -3
  219. data/lib/wx/doc/gen/pen.rb +25 -12
  220. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
  221. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
  222. data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
  223. data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
  224. data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
  225. data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
  226. data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
  227. data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
  228. data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
  229. data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
  230. data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
  231. data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
  232. data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
  233. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
  234. data/lib/wx/doc/gen/picker_base.rb +12 -11
  235. data/lib/wx/doc/gen/platform_info.rb +7 -7
  236. data/lib/wx/doc/gen/popup_window.rb +6 -6
  237. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  238. data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
  239. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  240. data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
  241. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  242. data/lib/wx/doc/gen/prt/print_data.rb +24 -18
  243. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  244. data/lib/wx/doc/gen/prt/printer.rb +22 -22
  245. data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
  246. data/lib/wx/doc/gen/radio_box.rb +12 -18
  247. data/lib/wx/doc/gen/radio_button.rb +8 -6
  248. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
  249. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
  250. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  251. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
  252. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
  253. data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
  254. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
  255. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  256. data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
  257. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
  258. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  259. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
  260. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
  261. data/lib/wx/doc/gen/region.rb +9 -8
  262. data/lib/wx/doc/gen/region_iterator.rb +2 -2
  263. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
  264. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
  265. data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
  266. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
  267. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
  268. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
  269. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
  270. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  271. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  272. data/lib/wx/doc/gen/sash_event.rb +3 -1
  273. data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
  274. data/lib/wx/doc/gen/sash_window.rb +8 -3
  275. data/lib/wx/doc/gen/scroll_bar.rb +29 -8
  276. data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
  277. data/lib/wx/doc/gen/scrolled_control.rb +41 -23
  278. data/lib/wx/doc/gen/scrolled_window.rb +41 -23
  279. data/lib/wx/doc/gen/search_ctrl.rb +15 -8
  280. data/lib/wx/doc/gen/simplebook.rb +2 -2
  281. data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
  282. data/lib/wx/doc/gen/sizer.rb +29 -28
  283. data/lib/wx/doc/gen/slider.rb +49 -16
  284. data/lib/wx/doc/gen/spin_button.rb +15 -9
  285. data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
  286. data/lib/wx/doc/gen/spin_event.rb +5 -2
  287. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  288. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  289. data/lib/wx/doc/gen/splitter_window.rb +20 -4
  290. data/lib/wx/doc/gen/static_bitmap.rb +5 -5
  291. data/lib/wx/doc/gen/static_box.rb +36 -32
  292. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  293. data/lib/wx/doc/gen/static_line.rb +5 -4
  294. data/lib/wx/doc/gen/static_text.rb +12 -6
  295. data/lib/wx/doc/gen/status_bar.rb +14 -5
  296. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
  297. data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
  298. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  299. data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
  300. data/lib/wx/doc/gen/system_options.rb +11 -1
  301. data/lib/wx/doc/gen/system_settings.rb +3 -3
  302. data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
  303. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  304. data/lib/wx/doc/gen/text_attr.rb +11 -7
  305. data/lib/wx/doc/gen/text_ctrl.rb +61 -92
  306. data/lib/wx/doc/gen/text_entry.rb +28 -40
  307. data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
  308. data/lib/wx/doc/gen/text_validator.rb +0 -11
  309. data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
  310. data/lib/wx/doc/gen/timer.rb +8 -4
  311. data/lib/wx/doc/gen/timer_event.rb +19 -26
  312. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  313. data/lib/wx/doc/gen/toggle_button.rb +6 -5
  314. data/lib/wx/doc/gen/tool_bar.rb +41 -24
  315. data/lib/wx/doc/gen/tool_tip.rb +2 -2
  316. data/lib/wx/doc/gen/toolbook.rb +6 -3
  317. data/lib/wx/doc/gen/top_level_window.rb +35 -25
  318. data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
  319. data/lib/wx/doc/gen/tree_event.rb +23 -2
  320. data/lib/wx/doc/gen/treebook.rb +6 -2
  321. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  322. data/lib/wx/doc/gen/utils.rb +9 -3
  323. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  324. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  325. data/lib/wx/doc/gen/validator.rb +7 -5
  326. data/lib/wx/doc/gen/variant.rb +34 -97
  327. data/lib/wx/doc/gen/window.rb +157 -102
  328. data/lib/wx/doc/gen/window_dc.rb +1 -1
  329. data/lib/wx/doc/gen/with_images.rb +1 -1
  330. data/lib/wx/doc/gen/wizard.rb +17 -4
  331. data/lib/wx/doc/gen/wizard_event.rb +9 -2
  332. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  333. data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
  334. data/lib/wx/doc/gen/xml_node.rb +3 -3
  335. data/lib/wx/doc/gen/xml_resource.rb +12 -9
  336. data/lib/wx/doc/image.rb +42 -12
  337. data/lib/wx/doc/list_ctrl.rb +32 -0
  338. data/lib/wx/doc/log.rb +28 -0
  339. data/lib/wx/doc/pen.rb +17 -0
  340. data/lib/wx/doc/prt/printer_dc.rb +2 -2
  341. data/lib/wx/doc/radio_box.rb +20 -0
  342. data/lib/wx/doc/scaled_dc.rb +1 -1
  343. data/lib/wx/doc/text_validator.rb +12 -0
  344. data/lib/wx/doc/window.rb +27 -0
  345. data/lib/wx/keyword_defs.rb +77 -76
  346. data/lib/wx/prt/keyword_defs.rb +5 -1
  347. data/lib/wx/version.rb +1 -1
  348. data/lib/wxruby_aui.so +0 -0
  349. data/lib/wxruby_core.so +0 -0
  350. data/lib/wxruby_grid.so +0 -0
  351. data/lib/wxruby_html.so +0 -0
  352. data/lib/wxruby_pg.so +0 -0
  353. data/lib/wxruby_prt.so +0 -0
  354. data/lib/wxruby_rbn.so +0 -0
  355. data/lib/wxruby_rtc.so +0 -0
  356. data/lib/wxruby_stc.so +0 -0
  357. data/rakelib/install.rb +17 -6
  358. data/rakelib/lib/config/linux.rb +4 -2
  359. data/rakelib/lib/config/macosx.rb +120 -1
  360. data/rakelib/lib/config/mingw.rb +6 -1
  361. data/rakelib/lib/config/unixish.rb +26 -11
  362. data/rakelib/lib/config.rb +15 -6
  363. data/samples/aui/aui.rb +432 -363
  364. data/samples/propgrid/propgrid.rb +3 -0
  365. data/samples/sampler/editor.rb +33 -25
  366. data/samples/sampler/sample.rb +2 -2
  367. data/samples/sampler/stc_editor.rb +4 -2
  368. data/tests/lib/item_container_tests.rb +82 -0
  369. data/tests/lib/text_entry_tests.rb +80 -0
  370. data/tests/lib/wxapp_runner.rb +12 -0
  371. data/tests/lib/wxframe_runner.rb +89 -4
  372. data/tests/test_art.rb +9 -0
  373. data/tests/test_box_sizer.rb +161 -0
  374. data/tests/test_ext_controls.rb +28 -0
  375. data/tests/test_font.rb +239 -0
  376. data/tests/test_grid_sizer.rb +148 -0
  377. data/tests/test_intl.rb +5 -1
  378. data/tests/test_list_ctrl.rb +53 -0
  379. data/tests/test_log.rb +163 -0
  380. data/tests/test_std_controls.rb +321 -37
  381. data/tests/test_timer.rb +95 -0
  382. data/tests/test_window.rb +340 -0
  383. metadata +36 -2
@@ -3,7 +3,7 @@
3
3
  # Adapted from wxRuby2.
4
4
 
5
5
  # Window : base class for all widgets and frames
6
- Wx::define_keyword_ctors('Window') do
6
+ Wx::define_keyword_ctors(Wx::Window) do
7
7
  wx_ctor_params :id, :pos, :size, :style
8
8
  wx_ctor_params :name => 'window'
9
9
  end
@@ -13,26 +13,26 @@ end
13
13
  # wxTopLevelWindow ABSTRACT: Any top level window, dialog or frame
14
14
 
15
15
  # Normal frame
16
- Wx::define_keyword_ctors('Frame') do
16
+ Wx::define_keyword_ctors(Wx::Frame) do
17
17
  wx_ctor_params :id, :title, :pos, :size, :style => Wx::DEFAULT_FRAME_STYLE
18
18
  wx_ctor_params :name => 'frame'
19
19
  end
20
20
 
21
21
  # MDI child frame
22
- Wx::define_keyword_ctors('MDIChildFrame') do
22
+ Wx::define_keyword_ctors(Wx::MDIChildFrame) do
23
23
  wx_ctor_params :id, :title, :pos, :size, :style => Wx::DEFAULT_FRAME_STYLE
24
24
  wx_ctor_params :name => 'frame'
25
25
  end
26
26
 
27
27
  # MDI parent frame
28
- Wx::define_keyword_ctors('MDIParentFrame') do
28
+ Wx::define_keyword_ctors(Wx::MDIParentFrame) do
29
29
  wx_ctor_params :id, :title, :pos, :size
30
30
  wx_ctor_params :style => Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL
31
31
  wx_ctor_params :name => 'frame'
32
32
  end
33
33
 
34
34
  # wxMiniFrame A frame with a small title bar
35
- Wx::define_keyword_ctors('MiniFrame') do
35
+ Wx::define_keyword_ctors(Wx::MiniFrame) do
36
36
  wx_ctor_params :id, :title, :pos, :size
37
37
  wx_ctor_params :style => Wx::DEFAULT_FRAME_STYLE
38
38
  wx_ctor_params :name => 'frame'
@@ -42,7 +42,7 @@ end
42
42
  # wxTipWindow Shows text in a small window
43
43
 
44
44
  # wxWizard A wizard dialog
45
- Wx::define_keyword_ctors('Wizard') do
45
+ Wx::define_keyword_ctors(Wx::Wizard) do
46
46
  wx_ctor_params :id
47
47
  wx_ctor_params :title
48
48
  wx_ctor_params :bitmap
@@ -63,37 +63,37 @@ Wx::define_keyword_ctors('GLCanvas') do
63
63
  end
64
64
 
65
65
  # A window whose colour changes according to current user settings
66
- Wx::define_keyword_ctors('Panel') do
66
+ Wx::define_keyword_ctors(Wx::Panel) do
67
67
  wx_ctor_params :id, :pos, :size, :style => Wx::TAB_TRAVERSAL
68
68
  wx_ctor_params :name => 'panel'
69
69
  end
70
70
 
71
71
  # wxScrolledWindow Window with automatically managed scrollbars
72
- Wx::define_keyword_ctors('ScrolledWindow') do
72
+ Wx::define_keyword_ctors(Wx::ScrolledWindow) do
73
73
  wx_ctor_params :id, :pos, :size, :style => Wx::VSCROLL|Wx::HSCROLL
74
74
  wx_ctor_params :name => 'scrolledWindow'
75
75
  end
76
76
 
77
77
  # Window which can be split vertically or horizontally
78
- Wx::define_keyword_ctors('SplitterWindow') do
78
+ Wx::define_keyword_ctors(Wx::SplitterWindow) do
79
79
  wx_ctor_params :id, :pos, :size, :style => Wx::SP_3D
80
80
  wx_ctor_params :name => 'splitterWindow'
81
81
  end
82
82
 
83
83
  # Implements the status bar on a frame
84
- Wx::define_keyword_ctors('StatusBar') do
84
+ Wx::define_keyword_ctors(Wx::StatusBar) do
85
85
  wx_ctor_params :id, :style => Wx::STB_SIZEGRIP
86
86
  wx_ctor_params :name => 'statusBar'
87
87
  end
88
88
 
89
89
  # Toolbar class
90
- Wx::define_keyword_ctors('ToolBar') do
90
+ Wx::define_keyword_ctors(Wx::ToolBar) do
91
91
  wx_ctor_params :id, :pos, :size, :style => Wx::TB_HORIZONTAL|Wx::NO_BORDER
92
92
  wx_ctor_params :name => 'toolBar' # not as documented in Wx 2.6.3
93
93
  end
94
94
 
95
95
  # ToolBarTool class
96
- Wx::define_keyword_ctors('ToolBarTool') do
96
+ Wx::define_keyword_ctors(Wx::ToolBarTool) do
97
97
  # By default we want Wx to generate an id for us, thus it doesn't
98
98
  # respect the wxWidgets default constructor value which is
99
99
  # ID_SEPARATOR
@@ -108,32 +108,32 @@ Wx::define_keyword_ctors('ToolBarTool') do
108
108
  end
109
109
 
110
110
  # Similar to notebook but using choice control
111
- Wx::define_keyword_ctors('Choicebook') do
111
+ Wx::define_keyword_ctors(Wx::Choicebook) do
112
112
  wx_ctor_params :id, :pos, :size, :style, :name => 'choiceBook'
113
113
  end
114
114
 
115
115
  # Notebook class
116
- Wx::define_keyword_ctors('Notebook') do
116
+ Wx::define_keyword_ctors(Wx::Notebook) do
117
117
  wx_ctor_params :id, :pos, :size, :style, :name => 'noteBook'
118
118
  end
119
119
 
120
120
  # Similar to notebook but using list control
121
- Wx::define_keyword_ctors('Listbook') do
121
+ Wx::define_keyword_ctors(Wx::Listbook) do
122
122
  wx_ctor_params :id, :pos, :size, :style, :name => 'listBook'
123
123
  end
124
124
 
125
125
  # Similar to notebook but using toolbar
126
- Wx::define_keyword_ctors('Toolbook') do
126
+ Wx::define_keyword_ctors(Wx::Toolbook) do
127
127
  wx_ctor_params :id, :pos, :size, :style, :name => 'toolBook'
128
128
  end
129
129
 
130
130
  # Similar to notebook but using tree control
131
- Wx::define_keyword_ctors('Treebook') do
131
+ Wx::define_keyword_ctors(Wx::Treebook) do
132
132
  wx_ctor_params :id, :pos, :size, :style, :name => 'treeBook'
133
133
  end
134
134
 
135
135
  # wxSashWindow: Window with four optional sashes that can be dragged
136
- Wx::define_keyword_ctors('SashWindow') do
136
+ Wx::define_keyword_ctors(Wx::SashWindow) do
137
137
  wx_ctor_params :id, :pos, :size
138
138
  wx_ctor_params :style => Wx::CLIP_CHILDREN|Wx::SW_3D
139
139
  wx_ctor_params :name => 'sashWindow'
@@ -141,7 +141,7 @@ end
141
141
 
142
142
  # wxSashLayoutWindow: Window that can be involved in an IDE-like layout
143
143
  # arrangement
144
- Wx::define_keyword_ctors('SashLayoutWindow') do
144
+ Wx::define_keyword_ctors(Wx::SashLayoutWindow) do
145
145
  wx_ctor_params :id, :pos, :size
146
146
  wx_ctor_params :style => Wx::CLIP_CHILDREN|Wx::SW_3D
147
147
  wx_ctor_params :name => 'layoutWindow'
@@ -150,12 +150,12 @@ end
150
150
  # wxVScrolledWindow: As wxScrolledWindow but supports lines of variable height
151
151
 
152
152
  # wxWizardPage: A base class for the page in wizard dialog.
153
- Wx::define_keyword_ctors('WizardPage') do
153
+ Wx::define_keyword_ctors(Wx::WizardPage) do
154
154
  wx_ctor_params :bitmap => Wx::NULL_BITMAP
155
155
  end
156
156
 
157
157
  # wxWizardPageSimple: A page in wizard dialog.
158
- Wx::define_keyword_ctors('WizardPageSimple') do
158
+ Wx::define_keyword_ctors(Wx::WizardPageSimple) do
159
159
  wx_ctor_params :prev => nil
160
160
  wx_ctor_params :next => nil
161
161
  wx_ctor_params :bitmap
@@ -163,19 +163,19 @@ end
163
163
 
164
164
  ### DIALOGS
165
165
  # wxDialog Base class for common dialogs
166
- Wx::define_keyword_ctors('Dialog') do
166
+ Wx::define_keyword_ctors(Wx::Dialog) do
167
167
  wx_ctor_params :id, :title => ''
168
168
  wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
169
169
  wx_ctor_params :name => 'dialogBox'
170
170
  end
171
171
 
172
172
  # wxColourDialog Colour chooser dialog
173
- Wx::define_keyword_ctors('ColourDialog') do
173
+ Wx::define_keyword_ctors(Wx::ColourDialog) do
174
174
  wx_ctor_params :colour_data => nil
175
175
  end
176
176
 
177
177
  # wxDirDialog Directory selector dialog
178
- Wx::define_keyword_ctors('DirDialog') do
178
+ Wx::define_keyword_ctors(Wx::DirDialog) do
179
179
  wx_ctor_params :message => 'Choose a directory'
180
180
  wx_ctor_params :default_path => ''
181
181
  wx_ctor_params :style => Wx::DD_DEFAULT_STYLE
@@ -183,7 +183,7 @@ Wx::define_keyword_ctors('DirDialog') do
183
183
  end
184
184
 
185
185
  # wxFileDialog File selector dialog
186
- Wx::define_keyword_ctors('FileDialog') do
186
+ Wx::define_keyword_ctors(Wx::FileDialog) do
187
187
  wx_ctor_params :message => 'Choose a file'
188
188
  wx_ctor_params :default_dir => ''
189
189
  wx_ctor_params :default_file => ''
@@ -193,14 +193,14 @@ Wx::define_keyword_ctors('FileDialog') do
193
193
  end
194
194
 
195
195
  # wxFindReplaceDialog Text search/replace dialog
196
- Wx::define_keyword_ctors('FindReplaceDialog') do
196
+ Wx::define_keyword_ctors(Wx::FindReplaceDialog) do
197
197
  wx_ctor_params :find_replace_data => Wx::FindReplaceData.new()
198
198
  wx_ctor_params :title => 'findReplaceDialog'
199
199
  wx_ctor_params :style
200
200
  end
201
201
 
202
202
  # Dialog to get one or more selections from a list
203
- Wx::define_keyword_ctors('MultiChoiceDialog') do
203
+ Wx::define_keyword_ctors(Wx::MultiChoiceDialog) do
204
204
  wx_ctor_params :message => ''
205
205
  wx_ctor_params :caption => ''
206
206
  wx_ctor_params :choices => []
@@ -210,7 +210,7 @@ Wx::define_keyword_ctors('MultiChoiceDialog') do
210
210
  end
211
211
 
212
212
  # Dialog to get a single selection from a list and return the string
213
- Wx::define_keyword_ctors('SingleChoiceDialog') do
213
+ Wx::define_keyword_ctors(Wx::SingleChoiceDialog) do
214
214
  wx_ctor_params :message => ''
215
215
  wx_ctor_params :caption => ''
216
216
  wx_ctor_params :choices => []
@@ -221,7 +221,7 @@ Wx::define_keyword_ctors('SingleChoiceDialog') do
221
221
  end
222
222
 
223
223
  # Dialog to get a single line of text from the user
224
- Wx::define_keyword_ctors('TextEntryDialog') do
224
+ Wx::define_keyword_ctors(Wx::TextEntryDialog) do
225
225
  wx_ctor_params :message => ''
226
226
  wx_ctor_params :caption => 'Please enter text'
227
227
  wx_ctor_params :default_value => ''
@@ -230,22 +230,19 @@ Wx::define_keyword_ctors('TextEntryDialog') do
230
230
  end
231
231
 
232
232
  # wxPasswordEntryDialog Dialog to get a password from the user
233
- # Wx::define_keyword_ctors('PasswordEntryDialog') do
234
- # wx_ctor_params :message => ''
235
- # wx_ctor_params :caption => 'Enter password'
236
- # wx_ctor_params :default_value => ''
237
- # wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
238
- # wx_ctor_params :pos
239
- # end
233
+ Wx::define_keyword_ctors(Wx::PasswordEntryDialog) do
234
+ wx_ctor_params :message => ''
235
+ wx_ctor_params :caption => 'Enter password'
236
+ wx_ctor_params :default_value => ''
237
+ wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
238
+ wx_ctor_params :pos
239
+ end
240
240
 
241
241
  # wxFontDialog Font chooser dialog
242
242
  # wxPageSetupDialog Standard page setup dialog
243
- Wx::define_keyword_ctors('PageSetupDialog') do
244
- wx_ctor_params :data
245
- end
246
243
 
247
244
  # Simple message box dialog
248
- Wx::define_keyword_ctors('MessageDialog') do
245
+ Wx::define_keyword_ctors(Wx::MessageDialog) do
249
246
  wx_ctor_params :message => ''
250
247
  wx_ctor_params :caption => 'Message box'
251
248
  wx_ctor_params :style => Wx::OK|Wx::CANCEL
@@ -253,7 +250,7 @@ Wx::define_keyword_ctors('MessageDialog') do
253
250
  end
254
251
 
255
252
  # Property editing dialog
256
- Wx::define_keyword_ctors('PropertySheetDialog') do
253
+ Wx::define_keyword_ctors(Wx::PropertySheetDialog) do
257
254
  wx_ctor_params :id, :title
258
255
  wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
259
256
  wx_ctor_params :name => 'propertySheetDialog'
@@ -262,14 +259,14 @@ end
262
259
  ### CONTROLS
263
260
 
264
261
  # Push button control, displaying text
265
- Wx::define_keyword_ctors('Button') do
262
+ Wx::define_keyword_ctors(Wx::Button) do
266
263
  wx_ctor_params :id, :label => ''
267
264
  wx_ctor_params :pos, :size, :style
268
265
  wx_ctor_params :validator, :name => 'button'
269
266
  end
270
267
 
271
268
  # Push button control, displaying a bitmap
272
- Wx::define_keyword_ctors('BitmapButton') do
269
+ Wx::define_keyword_ctors(Wx::BitmapButton) do
273
270
  wx_ctor_params :id
274
271
  wx_ctor_params :bitmap
275
272
  wx_ctor_params :pos, :size, :style => Wx::BU_AUTODRAW
@@ -277,46 +274,46 @@ Wx::define_keyword_ctors('BitmapButton') do
277
274
  end
278
275
 
279
276
  # A button which stays pressed when clicked by user.
280
- Wx::define_keyword_ctors('ToggleButton') do
277
+ Wx::define_keyword_ctors(Wx::ToggleButton) do
281
278
  wx_ctor_params :id, :label, :pos, :size, :style
282
279
  wx_ctor_params :validator, :name => 'checkBox'
283
280
  end
284
281
 
285
282
  # Control showing an entire calendar month
286
- Wx::define_keyword_ctors('CalendarCtrl') do
283
+ Wx::define_keyword_ctors(Wx::CalendarCtrl) do
287
284
  wx_ctor_params :id, :date => Time.now()
288
285
  wx_ctor_params :pos, :size, :style => Wx::CAL_SHOW_HOLIDAYS
289
286
  wx_ctor_params :name => 'calendar'
290
287
  end
291
288
 
292
289
  # Checkbox control
293
- Wx::define_keyword_ctors('CheckBox') do
290
+ Wx::define_keyword_ctors(Wx::CheckBox) do
294
291
  wx_ctor_params :id, :label => ''
295
292
  wx_ctor_params :pos, :size, :style
296
293
  wx_ctor_params :validator, :name => 'checkBox'
297
294
  end
298
295
 
299
296
  # wxListBox A list of strings for single or multiple selection
300
- Wx::define_keyword_ctors('ListBox') do
297
+ Wx::define_keyword_ctors(Wx::ListBox) do
301
298
  wx_ctor_params :id, :pos, :size, :choices => []
302
299
  wx_ctor_params :style
303
300
  wx_ctor_params :validator, :name => 'listBox'
304
301
  end
305
302
 
306
303
  # A listbox with a checkbox to the left of each item
307
- Wx::define_keyword_ctors('CheckListBox') do
304
+ Wx::define_keyword_ctors(Wx::CheckListBox) do
308
305
  wx_ctor_params :id, :pos, :size, :choices, :style
309
306
  wx_ctor_params :validator, :name => 'listBox'
310
307
  end
311
308
 
312
309
  # wxChoice Choice control (a combobox without the editable area)
313
- Wx::define_keyword_ctors('Choice') do
310
+ Wx::define_keyword_ctors(Wx::Choice) do
314
311
  wx_ctor_params :id, :pos, :size, :choices, :style
315
312
  wx_ctor_params :validator, :name => 'choice'
316
313
  end
317
314
 
318
315
  # wxComboBox A choice with an editable area
319
- Wx::define_keyword_ctors('ComboBox') do
316
+ Wx::define_keyword_ctors(Wx::ComboBox) do
320
317
  wx_ctor_params :id, :value => ''
321
318
  wx_ctor_params :pos, :size, :choices => []
322
319
  wx_ctor_params :style
@@ -324,7 +321,7 @@ Wx::define_keyword_ctors('ComboBox') do
324
321
  end
325
322
 
326
323
  # wxBitmapComboBox A choice with an editable area
327
- Wx::define_keyword_ctors('BitmapComboBox') do
324
+ Wx::define_keyword_ctors(Wx::BitmapComboBox) do
328
325
  wx_ctor_params :id, :value => ''
329
326
  wx_ctor_params :pos, :size, :choices => []
330
327
  wx_ctor_params :style
@@ -335,13 +332,13 @@ end
335
332
 
336
333
  # wxGauge A control to represent a varying quantity, such as time
337
334
  # remaining
338
- Wx::define_keyword_ctors('Gauge') do
335
+ Wx::define_keyword_ctors(Wx::Gauge) do
339
336
  wx_ctor_params :id, :range, :pos, :size, :style => Wx::GA_HORIZONTAL
340
337
  wx_ctor_params :validator, :name => 'gauge'
341
338
  end
342
339
 
343
340
  # wxGenericDirCtrl A control for displaying a directory tree
344
- Wx::define_keyword_ctors('GenericDirCtrl') do
341
+ Wx::define_keyword_ctors(Wx::GenericDirCtrl) do
345
342
  # TODO :dir => Wx::DIR_DIALOG_DEFAULT_FOLDER_STR
346
343
  wx_ctor_params :id, :dir => ''
347
344
  wx_ctor_params :pos, :size,
@@ -352,7 +349,7 @@ Wx::define_keyword_ctors('GenericDirCtrl') do
352
349
  end
353
350
 
354
351
  # wxListCtrl A control for displaying lists of strings and/or icons, plus a multicolumn report view
355
- Wx::define_keyword_ctors('ListCtrl') do
352
+ Wx::define_keyword_ctors(Wx::ListCtrl) do
356
353
  wx_ctor_params :id, :pos, :size, :style => Wx::LC_ICON
357
354
  wx_ctor_params :validator, :name => 'listCtrl'
358
355
  end
@@ -360,13 +357,13 @@ end
360
357
  # wxListView A simpler interface (facade for wxListCtrl in report mode
361
358
 
362
359
  # wxTreeCtrl Tree (hierarchy) control
363
- Wx::define_keyword_ctors('TreeCtrl') do
360
+ Wx::define_keyword_ctors(Wx::TreeCtrl) do
364
361
  wx_ctor_params :id, :pos, :size, :style => Wx::TR_DEFAULT_STYLE
365
362
  wx_ctor_params :validator, :name => 'treeCtrl'
366
363
  end
367
364
 
368
365
  # wxSpinCtrl A spin control - i.e. spin button and text control
369
- Wx::define_keyword_ctors('SpinCtrl') do
366
+ Wx::define_keyword_ctors(Wx::SpinCtrl) do
370
367
  wx_ctor_params :id, :value => ''
371
368
  wx_ctor_params :pos, :size, :style => Wx::SP_ARROW_KEYS
372
369
  wx_ctor_params :min => 0
@@ -376,21 +373,21 @@ Wx::define_keyword_ctors('SpinCtrl') do
376
373
  end
377
374
 
378
375
  # One or more lines of non-editable text
379
- Wx::define_keyword_ctors('StaticText') do
376
+ Wx::define_keyword_ctors(Wx::StaticText) do
380
377
  wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticText'
381
378
  end
382
379
 
383
- Wx::define_keyword_ctors('StaticBox') do
380
+ Wx::define_keyword_ctors(Wx::StaticBox) do
384
381
  wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticBox'
385
382
  end
386
383
 
387
- Wx::define_keyword_ctors('StaticLine') do
384
+ Wx::define_keyword_ctors(Wx::StaticLine) do
388
385
  wx_ctor_params :id, :pos, :size, :style => Wx::LI_HORIZONTAL
389
386
  wx_ctor_params :name => 'staticBox'
390
387
  end
391
388
 
392
389
  # wxStaticBitmap A control to display a bitmap
393
- Wx::define_keyword_ctors('StaticBitmap') do
390
+ Wx::define_keyword_ctors(Wx::StaticBitmap) do
394
391
  wx_ctor_params :id
395
392
  # autoconvert Bitmaps to BitmapBundles for downward compatibility
396
393
  wx_ctor_params :label
@@ -399,7 +396,7 @@ end
399
396
 
400
397
 
401
398
  # wxRadioBox A group of radio buttons
402
- Wx::define_keyword_ctors('RadioBox') do
399
+ Wx::define_keyword_ctors(Wx::RadioBox) do
403
400
  wx_ctor_params :id, :label => ''
404
401
  wx_ctor_params :pos, :size, :choices => []
405
402
  wx_ctor_params :major_dimension => 0
@@ -408,14 +405,14 @@ Wx::define_keyword_ctors('RadioBox') do
408
405
  end
409
406
 
410
407
  # wxRadioButton: A round button used with others in a mutually exclusive way
411
- Wx::define_keyword_ctors('RadioButton') do
408
+ Wx::define_keyword_ctors(Wx::RadioButton) do
412
409
  wx_ctor_params :id, :label => ''
413
410
  wx_ctor_params :pos, :size, :style => 0
414
411
  wx_ctor_params :validator, :name => 'radioButton'
415
412
  end
416
413
 
417
414
  # wxSlider A slider that can be dragged by the user
418
- Wx::define_keyword_ctors('Slider') do
415
+ Wx::define_keyword_ctors(Wx::Slider) do
419
416
  wx_ctor_params :id, :value => 0
420
417
  wx_ctor_params :min_value, :max_value
421
418
  wx_ctor_params :pos, :size, :style => Wx::SL_HORIZONTAL
@@ -423,13 +420,13 @@ Wx::define_keyword_ctors('Slider') do
423
420
  end
424
421
 
425
422
  # wxSpinButton - Has two small up and down (or left and right) arrow buttons
426
- Wx::define_keyword_ctors('SpinButton') do
423
+ Wx::define_keyword_ctors(Wx::SpinButton) do
427
424
  wx_ctor_params :id, :pos, :size, :style => Wx::SP_HORIZONTAL
428
425
  wx_ctor_params :name => 'spinButton'
429
426
  end
430
427
 
431
428
  # wxScrollBar - standalone scrollbar with arrows and thumb
432
- Wx::define_keyword_ctors('ScrollBar') do
429
+ Wx::define_keyword_ctors(Wx::ScrollBar) do
433
430
  wx_ctor_params :id, :pos, :size, :style => Wx::SB_HORIZONTAL
434
431
  wx_ctor_params :validator, :name => 'scrollBar'
435
432
  end
@@ -438,57 +435,61 @@ end
438
435
  # wxVListBox A listbox supporting variable height rows
439
436
 
440
437
  # wxTextCtrl Single or multiline text editing control
441
- Wx::define_keyword_ctors('TextCtrl') do
438
+ Wx::define_keyword_ctors(Wx::TextCtrl) do
442
439
  wx_ctor_params :id, :value => ''
443
440
  wx_ctor_params :pos, :size, :style
444
441
  wx_ctor_params :validator, :name => 'textCtrl'
445
442
  end
446
443
 
447
444
  # wxHyperTextCtrl - display a clickable URL
448
- Wx::define_keyword_ctors('HyperlinkCtrl') do
445
+ Wx::define_keyword_ctors(Wx::HyperlinkCtrl) do
449
446
  wx_ctor_params :id, :label => ''
450
447
  wx_ctor_params :url => ''
451
448
  wx_ctor_params :pos, :size, :style => 0
452
449
  wx_ctor_params :name => 'hyperlink'
453
450
  end
454
451
 
455
- Wx::define_keyword_ctors('CollapsiblePane') do
452
+ Wx::define_keyword_ctors(Wx::CollapsiblePane) do
456
453
  wx_ctor_params :id, :label => ''
457
454
  wx_ctor_params :pos, :size, :style => 0
458
455
  wx_ctor_params :validator, :name => 'collapsiblePane'
459
456
  end
460
457
 
461
- Wx::define_keyword_ctors('MediaCtrl') do
458
+ Wx::define_keyword_ctors(Wx::MediaCtrl) do
462
459
  wx_ctor_params :id, :filename => ''
463
460
  wx_ctor_params :pos, :size, :style => 0
464
461
  wx_ctor_params :backend => ''
465
462
  wx_ctor_params :validator, :name => 'mediaCtrl'
466
- end
463
+ end if Wx.has_feature?(:USE_MEDIACTRL)
467
464
 
468
- Wx::define_keyword_ctors('SearchCtrl') do
465
+ Wx::define_keyword_ctors(Wx::SearchCtrl) do
469
466
  wx_ctor_params :id, :value => ''
470
467
  wx_ctor_params :pos, :size, :style => 0
471
468
  wx_ctor_params :validator, :name => 'searchCtrl'
472
469
  end
473
470
 
474
-
475
- Wx::define_keyword_ctors('AnimationCtrl') do
471
+ Wx::define_keyword_ctors(Wx::AnimationCtrl) do
476
472
  wx_ctor_params :id, :anim
477
473
  wx_ctor_params :pos, :size, :style => Wx::AC_DEFAULT_STYLE
478
474
  wx_ctor_params :name => 'animationCtrl'
479
475
  end
480
476
 
481
- Wx::define_keyword_ctors('VScrolledWindow') do
477
+ Wx::define_keyword_ctors(Wx::VScrolledWindow) do
482
478
  wx_ctor_params :id, :pos, :size, :style, :name => 'VScrolledWindowNameStr'
483
479
  end
484
480
 
485
- Wx::define_keyword_ctors('VListBox') do
481
+ Wx::define_keyword_ctors(Wx::VListBox) do
486
482
  wx_ctor_params :id, :pos, :size, :style, :name => 'VListBoxNameStr'
487
483
  end
488
484
 
489
- Wx::define_keyword_ctors('DatePickerCtrl') do
485
+ Wx::define_keyword_ctors(Wx::DatePickerCtrl) do
490
486
  wx_ctor_params :id, :dt, :pos, :size, :style, :validator, :name => 'dateCtrl'
491
487
  end
492
488
 
489
+ Wx::define_keyword_ctors(Wx::ActivityIndicator) do
490
+ wx_ctor_params :id, :pos, :size, :style => Wx::AC_DEFAULT_STYLE
491
+ wx_ctor_params :name => 'activityIndicator'
492
+ end
493
+
493
494
  # FIXME - SymbolPickerDialog is hard to because the parent argument is
494
495
  # in a strange place.
@@ -3,6 +3,10 @@
3
3
  # Copyright (c) M.J.N. Corino, The Netherlands
4
4
 
5
5
  # wxPrintDialog Standard print dialog
6
- Wx::define_keyword_ctors('PrintDialog') do
6
+ Wx::define_keyword_ctors(Wx::PRT::PrintDialog) do
7
+ wx_ctor_params :data
8
+ end
9
+
10
+ Wx::define_keyword_ctors(Wx::PRT::PageSetupDialog) do
7
11
  wx_ctor_params :data
8
12
  end
data/lib/wx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wx
2
- WXRUBY_VERSION = '0.9.0-rc.1'
2
+ WXRUBY_VERSION = '0.9.0-rc.3'
3
3
  end
data/lib/wxruby_aui.so CHANGED
Binary file
data/lib/wxruby_core.so CHANGED
Binary file
data/lib/wxruby_grid.so CHANGED
Binary file
data/lib/wxruby_html.so CHANGED
Binary file
data/lib/wxruby_pg.so CHANGED
Binary file
data/lib/wxruby_prt.so CHANGED
Binary file
data/lib/wxruby_rbn.so CHANGED
Binary file
data/lib/wxruby_rtc.so CHANGED
Binary file
data/lib/wxruby_stc.so CHANGED
Binary file
data/rakelib/install.rb CHANGED
@@ -41,7 +41,7 @@ module WXRuby3
41
41
  end
42
42
  else
43
43
  # match only wxWidgets libraries
44
- if /\Awx_([a-z\d]+)(_[a-z]+)?-(.*)/.match(lib)
44
+ if /\Awx(_osx)?_([a-z\d]+)(_[a-z]+)?-(.*)/.match(lib)
45
45
  @wxwin_shlibs.include File.join(libdir, "lib#{lib}*.#{WXRuby3.config.dll_mask}")
46
46
  end
47
47
  end
@@ -55,6 +55,7 @@ module WXRuby3
55
55
  def install_wxwin_shlibs
56
56
  if WXRuby3.config.get_config('with-wxwin')
57
57
  # prepare required wxWidgets shared libs
58
+ wxwin_inshlibs = []
58
59
  WXRuby3::Install.wxwin_shlibs.each do |shlib|
59
60
  if File.symlink?(shlib)
60
61
  src_shlib = shlib
@@ -62,18 +63,28 @@ module WXRuby3
62
63
  FileUtils.ln_s(File.join('.', File.basename(src_shlib)), File.join('ext', File.basename(shlib)))
63
64
  else
64
65
  FileUtils.cp(shlib, inshlib = File.join('ext', File.basename(shlib)))
65
- unless WXRuby3.config.patch_rpath(inshlib, '$ORIGIN')
66
+ unless WXRuby3.config.patch_rpath(inshlib, WXRuby3.config.get_rpath_origin)
66
67
  # cleanup and exit
67
68
  FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
68
69
  exit(1)
69
70
  end
71
+ wxwin_inshlibs << File.expand_path(inshlib)
70
72
  end
71
73
  end
72
74
  # prepare wxRuby shared libs
73
- unless Dir["lib/*.#{WXRuby3.config.dll_mask}"].all? { |shlib| WXRuby3.config.patch_rpath(shlib, '$ORIGIN:$ORIGIN/../ext') }
74
- # cleanup and exit
75
- FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
76
- exit(1)
75
+ Dir["lib/*.#{WXRuby3.config.dll_mask}"].each do |shlib|
76
+ unless WXRuby3.config.patch_rpath(shlib, WXRuby3.config.get_rpath_origin, "#{WXRuby3.config.get_rpath_origin}/../ext")
77
+ # cleanup and exit
78
+ FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
79
+ exit(1)
80
+ end
81
+ end
82
+ (wxwin_inshlibs + Dir["lib/*.#{WXRuby3.config.dll_mask}"]).each do |shlib|
83
+ unless WXRuby3.config.update_shlib_loadpaths(shlib, WXRuby3::Install.wxwin_shlibs)
84
+ # cleanup and exit
85
+ FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
86
+ exit(1)
87
+ end
77
88
  end
78
89
  end
79
90
  end
@@ -38,9 +38,9 @@ module WXRuby3
38
38
  true
39
39
  end
40
40
 
41
- def patch_rpath(shlib, rpath)
41
+ def patch_rpath(shlib, *rpath)
42
42
  if check_rpath_patch
43
- sh("#{@rpath_patch} '#{rpath}' #{shlib}", verbose: false)
43
+ sh("#{@rpath_patch} '#{rpath.join(':')}' #{shlib}", verbose: false)
44
44
  return true
45
45
  end
46
46
  false
@@ -57,6 +57,8 @@ module WXRuby3
57
57
  @extra_cflags.concat %w[-Wno-unused-function -Wno-conversion-null -Wno-maybe-uninitialized]
58
58
  @extra_cflags << ' -Wno-deprecated-declarations' unless @no_deprecated
59
59
 
60
+ @ruby_ldflags << '-s' if @release_build # strip debug symbols for release build
61
+
60
62
  # create a .so binary
61
63
  @extra_ldflags << '-shared'
62
64