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.
- checksums.yaml +4 -4
- data/INSTALL.md +30 -8
- data/README.md +3 -3
- data/ext/mkrf_conf_bingem.rb +4 -1
- 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/accessors.rb +10 -2
- data/lib/wx/aui/auifloatframe.rb +20 -0
- data/lib/wx/aui/auimanager.rb +3 -0
- data/lib/wx/aui/auinotebook.rb +17 -0
- data/lib/wx/aui/events/evt_list.rb +7 -7
- data/lib/wx/aui/require.rb +5 -1
- data/lib/wx/aui.rb +4 -1
- data/lib/wx/core/acceleratortable.rb +8 -0
- data/lib/wx/core/animation.rb +8 -0
- data/lib/wx/core/app.rb +8 -0
- data/lib/wx/core/array_ext.rb +7 -0
- data/lib/wx/core/art_locator.rb +7 -0
- data/lib/wx/core/artprovider.rb +9 -0
- data/lib/wx/core/bitmap.rb +16 -4
- data/lib/wx/core/bitmap_combobox.rb +7 -0
- data/lib/wx/core/brush.rb +7 -0
- data/lib/wx/core/busycursor.rb +9 -0
- data/lib/wx/core/choice.rb +7 -0
- data/lib/wx/core/choicedlg.rb +7 -0
- data/lib/wx/core/clientdc.rb +9 -0
- data/lib/wx/core/clipboard.rb +8 -0
- data/lib/wx/core/collapsible_pane.rb +8 -1
- data/lib/wx/core/colour.rb +8 -0
- data/lib/wx/core/combo_ctrl.rb +110 -0
- data/lib/wx/core/combobox.rb +7 -0
- data/lib/wx/core/config.rb +303 -0
- data/lib/wx/core/controlwithitems.rb +12 -1
- data/lib/wx/core/cursor.rb +14 -4
- data/lib/wx/core/data_object.rb +7 -0
- data/lib/wx/core/dataformat.rb +9 -0
- data/lib/wx/core/datetime.rb +14 -0
- data/lib/wx/core/dc.rb +7 -0
- data/lib/wx/core/dialog.rb +18 -1
- data/lib/wx/core/enum.rb +7 -0
- data/lib/wx/core/event.rb +7 -0
- data/lib/wx/core/event_blocker.rb +7 -0
- data/lib/wx/core/event_loop.rb +14 -0
- data/lib/wx/core/events/evt_list.rb +76 -0
- data/lib/wx/core/evthandler.rb +8 -0
- data/lib/wx/core/ext.rb +7 -0
- data/lib/wx/core/file_dialog.rb +23 -0
- data/lib/wx/core/find_replace_dialog.rb +7 -0
- data/lib/wx/core/functions.rb +8 -0
- data/lib/wx/core/gauge.rb +10 -1
- data/lib/wx/core/genericdirctrl.rb +9 -0
- data/lib/wx/core/hboxsizer.rb +16 -0
- data/lib/wx/core/helpcontroller.rb +8 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
- data/lib/wx/core/helpprovider.rb +10 -1
- data/lib/wx/core/icon.rb +17 -6
- data/lib/wx/core/id_helper.rb +7 -0
- data/lib/wx/core/image.rb +49 -4
- data/lib/wx/core/imagelist.rb +8 -1
- data/lib/wx/core/listbox.rb +7 -0
- data/lib/wx/core/listctrl.rb +26 -13
- data/lib/wx/core/locale.rb +8 -0
- data/lib/wx/core/log.rb +114 -0
- data/lib/wx/core/menu.rb +9 -0
- data/lib/wx/core/menu_bar.rb +7 -0
- data/lib/wx/core/menuitem.rb +9 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +9 -0
- data/lib/wx/core/paintdc.rb +7 -0
- data/lib/wx/core/pen.rb +7 -0
- data/lib/wx/core/pen_info.rb +7 -0
- data/lib/wx/core/platform_info.rb +7 -0
- data/lib/wx/core/point.rb +8 -0
- data/lib/wx/core/real_point.rb +8 -0
- data/lib/wx/core/rect.rb +9 -0
- data/lib/wx/core/region_iterator.rb +7 -0
- data/lib/wx/core/simplehelpprovider.rb +9 -0
- data/lib/wx/core/size.rb +8 -0
- data/lib/wx/core/sizer.rb +9 -0
- data/lib/wx/core/splash_screen.rb +22 -2
- data/lib/wx/core/text_entry.rb +7 -0
- data/lib/wx/core/textctrl.rb +86 -5
- data/lib/wx/core/timer.rb +9 -0
- data/lib/wx/core/toolbar.rb +9 -0
- data/lib/wx/core/toolbartool.rb +8 -0
- data/lib/wx/core/treectrl.rb +9 -0
- data/lib/wx/core/v_list_box.rb +7 -0
- data/lib/wx/core/validator.rb +7 -0
- data/lib/wx/core/variant.rb +7 -0
- data/lib/wx/core/vboxsizer.rb +16 -0
- data/lib/wx/core/window.rb +8 -0
- data/lib/wx/core/window_update_locker.rb +9 -0
- data/lib/wx/core/xmlresource.rb +8 -0
- data/lib/wx/core.rb +4 -1
- data/lib/wx/doc/app.rb +7 -1
- data/lib/wx/doc/array_ext.rb +6 -0
- data/lib/wx/doc/art_locator.rb +7 -0
- data/lib/wx/doc/aui/auimanager.rb +6 -0
- data/lib/wx/doc/aui/auinotebook.rb +6 -0
- data/lib/wx/doc/bitmap.rb +19 -15
- data/lib/wx/doc/brush.rb +6 -0
- data/lib/wx/doc/busy_info.rb +6 -0
- data/lib/wx/doc/client_dc.rb +6 -0
- data/lib/wx/doc/clipboard.rb +6 -0
- data/lib/wx/doc/colour_dialog.rb +6 -0
- data/lib/wx/doc/config.rb +190 -0
- data/lib/wx/doc/const.rb +7 -0
- data/lib/wx/doc/controlwithitems.rb +6 -0
- data/lib/wx/doc/core.rb +6 -0
- data/lib/wx/doc/cursor.rb +13 -5
- data/lib/wx/doc/data_object.rb +6 -0
- data/lib/wx/doc/datetime.rb +16 -0
- data/lib/wx/doc/dc.rb +6 -0
- data/lib/wx/doc/enum.rb +8 -1
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/event_blocker.rb +6 -0
- data/lib/wx/doc/event_loop.rb +13 -0
- data/lib/wx/doc/events.rb +6 -0
- data/lib/wx/doc/evthandler.rb +8 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/01_packages.md +52 -51
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/05_event-handling.md +37 -12
- data/lib/wx/doc/extra/06_geometry.md +5 -5
- data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
- data/lib/wx/doc/extra/09_exceptions.md +2 -2
- data/lib/wx/doc/extra/10_art.md +18 -12
- data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
- data/lib/wx/doc/font.rb +7 -1
- data/lib/wx/doc/font_data.rb +16 -0
- data/lib/wx/doc/functions.rb +60 -24
- data/lib/wx/doc/gc_dc.rb +7 -1
- data/lib/wx/doc/gdi_common.rb +8 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
- data/lib/wx/doc/gen/accelerator.rb +8 -13
- data/lib/wx/doc/gen/accessible.rb +27 -23
- data/lib/wx/doc/gen/activity_indicator.rb +7 -7
- data/lib/wx/doc/gen/animation.rb +20 -20
- data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
- data/lib/wx/doc/gen/any_button.rb +3 -3
- data/lib/wx/doc/gen/app.rb +25 -88
- data/lib/wx/doc/gen/app_traits.rb +381 -0
- data/lib/wx/doc/gen/art_provider.rb +64 -4
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
- data/lib/wx/doc/gen/aui/event_list.rb +7 -0
- data/lib/wx/doc/gen/banner_window.rb +98 -0
- data/lib/wx/doc/gen/bitmap.rb +56 -81
- data/lib/wx/doc/gen/bitmap_button.rb +13 -9
- data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
- data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +24 -12
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +23 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
- data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
- data/lib/wx/doc/gen/calendar_event.rb +4 -10
- data/lib/wx/doc/gen/caret.rb +6 -6
- data/lib/wx/doc/gen/check_box.rb +19 -15
- data/lib/wx/doc/gen/check_list_box.rb +10 -9
- data/lib/wx/doc/gen/choice.rb +10 -9
- data/lib/wx/doc/gen/choicebook.rb +13 -7
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +10 -10
- data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
- data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
- data/lib/wx/doc/gen/colour.rb +42 -32
- data/lib/wx/doc/gen/colour_dialog.rb +12 -12
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +29 -20
- data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
- data/lib/wx/doc/gen/command_link_button.rb +110 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -6
- data/lib/wx/doc/gen/control.rb +12 -9
- data/lib/wx/doc/gen/control_with_items.rb +5 -5
- data/lib/wx/doc/gen/core.rb +8 -5
- data/lib/wx/doc/gen/cursor.rb +18 -18
- data/lib/wx/doc/gen/data_format.rb +5 -5
- data/lib/wx/doc/gen/data_object.rb +32 -25
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
- data/lib/wx/doc/gen/dc.rb +162 -74
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +65 -22
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
- data/lib/wx/doc/gen/drag_drop.rb +26 -52
- data/lib/wx/doc/gen/drag_image.rb +13 -38
- data/lib/wx/doc/gen/editable_list_box.rb +9 -5
- data/lib/wx/doc/gen/event.rb +55 -32
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +117 -19
- data/lib/wx/doc/gen/events.rb +351 -215
- data/lib/wx/doc/gen/evt_handler.rb +8 -8
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
- data/lib/wx/doc/gen/file_dialog.rb +20 -9
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
- data/lib/wx/doc/gen/file_system.rb +250 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
- data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
- data/lib/wx/doc/gen/font.rb +90 -94
- data/lib/wx/doc/gen/font_data.rb +15 -11
- data/lib/wx/doc/gen/font_dialog.rb +5 -5
- data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +36 -27
- data/lib/wx/doc/gen/fs_file.rb +65 -38
- data/lib/wx/doc/gen/gauge.rb +14 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +43 -41
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
- data/lib/wx/doc/gen/graphics_context.rb +320 -88
- data/lib/wx/doc/gen/graphics_object.rb +48 -102
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
- data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
- data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/header_ctrl.rb +755 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
- data/lib/wx/doc/gen/help_controller.rb +25 -19
- data/lib/wx/doc/gen/help_provider.rb +3 -3
- data/lib/wx/doc/gen/html/html_cell.rb +100 -59
- data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
- data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
- data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
- data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
- data/lib/wx/doc/gen/html/html_printout.rb +16 -6
- data/lib/wx/doc/gen/html/html_window.rb +54 -39
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- data/lib/wx/doc/gen/icon.rb +24 -24
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +164 -114
- data/lib/wx/doc/gen/image_list.rb +24 -30
- data/lib/wx/doc/gen/info_bar.rb +152 -0
- data/lib/wx/doc/gen/keyboard_state.rb +24 -24
- data/lib/wx/doc/gen/list_box.rb +40 -31
- data/lib/wx/doc/gen/list_ctrl.rb +223 -167
- data/lib/wx/doc/gen/list_event.rb +25 -3
- data/lib/wx/doc/gen/listbook.rb +13 -7
- data/lib/wx/doc/gen/locale.rb +22 -71
- data/lib/wx/doc/gen/log.rb +133 -106
- data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
- data/lib/wx/doc/gen/mdi_frame.rb +23 -17
- data/lib/wx/doc/gen/media_ctrl.rb +22 -19
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +26 -33
- data/lib/wx/doc/gen/menu.rb +24 -25
- data/lib/wx/doc/gen/menu_bar.rb +11 -28
- data/lib/wx/doc/gen/menu_item.rb +127 -46
- data/lib/wx/doc/gen/message_dialog.rb +54 -36
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mouse_state.rb +51 -11
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +8 -9
- data/lib/wx/doc/gen/notebook.rb +27 -22
- data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
- data/lib/wx/doc/gen/object.rb +3 -14
- data/lib/wx/doc/gen/palette.rb +15 -17
- data/lib/wx/doc/gen/panel.rb +8 -7
- data/lib/wx/doc/gen/pen.rb +50 -37
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
- data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
- data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
- data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
- data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
- data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
- data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
- data/lib/wx/doc/gen/picker_base.rb +17 -16
- data/lib/wx/doc/gen/platform_info.rb +180 -20
- data/lib/wx/doc/gen/popup_window.rb +8 -8
- data/lib/wx/doc/gen/progress_dialog.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +68 -62
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +44 -49
- data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
- data/lib/wx/doc/gen/radio_box.rb +21 -19
- data/lib/wx/doc/gen/radio_button.rb +13 -11
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
- data/lib/wx/doc/gen/rearrange_list.rb +99 -0
- data/lib/wx/doc/gen/region.rb +35 -43
- data/lib/wx/doc/gen/region_iterator.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
- data/lib/wx/doc/gen/sash_event.rb +8 -6
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
- data/lib/wx/doc/gen/sash_window.rb +14 -9
- data/lib/wx/doc/gen/scroll_bar.rb +33 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
- data/lib/wx/doc/gen/scrolled_control.rb +49 -37
- data/lib/wx/doc/gen/scrolled_window.rb +49 -37
- data/lib/wx/doc/gen/search_ctrl.rb +20 -13
- data/lib/wx/doc/gen/simplebook.rb +7 -7
- data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
- data/lib/wx/doc/gen/sizer.rb +69 -73
- data/lib/wx/doc/gen/sizer_item.rb +5 -5
- data/lib/wx/doc/gen/slider.rb +51 -18
- data/lib/wx/doc/gen/spin_button.rb +17 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
- data/lib/wx/doc/gen/spin_double_event.rb +53 -0
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +36 -16
- data/lib/wx/doc/gen/static_bitmap.rb +9 -9
- data/lib/wx/doc/gen/static_box.rb +41 -37
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +8 -7
- data/lib/wx/doc/gen/static_text.rb +15 -9
- data/lib/wx/doc/gen/status_bar.rb +53 -10
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
- data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
- data/lib/wx/doc/gen/system_options.rb +13 -3
- data/lib/wx/doc/gen/system_settings.rb +9 -9
- data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +67 -61
- data/lib/wx/doc/gen/text_ctrl.rb +58 -113
- data/lib/wx/doc/gen/text_entry.rb +44 -56
- data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
- data/lib/wx/doc/gen/text_validator.rb +3 -19
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
- data/lib/wx/doc/gen/timer.rb +13 -9
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +3 -3
- data/lib/wx/doc/gen/toggle_button.rb +10 -9
- data/lib/wx/doc/gen/tool_bar.rb +71 -61
- data/lib/wx/doc/gen/tool_tip.rb +2 -10
- data/lib/wx/doc/gen/toolbook.rb +12 -9
- data/lib/wx/doc/gen/top_level_window.rb +53 -113
- data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
- data/lib/wx/doc/gen/tree_event.rb +24 -3
- data/lib/wx/doc/gen/treebook.rb +20 -16
- data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
- data/lib/wx/doc/gen/utils.rb +20 -14
- data/lib/wx/doc/gen/v_list_box.rb +11 -11
- data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
- data/lib/wx/doc/gen/validator.rb +10 -8
- data/lib/wx/doc/gen/variant.rb +56 -119
- data/lib/wx/doc/gen/window.rb +314 -224
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +2 -2
- data/lib/wx/doc/gen/wizard.rb +21 -8
- data/lib/wx/doc/gen/wizard_event.rb +11 -4
- data/lib/wx/doc/gen/wizard_page.rb +3 -3
- data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
- data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
- data/lib/wx/doc/gen/xml_node.rb +13 -13
- data/lib/wx/doc/gen/xml_resource.rb +24 -21
- data/lib/wx/doc/graphics_context.rb +59 -39
- data/lib/wx/doc/grid/grid.rb +16 -1
- data/lib/wx/doc/hboxsizer.rb +33 -0
- data/lib/wx/doc/help_controller.rb +6 -0
- data/lib/wx/doc/html/html_help_controller.rb +6 -0
- data/lib/wx/doc/icon.rb +13 -5
- data/lib/wx/doc/id_helper.rb +6 -0
- data/lib/wx/doc/image.rb +50 -12
- data/lib/wx/doc/list_ctrl.rb +38 -0
- data/lib/wx/doc/log.rb +45 -0
- data/lib/wx/doc/memory_dc.rb +6 -0
- data/lib/wx/doc/mirror_dc.rb +6 -0
- data/lib/wx/doc/pen.rb +6 -0
- data/lib/wx/doc/pg/events.rb +6 -0
- data/lib/wx/doc/pg/pg_property.rb +17 -0
- data/lib/wx/doc/pg/pgeditor.rb +6 -0
- data/lib/wx/doc/pg/property_grid.rb +6 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
- data/lib/wx/doc/progress_dialog.rb +6 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
- data/lib/wx/doc/prt/print_data.rb +6 -0
- data/lib/wx/doc/prt/print_dialog.rb +6 -0
- data/lib/wx/doc/prt/printer.rb +6 -0
- data/lib/wx/doc/prt/printer_dc.rb +8 -2
- data/lib/wx/doc/radio_box.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
- data/lib/wx/doc/region_iterator.rb +6 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
- data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +7 -1
- data/lib/wx/doc/screen_dc.rb +6 -0
- data/lib/wx/doc/stock_objects.rb +6 -0
- data/lib/wx/doc/stream.rb +6 -0
- data/lib/wx/doc/svg_file_dc.rb +6 -0
- data/lib/wx/doc/system_settings.rb +6 -0
- data/lib/wx/doc/text_validator.rb +18 -0
- data/lib/wx/doc/textctrl.rb +89 -0
- data/lib/wx/doc/tree_event.rb +20 -0
- data/lib/wx/doc/treebook.rb +6 -0
- data/lib/wx/doc/v_list_box.rb +6 -0
- data/lib/wx/doc/variant.rb +6 -0
- data/lib/wx/doc/vboxsizer.rb +33 -0
- data/lib/wx/doc/window.rb +6 -0
- data/lib/wx/doc/window_disabler.rb +6 -0
- data/lib/wx/doc/xml_resource.rb +8 -0
- data/lib/wx/global_const.rb +4 -1
- data/lib/wx/grid/grid.rb +23 -3
- data/lib/wx/grid/keyword_defs.rb +8 -1
- data/lib/wx/grid/require.rb +4 -1
- data/lib/wx/grid.rb +4 -1
- data/lib/wx/helpers.rb +8 -1
- data/lib/wx/html/htmlhelpcontroller.rb +29 -3
- data/lib/wx/html/htmlwindow.rb +23 -12
- data/lib/wx/html/keyword_defs.rb +8 -1
- data/lib/wx/html/require.rb +4 -1
- data/lib/wx/html/simple_html_listbox.rb +3 -0
- data/lib/wx/html.rb +4 -1
- data/lib/wx/keyword_ctors.rb +22 -3
- data/lib/wx/keyword_defs.rb +55 -3
- data/lib/wx/pg/events.rb +4 -1
- data/lib/wx/pg/keyword_defs.rb +8 -1
- data/lib/wx/pg/pg_editor.rb +3 -0
- data/lib/wx/pg/pg_properties.rb +4 -1
- data/lib/wx/pg/pg_property.rb +18 -5
- data/lib/wx/pg/property_grid.rb +4 -1
- data/lib/wx/pg/property_grid_interface.rb +3 -0
- data/lib/wx/pg/require.rb +4 -1
- data/lib/wx/pg.rb +4 -1
- data/lib/wx/prt/keyword_defs.rb +8 -1
- data/lib/wx/prt/page_setup_dialog.rb +3 -0
- data/lib/wx/prt/previewframe.rb +5 -0
- data/lib/wx/prt/require.rb +4 -1
- data/lib/wx/prt.rb +4 -1
- data/lib/wx/rbn/events.rb +4 -1
- data/lib/wx/rbn/keyword_defs.rb +8 -1
- data/lib/wx/rbn/require.rb +5 -1
- data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
- data/lib/wx/rbn/ribbon_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_control.rb +3 -0
- data/lib/wx/rbn/ribbon_gallery.rb +10 -0
- data/lib/wx/rbn/ribbon_page.rb +3 -0
- data/lib/wx/rbn/ribbon_panel.rb +3 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
- data/lib/wx/rbn.rb +4 -1
- data/lib/wx/rtc/ext.rb +4 -1
- data/lib/wx/rtc/keyword_defs.rb +18 -7
- data/lib/wx/rtc/require.rb +8 -1
- data/lib/wx/rtc/richtext_buffer.rb +36 -0
- data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
- data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
- data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
- data/lib/wx/rtc.rb +5 -1
- data/lib/wx/stc/keyword_defs.rb +8 -1
- data/lib/wx/stc/require.rb +4 -1
- data/lib/wx/stc.rb +4 -1
- data/lib/wx/version.rb +5 -1
- data/lib/wx/wxruby/base.rb +4 -1
- data/lib/wx/wxruby/cmd/sampler.rb +4 -1
- data/lib/wx/wxruby/cmd/test.rb +4 -1
- data/lib/wx.rb +4 -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/install.rb +4 -1
- data/rakelib/lib/config/cygwin.rb +4 -1
- data/rakelib/lib/config/linux.rb +4 -1
- data/rakelib/lib/config/macosx.rb +5 -2
- data/rakelib/lib/config/mingw.rb +4 -1
- data/rakelib/lib/config/netbsd.rb +4 -1
- data/rakelib/lib/config/unixish.rb +10 -7
- data/rakelib/lib/config.rb +7 -2
- data/rakelib/lib/ext/enum_chain.rb +4 -1
- data/rakelib/prepost.rake +4 -1
- data/rakelib/prepost.rb +4 -1
- data/samples/aui/aui.rb +8 -3
- data/samples/bigdemo/bigdemo.rb +9 -2
- data/samples/bigdemo/run.rb +9 -2
- data/samples/bigdemo/utils.rb +9 -1
- data/samples/calendar/calendar.rb +9 -4
- data/samples/caret/caret.rb +8 -3
- data/samples/controls/books.rb +8 -2
- data/samples/controls/controls.rb +33 -77
- data/samples/controls/get_item_sample.rb +8 -2
- data/samples/controls/htlbox.rb +10 -3
- data/samples/dialogs/dialogs.rb +9 -4
- data/samples/dialogs/wizard.rb +8 -3
- data/samples/dragdrop/dragdrop.rb +8 -3
- data/samples/drawing/bitmap.rb +8 -3
- data/samples/drawing/bitmap_image.rb +8 -3
- data/samples/drawing/graphics_drawing.rb +44 -33
- data/samples/drawing/image_prt.rb +8 -2
- data/samples/drawing/maths_images.rb +8 -3
- data/samples/drawing/rmagic_bitmap_image.rb +8 -3
- data/samples/etc/choice.rb +8 -3
- data/samples/etc/miniframe.rb +8 -3
- data/samples/etc/sash.rb +8 -3
- data/samples/etc/scrollwin.rb +8 -3
- data/samples/etc/system_settings.rb +8 -3
- data/samples/event/activation.rb +8 -3
- data/samples/event/event.rb +8 -3
- data/samples/event/threaded.rb +8 -3
- data/samples/event/update_ui_event.rb +8 -3
- data/samples/grid/grid.rb +9 -3
- data/samples/grid/gridtablebase.rb +8 -3
- data/samples/html/html.rb +8 -3
- data/samples/mdi/mdi.rb +8 -3
- data/samples/minimal/minimal.rb +8 -3
- data/samples/minimal/nothing.rb +8 -3
- data/samples/printing/printing.rb +8 -3
- data/samples/printing/printing2.rb +8 -2
- data/samples/propgrid/propgrid.rb +4 -1
- data/samples/propgrid/propgrid_minimal.rb +4 -2
- data/samples/propgrid/sample_props.rb +4 -1
- data/samples/ribbon/ribbon.rb +4 -1
- data/samples/sampler/editor.rb +4 -1
- data/samples/sampler/ext.rb +4 -1
- data/samples/sampler/sample.rb +13 -4
- data/samples/sampler/stc_editor.rb +4 -1
- data/samples/sampler/txt_editor.rb +4 -1
- data/samples/sampler.rb +11 -3
- data/samples/splash/splash.rb +4 -2
- data/samples/text/art/richtext/alignleft.xpm +24 -0
- data/samples/text/art/richtext/alignright.xpm +24 -0
- data/samples/text/art/richtext/bold.xpm +24 -0
- data/samples/text/art/richtext/centre.xpm +24 -0
- data/samples/text/art/richtext/copy.xpm +45 -0
- data/samples/text/art/richtext/cut.xpm +47 -0
- data/samples/text/art/richtext/font.xpm +25 -0
- data/samples/text/art/richtext/idea.xpm +47 -0
- data/samples/text/art/richtext/indentless.xpm +25 -0
- data/samples/text/art/richtext/indentmore.xpm +25 -0
- data/samples/text/art/richtext/italic.xpm +25 -0
- data/samples/text/art/richtext/open.xpm +58 -0
- data/samples/text/art/richtext/paste.xpm +47 -0
- data/samples/text/art/richtext/redo.xpm +59 -0
- data/samples/text/art/richtext/save.xpm +43 -0
- data/samples/text/art/richtext/smiley.xpm +42 -0
- data/samples/text/art/richtext/underline.xpm +25 -0
- data/samples/text/art/richtext/undo.xpm +59 -0
- data/samples/text/art/richtext/zebra.xpm +409 -0
- data/samples/text/rich_textctrl.rb +8 -3
- data/samples/text/richtext.rb +1824 -0
- data/samples/text/scintilla.rb +8 -3
- data/samples/text/textctrl.rb +21 -4
- data/samples/text/tn_richtext.png +0 -0
- data/samples/text/unicode.rb +9 -4
- data/samples/treectrl/treectrl.rb +10 -5
- data/samples/xrc/custom_xrc_sample.rb +8 -3
- data/samples/xrc/xrc_sample.rb +8 -3
- data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
- data/tests/lib/item_container_tests.rb +3 -0
- data/tests/lib/text_entry_tests.rb +3 -0
- data/tests/lib/wxapp_runner.rb +3 -0
- data/tests/lib/wxframe_runner.rb +81 -3
- data/tests/test_app_event_filter.rb +3 -0
- data/tests/test_app_traits.rb +33 -0
- data/tests/test_art.rb +31 -0
- data/tests/test_art_provider.rb +3 -0
- data/tests/test_aui.rb +65 -0
- data/tests/test_basic.rb +5 -1
- data/tests/test_box_sizer.rb +164 -0
- data/tests/test_clipboard.rb +3 -0
- data/tests/test_config.rb +150 -0
- data/tests/test_dc.rb +3 -0
- data/tests/test_dialog.rb +3 -0
- data/tests/test_event_handling.rb +3 -0
- data/tests/test_events.rb +3 -0
- data/tests/test_ext_controls.rb +286 -3
- data/tests/test_file_dialog.rb +55 -0
- data/tests/test_font.rb +8 -5
- data/tests/test_gdi_object.rb +3 -0
- data/tests/test_geometry.rb +4 -0
- data/tests/test_grid_sizer.rb +151 -0
- data/tests/test_intl.rb +3 -0
- data/tests/test_item_data.rb +3 -0
- data/tests/test_list_ctrl.rb +56 -0
- data/tests/test_log.rb +226 -0
- data/tests/test_proof_check.rb +52 -0
- data/tests/test_richtext.rb +204 -0
- data/tests/test_std_controls.rb +99 -31
- data/tests/test_timer.rb +98 -0
- data/tests/test_variant.rb +3 -0
- data/tests/test_window.rb +10 -8
- data/tests/testapp.rb +4 -0
- data/tests/testapp_noframe.rb +4 -0
- metadata +87 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
data/lib/wx/doc/gen/tree_ctrl.rb
CHANGED
@@ -236,7 +236,7 @@ module Wx
|
|
236
236
|
#
|
237
237
|
# {Wx::TreeCtrl} inherits from {Wx::WithImages} classes providing the functions for associating images with the control items. Each item refers to its image using an index, which can possibly by {Wx::WithImages::NO_IMAGE} to indicate that the item doesn't use any image at all, and the corresponding image is taken either from the vector passed to {Wx::WithImages#set_images} or from the image list passed to {Wx::WithImages#set_image_list} or {Wx::WithImages#assign_image_list} functions.
|
238
238
|
# In addition to normal images, handled with the methods mentioned above, {Wx::TreeCtrl} also provides optional state images that may be used to indicate some additional state of the item, e.g. checked or unchecked status. These images can be set using {Wx::TreeCtrl#set_state_image_list} and {Wx::TreeCtrl#assign_state_image_list} functions that behave in the same way as the corresponding methods of {Wx::WithImages}.
|
239
|
-
# Finally, in the generic version of this control ({Wx::GenericTreeCtrl}), also provides {Wx::TreeCtrl#set_buttons_image_list} and {Wx::TreeCtrl#assign_buttons_image_list}, which can be used to change the images used for the control buttons, used to expand or collapse its branches. These methods are not available in the native
|
239
|
+
# Finally, in the generic version of this control ({Wx::GenericTreeCtrl}), also provides {Wx::TreeCtrl#set_buttons_image_list} and {Wx::TreeCtrl#assign_buttons_image_list}, which can be used to change the images used for the control buttons, used to expand or collapse its branches. These methods are not available in the native wxMSW and {Wx::Qt} implementations.
|
240
240
|
#
|
241
241
|
# == Events
|
242
242
|
#
|
@@ -244,45 +244,78 @@ module Wx
|
|
244
244
|
# === Styles
|
245
245
|
#
|
246
246
|
# This class supports the following styles:
|
247
|
-
#
|
247
|
+
#
|
248
248
|
# - {Wx::TR_EDIT_LABELS}: Use this style if you wish the user to be able to edit labels in the tree control.
|
249
|
+
#
|
249
250
|
# - {Wx::TR_NO_BUTTONS}: For convenience to document that no buttons are to be drawn.
|
251
|
+
#
|
250
252
|
# - {Wx::TR_HAS_BUTTONS}: Use this style to show + and - buttons to the left of parent items.
|
253
|
+
#
|
251
254
|
# - {Wx::TR_TWIST_BUTTONS}: Selects alternative style of <code>+/<code>-</code> buttons</code> and shows rotating ("twisting") arrows instead. Currently this style is only implemented under Microsoft Windows Vista and later Windows versions and is ignored under the other platforms as enabling it is equivalent to using Wx::SystemThemedControl#enable_system_theme.
|
255
|
+
#
|
252
256
|
# - {Wx::TR_NO_LINES}: Use this style to hide vertical level connectors.
|
257
|
+
#
|
253
258
|
# - {Wx::TR_FULL_ROW_HIGHLIGHT}: Use this style to have the background colour and the selection highlight extend over the entire horizontal row of the tree control window. (This flag is ignored under Windows unless you specify {Wx::TR_NO_LINES} as well.)
|
259
|
+
#
|
254
260
|
# - {Wx::TR_LINES_AT_ROOT}: Use this style to show lines leading to the root nodes (unless no {Wx::TR_NO_LINES} is also used, in which case no lines are shown). Note that in the MSW version, if this style is omitted, not only the lines, but also the button used for expanding the root item is not shown, which can be unexpected, so it is recommended to always use it.
|
261
|
+
#
|
255
262
|
# - {Wx::TR_HIDE_ROOT}: Use this style to suppress the display of the root node, effectively causing the first-level nodes to appear as a series of root nodes.
|
263
|
+
#
|
256
264
|
# - {Wx::TR_ROW_LINES}: Use this style to draw a contrasting border between displayed rows.
|
265
|
+
#
|
257
266
|
# - {Wx::TR_HAS_VARIABLE_ROW_HEIGHT}: Use this style to cause row heights to be just big enough to fit the content. If not set, all rows use the largest row height. The default is that this flag is unset. Generic only.
|
267
|
+
#
|
258
268
|
# - {Wx::TR_SINGLE}: For convenience to document that only one item may be selected at a time. Selecting another item causes the current selection, if any, to be deselected. This is the default.
|
269
|
+
#
|
259
270
|
# - {Wx::TR_MULTIPLE}: Use this style to allow a range of items to be selected. If a second range is selected, the current range, if any, is deselected.
|
271
|
+
#
|
260
272
|
# - {Wx::TR_DEFAULT_STYLE}: The set of flags that are closest to the defaults for the native control for a particular toolkit.
|
261
273
|
#
|
262
274
|
# === Events emitted by this class
|
263
275
|
#
|
264
276
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::TreeEvent} events.
|
265
277
|
# Event handler methods for events emitted by this class:
|
278
|
+
#
|
266
279
|
# - {Wx::EvtHandler#evt_tree_begin_drag}(id, meth = nil, &block): Begin dragging with the left mouse button. If you want to enable left-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default. Processes a {Wx::EVT_TREE_BEGIN_DRAG} event type.
|
280
|
+
#
|
267
281
|
# - {Wx::EvtHandler#evt_tree_begin_rdrag}(id, meth = nil, &block): Begin dragging with the right mouse button. If you want to enable right-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default. Processes a {Wx::EVT_TREE_BEGIN_RDRAG} event type.
|
282
|
+
#
|
268
283
|
# - {Wx::EvtHandler#evt_tree_end_drag}(id, meth = nil, &block): End dragging with the left or right mouse button. Processes a {Wx::EVT_TREE_END_DRAG} event type.
|
284
|
+
#
|
269
285
|
# - {Wx::EvtHandler#evt_tree_begin_label_edit}(id, meth = nil, &block): Begin editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_BEGIN_LABEL_EDIT} event type.
|
286
|
+
#
|
270
287
|
# - {Wx::EvtHandler#evt_tree_end_label_edit}(id, meth = nil, &block): Finish editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_END_LABEL_EDIT} event type.
|
288
|
+
#
|
271
289
|
# - {Wx::EvtHandler#evt_tree_delete_item}(id, meth = nil, &block): An item was deleted. Processes a {Wx::EVT_TREE_DELETE_ITEM} event type.
|
290
|
+
#
|
272
291
|
# - {Wx::EvtHandler#evt_tree_get_info}(id, meth = nil, &block): Request information from the application. Processes a {Wx::EVT_TREE_GET_INFO} event type.
|
292
|
+
#
|
273
293
|
# - {Wx::EvtHandler#evt_tree_set_info}(id, meth = nil, &block): Information is being supplied. Processes a {Wx::EVT_TREE_SET_INFO} event type.
|
294
|
+
#
|
274
295
|
# - {Wx::EvtHandler#evt_tree_item_activated}(id, meth = nil, &block): The item has been activated, i.e. chosen by double clicking it with mouse or from keyboard. Processes a {Wx::EVT_TREE_ITEM_ACTIVATED} event type.
|
296
|
+
#
|
275
297
|
# - {Wx::EvtHandler#evt_tree_item_collapsed}(id, meth = nil, &block): The item has been collapsed. Processes a {Wx::EVT_TREE_ITEM_COLLAPSED} event type.
|
298
|
+
#
|
276
299
|
# - {Wx::EvtHandler#evt_tree_item_collapsing}(id, meth = nil, &block): The item is being collapsed. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_ITEM_COLLAPSING} event type.
|
300
|
+
#
|
277
301
|
# - {Wx::EvtHandler#evt_tree_item_expanded}(id, meth = nil, &block): The item has been expanded. Processes a {Wx::EVT_TREE_ITEM_EXPANDED} event type.
|
302
|
+
#
|
278
303
|
# - {Wx::EvtHandler#evt_tree_item_expanding}(id, meth = nil, &block): The item is being expanded. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_ITEM_EXPANDING} event type.
|
304
|
+
#
|
279
305
|
# - {Wx::EvtHandler#evt_tree_item_right_click}(id, meth = nil, &block): The user has clicked the item with the right mouse button. Processes a {Wx::EVT_TREE_ITEM_RIGHT_CLICK} event type.
|
306
|
+
#
|
280
307
|
# - {Wx::EvtHandler#evt_tree_item_middle_click}(id, meth = nil, &block): The user has clicked the item with the middle mouse button. This is only supported by the generic control. Processes a {Wx::EVT_TREE_ITEM_MIDDLE_CLICK} event type.
|
308
|
+
#
|
281
309
|
# - {Wx::EvtHandler#evt_tree_sel_changed}(id, meth = nil, &block): Selection has changed. Processes a {Wx::EVT_TREE_SEL_CHANGED} event type.
|
310
|
+
#
|
282
311
|
# - {Wx::EvtHandler#evt_tree_sel_changing}(id, meth = nil, &block): Selection is changing. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_SEL_CHANGING} event type.
|
312
|
+
#
|
283
313
|
# - {Wx::EvtHandler#evt_tree_key_down}(id, meth = nil, &block): A key has been pressed. Processes a {Wx::EVT_TREE_KEY_DOWN} event type.
|
314
|
+
#
|
284
315
|
# - {Wx::EvtHandler#evt_tree_item_gettooltip}(id, meth = nil, &block): The opportunity to set the item tooltip is being given to the application (call {Wx::TreeEvent#set_tool_tip}). Windows only. Processes a {Wx::EVT_TREE_ITEM_GETTOOLTIP} event type.
|
316
|
+
#
|
285
317
|
# - {Wx::EvtHandler#evt_tree_item_menu}(id, meth = nil, &block): The context menu for the selected item has been requested, either by a right click or by using the menu key. Notice that these events always carry a valid tree item and so are not generated when (right) clicking outside of the items area. If you need to handle such events, consider using {Wx::EVT_CONTEXT_MENU} instead. Processes a {Wx::EVT_TREE_ITEM_MENU} event type.
|
318
|
+
#
|
286
319
|
# - {Wx::EvtHandler#evt_tree_state_image_click}(id, meth = nil, &block): The state image has been clicked. Processes a {Wx::EVT_TREE_STATE_IMAGE_CLICK} event type.
|
287
320
|
#
|
288
321
|
# See also Window Styles.
|
@@ -290,9 +323,9 @@ module Wx
|
|
290
323
|
# {Wx::TreeCtrl} class uses the standard common treeview control under Win32 implemented in the system library comctl32.dll. Some versions of this library are known to have bugs with handling the tree control colours: the usual symptom is that the expanded items leave black (or otherwise incorrectly coloured) background behind them, especially for the controls using non-default background colour. The recommended solution is to upgrade the comctl32.dll to a newer version: see http://www.microsoft.com/downloads/details.aspx?familyid=cb2cf3a2-8025-4e8f-8511-9b476a8d35d2
|
291
324
|
# ===
|
292
325
|
#
|
293
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
294
|
-
# </td><td>
|
295
|
-
# </td><td>
|
326
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
327
|
+
# </td><td> wxGTK Appearance
|
328
|
+
# </td><td> wxOSX Appearance
|
296
329
|
# </td></tr></table></div>
|
297
330
|
# @see Wx::DataViewTreeCtrl
|
298
331
|
# @see Wx::TreeEvent
|
@@ -309,7 +342,7 @@ module Wx
|
|
309
342
|
|
310
343
|
# @overload initialize()
|
311
344
|
# Default Constructor.
|
312
|
-
# @return [TreeCtrl]
|
345
|
+
# @return [Wx::TreeCtrl]
|
313
346
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TreeCtrlNameStr)
|
314
347
|
# Constructor, creating and showing a tree control.
|
315
348
|
#
|
@@ -322,7 +355,7 @@ module Wx
|
|
322
355
|
# @param style [Integer] Window style. See {Wx::TreeCtrl}.
|
323
356
|
# @param validator [Wx::Validator] Window validator.
|
324
357
|
# @param name [String] Window name.
|
325
|
-
# @return [TreeCtrl]
|
358
|
+
# @return [Wx::TreeCtrl]
|
326
359
|
def initialize(*args) end
|
327
360
|
|
328
361
|
# Adds the root node to the tree, returning the new item.
|
@@ -376,7 +409,7 @@ module Wx
|
|
376
409
|
# @param style [Integer]
|
377
410
|
# @param validator [Wx::Validator]
|
378
411
|
# @param name [String]
|
379
|
-
# @return [
|
412
|
+
# @return [Boolean]
|
380
413
|
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TreeCtrlNameStr) end
|
381
414
|
|
382
415
|
# Deletes the specified item.
|
@@ -399,8 +432,8 @@ module Wx
|
|
399
432
|
def delete_children(item) end
|
400
433
|
|
401
434
|
# Enable or disable a beep if there is no match for the currently entered text when searching for the item from keyboard.
|
402
|
-
# The default is to not beep in this case except in
|
403
|
-
# @param on [
|
435
|
+
# The default is to not beep in this case except in wxMSW where the beep is always generated by the native control and cannot be disabled, i.e. calls to this function do nothing there.
|
436
|
+
# @param on [Boolean]
|
404
437
|
# @return [void]
|
405
438
|
def enable_bell_on_no_match(on=true) end
|
406
439
|
|
@@ -409,7 +442,7 @@ module Wx
|
|
409
442
|
# This function is currently supported under Windows only.
|
410
443
|
# @see Wx::TreeCtrl#edit_label
|
411
444
|
# @param item [Wx::TreeItemId]
|
412
|
-
# @param discardChanges [
|
445
|
+
# @param discardChanges [Boolean]
|
413
446
|
# @return [void]
|
414
447
|
def end_edit_label(item, discardChanges=false) end
|
415
448
|
|
@@ -439,15 +472,15 @@ module Wx
|
|
439
472
|
# Notice that the rectangle coordinates are logical, not physical ones. So, for example, the x coordinate may be negative if the tree has a horizontal scrollbar and its position is not 0.
|
440
473
|
# @param item [Wx::TreeItemId]
|
441
474
|
# @param rect [Wx::Rect]
|
442
|
-
# @param textOnly [
|
443
|
-
# @return [
|
475
|
+
# @param textOnly [Boolean]
|
476
|
+
# @return [Boolean]
|
444
477
|
def get_bounding_rect(item, rect, textOnly=false) end
|
445
478
|
alias_method :bounding_rect, :get_bounding_rect
|
446
479
|
|
447
480
|
# Returns the number of items in the branch.
|
448
481
|
# If recursively is true, returns the total number of descendants, otherwise only one level of children is counted.
|
449
482
|
# @param item [Wx::TreeItemId]
|
450
|
-
# @param recursively [
|
483
|
+
# @param recursively [Boolean]
|
451
484
|
# @return [Integer]
|
452
485
|
def get_children_count(item, recursively=true) end
|
453
486
|
alias_method :children_count, :get_children_count
|
@@ -459,7 +492,7 @@ module Wx
|
|
459
492
|
|
460
493
|
# Returns the edit control being currently used to edit a label.
|
461
494
|
# Returns NULL if no label is being edited.
|
462
|
-
# This is currently only implemented for
|
495
|
+
# This is currently only implemented for wxMSW.
|
463
496
|
# @return [Wx::TextCtrl]
|
464
497
|
def get_edit_control; end
|
465
498
|
alias_method :edit_control, :get_edit_control
|
@@ -519,9 +552,13 @@ module Wx
|
|
519
552
|
|
520
553
|
# Gets the specified item image.
|
521
554
|
# The value of which may be:
|
522
|
-
#
|
555
|
+
#
|
556
|
+
# - {Wx::TreeItemIcon::TreeItemIcon_Normal}: to get the normal item image.
|
557
|
+
# - {Wx::TreeItemIcon::TreeItemIcon_Selected}: to get the selected item image (i.e. the image which is shown when the item is currently selected).
|
558
|
+
# - {Wx::TreeItemIcon::TreeItemIcon_Expanded}: to get the expanded image (this only makes sense for items which have children - then this image is shown when the item is expanded and the normal image is shown when it is collapsed).
|
559
|
+
# - {Wx::TreeItemIcon::TreeItemIcon_SelectedExpanded}: to get the selected expanded image (which is shown when an expanded item is currently selected).
|
523
560
|
# @param item [Wx::TreeItemId]
|
524
|
-
# @param which [TreeItemIcon]
|
561
|
+
# @param which [Wx::TreeItemIcon]
|
525
562
|
# @return [Integer]
|
526
563
|
def get_item_image(item, which=Wx::TreeItemIcon::TreeItemIcon_Normal) end
|
527
564
|
alias_method :item_image, :get_item_image
|
@@ -593,7 +630,7 @@ module Wx
|
|
593
630
|
# Returns true if the control will use a quick calculation for the best size, looking only at the first and last items.
|
594
631
|
# The default is false.
|
595
632
|
# @see Wx::TreeCtrl#set_quick_best_size
|
596
|
-
# @return [
|
633
|
+
# @return [Boolean]
|
597
634
|
def get_quick_best_size; end
|
598
635
|
alias_method :quick_best_size, :get_quick_best_size
|
599
636
|
|
@@ -616,7 +653,17 @@ module Wx
|
|
616
653
|
# Calculates which (if any) item is under the given point, returning the tree item id at this point plus extra information flags.
|
617
654
|
# flags is a bitlist of the following:
|
618
655
|
#
|
619
|
-
# - {Wx::TREE_HITTEST_ABOVE}: Above the client area
|
656
|
+
# - {Wx::TREE_HITTEST_ABOVE}: Above the client area.
|
657
|
+
# - {Wx::TREE_HITTEST_BELOW}: Below the client area.
|
658
|
+
# - {Wx::TREE_HITTEST_NOWHERE}: In the client area but below the last item.
|
659
|
+
# - {Wx::TREE_HITTEST_ONITEMBUTTON}: On the button associated with an item.
|
660
|
+
# - {Wx::TREE_HITTEST_ONITEMICON}: On the bitmap associated with an item.
|
661
|
+
# - {Wx::TREE_HITTEST_ONITEMINDENT}: In the indentation associated with an item.
|
662
|
+
# - {Wx::TREE_HITTEST_ONITEMLABEL}: On the label (string) associated with an item.
|
663
|
+
# - {Wx::TREE_HITTEST_ONITEMRIGHT}: In the area to the right of an item.
|
664
|
+
# - {Wx::TREE_HITTEST_ONITEMSTATEICON}: On the state icon for a tree view item that is in a user-defined state.
|
665
|
+
# - {Wx::TREE_HITTEST_TOLEFT}: To the right of the client area.
|
666
|
+
# - {Wx::TREE_HITTEST_TORIGHT}: To the left of the client area.
|
620
667
|
# @param point [Array(Integer, Integer), Wx::Point]
|
621
668
|
# @return [Array(Wx::TreeItemId,Integer)]
|
622
669
|
def hit_test(point) end
|
@@ -636,36 +683,36 @@ module Wx
|
|
636
683
|
#
|
637
684
|
# @see Wx::TreeCtrl#set_item_bold
|
638
685
|
# @param item [Wx::TreeItemId]
|
639
|
-
# @return [
|
686
|
+
# @return [Boolean]
|
640
687
|
def is_bold(item) end
|
641
688
|
alias_method :bold?, :is_bold
|
642
689
|
|
643
690
|
# Returns true if the control is empty (i.e. has no items, even no root one).
|
644
|
-
# @return [
|
691
|
+
# @return [Boolean]
|
645
692
|
def is_empty; end
|
646
693
|
alias_method :empty?, :is_empty
|
647
694
|
|
648
695
|
# Returns true if the item is expanded (only makes sense if it has children).
|
649
696
|
# @param item [Wx::TreeItemId]
|
650
|
-
# @return [
|
697
|
+
# @return [Boolean]
|
651
698
|
def is_expanded(item) end
|
652
699
|
alias_method :expanded?, :is_expanded
|
653
700
|
|
654
701
|
# Returns true if the item is selected.
|
655
702
|
# @param item [Wx::TreeItemId]
|
656
|
-
# @return [
|
703
|
+
# @return [Boolean]
|
657
704
|
def is_selected(item) end
|
658
705
|
alias_method :selected?, :is_selected
|
659
706
|
|
660
707
|
# Returns true if the item is visible on the screen.
|
661
708
|
# @param item [Wx::TreeItemId]
|
662
|
-
# @return [
|
709
|
+
# @return [Boolean]
|
663
710
|
def is_visible(item) end
|
664
711
|
alias_method :visible?, :is_visible
|
665
712
|
|
666
713
|
# Returns true if the item has children.
|
667
714
|
# @param item [Wx::TreeItemId]
|
668
|
-
# @return [
|
715
|
+
# @return [Boolean]
|
669
716
|
def item_has_children(item) end
|
670
717
|
|
671
718
|
# Override this function in the derived class to change the sort order of the items in the tree control.
|
@@ -698,7 +745,7 @@ module Wx
|
|
698
745
|
# In multiple selection controls, can be also used to deselect a currently selected item if the value of select is false.
|
699
746
|
# Notice that calling this method will generate {Wx::EVT_TREE_SEL_CHANGING} and {Wx::EVT_TREE_SEL_CHANGED} events and that the change could be vetoed by the former event handler.
|
700
747
|
# @param item [Wx::TreeItemId]
|
701
|
-
# @param select [
|
748
|
+
# @param select [Boolean]
|
702
749
|
# @return [void]
|
703
750
|
def select_item(item, select=true) end
|
704
751
|
|
@@ -709,7 +756,7 @@ module Wx
|
|
709
756
|
alias_method :indent=, :set_indent
|
710
757
|
|
711
758
|
# Sets the spacing for the tree control.
|
712
|
-
# Spacing is the number of horizontal pixels between the buttons and the state images. This has no effect under
|
759
|
+
# Spacing is the number of horizontal pixels between the buttons and the state images. This has no effect under wxMSW.
|
713
760
|
# @param spacing [Integer]
|
714
761
|
# @return [void]
|
715
762
|
def set_spacing(spacing) end
|
@@ -725,7 +772,7 @@ module Wx
|
|
725
772
|
#
|
726
773
|
# @see Wx::TreeCtrl#is_bold
|
727
774
|
# @param item [Wx::TreeItemId]
|
728
|
-
# @param bold [
|
775
|
+
# @param bold [Boolean]
|
729
776
|
# @return [void]
|
730
777
|
def set_item_bold(item, bold=true) end
|
731
778
|
alias_method :item_bold=, :set_item_bold
|
@@ -739,7 +786,7 @@ module Wx
|
|
739
786
|
|
740
787
|
# Gives the item the visual feedback for Drag'n'Drop actions, which is useful if something is dragged from the outside onto the tree control (as opposed to a DnD operation within the tree control, which already is implemented internally).
|
741
788
|
# @param item [Wx::TreeItemId]
|
742
|
-
# @param highlight [
|
789
|
+
# @param highlight [Boolean]
|
743
790
|
# @return [void]
|
744
791
|
def set_item_drop_highlight(item, highlight=true) end
|
745
792
|
alias_method :item_drop_highlight=, :set_item_drop_highlight
|
@@ -755,7 +802,7 @@ module Wx
|
|
755
802
|
# Force appearance of the button next to the item.
|
756
803
|
# This is useful to allow the user to expand the items which don't have any children now, but instead adding them only when needed, thus minimizing memory usage and loading time.
|
757
804
|
# @param item [Wx::TreeItemId]
|
758
|
-
# @param hasChildren [
|
805
|
+
# @param hasChildren [Boolean]
|
759
806
|
# @return [void]
|
760
807
|
def set_item_has_children(item, hasChildren=true) end
|
761
808
|
alias_method :item_has_children=, :set_item_has_children
|
@@ -764,13 +811,16 @@ module Wx
|
|
764
811
|
# See {Wx::TreeCtrl#get_item_image} for the description of the which parameter.
|
765
812
|
# @param item [Wx::TreeItemId]
|
766
813
|
# @param image [Integer]
|
767
|
-
# @param which [TreeItemIcon]
|
814
|
+
# @param which [Wx::TreeItemIcon]
|
768
815
|
# @return [void]
|
769
816
|
def set_item_image(item, image, which=Wx::TreeItemIcon::TreeItemIcon_Normal) end
|
770
817
|
|
771
818
|
# Sets the specified item state.
|
772
819
|
# The value of state may be an index into the state image list, or one of the special values:
|
773
|
-
#
|
820
|
+
#
|
821
|
+
# - {Wx::TREE_ITEMSTATE_NONE}: to disable the item state (the state image will be not displayed).
|
822
|
+
# - {Wx::TREE_ITEMSTATE_NEXT}: to set the next item state.
|
823
|
+
# - {Wx::TREE_ITEMSTATE_PREV}: to set the previous item state.
|
774
824
|
# @param item [Wx::TreeItemId]
|
775
825
|
# @param state [Integer]
|
776
826
|
# @return [void]
|
@@ -791,7 +841,7 @@ module Wx
|
|
791
841
|
# If true is passed, specifies that the control will use a quick calculation for the best size, looking only at the first and last items.
|
792
842
|
# Otherwise, it will look at all items. The default is false.
|
793
843
|
# @see Wx::TreeCtrl#get_quick_best_size
|
794
|
-
# @param quickBestSize [
|
844
|
+
# @param quickBestSize [Boolean]
|
795
845
|
# @return [void]
|
796
846
|
def set_quick_best_size(quickBestSize) end
|
797
847
|
alias_method :quick_best_size=, :set_quick_best_size
|
@@ -12,26 +12,47 @@ module Wx
|
|
12
12
|
#
|
13
13
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::TreeEvent} events.
|
14
14
|
# Event handler methods:
|
15
|
+
#
|
15
16
|
# - {Wx::EvtHandler#evt_tree_begin_drag}(id, meth = nil, &block): Begin dragging with the left mouse button. If you want to enable left-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default. Also notice that the control must have an associated image list (see SetImageList()) to drag its items under MSW.
|
17
|
+
#
|
16
18
|
# - {Wx::EvtHandler#evt_tree_begin_rdrag}(id, meth = nil, &block): Begin dragging with the right mouse button. If you want to enable right-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default.
|
19
|
+
#
|
17
20
|
# - {Wx::EvtHandler#evt_tree_end_drag}(id, meth = nil, &block): End dragging with the left or right mouse button.
|
21
|
+
#
|
18
22
|
# - {Wx::EvtHandler#evt_tree_begin_label_edit}(id, meth = nil, &block): Begin editing a label. This can be prevented by calling {Wx::TreeEvent#veto}.
|
23
|
+
#
|
19
24
|
# - {Wx::EvtHandler#evt_tree_end_label_edit}(id, meth = nil, &block): Finish editing a label. This can be prevented by calling {Wx::TreeEvent#veto}.
|
25
|
+
#
|
20
26
|
# - {Wx::EvtHandler#evt_tree_delete_item}(id, meth = nil, &block): Delete an item.
|
27
|
+
#
|
21
28
|
# - {Wx::EvtHandler#evt_tree_get_info}(id, meth = nil, &block): Request information from the application.
|
29
|
+
#
|
22
30
|
# - {Wx::EvtHandler#evt_tree_set_info}(id, meth = nil, &block): Information is being supplied.
|
31
|
+
#
|
23
32
|
# - {Wx::EvtHandler#evt_tree_item_activated}(id, meth = nil, &block): The item has been activated, i.e. chosen by double clicking it with mouse or from keyboard.
|
33
|
+
#
|
24
34
|
# - {Wx::EvtHandler#evt_tree_item_collapsed}(id, meth = nil, &block): The item has been collapsed.
|
35
|
+
#
|
25
36
|
# - {Wx::EvtHandler#evt_tree_item_collapsing}(id, meth = nil, &block): The item is being collapsed. This can be prevented by calling {Wx::TreeEvent#veto}.
|
37
|
+
#
|
26
38
|
# - {Wx::EvtHandler#evt_tree_item_expanded}(id, meth = nil, &block): The item has been expanded.
|
39
|
+
#
|
27
40
|
# - {Wx::EvtHandler#evt_tree_item_expanding}(id, meth = nil, &block): The item is being expanded. This can be prevented by calling {Wx::TreeEvent#veto}.
|
41
|
+
#
|
28
42
|
# - {Wx::EvtHandler#evt_tree_item_right_click}(id, meth = nil, &block): The user has clicked the item with the right mouse button.
|
43
|
+
#
|
29
44
|
# - {Wx::EvtHandler#evt_tree_item_middle_click}(id, meth = nil, &block): The user has clicked the item with the middle mouse button.
|
45
|
+
#
|
30
46
|
# - {Wx::EvtHandler#evt_tree_sel_changed}(id, meth = nil, &block): Selection has changed.
|
47
|
+
#
|
31
48
|
# - {Wx::EvtHandler#evt_tree_sel_changing}(id, meth = nil, &block): Selection is changing. This can be prevented by calling {Wx::TreeEvent#veto}.
|
49
|
+
#
|
32
50
|
# - {Wx::EvtHandler#evt_tree_key_down}(id, meth = nil, &block): A key has been pressed.
|
51
|
+
#
|
33
52
|
# - {Wx::EvtHandler#evt_tree_item_gettooltip}(id, meth = nil, &block): The opportunity to set the item tooltip is being given to the application (call {Wx::TreeEvent#set_tool_tip}). Windows only.
|
53
|
+
#
|
34
54
|
# - {Wx::EvtHandler#evt_tree_item_menu}(id, meth = nil, &block): The context menu for the selected item has been requested, either by a right click or by using the menu key.
|
55
|
+
#
|
35
56
|
# - {Wx::EvtHandler#evt_tree_state_image_click}(id, meth = nil, &block): The state image has been clicked.
|
36
57
|
#
|
37
58
|
# ===
|
@@ -43,10 +64,10 @@ module Wx
|
|
43
64
|
class TreeEvent < NotifyEvent
|
44
65
|
|
45
66
|
# Constructor, used by wxWidgets itself only.
|
46
|
-
# @param commandType [
|
67
|
+
# @param commandType [Wx::CommandLinkButton::EventType]
|
47
68
|
# @param tree [Wx::TreeCtrl]
|
48
69
|
# @param item [Wx::TreeItemId]
|
49
|
-
# @return [TreeEvent]
|
70
|
+
# @return [Wx::TreeEvent]
|
50
71
|
def initialize(commandType, tree, item=(Wx::TreeItemId.new())) end
|
51
72
|
|
52
73
|
# Returns the item.
|
@@ -84,7 +105,7 @@ module Wx
|
|
84
105
|
|
85
106
|
# Returns true if the label edit was cancelled.
|
86
107
|
# This should be called from within an EVT_TREE_END_LABEL_EDIT handler.
|
87
|
-
# @return [
|
108
|
+
# @return [Boolean]
|
88
109
|
def is_edit_cancelled; end
|
89
110
|
alias_method :edit_cancelled?, :is_edit_cancelled
|
90
111
|
|
data/lib/wx/doc/gen/treebook.rb
CHANGED
@@ -30,9 +30,13 @@ module Wx
|
|
30
30
|
#
|
31
31
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::BookCtrlEvent} events.
|
32
32
|
# Event handler methods for events emitted by this class:
|
33
|
+
#
|
33
34
|
# - {Wx::EvtHandler#evt_treebook_page_changed}(id, meth = nil, &block): The page selection was changed. Processes a {Wx::EVT_TREEBOOK_PAGE_CHANGED} event.
|
35
|
+
#
|
34
36
|
# - {Wx::EvtHandler#evt_treebook_page_changing}(id, meth = nil, &block): The page selection is about to be changed. Processes a {Wx::EVT_TREEBOOK_PAGE_CHANGING} event. This event can be {Wx::vetoed}.
|
37
|
+
#
|
35
38
|
# - {Wx::EvtHandler#evt_treebook_node_collapsed}(id, meth = nil, &block): The page node is going to be collapsed. Processes a {Wx::EVT_TREEBOOK_NODE_COLLAPSED} event.
|
39
|
+
#
|
36
40
|
# - {Wx::EvtHandler#evt_treebook_node_expanded}(id, meth = nil, &block): The page node is going to be expanded. Processes a {Wx::EVT_TREEBOOK_NODE_EXPANDED} event.
|
37
41
|
#
|
38
42
|
# ===
|
@@ -51,7 +55,7 @@ module Wx
|
|
51
55
|
|
52
56
|
# @overload initialize()
|
53
57
|
# Default constructor.
|
54
|
-
# @return [Treebook]
|
58
|
+
# @return [Wx::Treebook]
|
55
59
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=(''))
|
56
60
|
# Creates an empty {Wx::Treebook}.
|
57
61
|
# @param parent [Wx::Window] The parent window. Must be non-NULL.
|
@@ -60,30 +64,30 @@ module Wx
|
|
60
64
|
# @param size [Array(Integer, Integer), Wx::Size] The window size.
|
61
65
|
# @param style [Integer] The window style. See {Wx::Notebook}.
|
62
66
|
# @param name [String] The name of the control (used only under Motif).
|
63
|
-
# @return [Treebook]
|
67
|
+
# @return [Wx::Treebook]
|
64
68
|
def initialize(*args) end
|
65
69
|
|
66
70
|
# Adds a new page.
|
67
71
|
# The page is placed at the topmost level after all other pages. NULL could be specified for page to create an empty page.
|
68
72
|
# @param page [Wx::Window]
|
69
73
|
# @param text [String]
|
70
|
-
# @param bSelect [
|
74
|
+
# @param bSelect [Boolean]
|
71
75
|
# @param imageId [Integer]
|
72
|
-
# @return [
|
76
|
+
# @return [Boolean]
|
73
77
|
def add_page(page, text, bSelect=false, imageId=Wx::NOT_FOUND) end
|
74
78
|
|
75
79
|
# Adds a new child-page to the last top-level page.
|
76
80
|
# NULL could be specified for page to create an empty page.
|
77
81
|
# @param page [Wx::Window]
|
78
82
|
# @param text [String]
|
79
|
-
# @param bSelect [
|
83
|
+
# @param bSelect [Boolean]
|
80
84
|
# @param imageId [Integer]
|
81
|
-
# @return [
|
85
|
+
# @return [Boolean]
|
82
86
|
def add_sub_page(page, text, bSelect=false, imageId=Wx::NOT_FOUND) end
|
83
87
|
|
84
88
|
# Shortcut for {Wx::Treebook#expand_node}( pageId, false ).
|
85
89
|
# @param pageId [Integer]
|
86
|
-
# @return [
|
90
|
+
# @return [Boolean]
|
87
91
|
def collapse_node(pageId) end
|
88
92
|
|
89
93
|
# Creates a treebook control.
|
@@ -94,20 +98,20 @@ module Wx
|
|
94
98
|
# @param size [Array(Integer, Integer), Wx::Size]
|
95
99
|
# @param style [Integer]
|
96
100
|
# @param name [String]
|
97
|
-
# @return [
|
101
|
+
# @return [Boolean]
|
98
102
|
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=('')) end
|
99
103
|
|
100
104
|
# Deletes the page at the specified position and all its children.
|
101
105
|
# Could trigger page selection change in a case when selected page is removed. In that case its parent is selected (or the next page if no parent).
|
102
106
|
# @param pagePos [Integer]
|
103
|
-
# @return [
|
107
|
+
# @return [Boolean]
|
104
108
|
def delete_page(pagePos) end
|
105
109
|
|
106
110
|
# Expands (collapses) the pageId node.
|
107
111
|
# Returns the previous state. May generate page changing events (if selected page is under the collapsed branch, then its parent is autoselected).
|
108
112
|
# @param pageId [Integer]
|
109
|
-
# @param expand [
|
110
|
-
# @return [
|
113
|
+
# @param expand [Boolean]
|
114
|
+
# @return [Boolean]
|
111
115
|
def expand_node(pageId, expand=true) end
|
112
116
|
|
113
117
|
# Returns the parent page of the given one or {Wx::NOT_FOUND} if this is a top-level page.
|
@@ -127,9 +131,9 @@ module Wx
|
|
127
131
|
# @param pagePos [Integer]
|
128
132
|
# @param page [Wx::Window]
|
129
133
|
# @param text [String]
|
130
|
-
# @param bSelect [
|
134
|
+
# @param bSelect [Boolean]
|
131
135
|
# @param imageId [Integer]
|
132
|
-
# @return [
|
136
|
+
# @return [Boolean]
|
133
137
|
def insert_page(pagePos, page, text, bSelect=false, imageId=Wx::NOT_FOUND) end
|
134
138
|
|
135
139
|
# Inserts a sub page under the specified page.
|
@@ -137,14 +141,14 @@ module Wx
|
|
137
141
|
# @param pagePos [Integer]
|
138
142
|
# @param page [Wx::Window]
|
139
143
|
# @param text [String]
|
140
|
-
# @param bSelect [
|
144
|
+
# @param bSelect [Boolean]
|
141
145
|
# @param imageId [Integer]
|
142
|
-
# @return [
|
146
|
+
# @return [Boolean]
|
143
147
|
def insert_sub_page(pagePos, page, text, bSelect=false, imageId=Wx::NOT_FOUND) end
|
144
148
|
|
145
149
|
# Returns true if the page represented by pageId is expanded.
|
146
150
|
# @param pageId [Integer]
|
147
|
-
# @return [
|
151
|
+
# @return [Boolean]
|
148
152
|
def is_node_expanded(pageId) end
|
149
153
|
alias_method :node_expanded?, :is_node_expanded
|
150
154
|
|
@@ -9,6 +9,7 @@ module Wx
|
|
9
9
|
# {Wx::UIActionSimulator} is a class used to simulate user interface actions such as a mouse click or a key press.
|
10
10
|
# Common usage for this class would be to provide playback and record (aka macro recording) functionality for users, or to drive unit tests by simulating user sessions.
|
11
11
|
# See the wxUIActionSimulator Sample for an example of using this class.
|
12
|
+
# This class currently doesn't work when using Wayland with wxGTK.
|
12
13
|
#
|
13
14
|
# ===
|
14
15
|
#
|
@@ -17,39 +18,39 @@ module Wx
|
|
17
18
|
class UIActionSimulator < ::Object
|
18
19
|
|
19
20
|
# Default constructor.
|
20
|
-
# @return [UIActionSimulator]
|
21
|
+
# @return [Wx::UIActionSimulator]
|
21
22
|
def initialize; end
|
22
23
|
|
23
24
|
# @overload mouse_move(x, y)
|
24
25
|
# Move the mouse to the specified coordinates.
|
25
26
|
# @param x [Integer] x coordinate to move to, in screen coordinates.
|
26
27
|
# @param y [Integer] y coordinate to move to, in screen coordinates.
|
27
|
-
# @return [
|
28
|
+
# @return [Boolean]
|
28
29
|
# @overload mouse_move(point)
|
29
30
|
# Move the mouse to the specified coordinates.
|
30
31
|
# @param point [Array(Integer, Integer), Wx::Point] Point to move to, in screen coordinates.
|
31
|
-
# @return [
|
32
|
+
# @return [Boolean]
|
32
33
|
def mouse_move(*args) end
|
33
34
|
|
34
35
|
# Press a mouse button.
|
35
|
-
# @param button [Integer] Button to press. Valid constants are {Wx::MOUSE_BTN_LEFT}, {Wx::MOUSE_BTN_MIDDLE}, and {Wx::MOUSE_BTN_RIGHT}.
|
36
|
-
# @return [
|
37
|
-
def mouse_down(button=Wx::MOUSE_BTN_LEFT) end
|
36
|
+
# @param button [Integer] Button to press. Valid constants are {Wx::MouseButton::MOUSE_BTN_LEFT}, {Wx::MouseButton::MOUSE_BTN_MIDDLE}, and {Wx::MouseButton::MOUSE_BTN_RIGHT}.
|
37
|
+
# @return [Boolean]
|
38
|
+
def mouse_down(button=Wx::MouseButton::MOUSE_BTN_LEFT) end
|
38
39
|
|
39
40
|
# Release a mouse button.
|
40
41
|
# @param button [Integer] Button to press. See {Wx::UIActionSimulator#mouse_down} for a list of valid constants.
|
41
|
-
# @return [
|
42
|
-
def mouse_up(button=Wx::MOUSE_BTN_LEFT) end
|
42
|
+
# @return [Boolean]
|
43
|
+
def mouse_up(button=Wx::MouseButton::MOUSE_BTN_LEFT) end
|
43
44
|
|
44
45
|
# Click a mouse button.
|
45
46
|
# @param button [Integer] Button to press. See {Wx::UIActionSimulator#mouse_down} for a list of valid constants.
|
46
|
-
# @return [
|
47
|
-
def mouse_click(button=Wx::MOUSE_BTN_LEFT) end
|
47
|
+
# @return [Boolean]
|
48
|
+
def mouse_click(button=Wx::MouseButton::MOUSE_BTN_LEFT) end
|
48
49
|
|
49
50
|
# Double-click a mouse button.
|
50
51
|
# @param button [Integer] Button to press. See {Wx::UIActionSimulator#mouse_down} for a list of valid constants.
|
51
|
-
# @return [
|
52
|
-
def mouse_dbl_click(button=Wx::MOUSE_BTN_LEFT) end
|
52
|
+
# @return [Boolean]
|
53
|
+
def mouse_dbl_click(button=Wx::MouseButton::MOUSE_BTN_LEFT) end
|
53
54
|
|
54
55
|
# Perform a drag and drop operation.
|
55
56
|
# @param x1 [Integer] x start coordinate, in screen coordinates.
|
@@ -57,26 +58,26 @@ module Wx
|
|
57
58
|
# @param x2 [Integer] x destination coordinate, in screen coordinates.
|
58
59
|
# @param y2 [Integer] y destination coordinate, in screen coordinates.
|
59
60
|
# @param button [Integer] Button to press. See {Wx::UIActionSimulator#mouse_down} for a list of valid constants.
|
60
|
-
# @return [
|
61
|
-
def mouse_drag_drop(x1, y1, x2, y2, button=Wx::MOUSE_BTN_LEFT) end
|
61
|
+
# @return [Boolean]
|
62
|
+
def mouse_drag_drop(x1, y1, x2, y2, button=Wx::MouseButton::MOUSE_BTN_LEFT) end
|
62
63
|
|
63
64
|
# Press a key.
|
64
65
|
# If you are using modifiers then it needs to be paired with an identical KeyUp or the modifiers will not be released (MSW and macOS).
|
65
66
|
# @param keycode [Integer] Key to operate on, as an integer. It is interpreted as a {Wx::KeyCode}.
|
66
67
|
# @param modifiers [Integer] A combination of {Wx::KeyModifier} flags to be pressed with the given keycode.
|
67
|
-
# @return [
|
68
|
+
# @return [Boolean]
|
68
69
|
def key_down(keycode, modifiers=Wx::KeyModifier::MOD_NONE) end
|
69
70
|
|
70
71
|
# Release a key.
|
71
72
|
# @param keycode [Integer] Key to operate on, as an integer. It is interpreted as a {Wx::KeyCode}.
|
72
73
|
# @param modifiers [Integer] A combination of {Wx::KeyModifier} flags to be pressed with the given keycode.
|
73
|
-
# @return [
|
74
|
+
# @return [Boolean]
|
74
75
|
def key_up(keycode, modifiers=Wx::KeyModifier::MOD_NONE) end
|
75
76
|
|
76
77
|
# Press and release a key.
|
77
78
|
# @param keycode [Integer] Key to operate on, as an integer. It is interpreted as a {Wx::KeyCode}.
|
78
79
|
# @param modifiers [Integer] A combination of {Wx::KeyModifier} flags to be pressed with the given keycode.
|
79
|
-
# @return [
|
80
|
+
# @return [Boolean]
|
80
81
|
def char(keycode, modifiers=Wx::KeyModifier::MOD_NONE) end
|
81
82
|
|
82
83
|
# Simulate selection of an item with the given text.
|
@@ -85,13 +86,13 @@ module Wx
|
|
85
86
|
#
|
86
87
|
# true if the item text was successfully selected or false if the currently focused window is not one of the controls allowing item selection or if the item with the given text was not found in it.
|
87
88
|
# @param text [String] The text of the item to select.
|
88
|
-
# @return [
|
89
|
+
# @return [Boolean]
|
89
90
|
def select(text) end
|
90
91
|
|
91
92
|
# Emulate typing in the keys representing the given string.
|
92
93
|
# Currently only the ASCII letters are universally supported. Digits and punctuation characters can be used with the standard QWERTY (US) keyboard layout but may not work with other layouts.
|
93
94
|
# @param text [String] The string, containing only US ASCII characters, to type.
|
94
|
-
# @return [
|
95
|
+
# @return [Boolean]
|
95
96
|
def text(text) end
|
96
97
|
|
97
98
|
end # UIActionSimulator
|