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,1098 +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
- module PG
10
-
11
- # Most of the shared property manipulation interface shared by {Wx::PG::PropertyGrid}, {Wx::PG::PropertyGridPage}, and {Wx::PG::PropertyGridManager} is defined in this class.
12
- #
13
- # <div class="wxrb-remark">
14
- # <b>Remark:</b>
15
- # <p>
16
- #
17
- # - In separate {Wx::PG::PropertyGrid} component this class was known as {Wx::PropertyContainerMethods}.
18
- # - {Wx::PG::PropertyGridInterface}'s property operation member functions all accept a special {Wx::PGPropArg} id argument, using which you can refer to properties either by their pointer (for performance) or by their name (for convenience).
19
- #
20
- # </p>
21
- # </div>
22
- #
23
- # Category: {Wx::PG::PropertyGrid}
24
- #
25
- #
26
- # @note In wxRuby this is a mixin module instead of a (base) class.
27
- # @wxrb_require USE_PROPGRID
28
- module PropertyGridInterface
29
-
30
- #
31
- #
32
- # Flags for {Wx::PG::PropertyGridInterface#save_editable_state} and {Wx::PG::PropertyGridInterface#restore_editable_state}.
33
- #
34
- # @wxrb_require USE_PROPGRID
35
- class EditableStateFlags < Wx::Enum
36
-
37
- # Include selected property.
38
- #
39
- SelectionState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(1)
40
-
41
- # Include expanded/collapsed property information.
42
- #
43
- ExpandedState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(2)
44
-
45
- # Include scrolled position.
46
- #
47
- ScrollPosState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(4)
48
-
49
- # Include selected page information.
50
- #
51
- PageState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(8)
52
-
53
- # Include splitter position.
54
- #
55
- SplitterPosState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(16)
56
-
57
- # Include description box size.
58
- #
59
- DescBoxState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(32)
60
-
61
- # Include all supported user editable state information.
62
- #
63
- AllStates = Wx::PG::PropertyGridInterface::EditableStateFlags.new(63)
64
-
65
- end # EditableStateFlags
66
-
67
- # Appends property to the list.
68
- #
69
- # {Wx::PG::PropertyGrid} assumes ownership of the object. Becomes child of most recently added category.
70
- #
71
- # <div class="wxrb-remark">
72
- # <b>Remark:</b>
73
- # <p>
74
- #
75
- # - {Wx::PG::PropertyGrid} takes the ownership of the property pointer.
76
- # - If appending a category with name identical to a category already in the {Wx::PG::PropertyGrid}, then newly created category is deleted, and most recently added category (under which properties are appended) is set to the one with same name. This allows easier adding of items to same categories in multiple passes.
77
- # - Does not automatically redraw the control, so you may need to call {refresh} when calling this function after control has been shown for the first time.
78
- # - This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
79
- #
80
- # </p>
81
- # </div>
82
- # @param property [Wx::PG::PGProperty]
83
- # @return [Wx::PG::PGProperty]
84
- def append(property) end
85
-
86
- # Same as {Wx::PG::PropertyGridInterface#append}, but appends under given parent property.
87
- # @param id [String,Wx::PG::PGProperty] Name or pointer to parent property.
88
- # @param newProperty [Wx::PG::PGProperty] Property to be added.
89
- # @return [Wx::PG::PGProperty]
90
- def append_in(id, newProperty) end
91
-
92
- # In order to add new items into a property with private children (for instance, {Wx::PG::FlagsProperty}), you need to call this method.
93
- #
94
- # After populating has been finished, you need to call {Wx::PG::PropertyGridInterface#end_add_children}.
95
- # @see Wx::PG::PropertyGridInterface#end_add_children
96
- # @param id [String,Wx::PG::PGProperty]
97
- # @return [void]
98
- def begin_add_children(id) end
99
-
100
- # Deletes all properties.
101
- #
102
- # <div class="wxrb-remark">
103
- # <b>Remark:</b>
104
- # <p>This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
105
- # </p>
106
- # </div>
107
- # @return [void]
108
- def clear; end
109
-
110
- # Clears current selection, if any.
111
- #
112
- # Returns true if successful or if there was no selection. May fail if validation was enabled and active editor had invalid value.
113
- #
114
- # <div class="wxrb-remark">
115
- # <b>Remark:</b>
116
- # <p>In wxWidgets 2.9 and later, this function no longer sends {Wx::PG_EVT_SELECTED}.
117
- # </p>
118
- # </div>
119
- # @see Wx::PG::PropertyGrid#select_property
120
- # @param validation [Boolean] If set to false, deselecting the property will always work, even if its editor had invalid value in it.
121
- # @return [Boolean]
122
- def clear_selection(validation=false) end
123
-
124
- # Resets modified status of all properties.
125
- # @return [void]
126
- def clear_modified_status; end
127
-
128
- # Collapses given category or property with children.
129
- #
130
- # Returns true if actually collapsed.
131
- #
132
- # <div class="wxrb-remark">
133
- # <b>Remark:</b>
134
- # <p>This function may deselect selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
135
- # </p>
136
- # </div>
137
- # @param id [String,Wx::PG::PGProperty]
138
- # @return [Boolean]
139
- def collapse(id) end
140
-
141
- # Collapses all items that can be collapsed.
142
- #
143
- # Return false if failed (may fail if editor value cannot be validated).
144
- #
145
- # <div class="wxrb-remark">
146
- # <b>Remark:</b>
147
- # <p>This functions clears selection. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
148
- # </p>
149
- # </div>
150
- # @return [Boolean]
151
- def collapse_all; end
152
-
153
- # Changes value of a property, as if by user.
154
- #
155
- # Use this instead of {Wx::PG::PropertyGridInterface#set_property_value} if you need the value to run through validation process, and also send {Wx::PG::EVT_PG_CHANGED}.
156
- #
157
- # <div class="wxrb-remark">
158
- # <b>Remark:</b>
159
- # <p>Since this function sends {Wx::PG::EVT_PG_CHANGED}, it should not be called from EVT_PG_CHANGED handler.
160
- # </p>
161
- # </div>
162
- #
163
- # Returns true if value was successfully changed.
164
- # @param id [String,Wx::PG::PGProperty]
165
- # @param newValue [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
166
- # @return [Boolean]
167
- def change_property_value(id, newValue) end
168
-
169
- # Removes and deletes a property and any children.
170
- #
171
- # <div class="wxrb-remark">
172
- # <b>Remark:</b>
173
- # <p>If you delete a property in a {Wx::PG::PropertyGrid} event handler, the actual deletion is postponed until the next idle event.
174
- # </p>
175
- # </div>
176
- #
177
- # This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
178
- # @param id [String,Wx::PG::PGProperty] Pointer or name of a property.
179
- # @return [void]
180
- def delete_property(id) end
181
-
182
- # Disables a property.
183
- #
184
- # <div class="wxrb-remark">
185
- # <b>Remark:</b>
186
- # <p>Property is refreshed with new settings.
187
- # </p>
188
- # </div>
189
- # @see Wx::PG::PropertyGridInterface#enable_property
190
- # @see Wx::PG::PGProperty#enable
191
- # @param id [String,Wx::PG::PGProperty]
192
- # @return [Boolean]
193
- def disable_property(id) end
194
-
195
- # Returns true if all property grid data changes have been committed.
196
- #
197
- # Usually only returns false if value in active editor has been invalidated by a {Wx::Validator}.
198
- # @return [Boolean]
199
- def editor_validate; end
200
-
201
- # Enables or disables property.
202
- #
203
- # Disabled property usually appears as having grey text.
204
- #
205
- # <div class="wxrb-remark">
206
- # <b>Remark:</b>
207
- # <p>Property is refreshed with new settings.
208
- # </p>
209
- # </div>
210
- # @see Wx::PG::PGProperty#enable
211
- # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
212
- # @param enable [Boolean] If false, property is disabled instead.
213
- # @return [Boolean]
214
- def enable_property(id, enable=true) end
215
-
216
- # Called after population of property with fixed children has finished.
217
- #
218
- #
219
- # @see Wx::PG::PropertyGridInterface#begin_add_children
220
- # @param id [String,Wx::PG::PGProperty]
221
- # @return [void]
222
- def end_add_children(id) end
223
-
224
- # Expands given category or property with children.
225
- #
226
- # Returns true if actually expanded.
227
- #
228
- # <div class="wxrb-remark">
229
- # <b>Remark:</b>
230
- # <p>This function may deselect selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
231
- # </p>
232
- # </div>
233
- # @param id [String,Wx::PG::PGProperty]
234
- # @return [Boolean]
235
- def expand(id) end
236
-
237
- # Expands all items that can be expanded.
238
- #
239
- # <div class="wxrb-remark">
240
- # <b>Remark:</b>
241
- # <p>This functions clears selection. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
242
- # </p>
243
- # </div>
244
- # @param expand [Boolean]
245
- # @return [Boolean]
246
- def expand_all(expand=true) end
247
-
248
- # Returns auto-resize proportion of the given column.
249
- #
250
- #
251
- # @see Wx::PG::PropertyGridInterface#set_column_proportion
252
- # @param column [Integer]
253
- # @return [Integer]
254
- def get_column_proportion(column) end
255
- alias_method :column_proportion, :get_column_proportion
256
-
257
- # Returns id of first child of given property.
258
- #
259
- # <div class="wxrb-remark">
260
- # <b>Remark:</b>
261
- # <p>Does not return private children!
262
- # </p>
263
- # </div>
264
- # @param id [String,Wx::PG::PGProperty]
265
- # @return [Wx::PG::PGProperty]
266
- def get_first_child(id) end
267
- alias_method :first_child, :get_first_child
268
-
269
- # @param flags [Integer]
270
- # @return [Wx::PG::PGProperty]
271
- def get_first(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_ALL) end
272
- alias_method :first, :get_first
273
-
274
- # Returns pointer to a property with given name (case-sensitive).
275
- #
276
- # If there is no property with such name, nil pointer is returned.
277
- #
278
- # <div class="wxrb-remark">
279
- # <b>Remark:</b>
280
- # <p>Properties which have non-category, non-root parent cannot be accessed globally by their name. Instead, use "<property>.<subproperty>" instead of "<subproperty>".
281
- # </p>
282
- # </div>
283
- # @param name [String]
284
- # @return [Wx::PG::PGProperty]
285
- def get_property(name) end
286
- alias_method :property, :get_property
287
-
288
- # Adds to targetArr pointers to properties that have given flags set.
289
- #
290
- # However, if inverse is set to true, then only properties without given flags are stored.
291
- # @param flags [Wx::PGFlags] Property flags to use.
292
- # @param inverse [Boolean] If false, properties that have given flags are stored, otherwise there are stored only properties without given flags.
293
- # @param iterFlags [Integer] Iterator flags to use. Default is everything expect private children. See wxPropertyGridIterator Flags.
294
- # @return [Array<Wx::PG::PGProperty>]
295
- def get_properties_with_flag(flags, inverse=false, iterFlags=((Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_PROPERTIES|Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_HIDDEN|Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_CATEGORIES))) end
296
- alias_method :properties_with_flag, :get_properties_with_flag
297
-
298
- # Returns value of given attribute.
299
- #
300
- # If none found, returns null {Wx::Variant}.
301
- # @param id [String,Wx::PG::PGProperty]
302
- # @param attrName [String]
303
- # @return [Wx::Variant]
304
- def get_property_attribute(id, attrName) end
305
- alias_method :property_attribute, :get_property_attribute
306
-
307
- # Returns background colour of first cell of a property.
308
- # @param id [String,Wx::PG::PGProperty]
309
- # @return [Wx::Colour]
310
- def get_property_background_colour(id) end
311
- alias_method :property_background_colour, :get_property_background_colour
312
-
313
- # Returns pointer of property's nearest parent category.
314
- #
315
- # If no category found, returns nil.
316
- # @param id [String,Wx::PG::PGProperty]
317
- # @return [Wx::PG::PropertyCategory]
318
- def get_property_category(id) end
319
- alias_method :property_category, :get_property_category
320
-
321
- # Returns client data (void*) of a property.
322
- # @param id [String,Wx::PG::PGProperty]
323
- # @return [Object]
324
- def get_property_client_data(id) end
325
- alias_method :property_client_data, :get_property_client_data
326
-
327
- # Returns first property which label matches given string.
328
- #
329
- # nil if none found. Note that this operation is very slow when compared to {Wx::PG::PropertyGridInterface#get_property_by_name}.
330
- # @param label [String]
331
- # @return [Wx::PG::PGProperty]
332
- def get_property_by_label(label) end
333
- alias_method :property_by_label, :get_property_by_label
334
-
335
- # @overload get_property_by_name(name)
336
- # Returns pointer to a property with given name (case-sensitive).
337
- #
338
- # If there is no property with such name, nil pointer is returned.
339
- #
340
- # <div class="wxrb-remark">
341
- # <b>Remark:</b>
342
- # <p>Properties which have non-category, non-root parent cannot be accessed globally by their name. Instead, use "<property>.<subproperty>" instead of "<subproperty>".
343
- # </p>
344
- # </div>
345
- # @param name [String]
346
- # @return [Wx::PG::PGProperty]
347
- # @overload get_property_by_name(name, subname)
348
- # Returns child property subname of property name.
349
- #
350
- # Same as calling GetPropertyByName("name.subname"), albeit slightly faster.
351
- # @param name [String]
352
- # @param subname [String]
353
- # @return [Wx::PG::PGProperty]
354
- def get_property_by_name(*args) end
355
- alias_method :property_by_name, :get_property_by_name
356
-
357
- # Returns property's editor.
358
- # @param id [String,Wx::PG::PGProperty]
359
- # @return [Wx::PG::PGEditor]
360
- def get_property_editor(id) end
361
- alias_method :property_editor, :get_property_editor
362
-
363
- # Returns help string associated with a property.
364
- # @param id [String,Wx::PG::PGProperty]
365
- # @return [String]
366
- def get_property_help_string(id) end
367
- alias_method :property_help_string, :get_property_help_string
368
-
369
- # Returns property's custom value image (nil of none).
370
- # @param id [String,Wx::PG::PGProperty]
371
- # @return [Wx::Bitmap]
372
- def get_property_image(id) end
373
- alias_method :property_image, :get_property_image
374
-
375
- # Returns label of a property.
376
- # @param id [String,Wx::PG::PGProperty]
377
- # @return [Wx::String]
378
- def get_property_label(id) end
379
- alias_method :property_label, :get_property_label
380
-
381
- # Returns property's name, by which it is globally accessible.
382
- # @param property [Wx::PG::PGProperty]
383
- # @return [String]
384
- def get_property_name(property) end
385
- alias_method :property_name, :get_property_name
386
-
387
- # Returns parent item of a property.
388
- # @param id [String,Wx::PG::PGProperty]
389
- # @return [Wx::PG::PGProperty]
390
- def get_property_parent(id) end
391
- alias_method :property_parent, :get_property_parent
392
-
393
- # Returns text colour of first cell of a property.
394
- # @param id [String,Wx::PG::PGProperty]
395
- # @return [Wx::Colour]
396
- def get_property_text_colour(id) end
397
- alias_method :property_text_colour, :get_property_text_colour
398
-
399
- # Returns validator of a property as a reference, which you can pass to any number of SetPropertyValidator.
400
- # @param id [String,Wx::PG::PGProperty]
401
- # @return [Wx::Validator]
402
- # @wxrb_require USE_VALIDATORS
403
- def get_property_validator(id) end
404
- alias_method :property_validator, :get_property_validator
405
-
406
- # Returns property's value as {Wx::Variant}.
407
- #
408
- # If property value is unspecified, null {Wx::Variant} is returned.
409
- # @param id [String,Wx::PG::PGProperty]
410
- # @return [Wx::Variant]
411
- def get_property_value(id) end
412
- alias_method :property_value, :get_property_value
413
-
414
- # Returns property's value as {Wx::ArrayInt}.
415
- # @param id [String,Wx::PG::PGProperty]
416
- # @return [Array<Integer>]
417
- def get_property_value_as_array_int(id) end
418
- alias_method :property_value_as_array_int, :get_property_value_as_array_int
419
-
420
- # Returns property's value as {Wx::ArrayString}.
421
- # @param id [String,Wx::PG::PGProperty]
422
- # @return [Array<String>]
423
- def get_property_value_as_array_string(id) end
424
- alias_method :property_value_as_array_string, :get_property_value_as_array_string
425
-
426
- # Returns property's value as bool.
427
- # @param id [String,Wx::PG::PGProperty]
428
- # @return [Boolean]
429
- def get_property_value_as_bool(id) end
430
- alias_method :property_value_as_bool, :get_property_value_as_bool
431
-
432
- # Returns property's value as {Wx::DateTime}.
433
- # @param id [String,Wx::PG::PGProperty]
434
- # @return [Time,Date,DateTime]
435
- # @wxrb_require USE_DATETIME
436
- def get_property_value_as_date_time(id) end
437
- alias_method :property_value_as_date_time, :get_property_value_as_date_time
438
-
439
- # Returns property's value as double-precision floating point number.
440
- # @param id [String,Wx::PG::PGProperty]
441
- # @return [Float]
442
- def get_property_value_as_double(id) end
443
- alias_method :property_value_as_double, :get_property_value_as_double
444
-
445
- # Returns property's value as integer.
446
- # @param id [String,Wx::PG::PGProperty]
447
- # @return [Integer]
448
- def get_property_value_as_int(id) end
449
- alias_method :property_value_as_int, :get_property_value_as_int
450
-
451
- # Returns property's value as integer.
452
- # @param id [String,Wx::PG::PGProperty]
453
- # @return [Integer]
454
- def get_property_value_as_long(id) end
455
- alias_method :property_value_as_long, :get_property_value_as_long
456
-
457
- # Returns property's value as native signed 64-bit integer.
458
- # @param id [String,Wx::PG::PGProperty]
459
- # @return [Integer]
460
- def get_property_value_as_long_long(id) end
461
- alias_method :property_value_as_long_long, :get_property_value_as_long_long
462
-
463
- # Returns property's value as {Wx::String}.
464
- #
465
- # If property does not use string value type, then its value is converted using {Wx::PG::PGProperty#get_value_as_string}.
466
- # @param id [String,Wx::PG::PGProperty]
467
- # @return [String]
468
- def get_property_value_as_string(id) end
469
- alias_method :property_value_as_string, :get_property_value_as_string
470
-
471
- # Returns property's value as unsigned integer.
472
- # @param id [String,Wx::PG::PGProperty]
473
- # @return [Integer]
474
- def get_property_value_as_u_long(id) end
475
- alias_method :property_value_as_u_long, :get_property_value_as_u_long
476
-
477
- # Returns property's value as native unsigned 64-bit integer.
478
- # @param id [String,Wx::PG::PGProperty]
479
- # @return [Integer]
480
- def get_property_value_as_u_long_long(id) end
481
- alias_method :property_value_as_u_long_long, :get_property_value_as_u_long_long
482
-
483
- # Returns a {Wx::Variant} list containing {Wx::Variant} versions of all property values.
484
- #
485
- # Order is not guaranteed.
486
- # @param listname [String] Name of the returned {Wx::Variant} list.
487
- # @param baseparent [Wx::PG::PGProperty] The base property which children properties will be queried for values.
488
- # @param flags [Wx::PGPropertyValuesFlags] Use {Wx::PG::PGPropertyValuesFlags::KeepStructure} to retain category structure; each sub category will be its own {Wx::VariantList} of {Wx::Variant}. Use {Wx::PG::PGPropertyValuesFlags::IncAttributes} to include property attributes as well. Each attribute will be stored as list variant named "@<propname>@attr."
489
- # @return [Wx::Variant]
490
- def get_property_values(listname=(''), baseparent=nil, flags=PGPropertyValuesFlags::DontRecurse) end
491
- alias_method :property_values, :get_property_values
492
-
493
- # Returns list of currently selected properties.
494
- #
495
- # <div class="wxrb-remark">
496
- # <b>Remark:</b>
497
- # <p>{Wx::ArrayPGProperty} should be compatible with std::vector API.
498
- # </p>
499
- # </div>
500
- # @return [Array<Wx::PG::PGProperty>]
501
- def get_selected_properties; end
502
- alias_method :selected_properties, :get_selected_properties
503
-
504
- # Returns currently selected property.
505
- #
506
- # nil if none.
507
- #
508
- # <div class="wxrb-remark">
509
- # <b>Remark:</b>
510
- # <p>When {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_MULTIPLE_SELECTION} extra style is used, this member function returns the focused property, that is the one which can have active editor.
511
- # </p>
512
- # </div>
513
- # @return [Wx::PG::PGProperty]
514
- def get_selection; end
515
- alias_method :selection, :get_selection
516
-
517
- # Hides or reveals a property.
518
- # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
519
- # @param hide [Boolean] If true, hides property, otherwise reveals it.
520
- # @param flags [Wx::PGPropertyValuesFlags] By default changes are applied recursively. Set this parameter {Wx::PG::PGPropertyValuesFlags::DontRecurse} to prevent this.
521
- # @return [Boolean]
522
- def hide_property(id, hide=true, flags=PGPropertyValuesFlags::Recurse) end
523
-
524
- # @overload insert(priorThis, newProperty)
525
- # Inserts property to the property container.
526
- #
527
- # Returns newProperty.
528
- #
529
- # <div class="wxrb-remark">
530
- # <b>Remark:</b>
531
- # <p>
532
- # </p>
533
- # </div>
534
- #
535
- # - {Wx::PG::PropertyGrid} takes the ownership of the property pointer.
536
- # - While Append may be faster way to add items, make note that when both types of data storage (categoric and non-categoric) are active, Insert becomes even more slow. This is especially true if current mode is non-categoric.
537
- # - This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
538
- #
539
- # Example of use:
540
- #
541
- # ```ruby
542
- # # append category
543
- # my_cat_id = propertygrid.append(Wx::PG::PropertyCategory.new("My Category"))
544
- #
545
- # ...
546
- #
547
- # # insert into category - using second overload
548
- # my_item_id_1 = propertygrid.insert(my_cat_id, 0, Wx::PG::StringProperty.new("My String 1"))
549
- #
550
- # # insert before to first item - using first overload
551
- # my_item_id_2 = propertygrid.insert(my_item_id, Wx::PG::StringProperty.new("My String 2"))
552
- # ```
553
- # @param priorThis [String,Wx::PG::PGProperty] New property is inserted just prior to this. Available only in the first variant. There are two versions of this function to allow this parameter to be either an id or name to a property.
554
- # @param newProperty [Wx::PG::PGProperty] Pointer to the inserted property. {Wx::PG::PropertyGrid} will take ownership of this object.
555
- # @return [Wx::PG::PGProperty]
556
- # @overload insert(parent, index, newProperty)
557
- # Inserts property to the property container.
558
- #
559
- # See the other overload for more details.
560
- #
561
- # Returns newProperty.
562
- # @param parent [String,Wx::PG::PGProperty] New property is inserted under this category. Available only in the second variant. There are two versions of this function to allow this parameter to be either an id or name to a property.
563
- # @param index [Integer] Index under category. Available only in the second variant. If index is < 0, property is appended in category.
564
- # @param newProperty [Wx::PG::PGProperty] Pointer to the inserted property. {Wx::PG::PropertyGrid} will take ownership of this object.
565
- # @return [Wx::PG::PGProperty]
566
- def insert(*args) end
567
-
568
- # Returns true if property is a category.
569
- # @param id [String,Wx::PG::PGProperty]
570
- # @return [Boolean]
571
- def is_property_category(id) end
572
- alias_method :property_category?, :is_property_category
573
-
574
- # Returns true if property is enabled.
575
- # @param id [String,Wx::PG::PGProperty]
576
- # @return [Boolean]
577
- def is_property_enabled(id) end
578
- alias_method :property_enabled?, :is_property_enabled
579
-
580
- # Returns true if given property is expanded.
581
- #
582
- # Naturally, always returns false for properties that cannot be expanded.
583
- # @param id [String,Wx::PG::PGProperty]
584
- # @return [Boolean]
585
- def is_property_expanded(id) end
586
- alias_method :property_expanded?, :is_property_expanded
587
-
588
- # Returns true if property has been modified after value set or modify flag clear by software.
589
- # @param id [String,Wx::PG::PGProperty]
590
- # @return [Boolean]
591
- def is_property_modified(id) end
592
- alias_method :property_modified?, :is_property_modified
593
-
594
- # Returns true if property is selected.
595
- # @param id [String,Wx::PG::PGProperty]
596
- # @return [Boolean]
597
- def is_property_selected(id) end
598
- alias_method :property_selected?, :is_property_selected
599
-
600
- # Returns true if property is shown (i.e.
601
- #
602
- # {Wx::PG::PropertyGridInterface#hide_property} with true not called for it).
603
- # @param id [String,Wx::PG::PGProperty]
604
- # @return [Boolean]
605
- def is_property_shown(id) end
606
- alias_method :property_shown?, :is_property_shown
607
-
608
- # Returns true if property value is set to unspecified.
609
- # @param id [String,Wx::PG::PGProperty]
610
- # @return [Boolean]
611
- def is_property_value_unspecified(id) end
612
- alias_method :property_value_unspecified?, :is_property_value_unspecified
613
-
614
- # Disables (limit = true) or enables (limit = false) {Wx::TextCtrl} editor of a property, if it is not the sole mean to edit the value.
615
- #
616
- # <div class="wxrb-remark">
617
- # <b>Remark:</b>
618
- # <p>Property is refreshed with new settings.
619
- # </p>
620
- # </div>
621
- # @param id [String,Wx::PG::PGProperty]
622
- # @param limit [Boolean]
623
- # @return [void]
624
- def limit_property_editing(id, limit=true) end
625
-
626
- # If state is shown in its grid, refresh it now.
627
- # @param state [Wx::PG::PropertyGridPage,Wx::PG::PropertyGridPageState]
628
- # @return [void]
629
- def refresh_grid(state=nil) end
630
-
631
- # Replaces property with id with newly created one.
632
- #
633
- # For example, this code replaces existing property named "Flags" with one that will have different set of items:
634
- #
635
- # ```ruby
636
- # pg.replace_property("Flags", Wx::PG::FlagsProperty.new("Flags", Wx::PG::PG_LABEL, newItems))
637
- # ```
638
- # @see Wx::PG::PropertyGridInterface#insert
639
- # @param id [String,Wx::PG::PGProperty]
640
- # @param property [Wx::PG::PGProperty]
641
- # @return [Wx::PG::PGProperty]
642
- def replace_property(id, property) end
643
-
644
- # Restores user-editable state.
645
- #
646
- # See also {Wx::PG::PropertyGridInterface#save_editable_state}.
647
- #
648
- # Returns false if there was problem reading the string.
649
- #
650
- # <div class="wxrb-remark">
651
- # <b>Remark:</b>
652
- # <p>If some parts of state (such as scrolled or splitter position) fail to restore correctly, please make sure that you call this function after {Wx::PG::PropertyGrid} size has been set (this may sometimes be tricky when sizers are used).
653
- # </p>
654
- # </div>
655
- # @param src [String] String generated by SaveEditableState.
656
- # @param restoreStates [Integer] Which parts to restore from source string. See list of editable state flags.
657
- # @return [Boolean]
658
- def restore_editable_state(src, restoreStates=Wx::PG::PropertyGrid::EditableStateFlags::AllStates) end
659
-
660
- # Used to acquire user-editable state (selected property, expanded properties, scrolled position, splitter positions).
661
- # @param includedStates [Integer] Which parts of state to include. See list of editable state flags.
662
- # @return [String]
663
- def save_editable_state(includedStates=Wx::PG::PropertyGrid::EditableStateFlags::AllStates) end
664
-
665
- # Set proportion of an auto-stretchable column.
666
- #
667
- # {Wx::PG::PG_WINDOW_STYLES::PG_SPLITTER_AUTO_CENTER} window style needs to be used to indicate that columns are auto- resizeable.
668
- # Returns false on failure.
669
- #
670
- # <div class="wxrb-remark">
671
- # <b>Remark:</b>
672
- # <p>You should call this for individual pages of {Wx::PG::PropertyGridManager} (if used).
673
- # </p>
674
- # </div>
675
- # @see Wx::PG::PropertyGridInterface#get_column_proportion
676
- # @param column [Integer]
677
- # @param proportion [Integer]
678
- # @return [Boolean]
679
- def set_column_proportion(column, proportion) end
680
-
681
- # Sets an attribute for this property.
682
- #
683
- # <div class="wxrb-remark">
684
- # <b>Remark:</b>
685
- # <p>
686
- #
687
- # - Setting attribute's value to null {Wx::Variant} will simply remove it from property's set of attributes.
688
- # - Property is refreshed with new settings.
689
- #
690
- # </p>
691
- # </div>
692
- # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
693
- # @param attrName [String] Text identifier of attribute. See wxPropertyGrid Property Attribute Identifiers.
694
- # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue] Value of attribute.
695
- # @param flags [Wx::PGPropertyValuesFlags] Optional. Use {Wx::PG::PGPropertyValuesFlags::Recurse} to set the attribute to child properties recursively.
696
- # @return [void]
697
- def set_property_attribute(id, attrName, value, flags=PGPropertyValuesFlags::DontRecurse) end
698
-
699
- # Sets property attribute for all applicable properties.
700
- #
701
- # Be sure to use this method only after all properties have been added to the grid.
702
- #
703
- # <div class="wxrb-remark">
704
- # <b>Remark:</b>
705
- # <p>Properties are refreshed with new settings.
706
- # </p>
707
- # </div>
708
- # @param attrName [String]
709
- # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
710
- # @return [void]
711
- def set_property_attribute_all(attrName, value) end
712
-
713
- # Sets background colour of given property.
714
- #
715
- # <div class="wxrb-remark">
716
- # <b>Remark:</b>
717
- # <p>
718
- #
719
- # - If category is tried to set recursively, only its children are affected.
720
- # - Property is redrawn with new colour.
721
- #
722
- # </p>
723
- # </div>
724
- # @param id [String,Wx::PG::PGProperty] Property name or pointer.
725
- # @param colour [Wx::Colour,String,Symbol] New background colour.
726
- # @param flags [Wx::PGPropertyValuesFlags] Default is {Wx::PG::PGPropertyValuesFlags::Recurse} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
727
- # @return [void]
728
- def set_property_background_colour(id, colour, flags=PGPropertyValuesFlags::Recurse) end
729
-
730
- # Sets text, bitmap, and colours for given column's cell.
731
- #
732
- # <div class="wxrb-remark">
733
- # <b>Remark:</b>
734
- # <p>
735
- #
736
- # - You can set label cell by using column 0.
737
- # - You can use {Wx::PG::PG_LABEL} as text to use default text for column.
738
- #
739
- # </p>
740
- # </div>
741
- # @param id [String,Wx::PG::PGProperty]
742
- # @param column [Integer]
743
- # @param text [String]
744
- # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
745
- # @param fgCol [Wx::Colour,String,Symbol]
746
- # @param bgCol [Wx::Colour,String,Symbol]
747
- # @return [void]
748
- def set_property_cell(id, column, text=(''), bitmap=(Wx::BitmapBundle.new()), fgCol=Wx::NULL_COLOUR, bgCol=Wx::NULL_COLOUR) end
749
-
750
- # Sets client data (void*) of a property.
751
- #
752
- # <div class="wxrb-remark">
753
- # <b>Remark:</b>
754
- # <p>This untyped client data has to be deleted manually.
755
- # </p>
756
- # </div>
757
- # @param id [String,Wx::PG::PGProperty]
758
- # @param clientData [Object]
759
- # @return [void]
760
- def set_property_client_data(id, clientData) end
761
-
762
- # Resets text and background colours of given property.
763
- #
764
- # <div class="wxrb-remark">
765
- # <b>Remark:</b>
766
- # <p>
767
- #
768
- # - If category is tried to set recursively, only its children are affected.
769
- # - Property is redrawn with new colours.
770
- #
771
- # </p>
772
- # </div>
773
- # @param id [String,Wx::PG::PGProperty] Property name or pointer.
774
- # @param flags [Wx::PGPropertyValuesFlags] Default is {Wx::PG::PGPropertyValuesFlags::DontRecurse} which causes colour to be reset only for the property in question (for backward compatibility).
775
- # @return [void]
776
- def set_property_colours_to_default(id, flags=PGPropertyValuesFlags::DontRecurse) end
777
- alias_method :property_colours_to_default=, :set_property_colours_to_default
778
-
779
- # @overload set_property_editor(id, editor)
780
- # Sets editor for a property.
781
- #
782
- # For custom editors, use pointer you received from {Wx::PG::PropertyGrid.register_editor_class}.
783
- # @param id [String,Wx::PG::PGProperty] Property name or pointer to a property.
784
- # @param editor [Wx::PG::PGEditor] For builtin editors, use {Wx::PGEditor_X}, where X is builtin editor's name (TextCtrl, Choice, etc. see {Wx::PG::PGEditor} documentation for full list).
785
- # @return [void]
786
- # @overload set_property_editor(id, editorName)
787
- # Sets editor control of a property.
788
- #
789
- # As editor argument, use editor name string, such as "TextCtrl" or "Choice".
790
- # @param id [String,Wx::PG::PGProperty]
791
- # @param editorName [String]
792
- # @return [void]
793
- def set_property_editor(*args) end
794
-
795
- # Sets label of a property.
796
- #
797
- # <div class="wxrb-remark">
798
- # <b>Remark:</b>
799
- # <p>
800
- #
801
- # - Properties under same parent may have same labels. However, property names must still remain unique.
802
- #
803
- # </p>
804
- # </div>
805
- # @param id [String,Wx::PG::PGProperty]
806
- # @param newproplabel [String]
807
- # @return [void]
808
- def set_property_label(id, newproplabel) end
809
-
810
- # Sets name of a property.
811
- # @param id [String,Wx::PG::PGProperty] Name or pointer of property which name to change.
812
- # @param newName [String] New name for property.
813
- # @return [void]
814
- def set_property_name(id, newName) end
815
-
816
- # Sets property (and, recursively, its children) to have read-only value.
817
- #
818
- # In other words, user cannot change the value in the editor, but they can still copy it.
819
- #
820
- # <div class="wxrb-remark">
821
- # <b>Remark:</b>
822
- # <p>
823
- #
824
- # - This is mainly for use with TextCtrl editor. Only some other editors fully support it.
825
- # - Property is refreshed with new settings.
826
- #
827
- # </p>
828
- # </div>
829
- # @param id [String,Wx::PG::PGProperty] Property name or pointer.
830
- # @param set [Boolean] Use true to enable read-only, false to disable it.
831
- # @param flags [Wx::PGPropertyValuesFlags] By default changes are applied recursively. Set this parameter to {Wx::PG::PGPropertyValuesFlags::DontRecurse} to prevent this.
832
- # @return [void]
833
- def set_property_read_only(id, set=true, flags=PGPropertyValuesFlags::Recurse) end
834
- alias_method :property_read_only=, :set_property_read_only
835
-
836
- # Sets property's value to unspecified.
837
- #
838
- # If it has children (it may be category), then the same thing is done to them.
839
- # @param id [String,Wx::PG::PGProperty]
840
- # @return [void]
841
- def set_property_value_unspecified(id) end
842
- alias_method :property_value_unspecified=, :set_property_value_unspecified
843
-
844
- # @overload set_property_values(list, defaultCategory=Wx::PG::NullProperty)
845
- # Sets property values from a list of {Wx::Variants}.
846
- # @param list [Wx::VariantList]
847
- # @param defaultCategory [String,Wx::PG::PGProperty]
848
- # @return [void]
849
- # @overload set_property_values(list, defaultCategory=Wx::PG::NullProperty)
850
- # Sets property values from a list of {Wx::Variants}.
851
- # @param list [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
852
- # @param defaultCategory [String,Wx::PG::PGProperty]
853
- # @return [void]
854
- def set_property_values(*args) end
855
- alias_method :property_values=, :set_property_values
856
-
857
- # Associates the help string with property.
858
- #
859
- # <div class="wxrb-remark">
860
- # <b>Remark:</b>
861
- # <p>By default, text is shown either in the manager's "description" text box or in the status bar. If extra window style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_HELP_AS_TOOLTIPS} is used, then the text will appear as a tooltip.
862
- # </p>
863
- # </div>
864
- # @param id [String,Wx::PG::PGProperty]
865
- # @param helpString [String]
866
- # @return [void]
867
- def set_property_help_string(id, helpString) end
868
-
869
- # Set {Wx::Bitmap} taken from {Wx::BitmapBundle} in front of the value.
870
- #
871
- # <div class="wxrb-remark">
872
- # <b>Remark:</b>
873
- # <p>Bitmap will be scaled to a size returned by {Wx::PG::PropertyGrid#get_image_size};
874
- # </p>
875
- # </div>
876
- # @param id [String,Wx::PG::PGProperty]
877
- # @param bmp [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
878
- # @return [void]
879
- def set_property_image(id, bmp) end
880
-
881
- # Sets maximum length of text in property text editor.
882
- #
883
- # Returns true if maximum length was set.
884
- # @see Wx::PG::PGProperty#set_max_length.
885
- # @param id [String,Wx::PG::PGProperty] Property name or pointer.
886
- # @param maxLen [Integer] Maximum number of characters of the text the user can enter in the text editor. If it is 0, the length is not limited and the text can be as long as it is supported by the underlying native text control widget.
887
- # @return [Boolean]
888
- def set_property_max_length(id, maxLen) end
889
-
890
- # Sets text colour of given property.
891
- #
892
- # <div class="wxrb-remark">
893
- # <b>Remark:</b>
894
- # <p>
895
- #
896
- # - If category is tried to set recursively, only its children are affected.
897
- # - Property is redrawn with new colour.
898
- #
899
- # </p>
900
- # </div>
901
- # @param id [String,Wx::PG::PGProperty] Property name or pointer.
902
- # @param colour [Wx::Colour,String,Symbol] New text colour.
903
- # @param flags [Wx::PGPropertyValuesFlags] Default is {Wx::PG::PGPropertyValuesFlags::Recurse} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
904
- # @return [void]
905
- def set_property_text_colour(id, colour, flags=PGPropertyValuesFlags::Recurse) end
906
-
907
- # Sets validator of a property.
908
- # @param id [String,Wx::PG::PGProperty]
909
- # @param validator [Wx::Validator]
910
- # @return [void]
911
- def set_property_validator(id, validator) end
912
-
913
- # @overload set_property_value(id, value)
914
- # Sets value (long integer) of a property.
915
- # @param id [String,Wx::PG::PGProperty]
916
- # @param value [Integer]
917
- # @return [void]
918
- # @overload set_property_value(id, value)
919
- # Sets value (integer) of a property.
920
- # @param id [String,Wx::PG::PGProperty]
921
- # @param value [Integer]
922
- # @return [void]
923
- # @overload set_property_value(id, value)
924
- # Sets value (floating point) of a property.
925
- # @param id [String,Wx::PG::PGProperty]
926
- # @param value [Float]
927
- # @return [void]
928
- # @overload set_property_value(id, value)
929
- # Sets value (bool) of a property.
930
- # @param id [String,Wx::PG::PGProperty]
931
- # @param value [Boolean]
932
- # @return [void]
933
- # @overload set_property_value(id, value)
934
- # Sets value (wchar_t*) of a property.
935
- # @param id [String,Wx::PG::PGProperty]
936
- # @param value [String]
937
- # @return [void]
938
- # @overload set_property_value(id, value)
939
- # Sets value (char*) of a property.
940
- # @param id [String,Wx::PG::PGProperty]
941
- # @param value [String]
942
- # @return [void]
943
- # @overload set_property_value(id, value)
944
- # Sets value (string) of a property.
945
- # @param id [String,Wx::PG::PGProperty]
946
- # @param value [String]
947
- # @return [void]
948
- # @overload set_property_value(id, value)
949
- # Sets value ({Wx::ArrayString}) of a property.
950
- # @param id [String,Wx::PG::PGProperty]
951
- # @param value [Array<String>]
952
- # @return [void]
953
- # @overload set_property_value(id, value)
954
- # Sets value ({Wx::DateTime}) of a property.
955
- # @param id [String,Wx::PG::PGProperty]
956
- # @param value [Time,Date,DateTime]
957
- # @return [void]
958
- # @overload set_property_value(id, value)
959
- # Sets value ({Wx::Object}*) of a property.
960
- # @param id [String,Wx::PG::PGProperty]
961
- # @param value [Wx::Object]
962
- # @return [void]
963
- # @overload set_property_value(id, value)
964
- # Sets value ({Wx::Object}&) of a property.
965
- # @param id [String,Wx::PG::PGProperty]
966
- # @param value [Wx::Object]
967
- # @return [void]
968
- # @overload set_property_value(id, value)
969
- # Sets value (native 64-bit int) of a property.
970
- # @param id [String,Wx::PG::PGProperty]
971
- # @param value [Integer]
972
- # @return [void]
973
- # @overload set_property_value(id, value)
974
- # Sets value ({Wx::LongLong}) of a property.
975
- # @param id [String,Wx::PG::PGProperty]
976
- # @param value [Wx::LongLong]
977
- # @return [void]
978
- # @overload set_property_value(id, value)
979
- # Sets value (native 64-bit unsigned int) of a property.
980
- # @param id [String,Wx::PG::PGProperty]
981
- # @param value [Integer]
982
- # @return [void]
983
- # @overload set_property_value(id, value)
984
- # Sets value ({Wx::ULongLong}) of a property.
985
- # @param id [String,Wx::PG::PGProperty]
986
- # @param value [Wx::ULongLong]
987
- # @return [void]
988
- # @overload set_property_value(id, value)
989
- # Sets value ({Wx::ArrayInt}&) of a property.
990
- # @param id [String,Wx::PG::PGProperty]
991
- # @param value [Array<Integer>]
992
- # @return [void]
993
- # @overload set_property_value(id, value)
994
- # Sets value ({Wx::Variant}) of a property.
995
- #
996
- # <div class="wxrb-remark">
997
- # <b>Remark:</b>
998
- # <p>Use {Wx::PG::PropertyGridInterface#change_property_value} instead if you need to run through validation process and send property change event.
999
- # </p>
1000
- # </div>
1001
- # @param id [String,Wx::PG::PGProperty]
1002
- # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
1003
- # @return [void]
1004
- def set_property_value(*args) end
1005
-
1006
- # Sets value ({Wx::String}) of a property.
1007
- #
1008
- # <div class="wxrb-remark">
1009
- # <b>Remark:</b>
1010
- # <p>This method uses {Wx::PG::PGProperty#set_value_from_string}, which all properties should implement. This means that there should not be a type error, and instead the string is converted to property's actual value type.
1011
- # </p>
1012
- # </div>
1013
- # @param id [String,Wx::PG::PGProperty]
1014
- # @param value [String]
1015
- # @return [void]
1016
- def set_property_value_string(id, value) end
1017
-
1018
- # Sets value ({Wx::Variant}&) of a property.
1019
- #
1020
- # Same as SetPropertyValue, but accepts reference.
1021
- # @param id [String,Wx::PG::PGProperty]
1022
- # @param value [Wx::Variant]
1023
- # @return [void]
1024
- def set_prop_val(id, value) end
1025
-
1026
- # Adjusts how {Wx::PG::PropertyGrid} behaves when invalid value is entered in a property.
1027
- # @param vfbFlags [Wx::PGVFBFlags] See wxPropertyGrid Validation Failure behaviour Flags for possible values.
1028
- # @return [void]
1029
- def set_validation_failure_behavior(vfbFlags) end
1030
- alias_method :validation_failure_behavior=, :set_validation_failure_behavior
1031
-
1032
- # Sorts all properties recursively.
1033
- #
1034
- #
1035
- # @see Wx::PG::PropertyGridInterface#sort_children
1036
- # @see Wx::PG::PropertyGrid#set_sort_function
1037
- # @param flags [Wx::PGPropertyValuesFlags] This can contain any of the following options: {Wx::PG::PGPropertyValuesFlags::SortTopLevelOnly}: Only sort categories and their immediate children. Sorting done by {Wx::PG::PG_WINDOW_STYLES::PG_AUTO_SORT} option uses this.
1038
- # @return [void]
1039
- def sort(flags=PGPropertyValuesFlags::DontRecurse) end
1040
-
1041
- # Sorts children of a property.
1042
- #
1043
- #
1044
- # @see Wx::PG::PropertyGridInterface#sort
1045
- # @see Wx::PG::PropertyGrid#set_sort_function
1046
- # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
1047
- # @param flags [Wx::PGPropertyValuesFlags] This can contain any of the following options: {Wx::PG::PGPropertyValuesFlags::Recurse}: Sorts recursively.
1048
- # @return [void]
1049
- def sort_children(id, flags=PGPropertyValuesFlags::DontRecurse) end
1050
-
1051
- # {Wx::PG::PropertyGridInterface#get_property_by_name} with assertion error message.
1052
- # @param name [String]
1053
- # @return [Wx::PG::PGProperty]
1054
- def get_property_by_name_a(name) end
1055
- alias_method :property_by_name_a, :get_property_by_name_a
1056
-
1057
- #
1058
- #
1059
- # <div class="wxrb-remark">
1060
- # <b>Remark:</b>
1061
- # <p>This function reselects the property and may cause excess flicker, so to just call {refresh} on a rectangle of a single property, call DrawItem() instead.
1062
- # </p>
1063
- # </div>
1064
- # @param p [Wx::PG::PGProperty]
1065
- # @return [void]
1066
- def refresh_property(p) end
1067
-
1068
- # Initializes all property types.
1069
- #
1070
- # Causes references to most object files in the library, so calling this may cause significant increase in executable size when linking with static library.
1071
- # @return [void]
1072
- def self.init_all_type_handlers; end
1073
-
1074
- # Initializes additional property editors (SpinCtrl etc.).
1075
- #
1076
- # Causes references to most object files in the library, so calling this may cause significant increase in executable size when linking with static library.
1077
- # @return [void]
1078
- def self.register_additional_editors; end
1079
-
1080
- # Sets strings listed in the choice drop-down of a {Wx::PG::BoolProperty}.
1081
- #
1082
- # Defaults are "True" and "False", so changing them to, say, "Yes" and "No" may be useful in some less technical applications.
1083
- # @param trueChoice [String]
1084
- # @param falseChoice [String]
1085
- # @return [void]
1086
- def self.set_bool_choices(trueChoice, falseChoice) end
1087
-
1088
- # Returns editor pointer of editor with given name.
1089
- # @param editorName [String]
1090
- # @return [Wx::PG::PGEditor]
1091
- def self.get_editor_by_name(editorName) end
1092
-
1093
- end # PropertyGridInterface
1094
-
1095
-
1096
- end
1097
-
1098
- end