wxruby3 0.9.0-x64-mingw-ucrt → 0.9.2-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/aui/aui_tab_ctrl.rb +18 -0
- data/lib/wx/aui/auinotebook.rb +6 -2
- data/lib/wx/aui/require.rb +1 -0
- data/lib/wx/core/app.rb +2 -2
- data/lib/wx/core/collapsible_pane.rb +1 -1
- data/lib/wx/core/const.rb +83 -0
- data/lib/wx/core/controlwithitems.rb +8 -6
- data/lib/wx/core/events/evt_list.rb +24 -0
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/sizer.rb +11 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/window.rb +10 -0
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +47 -43
- data/lib/wx/doc/aui/auimanager.rb +16 -8
- data/lib/wx/doc/aui/auinotebook.rb +20 -5
- data/lib/wx/doc/clipboard.rb +11 -7
- data/lib/wx/doc/colour_dialog.rb +14 -10
- data/lib/wx/doc/const.rb +66 -66
- data/lib/wx/doc/controlwithitems.rb +17 -7
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/event.rb +0 -6
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/functions.rb +9 -9
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -2
- data/lib/wx/doc/gen/accelerator.rb +14 -5
- data/lib/wx/doc/gen/accessible.rb +35 -47
- data/lib/wx/doc/gen/activity_indicator.rb +6 -7
- data/lib/wx/doc/gen/animation.rb +7 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +8 -9
- data/lib/wx/doc/gen/any_button.rb +6 -1
- data/lib/wx/doc/gen/app.rb +7 -5
- data/lib/wx/doc/gen/app_traits.rb +27 -10
- data/lib/wx/doc/gen/art_provider.rb +20 -8
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +6 -3
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +11 -7
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +3 -4
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -2
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +8 -3
- data/lib/wx/doc/gen/aui/aui_notebook.rb +14 -8
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +9 -2
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +9 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -8
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +1 -1
- data/lib/wx/doc/gen/aui/event_list.rb +164 -160
- data/lib/wx/doc/gen/banner_window.rb +3 -3
- data/lib/wx/doc/gen/bitmap.rb +34 -17
- data/lib/wx/doc/gen/bitmap_button.rb +13 -10
- data/lib/wx/doc/gen/bitmap_combo_box.rb +16 -12
- data/lib/wx/doc/gen/book_ctrl_base.rb +16 -4
- data/lib/wx/doc/gen/book_ctrl_event.rb +7 -3
- data/lib/wx/doc/gen/box_sizer.rb +0 -1
- data/lib/wx/doc/gen/brush.rb +5 -2
- data/lib/wx/doc/gen/busy_info.rb +2 -2
- data/lib/wx/doc/gen/button.rb +25 -13
- data/lib/wx/doc/gen/calculate_layout_event.rb +1 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +18 -15
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/calendar_event.rb +4 -3
- data/lib/wx/doc/gen/caret.rb +0 -1
- data/lib/wx/doc/gen/check_box.rb +9 -9
- data/lib/wx/doc/gen/check_list_box.rb +8 -9
- data/lib/wx/doc/gen/choice.rb +18 -11
- data/lib/wx/doc/gen/choicebook.rb +6 -7
- data/lib/wx/doc/gen/client_dc.rb +5 -2
- data/lib/wx/doc/gen/clipboard.rb +7 -3
- data/lib/wx/doc/gen/collapsible_pane.rb +8 -9
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -3
- data/lib/wx/doc/gen/colour.rb +8 -4
- data/lib/wx/doc/gen/colour_dialog.rb +6 -8
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/colour_picker_event.rb +4 -5
- data/lib/wx/doc/gen/combo_box.rb +20 -17
- data/lib/wx/doc/gen/combo_ctrl.rb +100 -37
- data/lib/wx/doc/gen/command_link_button.rb +6 -7
- data/lib/wx/doc/gen/context_help_button.rb +7 -3
- data/lib/wx/doc/gen/control.rb +12 -10
- data/lib/wx/doc/gen/control_with_items.rb +0 -1
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/cursor.rb +6 -8
- data/lib/wx/doc/gen/data_format.rb +6 -1
- data/lib/wx/doc/gen/data_object.rb +16 -14
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +14 -10
- data/lib/wx/doc/gen/dc.rb +155 -37
- data/lib/wx/doc/gen/defs.rb +54 -54
- data/lib/wx/doc/gen/dial_up_event.rb +41 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +137 -0
- data/lib/wx/doc/gen/dialog.rb +35 -15
- data/lib/wx/doc/gen/dir_dialog.rb +17 -5
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/drag_drop.rb +11 -10
- data/lib/wx/doc/gen/drag_image.rb +6 -2
- data/lib/wx/doc/gen/editable_list_box.rb +4 -4
- data/lib/wx/doc/gen/event.rb +42 -20
- data/lib/wx/doc/gen/event_blocker.rb +1 -3
- data/lib/wx/doc/gen/event_list.rb +1656 -1624
- data/lib/wx/doc/gen/events.rb +170 -181
- data/lib/wx/doc/gen/evt_handler.rb +11 -3
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_ctrl.rb +209 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +79 -0
- data/lib/wx/doc/gen/file_dialog.rb +32 -15
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +7 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +2 -3
- data/lib/wx/doc/gen/file_dir_picker_event.rb +3 -4
- data/lib/wx/doc/gen/file_picker_ctrl.rb +10 -11
- data/lib/wx/doc/gen/file_system.rb +38 -15
- data/lib/wx/doc/gen/find_dialog_event.rb +5 -4
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/font.rb +31 -20
- data/lib/wx/doc/gen/font_data.rb +3 -4
- data/lib/wx/doc/gen/font_dialog.rb +1 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -9
- data/lib/wx/doc/gen/font_picker_event.rb +2 -3
- data/lib/wx/doc/gen/frame.rb +60 -19
- data/lib/wx/doc/gen/fs_file.rb +17 -10
- data/lib/wx/doc/gen/gauge.rb +13 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +0 -1
- data/lib/wx/doc/gen/gcdc.rb +1 -2
- data/lib/wx/doc/gen/gdi_common.rb +30 -11
- data/lib/wx/doc/gen/gdi_object.rb +0 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +8 -9
- data/lib/wx/doc/gen/graphics_context.rb +59 -12
- data/lib/wx/doc/gen/graphics_object.rb +11 -6
- data/lib/wx/doc/gen/grid/event_list.rb +168 -164
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +29 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_size_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_string_table.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -6
- data/lib/wx/doc/gen/grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +2 -4
- data/lib/wx/doc/gen/header_ctrl.rb +7 -14
- data/lib/wx/doc/gen/header_ctrl_event.rb +1 -3
- data/lib/wx/doc/gen/help_controller.rb +42 -3
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/event_list.rb +41 -37
- data/lib/wx/doc/gen/html/html_cell.rb +23 -6
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +8 -3
- data/lib/wx/doc/gen/html/html_help_controller.rb +47 -2
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -1
- data/lib/wx/doc/gen/html/html_help_window.rb +1 -1
- data/lib/wx/doc/gen/html/html_link_event.rb +2 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +10 -12
- data/lib/wx/doc/gen/html/html_printout.rb +1 -2
- data/lib/wx/doc/gen/html/html_window.rb +13 -7
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +9 -9
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -3
- data/lib/wx/doc/gen/icon.rb +5 -29
- data/lib/wx/doc/gen/icon_location.rb +0 -1
- data/lib/wx/doc/gen/image.rb +83 -17
- data/lib/wx/doc/gen/image_list.rb +15 -6
- data/lib/wx/doc/gen/info_bar.rb +2 -2
- data/lib/wx/doc/gen/keyboard_state.rb +0 -1
- data/lib/wx/doc/gen/list_box.rb +33 -21
- data/lib/wx/doc/gen/list_ctrl.rb +79 -32
- data/lib/wx/doc/gen/list_event.rb +3 -4
- data/lib/wx/doc/gen/listbook.rb +6 -7
- data/lib/wx/doc/gen/locale.rb +46 -4
- data/lib/wx/doc/gen/log.rb +16 -12
- data/lib/wx/doc/gen/mdi_client_window.rb +8 -2
- data/lib/wx/doc/gen/mdi_frame.rb +32 -11
- data/lib/wx/doc/gen/media_ctrl.rb +28 -20
- data/lib/wx/doc/gen/media_event.rb +5 -4
- data/lib/wx/doc/gen/memory_dc.rb +6 -6
- data/lib/wx/doc/gen/menu.rb +37 -23
- data/lib/wx/doc/gen/menu_bar.rb +52 -12
- data/lib/wx/doc/gen/menu_item.rb +117 -95
- data/lib/wx/doc/gen/message_dialog.rb +7 -8
- data/lib/wx/doc/gen/mini_frame.rb +13 -7
- data/lib/wx/doc/gen/mirror_dc.rb +0 -2
- data/lib/wx/doc/gen/mouse_state.rb +0 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/non_owned_window.rb +1 -1
- data/lib/wx/doc/gen/notebook.rb +19 -11
- data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/object.rb +0 -1
- data/lib/wx/doc/gen/paint_dc.rb +0 -1
- data/lib/wx/doc/gen/palette.rb +0 -1
- data/lib/wx/doc/gen/panel.rb +19 -10
- data/lib/wx/doc/gen/pen.rb +17 -8
- data/lib/wx/doc/gen/pg/event_list.rb +97 -93
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +9 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +8 -5
- data/lib/wx/doc/gen/pg/pg_editor.rb +115 -16
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +1 -2
- data/lib/wx/doc/gen/pg/pg_properties.rb +515 -83
- data/lib/wx/doc/gen/pg/pg_property.rb +296 -69
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +9 -4
- data/lib/wx/doc/gen/pg/property_grid.rb +83 -22
- data/lib/wx/doc/gen/pg/property_grid_event.rb +31 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +212 -34
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +42 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +26 -8
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +13 -4
- data/lib/wx/doc/gen/picker_base.rb +12 -5
- data/lib/wx/doc/gen/platform_info.rb +4 -9
- data/lib/wx/doc/gen/popup_window.rb +2 -5
- data/lib/wx/doc/gen/progress_dialog.rb +1 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +15 -5
- data/lib/wx/doc/gen/prt/event_list.rb +8 -4
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +2 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +4 -1
- data/lib/wx/doc/gen/prt/print_data.rb +4 -3
- data/lib/wx/doc/gen/prt/print_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +50 -11
- data/lib/wx/doc/gen/prt/printer_dc.rb +1 -1
- data/lib/wx/doc/gen/query_layout_info_event.rb +1 -3
- data/lib/wx/doc/gen/radio_box.rb +13 -14
- data/lib/wx/doc/gen/radio_button.rb +15 -11
- data/lib/wx/doc/gen/rbn/event_list.rb +127 -123
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -3
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +3 -4
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +18 -6
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +1 -2
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +5 -4
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +3 -4
- data/lib/wx/doc/gen/rearrange_list.rb +5 -6
- data/lib/wx/doc/gen/region.rb +75 -17
- data/lib/wx/doc/gen/region_iterator.rb +0 -1
- data/lib/wx/doc/gen/rtc/event_list.rb +116 -112
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -9
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -2
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +3 -6
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +12 -9
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +3 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +3 -5
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +4 -5
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -3
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +2 -4
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +28 -23
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +7 -11
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +14 -14
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -4
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +3 -4
- data/lib/wx/doc/gen/sash_event.rb +12 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -6
- data/lib/wx/doc/gen/sash_window.rb +4 -5
- data/lib/wx/doc/gen/screen_dc.rb +0 -1
- data/lib/wx/doc/gen/scroll_bar.rb +21 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +34 -12
- data/lib/wx/doc/gen/scrolled_control.rb +34 -12
- data/lib/wx/doc/gen/scrolled_window.rb +34 -12
- data/lib/wx/doc/gen/search_ctrl.rb +10 -11
- data/lib/wx/doc/gen/simplebook.rb +1 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/sizer.rb +12 -7
- data/lib/wx/doc/gen/sizer_item.rb +5 -2
- data/lib/wx/doc/gen/slider.rb +29 -19
- data/lib/wx/doc/gen/spin_button.rb +16 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +24 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +6 -7
- data/lib/wx/doc/gen/spin_double_event.rb +3 -4
- data/lib/wx/doc/gen/spin_event.rb +3 -3
- data/lib/wx/doc/gen/splash_screen.rb +1 -2
- data/lib/wx/doc/gen/splitter_event.rb +3 -4
- data/lib/wx/doc/gen/splitter_window.rb +78 -20
- data/lib/wx/doc/gen/static_bitmap.rb +12 -7
- data/lib/wx/doc/gen/static_box.rb +13 -11
- data/lib/wx/doc/gen/static_box_sizer.rb +0 -2
- data/lib/wx/doc/gen/static_line.rb +5 -6
- data/lib/wx/doc/gen/static_text.rb +7 -8
- data/lib/wx/doc/gen/status_bar.rb +21 -11
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +41 -15
- data/lib/wx/doc/gen/stc/styled_text_event.rb +5 -6
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +7 -8
- data/lib/wx/doc/gen/system_options.rb +6 -6
- data/lib/wx/doc/gen/system_settings.rb +2 -3
- data/lib/wx/doc/gen/task_bar_button.rb +312 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +21 -8
- data/lib/wx/doc/gen/task_bar_icon_event.rb +4 -3
- data/lib/wx/doc/gen/text_attr.rb +20 -5
- data/lib/wx/doc/gen/text_ctrl.rb +92 -27
- data/lib/wx/doc/gen/text_entry.rb +31 -11
- data/lib/wx/doc/gen/text_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/text_validator.rb +43 -10
- data/lib/wx/doc/gen/time_picker_ctrl.rb +7 -8
- data/lib/wx/doc/gen/timer.rb +6 -2
- data/lib/wx/doc/gen/timer_event.rb +1 -2
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +7 -8
- data/lib/wx/doc/gen/tool_bar.rb +99 -26
- data/lib/wx/doc/gen/tool_tip.rb +35 -5
- data/lib/wx/doc/gen/toolbook.rb +3 -4
- data/lib/wx/doc/gen/top_level_window.rb +71 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +42 -18
- data/lib/wx/doc/gen/tree_event.rb +3 -4
- data/lib/wx/doc/gen/treebook.rb +7 -4
- data/lib/wx/doc/gen/ui_action_simulator.rb +6 -2
- data/lib/wx/doc/gen/utils.rb +39 -7
- data/lib/wx/doc/gen/v_list_box.rb +8 -4
- data/lib/wx/doc/gen/v_scrolled_window.rb +8 -6
- data/lib/wx/doc/gen/validator.rb +1 -1
- data/lib/wx/doc/gen/variant.rb +1 -0
- data/lib/wx/doc/gen/window.rb +200 -50
- data/lib/wx/doc/gen/window_dc.rb +0 -1
- data/lib/wx/doc/gen/window_disabler.rb +5 -2
- data/lib/wx/doc/gen/with_images.rb +6 -1
- data/lib/wx/doc/gen/wizard.rb +4 -4
- data/lib/wx/doc/gen/wizard_event.rb +3 -4
- data/lib/wx/doc/gen/wizard_page.rb +2 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +0 -1
- data/lib/wx/doc/gen/xml_node.rb +19 -4
- data/lib/wx/doc/gen/xml_resource.rb +18 -5
- data/lib/wx/doc/graphics_context.rb +1 -0
- data/lib/wx/doc/grid/grid.rb +22 -1
- data/lib/wx/doc/help_controller.rb +11 -7
- data/lib/wx/doc/html/html_help_controller.rb +12 -4
- data/lib/wx/doc/list_ctrl.rb +33 -29
- data/lib/wx/doc/menu.rb +20 -0
- data/lib/wx/doc/notebook.rb +21 -0
- data/lib/wx/doc/pg/events.rb +13 -9
- data/lib/wx/doc/pg/pg_property.rb +18 -0
- data/lib/wx/doc/progress_dialog.rb +36 -32
- data/lib/wx/doc/prt/page_setup_dialog.rb +20 -12
- data/lib/wx/doc/prt/print_data.rb +13 -5
- data/lib/wx/doc/prt/print_dialog.rb +31 -23
- data/lib/wx/doc/prt/printer.rb +20 -12
- data/lib/wx/doc/radio_box.rb +19 -15
- data/lib/wx/doc/rbn/ribbon_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_gallery.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +13 -5
- data/lib/wx/doc/region_iterator.rb +32 -28
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +24 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +27 -19
- data/lib/wx/doc/rtc/richtext_printing.rb +17 -9
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +17 -9
- data/lib/wx/doc/sizer.rb +20 -0
- data/lib/wx/doc/stc/styled_text_ctrl.rb +24 -0
- data/lib/wx/doc/stream.rb +39 -35
- data/lib/wx/doc/system_settings.rb +30 -26
- data/lib/wx/doc/text_validator.rb +12 -8
- data/lib/wx/doc/textctrl.rb +16 -0
- data/lib/wx/doc/tree_ctrl.rb +95 -0
- data/lib/wx/doc/treebook.rb +9 -5
- data/lib/wx/doc/v_list_box.rb +9 -5
- data/lib/wx/doc/variant.rb +164 -160
- data/lib/wx/doc/window.rb +57 -42
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/keyword_defs.rb +43 -6
- data/lib/wx/pg/pg_property.rb +22 -0
- data/lib/wx/rtc/require.rb +3 -0
- data/lib/wx/rtc/rich_text_composite_object.rb +25 -0
- data/lib/wx/rtc/rich_text_ctrl.rb +25 -0
- data/lib/wx/rtc/rich_text_paragraph.rb +25 -0
- data/lib/wx/stc/require.rb +1 -0
- data/lib/wx/stc/styled_text_ctrl.rb +25 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/lib/config/linux.rb +0 -3
- data/rakelib/lib/config/macosx.rb +1 -1
- data/rakelib/lib/config/mingw.rb +1 -1
- data/rakelib/lib/config/unixish.rb +1 -1
- data/rakelib/lib/config.rb +14 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +74 -2
- data/rakelib/yard/templates/default/fulldoc/html/full_list.erb +38 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +39 -0
- data/rakelib/yard/templates/default/tags/html/wxrb_require.erb +10 -0
- data/rakelib/yard/templates/default/tags/setup.rb +16 -0
- data/rakelib/yard/yard-custom-templates.rb +3 -0
- data/samples/text/richtext.rb +0 -30
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_app_exit_exception.rb +36 -0
- data/tests/test_app_init_exception.rb +20 -0
- data/tests/test_book_controls.rb +29 -0
- data/tests/test_exceptions.rb +41 -0
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_media_ctrl.rb +38 -0
- data/tests/test_menu.rb +69 -0
- data/tests/test_pg.rb +27 -0
- data/tests/test_richtext.rb +45 -0
- data/tests/test_sizer.rb +59 -0
- data/tests/test_std_controls.rb +78 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +38 -3
@@ -34,6 +34,7 @@ module Wx::PG
|
|
34
34
|
#
|
35
35
|
#
|
36
36
|
#
|
37
|
+
# @wxrb_require USE_PROPGRID
|
37
38
|
class PG_GETPROPERTYVALUES_FLAGS < Wx::Enum
|
38
39
|
|
39
40
|
# Flag for {Wx::PG::PropertyGridInterface::SetProperty}* functions, {Wx::PG::PropertyGridInterface#hide_property}, etc.
|
@@ -70,6 +71,7 @@ module Wx::PG
|
|
70
71
|
#
|
71
72
|
#
|
72
73
|
#
|
74
|
+
# @wxrb_require USE_PROPGRID
|
73
75
|
class PG_MISC_ARG_FLAGS < Wx::Enum
|
74
76
|
|
75
77
|
# Get/Store full value instead of displayed value.
|
@@ -110,6 +112,7 @@ module Wx::PG
|
|
110
112
|
#
|
111
113
|
#
|
112
114
|
#
|
115
|
+
# @wxrb_require USE_PROPGRID
|
113
116
|
class PG_SETVALUE_FLAGS < Wx::Enum
|
114
117
|
|
115
118
|
#
|
@@ -222,8 +225,9 @@ module Wx::PG
|
|
222
225
|
|
223
226
|
#
|
224
227
|
#
|
225
|
-
#
|
228
|
+
# ## wxPGProperty Flags
|
226
229
|
#
|
230
|
+
# @wxrb_require USE_PROPGRID
|
227
231
|
class PGPropertyFlags < Wx::Enum
|
228
232
|
|
229
233
|
# Indicates bold font.
|
@@ -315,7 +319,7 @@ module Wx::PG
|
|
315
319
|
#
|
316
320
|
# - Creating Custom Properties
|
317
321
|
#
|
318
|
-
#
|
322
|
+
# ## Supplied Ready-to-use Property Classes
|
319
323
|
#
|
320
324
|
# Here is a list and short description of supplied fully-functional property classes. They are located in either {Wx::props.h} or {Wx::advprops.h}.
|
321
325
|
#
|
@@ -359,28 +363,65 @@ module Wx::PG
|
|
359
363
|
#
|
360
364
|
# - {Wx::PG::UIntProperty}
|
361
365
|
#
|
362
|
-
#
|
366
|
+
# ## wxPropertyCategory
|
363
367
|
#
|
364
368
|
# Not an actual property per se, but a header for a group of properties. Regardless inherits from {Wx::PG::PGProperty}, and supports displaying 'labels' for columns other than the first one. Easiest way to set category's label for second column is to call {Wx::PG::PGProperty#set_value} with string argument.
|
365
369
|
#
|
366
|
-
#
|
370
|
+
# ## wxStringProperty
|
367
371
|
#
|
368
372
|
# Simple string property.
|
369
373
|
# Supported special attributes:
|
370
374
|
#
|
371
375
|
# - {Wx::PG::PG_STRING_PASSWORD}: Set to true in order to echo value as asterisks and to use {Wx::TE_PASSWORD} on the editor ({Wx::TextCtrl}).
|
372
376
|
# - {Wx::PG::PG_ATTR_AUTOCOMPLETE}: Set to true to enable auto-completion (use a {Wx::ArrayString} value), and is also supported by any property that happens to use a {Wx::TextCtrl}-based editor.
|
373
|
-
# {Wx::PG::StringProperty} has a special trait: if it has value of "<composed>", and also has child properties, then its displayed value becomes composition of child property values, similar as with {Wx::PG::FontProperty}, for instance.
|
374
377
|
#
|
375
|
-
#
|
378
|
+
# <div class="wxrb-remark">
|
379
|
+
# <b>Remark:</b>
|
380
|
+
# <p>{Wx::PG::StringProperty} has a special trait: if it has value of "<composed>", and also has child properties, then its displayed value becomes composition of child property values, similar as with {Wx::PG::FontProperty}, for instance.
|
381
|
+
# </p>
|
382
|
+
# </div>>
|
383
|
+
#
|
384
|
+
# ## wxIntProperty
|
385
|
+
#
|
386
|
+
# It derives from {Wx::PG::NumericProperty} and displays value as a signed long integer. {Wx::PG::IntProperty} seamlessly supports 64-bit integers (i.e. {Wx::LongLong}) on overflow. To safely convert variant to integer, use code like this:
|
387
|
+
#
|
388
|
+
# ```
|
389
|
+
# wxLongLong ll;
|
390
|
+
# ll << property->GetValue();
|
391
|
+
#
|
392
|
+
# // or
|
393
|
+
# wxLongLong ll = propertyGrid->GetPropertyValueAsLong(property);
|
394
|
+
# ```
|
395
|
+
#
|
396
|
+
# Getting 64-bit value:
|
397
|
+
# ```
|
398
|
+
# wxLongLong_t value = pg->GetPropertyValueAsLongLong();
|
399
|
+
#
|
400
|
+
# // or
|
401
|
+
#
|
402
|
+
# wxLongLong value;
|
403
|
+
# wxVariant variant = property->GetValue();
|
404
|
+
# if ( variant.IsType(wxPG_VARIANT_TYPE_LONGLONG) )
|
405
|
+
# value = variant.GetLongLong();
|
406
|
+
# else
|
407
|
+
# value = variant.GetLong();
|
408
|
+
# ```
|
409
|
+
#
|
410
|
+
# Setting 64-bit value:
|
411
|
+
# ```
|
412
|
+
# pg->SetPropertyValue(longLongVal);
|
413
|
+
#
|
414
|
+
# // or
|
415
|
+
#
|
416
|
+
# property->SetValue(WXVARIANT(longLongVal));
|
417
|
+
# ```
|
376
418
|
#
|
377
|
-
# It derives from {Wx::PG::NumericProperty} and displays value as a signed long integer.
|
378
419
|
# Supported special attributes:
|
379
|
-
#
|
420
|
+
#
|
380
421
|
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX} to specify acceptable value range.
|
381
422
|
# - {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
|
382
423
|
#
|
383
|
-
#
|
424
|
+
# ## wxUIntProperty
|
384
425
|
#
|
385
426
|
# Like {Wx::PG::IntProperty}, but displays value as unsigned int. To set the prefix used globally, manipulate {Wx::PG::PG_UINT_PREFIX} string attribute. To set the globally used base, manipulate {Wx::PG::PG_UINT_BASE} int attribute. Regardless of current prefix, understands (hex) values starting with both "0x" and "$" (apart from edit mode). Like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty} seamlessly supports 64-bit unsigned integers (i.e. {Wx::ULongLong}). Same {Wx::Variant} safety rules apply.
|
386
427
|
# Supported special attributes:
|
@@ -389,9 +430,14 @@ module Wx::PG
|
|
389
430
|
# - {Wx::PG::PG_UINT_BASE}: Defines 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.
|
390
431
|
# - {Wx::PG::PG_UINT_PREFIX}: Defines displayed 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.
|
391
432
|
# - {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
|
392
|
-
# For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
|
393
433
|
#
|
394
|
-
#
|
434
|
+
# <div class="wxrb-remark">
|
435
|
+
# <b>Remark:</b>
|
436
|
+
# <p>For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
|
437
|
+
# </p>
|
438
|
+
# </div>>
|
439
|
+
#
|
440
|
+
# ## wxFloatProperty
|
395
441
|
#
|
396
442
|
# Like {Wx::PG::StringProperty}, but converts text to a double-precision floating point. Default float-to-text precision is 6 decimals, but this can be changed by modifying {Wx::PG::PG_FLOAT_PRECISION} attribute.
|
397
443
|
# Note that when displaying the value, sign is omitted if the resulting textual representation is effectively zero (for example, -0.0001 with precision of 3 will become 0.0 instead of -0.0). This behaviour is unlike what C standard library does, but should result in better end-user experience in almost all cases.
|
@@ -401,7 +447,7 @@ module Wx::PG
|
|
401
447
|
# - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means shortest floating-point 6-digit representation.
|
402
448
|
# - {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
|
403
449
|
#
|
404
|
-
#
|
450
|
+
# ## wxBoolProperty
|
405
451
|
#
|
406
452
|
# Represents a boolean value. {Wx::Choice} is used as editor control, by the default. {Wx::PG::PG_BOOL_USE_CHECKBOX} attribute can be set to true in order to use check box instead.
|
407
453
|
# Supported special attributes:
|
@@ -409,7 +455,7 @@ module Wx::PG
|
|
409
455
|
# - {Wx::PG::PG_BOOL_USE_CHECKBOX}: If set to true uses check box editor instead of combo box.
|
410
456
|
# - {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: If set to true cycles combo box instead showing the list.
|
411
457
|
#
|
412
|
-
#
|
458
|
+
# ## wxLongStringProperty
|
413
459
|
#
|
414
460
|
# Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog. Note that in long string values, some control characters are escaped: tab is represented by "\t", line break by "\n", carriage return by "\r" and backslash character by "\\". If another character is preceded
|
415
461
|
# by backslash, the backslash is skipped.
|
@@ -450,14 +496,14 @@ module Wx::PG
|
|
450
496
|
# Supported special attributes:
|
451
497
|
# - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the text editor dialog.
|
452
498
|
#
|
453
|
-
#
|
499
|
+
# ## {Wx::PG::DirProperty}
|
454
500
|
#
|
455
501
|
# Like {Wx::PG::LongStringProperty}, but the button triggers dir selector instead.
|
456
502
|
#
|
457
503
|
# Supported special attributes:
|
458
504
|
# - ::{Wx::PG::PG_DIALOG_TITLE}: Sets specific title for the dir selector.
|
459
505
|
#
|
460
|
-
#
|
506
|
+
# ## {Wx::PG::FileProperty}
|
461
507
|
#
|
462
508
|
# Like {Wx::PG::LongStringProperty}, but the button triggers file selector instead.
|
463
509
|
# Default wildcard is "All files..." but this can be changed by setting
|
@@ -473,12 +519,12 @@ module Wx::PG
|
|
473
519
|
# given path string.
|
474
520
|
# - ::{Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
|
475
521
|
#
|
476
|
-
#
|
522
|
+
# ## {Wx::PG::EnumProperty}
|
477
523
|
#
|
478
524
|
# Represents a single selection from a list of choices -
|
479
525
|
# {Wx::OwnerDrawnComboBox} is used to edit the value.
|
480
526
|
#
|
481
|
-
#
|
527
|
+
# ## {Wx::PG::FlagsProperty}
|
482
528
|
#
|
483
529
|
# Represents a bit set that fits in a long integer. {Wx::PG::BoolProperty} sub-
|
484
530
|
# properties are created for editing individual bits. Textctrl is created to
|
@@ -491,7 +537,7 @@ module Wx::PG
|
|
491
537
|
#
|
492
538
|
# {Wx::PG::FlagsProperty} supports the same attributes as {Wx::PG::BoolProperty}.
|
493
539
|
#
|
494
|
-
#
|
540
|
+
# ## {Wx::PG::ArrayStringProperty}
|
495
541
|
#
|
496
542
|
# Property that manages a list of strings. Allows editing of a list
|
497
543
|
# of strings in {Wx::TextCtrl} and in a separate dialog.
|
@@ -501,7 +547,7 @@ module Wx::PG
|
|
501
547
|
# - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
|
502
548
|
# Default is comma (',').
|
503
549
|
#
|
504
|
-
#
|
550
|
+
# ## {Wx::PG::DateProperty}
|
505
551
|
#
|
506
552
|
# Property representing {Wx::DateTime}. Default editor is DatePickerCtrl,
|
507
553
|
# although TextCtrl should work as well.
|
@@ -513,7 +559,7 @@ module Wx::PG
|
|
513
559
|
# Default is ::{Wx::DP_DEFAULT} | ::{Wx::DP_SHOWCENTURY}. Using ::{Wx::DP_ALLOWNONE}
|
514
560
|
# enables additional support for unspecified property value.
|
515
561
|
#
|
516
|
-
#
|
562
|
+
# ## {Wx::PG::EditEnumProperty}
|
517
563
|
#
|
518
564
|
# Represents a string that can be freely edited or selected from list of choices -
|
519
565
|
# custom combobox control is used to edit the value.
|
@@ -521,7 +567,7 @@ module Wx::PG
|
|
521
567
|
# Uses int value, similar to {Wx::PG::EnumProperty}, unless text entered by user is
|
522
568
|
# is not in choices (in which case string value is used).
|
523
569
|
#
|
524
|
-
#
|
570
|
+
# ## {Wx::PG::MultiChoiceProperty}
|
525
571
|
#
|
526
572
|
# Allows editing a multiple selection from a list of strings. This is
|
527
573
|
# property is pretty much built around concept of {Wx::MultiChoiceDialog}.
|
@@ -534,7 +580,7 @@ module Wx::PG
|
|
534
580
|
# is 2, then those strings will placed behind valid choices.
|
535
581
|
# - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
|
536
582
|
#
|
537
|
-
#
|
583
|
+
# ## {Wx::PG::ImageFileProperty}
|
538
584
|
#
|
539
585
|
# Property representing image file(name). Like {Wx::PG::FileProperty},
|
540
586
|
# but has thumbnail of the image in front of the filename
|
@@ -549,7 +595,7 @@ module Wx::PG
|
|
549
595
|
# - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
|
550
596
|
# - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
|
551
597
|
#
|
552
|
-
#
|
598
|
+
# ## wxColourProperty
|
553
599
|
#
|
554
600
|
# <b>Useful alternate editor:</b> Choice.
|
555
601
|
# Represents {Wx::Colour}. {Wx::Button} is used to trigger a colour picker dialog. There are various sub-classing opportunities with this class. See below in {Wx::PG::SystemColourProperty} section for details.
|
@@ -557,14 +603,14 @@ module Wx::PG
|
|
557
603
|
#
|
558
604
|
# - {Wx::PG::PG_COLOUR_HAS_ALPHA}: If set to true allows user to edit the alpha colour component.
|
559
605
|
#
|
560
|
-
#
|
606
|
+
# ## wxFontProperty
|
561
607
|
#
|
562
608
|
# Represents {Wx::Font}. Various sub-properties are used to edit individual subvalues.
|
563
609
|
# Supported special attributes:
|
564
610
|
#
|
565
611
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog.
|
566
612
|
#
|
567
|
-
#
|
613
|
+
# ## wxSystemColourProperty
|
568
614
|
#
|
569
615
|
# Represents {Wx::Colour} and a system colour index. {Wx::Choice} is used to edit the value. Drop-down list has color images. Note that value type is {Wx::PG::ColourPropertyValue} instead of {Wx::Colour} (which {Wx::PG::ColourProperty} uses).
|
570
616
|
#
|
@@ -587,11 +633,11 @@ module Wx::PG
|
|
587
633
|
# def get_colour(index) end
|
588
634
|
# ```
|
589
635
|
#
|
590
|
-
#
|
636
|
+
# ## wxCursorProperty
|
591
637
|
#
|
592
|
-
# Represents a {Wx::Cursor}. {Wx::Choice} is used to edit the value. Drop-down list has cursor images under some (
|
638
|
+
# Represents a {Wx::Cursor}. {Wx::Choice} is used to edit the value. Drop-down list has cursor images under some (WXMSW) platforms.
|
593
639
|
#
|
594
|
-
#
|
640
|
+
# ## Creating Custom Properties
|
595
641
|
#
|
596
642
|
# New properties can be created by subclassing {Wx::PG::PGProperty} or one of the provided property classes, and (re)implementing necessary member functions. Below, each virtual member function has ample documentation about its purpose and any odd details which to keep in mind.
|
597
643
|
# Here is a very simple 'template' code:
|
@@ -629,8 +675,6 @@ module Wx::PG
|
|
629
675
|
# end
|
630
676
|
# ```
|
631
677
|
#
|
632
|
-
# ===
|
633
|
-
#
|
634
678
|
# Category: {Wx::PG::PropertyGrid}
|
635
679
|
# @see wxPropertyGrid Property Attribute Identifiers
|
636
680
|
#
|
@@ -647,12 +691,20 @@ module Wx::PG
|
|
647
691
|
# @see wxPropertyGrid Property Attribute Identifiers
|
648
692
|
#
|
649
693
|
#
|
694
|
+
# @wxrb_require USE_PROPGRID
|
650
695
|
class PGProperty < Object
|
651
696
|
|
652
697
|
# This virtual function is called after m_value has been set.
|
698
|
+
# <div class="wxrb-remark">
|
699
|
+
# <b>Remark:</b>
|
700
|
+
# <p>
|
701
|
+
#
|
653
702
|
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::PGProperty#on_set_value} will not be called.
|
654
703
|
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::PGProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
655
|
-
# - Default implementation does nothing.
|
704
|
+
# - Default implementation does nothing.
|
705
|
+
#
|
706
|
+
# </p>
|
707
|
+
# </div>>
|
656
708
|
# @return [void]
|
657
709
|
def on_set_value; end
|
658
710
|
|
@@ -663,7 +715,14 @@ module Wx::PG
|
|
663
715
|
# Implement this function in derived class to check the value.
|
664
716
|
# Return true if it is ok. Returning false prevents property change events from occurring.
|
665
717
|
#
|
666
|
-
# -
|
718
|
+
# <div class="wxrb-remark">
|
719
|
+
# <b>Remark:</b>
|
720
|
+
# <p>
|
721
|
+
#
|
722
|
+
# - Default implementation always returns true.
|
723
|
+
#
|
724
|
+
# </p>
|
725
|
+
# </div>>
|
667
726
|
# @param value [Wx::Variant]
|
668
727
|
# @param validationInfo [Wx::PG::PGValidationInfo]
|
669
728
|
# @return [Boolean]
|
@@ -672,7 +731,11 @@ module Wx::PG
|
|
672
731
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
673
732
|
# Returns true if resulting {Wx::Variant} value was different.
|
674
733
|
#
|
675
|
-
#
|
734
|
+
# <div class="wxrb-remark">
|
735
|
+
# <b>Remark:</b>
|
736
|
+
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
737
|
+
# </p>
|
738
|
+
# </div>>
|
676
739
|
#
|
677
740
|
# You might want to take into account that m_value is Null variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
|
678
741
|
# @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.
|
@@ -684,10 +747,17 @@ module Wx::PG
|
|
684
747
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
685
748
|
# Returns true if resulting {Wx::Variant} value was different.
|
686
749
|
#
|
750
|
+
# <div class="wxrb-remark">
|
751
|
+
# <b>Remark:</b>
|
752
|
+
# <p>
|
753
|
+
#
|
687
754
|
# - 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.
|
688
755
|
# - Default implementation simply assign given int to m_value.
|
689
756
|
# - 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.
|
690
|
-
# - 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).
|
757
|
+
# - 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).
|
758
|
+
#
|
759
|
+
# </p>
|
760
|
+
# </div>>
|
691
761
|
# @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.
|
692
762
|
# @param number [Integer] Integer to be translated into variant.
|
693
763
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
@@ -695,7 +765,11 @@ module Wx::PG
|
|
695
765
|
def int_to_value(variant, number, argFlags=0) end
|
696
766
|
|
697
767
|
# Converts property value into a text representation.
|
698
|
-
#
|
768
|
+
# <div class="wxrb-remark">
|
769
|
+
# <b>Remark:</b>
|
770
|
+
# <p>Default implementation calls {Wx::PG::PGProperty#generate_composed_value}.
|
771
|
+
# </p>
|
772
|
+
# </div>>
|
699
773
|
# @param value [Wx::Variant] Value to be converted.
|
700
774
|
# @param argFlags [Integer] If 0 (default value), then displayed string is returned. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable string value instead of displayable. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_EDITABLE_VALUE} is set, returns string value that must be editable in textctrl. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, returns text that is appropriate to display as a part of string property's composite text representation.
|
701
775
|
# @return [String]
|
@@ -724,9 +798,16 @@ module Wx::PG
|
|
724
798
|
# Returns size of the custom painted image in front of property.
|
725
799
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
726
800
|
#
|
801
|
+
# <div class="wxrb-remark">
|
802
|
+
# <b>Remark:</b>
|
803
|
+
# <p>
|
804
|
+
#
|
727
805
|
# - Default behaviour is to return {size(0,0)}, which means no image.
|
728
806
|
# - Default image width or height is indicated with dimension -1.
|
729
|
-
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
807
|
+
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
808
|
+
#
|
809
|
+
# </p>
|
810
|
+
# </div>>
|
730
811
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
731
812
|
# @return [Wx::Size]
|
732
813
|
def on_measure_image(item=-1) end
|
@@ -740,7 +821,14 @@ module Wx::PG
|
|
740
821
|
#
|
741
822
|
# return true if any changes in value should be reported.
|
742
823
|
#
|
743
|
-
# -
|
824
|
+
# <div class="wxrb-remark">
|
825
|
+
# <b>Remark:</b>
|
826
|
+
# <p>
|
827
|
+
#
|
828
|
+
# - 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.
|
829
|
+
#
|
830
|
+
# </p>
|
831
|
+
# </div>>
|
744
832
|
# @param propgrid [Wx::PG::PropertyGrid]
|
745
833
|
# @param wnd_primary [Wx::Window]
|
746
834
|
# @param event [Wx::Event]
|
@@ -784,7 +872,7 @@ module Wx::PG
|
|
784
872
|
def do_get_editor_class; end
|
785
873
|
|
786
874
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
787
|
-
# Setting validator explicitly via
|
875
|
+
# Setting validator explicitly via \#set_property_validator will override this.
|
788
876
|
# In most situations, code like this should work well:
|
789
877
|
#
|
790
878
|
# ```ruby
|
@@ -807,7 +895,11 @@ module Wx::PG
|
|
807
895
|
# end
|
808
896
|
# ```
|
809
897
|
#
|
810
|
-
#
|
898
|
+
# <div class="wxrb-remark">
|
899
|
+
# <b>Remark:</b>
|
900
|
+
# <p>You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
901
|
+
# </p>
|
902
|
+
# </div>>
|
811
903
|
# @return [Wx::Validator]
|
812
904
|
def do_get_validator; end
|
813
905
|
|
@@ -815,10 +907,17 @@ module Wx::PG
|
|
815
907
|
# If property's {Wx::PG::PGProperty#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::PGProperty#on_measure_image} returned higher height than row height).
|
816
908
|
# NOTE: Following applies when {Wx::PG::PGProperty#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.
|
817
909
|
#
|
910
|
+
# <div class="wxrb-remark">
|
911
|
+
# <b>Remark:</b>
|
912
|
+
# <p>
|
913
|
+
#
|
818
914
|
# - 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.
|
819
915
|
# - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
|
820
916
|
# - 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.
|
821
917
|
# - 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.
|
918
|
+
#
|
919
|
+
# </p>
|
920
|
+
# </div>>
|
822
921
|
# @see Wx::PG::PGProperty#value_to_string
|
823
922
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
824
923
|
# @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).
|
@@ -841,7 +940,11 @@ module Wx::PG
|
|
841
940
|
# Reimplement this member function to add special handling for attributes of this property.
|
842
941
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
843
942
|
#
|
844
|
-
#
|
943
|
+
# <div class="wxrb-remark">
|
944
|
+
# <b>Remark:</b>
|
945
|
+
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
946
|
+
# </p>
|
947
|
+
# </div>>
|
845
948
|
# @param name [String]
|
846
949
|
# @param value [Wx::Variant]
|
847
950
|
# @return [Boolean]
|
@@ -861,7 +964,11 @@ module Wx::PG
|
|
861
964
|
alias_method :editor_dialog, :get_editor_dialog
|
862
965
|
|
863
966
|
# Called whenever validation has failed with given pending value.
|
864
|
-
#
|
967
|
+
# <div class="wxrb-remark">
|
968
|
+
# <b>Remark:</b>
|
969
|
+
# <p>If you implement this in your custom property class, please remember to call the base implementation as well, since they may use it to revert property into pre-change state.
|
970
|
+
# </p>
|
971
|
+
# </div>>
|
865
972
|
# @param pendingValue [Wx::Variant]
|
866
973
|
# @return [void]
|
867
974
|
def on_validation_failure(pendingValue) end
|
@@ -889,7 +996,11 @@ module Wx::PG
|
|
889
996
|
# regular) children to a property.
|
890
997
|
# Appended childProperty.
|
891
998
|
#
|
892
|
-
#
|
999
|
+
# <div class="wxrb-remark">
|
1000
|
+
# <b>Remark:</b>
|
1001
|
+
# <p>{Wx::PG::PropertyGrid} is not automatically refreshed by this function.
|
1002
|
+
# </p>
|
1003
|
+
# </div>>
|
893
1004
|
# @see Wx::PG::PGProperty#insert_child
|
894
1005
|
# @see Wx::PG::PGProperty#add_private_child
|
895
1006
|
# @param childProperty [Wx::PG::PGProperty]
|
@@ -907,11 +1018,16 @@ module Wx::PG
|
|
907
1018
|
|
908
1019
|
# Sets or clears given property flag.
|
909
1020
|
# Mainly for internal use.
|
910
|
-
#
|
1021
|
+
#
|
1022
|
+
# <div class="wxrb-remark">
|
1023
|
+
# <b>Remark:</b>
|
1024
|
+
# <p>Setting a property flag never has any side-effect, and is intended almost exclusively for internal use. So, for example, if you want to disable a property, call
|
911
1025
|
# ```ruby
|
912
1026
|
# enable(false)
|
913
1027
|
# ```
|
914
1028
|
# instead of setting {Wx::PG::PGPropertyFlags::PG_PROP_DISABLED} flag.
|
1029
|
+
# </p>
|
1030
|
+
# </div>>
|
915
1031
|
# @see Wx::PG::PGProperty#has_flag
|
916
1032
|
# @see GetFlags()
|
917
1033
|
# @param flag [Wx::PGPropertyFlags]
|
@@ -953,13 +1069,22 @@ module Wx::PG
|
|
953
1069
|
|
954
1070
|
# @overload get_attribute(name)
|
955
1071
|
# Returns property attribute value, null variant if not found.
|
956
|
-
#
|
1072
|
+
# <div class="wxrb-remark">
|
1073
|
+
# <b>Remark:</b>
|
1074
|
+
# <p>For built-in attribute returns null variant if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
|
1075
|
+
# </p>
|
1076
|
+
# </div>>
|
957
1077
|
# @param name [String]
|
958
1078
|
# @return [Wx::Variant]
|
959
1079
|
# @overload get_attribute(name, defVal)
|
960
1080
|
# Returns named attribute, as string, if found.
|
961
1081
|
# Otherwise defVal is returned.
|
962
|
-
#
|
1082
|
+
#
|
1083
|
+
# <div class="wxrb-remark">
|
1084
|
+
# <b>Remark:</b>
|
1085
|
+
# <p>For built-in attribute returns defVal if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
|
1086
|
+
# </p>
|
1087
|
+
# </div>>
|
963
1088
|
# @param name [String]
|
964
1089
|
# @param defVal [String]
|
965
1090
|
# @return [String]
|
@@ -968,7 +1093,12 @@ module Wx::PG
|
|
968
1093
|
|
969
1094
|
# Returns named attribute, as long, if found.
|
970
1095
|
# Otherwise defVal is returned.
|
971
|
-
#
|
1096
|
+
#
|
1097
|
+
# <div class="wxrb-remark">
|
1098
|
+
# <b>Remark:</b>
|
1099
|
+
# <p>For built-in attribute returns defVal if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
|
1100
|
+
# </p>
|
1101
|
+
# </div>>
|
972
1102
|
# @param name [String]
|
973
1103
|
# @param defVal [Integer]
|
974
1104
|
# @return [Integer]
|
@@ -977,7 +1107,12 @@ module Wx::PG
|
|
977
1107
|
|
978
1108
|
# Returns named attribute, as double, if found.
|
979
1109
|
# Otherwise defVal is returned.
|
980
|
-
#
|
1110
|
+
#
|
1111
|
+
# <div class="wxrb-remark">
|
1112
|
+
# <b>Remark:</b>
|
1113
|
+
# <p>For built-in attribute returns defVal if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
|
1114
|
+
# </p>
|
1115
|
+
# </div>>
|
981
1116
|
# @param name [String]
|
982
1117
|
# @param defVal [Float]
|
983
1118
|
# @return [Float]
|
@@ -985,13 +1120,21 @@ module Wx::PG
|
|
985
1120
|
alias_method :attribute_as_double, :get_attribute_as_double
|
986
1121
|
|
987
1122
|
# Returns map-like storage of property's attributes.
|
988
|
-
#
|
1123
|
+
# <div class="wxrb-remark">
|
1124
|
+
# <b>Remark:</b>
|
1125
|
+
# <p>If extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set, then builtin-attributes are not included in the storage.
|
1126
|
+
# </p>
|
1127
|
+
# </div>>
|
989
1128
|
# @return [Wx::PGAttributeStorage]
|
990
1129
|
def get_attributes; end
|
991
1130
|
alias_method :attributes, :get_attributes
|
992
1131
|
|
993
1132
|
# Returns attributes as list {Wx::Variant}.
|
994
|
-
#
|
1133
|
+
# <div class="wxrb-remark">
|
1134
|
+
# <b>Remark:</b>
|
1135
|
+
# <p>If extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set, then builtin-attributes are not included in the list.
|
1136
|
+
# </p>
|
1137
|
+
# </div>>
|
995
1138
|
# @return [Wx::Variant]
|
996
1139
|
def get_attributes_as_list; end
|
997
1140
|
alias_method :attributes_as_list, :get_attributes_as_list
|
@@ -1010,7 +1153,11 @@ module Wx::PG
|
|
1010
1153
|
alias_method :base_name, :get_base_name
|
1011
1154
|
|
1012
1155
|
# Returns {Wx::PG::PGCell} of given column.
|
1013
|
-
#
|
1156
|
+
# <div class="wxrb-remark">
|
1157
|
+
# <b>Remark:</b>
|
1158
|
+
# <p>const version of this member function returns 'default' {Wx::PG::PGCell} object if the property itself didn't hold cell data.
|
1159
|
+
# </p>
|
1160
|
+
# </div>>
|
1014
1161
|
# @param column [Integer]
|
1015
1162
|
# @return [Wx::PG::PGCell]
|
1016
1163
|
def get_cell_or_default(column) end
|
@@ -1117,13 +1264,22 @@ module Wx::PG
|
|
1117
1264
|
|
1118
1265
|
# Returns highest level non-category, non-root parent.
|
1119
1266
|
# Useful when you have nested properties with children.
|
1120
|
-
#
|
1267
|
+
#
|
1268
|
+
# <div class="wxrb-remark">
|
1269
|
+
# <b>Remark:</b>
|
1270
|
+
# <p>If immediate parent is root or category, this will return the property itself.
|
1271
|
+
# </p>
|
1272
|
+
# </div>>
|
1121
1273
|
# @return [Wx::PG::PGProperty]
|
1122
1274
|
def get_main_parent; end
|
1123
1275
|
alias_method :main_parent, :get_main_parent
|
1124
1276
|
|
1125
1277
|
# Returns maximum allowed length of the text the user can enter in the property text editor.
|
1126
|
-
#
|
1278
|
+
# <div class="wxrb-remark">
|
1279
|
+
# <b>Remark:</b>
|
1280
|
+
# <p>0 is returned if length is not explicitly limited and the text can be as long as it is supported by the underlying native text control widget.
|
1281
|
+
# </p>
|
1282
|
+
# </div>>
|
1127
1283
|
# @return [Integer]
|
1128
1284
|
def get_max_length; end
|
1129
1285
|
alias_method :max_length, :get_max_length
|
@@ -1161,7 +1317,11 @@ module Wx::PG
|
|
1161
1317
|
alias_method :value_image, :get_value_image
|
1162
1318
|
|
1163
1319
|
# Returns text representation of property's value.
|
1164
|
-
#
|
1320
|
+
# <div class="wxrb-remark">
|
1321
|
+
# <b>Remark:</b>
|
1322
|
+
# <p>In older versions, this function used to be overridden to convert property's value into a string representation. This function is now handled by {Wx::PG::PGProperty#value_to_string}, and overriding this function now will result in run-time assertion failure.
|
1323
|
+
# </p>
|
1324
|
+
# </div>>
|
1165
1325
|
# @param argFlags [Integer] If 0 (default value), then displayed string is returned. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable string value instead of displayable. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_EDITABLE_VALUE} is set, returns string value that must be editable in textctrl. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, returns text that is appropriate to display as a part of string property's composite text representation.
|
1166
1326
|
# @return [String]
|
1167
1327
|
def get_value_as_string(argFlags=0) end
|
@@ -1230,7 +1390,11 @@ module Wx::PG
|
|
1230
1390
|
# regular) children to a property.
|
1231
1391
|
# Inserted childProperty.
|
1232
1392
|
#
|
1233
|
-
#
|
1393
|
+
# <div class="wxrb-remark">
|
1394
|
+
# <b>Remark:</b>
|
1395
|
+
# <p>{Wx::PG::PropertyGrid} is not automatically refreshed by this function.
|
1396
|
+
# </p>
|
1397
|
+
# </div>>
|
1234
1398
|
# @see Wx::PG::PGProperty#append_child
|
1235
1399
|
# @see Wx::PG::PGProperty#add_private_child
|
1236
1400
|
# @param index [Integer]
|
@@ -1278,7 +1442,11 @@ module Wx::PG
|
|
1278
1442
|
alias_method :some_parent?, :is_some_parent
|
1279
1443
|
|
1280
1444
|
# Returns true if property has editable {Wx::TextCtrl} when selected.
|
1281
|
-
#
|
1445
|
+
# <div class="wxrb-remark">
|
1446
|
+
# <b>Remark:</b>
|
1447
|
+
# <p>Although disabled properties do not displayed editor, they still return true here as being disabled is considered a temporary condition (unlike being read-only or having limited editing enabled).
|
1448
|
+
# </p>
|
1449
|
+
# </div>>
|
1282
1450
|
# @return [Boolean]
|
1283
1451
|
def is_text_editable; end
|
1284
1452
|
alias_method :text_editable?, :is_text_editable
|
@@ -1313,7 +1481,11 @@ module Wx::PG
|
|
1313
1481
|
def refresh_editor; end
|
1314
1482
|
|
1315
1483
|
# Sets an attribute for this property.
|
1316
|
-
#
|
1484
|
+
# <div class="wxrb-remark">
|
1485
|
+
# <b>Remark:</b>
|
1486
|
+
# <p>Setting attribute's value to Null variant will simply remove it from property's set of attributes.
|
1487
|
+
# </p>
|
1488
|
+
# </div>>
|
1317
1489
|
# @param name [String] Text identifier of attribute. See wxPropertyGrid Property Attribute Identifiers.
|
1318
1490
|
# @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue] Value of attribute.
|
1319
1491
|
# @return [void]
|
@@ -1332,7 +1504,11 @@ module Wx::PG
|
|
1332
1504
|
alias_method :auto_unspecified=, :set_auto_unspecified
|
1333
1505
|
|
1334
1506
|
# Sets property's background colour.
|
1335
|
-
#
|
1507
|
+
# <div class="wxrb-remark">
|
1508
|
+
# <b>Remark:</b>
|
1509
|
+
# <p>Unlike {Wx::PG::PropertyGridInterface#set_property_background_colour}, this does not automatically update the display.
|
1510
|
+
# </p>
|
1511
|
+
# </div>>
|
1336
1512
|
# @param colour [Wx::Colour,String,Symbol] Background colour to use.
|
1337
1513
|
# @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
|
1338
1514
|
# @return [void]
|
@@ -1365,14 +1541,22 @@ module Wx::PG
|
|
1365
1541
|
alias_method :common_value=, :set_common_value
|
1366
1542
|
|
1367
1543
|
# Sets new set of choices for the property.
|
1368
|
-
#
|
1544
|
+
# <div class="wxrb-remark">
|
1545
|
+
# <b>Remark:</b>
|
1546
|
+
# <p>This operation deselects the property and clears its value.
|
1547
|
+
# </p>
|
1548
|
+
# </div>>
|
1369
1549
|
# @param choices [Wx::PG::PGChoices]
|
1370
1550
|
# @return [Boolean]
|
1371
1551
|
def set_choices(choices) end
|
1372
1552
|
alias_method :choices=, :set_choices
|
1373
1553
|
|
1374
1554
|
# Sets client data (void*) of a property.
|
1375
|
-
#
|
1555
|
+
# <div class="wxrb-remark">
|
1556
|
+
# <b>Remark:</b>
|
1557
|
+
# <p>This untyped client data has to be deleted manually.
|
1558
|
+
# </p>
|
1559
|
+
# </div>>
|
1376
1560
|
# @param clientData [Object]
|
1377
1561
|
# @return [void]
|
1378
1562
|
def set_client_data(clientData) end
|
@@ -1423,8 +1607,15 @@ module Wx::PG
|
|
1423
1607
|
alias_method :help_string=, :set_help_string
|
1424
1608
|
|
1425
1609
|
# Sets property's label.
|
1610
|
+
# <div class="wxrb-remark">
|
1611
|
+
# <b>Remark:</b>
|
1612
|
+
# <p>
|
1613
|
+
#
|
1426
1614
|
# - Properties under same parent may have same labels. However, property names must still remain unique.
|
1427
|
-
# - Unlike {Wx::PG::PropertyGridInterface#set_property_label}, this does not automatically update the display.
|
1615
|
+
# - Unlike {Wx::PG::PropertyGridInterface#set_property_label}, this does not automatically update the display.
|
1616
|
+
#
|
1617
|
+
# </p>
|
1618
|
+
# </div>>
|
1428
1619
|
# @param label [String]
|
1429
1620
|
# @return [void]
|
1430
1621
|
def set_label(label) end
|
@@ -1452,14 +1643,22 @@ module Wx::PG
|
|
1452
1643
|
alias_method :name=, :set_name
|
1453
1644
|
|
1454
1645
|
# Changes what sort of parent this property is for its children.
|
1455
|
-
#
|
1646
|
+
# <div class="wxrb-remark">
|
1647
|
+
# <b>Remark:</b>
|
1648
|
+
# <p>You generally do not need to call this function.
|
1649
|
+
# </p>
|
1650
|
+
# </div>>
|
1456
1651
|
# @param flag [Integer] Use one of the following values: {Wx::PG::PGPropertyFlags::PG_PROP_MISC_PARENT} (for generic parents), {Wx::PG::PGPropertyFlags::PG_PROP_CATEGORY} (for categories), or {Wx::PG::PGPropertyFlags::PG_PROP_AGGREGATE} (for derived property classes with private children).
|
1457
1652
|
# @return [void]
|
1458
1653
|
def set_parental_type(flag) end
|
1459
1654
|
alias_method :parental_type=, :set_parental_type
|
1460
1655
|
|
1461
1656
|
# Sets property's text colour.
|
1462
|
-
#
|
1657
|
+
# <div class="wxrb-remark">
|
1658
|
+
# <b>Remark:</b>
|
1659
|
+
# <p>Unlike {Wx::PG::PropertyGridInterface#set_property_text_colour}, this does not automatically update the display.
|
1660
|
+
# </p>
|
1661
|
+
# </div>>
|
1463
1662
|
# @param colour [Wx::Colour,String,Symbol] Text colour to use.
|
1464
1663
|
# @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
|
1465
1664
|
# @return [void]
|
@@ -1467,7 +1666,11 @@ module Wx::PG
|
|
1467
1666
|
alias_method :text_colour=, :set_text_colour
|
1468
1667
|
|
1469
1668
|
# Sets property's default text and background colours.
|
1470
|
-
#
|
1669
|
+
# <div class="wxrb-remark">
|
1670
|
+
# <b>Remark:</b>
|
1671
|
+
# <p>Unlike {Wx::PG::PropertyGridInterface#set_property_colours_to_default}, this does not automatically update the display.
|
1672
|
+
# </p>
|
1673
|
+
# </div>>
|
1471
1674
|
# @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colours to be set recursively. Omit this flag to only set colours for the property in question and not any of its children.
|
1472
1675
|
# @return [void]
|
1473
1676
|
def set_default_colours(flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
|
@@ -1481,7 +1684,12 @@ module Wx::PG
|
|
1481
1684
|
|
1482
1685
|
# Call this to set value of the property.
|
1483
1686
|
# Unlike methods in {Wx::PG::PropertyGrid}, this does not automatically update the display.
|
1484
|
-
#
|
1687
|
+
#
|
1688
|
+
# <div class="wxrb-remark">
|
1689
|
+
# <b>Remark:</b>
|
1690
|
+
# <p>Use {Wx::PG::PropertyGrid#change_property_value} instead if you need to run through validation process and send property change event.
|
1691
|
+
# </p>
|
1692
|
+
# </div>>
|
1485
1693
|
#
|
1486
1694
|
# If you need to change property value in event, based on user input, use {Wx::PG::PGProperty#set_value_in_event} instead.
|
1487
1695
|
# @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue] The value to set.
|
@@ -1500,7 +1708,12 @@ module Wx::PG
|
|
1500
1708
|
|
1501
1709
|
# Call this function in {Wx::PG::PGProperty#on_event}, OnButtonClick() etc.
|
1502
1710
|
# to change the property value based on user input.
|
1503
|
-
#
|
1711
|
+
#
|
1712
|
+
# <div class="wxrb-remark">
|
1713
|
+
# <b>Remark:</b>
|
1714
|
+
# <p>This method is const since it doesn't actually modify value, but posts given variant as pending value, stored in {Wx::PG::PropertyGrid}.
|
1715
|
+
# </p>
|
1716
|
+
# </div>>
|
1504
1717
|
# @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
|
1505
1718
|
# @return [void]
|
1506
1719
|
def set_value_in_event(value) end
|
@@ -1520,7 +1733,12 @@ module Wx::PG
|
|
1520
1733
|
|
1521
1734
|
# Updates composed values of parent non-category properties, recursively.
|
1522
1735
|
# Returns topmost property updated.
|
1523
|
-
#
|
1736
|
+
#
|
1737
|
+
# <div class="wxrb-remark">
|
1738
|
+
# <b>Remark:</b>
|
1739
|
+
# <p>Must not call {Wx::PG::PGProperty#set_value} (as can be called in it).
|
1740
|
+
# </p>
|
1741
|
+
# </div>>
|
1524
1742
|
# @return [Wx::PG::PGProperty]
|
1525
1743
|
def update_parent_values; end
|
1526
1744
|
|
@@ -1540,7 +1758,11 @@ module Wx::PG
|
|
1540
1758
|
def ensure_cells(column) end
|
1541
1759
|
|
1542
1760
|
# Returns (direct) child property with given name (or NULL if not found), with hint index.
|
1543
|
-
#
|
1761
|
+
# <div class="wxrb-remark">
|
1762
|
+
# <b>Remark:</b>
|
1763
|
+
# <p>Does not support scope (i.e. Parent.Child notation).
|
1764
|
+
# </p>
|
1765
|
+
# </div>>
|
1544
1766
|
# @param name [String] Name of the child property to look for.
|
1545
1767
|
# @param hintIndex [Integer] Start looking for the child at this index.
|
1546
1768
|
# @return [Wx::PG::PGProperty]
|
@@ -1604,14 +1826,18 @@ module Wx::PG
|
|
1604
1826
|
# Helper class for managing choices of {Wx::PG::PropertyGrid} properties.
|
1605
1827
|
# Each entry can have label, value, bitmap, text colour, and background colour.
|
1606
1828
|
# {Wx::PG::PGChoices} uses reference counting, similar to other wxWidgets classes. This means that assignment operator and copy constructor only copy the reference and not the actual data. Use {Wx::PG::PGChoices#copy} member function to create a real copy.
|
1607
|
-
# If you do not specify value for entry, index is used.
|
1608
1829
|
#
|
1609
|
-
#
|
1830
|
+
# <div class="wxrb-remark">
|
1831
|
+
# <b>Remark:</b>
|
1832
|
+
# <p>If you do not specify value for entry, index is used.
|
1833
|
+
# </p>
|
1834
|
+
# </div>>
|
1610
1835
|
#
|
1611
1836
|
# Category: {Wx::PG::PropertyGrid}
|
1612
1837
|
#
|
1613
1838
|
#
|
1614
1839
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
1840
|
+
# @wxrb_require USE_PROPGRID
|
1615
1841
|
class PGChoices < ::Object
|
1616
1842
|
|
1617
1843
|
# @overload initialize()
|
@@ -1775,6 +2001,7 @@ module Wx::PG
|
|
1775
2001
|
#
|
1776
2002
|
#
|
1777
2003
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
2004
|
+
# @wxrb_require USE_PROPGRID
|
1778
2005
|
class PGPaintData < ::Object
|
1779
2006
|
|
1780
2007
|
# {Wx::PG::PropertyGrid}
|