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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (703) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +30 -8
  3. data/README.md +3 -3
  4. data/ext/mkrf_conf_bingem.rb +4 -1
  5. data/ext/wxbase32u_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  7. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  20. data/lib/wx/accessors.rb +10 -2
  21. data/lib/wx/aui/auifloatframe.rb +20 -0
  22. data/lib/wx/aui/auimanager.rb +3 -0
  23. data/lib/wx/aui/auinotebook.rb +17 -0
  24. data/lib/wx/aui/events/evt_list.rb +7 -7
  25. data/lib/wx/aui/require.rb +5 -1
  26. data/lib/wx/aui.rb +4 -1
  27. data/lib/wx/core/acceleratortable.rb +8 -0
  28. data/lib/wx/core/animation.rb +8 -0
  29. data/lib/wx/core/app.rb +8 -0
  30. data/lib/wx/core/array_ext.rb +7 -0
  31. data/lib/wx/core/art_locator.rb +7 -0
  32. data/lib/wx/core/artprovider.rb +9 -0
  33. data/lib/wx/core/bitmap.rb +16 -4
  34. data/lib/wx/core/bitmap_combobox.rb +7 -0
  35. data/lib/wx/core/brush.rb +7 -0
  36. data/lib/wx/core/busycursor.rb +9 -0
  37. data/lib/wx/core/choice.rb +7 -0
  38. data/lib/wx/core/choicedlg.rb +7 -0
  39. data/lib/wx/core/clientdc.rb +9 -0
  40. data/lib/wx/core/clipboard.rb +8 -0
  41. data/lib/wx/core/collapsible_pane.rb +8 -1
  42. data/lib/wx/core/colour.rb +8 -0
  43. data/lib/wx/core/combo_ctrl.rb +110 -0
  44. data/lib/wx/core/combobox.rb +7 -0
  45. data/lib/wx/core/config.rb +303 -0
  46. data/lib/wx/core/controlwithitems.rb +12 -1
  47. data/lib/wx/core/cursor.rb +14 -4
  48. data/lib/wx/core/data_object.rb +7 -0
  49. data/lib/wx/core/dataformat.rb +9 -0
  50. data/lib/wx/core/datetime.rb +14 -0
  51. data/lib/wx/core/dc.rb +7 -0
  52. data/lib/wx/core/dialog.rb +18 -1
  53. data/lib/wx/core/enum.rb +7 -0
  54. data/lib/wx/core/event.rb +7 -0
  55. data/lib/wx/core/event_blocker.rb +7 -0
  56. data/lib/wx/core/event_loop.rb +14 -0
  57. data/lib/wx/core/events/evt_list.rb +76 -0
  58. data/lib/wx/core/evthandler.rb +8 -0
  59. data/lib/wx/core/ext.rb +7 -0
  60. data/lib/wx/core/file_dialog.rb +23 -0
  61. data/lib/wx/core/find_replace_dialog.rb +7 -0
  62. data/lib/wx/core/functions.rb +8 -0
  63. data/lib/wx/core/gauge.rb +10 -1
  64. data/lib/wx/core/genericdirctrl.rb +9 -0
  65. data/lib/wx/core/hboxsizer.rb +16 -0
  66. data/lib/wx/core/helpcontroller.rb +8 -0
  67. data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
  68. data/lib/wx/core/helpprovider.rb +10 -1
  69. data/lib/wx/core/icon.rb +17 -6
  70. data/lib/wx/core/id_helper.rb +7 -0
  71. data/lib/wx/core/image.rb +49 -4
  72. data/lib/wx/core/imagelist.rb +8 -1
  73. data/lib/wx/core/listbox.rb +7 -0
  74. data/lib/wx/core/listctrl.rb +26 -13
  75. data/lib/wx/core/locale.rb +8 -0
  76. data/lib/wx/core/log.rb +114 -0
  77. data/lib/wx/core/menu.rb +9 -0
  78. data/lib/wx/core/menu_bar.rb +7 -0
  79. data/lib/wx/core/menuitem.rb +9 -0
  80. data/lib/wx/core/notebook.rb +9 -0
  81. data/lib/wx/core/object.rb +9 -0
  82. data/lib/wx/core/paintdc.rb +7 -0
  83. data/lib/wx/core/pen.rb +7 -0
  84. data/lib/wx/core/pen_info.rb +7 -0
  85. data/lib/wx/core/platform_info.rb +7 -0
  86. data/lib/wx/core/point.rb +8 -0
  87. data/lib/wx/core/real_point.rb +8 -0
  88. data/lib/wx/core/rect.rb +9 -0
  89. data/lib/wx/core/region_iterator.rb +7 -0
  90. data/lib/wx/core/simplehelpprovider.rb +9 -0
  91. data/lib/wx/core/size.rb +8 -0
  92. data/lib/wx/core/sizer.rb +9 -0
  93. data/lib/wx/core/splash_screen.rb +22 -2
  94. data/lib/wx/core/text_entry.rb +7 -0
  95. data/lib/wx/core/textctrl.rb +86 -5
  96. data/lib/wx/core/timer.rb +9 -0
  97. data/lib/wx/core/toolbar.rb +9 -0
  98. data/lib/wx/core/toolbartool.rb +8 -0
  99. data/lib/wx/core/treectrl.rb +9 -0
  100. data/lib/wx/core/v_list_box.rb +7 -0
  101. data/lib/wx/core/validator.rb +7 -0
  102. data/lib/wx/core/variant.rb +7 -0
  103. data/lib/wx/core/vboxsizer.rb +16 -0
  104. data/lib/wx/core/window.rb +8 -0
  105. data/lib/wx/core/window_update_locker.rb +9 -0
  106. data/lib/wx/core/xmlresource.rb +8 -0
  107. data/lib/wx/core.rb +4 -1
  108. data/lib/wx/doc/app.rb +7 -1
  109. data/lib/wx/doc/array_ext.rb +6 -0
  110. data/lib/wx/doc/art_locator.rb +7 -0
  111. data/lib/wx/doc/aui/auimanager.rb +6 -0
  112. data/lib/wx/doc/aui/auinotebook.rb +6 -0
  113. data/lib/wx/doc/bitmap.rb +19 -15
  114. data/lib/wx/doc/brush.rb +6 -0
  115. data/lib/wx/doc/busy_info.rb +6 -0
  116. data/lib/wx/doc/client_dc.rb +6 -0
  117. data/lib/wx/doc/clipboard.rb +6 -0
  118. data/lib/wx/doc/colour_dialog.rb +6 -0
  119. data/lib/wx/doc/config.rb +190 -0
  120. data/lib/wx/doc/const.rb +7 -0
  121. data/lib/wx/doc/controlwithitems.rb +6 -0
  122. data/lib/wx/doc/core.rb +6 -0
  123. data/lib/wx/doc/cursor.rb +13 -5
  124. data/lib/wx/doc/data_object.rb +6 -0
  125. data/lib/wx/doc/datetime.rb +16 -0
  126. data/lib/wx/doc/dc.rb +6 -0
  127. data/lib/wx/doc/enum.rb +8 -1
  128. data/lib/wx/doc/event.rb +12 -0
  129. data/lib/wx/doc/event_blocker.rb +6 -0
  130. data/lib/wx/doc/event_loop.rb +13 -0
  131. data/lib/wx/doc/events.rb +6 -0
  132. data/lib/wx/doc/evthandler.rb +8 -0
  133. data/lib/wx/doc/extra/00_starting.md +6 -6
  134. data/lib/wx/doc/extra/01_packages.md +52 -51
  135. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  136. data/lib/wx/doc/extra/05_event-handling.md +37 -12
  137. data/lib/wx/doc/extra/06_geometry.md +5 -5
  138. data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
  139. data/lib/wx/doc/extra/09_exceptions.md +2 -2
  140. data/lib/wx/doc/extra/10_art.md +18 -12
  141. data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
  142. data/lib/wx/doc/font.rb +7 -1
  143. data/lib/wx/doc/font_data.rb +16 -0
  144. data/lib/wx/doc/functions.rb +60 -24
  145. data/lib/wx/doc/gc_dc.rb +7 -1
  146. data/lib/wx/doc/gdi_common.rb +8 -1
  147. data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
  148. data/lib/wx/doc/gen/accelerator.rb +8 -13
  149. data/lib/wx/doc/gen/accessible.rb +27 -23
  150. data/lib/wx/doc/gen/activity_indicator.rb +7 -7
  151. data/lib/wx/doc/gen/animation.rb +20 -20
  152. data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
  153. data/lib/wx/doc/gen/any_button.rb +3 -3
  154. data/lib/wx/doc/gen/app.rb +25 -88
  155. data/lib/wx/doc/gen/app_traits.rb +381 -0
  156. data/lib/wx/doc/gen/art_provider.rb +64 -4
  157. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  158. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  159. data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
  160. data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
  161. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
  162. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
  163. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
  164. data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
  165. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  166. data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
  167. data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
  168. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
  169. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
  170. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
  171. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
  172. data/lib/wx/doc/gen/aui/event_list.rb +7 -0
  173. data/lib/wx/doc/gen/banner_window.rb +98 -0
  174. data/lib/wx/doc/gen/bitmap.rb +56 -81
  175. data/lib/wx/doc/gen/bitmap_button.rb +13 -9
  176. data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
  177. data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
  178. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  179. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  180. data/lib/wx/doc/gen/brush.rb +24 -12
  181. data/lib/wx/doc/gen/busy_info.rb +1 -1
  182. data/lib/wx/doc/gen/button.rb +23 -11
  183. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  184. data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
  185. data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
  186. data/lib/wx/doc/gen/calendar_event.rb +4 -10
  187. data/lib/wx/doc/gen/caret.rb +6 -6
  188. data/lib/wx/doc/gen/check_box.rb +19 -15
  189. data/lib/wx/doc/gen/check_list_box.rb +10 -9
  190. data/lib/wx/doc/gen/choice.rb +10 -9
  191. data/lib/wx/doc/gen/choicebook.rb +13 -7
  192. data/lib/wx/doc/gen/client_dc.rb +1 -1
  193. data/lib/wx/doc/gen/clipboard.rb +10 -10
  194. data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
  195. data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
  196. data/lib/wx/doc/gen/colour.rb +42 -32
  197. data/lib/wx/doc/gen/colour_dialog.rb +12 -12
  198. data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
  199. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  200. data/lib/wx/doc/gen/combo_box.rb +29 -20
  201. data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
  202. data/lib/wx/doc/gen/command_link_button.rb +110 -0
  203. data/lib/wx/doc/gen/config_base.rb +10 -0
  204. data/lib/wx/doc/gen/context_help_button.rb +7 -6
  205. data/lib/wx/doc/gen/control.rb +12 -9
  206. data/lib/wx/doc/gen/control_with_items.rb +5 -5
  207. data/lib/wx/doc/gen/core.rb +8 -5
  208. data/lib/wx/doc/gen/cursor.rb +18 -18
  209. data/lib/wx/doc/gen/data_format.rb +5 -5
  210. data/lib/wx/doc/gen/data_object.rb +32 -25
  211. data/lib/wx/doc/gen/date_event.rb +3 -3
  212. data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
  213. data/lib/wx/doc/gen/dc.rb +162 -74
  214. data/lib/wx/doc/gen/defs.rb +16 -16
  215. data/lib/wx/doc/gen/dialog.rb +65 -22
  216. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  217. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
  218. data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
  219. data/lib/wx/doc/gen/drag_drop.rb +26 -52
  220. data/lib/wx/doc/gen/drag_image.rb +13 -38
  221. data/lib/wx/doc/gen/editable_list_box.rb +9 -5
  222. data/lib/wx/doc/gen/event.rb +55 -32
  223. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  224. data/lib/wx/doc/gen/event_filter.rb +5 -2
  225. data/lib/wx/doc/gen/event_list.rb +117 -19
  226. data/lib/wx/doc/gen/events.rb +351 -215
  227. data/lib/wx/doc/gen/evt_handler.rb +8 -8
  228. data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
  229. data/lib/wx/doc/gen/file_dialog.rb +20 -9
  230. data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
  231. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
  232. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  233. data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
  234. data/lib/wx/doc/gen/file_system.rb +250 -0
  235. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  236. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  237. data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
  238. data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
  239. data/lib/wx/doc/gen/font.rb +90 -94
  240. data/lib/wx/doc/gen/font_data.rb +15 -11
  241. data/lib/wx/doc/gen/font_dialog.rb +5 -5
  242. data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
  243. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  244. data/lib/wx/doc/gen/frame.rb +36 -27
  245. data/lib/wx/doc/gen/fs_file.rb +65 -38
  246. data/lib/wx/doc/gen/gauge.rb +14 -10
  247. data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
  248. data/lib/wx/doc/gen/gcdc.rb +5 -1
  249. data/lib/wx/doc/gen/gdi_common.rb +43 -41
  250. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  251. data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
  252. data/lib/wx/doc/gen/graphics_context.rb +320 -88
  253. data/lib/wx/doc/gen/graphics_object.rb +48 -102
  254. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
  255. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
  256. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
  257. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
  258. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
  259. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
  260. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
  261. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
  262. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
  263. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
  264. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
  265. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
  266. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
  267. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
  268. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
  269. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
  270. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
  271. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
  272. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
  273. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
  274. data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
  275. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  276. data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
  277. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
  278. data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
  279. data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
  280. data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
  281. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  282. data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
  283. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  284. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  285. data/lib/wx/doc/gen/header_ctrl.rb +755 -0
  286. data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
  287. data/lib/wx/doc/gen/help_controller.rb +25 -19
  288. data/lib/wx/doc/gen/help_provider.rb +3 -3
  289. data/lib/wx/doc/gen/html/html_cell.rb +100 -59
  290. data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
  291. data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
  292. data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
  293. data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
  294. data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
  295. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  296. data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
  297. data/lib/wx/doc/gen/html/html_printout.rb +16 -6
  298. data/lib/wx/doc/gen/html/html_window.rb +54 -39
  299. data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
  300. data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
  301. data/lib/wx/doc/gen/icon.rb +24 -24
  302. data/lib/wx/doc/gen/icon_location.rb +1 -1
  303. data/lib/wx/doc/gen/image.rb +164 -114
  304. data/lib/wx/doc/gen/image_list.rb +24 -30
  305. data/lib/wx/doc/gen/info_bar.rb +152 -0
  306. data/lib/wx/doc/gen/keyboard_state.rb +24 -24
  307. data/lib/wx/doc/gen/list_box.rb +40 -31
  308. data/lib/wx/doc/gen/list_ctrl.rb +223 -167
  309. data/lib/wx/doc/gen/list_event.rb +25 -3
  310. data/lib/wx/doc/gen/listbook.rb +13 -7
  311. data/lib/wx/doc/gen/locale.rb +22 -71
  312. data/lib/wx/doc/gen/log.rb +133 -106
  313. data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
  314. data/lib/wx/doc/gen/mdi_frame.rb +23 -17
  315. data/lib/wx/doc/gen/media_ctrl.rb +22 -19
  316. data/lib/wx/doc/gen/media_event.rb +8 -2
  317. data/lib/wx/doc/gen/memory_dc.rb +26 -33
  318. data/lib/wx/doc/gen/menu.rb +24 -25
  319. data/lib/wx/doc/gen/menu_bar.rb +11 -28
  320. data/lib/wx/doc/gen/menu_item.rb +127 -46
  321. data/lib/wx/doc/gen/message_dialog.rb +54 -36
  322. data/lib/wx/doc/gen/mini_frame.rb +14 -5
  323. data/lib/wx/doc/gen/mouse_state.rb +51 -11
  324. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  325. data/lib/wx/doc/gen/non_owned_window.rb +8 -9
  326. data/lib/wx/doc/gen/notebook.rb +27 -22
  327. data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
  328. data/lib/wx/doc/gen/object.rb +3 -14
  329. data/lib/wx/doc/gen/palette.rb +15 -17
  330. data/lib/wx/doc/gen/panel.rb +8 -7
  331. data/lib/wx/doc/gen/pen.rb +50 -37
  332. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
  333. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
  334. data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
  335. data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
  336. data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
  337. data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
  338. data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
  339. data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
  340. data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
  341. data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
  342. data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
  343. data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
  344. data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
  345. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
  346. data/lib/wx/doc/gen/picker_base.rb +17 -16
  347. data/lib/wx/doc/gen/platform_info.rb +180 -20
  348. data/lib/wx/doc/gen/popup_window.rb +8 -8
  349. data/lib/wx/doc/gen/progress_dialog.rb +3 -3
  350. data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
  351. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  352. data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
  353. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  354. data/lib/wx/doc/gen/prt/print_data.rb +68 -62
  355. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  356. data/lib/wx/doc/gen/prt/printer.rb +44 -49
  357. data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
  358. data/lib/wx/doc/gen/radio_box.rb +21 -19
  359. data/lib/wx/doc/gen/radio_button.rb +13 -11
  360. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
  361. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
  362. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  363. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
  364. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
  365. data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
  366. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
  367. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  368. data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
  369. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
  370. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  371. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
  372. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
  373. data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
  374. data/lib/wx/doc/gen/rearrange_list.rb +99 -0
  375. data/lib/wx/doc/gen/region.rb +35 -43
  376. data/lib/wx/doc/gen/region_iterator.rb +3 -3
  377. data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
  378. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
  379. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
  380. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
  381. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
  382. data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
  383. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
  384. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
  385. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
  386. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
  387. data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
  388. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
  389. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
  390. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
  391. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
  392. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
  393. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
  394. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
  395. data/lib/wx/doc/gen/sash_event.rb +8 -6
  396. data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
  397. data/lib/wx/doc/gen/sash_window.rb +14 -9
  398. data/lib/wx/doc/gen/scroll_bar.rb +33 -12
  399. data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
  400. data/lib/wx/doc/gen/scrolled_control.rb +49 -37
  401. data/lib/wx/doc/gen/scrolled_window.rb +49 -37
  402. data/lib/wx/doc/gen/search_ctrl.rb +20 -13
  403. data/lib/wx/doc/gen/simplebook.rb +7 -7
  404. data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
  405. data/lib/wx/doc/gen/sizer.rb +69 -73
  406. data/lib/wx/doc/gen/sizer_item.rb +5 -5
  407. data/lib/wx/doc/gen/slider.rb +51 -18
  408. data/lib/wx/doc/gen/spin_button.rb +17 -11
  409. data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
  410. data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
  411. data/lib/wx/doc/gen/spin_double_event.rb +53 -0
  412. data/lib/wx/doc/gen/spin_event.rb +5 -2
  413. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  414. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  415. data/lib/wx/doc/gen/splitter_window.rb +36 -16
  416. data/lib/wx/doc/gen/static_bitmap.rb +9 -9
  417. data/lib/wx/doc/gen/static_box.rb +41 -37
  418. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  419. data/lib/wx/doc/gen/static_line.rb +8 -7
  420. data/lib/wx/doc/gen/static_text.rb +15 -9
  421. data/lib/wx/doc/gen/status_bar.rb +53 -10
  422. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
  423. data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
  424. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  425. data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
  426. data/lib/wx/doc/gen/system_options.rb +13 -3
  427. data/lib/wx/doc/gen/system_settings.rb +9 -9
  428. data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
  429. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  430. data/lib/wx/doc/gen/text_attr.rb +67 -61
  431. data/lib/wx/doc/gen/text_ctrl.rb +58 -113
  432. data/lib/wx/doc/gen/text_entry.rb +44 -56
  433. data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
  434. data/lib/wx/doc/gen/text_validator.rb +3 -19
  435. data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
  436. data/lib/wx/doc/gen/timer.rb +13 -9
  437. data/lib/wx/doc/gen/timer_event.rb +19 -26
  438. data/lib/wx/doc/gen/tip_provider.rb +3 -3
  439. data/lib/wx/doc/gen/toggle_button.rb +10 -9
  440. data/lib/wx/doc/gen/tool_bar.rb +71 -61
  441. data/lib/wx/doc/gen/tool_tip.rb +2 -10
  442. data/lib/wx/doc/gen/toolbook.rb +12 -9
  443. data/lib/wx/doc/gen/top_level_window.rb +53 -113
  444. data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
  445. data/lib/wx/doc/gen/tree_event.rb +24 -3
  446. data/lib/wx/doc/gen/treebook.rb +20 -16
  447. data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
  448. data/lib/wx/doc/gen/utils.rb +20 -14
  449. data/lib/wx/doc/gen/v_list_box.rb +11 -11
  450. data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
  451. data/lib/wx/doc/gen/validator.rb +10 -8
  452. data/lib/wx/doc/gen/variant.rb +56 -119
  453. data/lib/wx/doc/gen/window.rb +314 -224
  454. data/lib/wx/doc/gen/window_dc.rb +1 -1
  455. data/lib/wx/doc/gen/with_images.rb +2 -2
  456. data/lib/wx/doc/gen/wizard.rb +21 -8
  457. data/lib/wx/doc/gen/wizard_event.rb +11 -4
  458. data/lib/wx/doc/gen/wizard_page.rb +3 -3
  459. data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
  460. data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
  461. data/lib/wx/doc/gen/xml_node.rb +13 -13
  462. data/lib/wx/doc/gen/xml_resource.rb +24 -21
  463. data/lib/wx/doc/graphics_context.rb +59 -39
  464. data/lib/wx/doc/grid/grid.rb +16 -1
  465. data/lib/wx/doc/hboxsizer.rb +33 -0
  466. data/lib/wx/doc/help_controller.rb +6 -0
  467. data/lib/wx/doc/html/html_help_controller.rb +6 -0
  468. data/lib/wx/doc/icon.rb +13 -5
  469. data/lib/wx/doc/id_helper.rb +6 -0
  470. data/lib/wx/doc/image.rb +50 -12
  471. data/lib/wx/doc/list_ctrl.rb +38 -0
  472. data/lib/wx/doc/log.rb +45 -0
  473. data/lib/wx/doc/memory_dc.rb +6 -0
  474. data/lib/wx/doc/mirror_dc.rb +6 -0
  475. data/lib/wx/doc/pen.rb +6 -0
  476. data/lib/wx/doc/pg/events.rb +6 -0
  477. data/lib/wx/doc/pg/pg_property.rb +17 -0
  478. data/lib/wx/doc/pg/pgeditor.rb +6 -0
  479. data/lib/wx/doc/pg/property_grid.rb +6 -0
  480. data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
  481. data/lib/wx/doc/progress_dialog.rb +6 -0
  482. data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
  483. data/lib/wx/doc/prt/print_data.rb +6 -0
  484. data/lib/wx/doc/prt/print_dialog.rb +6 -0
  485. data/lib/wx/doc/prt/printer.rb +6 -0
  486. data/lib/wx/doc/prt/printer_dc.rb +8 -2
  487. data/lib/wx/doc/radio_box.rb +6 -0
  488. data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
  489. data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
  490. data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
  491. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
  492. data/lib/wx/doc/region_iterator.rb +6 -0
  493. data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
  494. data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
  495. data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
  496. data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
  497. data/lib/wx/doc/scaled_dc.rb +7 -1
  498. data/lib/wx/doc/screen_dc.rb +6 -0
  499. data/lib/wx/doc/stock_objects.rb +6 -0
  500. data/lib/wx/doc/stream.rb +6 -0
  501. data/lib/wx/doc/svg_file_dc.rb +6 -0
  502. data/lib/wx/doc/system_settings.rb +6 -0
  503. data/lib/wx/doc/text_validator.rb +18 -0
  504. data/lib/wx/doc/textctrl.rb +89 -0
  505. data/lib/wx/doc/tree_event.rb +20 -0
  506. data/lib/wx/doc/treebook.rb +6 -0
  507. data/lib/wx/doc/v_list_box.rb +6 -0
  508. data/lib/wx/doc/variant.rb +6 -0
  509. data/lib/wx/doc/vboxsizer.rb +33 -0
  510. data/lib/wx/doc/window.rb +6 -0
  511. data/lib/wx/doc/window_disabler.rb +6 -0
  512. data/lib/wx/doc/xml_resource.rb +8 -0
  513. data/lib/wx/global_const.rb +4 -1
  514. data/lib/wx/grid/grid.rb +23 -3
  515. data/lib/wx/grid/keyword_defs.rb +8 -1
  516. data/lib/wx/grid/require.rb +4 -1
  517. data/lib/wx/grid.rb +4 -1
  518. data/lib/wx/helpers.rb +8 -1
  519. data/lib/wx/html/htmlhelpcontroller.rb +29 -3
  520. data/lib/wx/html/htmlwindow.rb +23 -12
  521. data/lib/wx/html/keyword_defs.rb +8 -1
  522. data/lib/wx/html/require.rb +4 -1
  523. data/lib/wx/html/simple_html_listbox.rb +3 -0
  524. data/lib/wx/html.rb +4 -1
  525. data/lib/wx/keyword_ctors.rb +22 -3
  526. data/lib/wx/keyword_defs.rb +55 -3
  527. data/lib/wx/pg/events.rb +4 -1
  528. data/lib/wx/pg/keyword_defs.rb +8 -1
  529. data/lib/wx/pg/pg_editor.rb +3 -0
  530. data/lib/wx/pg/pg_properties.rb +4 -1
  531. data/lib/wx/pg/pg_property.rb +18 -5
  532. data/lib/wx/pg/property_grid.rb +4 -1
  533. data/lib/wx/pg/property_grid_interface.rb +3 -0
  534. data/lib/wx/pg/require.rb +4 -1
  535. data/lib/wx/pg.rb +4 -1
  536. data/lib/wx/prt/keyword_defs.rb +8 -1
  537. data/lib/wx/prt/page_setup_dialog.rb +3 -0
  538. data/lib/wx/prt/previewframe.rb +5 -0
  539. data/lib/wx/prt/require.rb +4 -1
  540. data/lib/wx/prt.rb +4 -1
  541. data/lib/wx/rbn/events.rb +4 -1
  542. data/lib/wx/rbn/keyword_defs.rb +8 -1
  543. data/lib/wx/rbn/require.rb +5 -1
  544. data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
  545. data/lib/wx/rbn/ribbon_bar.rb +3 -0
  546. data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
  547. data/lib/wx/rbn/ribbon_control.rb +3 -0
  548. data/lib/wx/rbn/ribbon_gallery.rb +10 -0
  549. data/lib/wx/rbn/ribbon_page.rb +3 -0
  550. data/lib/wx/rbn/ribbon_panel.rb +3 -0
  551. data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
  552. data/lib/wx/rbn.rb +4 -1
  553. data/lib/wx/rtc/ext.rb +4 -1
  554. data/lib/wx/rtc/keyword_defs.rb +18 -7
  555. data/lib/wx/rtc/require.rb +8 -1
  556. data/lib/wx/rtc/richtext_buffer.rb +36 -0
  557. data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
  558. data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
  559. data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
  560. data/lib/wx/rtc.rb +5 -1
  561. data/lib/wx/stc/keyword_defs.rb +8 -1
  562. data/lib/wx/stc/require.rb +4 -1
  563. data/lib/wx/stc.rb +4 -1
  564. data/lib/wx/version.rb +5 -1
  565. data/lib/wx/wxruby/base.rb +4 -1
  566. data/lib/wx/wxruby/cmd/sampler.rb +4 -1
  567. data/lib/wx/wxruby/cmd/test.rb +4 -1
  568. data/lib/wx.rb +4 -1
  569. data/lib/wxruby_aui.so +0 -0
  570. data/lib/wxruby_core.so +0 -0
  571. data/lib/wxruby_grid.so +0 -0
  572. data/lib/wxruby_html.so +0 -0
  573. data/lib/wxruby_pg.so +0 -0
  574. data/lib/wxruby_prt.so +0 -0
  575. data/lib/wxruby_rbn.so +0 -0
  576. data/lib/wxruby_rtc.so +0 -0
  577. data/lib/wxruby_stc.so +0 -0
  578. data/rakelib/install.rb +4 -1
  579. data/rakelib/lib/config/cygwin.rb +4 -1
  580. data/rakelib/lib/config/linux.rb +4 -1
  581. data/rakelib/lib/config/macosx.rb +5 -2
  582. data/rakelib/lib/config/mingw.rb +4 -1
  583. data/rakelib/lib/config/netbsd.rb +4 -1
  584. data/rakelib/lib/config/unixish.rb +10 -7
  585. data/rakelib/lib/config.rb +7 -2
  586. data/rakelib/lib/ext/enum_chain.rb +4 -1
  587. data/rakelib/prepost.rake +4 -1
  588. data/rakelib/prepost.rb +4 -1
  589. data/samples/aui/aui.rb +8 -3
  590. data/samples/bigdemo/bigdemo.rb +9 -2
  591. data/samples/bigdemo/run.rb +9 -2
  592. data/samples/bigdemo/utils.rb +9 -1
  593. data/samples/calendar/calendar.rb +9 -4
  594. data/samples/caret/caret.rb +8 -3
  595. data/samples/controls/books.rb +8 -2
  596. data/samples/controls/controls.rb +33 -77
  597. data/samples/controls/get_item_sample.rb +8 -2
  598. data/samples/controls/htlbox.rb +10 -3
  599. data/samples/dialogs/dialogs.rb +9 -4
  600. data/samples/dialogs/wizard.rb +8 -3
  601. data/samples/dragdrop/dragdrop.rb +8 -3
  602. data/samples/drawing/bitmap.rb +8 -3
  603. data/samples/drawing/bitmap_image.rb +8 -3
  604. data/samples/drawing/graphics_drawing.rb +44 -33
  605. data/samples/drawing/image_prt.rb +8 -2
  606. data/samples/drawing/maths_images.rb +8 -3
  607. data/samples/drawing/rmagic_bitmap_image.rb +8 -3
  608. data/samples/etc/choice.rb +8 -3
  609. data/samples/etc/miniframe.rb +8 -3
  610. data/samples/etc/sash.rb +8 -3
  611. data/samples/etc/scrollwin.rb +8 -3
  612. data/samples/etc/system_settings.rb +8 -3
  613. data/samples/event/activation.rb +8 -3
  614. data/samples/event/event.rb +8 -3
  615. data/samples/event/threaded.rb +8 -3
  616. data/samples/event/update_ui_event.rb +8 -3
  617. data/samples/grid/grid.rb +9 -3
  618. data/samples/grid/gridtablebase.rb +8 -3
  619. data/samples/html/html.rb +8 -3
  620. data/samples/mdi/mdi.rb +8 -3
  621. data/samples/minimal/minimal.rb +8 -3
  622. data/samples/minimal/nothing.rb +8 -3
  623. data/samples/printing/printing.rb +8 -3
  624. data/samples/printing/printing2.rb +8 -2
  625. data/samples/propgrid/propgrid.rb +4 -1
  626. data/samples/propgrid/propgrid_minimal.rb +4 -2
  627. data/samples/propgrid/sample_props.rb +4 -1
  628. data/samples/ribbon/ribbon.rb +4 -1
  629. data/samples/sampler/editor.rb +4 -1
  630. data/samples/sampler/ext.rb +4 -1
  631. data/samples/sampler/sample.rb +13 -4
  632. data/samples/sampler/stc_editor.rb +4 -1
  633. data/samples/sampler/txt_editor.rb +4 -1
  634. data/samples/sampler.rb +11 -3
  635. data/samples/splash/splash.rb +4 -2
  636. data/samples/text/art/richtext/alignleft.xpm +24 -0
  637. data/samples/text/art/richtext/alignright.xpm +24 -0
  638. data/samples/text/art/richtext/bold.xpm +24 -0
  639. data/samples/text/art/richtext/centre.xpm +24 -0
  640. data/samples/text/art/richtext/copy.xpm +45 -0
  641. data/samples/text/art/richtext/cut.xpm +47 -0
  642. data/samples/text/art/richtext/font.xpm +25 -0
  643. data/samples/text/art/richtext/idea.xpm +47 -0
  644. data/samples/text/art/richtext/indentless.xpm +25 -0
  645. data/samples/text/art/richtext/indentmore.xpm +25 -0
  646. data/samples/text/art/richtext/italic.xpm +25 -0
  647. data/samples/text/art/richtext/open.xpm +58 -0
  648. data/samples/text/art/richtext/paste.xpm +47 -0
  649. data/samples/text/art/richtext/redo.xpm +59 -0
  650. data/samples/text/art/richtext/save.xpm +43 -0
  651. data/samples/text/art/richtext/smiley.xpm +42 -0
  652. data/samples/text/art/richtext/underline.xpm +25 -0
  653. data/samples/text/art/richtext/undo.xpm +59 -0
  654. data/samples/text/art/richtext/zebra.xpm +409 -0
  655. data/samples/text/rich_textctrl.rb +8 -3
  656. data/samples/text/richtext.rb +1824 -0
  657. data/samples/text/scintilla.rb +8 -3
  658. data/samples/text/textctrl.rb +21 -4
  659. data/samples/text/tn_richtext.png +0 -0
  660. data/samples/text/unicode.rb +9 -4
  661. data/samples/treectrl/treectrl.rb +10 -5
  662. data/samples/xrc/custom_xrc_sample.rb +8 -3
  663. data/samples/xrc/xrc_sample.rb +8 -3
  664. data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
  665. data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
  666. data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
  667. data/tests/lib/item_container_tests.rb +3 -0
  668. data/tests/lib/text_entry_tests.rb +3 -0
  669. data/tests/lib/wxapp_runner.rb +3 -0
  670. data/tests/lib/wxframe_runner.rb +81 -3
  671. data/tests/test_app_event_filter.rb +3 -0
  672. data/tests/test_app_traits.rb +33 -0
  673. data/tests/test_art.rb +31 -0
  674. data/tests/test_art_provider.rb +3 -0
  675. data/tests/test_aui.rb +65 -0
  676. data/tests/test_basic.rb +5 -1
  677. data/tests/test_box_sizer.rb +164 -0
  678. data/tests/test_clipboard.rb +3 -0
  679. data/tests/test_config.rb +150 -0
  680. data/tests/test_dc.rb +3 -0
  681. data/tests/test_dialog.rb +3 -0
  682. data/tests/test_event_handling.rb +3 -0
  683. data/tests/test_events.rb +3 -0
  684. data/tests/test_ext_controls.rb +286 -3
  685. data/tests/test_file_dialog.rb +55 -0
  686. data/tests/test_font.rb +8 -5
  687. data/tests/test_gdi_object.rb +3 -0
  688. data/tests/test_geometry.rb +4 -0
  689. data/tests/test_grid_sizer.rb +151 -0
  690. data/tests/test_intl.rb +3 -0
  691. data/tests/test_item_data.rb +3 -0
  692. data/tests/test_list_ctrl.rb +56 -0
  693. data/tests/test_log.rb +226 -0
  694. data/tests/test_proof_check.rb +52 -0
  695. data/tests/test_richtext.rb +204 -0
  696. data/tests/test_std_controls.rb +99 -31
  697. data/tests/test_timer.rb +98 -0
  698. data/tests/test_variant.rb +3 -0
  699. data/tests/test_window.rb +10 -8
  700. data/tests/testapp.rb +4 -0
  701. data/tests/testapp_noframe.rb +4 -0
  702. metadata +87 -3
  703. data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -8,14 +8,16 @@ module Wx::PG
8
8
 
9
9
  # Basic property with boolean value.
10
10
  # <b>Supported special attributes:</b>
11
- # - {Wx::PG::PG_BOOL_USE_CHECKBOX}: Set to true to use check box editor instead of combo box.- {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: Set to true to cycle combo box instead showing the list.
11
+ #
12
+ # - {Wx::PG::PG_BOOL_USE_CHECKBOX}: Set to true to use check box editor instead of combo box.
13
+ # - {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: Set to true to cycle combo box instead showing the list.
12
14
  #
13
15
  class BoolProperty < PGProperty
14
16
 
15
17
  # @param label [String]
16
18
  # @param name [String]
17
- # @param value [true,false]
18
- # @return [BoolProperty]
19
+ # @param value [Boolean]
20
+ # @return [Wx::PG::BoolProperty]
19
21
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=false) end
20
22
 
21
23
  # Converts property value into a text representation.
@@ -34,17 +36,20 @@ module Wx::PG
34
36
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
35
37
  # @param text [String] Text to be translated into variant.
36
38
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::BoolProperty#value_to_string} called with this same flag).
37
- # @return [void]
39
+ # @return [Boolean]
38
40
  def string_to_value(variant, text, argFlags=0) end
39
41
 
40
42
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
41
43
  # Returns true if resulting {Wx::Variant} value was different.
42
44
  #
43
- # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.- Default implementation simply assign given int to m_value.- If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.- You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
45
+ # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
46
+ # - Default implementation simply assign given int to m_value.
47
+ # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
48
+ # - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
44
49
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
45
50
  # @param number [Integer] Integer to be translated into variant.
46
51
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
47
- # @return [void]
52
+ # @return [Boolean]
48
53
  def int_to_value(variant, number, argFlags=0) end
49
54
 
50
55
  # Reimplement this member function to add special handling for attributes of this property.
@@ -53,7 +58,7 @@ module Wx::PG
53
58
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
54
59
  # @param name [String]
55
60
  # @param value [Wx::Variant]
56
- # @return [void]
61
+ # @return [Boolean]
57
62
  def do_set_attribute(name, value) end
58
63
 
59
64
  #
@@ -68,18 +73,22 @@ module Wx::PG
68
73
 
69
74
  # Property representing {Wx::DateTime}.
70
75
  # <b>Supported special attributes:</b>
71
- # - {Wx::PG::PG_DATE_FORMAT}: Determines displayed date format.- {Wx::PG::PG_DATE_PICKER_STYLE}: Determines window style used with {Wx::DatePickerCtrl}. Default is {Wx::DP_DEFAULT} | {Wx::DP_SHOWCENTURY}. Using {Wx::DP_ALLOWNONE} enables additional support for unspecified property value.
76
+ #
77
+ # - {Wx::PG::PG_DATE_FORMAT}: Determines displayed date format.
78
+ # - {Wx::PG::PG_DATE_PICKER_STYLE}: Determines window style used with {Wx::DatePickerCtrl}. Default is {Wx::DP_DEFAULT} | {Wx::DP_SHOWCENTURY}. Using {Wx::DP_ALLOWNONE} enables additional support for unspecified property value.
72
79
  #
73
80
  class DateProperty < PGProperty
74
81
 
75
82
  # @param label [String]
76
83
  # @param name [String]
77
84
  # @param value [Time,Date,DateTime]
78
- # @return [DateProperty]
85
+ # @return [Wx::PG::DateProperty]
79
86
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::DateTime.new())) end
80
87
 
81
88
  # This virtual function is called after m_value has been set.
82
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::DateProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::DateProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
89
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::DateProperty#on_set_value} will not be called.
90
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::DateProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
91
+ # - Default implementation does nothing.
83
92
  # @return [void]
84
93
  def on_set_value; end
85
94
 
@@ -99,7 +108,7 @@ module Wx::PG
99
108
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
100
109
  # @param text [String] Text to be translated into variant.
101
110
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::DateProperty#value_to_string} called with this same flag).
102
- # @return [void]
111
+ # @return [Boolean]
103
112
  def string_to_value(variant, text, argFlags=0) end
104
113
 
105
114
  # Reimplement this member function to add special handling for attributes of this property.
@@ -108,7 +117,7 @@ module Wx::PG
108
117
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
109
118
  # @param name [String]
110
119
  # @param value [Wx::Variant]
111
- # @return [void]
120
+ # @return [Boolean]
112
121
  def do_set_attribute(name, value) end
113
122
 
114
123
  # @param format [String]
@@ -175,20 +184,22 @@ module Wx::PG
175
184
  # @overload initialize(label, name, choices, value=0)
176
185
  # @param label [String]
177
186
  # @param name [String]
178
- # @param choices [Wx::PGChoices]
187
+ # @param choices [Wx::PG::PGChoices]
179
188
  # @param value [Integer]
180
- # @return [FlagsProperty]
189
+ # @return [Wx::PG::FlagsProperty]
181
190
  # @overload initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, labels=(Wx::ArrayString.new()), values=(Wx::ArrayInt.new()), value=0)
182
191
  # @param label [String]
183
192
  # @param name [String]
184
193
  # @param labels [Array<String>]
185
194
  # @param values [Array<Integer>]
186
195
  # @param value [Integer]
187
- # @return [FlagsProperty]
196
+ # @return [Wx::PG::FlagsProperty]
188
197
  def initialize(*args) end
189
198
 
190
199
  # This virtual function is called after m_value has been set.
191
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FlagsProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FlagsProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
200
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FlagsProperty#on_set_value} will not be called.
201
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FlagsProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
202
+ # - Default implementation does nothing.
192
203
  # @return [void]
193
204
  def on_set_value; end
194
205
 
@@ -208,7 +219,7 @@ module Wx::PG
208
219
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
209
220
  # @param text [String] Text to be translated into variant.
210
221
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::FlagsProperty#value_to_string} called with this same flag).
211
- # @return [void]
222
+ # @return [Boolean]
212
223
  def string_to_value(variant, text, argFlags) end
213
224
 
214
225
  # Called after value of a child property has been altered.
@@ -216,31 +227,24 @@ module Wx::PG
216
227
  # Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FlagsProperty#get_value} or m_value should not be relied on.
217
228
  # Sample pseudo-code implementation:
218
229
  #
219
- # ```
220
- # wxVariant MyProperty::ChildChanged( wxVariant& thisValue,
221
- # int childIndex,
222
- # wxVariant& childValue ) const
223
- # {
224
- # // Acquire reference to actual type of data stored in variant
225
- # // (TFromVariant only exists if wxPropertyGrid's wxVariant-macros
226
- # // were used to create the variant class).
227
- # T& data = TFromVariant(thisValue);
228
- #
229
- # // Copy childValue into data.
230
- # switch ( childIndex )
231
- # {
232
- # case 0:
233
- # data.SetSubProp1( childvalue.GetLong() );
234
- # break;
235
- # case 1:
236
- # data.SetSubProp2( childvalue.GetString() );
237
- # break;
238
- # ...
239
- # }
240
- #
241
- # // Return altered data
242
- # return data;
243
- # }
230
+ # ```ruby
231
+ # class MyProperty < Wx::PG::FlagsProperty
232
+ #
233
+ # def child_changed(thisValue, childIndex, childValue)
234
+ # # Acquire reference to actual type of data stored in variant
235
+ # flags = thisValue.object;
236
+ # case childIndex
237
+ # when 0
238
+ # flags.sub_prop1 = childValue.to_i
239
+ # when 1
240
+ # flags.sub_prop2 = childValue.to_s
241
+ # # ...
242
+ # end
243
+ # # return altered data
244
+ # Wx::Variant.new(flags)
245
+ # end
246
+ #
247
+ # end
244
248
  # ```
245
249
  #
246
250
  # Modified value of the whole property.
@@ -261,7 +265,7 @@ module Wx::PG
261
265
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
262
266
  # @param name [String]
263
267
  # @param value [Wx::Variant]
264
- # @return [void]
268
+ # @return [Boolean]
265
269
  def do_set_attribute(name, value) end
266
270
 
267
271
  # Returns which choice is currently selected.
@@ -292,6 +296,7 @@ module Wx::PG
292
296
 
293
297
  # Basic property with string value.
294
298
  # <b>Supported special attributes:</b>
299
+ #
295
300
  # - {Wx::PG::PG_STRING_PASSWORD}: set to true in order to enable {Wx::TE_PASSWORD} on the editor.
296
301
  #
297
302
  # - If value "<composed>" is set, then actual value is formed (or composed) from values of child properties.
@@ -301,7 +306,7 @@ module Wx::PG
301
306
  # @param label [String]
302
307
  # @param name [String]
303
308
  # @param value [String]
304
- # @return [StringProperty]
309
+ # @return [Wx::PG::StringProperty]
305
310
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
306
311
 
307
312
  # Converts property value into a text representation.
@@ -320,7 +325,7 @@ module Wx::PG
320
325
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
321
326
  # @param text [String] Text to be translated into variant.
322
327
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::StringProperty#value_to_string} called with this same flag).
323
- # @return [void]
328
+ # @return [Boolean]
324
329
  def string_to_value(variant, text, argFlags=0) end
325
330
 
326
331
  # Reimplement this member function to add special handling for attributes of this property.
@@ -329,7 +334,7 @@ module Wx::PG
329
334
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
330
335
  # @param name [String]
331
336
  # @param value [Wx::Variant]
332
- # @return [void]
337
+ # @return [Boolean]
333
338
  def do_set_attribute(name, value) end
334
339
 
335
340
  # This is updated so "<composed>" special value can be handled.
@@ -353,11 +358,11 @@ module Wx::PG
353
358
 
354
359
  # @overload initialize()
355
360
  # Default constructor is only used in special cases.
356
- # @return [PropertyCategory]
361
+ # @return [Wx::PG::PropertyCategory]
357
362
  # @overload initialize(label, name=Wx::PG::PG_LABEL)
358
363
  # @param label [String]
359
364
  # @param name [String]
360
- # @return [PropertyCategory]
365
+ # @return [Wx::PG::PropertyCategory]
361
366
  def initialize(*args) end
362
367
 
363
368
  # @param wnd [Wx::Window]
@@ -393,13 +398,14 @@ module Wx::PG
393
398
  # This is an abstract class which serves as a base class for the properties having a button triggering an editor dialog, like e.g.
394
399
  # {Wx::PG::LongStringProperty}, {Wx::PG::DirProperty}, {Wx::PG::FileProperty}.
395
400
  # <b>Supported special attributes:</b>
401
+ #
396
402
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
397
403
  #
398
404
  class EditorDialogProperty < PGProperty
399
405
 
400
406
  # Returns instance of a new {Wx::PG::PGEditorDialogAdapter} instance, which is used when user presses the (optional) button next to the editor control;.
401
407
  # Default implementation returns NULL (i.e. no action is generated when button is pressed).
402
- # @return [Wx::PGEditorDialogAdapter]
408
+ # @return [Wx::PG::PGEditorDialogAdapter]
403
409
  def get_editor_dialog; end
404
410
  alias_method :editor_dialog, :get_editor_dialog
405
411
 
@@ -409,7 +415,7 @@ module Wx::PG
409
415
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
410
416
  # @param name [String]
411
417
  # @param value [Wx::Variant]
412
- # @return [void]
418
+ # @return [Boolean]
413
419
  def do_set_attribute(name, value) end
414
420
 
415
421
  #
@@ -450,23 +456,25 @@ module Wx::PG
450
456
  # Constructor is protected because {Wx::PG::EditorDialogProperty} is only the base class for other property classes.
451
457
  # @param label [String]
452
458
  # @param name [String]
453
- # @return [EditorDialogProperty]
459
+ # @return [Wx::PG::EditorDialogProperty]
454
460
  def initialize(label, name) end
455
461
 
456
462
  # Shows editor dialog.
457
463
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
458
464
  #
459
465
  # Returns true if editor dialog was not cancelled and value was updated.
460
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
466
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
461
467
  # @param value [Wx::Variant] Value to be edited.
462
- # @return [void]
468
+ # @return [Boolean]
463
469
  def display_editor_dialog(pg, value) end
464
470
 
465
471
  end # EditorDialogProperty
466
472
 
467
473
  # Property that manages a list of strings.
468
474
  # <b>Supported special attributes:</b>
469
- # - {Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.- {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
475
+ #
476
+ # - {Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.
477
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
470
478
  #
471
479
  class ArrayStringProperty < EditorDialogProperty
472
480
 
@@ -489,11 +497,13 @@ module Wx::PG
489
497
  # @param label [String]
490
498
  # @param name [String]
491
499
  # @param value [Array<String>]
492
- # @return [ArrayStringProperty]
500
+ # @return [Wx::PG::ArrayStringProperty]
493
501
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new())) end
494
502
 
495
503
  # This virtual function is called after m_value has been set.
496
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ArrayStringProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ArrayStringProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
504
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ArrayStringProperty#on_set_value} will not be called.
505
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ArrayStringProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
506
+ # - Default implementation does nothing.
497
507
  # @return [void]
498
508
  def on_set_value; end
499
509
 
@@ -513,7 +523,7 @@ module Wx::PG
513
523
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
514
524
  # @param text [String] Text to be translated into variant.
515
525
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::ArrayStringProperty#value_to_string} called with this same flag).
516
- # @return [void]
526
+ # @return [Boolean]
517
527
  def string_to_value(variant, text, argFlags=0) end
518
528
 
519
529
  # Reimplement this member function to add special handling for attributes of this property.
@@ -522,7 +532,7 @@ module Wx::PG
522
532
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
523
533
  # @param name [String]
524
534
  # @param value [Wx::Variant]
525
- # @return [void]
535
+ # @return [Boolean]
526
536
  def do_set_attribute(name, value) end
527
537
 
528
538
  # Implement in derived class for custom array-to-string conversion.
@@ -538,7 +548,7 @@ module Wx::PG
538
548
  def on_custom_string_edit(parent) end
539
549
 
540
550
  # Creates {Wx::PG::PGArrayEditorDialog} for string editing.
541
- # @return [Wx::PGArrayEditorDialog]
551
+ # @return [Wx::PG::PGArrayEditorDialog]
542
552
  def create_editor_dialog; end
543
553
 
544
554
  # Generates string based on the contents of {Wx::ArrayString} src.
@@ -599,15 +609,16 @@ module Wx::PG
599
609
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
600
610
  #
601
611
  # Returns true if editor dialog was not cancelled and value was updated.
602
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
612
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
603
613
  # @param value [Wx::Variant] Value to be edited.
604
- # @return [void]
614
+ # @return [Boolean]
605
615
  def display_editor_dialog(pg, value) end
606
616
 
607
617
  end # ArrayStringProperty
608
618
 
609
619
  # Like {Wx::PG::LongStringProperty}, but the button triggers directory selector instead.
610
620
  # <b>Supported special attributes:</b>
621
+ #
611
622
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
612
623
  #
613
624
  class DirProperty < EditorDialogProperty
@@ -615,7 +626,7 @@ module Wx::PG
615
626
  # @param label [String]
616
627
  # @param name [String]
617
628
  # @param value [String]
618
- # @return [DirProperty]
629
+ # @return [Wx::PG::DirProperty]
619
630
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
620
631
 
621
632
  # Converts property value into a text representation.
@@ -634,24 +645,31 @@ module Wx::PG
634
645
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
635
646
  # @param text [String] Text to be translated into variant.
636
647
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::DirProperty#value_to_string} called with this same flag).
637
- # @return [void]
648
+ # @return [Boolean]
638
649
  def string_to_value(variant, text, argFlags=0) end
639
650
 
640
651
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
641
- # Setting validator explicitly via SetPropertyValidator will override this.
642
- # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
652
+ # Setting validator explicitly via #set_property_validator will override this.
653
+ # In most situations, code like this should work well:
643
654
  #
644
- # ```
645
- # wxValidator* wxMyPropertyClass::DoGetValidator () const
646
- # {
647
- # WX_PG_DOGETVALIDATOR_ENTRY()
648
- #
649
- # wxMyValidator* validator = new wxMyValidator(...);
650
- #
651
- # ... prepare validator...
652
- #
653
- # WX_PG_DOGETVALIDATOR_EXIT(validator)
654
- # }
655
+ # ```ruby
656
+ # class MyPropertyClass < Wx::PG::DirProperty
657
+ #
658
+ # class << self
659
+ # def validator
660
+ # @validator ||= MyValidator.new(...)
661
+ # end
662
+ # end
663
+ #
664
+ # # ...
665
+ #
666
+ # def do_get_validator
667
+ # MyPropertyClass.validator
668
+ # end
669
+ #
670
+ # # ...
671
+ #
672
+ # end
655
673
  # ```
656
674
  #
657
675
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
@@ -673,27 +691,35 @@ module Wx::PG
673
691
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
674
692
  #
675
693
  # Returns true if editor dialog was not cancelled and value was updated.
676
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
694
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
677
695
  # @param value [Wx::Variant] Value to be edited.
678
- # @return [void]
696
+ # @return [Boolean]
679
697
  def display_editor_dialog(pg, value) end
680
698
 
681
699
  end # DirProperty
682
700
 
683
701
  # Like {Wx::PG::LongStringProperty}, but the button triggers file selector instead.
684
702
  # <b>Supported special attributes:</b>
685
- # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).- {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog (since 2.9.4).- {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.- {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).- {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.- {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
703
+ #
704
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
705
+ # - {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog (since 2.9.4).
706
+ # - {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.
707
+ # - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).
708
+ # - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
709
+ # - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
686
710
  #
687
711
  class FileProperty < EditorDialogProperty
688
712
 
689
713
  # @param label [String]
690
714
  # @param name [String]
691
715
  # @param value [String]
692
- # @return [FileProperty]
716
+ # @return [Wx::PG::FileProperty]
693
717
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
694
718
 
695
719
  # This virtual function is called after m_value has been set.
696
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FileProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
720
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FileProperty#on_set_value} will not be called.
721
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
722
+ # - Default implementation does nothing.
697
723
  # @return [void]
698
724
  def on_set_value; end
699
725
 
@@ -713,7 +739,7 @@ module Wx::PG
713
739
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
714
740
  # @param text [String] Text to be translated into variant.
715
741
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::FileProperty#value_to_string} called with this same flag).
716
- # @return [void]
742
+ # @return [Boolean]
717
743
  def string_to_value(variant, text, argFlags=0) end
718
744
 
719
745
  # Reimplement this member function to add special handling for attributes of this property.
@@ -722,24 +748,31 @@ module Wx::PG
722
748
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
723
749
  # @param name [String]
724
750
  # @param value [Wx::Variant]
725
- # @return [void]
751
+ # @return [Boolean]
726
752
  def do_set_attribute(name, value) end
727
753
 
728
754
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
729
- # Setting validator explicitly via SetPropertyValidator will override this.
730
- # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
755
+ # Setting validator explicitly via #set_property_validator will override this.
756
+ # In most situations, code like this should work well:
731
757
  #
732
- # ```
733
- # wxValidator* wxMyPropertyClass::DoGetValidator () const
734
- # {
735
- # WX_PG_DOGETVALIDATOR_ENTRY()
736
- #
737
- # wxMyValidator* validator = new wxMyValidator(...);
738
- #
739
- # ... prepare validator...
740
- #
741
- # WX_PG_DOGETVALIDATOR_EXIT(validator)
742
- # }
758
+ # ```ruby
759
+ # class MyPropertyClass < Wx::PG::FileProperty
760
+ #
761
+ # class << self
762
+ # def validator
763
+ # @validator ||= MyValidator.new(...)
764
+ # end
765
+ # end
766
+ #
767
+ # # ...
768
+ #
769
+ # def do_get_validator
770
+ # MyPropertyClass.validator
771
+ # end
772
+ #
773
+ # # ...
774
+ #
775
+ # end
743
776
  # ```
744
777
  #
745
778
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
@@ -747,7 +780,7 @@ module Wx::PG
747
780
  def do_get_validator; end
748
781
 
749
782
  # Returns filename to file represented by current value.
750
- # @return [Wx::FileName]
783
+ # @return [String]
751
784
  def get_file_name; end
752
785
  alias_method :file_name, :get_file_name
753
786
 
@@ -817,35 +850,45 @@ module Wx::PG
817
850
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
818
851
  #
819
852
  # Returns true if editor dialog was not cancelled and value was updated.
820
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
853
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
821
854
  # @param value [Wx::Variant] Value to be edited.
822
- # @return [void]
855
+ # @return [Boolean]
823
856
  def display_editor_dialog(pg, value) end
824
857
 
825
858
  end # FileProperty
826
859
 
827
860
  # Property representing image file(name).
828
861
  # <b>Supported special attributes:</b>
829
- # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).- {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.- {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All
830
- # files..." is default.- {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).- {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.- {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
862
+ #
863
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
864
+ # - {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.
865
+ # - {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All
866
+ # files..." is default.
867
+ # - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).
868
+ # - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
869
+ # - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
831
870
  #
832
871
  class ImageFileProperty < FileProperty
833
872
 
834
873
  # @param label [String]
835
874
  # @param name [String]
836
875
  # @param value [String]
837
- # @return [ImageFileProperty]
876
+ # @return [Wx::PG::ImageFileProperty]
838
877
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
839
878
 
840
879
  # This virtual function is called after m_value has been set.
841
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ImageFileProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ImageFileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
880
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ImageFileProperty#on_set_value} will not be called.
881
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ImageFileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
882
+ # - Default implementation does nothing.
842
883
  # @return [void]
843
884
  def on_set_value; end
844
885
 
845
886
  # Returns size of the custom painted image in front of property.
846
887
  # This method must be overridden to return non-default value if OnCustomPaint is to be called.
847
888
  #
848
- # - Default behaviour is to return {size(0,0)}, which means no image.- Default image width or height is indicated with dimension -1.- You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
889
+ # - Default behaviour is to return {size(0,0)}, which means no image.
890
+ # - Default image width or height is indicated with dimension -1.
891
+ # - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
849
892
  # @param item [Integer] Normally -1, but can be an index to the property's list of items.
850
893
  # @return [Wx::Size]
851
894
  def on_measure_image(item) end
@@ -854,27 +897,14 @@ module Wx::PG
854
897
  # If property's {Wx::PG::ImageFileProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::ImageFileProperty#on_measure_image} returned higher height than row height).
855
898
  # NOTE: Following applies when {Wx::PG::ImageFileProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
856
899
  #
857
- # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.- Due to technical reasons, rect's height will be default even if custom height was reported during measure call.- Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.- Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
900
+ # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.
901
+ # - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
902
+ # - Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.
903
+ # - Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
858
904
  # @see Wx::PG::ImageFileProperty#value_to_string
859
905
  # @param dc [Wx::DC] {Wx::DC} to paint on.
860
906
  # @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
861
- # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
862
- # ```
863
- # struct wxPGPaintData
864
- # {
865
- # // wxPropertyGrid.
866
- # const wxPropertyGrid* m_parent;
867
- #
868
- # // Normally -1, otherwise index to drop-down list item that has to be drawn.
869
- # int m_choiceItem;
870
- #
871
- # // Set to drawn width in OnCustomPaint (optional).
872
- # int m_drawnWidth;
873
- #
874
- # // In a measure item call, set this to the height of item at m_choiceItem index
875
- # int m_drawnHeight;
876
- # };
877
- # ```
907
+ # @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
878
908
  # @return [void]
879
909
  def on_custom_paint(dc, rect, paintdata) end
880
910
 
@@ -890,6 +920,7 @@ module Wx::PG
890
920
 
891
921
  # Property representing {Wx::Font}.
892
922
  # <b>Supported special attributes:</b>
923
+ #
893
924
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog (since 3.1.3).
894
925
  #
895
926
  class FontProperty < EditorDialogProperty
@@ -897,11 +928,13 @@ module Wx::PG
897
928
  # @param label [String]
898
929
  # @param name [String]
899
930
  # @param value [Wx::Font,Wx::FontInfo]
900
- # @return [FontProperty]
931
+ # @return [Wx::PG::FontProperty]
901
932
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::Font.new())) end
902
933
 
903
934
  # This virtual function is called after m_value has been set.
904
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FontProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FontProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
935
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FontProperty#on_set_value} will not be called.
936
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FontProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
937
+ # - Default implementation does nothing.
905
938
  # @return [void]
906
939
  def on_set_value; end
907
940
 
@@ -917,31 +950,30 @@ module Wx::PG
917
950
  # Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FontProperty#get_value} or m_value should not be relied on.
918
951
  # Sample pseudo-code implementation:
919
952
  #
920
- # ```
921
- # wxVariant MyProperty::ChildChanged( wxVariant& thisValue,
922
- # int childIndex,
923
- # wxVariant& childValue ) const
924
- # {
925
- # // Acquire reference to actual type of data stored in variant
926
- # // (TFromVariant only exists if wxPropertyGrid's wxVariant-macros
927
- # // were used to create the variant class).
928
- # T& data = TFromVariant(thisValue);
929
- #
930
- # // Copy childValue into data.
931
- # switch ( childIndex )
932
- # {
933
- # case 0:
934
- # data.SetSubProp1( childvalue.GetLong() );
935
- # break;
936
- # case 1:
937
- # data.SetSubProp2( childvalue.GetString() );
938
- # break;
939
- # ...
940
- # }
941
- #
942
- # // Return altered data
943
- # return data;
944
- # }
953
+ # ```ruby
954
+ # class WxFontDataProperty < Wx::PG::FontProperty
955
+ #
956
+ # def child_changed(thisValue, childIndex, childValue)
957
+ # fontData = thisValue.object
958
+ # fontData.initial_font = fontData.chosen_font
959
+ #
960
+ # case childIndex
961
+ # when 6
962
+ # col = childValue.colour
963
+ # fontData.colour = col
964
+ # else
965
+ # # Transfer from subset to superset.
966
+ # font = fontData.chosen_font
967
+ # variant = Wx::Variant.new(font)
968
+ # variant = super(variant, childIndex, childValue)
969
+ # font = variant.font
970
+ # fontData.chosen_font = font
971
+ # end
972
+ #
973
+ # Wx::Variant.new(fontData)
974
+ # end
975
+ #
976
+ # end
945
977
  # ```
946
978
  #
947
979
  # Modified value of the whole property.
@@ -971,15 +1003,16 @@ module Wx::PG
971
1003
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
972
1004
  #
973
1005
  # Returns true if editor dialog was not cancelled and value was updated.
974
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
1006
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
975
1007
  # @param value [Wx::Variant] Value to be edited.
976
- # @return [void]
1008
+ # @return [Boolean]
977
1009
  def display_editor_dialog(pg, value) end
978
1010
 
979
1011
  end # FontProperty
980
1012
 
981
1013
  # Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog.
982
1014
  # <b>Supported special attributes:</b>
1015
+ #
983
1016
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the text editor dialog (since 3.1.3).
984
1017
  #
985
1018
  class LongStringProperty < EditorDialogProperty
@@ -987,7 +1020,7 @@ module Wx::PG
987
1020
  # @param label [String]
988
1021
  # @param name [String]
989
1022
  # @param value [String]
990
- # @return [LongStringProperty]
1023
+ # @return [Wx::PG::LongStringProperty]
991
1024
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
992
1025
 
993
1026
  # Converts property value into a text representation.
@@ -1006,7 +1039,7 @@ module Wx::PG
1006
1039
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1007
1040
  # @param text [String] Text to be translated into variant.
1008
1041
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::LongStringProperty#value_to_string} called with this same flag).
1009
- # @return [void]
1042
+ # @return [Boolean]
1010
1043
  def string_to_value(variant, text, argFlags=0) end
1011
1044
 
1012
1045
  #
@@ -1024,9 +1057,9 @@ module Wx::PG
1024
1057
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
1025
1058
  #
1026
1059
  # Returns true if editor dialog was not cancelled and value was updated.
1027
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
1060
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
1028
1061
  # @param value [Wx::Variant] Value to be edited.
1029
- # @return [void]
1062
+ # @return [Boolean]
1030
1063
  def display_editor_dialog(pg, value) end
1031
1064
 
1032
1065
  end # LongStringProperty
@@ -1034,7 +1067,9 @@ module Wx::PG
1034
1067
  # Property that manages a value resulting from {Wx::MultiChoiceDialog}.
1035
1068
  # Value is array of strings. You can get value as array of choice values/indices by calling {Wx::PG::MultiChoiceProperty#get_value_as_array_int}.
1036
1069
  # <b>Supported special attributes:</b>
1037
- # - {Wx::PG::PG_ATTR_MULTICHOICE_USERSTRINGMODE}: If > 0, allow user to manually enter strings that are not in the list of choices. If this value is 1, user strings are preferably placed in front of valid choices. If value is 2, then those strings will placed behind valid choices.- {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
1070
+ #
1071
+ # - {Wx::PG::PG_ATTR_MULTICHOICE_USERSTRINGMODE}: If > 0, allow user to manually enter strings that are not in the list of choices. If this value is 1, user strings are preferably placed in front of valid choices. If value is 2, then those strings will placed behind valid choices.
1072
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
1038
1073
  #
1039
1074
  class MultiChoiceProperty < EditorDialogProperty
1040
1075
 
@@ -1043,22 +1078,24 @@ module Wx::PG
1043
1078
  # @param name [String]
1044
1079
  # @param strings [Array<String>]
1045
1080
  # @param value [Array<String>]
1046
- # @return [MultiChoiceProperty]
1081
+ # @return [Wx::PG::MultiChoiceProperty]
1047
1082
  # @overload initialize(label, name, choices, value=(Wx::ArrayString.new()))
1048
1083
  # @param label [String]
1049
1084
  # @param name [String]
1050
- # @param choices [Wx::PGChoices]
1085
+ # @param choices [Wx::PG::PGChoices]
1051
1086
  # @param value [Array<String>]
1052
- # @return [MultiChoiceProperty]
1087
+ # @return [Wx::PG::MultiChoiceProperty]
1053
1088
  # @overload initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new()))
1054
1089
  # @param label [String]
1055
1090
  # @param name [String]
1056
1091
  # @param value [Array<String>]
1057
- # @return [MultiChoiceProperty]
1092
+ # @return [Wx::PG::MultiChoiceProperty]
1058
1093
  def initialize(*args) end
1059
1094
 
1060
1095
  # This virtual function is called after m_value has been set.
1061
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::MultiChoiceProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::MultiChoiceProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
1096
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::MultiChoiceProperty#on_set_value} will not be called.
1097
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::MultiChoiceProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
1098
+ # - Default implementation does nothing.
1062
1099
  # @return [void]
1063
1100
  def on_set_value; end
1064
1101
 
@@ -1078,7 +1115,7 @@ module Wx::PG
1078
1115
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1079
1116
  # @param text [String] Text to be translated into variant.
1080
1117
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::MultiChoiceProperty#value_to_string} called with this same flag).
1081
- # @return [void]
1118
+ # @return [Boolean]
1082
1119
  def string_to_value(variant, text, argFlags=0) end
1083
1120
 
1084
1121
  # @return [Array<Integer>]
@@ -1132,16 +1169,20 @@ module Wx::PG
1132
1169
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
1133
1170
  #
1134
1171
  # Returns true if editor dialog was not cancelled and value was updated.
1135
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
1172
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
1136
1173
  # @param value [Wx::Variant] Value to be edited.
1137
- # @return [void]
1174
+ # @return [Boolean]
1138
1175
  def display_editor_dialog(pg, value) end
1139
1176
 
1140
1177
  end # MultiChoiceProperty
1141
1178
 
1142
1179
  # This is an abstract class which serves as a base class for numeric properties, like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty}, {Wx::PG::FloatProperty}.
1143
1180
  # <b>Supported special attributes:</b>
1144
- # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specify acceptable value range.- {Wx::PG::PG_ATTR_SPINCTRL_STEP}: How much number changes when SpinCtrl editor button is pressed (or up/down on keyboard).- {Wx::PG::PG_ATTR_SPINCTRL_WRAP}: Specify if value modified with SpinCtrl editor wraps at Min/Max.- {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Specify if value can also by changed with SpinCtrl editor by moving mouse when left mouse button is being pressed.
1181
+ #
1182
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specify acceptable value range.
1183
+ # - {Wx::PG::PG_ATTR_SPINCTRL_STEP}: How much number changes when SpinCtrl editor button is pressed (or up/down on keyboard).
1184
+ # - {Wx::PG::PG_ATTR_SPINCTRL_WRAP}: Specify if value modified with SpinCtrl editor wraps at Min/Max.
1185
+ # - {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Specify if value can also by changed with SpinCtrl editor by moving mouse when left mouse button is being pressed.
1145
1186
  #
1146
1187
  class NumericProperty < PGProperty
1147
1188
 
@@ -1151,7 +1192,7 @@ module Wx::PG
1151
1192
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
1152
1193
  # @param name [String]
1153
1194
  # @param value [Wx::Variant]
1154
- # @return [void]
1195
+ # @return [Boolean]
1155
1196
  def do_set_attribute(name, value) end
1156
1197
 
1157
1198
  # Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
@@ -1165,7 +1206,7 @@ module Wx::PG
1165
1206
  def add_spin_step_value(stepScale) end
1166
1207
 
1167
1208
  # Return true if value can be changed with SpinCtrl editor by moving the mouse.
1168
- # @return [void]
1209
+ # @return [Boolean]
1169
1210
  def use_spin_motion; end
1170
1211
 
1171
1212
  #
@@ -1195,12 +1236,12 @@ module Wx::PG
1195
1236
  #
1196
1237
  #
1197
1238
  #
1198
- # @return []
1239
+ # @return [Boolean]
1199
1240
  def spin_motion_; end
1200
1241
  #
1201
1242
  #
1202
1243
  #
1203
- # @param val [true,false]
1244
+ # @param val [Boolean]
1204
1245
  # @return [void]
1205
1246
  def spin_motion_=(val); end
1206
1247
 
@@ -1219,12 +1260,12 @@ module Wx::PG
1219
1260
  #
1220
1261
  #
1221
1262
  #
1222
- # @return []
1263
+ # @return [Boolean]
1223
1264
  def spin_wrap_; end
1224
1265
  #
1225
1266
  #
1226
1267
  #
1227
- # @param val [true,false]
1268
+ # @param val [Boolean]
1228
1269
  # @return [void]
1229
1270
  def spin_wrap_=(val); end
1230
1271
 
@@ -1242,43 +1283,12 @@ module Wx::PG
1242
1283
  # Constructor is protected because {Wx::PG::NumericProperty} is only a base class for other numeric property classes.
1243
1284
  # @param label [String]
1244
1285
  # @param name [String]
1245
- # @return [NumericProperty]
1286
+ # @return [Wx::PG::NumericProperty]
1246
1287
  def initialize(label, name) end
1247
1288
 
1248
1289
  end # NumericProperty
1249
1290
 
1250
1291
  # Basic property with integer value.
1251
- # Seamlessly supports 64-bit integer ({Wx::LongLong}) on overflow.
1252
- # <b>Example how to use seamless 64-bit integer support</b>
1253
- # Getting value:
1254
- #
1255
- # ```
1256
- # wxLongLong_t value = pg->GetPropertyValueAsLongLong();
1257
- # ```
1258
- #
1259
- # or
1260
- #
1261
- # ```
1262
- # wxLongLong_t value;
1263
- # wxVariant variant = property->GetValue();
1264
- # if ( variant.GetType() == "wxLongLong" )
1265
- # value = wxLongLongFromVariant(variant);
1266
- # else
1267
- # value = variant.GetLong();
1268
- # ```
1269
- #
1270
- # Setting value:
1271
- #
1272
- # ```
1273
- # pg->SetPropertyValue(longLongVal);
1274
- # ```
1275
- #
1276
- # or
1277
- #
1278
- # ```
1279
- # property->SetValue(WXVARIANT(longLongVal));
1280
- # ```
1281
- #
1282
1292
  # <b>Supported special attributes:</b>
1283
1293
  # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1284
1294
  #
@@ -1288,12 +1298,12 @@ module Wx::PG
1288
1298
  # @param label [String]
1289
1299
  # @param name [String]
1290
1300
  # @param value [Integer]
1291
- # @return [IntProperty]
1301
+ # @return [Wx::PG::IntProperty]
1292
1302
  # @overload initialize(label, name, value)
1293
1303
  # @param label [String]
1294
1304
  # @param name [String]
1295
1305
  # @param value [Integer]
1296
- # @return [IntProperty]
1306
+ # @return [Wx::PG::IntProperty]
1297
1307
  def initialize(*args) end
1298
1308
 
1299
1309
  # Converts property value into a text representation.
@@ -1312,7 +1322,7 @@ module Wx::PG
1312
1322
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1313
1323
  # @param text [String] Text to be translated into variant.
1314
1324
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::IntProperty#value_to_string} called with this same flag).
1315
- # @return [void]
1325
+ # @return [Boolean]
1316
1326
  def string_to_value(variant, text, argFlags=0) end
1317
1327
 
1318
1328
  # Implement this function in derived class to check the value.
@@ -1320,35 +1330,45 @@ module Wx::PG
1320
1330
  #
1321
1331
  # - Default implementation always returns true.
1322
1332
  # @param value [Wx::Variant]
1323
- # @param validationInfo [Wx::PGValidationInfo]
1324
- # @return [void]
1333
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1334
+ # @return [Boolean]
1325
1335
  def validate_value(value, validationInfo) end
1326
1336
 
1327
1337
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1328
1338
  # Returns true if resulting {Wx::Variant} value was different.
1329
1339
  #
1330
- # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.- Default implementation simply assign given int to m_value.- If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.- You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1340
+ # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
1341
+ # - Default implementation simply assign given int to m_value.
1342
+ # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
1343
+ # - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1331
1344
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1332
1345
  # @param number [Integer] Integer to be translated into variant.
1333
1346
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1334
- # @return [void]
1347
+ # @return [Boolean]
1335
1348
  def int_to_value(variant, number, argFlags=0) end
1336
1349
 
1337
1350
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
1338
- # Setting validator explicitly via SetPropertyValidator will override this.
1339
- # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
1351
+ # Setting validator explicitly via #set_property_validator will override this.
1352
+ # In most situations, code like this should work well:
1340
1353
  #
1341
- # ```
1342
- # wxValidator* wxMyPropertyClass::DoGetValidator () const
1343
- # {
1344
- # WX_PG_DOGETVALIDATOR_ENTRY()
1345
- #
1346
- # wxMyValidator* validator = new wxMyValidator(...);
1347
- #
1348
- # ... prepare validator...
1349
- #
1350
- # WX_PG_DOGETVALIDATOR_EXIT(validator)
1351
- # }
1354
+ # ```ruby
1355
+ # class MyPropertyClass < Wx::PG::IntProperty
1356
+ #
1357
+ # class << self
1358
+ # def validator
1359
+ # @validator ||= MyValidator.new(...)
1360
+ # end
1361
+ # end
1362
+ #
1363
+ # # ...
1364
+ #
1365
+ # def do_get_validator
1366
+ # MyPropertyClass.validator
1367
+ # end
1368
+ #
1369
+ # # ...
1370
+ #
1371
+ # end
1352
1372
  # ```
1353
1373
  #
1354
1374
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
@@ -1393,10 +1413,10 @@ module Wx::PG
1393
1413
  def max_val_=(val); end
1394
1414
 
1395
1415
  #
1396
- # @return []
1416
+ # @return [Boolean]
1397
1417
  def spin_motion_; end
1398
1418
  #
1399
- # @param val [true,false]
1419
+ # @param val [Boolean]
1400
1420
  # @return [void]
1401
1421
  def spin_motion_=(val); end
1402
1422
 
@@ -1409,10 +1429,10 @@ module Wx::PG
1409
1429
  def spin_step_=(val); end
1410
1430
 
1411
1431
  #
1412
- # @return []
1432
+ # @return [Boolean]
1413
1433
  def spin_wrap_; end
1414
1434
  #
1415
- # @param val [true,false]
1435
+ # @param val [Boolean]
1416
1436
  # @return [void]
1417
1437
  def spin_wrap_=(val); end
1418
1438
 
@@ -1420,14 +1440,16 @@ module Wx::PG
1420
1440
 
1421
1441
  # Basic property with double-precision floating point value.
1422
1442
  # <b>Supported special attributes:</b>
1423
- # - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.- {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1443
+ #
1444
+ # - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.
1445
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1424
1446
  #
1425
1447
  class FloatProperty < NumericProperty
1426
1448
 
1427
1449
  # @param label [String]
1428
1450
  # @param name [String]
1429
1451
  # @param value [Float]
1430
- # @return [FloatProperty]
1452
+ # @return [Wx::PG::FloatProperty]
1431
1453
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0.0) end
1432
1454
 
1433
1455
  # Converts property value into a text representation.
@@ -1446,7 +1468,7 @@ module Wx::PG
1446
1468
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1447
1469
  # @param text [String] Text to be translated into variant.
1448
1470
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::FloatProperty#value_to_string} called with this same flag).
1449
- # @return [void]
1471
+ # @return [Boolean]
1450
1472
  def string_to_value(variant, text, argFlags=0) end
1451
1473
 
1452
1474
  # Reimplement this member function to add special handling for attributes of this property.
@@ -1455,7 +1477,7 @@ module Wx::PG
1455
1477
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
1456
1478
  # @param name [String]
1457
1479
  # @param value [Wx::Variant]
1458
- # @return [void]
1480
+ # @return [Boolean]
1459
1481
  def do_set_attribute(name, value) end
1460
1482
 
1461
1483
  # Implement this function in derived class to check the value.
@@ -1463,25 +1485,32 @@ module Wx::PG
1463
1485
  #
1464
1486
  # - Default implementation always returns true.
1465
1487
  # @param value [Wx::Variant]
1466
- # @param validationInfo [Wx::PGValidationInfo]
1467
- # @return [void]
1488
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1489
+ # @return [Boolean]
1468
1490
  def validate_value(value, validationInfo) end
1469
1491
 
1470
1492
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
1471
- # Setting validator explicitly via SetPropertyValidator will override this.
1472
- # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
1493
+ # Setting validator explicitly via #set_property_validator will override this.
1494
+ # In most situations, code like this should work well:
1473
1495
  #
1474
- # ```
1475
- # wxValidator* wxMyPropertyClass::DoGetValidator () const
1476
- # {
1477
- # WX_PG_DOGETVALIDATOR_ENTRY()
1478
- #
1479
- # wxMyValidator* validator = new wxMyValidator(...);
1480
- #
1481
- # ... prepare validator...
1482
- #
1483
- # WX_PG_DOGETVALIDATOR_EXIT(validator)
1484
- # }
1496
+ # ```ruby
1497
+ # class MyPropertyClass < Wx::PG::FloatProperty
1498
+ #
1499
+ # class << self
1500
+ # def validator
1501
+ # @validator ||= MyValidator.new(...)
1502
+ # end
1503
+ # end
1504
+ #
1505
+ # # ...
1506
+ #
1507
+ # def do_get_validator
1508
+ # MyPropertyClass.validator
1509
+ # end
1510
+ #
1511
+ # # ...
1512
+ #
1513
+ # end
1485
1514
  # ```
1486
1515
  #
1487
1516
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
@@ -1538,10 +1567,10 @@ module Wx::PG
1538
1567
  def max_val_=(val); end
1539
1568
 
1540
1569
  #
1541
- # @return []
1570
+ # @return [Boolean]
1542
1571
  def spin_motion_; end
1543
1572
  #
1544
- # @param val [true,false]
1573
+ # @param val [Boolean]
1545
1574
  # @return [void]
1546
1575
  def spin_motion_=(val); end
1547
1576
 
@@ -1554,10 +1583,10 @@ module Wx::PG
1554
1583
  def spin_step_=(val); end
1555
1584
 
1556
1585
  #
1557
- # @return []
1586
+ # @return [Boolean]
1558
1587
  def spin_wrap_; end
1559
1588
  #
1560
- # @param val [true,false]
1589
+ # @param val [Boolean]
1561
1590
  # @return [void]
1562
1591
  def spin_wrap_=(val); end
1563
1592
 
@@ -1566,7 +1595,10 @@ module Wx::PG
1566
1595
  # Basic property with unsigned integer value.
1567
1596
  # Seamlessly supports 64-bit integer ({Wx::ULongLong}) on overflow.
1568
1597
  # <b>Supported special attributes:</b>
1569
- # - {Wx::PG::PG_UINT_BASE}: Define base. Valid constants are {Wx::PG::PG_BASE_OCT}, {Wx::PG::PG_BASE_DEC}, {Wx::PG::PG_BASE_HEX} and {Wx::PG::PG_BASE_HEXL} (lowercase characters). Arbitrary bases are <b>not</b> supported.- {Wx::PG::PG_UINT_PREFIX}: Possible values are {Wx::PG::PG_PREFIX_NONE}, {Wx::PG::PG_PREFIX_0x}, and {Wx::PG::PG_PREFIX_DOLLAR_SIGN}. Only {Wx::PG::PG_PREFIX_NONE} works with Decimal and Octal numbers.- {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1598
+ #
1599
+ # - {Wx::PG::PG_UINT_BASE}: Define base. Valid constants are {Wx::PG::PG_BASE_OCT}, {Wx::PG::PG_BASE_DEC}, {Wx::PG::PG_BASE_HEX} and {Wx::PG::PG_BASE_HEXL} (lowercase characters). Arbitrary bases are <b>not</b> supported.
1600
+ # - {Wx::PG::PG_UINT_PREFIX}: Possible values are {Wx::PG::PG_PREFIX_NONE}, {Wx::PG::PG_PREFIX_0x}, and {Wx::PG::PG_PREFIX_DOLLAR_SIGN}. Only {Wx::PG::PG_PREFIX_NONE} works with Decimal and Octal numbers.
1601
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1570
1602
  #
1571
1603
  # - For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
1572
1604
  #
@@ -1576,12 +1608,12 @@ module Wx::PG
1576
1608
  # @param label [String]
1577
1609
  # @param name [String]
1578
1610
  # @param value [Integer]
1579
- # @return [UIntProperty]
1611
+ # @return [Wx::PG::UIntProperty]
1580
1612
  # @overload initialize(label, name, value)
1581
1613
  # @param label [String]
1582
1614
  # @param name [String]
1583
1615
  # @param value [Integer]
1584
- # @return [UIntProperty]
1616
+ # @return [Wx::PG::UIntProperty]
1585
1617
  def initialize(*args) end
1586
1618
 
1587
1619
  # Converts property value into a text representation.
@@ -1600,7 +1632,7 @@ module Wx::PG
1600
1632
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1601
1633
  # @param text [String] Text to be translated into variant.
1602
1634
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::UIntProperty#value_to_string} called with this same flag).
1603
- # @return [void]
1635
+ # @return [Boolean]
1604
1636
  def string_to_value(variant, text, argFlags=0) end
1605
1637
 
1606
1638
  # Reimplement this member function to add special handling for attributes of this property.
@@ -1609,7 +1641,7 @@ module Wx::PG
1609
1641
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
1610
1642
  # @param name [String]
1611
1643
  # @param value [Wx::Variant]
1612
- # @return [void]
1644
+ # @return [Boolean]
1613
1645
  def do_set_attribute(name, value) end
1614
1646
 
1615
1647
  # Implement this function in derived class to check the value.
@@ -1617,25 +1649,32 @@ module Wx::PG
1617
1649
  #
1618
1650
  # - Default implementation always returns true.
1619
1651
  # @param value [Wx::Variant]
1620
- # @param validationInfo [Wx::PGValidationInfo]
1621
- # @return [void]
1652
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1653
+ # @return [Boolean]
1622
1654
  def validate_value(value, validationInfo) end
1623
1655
 
1624
1656
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
1625
- # Setting validator explicitly via SetPropertyValidator will override this.
1626
- # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
1657
+ # Setting validator explicitly via #set_property_validator will override this.
1658
+ # In most situations, code like this should work well:
1627
1659
  #
1628
- # ```
1629
- # wxValidator* wxMyPropertyClass::DoGetValidator () const
1630
- # {
1631
- # WX_PG_DOGETVALIDATOR_ENTRY()
1632
- #
1633
- # wxMyValidator* validator = new wxMyValidator(...);
1634
- #
1635
- # ... prepare validator...
1636
- #
1637
- # WX_PG_DOGETVALIDATOR_EXIT(validator)
1638
- # }
1660
+ # ```ruby
1661
+ # class MyPropertyClass < Wx::PG::UIntProperty
1662
+ #
1663
+ # class << self
1664
+ # def validator
1665
+ # @validator ||= MyValidator.new(...)
1666
+ # end
1667
+ # end
1668
+ #
1669
+ # # ...
1670
+ #
1671
+ # def do_get_validator
1672
+ # MyPropertyClass.validator
1673
+ # end
1674
+ #
1675
+ # # ...
1676
+ #
1677
+ # end
1639
1678
  # ```
1640
1679
  #
1641
1680
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
@@ -1645,11 +1684,14 @@ module Wx::PG
1645
1684
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1646
1685
  # Returns true if resulting {Wx::Variant} value was different.
1647
1686
  #
1648
- # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.- Default implementation simply assign given int to m_value.- If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.- You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1687
+ # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
1688
+ # - Default implementation simply assign given int to m_value.
1689
+ # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
1690
+ # - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1649
1691
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1650
1692
  # @param number [Integer] Integer to be translated into variant.
1651
1693
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1652
- # @return [void]
1694
+ # @return [Boolean]
1653
1695
  def int_to_value(variant, number, argFlags=0) end
1654
1696
 
1655
1697
  # Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
@@ -1723,10 +1765,10 @@ module Wx::PG
1723
1765
  def max_val_=(val); end
1724
1766
 
1725
1767
  #
1726
- # @return []
1768
+ # @return [Boolean]
1727
1769
  def spin_motion_; end
1728
1770
  #
1729
- # @param val [true,false]
1771
+ # @param val [Boolean]
1730
1772
  # @return [void]
1731
1773
  def spin_motion_=(val); end
1732
1774
 
@@ -1739,10 +1781,10 @@ module Wx::PG
1739
1781
  def spin_step_=(val); end
1740
1782
 
1741
1783
  #
1742
- # @return []
1784
+ # @return [Boolean]
1743
1785
  def spin_wrap_; end
1744
1786
  #
1745
- # @param val [true,false]
1787
+ # @param val [Boolean]
1746
1788
  # @return [void]
1747
1789
  def spin_wrap_=(val); end
1748
1790
 
@@ -1758,16 +1800,16 @@ module Wx::PG
1758
1800
  # @overload initialize(label, name, choices, value=0)
1759
1801
  # @param label [String]
1760
1802
  # @param name [String]
1761
- # @param choices [Wx::PGChoices]
1803
+ # @param choices [Wx::PG::PGChoices]
1762
1804
  # @param value [Integer]
1763
- # @return [EnumProperty]
1805
+ # @return [Wx::PG::EnumProperty]
1764
1806
  # @overload initialize(label, name, labels, values=(Wx::ArrayInt.new()), value=0)
1765
1807
  # @param label [String]
1766
1808
  # @param name [String]
1767
1809
  # @param labels [Array<String>]
1768
1810
  # @param values [Array<Integer>]
1769
1811
  # @param value [Integer]
1770
- # @return [EnumProperty]
1812
+ # @return [Wx::PG::EnumProperty]
1771
1813
  def initialize(*args) end
1772
1814
 
1773
1815
  # @return [Integer]
@@ -1775,7 +1817,9 @@ module Wx::PG
1775
1817
  alias_method :item_count, :get_item_count
1776
1818
 
1777
1819
  # This virtual function is called after m_value has been set.
1778
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::EnumProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::EnumProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
1820
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::EnumProperty#on_set_value} will not be called.
1821
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::EnumProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
1822
+ # - Default implementation does nothing.
1779
1823
  # @return [void]
1780
1824
  def on_set_value; end
1781
1825
 
@@ -1795,7 +1839,7 @@ module Wx::PG
1795
1839
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1796
1840
  # @param text [String] Text to be translated into variant.
1797
1841
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::EnumProperty#value_to_string} called with this same flag).
1798
- # @return [void]
1842
+ # @return [Boolean]
1799
1843
  def string_to_value(variant, text, argFlags=0) end
1800
1844
 
1801
1845
  # Implement this function in derived class to check the value.
@@ -1803,18 +1847,21 @@ module Wx::PG
1803
1847
  #
1804
1848
  # - Default implementation always returns true.
1805
1849
  # @param value [Wx::Variant]
1806
- # @param validationInfo [Wx::PGValidationInfo]
1807
- # @return [void]
1850
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1851
+ # @return [Boolean]
1808
1852
  def validate_value(value, validationInfo) end
1809
1853
 
1810
1854
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1811
1855
  # Returns true if resulting {Wx::Variant} value was different.
1812
1856
  #
1813
- # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.- Default implementation simply assign given int to m_value.- If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.- You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1857
+ # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
1858
+ # - Default implementation simply assign given int to m_value.
1859
+ # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
1860
+ # - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1814
1861
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1815
1862
  # @param number [Integer] Integer to be translated into variant.
1816
1863
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1817
- # @return [void]
1864
+ # @return [Boolean]
1818
1865
  def int_to_value(variant, number, argFlags=0) end
1819
1866
 
1820
1867
  # @param value [Integer]
@@ -1841,13 +1888,13 @@ module Wx::PG
1841
1888
  # @param value [Wx::Variant]
1842
1889
  # @param text [String]
1843
1890
  # @param argFlags [Integer]
1844
- # @return [void]
1891
+ # @return [Boolean]
1845
1892
  def value_from_string_(value, text, argFlags) end
1846
1893
 
1847
1894
  # @param value [Wx::Variant]
1848
1895
  # @param intVal [Integer]
1849
1896
  # @param argFlags [Integer]
1850
- # @return [void]
1897
+ # @return [Boolean]
1851
1898
  def value_from_int_(value, intVal, argFlags) end
1852
1899
 
1853
1900
  #
@@ -1868,13 +1915,15 @@ module Wx::PG
1868
1915
  # @param label [String]
1869
1916
  # @param name [String]
1870
1917
  # @param value [Integer]
1871
- # @return [CursorProperty]
1918
+ # @return [Wx::PG::CursorProperty]
1872
1919
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0) end
1873
1920
 
1874
1921
  # Returns size of the custom painted image in front of property.
1875
1922
  # This method must be overridden to return non-default value if OnCustomPaint is to be called.
1876
1923
  #
1877
- # - Default behaviour is to return {size(0,0)}, which means no image.- Default image width or height is indicated with dimension -1.- You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
1924
+ # - Default behaviour is to return {size(0,0)}, which means no image.
1925
+ # - Default image width or height is indicated with dimension -1.
1926
+ # - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
1878
1927
  # @param item [Integer] Normally -1, but can be an index to the property's list of items.
1879
1928
  # @return [Wx::Size]
1880
1929
  def on_measure_image(item) end
@@ -1883,27 +1932,14 @@ module Wx::PG
1883
1932
  # If property's {Wx::PG::CursorProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::CursorProperty#on_measure_image} returned higher height than row height).
1884
1933
  # NOTE: Following applies when {Wx::PG::CursorProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
1885
1934
  #
1886
- # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.- Due to technical reasons, rect's height will be default even if custom height was reported during measure call.- Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.- Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
1935
+ # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.
1936
+ # - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
1937
+ # - Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.
1938
+ # - Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
1887
1939
  # @see Wx::PG::CursorProperty#value_to_string
1888
1940
  # @param dc [Wx::DC] {Wx::DC} to paint on.
1889
1941
  # @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
1890
- # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
1891
- # ```
1892
- # struct wxPGPaintData
1893
- # {
1894
- # // wxPropertyGrid.
1895
- # const wxPropertyGrid* m_parent;
1896
- #
1897
- # // Normally -1, otherwise index to drop-down list item that has to be drawn.
1898
- # int m_choiceItem;
1899
- #
1900
- # // Set to drawn width in OnCustomPaint (optional).
1901
- # int m_drawnWidth;
1902
- #
1903
- # // In a measure item call, set this to the height of item at m_choiceItem index
1904
- # int m_drawnHeight;
1905
- # };
1906
- # ```
1942
+ # @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
1907
1943
  # @return [void]
1908
1944
  def on_custom_paint(dc, rect, paintdata) end
1909
1945
 
@@ -1928,13 +1964,13 @@ module Wx::PG
1928
1964
  # @param labels [Array<String>]
1929
1965
  # @param values [Array<Integer>]
1930
1966
  # @param value [String]
1931
- # @return [EditEnumProperty]
1967
+ # @return [Wx::PG::EditEnumProperty]
1932
1968
  # @overload initialize(label, name, choices, value=(''))
1933
1969
  # @param label [String]
1934
1970
  # @param name [String]
1935
- # @param choices [Wx::PGChoices]
1971
+ # @param choices [Wx::PG::PGChoices]
1936
1972
  # @param value [String]
1937
- # @return [EditEnumProperty]
1973
+ # @return [Wx::PG::EditEnumProperty]
1938
1974
  def initialize(*args) end
1939
1975
 
1940
1976
  #
@@ -1955,23 +1991,28 @@ module Wx::PG
1955
1991
 
1956
1992
  # @param label [String]
1957
1993
  # @param name [String]
1958
- # @param value [Wx::ColourPropertyValue]
1959
- # @return [SystemColourProperty]
1994
+ # @param value [Wx::PG::ColourPropertyValue]
1995
+ # @return [Wx::PG::SystemColourProperty]
1960
1996
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ColourPropertyValue.new())) end
1961
1997
 
1962
1998
  # This virtual function is called after m_value has been set.
1963
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::SystemColourProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::SystemColourProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
1999
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::SystemColourProperty#on_set_value} will not be called.
2000
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::SystemColourProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
2001
+ # - Default implementation does nothing.
1964
2002
  # @return [void]
1965
2003
  def on_set_value; end
1966
2004
 
1967
2005
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1968
2006
  # Returns true if resulting {Wx::Variant} value was different.
1969
2007
  #
1970
- # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.- Default implementation simply assign given int to m_value.- If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.- You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
2008
+ # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
2009
+ # - Default implementation simply assign given int to m_value.
2010
+ # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
2011
+ # - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
1971
2012
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
1972
2013
  # @param number [Integer] Integer to be translated into variant.
1973
2014
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1974
- # @return [void]
2015
+ # @return [Boolean]
1975
2016
  def int_to_value(variant, number, argFlags=0) end
1976
2017
 
1977
2018
  # Override in derived class to customize how colours are printed as strings.
@@ -2002,7 +2043,7 @@ module Wx::PG
2002
2043
  # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
2003
2044
  # @param text [String] Text to be translated into variant.
2004
2045
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::SystemColourProperty#value_to_string} called with this same flag).
2005
- # @return [void]
2046
+ # @return [Boolean]
2006
2047
  def string_to_value(variant, text, argFlags=0) end
2007
2048
 
2008
2049
  # Events received by editor widgets are processed here.
@@ -2015,10 +2056,10 @@ module Wx::PG
2015
2056
  # return true if any changes in value should be reported.
2016
2057
  #
2017
2058
  # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
2018
- # @param propgrid [Wx::PropertyGrid]
2059
+ # @param propgrid [Wx::PG::PropertyGrid]
2019
2060
  # @param wnd_primary [Wx::Window]
2020
2061
  # @param event [Wx::Event]
2021
- # @return [void]
2062
+ # @return [Boolean]
2022
2063
  def on_event(propgrid, wnd_primary, event) end
2023
2064
 
2024
2065
  # Reimplement this member function to add special handling for attributes of this property.
@@ -2027,13 +2068,15 @@ module Wx::PG
2027
2068
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
2028
2069
  # @param name [String]
2029
2070
  # @param value [Wx::Variant]
2030
- # @return [void]
2071
+ # @return [Boolean]
2031
2072
  def do_set_attribute(name, value) end
2032
2073
 
2033
2074
  # Returns size of the custom painted image in front of property.
2034
2075
  # This method must be overridden to return non-default value if OnCustomPaint is to be called.
2035
2076
  #
2036
- # - Default behaviour is to return {size(0,0)}, which means no image.- Default image width or height is indicated with dimension -1.- You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
2077
+ # - Default behaviour is to return {size(0,0)}, which means no image.
2078
+ # - Default image width or height is indicated with dimension -1.
2079
+ # - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
2037
2080
  # @param item [Integer] Normally -1, but can be an index to the property's list of items.
2038
2081
  # @return [Wx::Size]
2039
2082
  def on_measure_image(item) end
@@ -2042,32 +2085,19 @@ module Wx::PG
2042
2085
  # If property's {Wx::PG::SystemColourProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::SystemColourProperty#on_measure_image} returned higher height than row height).
2043
2086
  # NOTE: Following applies when {Wx::PG::SystemColourProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
2044
2087
  #
2045
- # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.- Due to technical reasons, rect's height will be default even if custom height was reported during measure call.- Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.- Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
2088
+ # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.
2089
+ # - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
2090
+ # - Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.
2091
+ # - Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
2046
2092
  # @see Wx::PG::SystemColourProperty#value_to_string
2047
2093
  # @param dc [Wx::DC] {Wx::DC} to paint on.
2048
2094
  # @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
2049
- # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
2050
- # ```
2051
- # struct wxPGPaintData
2052
- # {
2053
- # // wxPropertyGrid.
2054
- # const wxPropertyGrid* m_parent;
2055
- #
2056
- # // Normally -1, otherwise index to drop-down list item that has to be drawn.
2057
- # int m_choiceItem;
2058
- #
2059
- # // Set to drawn width in OnCustomPaint (optional).
2060
- # int m_drawnWidth;
2061
- #
2062
- # // In a measure item call, set this to the height of item at m_choiceItem index
2063
- # int m_drawnHeight;
2064
- # };
2065
- # ```
2095
+ # @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
2066
2096
  # @return [void]
2067
2097
  def on_custom_paint(dc, rect, paintdata) end
2068
2098
 
2069
2099
  # @param variant [Wx::Variant]
2070
- # @return [void]
2100
+ # @return [Boolean]
2071
2101
  def query_colour_from_user(variant) end
2072
2102
 
2073
2103
  # Default is to use {Wx::SystemSettings.get_colour(index)}.
@@ -2078,7 +2108,7 @@ module Wx::PG
2078
2108
  alias_method :colour, :get_colour
2079
2109
 
2080
2110
  # @param pVariant [Wx::Variant]
2081
- # @return [Wx::ColourPropertyValue]
2111
+ # @return [Wx::PG::ColourPropertyValue]
2082
2112
  def get_val(pVariant=nil) end
2083
2113
  alias_method :val, :get_val
2084
2114
 
@@ -2102,7 +2132,7 @@ module Wx::PG
2102
2132
 
2103
2133
  protected
2104
2134
 
2105
- # @param v [Wx::ColourPropertyValue]
2135
+ # @param v [Wx::PG::ColourPropertyValue]
2106
2136
  # @return [Wx::Variant]
2107
2137
  def do_translate_val(v) end
2108
2138
 
@@ -2117,7 +2147,7 @@ module Wx::PG
2117
2147
  # @param label [String]
2118
2148
  # @param name [String]
2119
2149
  # @param value [Wx::Colour,String,Symbol]
2120
- # @return [ColourProperty]
2150
+ # @return [Wx::PG::ColourProperty]
2121
2151
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=Wx::WHITE) end
2122
2152
 
2123
2153
  # Converts property value into a text representation.
@@ -2145,7 +2175,7 @@ module Wx::PG
2145
2175
 
2146
2176
  protected
2147
2177
 
2148
- # @param v [Wx::ColourPropertyValue]
2178
+ # @param v [Wx::PG::ColourPropertyValue]
2149
2179
  # @return [Wx::Variant]
2150
2180
  def do_translate_val(v) end
2151
2181
 
@@ -2193,20 +2223,20 @@ module Wx::PG
2193
2223
  def colour_=(val); end
2194
2224
 
2195
2225
  # @overload initialize()
2196
- # @return [ColourPropertyValue]
2226
+ # @return [Wx::PG::ColourPropertyValue]
2197
2227
  # @overload initialize(v)
2198
- # @param v [Wx::ColourPropertyValue]
2199
- # @return [ColourPropertyValue]
2228
+ # @param v [Wx::PG::ColourPropertyValue]
2229
+ # @return [Wx::PG::ColourPropertyValue]
2200
2230
  # @overload initialize(colour)
2201
2231
  # @param colour [Wx::Colour,String,Symbol]
2202
- # @return [ColourPropertyValue]
2232
+ # @return [Wx::PG::ColourPropertyValue]
2203
2233
  # @overload initialize(type)
2204
2234
  # @param type [Integer]
2205
- # @return [ColourPropertyValue]
2235
+ # @return [Wx::PG::ColourPropertyValue]
2206
2236
  # @overload initialize(type, colour)
2207
2237
  # @param type [Integer]
2208
2238
  # @param colour [Wx::Colour,String,Symbol]
2209
- # @return [ColourPropertyValue]
2239
+ # @return [Wx::PG::ColourPropertyValue]
2210
2240
  def initialize(*args) end
2211
2241
 
2212
2242
  # @param type [Integer]