wxruby3 0.9.0.pre.beta.14-x64-mingw-ucrt → 0.9.0.pre.rc.2-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/INSTALL.md +51 -22
  4. data/README.md +81 -6
  5. data/assets/hello_button-macos.png +0 -0
  6. data/assets/hello_button-msw.png +0 -0
  7. data/assets/hello_button.png +0 -0
  8. data/assets/hello_button_clicked-macos.png +0 -0
  9. data/assets/hello_button_clicked-msw.png +0 -0
  10. data/assets/hello_button_clicked.png +0 -0
  11. data/assets/hello_button_clicked_combi.png +0 -0
  12. data/assets/hello_world-macos.png +0 -0
  13. data/assets/hello_world-msw.png +0 -0
  14. data/assets/hello_world.png +0 -0
  15. data/assets/hello_world_combi.png +0 -0
  16. data/assets/repo-social-preview.png +0 -0
  17. data/ext/wxbase32u_gcc_custom.dll +0 -0
  18. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  19. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  25. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  26. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  27. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  28. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  29. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  30. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  31. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  32. data/lib/wx/core/art_locator.rb +2 -2
  33. data/lib/wx/core/artprovider.rb +2 -2
  34. data/lib/wx/core/bitmap.rb +6 -5
  35. data/lib/wx/core/bitmap_combobox.rb +34 -0
  36. data/lib/wx/core/brush.rb +6 -0
  37. data/lib/wx/core/controlwithitems.rb +52 -14
  38. data/lib/wx/core/cursor.rb +1 -1
  39. data/lib/wx/core/dc.rb +0 -20
  40. data/lib/wx/core/event_blocker.rb +14 -0
  41. data/lib/wx/core/events/evt_list.rb +19 -0
  42. data/lib/wx/core/evthandler.rb +48 -2
  43. data/lib/wx/core/find_replace_dialog.rb +24 -0
  44. data/lib/wx/core/font.rb +22 -14
  45. data/lib/wx/core/helpprovider.rb +2 -2
  46. data/lib/wx/core/icon.rb +1 -1
  47. data/lib/wx/core/image.rb +1 -1
  48. data/lib/wx/core/menu.rb +5 -0
  49. data/lib/wx/core/paintdc.rb +8 -0
  50. data/lib/wx/core/pen.rb +6 -0
  51. data/lib/wx/core/text_entry.rb +15 -0
  52. data/lib/wx/core/v_list_box.rb +13 -0
  53. data/lib/wx/core/window.rb +29 -2
  54. data/lib/wx/doc/app.rb +40 -0
  55. data/lib/wx/doc/brush.rb +17 -0
  56. data/lib/wx/doc/busy_info.rb +21 -0
  57. data/lib/wx/doc/client_dc.rb +28 -0
  58. data/lib/wx/doc/controlwithitems.rb +11 -0
  59. data/lib/wx/doc/dc.rb +0 -14
  60. data/lib/wx/doc/event_blocker.rb +27 -0
  61. data/lib/wx/doc/evthandler.rb +4 -0
  62. data/lib/wx/doc/extra/02_lifecycles.md +49 -0
  63. data/lib/wx/doc/extra/10_art.md +1 -1
  64. data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
  65. data/lib/wx/doc/font.rb +27 -0
  66. data/lib/wx/doc/gen/about_dialog_info.rb +27 -24
  67. data/lib/wx/doc/gen/accelerator.rb +11 -12
  68. data/lib/wx/doc/gen/activity_indicator.rb +65 -0
  69. data/lib/wx/doc/gen/app.rb +6 -3
  70. data/lib/wx/doc/gen/art_provider.rb +53 -29
  71. data/lib/wx/doc/gen/aui/aui_manager.rb +4 -0
  72. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +1 -1
  73. data/lib/wx/doc/gen/aui/aui_pane_info.rb +2 -0
  74. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -0
  75. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +2 -2
  76. data/lib/wx/doc/gen/bitmap.rb +25 -25
  77. data/lib/wx/doc/gen/bitmap_combo_box.rb +157 -0
  78. data/lib/wx/doc/gen/box_sizer.rb +6 -8
  79. data/lib/wx/doc/gen/brush.rb +2 -0
  80. data/lib/wx/doc/gen/busy_info.rb +52 -46
  81. data/lib/wx/doc/gen/caret.rb +0 -4
  82. data/lib/wx/doc/gen/check_list_box.rb +0 -2
  83. data/lib/wx/doc/gen/choice.rb +1 -5
  84. data/lib/wx/doc/gen/client_dc.rb +13 -18
  85. data/lib/wx/doc/gen/clipboard.rb +30 -27
  86. data/lib/wx/doc/gen/collapsible_pane.rb +11 -9
  87. data/lib/wx/doc/gen/colour.rb +6 -3
  88. data/lib/wx/doc/gen/colour_dialog.rb +111 -23
  89. data/lib/wx/doc/gen/combo_box.rb +2 -4
  90. data/lib/wx/doc/gen/context_help_button.rb +48 -0
  91. data/lib/wx/doc/gen/control.rb +20 -18
  92. data/lib/wx/doc/gen/core.rb +2 -2
  93. data/lib/wx/doc/gen/cursor.rb +18 -50
  94. data/lib/wx/doc/gen/data_format.rb +0 -2
  95. data/lib/wx/doc/gen/data_object.rb +37 -44
  96. data/lib/wx/doc/gen/dc.rb +16 -24
  97. data/lib/wx/doc/gen/defs.rb +3 -40
  98. data/lib/wx/doc/gen/dialog.rb +21 -17
  99. data/lib/wx/doc/gen/dir_dialog.rb +10 -8
  100. data/lib/wx/doc/gen/event.rb +2 -2
  101. data/lib/wx/doc/gen/event_blocker.rb +51 -0
  102. data/lib/wx/doc/gen/event_filter.rb +88 -0
  103. data/lib/wx/doc/gen/event_list.rb +23 -2
  104. data/lib/wx/doc/gen/events.rb +103 -112
  105. data/lib/wx/doc/gen/evt_handler.rb +28 -52
  106. data/lib/wx/doc/gen/file_dialog.rb +53 -50
  107. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  108. data/lib/wx/doc/gen/font.rb +19 -2
  109. data/lib/wx/doc/gen/font_data.rb +2 -0
  110. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  111. data/lib/wx/doc/gen/frame.rb +4 -3
  112. data/lib/wx/doc/gen/fs_file.rb +8 -0
  113. data/lib/wx/doc/gen/gcdc.rb +2 -22
  114. data/lib/wx/doc/gen/gdi_common.rb +18 -2
  115. data/lib/wx/doc/gen/gdi_object.rb +2 -0
  116. data/lib/wx/doc/gen/graphics_context.rb +4 -43
  117. data/lib/wx/doc/gen/graphics_object.rb +2 -0
  118. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
  119. data/lib/wx/doc/gen/grid/grid_ctrl.rb +4 -2
  120. data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
  121. data/lib/wx/doc/gen/grid_bag_sizer.rb +4 -0
  122. data/lib/wx/doc/gen/help_controller.rb +4 -1
  123. data/lib/wx/doc/gen/html/html_cell.rb +4 -1
  124. data/lib/wx/doc/gen/html/html_help_controller.rb +4 -1
  125. data/lib/wx/doc/gen/html/html_help_data.rb +4 -0
  126. data/lib/wx/doc/gen/html/html_help_window.rb +2 -1
  127. data/lib/wx/doc/gen/html/html_list_box.rb +138 -11
  128. data/lib/wx/doc/gen/html/html_window.rb +9 -3
  129. data/lib/wx/doc/gen/hyperlink_ctrl.rb +147 -0
  130. data/lib/wx/doc/gen/hyperlink_event.rb +43 -0
  131. data/lib/wx/doc/gen/icon.rb +7 -1
  132. data/lib/wx/doc/gen/icon_location.rb +2 -0
  133. data/lib/wx/doc/gen/image.rb +15 -8
  134. data/lib/wx/doc/gen/keyboard_state.rb +6 -0
  135. data/lib/wx/doc/gen/list_box.rb +0 -11
  136. data/lib/wx/doc/gen/list_ctrl.rb +10 -13
  137. data/lib/wx/doc/gen/locale.rb +7 -3
  138. data/lib/wx/doc/gen/log.rb +6 -2
  139. data/lib/wx/doc/gen/mdi_frame.rb +2 -0
  140. data/lib/wx/doc/gen/media_ctrl.rb +2 -0
  141. data/lib/wx/doc/gen/memory_dc.rb +105 -18
  142. data/lib/wx/doc/gen/menu.rb +4 -2
  143. data/lib/wx/doc/gen/menu_bar.rb +0 -8
  144. data/lib/wx/doc/gen/menu_item.rb +9 -3
  145. data/lib/wx/doc/gen/message_dialog.rb +6 -3
  146. data/lib/wx/doc/gen/mirror_dc.rb +2 -8
  147. data/lib/wx/doc/gen/mouse_state.rb +2 -0
  148. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -2
  149. data/lib/wx/doc/gen/non_owned_window.rb +2 -1
  150. data/lib/wx/doc/gen/notebook.rb +4 -2
  151. data/lib/wx/doc/gen/paint_dc.rb +2 -6
  152. data/lib/wx/doc/gen/palette.rb +3 -3
  153. data/lib/wx/doc/gen/pen.rb +6 -1
  154. data/lib/wx/doc/gen/pg/pg_editor.rb +2 -1
  155. data/lib/wx/doc/gen/pg/pg_multi_button.rb +4 -0
  156. data/lib/wx/doc/gen/pg/pg_properties.rb +30 -3
  157. data/lib/wx/doc/gen/pg/pg_property.rb +30 -4
  158. data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
  159. data/lib/wx/doc/gen/pg/property_grid.rb +5 -2
  160. data/lib/wx/doc/gen/pg/property_grid_interface.rb +6 -2
  161. data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -0
  162. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -0
  163. data/lib/wx/doc/gen/picker_base.rb +2 -1
  164. data/lib/wx/doc/gen/platform_info.rb +4 -1
  165. data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -0
  166. data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -8
  167. data/lib/wx/doc/gen/prt/print_data.rb +6 -0
  168. data/lib/wx/doc/gen/prt/printer.rb +0 -3
  169. data/lib/wx/doc/gen/prt/printer_dc.rb +2 -6
  170. data/lib/wx/doc/gen/radio_box.rb +2 -10
  171. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +6 -0
  172. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +1 -1
  173. data/lib/wx/doc/gen/region.rb +2 -0
  174. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -0
  175. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -4
  176. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +2 -0
  177. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -1
  178. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -0
  179. data/lib/wx/doc/gen/screen_dc.rb +2 -0
  180. data/lib/wx/doc/gen/scroll_bar.rb +2 -1
  181. data/lib/wx/doc/gen/scrolled_canvas.rb +4 -8
  182. data/lib/wx/doc/gen/scrolled_control.rb +4 -8
  183. data/lib/wx/doc/gen/scrolled_window.rb +4 -8
  184. data/lib/wx/doc/gen/search_ctrl.rb +131 -0
  185. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -2
  186. data/lib/wx/doc/gen/sizer.rb +14 -3
  187. data/lib/wx/doc/gen/splash_screen.rb +2 -0
  188. data/lib/wx/doc/gen/static_box.rb +6 -3
  189. data/lib/wx/doc/gen/static_box_sizer.rb +2 -1
  190. data/lib/wx/doc/gen/status_bar.rb +0 -5
  191. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4 -5
  192. data/lib/wx/doc/gen/svg_file_dc.rb +10 -11
  193. data/lib/wx/doc/gen/text_ctrl.rb +10 -3
  194. data/lib/wx/doc/gen/text_entry.rb +8 -3
  195. data/lib/wx/doc/gen/text_entry_dialog.rb +4 -2
  196. data/lib/wx/doc/gen/timer_event.rb +2 -0
  197. data/lib/wx/doc/gen/tool_bar.rb +8 -4
  198. data/lib/wx/doc/gen/top_level_window.rb +5 -2
  199. data/lib/wx/doc/gen/tree_ctrl.rb +0 -6
  200. data/lib/wx/doc/gen/ui_action_simulator.rb +100 -0
  201. data/lib/wx/doc/gen/utils.rb +1 -1
  202. data/lib/wx/doc/gen/v_list_box.rb +36 -26
  203. data/lib/wx/doc/gen/validator.rb +2 -1
  204. data/lib/wx/doc/gen/variant.rb +10 -0
  205. data/lib/wx/doc/gen/window.rb +38 -17
  206. data/lib/wx/doc/gen/window_dc.rb +2 -0
  207. data/lib/wx/doc/gen/window_disabler.rb +2 -0
  208. data/lib/wx/doc/gen/wizard_page_simple.rb +2 -0
  209. data/lib/wx/doc/gen/xml_node.rb +6 -0
  210. data/lib/wx/doc/gen/xml_resource.rb +4 -1
  211. data/lib/wx/doc/memory_dc.rb +75 -0
  212. data/lib/wx/doc/mirror_dc.rb +16 -0
  213. data/lib/wx/doc/pen.rb +17 -0
  214. data/lib/wx/doc/prt/printer_dc.rb +26 -0
  215. data/lib/wx/doc/radio_box.rb +20 -0
  216. data/lib/wx/doc/screen_dc.rb +10 -6
  217. data/lib/wx/doc/svg_file_dc.rb +20 -0
  218. data/lib/wx/doc/v_list_box.rb +9 -0
  219. data/lib/wx/doc/window.rb +27 -0
  220. data/lib/wx/doc/window_disabler.rb +10 -0
  221. data/lib/wx/html/keyword_defs.rb +6 -7
  222. data/lib/wx/html/require.rb +1 -0
  223. data/lib/wx/html/simple_html_listbox.rb +105 -0
  224. data/lib/wx/keyword_defs.rb +83 -75
  225. data/lib/wx/prt/keyword_defs.rb +5 -1
  226. data/lib/wx/version.rb +1 -1
  227. data/lib/wx/wxruby/cmd/test.rb +1 -1
  228. data/lib/wxruby_aui.so +0 -0
  229. data/lib/wxruby_core.so +0 -0
  230. data/lib/wxruby_grid.so +0 -0
  231. data/lib/wxruby_html.so +0 -0
  232. data/lib/wxruby_pg.so +0 -0
  233. data/lib/wxruby_prt.so +0 -0
  234. data/lib/wxruby_rbn.so +0 -0
  235. data/lib/wxruby_rtc.so +0 -0
  236. data/lib/wxruby_stc.so +0 -0
  237. data/rakelib/install.rb +20 -7
  238. data/rakelib/lib/config/linux.rb +4 -2
  239. data/rakelib/lib/config/macosx.rb +120 -1
  240. data/rakelib/lib/config/mingw.rb +6 -1
  241. data/rakelib/lib/config/unixish.rb +26 -11
  242. data/rakelib/lib/config.rb +15 -6
  243. data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
  244. data/samples/aui/aui.rb +432 -363
  245. data/samples/bigdemo/wxArtProvider.rbw +5 -4
  246. data/samples/controls/controls.rb +2 -2
  247. data/samples/controls/htlbox.rb +411 -0
  248. data/samples/controls/tn_htlbox.png +0 -0
  249. data/samples/drawing/graphics_drawing.rb +1 -2
  250. data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
  251. data/samples/drawing/tn_image_prt.png +0 -0
  252. data/samples/propgrid/propgrid.rb +26 -21
  253. data/samples/ribbon/ribbon.rb +47 -46
  254. data/samples/sampler/editor.rb +33 -25
  255. data/samples/sampler/sample.rb +2 -2
  256. data/samples/sampler/stc_editor.rb +4 -2
  257. data/tests/lib/item_container_tests.rb +82 -0
  258. data/tests/lib/text_entry_tests.rb +80 -0
  259. data/tests/lib/wxapp_runner.rb +15 -3
  260. data/tests/lib/wxframe_runner.rb +144 -0
  261. data/tests/test_app_event_filter.rb +74 -0
  262. data/tests/test_art_provider.rb +52 -0
  263. data/tests/test_clipboard.rb +2 -1
  264. data/tests/test_event_handling.rb +199 -16
  265. data/tests/test_events.rb +4 -11
  266. data/tests/test_ext_controls.rb +28 -0
  267. data/tests/test_font.rb +239 -0
  268. data/tests/test_gdi_object.rb +161 -0
  269. data/tests/test_intl.rb +16 -15
  270. data/tests/test_item_data.rb +33 -1
  271. data/tests/test_std_controls.rb +373 -0
  272. data/tests/test_window.rb +340 -0
  273. metadata +61 -8
  274. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +0 -47
  275. data/lib/wx/doc/gen/buffered_dc.rb +0 -95
  276. data/lib/wx/doc/gen/buffered_paint_dc.rb +0 -55
  277. data/lib/wx/doc/gen/colour_data.rb +0 -96
  278. data/samples/drawing/tn_svgtest.png +0 -0
@@ -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,39 +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
 
296
+ # wxListBox A list of strings for single or multiple selection
297
+ Wx::define_keyword_ctors(Wx::ListBox) do
298
+ wx_ctor_params :id, :pos, :size, :choices => []
299
+ wx_ctor_params :style
300
+ wx_ctor_params :validator, :name => 'listBox'
301
+ end
302
+
299
303
  # A listbox with a checkbox to the left of each item
300
- Wx::define_keyword_ctors('CheckListBox') do
304
+ Wx::define_keyword_ctors(Wx::CheckListBox) do
301
305
  wx_ctor_params :id, :pos, :size, :choices, :style
302
306
  wx_ctor_params :validator, :name => 'listBox'
303
307
  end
304
308
 
305
309
  # wxChoice Choice control (a combobox without the editable area)
306
- Wx::define_keyword_ctors('Choice') do
310
+ Wx::define_keyword_ctors(Wx::Choice) do
307
311
  wx_ctor_params :id, :pos, :size, :choices, :style
308
312
  wx_ctor_params :validator, :name => 'choice'
309
313
  end
310
314
 
311
315
  # wxComboBox A choice with an editable area
312
- Wx::define_keyword_ctors('ComboBox') do
316
+ Wx::define_keyword_ctors(Wx::ComboBox) do
313
317
  wx_ctor_params :id, :value => ''
314
318
  wx_ctor_params :pos, :size, :choices => []
315
319
  wx_ctor_params :style
@@ -317,7 +321,7 @@ Wx::define_keyword_ctors('ComboBox') do
317
321
  end
318
322
 
319
323
  # wxBitmapComboBox A choice with an editable area
320
- Wx::define_keyword_ctors('BitmapComboBox') do
324
+ Wx::define_keyword_ctors(Wx::BitmapComboBox) do
321
325
  wx_ctor_params :id, :value => ''
322
326
  wx_ctor_params :pos, :size, :choices => []
323
327
  wx_ctor_params :style
@@ -328,13 +332,13 @@ end
328
332
 
329
333
  # wxGauge A control to represent a varying quantity, such as time
330
334
  # remaining
331
- Wx::define_keyword_ctors('Gauge') do
335
+ Wx::define_keyword_ctors(Wx::Gauge) do
332
336
  wx_ctor_params :id, :range, :pos, :size, :style => Wx::GA_HORIZONTAL
333
337
  wx_ctor_params :validator, :name => 'gauge'
334
338
  end
335
339
 
336
340
  # wxGenericDirCtrl A control for displaying a directory tree
337
- Wx::define_keyword_ctors('GenericDirCtrl') do
341
+ Wx::define_keyword_ctors(Wx::GenericDirCtrl) do
338
342
  # TODO :dir => Wx::DIR_DIALOG_DEFAULT_FOLDER_STR
339
343
  wx_ctor_params :id, :dir => ''
340
344
  wx_ctor_params :pos, :size,
@@ -345,7 +349,7 @@ Wx::define_keyword_ctors('GenericDirCtrl') do
345
349
  end
346
350
 
347
351
  # wxListCtrl A control for displaying lists of strings and/or icons, plus a multicolumn report view
348
- Wx::define_keyword_ctors('ListCtrl') do
352
+ Wx::define_keyword_ctors(Wx::ListCtrl) do
349
353
  wx_ctor_params :id, :pos, :size, :style => Wx::LC_ICON
350
354
  wx_ctor_params :validator, :name => 'listCtrl'
351
355
  end
@@ -353,13 +357,13 @@ end
353
357
  # wxListView A simpler interface (facade for wxListCtrl in report mode
354
358
 
355
359
  # wxTreeCtrl Tree (hierarchy) control
356
- Wx::define_keyword_ctors('TreeCtrl') do
360
+ Wx::define_keyword_ctors(Wx::TreeCtrl) do
357
361
  wx_ctor_params :id, :pos, :size, :style => Wx::TR_DEFAULT_STYLE
358
362
  wx_ctor_params :validator, :name => 'treeCtrl'
359
363
  end
360
364
 
361
365
  # wxSpinCtrl A spin control - i.e. spin button and text control
362
- Wx::define_keyword_ctors('SpinCtrl') do
366
+ Wx::define_keyword_ctors(Wx::SpinCtrl) do
363
367
  wx_ctor_params :id, :value => ''
364
368
  wx_ctor_params :pos, :size, :style => Wx::SP_ARROW_KEYS
365
369
  wx_ctor_params :min => 0
@@ -369,21 +373,21 @@ Wx::define_keyword_ctors('SpinCtrl') do
369
373
  end
370
374
 
371
375
  # One or more lines of non-editable text
372
- Wx::define_keyword_ctors('StaticText') do
376
+ Wx::define_keyword_ctors(Wx::StaticText) do
373
377
  wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticText'
374
378
  end
375
379
 
376
- Wx::define_keyword_ctors('StaticBox') do
380
+ Wx::define_keyword_ctors(Wx::StaticBox) do
377
381
  wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticBox'
378
382
  end
379
383
 
380
- Wx::define_keyword_ctors('StaticLine') do
384
+ Wx::define_keyword_ctors(Wx::StaticLine) do
381
385
  wx_ctor_params :id, :pos, :size, :style => Wx::LI_HORIZONTAL
382
386
  wx_ctor_params :name => 'staticBox'
383
387
  end
384
388
 
385
389
  # wxStaticBitmap A control to display a bitmap
386
- Wx::define_keyword_ctors('StaticBitmap') do
390
+ Wx::define_keyword_ctors(Wx::StaticBitmap) do
387
391
  wx_ctor_params :id
388
392
  # autoconvert Bitmaps to BitmapBundles for downward compatibility
389
393
  wx_ctor_params :label
@@ -392,7 +396,7 @@ end
392
396
 
393
397
 
394
398
  # wxRadioBox A group of radio buttons
395
- Wx::define_keyword_ctors('RadioBox') do
399
+ Wx::define_keyword_ctors(Wx::RadioBox) do
396
400
  wx_ctor_params :id, :label => ''
397
401
  wx_ctor_params :pos, :size, :choices => []
398
402
  wx_ctor_params :major_dimension => 0
@@ -401,14 +405,14 @@ Wx::define_keyword_ctors('RadioBox') do
401
405
  end
402
406
 
403
407
  # wxRadioButton: A round button used with others in a mutually exclusive way
404
- Wx::define_keyword_ctors('RadioButton') do
408
+ Wx::define_keyword_ctors(Wx::RadioButton) do
405
409
  wx_ctor_params :id, :label => ''
406
410
  wx_ctor_params :pos, :size, :style => 0
407
411
  wx_ctor_params :validator, :name => 'radioButton'
408
412
  end
409
413
 
410
414
  # wxSlider A slider that can be dragged by the user
411
- Wx::define_keyword_ctors('Slider') do
415
+ Wx::define_keyword_ctors(Wx::Slider) do
412
416
  wx_ctor_params :id, :value => 0
413
417
  wx_ctor_params :min_value, :max_value
414
418
  wx_ctor_params :pos, :size, :style => Wx::SL_HORIZONTAL
@@ -416,13 +420,13 @@ Wx::define_keyword_ctors('Slider') do
416
420
  end
417
421
 
418
422
  # wxSpinButton - Has two small up and down (or left and right) arrow buttons
419
- Wx::define_keyword_ctors('SpinButton') do
423
+ Wx::define_keyword_ctors(Wx::SpinButton) do
420
424
  wx_ctor_params :id, :pos, :size, :style => Wx::SP_HORIZONTAL
421
425
  wx_ctor_params :name => 'spinButton'
422
426
  end
423
427
 
424
428
  # wxScrollBar - standalone scrollbar with arrows and thumb
425
- Wx::define_keyword_ctors('ScrollBar') do
429
+ Wx::define_keyword_ctors(Wx::ScrollBar) do
426
430
  wx_ctor_params :id, :pos, :size, :style => Wx::SB_HORIZONTAL
427
431
  wx_ctor_params :validator, :name => 'scrollBar'
428
432
  end
@@ -431,57 +435,61 @@ end
431
435
  # wxVListBox A listbox supporting variable height rows
432
436
 
433
437
  # wxTextCtrl Single or multiline text editing control
434
- Wx::define_keyword_ctors('TextCtrl') do
438
+ Wx::define_keyword_ctors(Wx::TextCtrl) do
435
439
  wx_ctor_params :id, :value => ''
436
440
  wx_ctor_params :pos, :size, :style
437
441
  wx_ctor_params :validator, :name => 'textCtrl'
438
442
  end
439
443
 
440
444
  # wxHyperTextCtrl - display a clickable URL
441
- Wx::define_keyword_ctors('HyperlinkCtrl') do
445
+ Wx::define_keyword_ctors(Wx::HyperlinkCtrl) do
442
446
  wx_ctor_params :id, :label => ''
443
447
  wx_ctor_params :url => ''
444
448
  wx_ctor_params :pos, :size, :style => 0
445
449
  wx_ctor_params :name => 'hyperlink'
446
450
  end
447
451
 
448
- Wx::define_keyword_ctors('CollapsiblePane') do
452
+ Wx::define_keyword_ctors(Wx::CollapsiblePane) do
449
453
  wx_ctor_params :id, :label => ''
450
454
  wx_ctor_params :pos, :size, :style => 0
451
455
  wx_ctor_params :validator, :name => 'collapsiblePane'
452
456
  end
453
457
 
454
- Wx::define_keyword_ctors('MediaCtrl') do
458
+ Wx::define_keyword_ctors(Wx::MediaCtrl) do
455
459
  wx_ctor_params :id, :filename => ''
456
460
  wx_ctor_params :pos, :size, :style => 0
457
461
  wx_ctor_params :backend => ''
458
462
  wx_ctor_params :validator, :name => 'mediaCtrl'
459
- end
463
+ end if Wx.has_feature?(:USE_MEDIACTRL)
460
464
 
461
- Wx::define_keyword_ctors('SearchCtrl') do
465
+ Wx::define_keyword_ctors(Wx::SearchCtrl) do
462
466
  wx_ctor_params :id, :value => ''
463
467
  wx_ctor_params :pos, :size, :style => 0
464
468
  wx_ctor_params :validator, :name => 'searchCtrl'
465
469
  end
466
470
 
467
-
468
- Wx::define_keyword_ctors('AnimationCtrl') do
471
+ Wx::define_keyword_ctors(Wx::AnimationCtrl) do
469
472
  wx_ctor_params :id, :anim
470
473
  wx_ctor_params :pos, :size, :style => Wx::AC_DEFAULT_STYLE
471
474
  wx_ctor_params :name => 'animationCtrl'
472
475
  end
473
476
 
474
- Wx::define_keyword_ctors('VScrolledWindow') do
477
+ Wx::define_keyword_ctors(Wx::VScrolledWindow) do
475
478
  wx_ctor_params :id, :pos, :size, :style, :name => 'VScrolledWindowNameStr'
476
479
  end
477
480
 
478
- Wx::define_keyword_ctors('VListBox') do
481
+ Wx::define_keyword_ctors(Wx::VListBox) do
479
482
  wx_ctor_params :id, :pos, :size, :style, :name => 'VListBoxNameStr'
480
483
  end
481
484
 
482
- Wx::define_keyword_ctors('DatePickerCtrl') do
485
+ Wx::define_keyword_ctors(Wx::DatePickerCtrl) do
483
486
  wx_ctor_params :id, :dt, :pos, :size, :style, :validator, :name => 'dateCtrl'
484
487
  end
485
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
+
486
494
  # FIXME - SymbolPickerDialog is hard to because the parent argument is
487
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-beta.14'
2
+ WXRUBY_VERSION = '0.9.0-rc.2'
3
3
  end
@@ -16,7 +16,7 @@ module WxRuby
16
16
  description
17
17
  else
18
18
  Dir[File.join(WxRuby::ROOT, 'tests', '*.rb')].each do |test|
19
- system(RUBY, test)
19
+ exit(1) unless system(RUBY, test)
20
20
  end
21
21
  end
22
22
  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
@@ -34,12 +34,14 @@ module WXRuby3
34
34
  grp_id = m[1]
35
35
  lib_id = m[2]
36
36
  ver = m[3].sub('.', '')
37
- lib = "wx#{grp_id.sub(/u\Z/, '')}#{ver}u#{lib_id}"
37
+ # as of wxw 3.3 there seems to be an additional digit added to the version part of the dll name
38
+ # so add a wildcard ('*') in that spot to match older and newer versions
39
+ lib = "wx#{grp_id.sub(/u\Z/, '')}#{ver}*u#{lib_id}"
38
40
  @wxwin_shlibs.include File.join(libdir, "#{lib}*.#{WXRuby3.config.dll_mask}")
39
41
  end
40
42
  else
41
43
  # match only wxWidgets libraries
42
- if /\Awx_([a-z\d]+)(_[a-z]+)?-(.*)/.match(lib)
44
+ if /\Awx(_osx)?_([a-z\d]+)(_[a-z]+)?-(.*)/.match(lib)
43
45
  @wxwin_shlibs.include File.join(libdir, "lib#{lib}*.#{WXRuby3.config.dll_mask}")
44
46
  end
45
47
  end
@@ -53,6 +55,7 @@ module WXRuby3
53
55
  def install_wxwin_shlibs
54
56
  if WXRuby3.config.get_config('with-wxwin')
55
57
  # prepare required wxWidgets shared libs
58
+ wxwin_inshlibs = []
56
59
  WXRuby3::Install.wxwin_shlibs.each do |shlib|
57
60
  if File.symlink?(shlib)
58
61
  src_shlib = shlib
@@ -60,18 +63,28 @@ module WXRuby3
60
63
  FileUtils.ln_s(File.join('.', File.basename(src_shlib)), File.join('ext', File.basename(shlib)))
61
64
  else
62
65
  FileUtils.cp(shlib, inshlib = File.join('ext', File.basename(shlib)))
63
- unless WXRuby3.config.patch_rpath(inshlib, '$ORIGIN')
66
+ unless WXRuby3.config.patch_rpath(inshlib, WXRuby3.config.get_rpath_origin)
64
67
  # cleanup and exit
65
68
  FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
66
69
  exit(1)
67
70
  end
71
+ wxwin_inshlibs << File.expand_path(inshlib)
68
72
  end
69
73
  end
70
74
  # prepare wxRuby shared libs
71
- unless Dir["lib/*.#{WXRuby3.config.dll_mask}"].all? { |shlib| WXRuby3.config.patch_rpath(shlib, '$ORIGIN:$ORIGIN/../ext') }
72
- # cleanup and exit
73
- FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
74
- 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
75
88
  end
76
89
  end
77
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