wxruby3 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +27 -2
  3. data/README.md +15 -15
  4. data/ext/wxruby3/include/wxRubyApp.h +145 -46
  5. data/ext/wxruby3/include/wxruby-ComboPopup.h +25 -8
  6. data/ext/wxruby3/include/wxruby-GCTracking.h +262 -0
  7. data/ext/wxruby3/include/wxruby-MBConv.h +190 -0
  8. data/ext/wxruby3/include/wxruby-SharedEventHandler.h +183 -0
  9. data/ext/wxruby3/include/wxruby-SharedPtr.h +104 -0
  10. data/ext/wxruby3/include/wxruby-runtime.h +29 -0
  11. data/ext/wxruby3/swig/custom/rubytracking.swg +8 -22
  12. data/ext/wxruby3/swig/custom/wx_ruby_shared_ptr.i +434 -0
  13. data/ext/wxruby3/swig/custom/wx_shared_ptr.i +431 -0
  14. data/ext/wxruby3/swig/mark_free_impl.i +7 -132
  15. data/ext/wxruby3/swig/memory_management.i +8 -44
  16. data/ext/wxruby3/swig/wx.i +46 -73
  17. data/lib/wx/core/const.rb +0 -1
  18. data/lib/wx/core/context_help.rb +17 -0
  19. data/lib/wx/core/cursor.rb +1 -0
  20. data/lib/wx/core/helpcontrollerhelpprovider.rb +10 -2
  21. data/lib/wx/core/mbconv.rb +11 -0
  22. data/lib/wx/core/media_ctrl.rb +31 -0
  23. data/lib/wx/core/top_level_window.rb +7 -0
  24. data/lib/wx/core.rb +6 -0
  25. data/lib/wx/doc/art_provider.rb +17 -0
  26. data/lib/wx/doc/context_help.rb +42 -0
  27. data/lib/wx/doc/core.rb +0 -5
  28. data/lib/wx/doc/functions.rb +10 -0
  29. data/lib/wx/doc/html/html_help_controller.rb +23 -1
  30. data/lib/wx/doc/mbconv.rb +108 -0
  31. data/lib/wx/doc/rt/shared_event_handler.rb +49 -0
  32. data/lib/wx/doc/rt/thread_event.rb +28 -0
  33. data/lib/wx/doc/stream.rb +7 -3
  34. data/lib/wx/doc/webview.rb +40 -0
  35. data/lib/wx/helpers.rb +1 -1
  36. data/lib/wx/html/htmlhelpcontroller.rb +10 -0
  37. data/lib/wx/keyword_defs.rb +11 -0
  38. data/lib/wx/rt/require.rb +8 -0
  39. data/lib/wx/rt/thread_event.rb +14 -0
  40. data/lib/wx/rt.rb +16 -0
  41. data/lib/wx/version.rb +1 -1
  42. data/lib/wx/web/require.rb +8 -0
  43. data/lib/wx/web/webview.rb +106 -0
  44. data/lib/wx/web.rb +17 -0
  45. data/lib/wx/wxruby/cmd/setup.rb +15 -0
  46. data/lib/wx/wxruby/cmd/test.rb +8 -2
  47. data/lib/wx.rb +2 -0
  48. data/rakelib/configure.rb +24 -0
  49. data/rakelib/gem.rb +3 -2
  50. data/rakelib/install.rb +54 -27
  51. data/rakelib/lib/config/macosx.rb +7 -5
  52. data/rakelib/lib/config/mingw.rb +66 -5
  53. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  54. data/rakelib/lib/config/pkgman/mingw.rb +1 -1
  55. data/rakelib/lib/config/unixish.rb +4 -2
  56. data/rakelib/lib/config.rb +37 -3
  57. data/rakelib/lib/core/include/client_data.inc +38 -17
  58. data/rakelib/lib/core/include/funcall.inc +1 -1
  59. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  60. data/rakelib/lib/core/include/swigrubyrun.inc +14 -26
  61. data/rakelib/lib/core/package.rb +0 -2
  62. data/rakelib/lib/director/app.rb +1 -8
  63. data/rakelib/lib/director/art_provider.rb +7 -3
  64. data/rakelib/lib/director/comboctrl.rb +0 -7
  65. data/rakelib/lib/director/context_help_button.rb +35 -2
  66. data/rakelib/lib/director/derived_dc.rb +41 -32
  67. data/rakelib/lib/director/editable_listbox.rb +10 -8
  68. data/rakelib/lib/director/event_handler.rb +32 -28
  69. data/rakelib/lib/director/fs_file.rb +38 -10
  70. data/rakelib/lib/director/functions.rb +8 -0
  71. data/rakelib/lib/director/grid_cell_attr.rb +1 -3
  72. data/rakelib/lib/director/grid_cell_editor.rb +14 -12
  73. data/rakelib/lib/director/grid_cell_renderer.rb +11 -8
  74. data/rakelib/lib/director/grid_ctrl.rb +140 -121
  75. data/rakelib/lib/director/help_controller.rb +70 -2
  76. data/rakelib/lib/director/mb_conv.rb +30 -0
  77. data/rakelib/lib/director/menu.rb +92 -42
  78. data/rakelib/lib/director/menu_bar.rb +84 -45
  79. data/rakelib/lib/director/menu_item.rb +2 -2
  80. data/rakelib/lib/director/persistence_manager.rb +3 -2
  81. data/rakelib/lib/director/preview_frame.rb +2 -2
  82. data/rakelib/lib/director/ribbon_page.rb +11 -0
  83. data/rakelib/lib/director/richtext_buffer.rb +5 -2
  84. data/rakelib/lib/director/shared_evt_handler.rb +30 -0
  85. data/rakelib/lib/director/sizer.rb +8 -17
  86. data/rakelib/lib/director/sizer_item.rb +3 -4
  87. data/rakelib/lib/director/task_bar_icon.rb +7 -7
  88. data/rakelib/lib/director/thread_event.rb +33 -0
  89. data/rakelib/lib/director/top_level_window.rb +12 -4
  90. data/rakelib/lib/director/validator.rb +3 -1
  91. data/rakelib/lib/director/variant.rb +16 -12
  92. data/rakelib/lib/director/webview.rb +166 -0
  93. data/rakelib/lib/director/webview_event.rb +37 -0
  94. data/rakelib/lib/director/webview_handler.rb +63 -0
  95. data/rakelib/lib/generate/doc/thread_event.yaml +20 -0
  96. data/rakelib/lib/generate/doc/web_view.yaml +135 -0
  97. data/rakelib/lib/generate/doc/web_view_event.yaml +38 -0
  98. data/rakelib/lib/generate/doc/web_view_handler.yaml +58 -0
  99. data/rakelib/lib/specs/interfaces.rb +14 -2
  100. data/rakelib/lib/typemap/common.rb +34 -1
  101. data/rakelib/lib/typemap/mb_conv.rb +58 -0
  102. data/rakelib/prepost.rake +23 -31
  103. data/rakelib/prepost.rb +20 -0
  104. data/samples/event/threaded.rb +295 -42
  105. data/samples/event/tn_threaded.png +0 -0
  106. data/samples/help/doc/back.gif +0 -0
  107. data/samples/help/doc/contents.gif +0 -0
  108. data/samples/help/doc/cshelp.txt +9 -0
  109. data/samples/help/doc/doc.chm +0 -0
  110. data/samples/help/doc/doc.cnt +8 -0
  111. data/samples/help/doc/doc.h +7 -0
  112. data/samples/help/doc/doc.hhc +40 -0
  113. data/samples/help/doc/doc.hhk +31 -0
  114. data/samples/help/doc/doc.hhp +33 -0
  115. data/samples/help/doc/doc.hpj +21 -0
  116. data/samples/help/doc/doc.htm +27 -0
  117. data/samples/help/doc/doc1.htm +24 -0
  118. data/samples/help/doc/doc2.htm +12 -0
  119. data/samples/help/doc/doc3.htm +12 -0
  120. data/samples/help/doc/doc4.htm +12 -0
  121. data/samples/help/doc/doc5.htm +14 -0
  122. data/samples/help/doc/forward.gif +0 -0
  123. data/samples/help/doc/up.gif +0 -0
  124. data/samples/help/doc.chm +0 -0
  125. data/samples/help/doc.chw +0 -0
  126. data/samples/help/doc.zip +0 -0
  127. data/samples/help/help.rb +352 -0
  128. data/samples/help/tn_help.png +0 -0
  129. data/samples/webview/handler_advanced.html +55 -0
  130. data/samples/webview/tn_webview.png +0 -0
  131. data/samples/webview/webview.rb +1264 -0
  132. data/tests/assets/handler_advanced.html +55 -0
  133. data/tests/assets/test.zip +0 -0
  134. data/tests/lib/text_entry_tests.rb +2 -2
  135. data/tests/lib/wxapp_runner.rb +40 -0
  136. data/tests/lib/wxframe_runner.rb +17 -2
  137. data/tests/test_art.rb +8 -8
  138. data/tests/test_clipboard.rb +4 -4
  139. data/tests/test_config.rb +6 -6
  140. data/tests/test_exceptions.rb +8 -6
  141. data/tests/test_ext_controls.rb +3 -3
  142. data/tests/test_file_dialog.rb +5 -5
  143. data/tests/test_font.rb +7 -7
  144. data/tests/test_grid_ctrl.rb +133 -0
  145. data/tests/test_help.rb +88 -0
  146. data/tests/test_intl.rb +1 -1
  147. data/tests/test_media_ctrl.rb +14 -6
  148. data/tests/test_menu.rb +94 -86
  149. data/tests/test_persistence.rb +1 -1
  150. data/tests/test_proof_check.rb +5 -5
  151. data/tests/test_propgrid.rb +1 -1
  152. data/tests/test_shared_event_handler.rb +141 -0
  153. data/tests/test_std_controls.rb +5 -5
  154. data/tests/test_webview.rb +492 -0
  155. data/tests/test_window.rb +3 -3
  156. metadata +66 -368
  157. data/assets/repo-social-preview.odg +0 -0
  158. data/assets/repo-social-preview.xcf +0 -0
  159. data/lib/wx/aui/events/evt_list.rb +0 -148
  160. data/lib/wx/core/events/evt_list.rb +0 -1458
  161. data/lib/wx/core/font/encoding.rb +0 -113
  162. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  163. data/lib/wx/doc/gen/accelerator.rb +0 -178
  164. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  165. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -284
  166. data/lib/wx/doc/gen/animation.rb +0 -275
  167. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  168. data/lib/wx/doc/gen/any_button.rb +0 -191
  169. data/lib/wx/doc/gen/app.rb +0 -463
  170. data/lib/wx/doc/gen/app_traits.rb +0 -396
  171. data/lib/wx/doc/gen/art_provider.rb +0 -605
  172. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  173. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  174. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  175. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  176. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  177. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  178. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  179. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  180. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  181. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  182. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  183. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  184. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  185. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  186. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  187. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  188. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  189. data/lib/wx/doc/gen/banner_window.rb +0 -124
  190. data/lib/wx/doc/gen/bitmap.rb +0 -731
  191. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  192. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  193. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -273
  194. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  195. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  196. data/lib/wx/doc/gen/brush.rb +0 -251
  197. data/lib/wx/doc/gen/busy_info.rb +0 -157
  198. data/lib/wx/doc/gen/button.rb +0 -182
  199. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  200. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  201. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  202. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  203. data/lib/wx/doc/gen/caret.rb +0 -97
  204. data/lib/wx/doc/gen/check_box.rb +0 -175
  205. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  206. data/lib/wx/doc/gen/choice.rb +0 -175
  207. data/lib/wx/doc/gen/choicebook.rb +0 -116
  208. data/lib/wx/doc/gen/client_dc.rb +0 -43
  209. data/lib/wx/doc/gen/clipboard.rb +0 -144
  210. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  211. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  212. data/lib/wx/doc/gen/colour.rb +0 -333
  213. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  214. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  215. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  216. data/lib/wx/doc/gen/combo_box.rb +0 -292
  217. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  218. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  219. data/lib/wx/doc/gen/config_base.rb +0 -10
  220. data/lib/wx/doc/gen/context_help_button.rb +0 -109
  221. data/lib/wx/doc/gen/control.rb +0 -277
  222. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  223. data/lib/wx/doc/gen/core.rb +0 -45
  224. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  225. data/lib/wx/doc/gen/cursor.rb +0 -193
  226. data/lib/wx/doc/gen/data_format.rb +0 -85
  227. data/lib/wx/doc/gen/data_object.rb +0 -436
  228. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  229. data/lib/wx/doc/gen/date_event.rb +0 -49
  230. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  231. data/lib/wx/doc/gen/dc.rb +0 -1631
  232. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  233. data/lib/wx/doc/gen/defs.rb +0 -2802
  234. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  235. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  236. data/lib/wx/doc/gen/dialog.rb +0 -541
  237. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  238. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  239. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  240. data/lib/wx/doc/gen/display.rb +0 -238
  241. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  242. data/lib/wx/doc/gen/drag_image.rb +0 -116
  243. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  244. data/lib/wx/doc/gen/event.rb +0 -990
  245. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  246. data/lib/wx/doc/gen/event_filter.rb +0 -92
  247. data/lib/wx/doc/gen/event_list.rb +0 -1644
  248. data/lib/wx/doc/gen/events.rb +0 -2809
  249. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  250. data/lib/wx/doc/gen/ext_help_controller.rb +0 -109
  251. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  252. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  253. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  254. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  255. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  256. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  257. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  258. data/lib/wx/doc/gen/file_system.rb +0 -232
  259. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  260. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  261. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  262. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  263. data/lib/wx/doc/gen/font.rb +0 -1379
  264. data/lib/wx/doc/gen/font_data.rb +0 -151
  265. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  266. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  267. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  268. data/lib/wx/doc/gen/frame.rb +0 -352
  269. data/lib/wx/doc/gen/fs_file.rb +0 -337
  270. data/lib/wx/doc/gen/functions.rb +0 -10
  271. data/lib/wx/doc/gen/gauge.rb +0 -157
  272. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  273. data/lib/wx/doc/gen/gcdc.rb +0 -46
  274. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  275. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  276. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  277. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  278. data/lib/wx/doc/gen/geometry.rb +0 -661
  279. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  280. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  281. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  282. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  283. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  284. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  285. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  286. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  287. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  288. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  289. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  290. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  291. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  292. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  293. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  294. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  295. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  296. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  297. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  298. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  299. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  300. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  301. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  302. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3002
  303. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  304. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  305. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  306. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  307. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  308. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  309. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  310. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  311. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  312. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  313. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  314. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  315. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  316. data/lib/wx/doc/gen/help_controller.rb +0 -195
  317. data/lib/wx/doc/gen/help_provider.rb +0 -98
  318. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  319. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  320. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  321. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  322. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  323. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -340
  324. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  325. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  326. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  327. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  328. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  329. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  330. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  331. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  332. data/lib/wx/doc/gen/icon.rb +0 -267
  333. data/lib/wx/doc/gen/icon_location.rb +0 -40
  334. data/lib/wx/doc/gen/image.rb +0 -1371
  335. data/lib/wx/doc/gen/image_list.rb +0 -168
  336. data/lib/wx/doc/gen/info_bar.rb +0 -195
  337. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  338. data/lib/wx/doc/gen/list_box.rb +0 -304
  339. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  340. data/lib/wx/doc/gen/list_event.rb +0 -208
  341. data/lib/wx/doc/gen/listbook.rb +0 -116
  342. data/lib/wx/doc/gen/locale.rb +0 -4293
  343. data/lib/wx/doc/gen/log.rb +0 -603
  344. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  345. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  346. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  347. data/lib/wx/doc/gen/media_event.rb +0 -117
  348. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  349. data/lib/wx/doc/gen/menu.rb +0 -509
  350. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  351. data/lib/wx/doc/gen/menu_item.rb +0 -362
  352. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  353. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  354. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  355. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  356. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  357. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  358. data/lib/wx/doc/gen/notebook.rb +0 -278
  359. data/lib/wx/doc/gen/num_validator.rb +0 -37
  360. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  361. data/lib/wx/doc/gen/object.rb +0 -59
  362. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  363. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  364. data/lib/wx/doc/gen/palette.rb +0 -92
  365. data/lib/wx/doc/gen/panel.rb +0 -127
  366. data/lib/wx/doc/gen/pen.rb +0 -511
  367. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  368. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  369. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  370. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  371. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  372. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  373. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  374. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  375. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  376. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  377. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  378. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  379. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  380. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  381. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  382. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  383. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  384. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  385. data/lib/wx/doc/gen/picker_base.rb +0 -152
  386. data/lib/wx/doc/gen/platform_info.rb +0 -622
  387. data/lib/wx/doc/gen/popup_window.rb +0 -107
  388. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  389. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  390. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  391. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  392. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  393. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  394. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  395. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  396. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  397. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  398. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  399. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  400. data/lib/wx/doc/gen/radio_box.rb +0 -306
  401. data/lib/wx/doc/gen/radio_button.rb +0 -159
  402. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  403. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1132
  404. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  405. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  406. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  407. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  408. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  409. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  410. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  411. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  412. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  413. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  414. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  415. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  416. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  417. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  418. data/lib/wx/doc/gen/region.rb +0 -380
  419. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  420. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  421. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  422. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  423. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  424. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  425. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  426. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  427. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  428. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  429. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  430. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  431. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  432. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  433. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  434. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  435. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  436. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  437. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  438. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  439. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  440. data/lib/wx/doc/gen/sash_event.rb +0 -147
  441. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  442. data/lib/wx/doc/gen/sash_window.rb +0 -171
  443. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  444. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  445. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  446. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  447. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  448. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  449. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  450. data/lib/wx/doc/gen/secret_store.rb +0 -116
  451. data/lib/wx/doc/gen/simplebook.rb +0 -110
  452. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  453. data/lib/wx/doc/gen/sizer.rb +0 -945
  454. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  455. data/lib/wx/doc/gen/slider.rb +0 -342
  456. data/lib/wx/doc/gen/spin_button.rb +0 -157
  457. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  458. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  459. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  460. data/lib/wx/doc/gen/spin_event.rb +0 -51
  461. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  462. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  463. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  464. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  465. data/lib/wx/doc/gen/static_box.rb +0 -180
  466. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  467. data/lib/wx/doc/gen/static_line.rb +0 -83
  468. data/lib/wx/doc/gen/static_text.rb +0 -127
  469. data/lib/wx/doc/gen/status_bar.rb +0 -290
  470. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  471. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  472. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  473. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  474. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  475. data/lib/wx/doc/gen/system_options.rb +0 -129
  476. data/lib/wx/doc/gen/system_settings.rb +0 -507
  477. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  478. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  479. data/lib/wx/doc/gen/text_attr.rb +0 -756
  480. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  481. data/lib/wx/doc/gen/text_entry.rb +0 -441
  482. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  483. data/lib/wx/doc/gen/text_validator.rb +0 -245
  484. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  485. data/lib/wx/doc/gen/timer.rb +0 -119
  486. data/lib/wx/doc/gen/timer_event.rb +0 -68
  487. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  488. data/lib/wx/doc/gen/tip_window.rb +0 -51
  489. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  490. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  491. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  492. data/lib/wx/doc/gen/toolbook.rb +0 -118
  493. data/lib/wx/doc/gen/top_level_window.rb +0 -497
  494. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  495. data/lib/wx/doc/gen/tree_event.rb +0 -127
  496. data/lib/wx/doc/gen/treebook.rb +0 -180
  497. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  498. data/lib/wx/doc/gen/utils.rb +0 -273
  499. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  500. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  501. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  502. data/lib/wx/doc/gen/validator.rb +0 -68
  503. data/lib/wx/doc/gen/variant.rb +0 -294
  504. data/lib/wx/doc/gen/window.rb +0 -2917
  505. data/lib/wx/doc/gen/window_dc.rb +0 -38
  506. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  507. data/lib/wx/doc/gen/with_images.rb +0 -84
  508. data/lib/wx/doc/gen/wizard.rb +0 -257
  509. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  510. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  511. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  512. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  513. data/lib/wx/doc/gen/xml_node.rb +0 -316
  514. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  515. data/lib/wx/grid/events/evt_list.rb +0 -166
  516. data/lib/wx/html/events/evt_list.rb +0 -27
  517. data/lib/wx/pg/events/evt_list.rb +0 -73
  518. data/lib/wx/rbn/events/evt_list.rb +0 -102
  519. data/lib/wx/rtc/events/evt_list.rb +0 -98
  520. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  521. data/lib/wx/stc/events/evt_list.rb +0 -178
  522. data/samples/art/wxruby-512x512.png +0 -0
@@ -1,541 +0,0 @@
1
- # :stopdoc:
2
- # This file is automatically generated by the WXRuby3 documentation
3
- # generator. Do not alter this file.
4
- # :startdoc:
5
-
6
-
7
- module Wx
8
-
9
- #
10
- DIALOG_NO_PARENT = 32
11
-
12
- #
13
- DEFAULT_DIALOG_STYLE = 536877056
14
-
15
- #
16
- DIALOG_ADAPTATION_NONE = 0
17
-
18
- #
19
- DIALOG_ADAPTATION_STANDARD_SIZER = 1
20
-
21
- #
22
- DIALOG_ADAPTATION_ANY_SIZER = 2
23
-
24
- #
25
- DIALOG_ADAPTATION_LOOSE_BUTTONS = 3
26
-
27
- # Modes used for {Wx::Dialog#set_layout_adaptation_mode}.
28
- #
29
- #
30
- #
31
- class DialogLayoutAdaptationMode < Wx::Enum
32
-
33
- # Use global adaptation enabled status.
34
- #
35
- DIALOG_ADAPTATION_MODE_DEFAULT = Wx::DialogLayoutAdaptationMode.new(0)
36
-
37
- # Enable this dialog overriding global status.
38
- #
39
- DIALOG_ADAPTATION_MODE_ENABLED = Wx::DialogLayoutAdaptationMode.new(1)
40
-
41
- # Disable this dialog overriding global status.
42
- #
43
- DIALOG_ADAPTATION_MODE_DISABLED = Wx::DialogLayoutAdaptationMode.new(2)
44
-
45
- end # DialogLayoutAdaptationMode
46
-
47
- # A dialog box is a window with a title bar and sometimes a system menu, which can be moved around the screen.
48
- #
49
- # It can contain controls and other windows and is often used to allow the user to make some choice or to answer a question.
50
- # Dialogs can be made scrollable, automatically, for computers with low resolution screens: please see Automatic Scrolled Dialogs for further details.
51
- # Dialogs usually contain either a single button allowing to close the dialog or two buttons, one accepting the changes and the other one discarding them (such button, if present, is automatically activated if the user presses the "Esc" key). By default, buttons with the standard {Wx::StandardID::ID_OK} and {Wx::StandardID::ID_CANCEL} identifiers behave as expected. Starting with wxWidgets 2.7 it is also possible to use a button with a different identifier instead, see {Wx::Dialog#set_affirmative_id} and {Wx::Dialog#set_escape_id}.
52
- # Also notice that the {Wx::Dialog#create_button_sizer} should be used to create the buttons appropriate for the current platform and positioned correctly (including their order which is platform-dependent).
53
- #
54
- # ## Modal and Modeless
55
- # There are two kinds of dialog, modal and modeless. A modal dialog blocks program flow and user input on other windows until it is dismissed, whereas a modeless dialog behaves more like a frame in that program flow continues, and input in other windows is still possible. To show a modal dialog you should use the {Wx::Dialog#show_modal} method while to show a dialog modelessly you simply use {Wx::Dialog#show}, just as with frames.
56
- # Note that dialogs need to be explicitly destroyed when closed and not used anymore. The traditional code for this would be like:
57
- #
58
- # ```ruby
59
- # def ask_user
60
- # dlg = MyAskDialog.new(...)
61
- # if dlg.show_modal == Wx::ID_OK
62
- # # ...
63
- # #else: dialog was cancelled or some another button pressed
64
- # end
65
- #
66
- # dlg.destroy
67
- # end
68
- # ```
69
- #
70
- # You can achieve the same result with dialogs by using simpler code:
71
- #
72
- # ```ruby
73
- # def ask_user
74
- # MyAskDialog(...) do |dlg|
75
- # if dlg.show_modal == Wx::ID_OK
76
- # # ...
77
- # #else: dialog was cancelled or some another button pressed
78
- # end
79
- # end
80
- # end
81
- # ```
82
- #
83
- # An application can define a {Wx::CloseEvent} handler for the dialog to respond to system close events.
84
- # ### Styles
85
- #
86
- # This class supports the following styles:
87
- #
88
- # - {Wx::CAPTION}: Shows the title bar, containing the window title, for this window. Note that this style is implicitly enabled by {Wx::MINIMIZE_BOX}, {Wx::MAXIMIZE_BOX} and {Wx::CLOSE_BOX} on most systems as the corresponding buttons couldn't be shown if the window had no title bar at all.
89
- #
90
- # - {Wx::DEFAULT_DIALOG_STYLE}: Equivalent to a combination of {Wx::CAPTION}, {Wx::CLOSE_BOX} and {Wx::SYSTEM_MENU} (the last one is not used under Unix).
91
- #
92
- # - {Wx::RESIZE_BORDER}: Display a resizable frame around the window.
93
- #
94
- # - {Wx::SYSTEM_MENU}: Display a system menu.
95
- #
96
- # - {Wx::CLOSE_BOX}: Displays a close box on the frame. This style implicitly enables {Wx::CAPTION} too.
97
- #
98
- # - {Wx::MAXIMIZE_BOX}: Displays a maximize box on the dialog. This style implicitly enables {Wx::CAPTION} too.
99
- #
100
- # - {Wx::MINIMIZE_BOX}: Displays a minimize box on the dialog. This style implicitly enables {Wx::CAPTION} too.
101
- #
102
- # - {Wx::THICK_FRAME}: Display a thick frame around the window.
103
- #
104
- # - {Wx::STAY_ON_TOP}: The dialog stays on top of all other windows.
105
- #
106
- # - {Wx::NO_3D}: This style is obsolete and doesn't do anything any more, don't use it in any new code.
107
- #
108
- # - {Wx::DIALOG_NO_PARENT}: By default, a dialog created with a nil parent window will be given the application's top level window as parent. Use this style to prevent this from happening and create an orphan dialog. This is not recommended for modal dialogs.
109
- #
110
- # - {Wx::DIALOG_EX_CONTEXTHELP}: Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send a {Wx::EVT_HELP} event if the user clicked on an application window. Note that this is an extended style and must be set by calling {Wx::Dialog#set_extra_style} before Create is called (two-step construction).
111
- #
112
- # - {Wx::DIALOG_EX_METAL}: On macOS, frames with this style will be shown with a metallic look. This is an extra style.
113
- #
114
- # Under Unix a window manager recognizing the WM hints should be running for any of these styles to have an effect.
115
- # ### Events emitted by this class
116
- #
117
- # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CloseEvent} events.
118
- # Event handler methods for events emitted by this class:
119
- #
120
- # - {Wx::EvtHandler#evt_close}(meth = nil, &block): The dialog is being closed by the user or programmatically (see {Wx::Window#close}). The user may generate this event clicking the close button (typically the 'X' on the top-right of the title bar) if it's present (see the {Wx::CLOSE_BOX} style).
121
- #
122
- # - {Wx::EvtHandler#evt_init_dialog}(meth = nil, &block): Process a {Wx::EVT_INIT_DIALOG} event. See {Wx::InitDialogEvent}.
123
- #
124
- # Category: Common Dialogs
125
- # @see wxDialog Overview
126
- # @see Wx::Frame
127
- # @see wxValidator Overview
128
- #
129
- #
130
- class Dialog < TopLevelWindow
131
-
132
- # @overload initialize()
133
- # Default constructor.
134
- # @return [Wx::Dialog]
135
- # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR)
136
- # Constructor.
137
- #
138
- #
139
- # @see Wx::Dialog#create
140
- # @param parent [Wx::Window] Can be nil, a frame or another dialog box. Please note that when the parent is nil, the dialog will be owned by the application's top window, if any. Use {Wx::DIALOG_NO_PARENT} style to really make dialog not owned by any window.
141
- # @param id [Integer] An identifier for the dialog. A value of -1 is taken to mean a default.
142
- # @param title [String] The title of the dialog.
143
- # @param pos [Array(Integer, Integer), Wx::Point] The dialog position. The value {Wx::DEFAULT_POSITION} indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.
144
- # @param size [Array(Integer, Integer), Wx::Size] The dialog size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
145
- # @param style [Integer] The window style.
146
- # @param name [String] Used to associate a name with the window. This is not the same as the title of the window.
147
- # @return [Wx::Dialog]
148
- # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR, &block)
149
- # Constructor.
150
- #
151
- #
152
- # @see Wx::Dialog#create
153
- # @param parent [Wx::Window] Can be nil, a frame or another dialog box. Please note that when the parent is nil, the dialog will be owned by the application's top window, if any. Use {Wx::DIALOG_NO_PARENT} style to really make dialog not owned by any window.
154
- # @param id [Integer] An identifier for the dialog. A value of -1 is taken to mean a default.
155
- # @param title [String] The title of the dialog.
156
- # @param pos [Array(Integer, Integer), Wx::Point] The dialog position. The value {Wx::DEFAULT_POSITION} indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.
157
- # @param size [Array(Integer, Integer), Wx::Size] The dialog size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
158
- # @param style [Integer] The window style.
159
- # @param name [String] Used to associate a name with the window. This is not the same as the title of the window.
160
- # @yieldparam [Wx::Dialog] win new instance
161
- # @return [Wx::Dialog]
162
- def initialize(*args) end
163
-
164
- # Adds an identifier to be regarded as a main button for the non-scrolling area of a dialog.
165
- #
166
- #
167
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
168
- # @param id [Integer]
169
- # @return [void]
170
- def add_main_button_id(id) end
171
-
172
- # Returns true if this dialog can and should perform layout adaptation using {Wx::Dialog#do_layout_adaptation}, usually if the dialog is too large to fit on the display.
173
- #
174
- #
175
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
176
- # @return [Boolean]
177
- def can_do_layout_adaptation; end
178
- alias_method :can_do_layout_adaptation?, :can_do_layout_adaptation
179
-
180
- # Centres the dialog box on the display.
181
- # @param direction [Integer] May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
182
- # @return [void]
183
- def centre(direction=Wx::Orientation::BOTH) end
184
-
185
- # Used for two-step dialog box construction.
186
- #
187
- #
188
- # @see Wx::Dialog#initialize
189
- # @param parent [Wx::Window]
190
- # @param id [Integer]
191
- # @param title [String]
192
- # @param pos [Array(Integer, Integer), Wx::Point]
193
- # @param size [Array(Integer, Integer), Wx::Size]
194
- # @param style [Integer]
195
- # @param name [String]
196
- # @return [Boolean]
197
- def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR) end
198
-
199
- # Creates a sizer with standard buttons.
200
- #
201
- # flags is a bit list of the following flags: {Wx::OK}, {Wx::CANCEL}, {Wx::YES}, {Wx::NO}, {Wx::APPLY}, {Wx::CLOSE}, {Wx::HELP}, {Wx::NO_DEFAULT}.
202
- # The sizer lays out the buttons in a manner appropriate to the platform.
203
- # This function uses {Wx::Dialog#create_std_dialog_button_sizer} internally for most platforms but doesn't create the sizer at all for the platforms with hardware buttons (such as smartphones) for which it sets up the hardware buttons appropriately and returns nil, so don't forget to test that the return value is valid before using it.
204
- # @param flags [Integer]
205
- # @return [Wx::Sizer]
206
- def create_button_sizer(flags) end
207
-
208
- # Creates a sizer with standard buttons using {Wx::Dialog#create_button_sizer} separated from the rest of the dialog contents by a horizontal {Wx::StaticLine}.
209
- #
210
- # <div class="wxrb-note">
211
- # <b>Note:</b>
212
- # <p>Just like {Wx::Dialog#create_button_sizer}, this function may return nil if no buttons were created.
213
- # </p>
214
- # </div>
215
- #
216
- # This is a combination of {Wx::Dialog#create_button_sizer} and {Wx::Dialog#create_separated_sizer}.
217
- # @param flags [Integer]
218
- # @return [Wx::Sizer]
219
- def create_separated_button_sizer(flags) end
220
-
221
- # Returns the sizer containing the given one with a separating {Wx::StaticLine} if necessarily.
222
- #
223
- # This function is useful for creating the sizer containing footer-like contents in dialog boxes. It will add a separating static line only if it conforms to the current platform convention (currently it is not added under Mac where the use of static lines for grouping is discouraged and is added elsewhere).
224
- #
225
- # The sizer wrapping the input one or possibly the input sizer itself if no wrapping is necessary.
226
- # @param sizer [Wx::Sizer] The sizer to wrap, must be non-null.
227
- # @return [Wx::Sizer]
228
- def create_separated_sizer(sizer) end
229
-
230
- # Creates a {Wx::StdDialogButtonSizer} with standard buttons.
231
- #
232
- # flags is a bit list of the following flags: {Wx::OK}, {Wx::CANCEL}, {Wx::YES}, {Wx::NO}, {Wx::APPLY}, {Wx::CLOSE}, {Wx::HELP}, {Wx::NO_DEFAULT}.
233
- # The sizer lays out the buttons in a manner appropriate to the platform.
234
- #
235
- # <div class="wxrb-note">
236
- # <b>Note:</b>
237
- # <p>Unlike when using {Wx::StdDialogButtonSizer} directly, creating the sizer with this method usually results in one of its buttons being default (and having initial focus): {Wx::NO_DEFAULT} will make the No button the default, otherwise the OK or Yes button will be set as the default when present.
238
- # </p>
239
- # </div>
240
- # @param flags [Integer]
241
- # @return [Wx::StdDialogButtonSizer]
242
- def create_std_dialog_button_sizer(flags) end
243
-
244
- # Splits text up at newlines and places the lines into {Wx::StaticText} objects with the specified maximum width in a vertical {Wx::BoxSizer}.
245
- #
246
- # If widthMax has its default value of -1, only explicit new line characters in message are taken into account. Otherwise, lines are broken either after a new line or wrapped, at word boundary, if their width would become bigger than the specified maximal width.
247
- # @see wxStaticText::Wrap(int width)
248
- # @param message [String] The text to be displayed.
249
- # @param widthMax [Integer] Specifies the text's maximum width (this argument is available since version 3.1.1, previous versions always behaved as if the maximal width of -1 was specified).
250
- # @return [Wx::Sizer]
251
- def create_text_sizer(message, widthMax=-1) end
252
-
253
- # Performs layout adaptation, usually if the dialog is too large to fit on the display.
254
- #
255
- #
256
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
257
- # @return [Boolean]
258
- def do_layout_adaptation; end
259
-
260
- # Ends a modal dialog, passing a value to be returned from the {Wx::Dialog#show_modal} invocation.
261
- #
262
- #
263
- # @see Wx::Dialog#show_modal
264
- # @see Wx::Dialog#get_return_code
265
- # @see Wx::Dialog#set_return_code
266
- # @param retCode [Integer] The value that should be returned by ShowModal.
267
- # @return [void]
268
- def end_modal(retCode) end
269
-
270
- # Gets the identifier of the button which works like standard OK button in this dialog.
271
- #
272
- #
273
- # @see Wx::Dialog#set_affirmative_id
274
- # @return [Integer]
275
- def get_affirmative_id; end
276
- alias_method :affirmative_id, :get_affirmative_id
277
-
278
- # Gets the identifier of the button to map presses of ESC button to.
279
- #
280
- #
281
- # @see Wx::Dialog#set_escape_id
282
- # @return [Integer]
283
- def get_escape_id; end
284
- alias_method :escape_id, :get_escape_id
285
-
286
- # Returns true if the dialog has been adapted, usually by making it scrollable to work with a small display.
287
- #
288
- #
289
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
290
- # @return [Boolean]
291
- def get_layout_adaptation_done; end
292
- alias_method :layout_adaptation_done, :get_layout_adaptation_done
293
-
294
- # Gets a value representing the aggressiveness of search for buttons and sizers to be in the non-scrolling part of a layout-adapted dialog.
295
- #
296
- # Zero switches off adaptation, and 3 allows search for standard buttons anywhere in the dialog.
297
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
298
- # @return [Integer]
299
- def get_layout_adaptation_level; end
300
- alias_method :layout_adaptation_level, :get_layout_adaptation_level
301
-
302
- # Gets the adaptation mode, overriding the global adaptation flag.
303
- #
304
- #
305
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
306
- # @return [Wx::DialogLayoutAdaptationMode]
307
- def get_layout_adaptation_mode; end
308
- alias_method :layout_adaptation_mode, :get_layout_adaptation_mode
309
-
310
- # Returns an array of identifiers to be regarded as the main buttons for the non-scrolling area of a dialog.
311
- #
312
- #
313
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
314
- # @return [Array<Integer>]
315
- def get_main_button_ids; end
316
- alias_method :main_button_ids, :get_main_button_ids
317
-
318
- # Gets the return code for this window.
319
- #
320
- # <div class="wxrb-remark">
321
- # <b>Remark:</b>
322
- # <p>A return code is normally associated with a modal dialog, where {Wx::Dialog#show_modal} returns a code to the application.
323
- # </p>
324
- # </div>
325
- # @see Wx::Dialog#set_return_code
326
- # @see Wx::Dialog#show_modal
327
- # @see Wx::Dialog#end_modal
328
- # @return [Integer]
329
- def get_return_code; end
330
- alias_method :return_code, :get_return_code
331
-
332
- # Iconizes or restores the dialog.
333
- #
334
- # Windows only.
335
- #
336
- # <div class="wxrb-remark">
337
- # <b>Remark:</b>
338
- # <p>Note that in Windows, iconization has no effect since dialog boxes cannot be iconized. However calling Iconize(false) will bring the window to the front, as does Show(true).
339
- # </p>
340
- # </div>
341
- # @param iconize [Boolean] If true, iconizes the dialog box; if false, shows and restores it.
342
- # @return [void]
343
- def iconize(iconize=true) end
344
-
345
- # Returns true if the dialog box is iconized.
346
- #
347
- # Windows only.
348
- #
349
- # <div class="wxrb-remark">
350
- # <b>Remark:</b>
351
- # <p>Always returns false under Windows since dialogs cannot be iconized.
352
- # </p>
353
- # </div>
354
- # @return [Boolean]
355
- def is_iconized; end
356
- alias_method :iconized?, :is_iconized
357
-
358
- # Returns true if the dialog box is modal, false otherwise.
359
- # @return [Boolean]
360
- def is_modal; end
361
- alias_method :modal?, :is_modal
362
-
363
- # Sets the identifier to be used as OK button.
364
- #
365
- # When the button with this identifier is pressed, the dialog calls {Wx::Window#validate} and {Wx::Window#transfer_data_from_window} and, if they both return true, closes the dialog with the affirmative id return code.
366
- # Also, when the user presses a hardware OK button on the devices having one or the special OK button in the PocketPC title bar, an event with this id is generated.
367
- # By default, the affirmative id is {Wx::StandardID::ID_OK}.
368
- # @see Wx::Dialog#get_affirmative_id
369
- # @see Wx::Dialog#set_escape_id
370
- # @param id [Integer]
371
- # @return [void]
372
- def set_affirmative_id(id) end
373
- alias_method :affirmative_id=, :set_affirmative_id
374
-
375
- # Sets the identifier of the button which should work like the standard "Cancel" button in this dialog.
376
- #
377
- # When the button with this id is clicked, the dialog is closed. Also, when the user presses ESC key in the dialog or closes the dialog using the close button in the title bar, this is mapped to the click of the button with the specified id.
378
- # By default, the escape id is the special value {Wx::StandardID::ID_ANY} meaning that {Wx::StandardID::ID_CANCEL} button is used if it's present in the dialog and otherwise the button with {Wx::Dialog#get_affirmative_id} is used. Another special value for id is {Wx::StandardID::ID_NONE} meaning that ESC presses should be ignored. If any other value is given, it is interpreted as the id of the button to map the escape key to.
379
- #
380
- # <div class="wxrb-note">
381
- # <b>Note:</b>
382
- # <p>This method should be used for custom modal dialog implemented in wxWidgets itself, native dialogs such as {Wx::MessageDialog} or {Wx::FileDialog}, handle ESC presses in their own way which cannot be customized.
383
- # </p>
384
- # </div>
385
- # @param id [Integer]
386
- # @return [void]
387
- def set_escape_id(id) end
388
- alias_method :escape_id=, :set_escape_id
389
-
390
- # Sets the icon for this dialog.
391
- #
392
- #
393
- # @see Wx::Icon
394
- # @param icon [Wx::Icon] The icon to associate with this dialog.
395
- # @return [void]
396
- def set_icon(icon) end
397
- alias_method :icon=, :set_icon
398
-
399
- # Sets the icons for this dialog.
400
- #
401
- #
402
- # @see Wx::IconBundle
403
- # @param icons [Wx::IconBundle] The icons to associate with this dialog.
404
- # @return [void]
405
- def set_icons(icons) end
406
- alias_method :icons=, :set_icons
407
-
408
- # Marks the dialog as having been adapted, usually by making it scrollable to work with a small display.
409
- #
410
- #
411
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
412
- # @param done [Boolean]
413
- # @return [void]
414
- def set_layout_adaptation_done(done) end
415
- alias_method :layout_adaptation_done=, :set_layout_adaptation_done
416
-
417
- # Sets the aggressiveness of search for buttons and sizers to be in the non-scrolling part of a layout-adapted dialog.
418
- #
419
- # Zero switches off adaptation, and 3 allows search for standard buttons anywhere in the dialog.
420
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
421
- # @param level [Integer]
422
- # @return [void]
423
- def set_layout_adaptation_level(level) end
424
- alias_method :layout_adaptation_level=, :set_layout_adaptation_level
425
-
426
- # Sets the adaptation mode, overriding the global adaptation flag.
427
- #
428
- #
429
- # @see Wx::DialogLayoutAdaptationMode
430
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
431
- # @param mode [Wx::DialogLayoutAdaptationMode]
432
- # @return [void]
433
- def set_layout_adaptation_mode(mode) end
434
- alias_method :layout_adaptation_mode=, :set_layout_adaptation_mode
435
-
436
- # Sets the return code for this window.
437
- #
438
- # A return code is normally associated with a modal dialog, where {Wx::Dialog#show_modal} returns a code to the application. The function {Wx::Dialog#end_modal} calls {Wx::Dialog#set_return_code}.
439
- # @see Wx::Dialog#get_return_code
440
- # @see Wx::Dialog#show_modal
441
- # @see Wx::Dialog#end_modal
442
- # @param retCode [Integer] The integer return code, usually a control identifier.
443
- # @return [void]
444
- def set_return_code(retCode) end
445
- alias_method :return_code=, :set_return_code
446
-
447
- # Hides or shows the dialog.
448
- #
449
- # The preferred way of dismissing a modal dialog is to use {Wx::Dialog#end_modal}.
450
- # @param show [Boolean] If true, the dialog box is shown and brought to the front, otherwise the box is hidden. If false and the dialog is modal, control is returned to the calling program.
451
- # @return [Boolean]
452
- def show(show=true) end
453
-
454
- # Shows an application-modal dialog.
455
- #
456
- # Program flow does not return until the dialog has been dismissed with {Wx::Dialog#end_modal}.
457
- # Notice that it is possible to call {Wx::Dialog#show_modal} for a dialog which had been previously shown with {Wx::Dialog#show}, this allows making an existing modeless dialog modal. However {Wx::Dialog#show_modal} can't be called twice without intervening {Wx::Dialog#end_modal} calls.
458
- # Note that this function creates a temporary event loop which takes precedence over the application's main event loop (see {Wx::EventLoopBase}) and which is destroyed when the dialog is dismissed. This also results in a call to {Wx::App#process_pending_events}.
459
- # The value set with {Wx::Dialog#set_return_code}.
460
- # @see Wx::Dialog#show_window_modal
461
- # @see Wx::Dialog#show_window_modal_then_do
462
- # @see Wx::Dialog#end_modal
463
- # @see Wx::Dialog#get_return_code
464
- # @see Wx::Dialog#set_return_code
465
- # @return [Integer]
466
- def show_modal; end
467
-
468
- # Shows a dialog modal to the parent top level window only.
469
- #
470
- # Unlike {Wx::Dialog#show_modal}, dialogs shown with this function only prevent the user from interacting with their parent frame only but not with the rest of the application. They also don't block the program execution but instead return immediately, as {Wx::Dialog#show}, and generate a {Wx::EVT_WINDOW_MODAL_DIALOG_CLOSED} event ({Wx::WindowModalDialogEvent}) later when the dialog is closed.
471
- # Currently this function is only fully implemented in WXOSX ports, under the other platforms it behaves like {Wx::Dialog#show_modal} (but also sends the above mentioned event).
472
- # @see Wx::WindowModalDialogEvent
473
- # @see Wx::Dialog#show_window_modal_then_do
474
- # @return [void]
475
- def show_window_modal; end
476
-
477
- # A static function enabling or disabling layout adaptation for all dialogs.
478
- #
479
- #
480
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
481
- # @param enable [Boolean]
482
- # @return [void]
483
- def self.enable_layout_adaptation(enable) end
484
-
485
- # A static function getting the current layout adapter object.
486
- #
487
- #
488
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
489
- # @return [Wx::DialogLayoutAdapter]
490
- def self.get_layout_adapter; end
491
-
492
- # A static function returning true if layout adaptation is enabled for all dialogs.
493
- #
494
- #
495
- # @see Automatic Scrolled Dialogs (for more on layout adaptation)
496
- # @return [Boolean]
497
- def self.is_layout_adaptation_enabled; end
498
-
499
- # A static function for setting the current layout adapter object, returning the old adapter.
500
- #
501
- # If you call this, you should delete the old adapter object.
502
- # @see Wx::DialogLayoutAdapter
503
- # @see Automatic Scrolled Dialogs
504
- # @param adapter [Wx::DialogLayoutAdapter]
505
- # @return [Wx::DialogLayoutAdapter]
506
- def self.set_layout_adapter(adapter) end
507
-
508
- end # Dialog
509
-
510
- # This abstract class is the base for classes that help wxWidgets perform run-time layout adaptation of dialogs.
511
- #
512
- # Principally, this is to cater for small displays by making part of the dialog scroll, but the application developer may find other uses for layout adaption.
513
- # By default, there is one instance of {Wx::StandardDialogLayoutAdapter} which can perform adaptation for most custom dialogs and dialogs with book controls such as {Wx::PropertySheetDialog}.
514
- #
515
- # Category: Window Layout
516
- # @see Automatic Scrolled Dialogs
517
- #
518
- #
519
- class DialogLayoutAdapter < ::Object
520
-
521
- # Default constructor.
522
- # @return [Wx::DialogLayoutAdapter]
523
- def initialize; end
524
-
525
- # Override this to returns true if adaptation can and should be done.
526
- # @param dialog [Wx::Dialog]
527
- # @return [Boolean]
528
- def can_do_layout_adaptation(dialog) end
529
- alias_method :can_do_layout_adaptation?, :can_do_layout_adaptation
530
-
531
- # Override this to perform layout adaptation, such as making parts of the dialog scroll and resizing the dialog to fit the display.
532
- #
533
- # Normally this function will be called just before the dialog is shown.
534
- # @param dialog [Wx::Dialog]
535
- # @return [Boolean]
536
- def do_layout_adaptation(dialog) end
537
-
538
- end # DialogLayoutAdapter
539
-
540
-
541
- end