wxruby3 0.9.2-x64-mingw-ucrt → 0.9.4-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 +35 -29
- data/README.md +24 -15
- 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/core/bitmap_combobox.rb +17 -21
- data/lib/wx/core/book_ctrl_base.rb +16 -0
- data/lib/wx/core/combobox.rb +13 -3
- data/lib/wx/core/config.rb +454 -83
- data/lib/wx/core/controlwithitems.rb +40 -130
- data/lib/wx/core/enum.rb +17 -1
- data/lib/wx/core/event.rb +6 -1
- data/lib/wx/core/events/evt_list.rb +5 -4
- data/lib/wx/core/evthandler.rb +8 -2
- data/lib/wx/core/generic_validator.rb +312 -0
- data/lib/wx/core/listbox.rb +2 -2
- data/lib/wx/core/log.rb +1 -1
- data/lib/wx/core/notebook.rb +10 -8
- data/lib/wx/core/owner_drawn_combobox.rb +45 -0
- data/lib/wx/core/peristent_object.rb +15 -0
- data/lib/wx/core/persistence_manager.rb +39 -0
- data/lib/wx/core/persistent_window.rb +16 -0
- data/lib/wx/core/size.rb +4 -0
- data/lib/wx/core/sizer.rb +1 -2
- data/lib/wx/core/standard_paths.rb +22 -0
- data/lib/wx/core/text_entry.rb +4 -1
- data/lib/wx/core/top_level_window.rb +16 -0
- data/lib/wx/core/treebook.rb +18 -0
- data/lib/wx/core/validator.rb +70 -5
- data/lib/wx/core/window.rb +3 -7
- data/lib/wx/core.rb +4 -0
- data/lib/wx/doc/art_locator.rb +1 -0
- data/lib/wx/doc/book_ctrl_base.rb +19 -0
- data/lib/wx/doc/comboctrl.rb +18 -0
- data/lib/wx/doc/config.rb +101 -41
- data/lib/wx/doc/controlwithitems.rb +16 -0
- data/lib/wx/doc/date_picker_ctrl.rb +23 -0
- data/lib/wx/doc/editable_listbox.rb +44 -0
- data/lib/wx/doc/enum.rb +15 -0
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/extra/12_client_data.md +89 -0
- data/lib/wx/doc/extra/13_validators.md +139 -0
- data/lib/wx/doc/extra/14_config.md +101 -0
- data/lib/wx/doc/extra/15_persistence.md +148 -0
- data/lib/wx/doc/gdi_common.rb +4 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +25 -0
- data/lib/wx/doc/gen/accelerator.rb +7 -1
- data/lib/wx/doc/gen/accessible.rb +13 -0
- data/lib/wx/doc/gen/activity_indicator.rb +7 -0
- data/lib/wx/doc/gen/animation.rb +12 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +10 -0
- data/lib/wx/doc/gen/any_button.rb +17 -1
- data/lib/wx/doc/gen/app.rb +35 -1
- data/lib/wx/doc/gen/app_traits.rb +38 -5
- data/lib/wx/doc/gen/art_provider.rb +14 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +24 -1
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +9 -1
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -1
- data/lib/wx/doc/gen/aui/aui_notebook.rb +20 -2
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +30 -1
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +11 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -0
- data/lib/wx/doc/gen/banner_window.rb +7 -0
- data/lib/wx/doc/gen/bitmap.rb +64 -3
- data/lib/wx/doc/gen/bitmap_button.rb +6 -1
- data/lib/wx/doc/gen/bitmap_combo_box.rb +9 -3
- data/lib/wx/doc/gen/book_ctrl_base.rb +17 -2
- data/lib/wx/doc/gen/book_ctrl_event.rb +3 -1
- data/lib/wx/doc/gen/box_sizer.rb +5 -0
- data/lib/wx/doc/gen/brush.rb +16 -1
- data/lib/wx/doc/gen/busy_info.rb +8 -0
- data/lib/wx/doc/gen/button.rb +11 -3
- data/lib/wx/doc/gen/calculate_layout_event.rb +4 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +22 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -0
- data/lib/wx/doc/gen/calendar_event.rb +3 -1
- data/lib/wx/doc/gen/caret.rb +3 -0
- data/lib/wx/doc/gen/check_box.rb +10 -0
- data/lib/wx/doc/gen/check_list_box.rb +3 -0
- data/lib/wx/doc/gen/choice.rb +14 -2
- data/lib/wx/doc/gen/choicebook.rb +1 -0
- data/lib/wx/doc/gen/client_dc.rb +1 -0
- data/lib/wx/doc/gen/clipboard.rb +9 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +3 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +1 -0
- data/lib/wx/doc/gen/colour.rb +20 -0
- data/lib/wx/doc/gen/colour_dialog.rb +10 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +4 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +1 -0
- data/lib/wx/doc/gen/combo_box.rb +20 -1
- data/lib/wx/doc/gen/combo_ctrl.rb +54 -295
- data/lib/wx/doc/gen/command_link_button.rb +8 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -1
- data/lib/wx/doc/gen/control.rb +12 -0
- data/lib/wx/doc/gen/control_with_items.rb +45 -9
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/cursor.rb +4 -0
- data/lib/wx/doc/gen/data_format.rb +1 -0
- data/lib/wx/doc/gen/data_object.rb +27 -5
- data/lib/wx/doc/gen/date_event.rb +2 -1
- data/lib/wx/doc/gen/date_picker_ctrl.rb +7 -1
- data/lib/wx/doc/gen/dc.rb +87 -3
- data/lib/wx/doc/gen/dial_up_event.rb +2 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +12 -0
- data/lib/wx/doc/gen/dialog.rb +42 -3
- data/lib/wx/doc/gen/dir_dialog.rb +6 -1
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +5 -0
- data/lib/wx/doc/gen/drag_drop.rb +20 -0
- data/lib/wx/doc/gen/drag_image.rb +7 -0
- data/lib/wx/doc/gen/editable_list_box.rb +5 -3
- data/lib/wx/doc/gen/event.rb +26 -11
- data/lib/wx/doc/gen/event_blocker.rb +2 -1
- data/lib/wx/doc/gen/event_filter.rb +3 -2
- data/lib/wx/doc/gen/event_list.rb +4 -4
- data/lib/wx/doc/gen/events.rb +165 -26
- data/lib/wx/doc/gen/evt_handler.rb +40 -2
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -0
- data/lib/wx/doc/gen/file_ctrl.rb +11 -2
- data/lib/wx/doc/gen/file_ctrl_event.rb +5 -1
- data/lib/wx/doc/gen/file_dialog.rb +13 -0
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +12 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +11 -2
- data/lib/wx/doc/gen/file_dir_picker_event.rb +2 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +4 -0
- data/lib/wx/doc/gen/file_system.rb +17 -1
- data/lib/wx/doc/gen/find_dialog_event.rb +2 -1
- data/lib/wx/doc/gen/find_replace_data.rb +1 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +3 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +13 -0
- data/lib/wx/doc/gen/font.rb +75 -3
- data/lib/wx/doc/gen/font_data.rb +14 -0
- data/lib/wx/doc/gen/font_dialog.rb +6 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -0
- data/lib/wx/doc/gen/font_picker_event.rb +1 -0
- data/lib/wx/doc/gen/frame.rb +24 -7
- data/lib/wx/doc/gen/fs_file.rb +22 -0
- data/lib/wx/doc/gen/gauge.rb +8 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +5 -0
- data/lib/wx/doc/gen/gcdc.rb +2 -0
- data/lib/wx/doc/gen/gdi_common.rb +50 -8
- data/lib/wx/doc/gen/gdi_object.rb +1 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +7 -0
- data/lib/wx/doc/gen/graphics_context.rb +36 -7
- data/lib/wx/doc/gen/graphics_object.rb +24 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +14 -4
- 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 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +2 -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 +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +9 -2
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +6 -2
- 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 +229 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +4 -1
- data/lib/wx/doc/gen/grid/grid_event.rb +4 -1
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_size_event.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_string_table.rb +7 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +27 -1
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +24 -4
- data/lib/wx/doc/gen/grid_sizer.rb +11 -0
- data/lib/wx/doc/gen/gui_event_loop.rb +12 -2
- data/lib/wx/doc/gen/header_ctrl.rb +106 -6
- data/lib/wx/doc/gen/header_ctrl_event.rb +5 -1
- data/lib/wx/doc/gen/help_controller.rb +11 -0
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/html_cell.rb +25 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -1
- data/lib/wx/doc/gen/html/html_easy_printing.rb +13 -1
- data/lib/wx/doc/gen/html/html_help_controller.rb +18 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +8 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +1 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +49 -9
- data/lib/wx/doc/gen/html/html_printout.rb +7 -0
- data/lib/wx/doc/gen/html/html_window.rb +31 -0
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +2 -1
- data/lib/wx/doc/gen/hyperlink_event.rb +1 -0
- data/lib/wx/doc/gen/icon.rb +19 -1
- data/lib/wx/doc/gen/icon_location.rb +1 -0
- data/lib/wx/doc/gen/image.rb +67 -10
- data/lib/wx/doc/gen/image_list.rb +12 -2
- data/lib/wx/doc/gen/info_bar.rb +12 -0
- data/lib/wx/doc/gen/keyboard_state.rb +11 -0
- data/lib/wx/doc/gen/list_box.rb +20 -3
- data/lib/wx/doc/gen/list_ctrl.rb +89 -0
- data/lib/wx/doc/gen/list_event.rb +11 -1
- data/lib/wx/doc/gen/listbook.rb +1 -0
- data/lib/wx/doc/gen/locale.rb +22 -0
- data/lib/wx/doc/gen/log.rb +42 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +4 -1
- data/lib/wx/doc/gen/mdi_frame.rb +27 -4
- data/lib/wx/doc/gen/media_ctrl.rb +17 -0
- data/lib/wx/doc/gen/media_event.rb +2 -1
- data/lib/wx/doc/gen/memory_dc.rb +10 -0
- data/lib/wx/doc/gen/menu.rb +48 -7
- data/lib/wx/doc/gen/menu_bar.rb +32 -13
- data/lib/wx/doc/gen/menu_item.rb +26 -0
- data/lib/wx/doc/gen/message_dialog.rb +10 -0
- data/lib/wx/doc/gen/mini_frame.rb +5 -2
- data/lib/wx/doc/gen/mirror_dc.rb +1 -0
- data/lib/wx/doc/gen/mouse_state.rb +1 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +3 -1
- data/lib/wx/doc/gen/non_owned_window.rb +3 -0
- data/lib/wx/doc/gen/notebook.rb +11 -1
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +4 -0
- data/lib/wx/doc/gen/object.rb +3 -0
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +340 -0
- data/lib/wx/doc/gen/paint_dc.rb +1 -0
- data/lib/wx/doc/gen/palette.rb +5 -0
- data/lib/wx/doc/gen/panel.rb +10 -2
- data/lib/wx/doc/gen/pen.rb +30 -1
- data/lib/wx/doc/gen/persistence_manager.rb +135 -0
- data/lib/wx/doc/gen/persistent_object.rb +52 -0
- data/lib/wx/doc/gen/persistent_window.rb +116 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +4 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +6 -1
- data/lib/wx/doc/gen/pg/pg_editor.rb +61 -15
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +198 -81
- data/lib/wx/doc/gen/pg/pg_property.rb +129 -52
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +56 -14
- data/lib/wx/doc/gen/pg/property_grid_event.rb +16 -6
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +98 -37
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +29 -7
- data/lib/wx/doc/gen/pg/property_grid_page.rb +11 -4
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +7 -2
- data/lib/wx/doc/gen/picker_base.rb +11 -1
- data/lib/wx/doc/gen/platform_info.rb +31 -0
- data/lib/wx/doc/gen/popup_window.rb +5 -0
- data/lib/wx/doc/gen/progress_dialog.rb +4 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +7 -1
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +1 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -0
- data/lib/wx/doc/gen/prt/print_data.rb +27 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -0
- data/lib/wx/doc/gen/prt/printer.rb +42 -5
- data/lib/wx/doc/gen/prt/printer_dc.rb +2 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +9 -0
- data/lib/wx/doc/gen/radio_box.rb +19 -0
- data/lib/wx/doc/gen/radio_button.rb +9 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +63 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +23 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +35 -9
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +10 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +17 -7
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +11 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +25 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +4 -0
- data/lib/wx/doc/gen/rearrange_list.rb +9 -0
- data/lib/wx/doc/gen/region.rb +42 -13
- data/lib/wx/doc/gen/region_iterator.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +25 -8
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +41 -4
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +23 -11
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +74 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +6 -1
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +8 -0
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +6 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +4 -0
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +7 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +64 -4
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +51 -4
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +13 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +9 -4
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +2 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +1 -0
- data/lib/wx/doc/gen/sash_event.rb +5 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +10 -0
- data/lib/wx/doc/gen/sash_window.rb +3 -0
- data/lib/wx/doc/gen/screen_dc.rb +1 -0
- data/lib/wx/doc/gen/scroll_bar.rb +11 -2
- data/lib/wx/doc/gen/scrolled_canvas.rb +20 -4
- data/lib/wx/doc/gen/scrolled_control.rb +20 -4
- data/lib/wx/doc/gen/scrolled_window.rb +20 -4
- data/lib/wx/doc/gen/search_ctrl.rb +6 -0
- data/lib/wx/doc/gen/simplebook.rb +7 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +3 -1
- data/lib/wx/doc/gen/sizer.rb +79 -9
- data/lib/wx/doc/gen/sizer_item.rb +16 -2
- data/lib/wx/doc/gen/slider.rb +23 -0
- data/lib/wx/doc/gen/spin_button.rb +9 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +11 -0
- data/lib/wx/doc/gen/spin_ctrl_double.rb +7 -0
- data/lib/wx/doc/gen/spin_double_event.rb +4 -1
- data/lib/wx/doc/gen/spin_event.rb +2 -1
- data/lib/wx/doc/gen/splash_screen.rb +2 -0
- data/lib/wx/doc/gen/splitter_event.rb +10 -1
- data/lib/wx/doc/gen/splitter_window.rb +38 -14
- data/lib/wx/doc/gen/static_bitmap.rb +99 -2
- data/lib/wx/doc/gen/static_box.rb +6 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +3 -0
- data/lib/wx/doc/gen/static_line.rb +4 -0
- data/lib/wx/doc/gen/static_text.rb +5 -0
- data/lib/wx/doc/gen/status_bar.rb +17 -3
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +174 -6
- data/lib/wx/doc/gen/stc/styled_text_event.rb +27 -1
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +7 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +9 -0
- data/lib/wx/doc/gen/system_options.rb +8 -0
- data/lib/wx/doc/gen/system_settings.rb +7 -0
- data/lib/wx/doc/gen/task_bar_button.rb +12 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +5 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +2 -1
- data/lib/wx/doc/gen/text_attr.rb +27 -0
- data/lib/wx/doc/gen/text_ctrl.rb +27 -3
- data/lib/wx/doc/gen/text_entry.rb +43 -9
- data/lib/wx/doc/gen/text_entry_dialog.rb +12 -0
- data/lib/wx/doc/gen/text_validator.rb +16 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -0
- data/lib/wx/doc/gen/timer.rb +8 -0
- data/lib/wx/doc/gen/timer_event.rb +1 -0
- data/lib/wx/doc/gen/tip_provider.rb +5 -0
- data/lib/wx/doc/gen/toggle_button.rb +68 -0
- data/lib/wx/doc/gen/tool_bar.rb +57 -14
- data/lib/wx/doc/gen/tool_tip.rb +6 -0
- data/lib/wx/doc/gen/toolbook.rb +3 -0
- data/lib/wx/doc/gen/top_level_window.rb +34 -3
- data/lib/wx/doc/gen/tree_ctrl.rb +49 -0
- data/lib/wx/doc/gen/tree_event.rb +7 -1
- data/lib/wx/doc/gen/treebook.rb +9 -0
- data/lib/wx/doc/gen/ui_action_simulator.rb +4 -0
- data/lib/wx/doc/gen/utils.rb +55 -16
- data/lib/wx/doc/gen/v_list_box.rb +21 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +15 -0
- data/lib/wx/doc/gen/validator.rb +9 -13
- data/lib/wx/doc/gen/variant.rb +6 -0
- data/lib/wx/doc/gen/window.rb +260 -52
- data/lib/wx/doc/gen/window_dc.rb +2 -0
- data/lib/wx/doc/gen/window_disabler.rb +1 -0
- data/lib/wx/doc/gen/with_images.rb +7 -1
- data/lib/wx/doc/gen/wizard.rb +18 -0
- data/lib/wx/doc/gen/wizard_event.rb +3 -1
- data/lib/wx/doc/gen/wizard_page.rb +5 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +4 -0
- data/lib/wx/doc/gen/wrap_sizer.rb +5 -0
- data/lib/wx/doc/gen/xml_node.rb +14 -0
- data/lib/wx/doc/gen/xml_resource.rb +22 -0
- data/lib/wx/doc/generic_validator.rb +95 -0
- data/lib/wx/doc/html/simple_html_listbox.rb +22 -0
- data/lib/wx/doc/num_validator.rb +387 -0
- data/lib/wx/doc/owner_drawn_combobox.rb +96 -0
- data/lib/wx/doc/persistence_manager.rb +36 -0
- data/lib/wx/doc/persistent_object.rb +27 -0
- data/lib/wx/doc/pg/numeric_property_validator.rb +33 -0
- data/lib/wx/doc/static_bitmap.rb +25 -0
- data/lib/wx/doc/text_validator.rb +10 -0
- data/lib/wx/doc/top_level_window.rb +19 -0
- data/lib/wx/doc/treebook.rb +6 -1
- data/lib/wx/doc/validator.rb +113 -0
- data/lib/wx/doc/window.rb +30 -0
- data/lib/wx/html/events/evt_list.rb +0 -10
- data/lib/wx/html/simple_html_listbox.rb +24 -91
- data/lib/wx/keyword_defs.rb +34 -2
- data/lib/wx/rbn/ribbon_gallery.rb +0 -21
- 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/mingw.rb +12 -0
- data/samples/aui/aui.rb +1237 -1233
- data/samples/calendar/calendar.rb +293 -289
- data/samples/controls/get_item_sample.rb +83 -79
- data/samples/controls/htlbox.rb +331 -327
- data/samples/dialogs/dialogs.rb +682 -694
- data/samples/dialogs/wizard.rb +52 -55
- data/samples/dragdrop/dragdrop.rb +146 -142
- data/samples/drawing/bitmap.rb +29 -26
- data/samples/drawing/bitmap_image.rb +84 -80
- data/samples/drawing/graphics_drawing.rb +209 -205
- data/samples/drawing/image_prt.rb +344 -340
- data/samples/drawing/maths_images.rb +18 -1
- data/samples/drawing/rmagic_bitmap_image.rb +88 -84
- data/samples/etc/caret.rb +306 -0
- data/samples/etc/miniframe.rb +65 -60
- data/samples/etc/sash.rb +109 -105
- data/samples/etc/scrollwin.rb +86 -80
- data/samples/etc/system_settings.rb +216 -209
- data/samples/event/activation.rb +72 -67
- data/samples/event/event.rb +160 -153
- data/samples/event/threaded.rb +8 -1
- data/samples/event/update_ui_event.rb +67 -60
- data/samples/grid/grid.rb +188 -181
- data/samples/grid/gridtablebase.rb +136 -129
- data/samples/html/html.rb +208 -204
- data/samples/mdi/mdi.rb +59 -54
- data/samples/minimal/minimal.rb +54 -51
- data/samples/minimal/nothing.rb +1 -0
- data/samples/printing/printing.rb +367 -377
- data/samples/printing/printing2.rb +203 -198
- data/samples/propgrid/propgrid.rb +2312 -2308
- data/samples/propgrid/propgrid_minimal.rb +57 -50
- data/samples/ribbon/ribbon.rb +780 -774
- data/samples/sampler/ext.rb +0 -33
- data/samples/sampler/sample.rb +4 -9
- data/samples/sampler.rb +1 -1
- data/samples/splash/splash.rb +118 -116
- data/samples/text/rich_textctrl.rb +207 -201
- data/samples/text/richtext.rb +1409 -1405
- data/samples/text/scintilla.rb +137 -128
- data/samples/text/textctrl.rb +89 -83
- data/samples/text/unicode.rb +175 -168
- data/samples/treectrl/treectrl.rb +1430 -1426
- data/samples/widgets/activityindicator.rb +95 -0
- data/samples/widgets/art/widgets/activityindicator.xpm +278 -0
- data/samples/widgets/art/widgets/bmpbtn.xpm +37 -0
- data/samples/widgets/art/widgets/bmpcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/button.xpm +54 -0
- data/samples/widgets/art/widgets/checkbox.xpm +54 -0
- data/samples/{bigdemo/icons → widgets/art/widgets}/choice.xpm +1 -1
- data/samples/widgets/art/widgets/choicebk.xpm +54 -0
- data/samples/widgets/art/widgets/clrpicker.xpm +193 -0
- data/samples/widgets/art/widgets/combobox.xpm +54 -0
- data/samples/widgets/art/widgets/datepick.xpm +200 -0
- data/samples/widgets/art/widgets/dirctrl.xpm +54 -0
- data/samples/widgets/art/widgets/dirpicker.xpm +213 -0
- data/samples/widgets/art/widgets/filepicker.xpm +214 -0
- data/samples/widgets/art/widgets/fontpicker.xpm +185 -0
- data/samples/widgets/art/widgets/gauge.xpm +54 -0
- data/samples/widgets/art/widgets/header.xpm +54 -0
- data/samples/widgets/art/widgets/hyperlnk.xpm +54 -0
- data/samples/widgets/art/widgets/listbook.xpm +54 -0
- data/samples/widgets/art/widgets/listbox.xpm +54 -0
- data/samples/widgets/art/widgets/native.xpm +81 -0
- data/samples/widgets/art/widgets/notebook.xpm +54 -0
- data/samples/widgets/art/widgets/odcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/radiobox.xpm +54 -0
- data/samples/widgets/art/widgets/scrolbar.xpm +54 -0
- data/samples/widgets/art/widgets/slider.xpm +54 -0
- data/samples/widgets/art/widgets/spinbtn.xpm +40 -0
- data/samples/widgets/art/widgets/statbmp.xpm +40 -0
- data/samples/widgets/art/widgets/statbox.xpm +54 -0
- data/samples/widgets/art/widgets/stattext.xpm +54 -0
- data/samples/widgets/art/widgets/text.xpm +54 -0
- data/samples/widgets/art/widgets/timepick.xpm +207 -0
- data/samples/widgets/art/widgets/toggle.xpm +54 -0
- data/samples/widgets/art/widgets/toucan.png +0 -0
- data/samples/widgets/bmpcombobox.rb +651 -0
- data/samples/widgets/button.rb +462 -0
- data/samples/widgets/checkbox.rb +211 -0
- data/samples/widgets/choice.rb +287 -0
- data/samples/widgets/clrpicker.rb +156 -0
- data/samples/widgets/combobox.rb +516 -0
- data/samples/widgets/datepick.rb +215 -0
- data/samples/widgets/dirctrl.rb +265 -0
- data/samples/widgets/dirpicker.rb +158 -0
- data/samples/widgets/editlbox.rb +122 -0
- data/samples/widgets/filectrl.rb +216 -0
- data/samples/widgets/filepicker.rb +214 -0
- data/samples/widgets/fontpicker.rb +135 -0
- data/samples/widgets/gauge.rb +311 -0
- data/samples/widgets/headerctrl.rb +236 -0
- data/samples/widgets/hyperlink.rb +203 -0
- data/samples/widgets/itemcontainer.rb +185 -0
- data/samples/widgets/listbox.rb +473 -0
- data/samples/widgets/notebook.rb +488 -0
- data/samples/widgets/odcombobox.rb +608 -0
- data/samples/widgets/radiobox.rb +328 -0
- data/samples/widgets/searchctrl.rb +159 -0
- data/samples/widgets/slider.rb +594 -0
- data/samples/widgets/spinbtn.rb +443 -0
- data/samples/widgets/statbmp.rb +130 -0
- data/samples/widgets/static.rb +436 -0
- data/samples/widgets/textctrl.rb +700 -0
- data/samples/widgets/timepick.rb +148 -0
- data/samples/widgets/tn_widgets.png +0 -0
- data/samples/widgets/toggle.rb +385 -0
- data/samples/widgets/widgets.rb +1229 -0
- data/samples/xrc/custom_xrc_sample.rb +47 -41
- data/samples/xrc/xrc_sample.rb +53 -47
- data/tests/test_config.rb +207 -42
- data/tests/test_event_handling.rb +52 -34
- data/tests/test_events.rb +7 -0
- data/tests/test_item_data.rb +24 -0
- data/tests/test_persistence.rb +142 -0
- data/tests/test_sizer.rb +44 -1
- data/tests/test_validators.rb +805 -0
- metadata +103 -137
- data/lib/wx/core/choice.rb +0 -14
- data/lib/wx/core/combo_ctrl.rb +0 -110
- data/samples/bigdemo/About.rbw +0 -39
- data/samples/bigdemo/ColorPanel.rbw +0 -23
- data/samples/bigdemo/GridSimple.rbw +0 -78
- data/samples/bigdemo/MDIDemo.rbw +0 -57
- data/samples/bigdemo/PopupMenu.rbw +0 -146
- data/samples/bigdemo/ShapedWindow.rbw +0 -128
- data/samples/bigdemo/Sizers.rbw +0 -541
- data/samples/bigdemo/bigdemo.rb +0 -817
- data/samples/bigdemo/demoTemplate.rbw +0 -33
- data/samples/bigdemo/helpfile.htb +0 -0
- data/samples/bigdemo/icons/Test 015.jpg +0 -0
- data/samples/bigdemo/icons/Test 015.png +0 -0
- data/samples/bigdemo/icons/choice.bmp +0 -0
- data/samples/bigdemo/icons/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +0 -27
- data/samples/bigdemo/icons/copy.xpm +0 -25
- data/samples/bigdemo/icons/cut.xpm +0 -24
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +0 -27
- data/samples/bigdemo/icons/help.xpm +0 -25
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +0 -27
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +0 -44
- data/samples/bigdemo/icons/new.xpm +0 -24
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +0 -45
- data/samples/bigdemo/icons/open.xpm +0 -26
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +0 -38
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +0 -26
- data/samples/bigdemo/icons/print.xpm +0 -26
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +0 -27
- data/samples/bigdemo/icons/robert.xpm +0 -415
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +0 -25
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +0 -39
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +0 -42
- data/samples/bigdemo/icons/stattext.xpm +0 -24
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +0 -79
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +0 -27
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +0 -38
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +0 -38
- data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
- data/samples/bigdemo/icons/wxwin.ico +0 -0
- data/samples/bigdemo/icons/wxwin16x16.png +0 -0
- data/samples/bigdemo/icons/wxwin16x16.xpm +0 -25
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +0 -98
- data/samples/bigdemo/tips.txt +0 -7
- data/samples/bigdemo/utils.rb +0 -20
- data/samples/bigdemo/wxArtProvider.rbw +0 -282
- data/samples/bigdemo/wxBitmapButton.rbw +0 -65
- data/samples/bigdemo/wxButton.rbw +0 -64
- data/samples/bigdemo/wxCalendarCtrl.rbw +0 -59
- data/samples/bigdemo/wxCheckBox.rbw +0 -50
- data/samples/bigdemo/wxCheckListBox.rbw +0 -65
- data/samples/bigdemo/wxChoice.rbw +0 -47
- data/samples/bigdemo/wxChoicebook.rbw +0 -78
- data/samples/bigdemo/wxColourDialog.rbw +0 -33
- data/samples/bigdemo/wxComboBox.rbw +0 -77
- data/samples/bigdemo/wxCursor.rbw +0 -136
- data/samples/bigdemo/wxDialog.rbw +0 -74
- data/samples/bigdemo/wxDirDialog.rbw +0 -29
- data/samples/bigdemo/wxDragImage.rbw +0 -70
- data/samples/bigdemo/wxFileDialog.rbw +0 -37
- data/samples/bigdemo/wxFileDialog_Save.rbw +0 -35
- data/samples/bigdemo/wxFindReplaceDialog.rbw +0 -82
- data/samples/bigdemo/wxFontDialog.rbw +0 -200
- data/samples/bigdemo/wxFrame.rbw +0 -53
- data/samples/bigdemo/wxGauge.rbw +0 -65
- data/samples/bigdemo/wxGenericDirCtrl.rbw +0 -74
- data/samples/bigdemo/wxGrid.rbw +0 -66
- data/samples/bigdemo/wxHtmlHelpController.rbw +0 -52
- data/samples/bigdemo/wxListBox.rbw +0 -140
- data/samples/bigdemo/wxListCtrl_virtual.rbw +0 -112
- data/samples/bigdemo/wxMDIWindows.rbw +0 -50
- data/samples/bigdemo/wxMenu.rbw +0 -247
- data/samples/bigdemo/wxMessageDialog.rbw +0 -27
- data/samples/bigdemo/wxMiniFrame.rbw +0 -70
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +0 -29
- data/samples/bigdemo/wxNotebook.rbw +0 -136
- data/samples/bigdemo/wxProgressDialog.rbw +0 -43
- data/samples/bigdemo/wxRadioBox.rbw +0 -72
- data/samples/bigdemo/wxRadioButton.rbw +0 -125
- data/samples/bigdemo/wxSashWindow.rbw +0 -141
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +0 -57
- data/samples/bigdemo/wxScrolledWindow.rbw +0 -199
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +0 -33
- data/samples/bigdemo/wxSlider.rbw +0 -42
- data/samples/bigdemo/wxSpinButton.rbw +0 -50
- data/samples/bigdemo/wxSpinCtrl.rbw +0 -51
- data/samples/bigdemo/wxSplitterWindow.rbw +0 -63
- data/samples/bigdemo/wxStaticBitmap.rbw +0 -47
- data/samples/bigdemo/wxStaticText.rbw +0 -55
- data/samples/bigdemo/wxStatusBar.rbw +0 -126
- data/samples/bigdemo/wxTextCtrl.rbw +0 -149
- data/samples/bigdemo/wxTextEntryDialog.rbw +0 -31
- data/samples/bigdemo/wxToggleButton.rbw +0 -49
- data/samples/bigdemo/wxToolBar.rbw +0 -131
- data/samples/bigdemo/wxTreeCtrl.rbw +0 -191
- data/samples/caret/caret.rb +0 -298
- data/samples/caret/mondrian.xpm +0 -44
- data/samples/controls/books.rb +0 -189
- data/samples/controls/choice.xpm +0 -27
- data/samples/controls/combo.xpm +0 -27
- data/samples/controls/controls.rb +0 -1099
- data/samples/controls/gauge.xpm +0 -27
- data/samples/controls/list.xpm +0 -27
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +0 -44
- data/samples/controls/radio.xpm +0 -27
- data/samples/controls/stattext.xpm +0 -24
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/text.xpm +0 -27
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/etc/choice.rb +0 -87
- data/samples/etc/tn_choice.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +0 -44
- /data/samples/{caret → etc}/tn_caret.png +0 -0
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx::PG
|
8
8
|
|
9
9
|
# Basic property with boolean value.
|
10
|
+
#
|
10
11
|
# <b>Supported special attributes:</b>
|
11
12
|
#
|
12
13
|
# - {Wx::PG::PG_BOOL_USE_CHECKBOX}: Set to true to use check box editor instead of combo box.
|
@@ -22,24 +23,26 @@ module Wx::PG
|
|
22
23
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=false) end
|
23
24
|
|
24
25
|
# Converts property value into a text representation.
|
26
|
+
#
|
25
27
|
# <div class="wxrb-remark">
|
26
28
|
# <b>Remark:</b>
|
27
29
|
# <p>Default implementation calls {Wx::PG::BoolProperty#generate_composed_value}.
|
28
30
|
# </p>
|
29
|
-
# </div
|
31
|
+
# </div>
|
30
32
|
# @param value [Wx::Variant] Value to be converted.
|
31
33
|
# @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.
|
32
34
|
# @return [String]
|
33
35
|
def value_to_string(value, argFlags=0) end
|
34
36
|
|
35
37
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
38
|
+
#
|
36
39
|
# Returns true if resulting {Wx::Variant} value was different.
|
37
40
|
#
|
38
41
|
# <div class="wxrb-remark">
|
39
42
|
# <b>Remark:</b>
|
40
43
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
41
44
|
# </p>
|
42
|
-
# </div
|
45
|
+
# </div>
|
43
46
|
#
|
44
47
|
# 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).
|
45
48
|
# @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.
|
@@ -49,6 +52,7 @@ module Wx::PG
|
|
49
52
|
def string_to_value(variant, text, argFlags=0) end
|
50
53
|
|
51
54
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
55
|
+
#
|
52
56
|
# Returns true if resulting {Wx::Variant} value was different.
|
53
57
|
#
|
54
58
|
# <div class="wxrb-remark">
|
@@ -61,7 +65,7 @@ module Wx::PG
|
|
61
65
|
# - 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).
|
62
66
|
#
|
63
67
|
# </p>
|
64
|
-
# </div
|
68
|
+
# </div>
|
65
69
|
# @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.
|
66
70
|
# @param number [Integer] Integer to be translated into variant.
|
67
71
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
@@ -69,13 +73,14 @@ module Wx::PG
|
|
69
73
|
def int_to_value(variant, number, argFlags=0) end
|
70
74
|
|
71
75
|
# Reimplement this member function to add special handling for attributes of this property.
|
76
|
+
#
|
72
77
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
73
78
|
#
|
74
79
|
# <div class="wxrb-remark">
|
75
80
|
# <b>Remark:</b>
|
76
81
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
77
82
|
# </p>
|
78
|
-
# </div
|
83
|
+
# </div>
|
79
84
|
# @param name [String]
|
80
85
|
# @param value [Wx::Variant]
|
81
86
|
# @return [Boolean]
|
@@ -92,6 +97,7 @@ module Wx::PG
|
|
92
97
|
end # BoolProperty
|
93
98
|
|
94
99
|
# Property representing {Wx::DateTime}.
|
100
|
+
#
|
95
101
|
# <b>Supported special attributes:</b>
|
96
102
|
#
|
97
103
|
# - {Wx::PG::PG_DATE_FORMAT}: Determines displayed date format.
|
@@ -107,6 +113,7 @@ module Wx::PG
|
|
107
113
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::DateTime.new())) end
|
108
114
|
|
109
115
|
# This virtual function is called after m_value has been set.
|
116
|
+
#
|
110
117
|
# <div class="wxrb-remark">
|
111
118
|
# <b>Remark:</b>
|
112
119
|
# <p>
|
@@ -116,29 +123,31 @@ module Wx::PG
|
|
116
123
|
# - Default implementation does nothing.
|
117
124
|
#
|
118
125
|
# </p>
|
119
|
-
# </div
|
126
|
+
# </div>
|
120
127
|
# @return [void]
|
121
128
|
def on_set_value; end
|
122
129
|
|
123
130
|
# Converts property value into a text representation.
|
131
|
+
#
|
124
132
|
# <div class="wxrb-remark">
|
125
133
|
# <b>Remark:</b>
|
126
134
|
# <p>Default implementation calls {Wx::PG::DateProperty#generate_composed_value}.
|
127
135
|
# </p>
|
128
|
-
# </div
|
136
|
+
# </div>
|
129
137
|
# @param value [Wx::Variant] Value to be converted.
|
130
138
|
# @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.
|
131
139
|
# @return [String]
|
132
140
|
def value_to_string(value, argFlags=0) end
|
133
141
|
|
134
142
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
143
|
+
#
|
135
144
|
# Returns true if resulting {Wx::Variant} value was different.
|
136
145
|
#
|
137
146
|
# <div class="wxrb-remark">
|
138
147
|
# <b>Remark:</b>
|
139
148
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
140
149
|
# </p>
|
141
|
-
# </div
|
150
|
+
# </div>
|
142
151
|
#
|
143
152
|
# 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).
|
144
153
|
# @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.
|
@@ -148,13 +157,14 @@ module Wx::PG
|
|
148
157
|
def string_to_value(variant, text, argFlags=0) end
|
149
158
|
|
150
159
|
# Reimplement this member function to add special handling for attributes of this property.
|
160
|
+
#
|
151
161
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
152
162
|
#
|
153
163
|
# <div class="wxrb-remark">
|
154
164
|
# <b>Remark:</b>
|
155
165
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
156
166
|
# </p>
|
157
|
-
# </div
|
167
|
+
# </div>
|
158
168
|
# @param name [String]
|
159
169
|
# @param value [Wx::Variant]
|
160
170
|
# @return [Boolean]
|
@@ -217,6 +227,7 @@ module Wx::PG
|
|
217
227
|
end # DateProperty
|
218
228
|
|
219
229
|
# Represents a bit set that fits in a long integer.
|
230
|
+
#
|
220
231
|
# {Wx::PG::BoolProperty} sub-properties are created for editing individual bits. Textctrl is created to manually edit the flags as a text; a continuous sequence of spaces, commas and semicolons is considered as a flag id separator. <b>Note:</b> When changing "choices" (ie. flag labels) of {Wx::PG::FlagsProperty}, you will need to use SetPropertyChoices - otherwise they will not get updated properly.
|
221
232
|
#
|
222
233
|
# @wxrb_require USE_PROPGRID
|
@@ -238,6 +249,7 @@ module Wx::PG
|
|
238
249
|
def initialize(*args) end
|
239
250
|
|
240
251
|
# This virtual function is called after m_value has been set.
|
252
|
+
#
|
241
253
|
# <div class="wxrb-remark">
|
242
254
|
# <b>Remark:</b>
|
243
255
|
# <p>
|
@@ -247,29 +259,31 @@ module Wx::PG
|
|
247
259
|
# - Default implementation does nothing.
|
248
260
|
#
|
249
261
|
# </p>
|
250
|
-
# </div
|
262
|
+
# </div>
|
251
263
|
# @return [void]
|
252
264
|
def on_set_value; end
|
253
265
|
|
254
266
|
# Converts property value into a text representation.
|
267
|
+
#
|
255
268
|
# <div class="wxrb-remark">
|
256
269
|
# <b>Remark:</b>
|
257
270
|
# <p>Default implementation calls {Wx::PG::FlagsProperty#generate_composed_value}.
|
258
271
|
# </p>
|
259
|
-
# </div
|
272
|
+
# </div>
|
260
273
|
# @param value [Wx::Variant] Value to be converted.
|
261
274
|
# @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.
|
262
275
|
# @return [String]
|
263
276
|
def value_to_string(value, argFlags=0) end
|
264
277
|
|
265
278
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
279
|
+
#
|
266
280
|
# Returns true if resulting {Wx::Variant} value was different.
|
267
281
|
#
|
268
282
|
# <div class="wxrb-remark">
|
269
283
|
# <b>Remark:</b>
|
270
284
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
271
285
|
# </p>
|
272
|
-
# </div
|
286
|
+
# </div>
|
273
287
|
#
|
274
288
|
# 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).
|
275
289
|
# @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.
|
@@ -279,6 +293,7 @@ module Wx::PG
|
|
279
293
|
def string_to_value(variant, text, argFlags) end
|
280
294
|
|
281
295
|
# Called after value of a child property has been altered.
|
296
|
+
#
|
282
297
|
# Must return new value of the whole property (after any alterations warranted by child's new value).
|
283
298
|
# Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FlagsProperty#get_value} or m_value should not be relied on.
|
284
299
|
# Sample pseudo-code implementation:
|
@@ -311,24 +326,27 @@ module Wx::PG
|
|
311
326
|
def child_changed(thisValue, childIndex, childValue) end
|
312
327
|
|
313
328
|
# Refresh values of child properties.
|
329
|
+
#
|
314
330
|
# Automatically called after value is set.
|
315
331
|
# @return [void]
|
316
332
|
def refresh_children; end
|
317
333
|
|
318
334
|
# Reimplement this member function to add special handling for attributes of this property.
|
335
|
+
#
|
319
336
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
320
337
|
#
|
321
338
|
# <div class="wxrb-remark">
|
322
339
|
# <b>Remark:</b>
|
323
340
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
324
341
|
# </p>
|
325
|
-
# </div
|
342
|
+
# </div>
|
326
343
|
# @param name [String]
|
327
344
|
# @param value [Wx::Variant]
|
328
345
|
# @return [Boolean]
|
329
346
|
def do_set_attribute(name, value) end
|
330
347
|
|
331
348
|
# Returns which choice is currently selected.
|
349
|
+
#
|
332
350
|
# Only applies to properties which have choices.
|
333
351
|
# Needs to reimplemented in derived class if property value does not map directly to a choice. Integer as index, bool, and string usually do.
|
334
352
|
# @return [Integer]
|
@@ -355,6 +373,7 @@ module Wx::PG
|
|
355
373
|
end # FlagsProperty
|
356
374
|
|
357
375
|
# Basic property with string value.
|
376
|
+
#
|
358
377
|
# <b>Supported special attributes:</b>
|
359
378
|
#
|
360
379
|
# - {Wx::PG::PG_STRING_PASSWORD}: set to true in order to enable {Wx::TE_PASSWORD} on the editor.
|
@@ -366,7 +385,7 @@ module Wx::PG
|
|
366
385
|
# - If value "<composed>" is set, then actual value is formed (or composed) from values of child properties.
|
367
386
|
#
|
368
387
|
# </p>
|
369
|
-
# </div
|
388
|
+
# </div>
|
370
389
|
#
|
371
390
|
# @wxrb_require USE_PROPGRID
|
372
391
|
class StringProperty < PGProperty
|
@@ -378,24 +397,26 @@ module Wx::PG
|
|
378
397
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
379
398
|
|
380
399
|
# Converts property value into a text representation.
|
400
|
+
#
|
381
401
|
# <div class="wxrb-remark">
|
382
402
|
# <b>Remark:</b>
|
383
403
|
# <p>Default implementation calls {Wx::PG::StringProperty#generate_composed_value}.
|
384
404
|
# </p>
|
385
|
-
# </div
|
405
|
+
# </div>
|
386
406
|
# @param value [Wx::Variant] Value to be converted.
|
387
407
|
# @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.
|
388
408
|
# @return [String]
|
389
409
|
def value_to_string(value, argFlags=0) end
|
390
410
|
|
391
411
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
412
|
+
#
|
392
413
|
# Returns true if resulting {Wx::Variant} value was different.
|
393
414
|
#
|
394
415
|
# <div class="wxrb-remark">
|
395
416
|
# <b>Remark:</b>
|
396
417
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
397
418
|
# </p>
|
398
|
-
# </div
|
419
|
+
# </div>
|
399
420
|
#
|
400
421
|
# 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).
|
401
422
|
# @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.
|
@@ -405,13 +426,14 @@ module Wx::PG
|
|
405
426
|
def string_to_value(variant, text, argFlags=0) end
|
406
427
|
|
407
428
|
# Reimplement this member function to add special handling for attributes of this property.
|
429
|
+
#
|
408
430
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
409
431
|
#
|
410
432
|
# <div class="wxrb-remark">
|
411
433
|
# <b>Remark:</b>
|
412
434
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
413
435
|
# </p>
|
414
|
-
# </div
|
436
|
+
# </div>
|
415
437
|
# @param name [String]
|
416
438
|
# @param value [Wx::Variant]
|
417
439
|
# @return [Boolean]
|
@@ -434,6 +456,7 @@ module Wx::PG
|
|
434
456
|
# Category (caption) property.
|
435
457
|
#
|
436
458
|
#
|
459
|
+
#
|
437
460
|
# @wxrb_require USE_PROPGRID
|
438
461
|
class PropertyCategory < PGProperty
|
439
462
|
|
@@ -453,22 +476,24 @@ module Wx::PG
|
|
453
476
|
alias_method :text_extent, :get_text_extent
|
454
477
|
|
455
478
|
# Converts property value into a text representation.
|
479
|
+
#
|
456
480
|
# <div class="wxrb-remark">
|
457
481
|
# <b>Remark:</b>
|
458
482
|
# <p>Default implementation calls {Wx::PG::PropertyCategory#generate_composed_value}.
|
459
483
|
# </p>
|
460
|
-
# </div
|
484
|
+
# </div>
|
461
485
|
# @param value [Wx::Variant] Value to be converted.
|
462
486
|
# @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.
|
463
487
|
# @return [String]
|
464
488
|
def value_to_string(value, argFlags) end
|
465
489
|
|
466
490
|
# Returns text representation of property's value.
|
491
|
+
#
|
467
492
|
# <div class="wxrb-remark">
|
468
493
|
# <b>Remark:</b>
|
469
494
|
# <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::PropertyCategory#value_to_string}, and overriding this function now will result in run-time assertion failure.
|
470
495
|
# </p>
|
471
|
-
# </div
|
496
|
+
# </div>
|
472
497
|
# @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.
|
473
498
|
# @return [String]
|
474
499
|
def get_value_as_string(argFlags=0) end
|
@@ -485,6 +510,7 @@ module Wx::PG
|
|
485
510
|
end # PropertyCategory
|
486
511
|
|
487
512
|
# This is an abstract class which serves as a base class for the properties having a button triggering an editor dialog, like e.g.
|
513
|
+
#
|
488
514
|
# {Wx::PG::LongStringProperty}, {Wx::PG::DirProperty}, {Wx::PG::FileProperty}.
|
489
515
|
# <b>Supported special attributes:</b>
|
490
516
|
#
|
@@ -494,19 +520,21 @@ module Wx::PG
|
|
494
520
|
class EditorDialogProperty < PGProperty
|
495
521
|
|
496
522
|
# Returns instance of a new {Wx::PG::PGEditorDialogAdapter} instance, which is used when user presses the (optional) button next to the editor control;.
|
523
|
+
#
|
497
524
|
# Default implementation returns NULL (i.e. no action is generated when button is pressed).
|
498
525
|
# @return [Wx::PG::PGEditorDialogAdapter]
|
499
526
|
def get_editor_dialog; end
|
500
527
|
alias_method :editor_dialog, :get_editor_dialog
|
501
528
|
|
502
529
|
# Reimplement this member function to add special handling for attributes of this property.
|
530
|
+
#
|
503
531
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
504
532
|
#
|
505
533
|
# <div class="wxrb-remark">
|
506
534
|
# <b>Remark:</b>
|
507
535
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
508
536
|
# </p>
|
509
|
-
# </div
|
537
|
+
# </div>
|
510
538
|
# @param name [String]
|
511
539
|
# @param value [Wx::Variant]
|
512
540
|
# @return [Boolean]
|
@@ -554,6 +582,7 @@ module Wx::PG
|
|
554
582
|
def initialize(label, name) end
|
555
583
|
|
556
584
|
# Shows editor dialog.
|
585
|
+
#
|
557
586
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
558
587
|
#
|
559
588
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -565,6 +594,7 @@ module Wx::PG
|
|
565
594
|
end # EditorDialogProperty
|
566
595
|
|
567
596
|
# Property that manages a list of strings.
|
597
|
+
#
|
568
598
|
# <b>Supported special attributes:</b>
|
569
599
|
#
|
570
600
|
# - {Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.
|
@@ -597,6 +627,7 @@ module Wx::PG
|
|
597
627
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new())) end
|
598
628
|
|
599
629
|
# This virtual function is called after m_value has been set.
|
630
|
+
#
|
600
631
|
# <div class="wxrb-remark">
|
601
632
|
# <b>Remark:</b>
|
602
633
|
# <p>
|
@@ -606,29 +637,31 @@ module Wx::PG
|
|
606
637
|
# - Default implementation does nothing.
|
607
638
|
#
|
608
639
|
# </p>
|
609
|
-
# </div
|
640
|
+
# </div>
|
610
641
|
# @return [void]
|
611
642
|
def on_set_value; end
|
612
643
|
|
613
644
|
# Converts property value into a text representation.
|
645
|
+
#
|
614
646
|
# <div class="wxrb-remark">
|
615
647
|
# <b>Remark:</b>
|
616
648
|
# <p>Default implementation calls {Wx::PG::ArrayStringProperty#generate_composed_value}.
|
617
649
|
# </p>
|
618
|
-
# </div
|
650
|
+
# </div>
|
619
651
|
# @param value [Wx::Variant] Value to be converted.
|
620
652
|
# @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.
|
621
653
|
# @return [String]
|
622
654
|
def value_to_string(value, argFlags=0) end
|
623
655
|
|
624
656
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
657
|
+
#
|
625
658
|
# Returns true if resulting {Wx::Variant} value was different.
|
626
659
|
#
|
627
660
|
# <div class="wxrb-remark">
|
628
661
|
# <b>Remark:</b>
|
629
662
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
630
663
|
# </p>
|
631
|
-
# </div
|
664
|
+
# </div>
|
632
665
|
#
|
633
666
|
# 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).
|
634
667
|
# @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.
|
@@ -638,13 +671,14 @@ module Wx::PG
|
|
638
671
|
def string_to_value(variant, text, argFlags=0) end
|
639
672
|
|
640
673
|
# Reimplement this member function to add special handling for attributes of this property.
|
674
|
+
#
|
641
675
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
642
676
|
#
|
643
677
|
# <div class="wxrb-remark">
|
644
678
|
# <b>Remark:</b>
|
645
679
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
646
680
|
# </p>
|
647
|
-
# </div
|
681
|
+
# </div>
|
648
682
|
# @param name [String]
|
649
683
|
# @param value [Wx::Variant]
|
650
684
|
# @return [Boolean]
|
@@ -657,6 +691,7 @@ module Wx::PG
|
|
657
691
|
def convert_array_to_string(arr, delimiter) end
|
658
692
|
|
659
693
|
# Shows string editor dialog to edit the individual item.
|
694
|
+
#
|
660
695
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned if that was the case.
|
661
696
|
# @param parent [Wx::Window]
|
662
697
|
# @return [String]
|
@@ -721,6 +756,7 @@ module Wx::PG
|
|
721
756
|
protected
|
722
757
|
|
723
758
|
# Shows editor dialog.
|
759
|
+
#
|
724
760
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
725
761
|
#
|
726
762
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -732,6 +768,7 @@ module Wx::PG
|
|
732
768
|
end # ArrayStringProperty
|
733
769
|
|
734
770
|
# Like {Wx::PG::LongStringProperty}, but the button triggers directory selector instead.
|
771
|
+
#
|
735
772
|
# <b>Supported special attributes:</b>
|
736
773
|
#
|
737
774
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
|
@@ -746,24 +783,26 @@ module Wx::PG
|
|
746
783
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
747
784
|
|
748
785
|
# Converts property value into a text representation.
|
786
|
+
#
|
749
787
|
# <div class="wxrb-remark">
|
750
788
|
# <b>Remark:</b>
|
751
789
|
# <p>Default implementation calls {Wx::PG::DirProperty#generate_composed_value}.
|
752
790
|
# </p>
|
753
|
-
# </div
|
791
|
+
# </div>
|
754
792
|
# @param value [Wx::Variant] Value to be converted.
|
755
793
|
# @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.
|
756
794
|
# @return [String]
|
757
795
|
def value_to_string(value, argFlags=0) end
|
758
796
|
|
759
797
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
798
|
+
#
|
760
799
|
# Returns true if resulting {Wx::Variant} value was different.
|
761
800
|
#
|
762
801
|
# <div class="wxrb-remark">
|
763
802
|
# <b>Remark:</b>
|
764
803
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
765
804
|
# </p>
|
766
|
-
# </div
|
805
|
+
# </div>
|
767
806
|
#
|
768
807
|
# 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).
|
769
808
|
# @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.
|
@@ -773,6 +812,7 @@ module Wx::PG
|
|
773
812
|
def string_to_value(variant, text, argFlags=0) end
|
774
813
|
|
775
814
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
815
|
+
#
|
776
816
|
# Setting validator explicitly via \#set_property_validator will override this.
|
777
817
|
# In most situations, code like this should work well:
|
778
818
|
#
|
@@ -800,7 +840,7 @@ module Wx::PG
|
|
800
840
|
# <b>Remark:</b>
|
801
841
|
# <p>You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
802
842
|
# </p>
|
803
|
-
# </div
|
843
|
+
# </div>
|
804
844
|
# @return [Wx::Validator]
|
805
845
|
def do_get_validator; end
|
806
846
|
|
@@ -816,6 +856,7 @@ module Wx::PG
|
|
816
856
|
protected
|
817
857
|
|
818
858
|
# Shows editor dialog.
|
859
|
+
#
|
819
860
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
820
861
|
#
|
821
862
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -827,6 +868,7 @@ module Wx::PG
|
|
827
868
|
end # DirProperty
|
828
869
|
|
829
870
|
# Like {Wx::PG::LongStringProperty}, but the button triggers file selector instead.
|
871
|
+
#
|
830
872
|
# <b>Supported special attributes:</b>
|
831
873
|
#
|
832
874
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
|
@@ -846,6 +888,7 @@ module Wx::PG
|
|
846
888
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
847
889
|
|
848
890
|
# This virtual function is called after m_value has been set.
|
891
|
+
#
|
849
892
|
# <div class="wxrb-remark">
|
850
893
|
# <b>Remark:</b>
|
851
894
|
# <p>
|
@@ -855,29 +898,31 @@ module Wx::PG
|
|
855
898
|
# - Default implementation does nothing.
|
856
899
|
#
|
857
900
|
# </p>
|
858
|
-
# </div
|
901
|
+
# </div>
|
859
902
|
# @return [void]
|
860
903
|
def on_set_value; end
|
861
904
|
|
862
905
|
# Converts property value into a text representation.
|
906
|
+
#
|
863
907
|
# <div class="wxrb-remark">
|
864
908
|
# <b>Remark:</b>
|
865
909
|
# <p>Default implementation calls {Wx::PG::FileProperty#generate_composed_value}.
|
866
910
|
# </p>
|
867
|
-
# </div
|
911
|
+
# </div>
|
868
912
|
# @param value [Wx::Variant] Value to be converted.
|
869
913
|
# @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.
|
870
914
|
# @return [String]
|
871
915
|
def value_to_string(value, argFlags=0) end
|
872
916
|
|
873
917
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
918
|
+
#
|
874
919
|
# Returns true if resulting {Wx::Variant} value was different.
|
875
920
|
#
|
876
921
|
# <div class="wxrb-remark">
|
877
922
|
# <b>Remark:</b>
|
878
923
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
879
924
|
# </p>
|
880
|
-
# </div
|
925
|
+
# </div>
|
881
926
|
#
|
882
927
|
# 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).
|
883
928
|
# @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.
|
@@ -887,19 +932,21 @@ module Wx::PG
|
|
887
932
|
def string_to_value(variant, text, argFlags=0) end
|
888
933
|
|
889
934
|
# Reimplement this member function to add special handling for attributes of this property.
|
935
|
+
#
|
890
936
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
891
937
|
#
|
892
938
|
# <div class="wxrb-remark">
|
893
939
|
# <b>Remark:</b>
|
894
940
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
895
941
|
# </p>
|
896
|
-
# </div
|
942
|
+
# </div>
|
897
943
|
# @param name [String]
|
898
944
|
# @param value [Wx::Variant]
|
899
945
|
# @return [Boolean]
|
900
946
|
def do_set_attribute(name, value) end
|
901
947
|
|
902
948
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
949
|
+
#
|
903
950
|
# Setting validator explicitly via \#set_property_validator will override this.
|
904
951
|
# In most situations, code like this should work well:
|
905
952
|
#
|
@@ -927,7 +974,7 @@ module Wx::PG
|
|
927
974
|
# <b>Remark:</b>
|
928
975
|
# <p>You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
929
976
|
# </p>
|
930
|
-
# </div
|
977
|
+
# </div>
|
931
978
|
# @return [Wx::Validator]
|
932
979
|
def do_get_validator; end
|
933
980
|
|
@@ -999,6 +1046,7 @@ module Wx::PG
|
|
999
1046
|
protected
|
1000
1047
|
|
1001
1048
|
# Shows editor dialog.
|
1049
|
+
#
|
1002
1050
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
1003
1051
|
#
|
1004
1052
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -1010,6 +1058,7 @@ module Wx::PG
|
|
1010
1058
|
end # FileProperty
|
1011
1059
|
|
1012
1060
|
# Property representing image file(name).
|
1061
|
+
#
|
1013
1062
|
# <b>Supported special attributes:</b>
|
1014
1063
|
#
|
1015
1064
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
|
@@ -1030,6 +1079,7 @@ module Wx::PG
|
|
1030
1079
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
1031
1080
|
|
1032
1081
|
# This virtual function is called after m_value has been set.
|
1082
|
+
#
|
1033
1083
|
# <div class="wxrb-remark">
|
1034
1084
|
# <b>Remark:</b>
|
1035
1085
|
# <p>
|
@@ -1039,11 +1089,12 @@ module Wx::PG
|
|
1039
1089
|
# - Default implementation does nothing.
|
1040
1090
|
#
|
1041
1091
|
# </p>
|
1042
|
-
# </div
|
1092
|
+
# </div>
|
1043
1093
|
# @return [void]
|
1044
1094
|
def on_set_value; end
|
1045
1095
|
|
1046
1096
|
# Returns size of the custom painted image in front of property.
|
1097
|
+
#
|
1047
1098
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
1048
1099
|
#
|
1049
1100
|
# <div class="wxrb-remark">
|
@@ -1055,12 +1106,13 @@ module Wx::PG
|
|
1055
1106
|
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
1056
1107
|
#
|
1057
1108
|
# </p>
|
1058
|
-
# </div
|
1109
|
+
# </div>
|
1059
1110
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
1060
1111
|
# @return [Wx::Size]
|
1061
1112
|
def on_measure_image(item) end
|
1062
1113
|
|
1063
1114
|
# Override to paint an image in front of the property value text or drop-down list item (but only if {Wx::PG::PGProperty#on_measure_image} is overridden as well).
|
1115
|
+
#
|
1064
1116
|
# If property's {Wx::PG::ImageFileProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::ImageFileProperty#on_measure_image} returned higher height than row height).
|
1065
1117
|
# NOTE: Following applies when {Wx::PG::ImageFileProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
|
1066
1118
|
#
|
@@ -1074,7 +1126,7 @@ module Wx::PG
|
|
1074
1126
|
# - 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.
|
1075
1127
|
#
|
1076
1128
|
# </p>
|
1077
|
-
# </div
|
1129
|
+
# </div>
|
1078
1130
|
# @see Wx::PG::ImageFileProperty#value_to_string
|
1079
1131
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
1080
1132
|
# @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).
|
@@ -1093,6 +1145,7 @@ module Wx::PG
|
|
1093
1145
|
end # ImageFileProperty
|
1094
1146
|
|
1095
1147
|
# Property representing {Wx::Font}.
|
1148
|
+
#
|
1096
1149
|
# <b>Supported special attributes:</b>
|
1097
1150
|
#
|
1098
1151
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog (since 3.1.3).
|
@@ -1107,6 +1160,7 @@ module Wx::PG
|
|
1107
1160
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::Font.new())) end
|
1108
1161
|
|
1109
1162
|
# This virtual function is called after m_value has been set.
|
1163
|
+
#
|
1110
1164
|
# <div class="wxrb-remark">
|
1111
1165
|
# <b>Remark:</b>
|
1112
1166
|
# <p>
|
@@ -1116,22 +1170,24 @@ module Wx::PG
|
|
1116
1170
|
# - Default implementation does nothing.
|
1117
1171
|
#
|
1118
1172
|
# </p>
|
1119
|
-
# </div
|
1173
|
+
# </div>
|
1120
1174
|
# @return [void]
|
1121
1175
|
def on_set_value; end
|
1122
1176
|
|
1123
1177
|
# Converts property value into a text representation.
|
1178
|
+
#
|
1124
1179
|
# <div class="wxrb-remark">
|
1125
1180
|
# <b>Remark:</b>
|
1126
1181
|
# <p>Default implementation calls {Wx::PG::FontProperty#generate_composed_value}.
|
1127
1182
|
# </p>
|
1128
|
-
# </div
|
1183
|
+
# </div>
|
1129
1184
|
# @param value [Wx::Variant] Value to be converted.
|
1130
1185
|
# @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.
|
1131
1186
|
# @return [String]
|
1132
1187
|
def value_to_string(value, argFlags=0) end
|
1133
1188
|
|
1134
1189
|
# Called after value of a child property has been altered.
|
1190
|
+
#
|
1135
1191
|
# Must return new value of the whole property (after any alterations warranted by child's new value).
|
1136
1192
|
# Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FontProperty#get_value} or m_value should not be relied on.
|
1137
1193
|
# Sample pseudo-code implementation:
|
@@ -1170,6 +1226,7 @@ module Wx::PG
|
|
1170
1226
|
def child_changed(thisValue, childIndex, childValue) end
|
1171
1227
|
|
1172
1228
|
# Refresh values of child properties.
|
1229
|
+
#
|
1173
1230
|
# Automatically called after value is set.
|
1174
1231
|
# @return [void]
|
1175
1232
|
def refresh_children; end
|
@@ -1186,6 +1243,7 @@ module Wx::PG
|
|
1186
1243
|
protected
|
1187
1244
|
|
1188
1245
|
# Shows editor dialog.
|
1246
|
+
#
|
1189
1247
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
1190
1248
|
#
|
1191
1249
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -1197,6 +1255,7 @@ module Wx::PG
|
|
1197
1255
|
end # FontProperty
|
1198
1256
|
|
1199
1257
|
# Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog.
|
1258
|
+
#
|
1200
1259
|
# <b>Supported special attributes:</b>
|
1201
1260
|
#
|
1202
1261
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the text editor dialog (since 3.1.3).
|
@@ -1211,24 +1270,26 @@ module Wx::PG
|
|
1211
1270
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
1212
1271
|
|
1213
1272
|
# Converts property value into a text representation.
|
1273
|
+
#
|
1214
1274
|
# <div class="wxrb-remark">
|
1215
1275
|
# <b>Remark:</b>
|
1216
1276
|
# <p>Default implementation calls {Wx::PG::LongStringProperty#generate_composed_value}.
|
1217
1277
|
# </p>
|
1218
|
-
# </div
|
1278
|
+
# </div>
|
1219
1279
|
# @param value [Wx::Variant] Value to be converted.
|
1220
1280
|
# @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.
|
1221
1281
|
# @return [String]
|
1222
1282
|
def value_to_string(value, argFlags=0) end
|
1223
1283
|
|
1224
1284
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
1285
|
+
#
|
1225
1286
|
# Returns true if resulting {Wx::Variant} value was different.
|
1226
1287
|
#
|
1227
1288
|
# <div class="wxrb-remark">
|
1228
1289
|
# <b>Remark:</b>
|
1229
1290
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
1230
1291
|
# </p>
|
1231
|
-
# </div
|
1292
|
+
# </div>
|
1232
1293
|
#
|
1233
1294
|
# 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).
|
1234
1295
|
# @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.
|
@@ -1249,6 +1310,7 @@ module Wx::PG
|
|
1249
1310
|
protected
|
1250
1311
|
|
1251
1312
|
# Shows editor dialog.
|
1313
|
+
#
|
1252
1314
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
1253
1315
|
#
|
1254
1316
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -1260,6 +1322,7 @@ module Wx::PG
|
|
1260
1322
|
end # LongStringProperty
|
1261
1323
|
|
1262
1324
|
# Property that manages a value resulting from {Wx::MultiChoiceDialog}.
|
1325
|
+
#
|
1263
1326
|
# Value is array of strings. You can get value as array of choice values/indices by calling {Wx::PG::MultiChoiceProperty#get_value_as_array_int}.
|
1264
1327
|
# <b>Supported special attributes:</b>
|
1265
1328
|
#
|
@@ -1289,6 +1352,7 @@ module Wx::PG
|
|
1289
1352
|
def initialize(*args) end
|
1290
1353
|
|
1291
1354
|
# This virtual function is called after m_value has been set.
|
1355
|
+
#
|
1292
1356
|
# <div class="wxrb-remark">
|
1293
1357
|
# <b>Remark:</b>
|
1294
1358
|
# <p>
|
@@ -1298,29 +1362,31 @@ module Wx::PG
|
|
1298
1362
|
# - Default implementation does nothing.
|
1299
1363
|
#
|
1300
1364
|
# </p>
|
1301
|
-
# </div
|
1365
|
+
# </div>
|
1302
1366
|
# @return [void]
|
1303
1367
|
def on_set_value; end
|
1304
1368
|
|
1305
1369
|
# Converts property value into a text representation.
|
1370
|
+
#
|
1306
1371
|
# <div class="wxrb-remark">
|
1307
1372
|
# <b>Remark:</b>
|
1308
1373
|
# <p>Default implementation calls {Wx::PG::MultiChoiceProperty#generate_composed_value}.
|
1309
1374
|
# </p>
|
1310
|
-
# </div
|
1375
|
+
# </div>
|
1311
1376
|
# @param value [Wx::Variant] Value to be converted.
|
1312
1377
|
# @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.
|
1313
1378
|
# @return [String]
|
1314
1379
|
def value_to_string(value, argFlags=0) end
|
1315
1380
|
|
1316
1381
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
1382
|
+
#
|
1317
1383
|
# Returns true if resulting {Wx::Variant} value was different.
|
1318
1384
|
#
|
1319
1385
|
# <div class="wxrb-remark">
|
1320
1386
|
# <b>Remark:</b>
|
1321
1387
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
1322
1388
|
# </p>
|
1323
|
-
# </div
|
1389
|
+
# </div>
|
1324
1390
|
#
|
1325
1391
|
# 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).
|
1326
1392
|
# @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.
|
@@ -1377,6 +1443,7 @@ module Wx::PG
|
|
1377
1443
|
protected
|
1378
1444
|
|
1379
1445
|
# Shows editor dialog.
|
1446
|
+
#
|
1380
1447
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
1381
1448
|
#
|
1382
1449
|
# Returns true if editor dialog was not cancelled and value was updated.
|
@@ -1388,6 +1455,7 @@ module Wx::PG
|
|
1388
1455
|
end # MultiChoiceProperty
|
1389
1456
|
|
1390
1457
|
# This is an abstract class which serves as a base class for numeric properties, like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty}, {Wx::PG::FloatProperty}.
|
1458
|
+
#
|
1391
1459
|
# <b>Supported special attributes:</b>
|
1392
1460
|
#
|
1393
1461
|
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specify acceptable value range.
|
@@ -1399,19 +1467,21 @@ module Wx::PG
|
|
1399
1467
|
class NumericProperty < PGProperty
|
1400
1468
|
|
1401
1469
|
# Reimplement this member function to add special handling for attributes of this property.
|
1470
|
+
#
|
1402
1471
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
1403
1472
|
#
|
1404
1473
|
# <div class="wxrb-remark">
|
1405
1474
|
# <b>Remark:</b>
|
1406
1475
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
1407
1476
|
# </p>
|
1408
|
-
# </div
|
1477
|
+
# </div>
|
1409
1478
|
# @param name [String]
|
1410
1479
|
# @param value [Wx::Variant]
|
1411
1480
|
# @return [Boolean]
|
1412
1481
|
def do_set_attribute(name, value) end
|
1413
1482
|
|
1414
1483
|
# Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
|
1484
|
+
#
|
1415
1485
|
# Current value range and wrapping (if enabled) are taken into account. This member has to be implemented in derived properties.
|
1416
1486
|
#
|
1417
1487
|
# Value which property would have after adding SpinCtrl editor step.
|
@@ -1420,7 +1490,7 @@ module Wx::PG
|
|
1420
1490
|
# <b>Remark:</b>
|
1421
1491
|
# <p>Current property value is not changed.
|
1422
1492
|
# </p>
|
1423
|
-
# </div
|
1493
|
+
# </div>
|
1424
1494
|
# @param stepScale [Integer] SpinCtrl editor step is first multiplied by this factor and next added to the current value.
|
1425
1495
|
# @return [Wx::Variant]
|
1426
1496
|
def add_spin_step_value(stepScale) end
|
@@ -1509,6 +1579,7 @@ module Wx::PG
|
|
1509
1579
|
end # NumericProperty
|
1510
1580
|
|
1511
1581
|
# Basic property with integer value.
|
1582
|
+
#
|
1512
1583
|
# <b>Supported special attributes:</b>
|
1513
1584
|
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
|
1514
1585
|
#
|
@@ -1528,24 +1599,26 @@ module Wx::PG
|
|
1528
1599
|
def initialize(*args) end
|
1529
1600
|
|
1530
1601
|
# Converts property value into a text representation.
|
1602
|
+
#
|
1531
1603
|
# <div class="wxrb-remark">
|
1532
1604
|
# <b>Remark:</b>
|
1533
1605
|
# <p>Default implementation calls {Wx::PG::IntProperty#generate_composed_value}.
|
1534
1606
|
# </p>
|
1535
|
-
# </div
|
1607
|
+
# </div>
|
1536
1608
|
# @param value [Wx::Variant] Value to be converted.
|
1537
1609
|
# @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.
|
1538
1610
|
# @return [String]
|
1539
1611
|
def value_to_string(value, argFlags=0) end
|
1540
1612
|
|
1541
1613
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
1614
|
+
#
|
1542
1615
|
# Returns true if resulting {Wx::Variant} value was different.
|
1543
1616
|
#
|
1544
1617
|
# <div class="wxrb-remark">
|
1545
1618
|
# <b>Remark:</b>
|
1546
1619
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
1547
1620
|
# </p>
|
1548
|
-
# </div
|
1621
|
+
# </div>
|
1549
1622
|
#
|
1550
1623
|
# 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).
|
1551
1624
|
# @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.
|
@@ -1555,6 +1628,7 @@ module Wx::PG
|
|
1555
1628
|
def string_to_value(variant, text, argFlags=0) end
|
1556
1629
|
|
1557
1630
|
# Implement this function in derived class to check the value.
|
1631
|
+
#
|
1558
1632
|
# Return true if it is ok. Returning false prevents property change events from occurring.
|
1559
1633
|
#
|
1560
1634
|
# <div class="wxrb-remark">
|
@@ -1564,13 +1638,14 @@ module Wx::PG
|
|
1564
1638
|
# - Default implementation always returns true.
|
1565
1639
|
#
|
1566
1640
|
# </p>
|
1567
|
-
# </div
|
1641
|
+
# </div>
|
1568
1642
|
# @param value [Wx::Variant]
|
1569
1643
|
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1570
1644
|
# @return [Boolean]
|
1571
1645
|
def validate_value(value, validationInfo) end
|
1572
1646
|
|
1573
1647
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
1648
|
+
#
|
1574
1649
|
# Returns true if resulting {Wx::Variant} value was different.
|
1575
1650
|
#
|
1576
1651
|
# <div class="wxrb-remark">
|
@@ -1583,7 +1658,7 @@ module Wx::PG
|
|
1583
1658
|
# - 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).
|
1584
1659
|
#
|
1585
1660
|
# </p>
|
1586
|
-
# </div
|
1661
|
+
# </div>
|
1587
1662
|
# @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.
|
1588
1663
|
# @param number [Integer] Integer to be translated into variant.
|
1589
1664
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
@@ -1591,6 +1666,7 @@ module Wx::PG
|
|
1591
1666
|
def int_to_value(variant, number, argFlags=0) end
|
1592
1667
|
|
1593
1668
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
1669
|
+
#
|
1594
1670
|
# Setting validator explicitly via \#set_property_validator will override this.
|
1595
1671
|
# In most situations, code like this should work well:
|
1596
1672
|
#
|
@@ -1618,11 +1694,12 @@ module Wx::PG
|
|
1618
1694
|
# <b>Remark:</b>
|
1619
1695
|
# <p>You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
1620
1696
|
# </p>
|
1621
|
-
# </div
|
1697
|
+
# </div>
|
1622
1698
|
# @return [Wx::Validator]
|
1623
1699
|
def do_get_validator; end
|
1624
1700
|
|
1625
1701
|
# Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
|
1702
|
+
#
|
1626
1703
|
# Current value range and wrapping (if enabled) are taken into account. This member has to be implemented in derived properties.
|
1627
1704
|
#
|
1628
1705
|
# Value which property would have after adding SpinCtrl editor step.
|
@@ -1631,7 +1708,7 @@ module Wx::PG
|
|
1631
1708
|
# <b>Remark:</b>
|
1632
1709
|
# <p>Current property value is not changed.
|
1633
1710
|
# </p>
|
1634
|
-
# </div
|
1711
|
+
# </div>
|
1635
1712
|
# @param stepScale [Integer] SpinCtrl editor step is first multiplied by this factor and next added to the current value.
|
1636
1713
|
# @return [Wx::Variant]
|
1637
1714
|
def add_spin_step_value(stepScale) end
|
@@ -1690,6 +1767,7 @@ module Wx::PG
|
|
1690
1767
|
end # IntProperty
|
1691
1768
|
|
1692
1769
|
# Basic property with double-precision floating point value.
|
1770
|
+
#
|
1693
1771
|
# <b>Supported special attributes:</b>
|
1694
1772
|
#
|
1695
1773
|
# - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.
|
@@ -1705,24 +1783,26 @@ module Wx::PG
|
|
1705
1783
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0.0) end
|
1706
1784
|
|
1707
1785
|
# Converts property value into a text representation.
|
1786
|
+
#
|
1708
1787
|
# <div class="wxrb-remark">
|
1709
1788
|
# <b>Remark:</b>
|
1710
1789
|
# <p>Default implementation calls {Wx::PG::FloatProperty#generate_composed_value}.
|
1711
1790
|
# </p>
|
1712
|
-
# </div
|
1791
|
+
# </div>
|
1713
1792
|
# @param value [Wx::Variant] Value to be converted.
|
1714
1793
|
# @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.
|
1715
1794
|
# @return [String]
|
1716
1795
|
def value_to_string(value, argFlags=0) end
|
1717
1796
|
|
1718
1797
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
1798
|
+
#
|
1719
1799
|
# Returns true if resulting {Wx::Variant} value was different.
|
1720
1800
|
#
|
1721
1801
|
# <div class="wxrb-remark">
|
1722
1802
|
# <b>Remark:</b>
|
1723
1803
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
1724
1804
|
# </p>
|
1725
|
-
# </div
|
1805
|
+
# </div>
|
1726
1806
|
#
|
1727
1807
|
# 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).
|
1728
1808
|
# @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.
|
@@ -1732,19 +1812,21 @@ module Wx::PG
|
|
1732
1812
|
def string_to_value(variant, text, argFlags=0) end
|
1733
1813
|
|
1734
1814
|
# Reimplement this member function to add special handling for attributes of this property.
|
1815
|
+
#
|
1735
1816
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
1736
1817
|
#
|
1737
1818
|
# <div class="wxrb-remark">
|
1738
1819
|
# <b>Remark:</b>
|
1739
1820
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
1740
1821
|
# </p>
|
1741
|
-
# </div
|
1822
|
+
# </div>
|
1742
1823
|
# @param name [String]
|
1743
1824
|
# @param value [Wx::Variant]
|
1744
1825
|
# @return [Boolean]
|
1745
1826
|
def do_set_attribute(name, value) end
|
1746
1827
|
|
1747
1828
|
# Implement this function in derived class to check the value.
|
1829
|
+
#
|
1748
1830
|
# Return true if it is ok. Returning false prevents property change events from occurring.
|
1749
1831
|
#
|
1750
1832
|
# <div class="wxrb-remark">
|
@@ -1754,13 +1836,14 @@ module Wx::PG
|
|
1754
1836
|
# - Default implementation always returns true.
|
1755
1837
|
#
|
1756
1838
|
# </p>
|
1757
|
-
# </div
|
1839
|
+
# </div>
|
1758
1840
|
# @param value [Wx::Variant]
|
1759
1841
|
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1760
1842
|
# @return [Boolean]
|
1761
1843
|
def validate_value(value, validationInfo) end
|
1762
1844
|
|
1763
1845
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
1846
|
+
#
|
1764
1847
|
# Setting validator explicitly via \#set_property_validator will override this.
|
1765
1848
|
# In most situations, code like this should work well:
|
1766
1849
|
#
|
@@ -1788,11 +1871,12 @@ module Wx::PG
|
|
1788
1871
|
# <b>Remark:</b>
|
1789
1872
|
# <p>You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
1790
1873
|
# </p>
|
1791
|
-
# </div
|
1874
|
+
# </div>
|
1792
1875
|
# @return [Wx::Validator]
|
1793
1876
|
def do_get_validator; end
|
1794
1877
|
|
1795
1878
|
# Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
|
1879
|
+
#
|
1796
1880
|
# Current value range and wrapping (if enabled) are taken into account. This member has to be implemented in derived properties.
|
1797
1881
|
#
|
1798
1882
|
# Value which property would have after adding SpinCtrl editor step.
|
@@ -1801,7 +1885,7 @@ module Wx::PG
|
|
1801
1885
|
# <b>Remark:</b>
|
1802
1886
|
# <p>Current property value is not changed.
|
1803
1887
|
# </p>
|
1804
|
-
# </div
|
1888
|
+
# </div>
|
1805
1889
|
# @param stepScale [Integer] SpinCtrl editor step is first multiplied by this factor and next added to the current value.
|
1806
1890
|
# @return [Wx::Variant]
|
1807
1891
|
def add_spin_step_value(stepScale) end
|
@@ -1872,6 +1956,7 @@ module Wx::PG
|
|
1872
1956
|
end # FloatProperty
|
1873
1957
|
|
1874
1958
|
# Basic property with unsigned integer value.
|
1959
|
+
#
|
1875
1960
|
# Seamlessly supports 64-bit integer ({Wx::ULongLong}) on overflow.
|
1876
1961
|
# <b>Supported special attributes:</b>
|
1877
1962
|
#
|
@@ -1886,7 +1971,7 @@ module Wx::PG
|
|
1886
1971
|
# - For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
|
1887
1972
|
#
|
1888
1973
|
# </p>
|
1889
|
-
# </div
|
1974
|
+
# </div>
|
1890
1975
|
#
|
1891
1976
|
# @wxrb_require USE_PROPGRID
|
1892
1977
|
class UIntProperty < NumericProperty
|
@@ -1904,24 +1989,26 @@ module Wx::PG
|
|
1904
1989
|
def initialize(*args) end
|
1905
1990
|
|
1906
1991
|
# Converts property value into a text representation.
|
1992
|
+
#
|
1907
1993
|
# <div class="wxrb-remark">
|
1908
1994
|
# <b>Remark:</b>
|
1909
1995
|
# <p>Default implementation calls {Wx::PG::UIntProperty#generate_composed_value}.
|
1910
1996
|
# </p>
|
1911
|
-
# </div
|
1997
|
+
# </div>
|
1912
1998
|
# @param value [Wx::Variant] Value to be converted.
|
1913
1999
|
# @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.
|
1914
2000
|
# @return [String]
|
1915
2001
|
def value_to_string(value, argFlags=0) end
|
1916
2002
|
|
1917
2003
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
2004
|
+
#
|
1918
2005
|
# Returns true if resulting {Wx::Variant} value was different.
|
1919
2006
|
#
|
1920
2007
|
# <div class="wxrb-remark">
|
1921
2008
|
# <b>Remark:</b>
|
1922
2009
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
1923
2010
|
# </p>
|
1924
|
-
# </div
|
2011
|
+
# </div>
|
1925
2012
|
#
|
1926
2013
|
# 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).
|
1927
2014
|
# @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.
|
@@ -1931,19 +2018,21 @@ module Wx::PG
|
|
1931
2018
|
def string_to_value(variant, text, argFlags=0) end
|
1932
2019
|
|
1933
2020
|
# Reimplement this member function to add special handling for attributes of this property.
|
2021
|
+
#
|
1934
2022
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
1935
2023
|
#
|
1936
2024
|
# <div class="wxrb-remark">
|
1937
2025
|
# <b>Remark:</b>
|
1938
2026
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
1939
2027
|
# </p>
|
1940
|
-
# </div
|
2028
|
+
# </div>
|
1941
2029
|
# @param name [String]
|
1942
2030
|
# @param value [Wx::Variant]
|
1943
2031
|
# @return [Boolean]
|
1944
2032
|
def do_set_attribute(name, value) end
|
1945
2033
|
|
1946
2034
|
# Implement this function in derived class to check the value.
|
2035
|
+
#
|
1947
2036
|
# Return true if it is ok. Returning false prevents property change events from occurring.
|
1948
2037
|
#
|
1949
2038
|
# <div class="wxrb-remark">
|
@@ -1953,13 +2042,14 @@ module Wx::PG
|
|
1953
2042
|
# - Default implementation always returns true.
|
1954
2043
|
#
|
1955
2044
|
# </p>
|
1956
|
-
# </div
|
2045
|
+
# </div>
|
1957
2046
|
# @param value [Wx::Variant]
|
1958
2047
|
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1959
2048
|
# @return [Boolean]
|
1960
2049
|
def validate_value(value, validationInfo) end
|
1961
2050
|
|
1962
2051
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
2052
|
+
#
|
1963
2053
|
# Setting validator explicitly via \#set_property_validator will override this.
|
1964
2054
|
# In most situations, code like this should work well:
|
1965
2055
|
#
|
@@ -1987,11 +2077,12 @@ module Wx::PG
|
|
1987
2077
|
# <b>Remark:</b>
|
1988
2078
|
# <p>You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
1989
2079
|
# </p>
|
1990
|
-
# </div
|
2080
|
+
# </div>
|
1991
2081
|
# @return [Wx::Validator]
|
1992
2082
|
def do_get_validator; end
|
1993
2083
|
|
1994
2084
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
2085
|
+
#
|
1995
2086
|
# Returns true if resulting {Wx::Variant} value was different.
|
1996
2087
|
#
|
1997
2088
|
# <div class="wxrb-remark">
|
@@ -2004,7 +2095,7 @@ module Wx::PG
|
|
2004
2095
|
# - 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).
|
2005
2096
|
#
|
2006
2097
|
# </p>
|
2007
|
-
# </div
|
2098
|
+
# </div>
|
2008
2099
|
# @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.
|
2009
2100
|
# @param number [Integer] Integer to be translated into variant.
|
2010
2101
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
@@ -2012,6 +2103,7 @@ module Wx::PG
|
|
2012
2103
|
def int_to_value(variant, number, argFlags=0) end
|
2013
2104
|
|
2014
2105
|
# Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
|
2106
|
+
#
|
2015
2107
|
# Current value range and wrapping (if enabled) are taken into account. This member has to be implemented in derived properties.
|
2016
2108
|
#
|
2017
2109
|
# Value which property would have after adding SpinCtrl editor step.
|
@@ -2020,7 +2112,7 @@ module Wx::PG
|
|
2020
2112
|
# <b>Remark:</b>
|
2021
2113
|
# <p>Current property value is not changed.
|
2022
2114
|
# </p>
|
2023
|
-
# </div
|
2115
|
+
# </div>
|
2024
2116
|
# @param stepScale [Integer] SpinCtrl editor step is first multiplied by this factor and next added to the current value.
|
2025
2117
|
# @return [Wx::Variant]
|
2026
2118
|
def add_spin_step_value(stepScale) end
|
@@ -2112,6 +2204,7 @@ module Wx::PG
|
|
2112
2204
|
end # UIntProperty
|
2113
2205
|
|
2114
2206
|
# You can derive custom properties with choices from this class.
|
2207
|
+
#
|
2115
2208
|
# See {Wx::BaseEnumProperty} for remarks.
|
2116
2209
|
#
|
2117
2210
|
# <div class="wxrb-remark">
|
@@ -2121,7 +2214,7 @@ module Wx::PG
|
|
2121
2214
|
# - Updating private index is important. You can do this either by calling {Wx::PG::EnumProperty#set_index} in IntToValue, and then letting Wx::BaseEnumProperty::OnSetValue be called (by not implementing it, or by calling super class function in it) -OR- you can just call SetIndex in OnSetValue.
|
2122
2215
|
#
|
2123
2216
|
# </p>
|
2124
|
-
# </div
|
2217
|
+
# </div>
|
2125
2218
|
#
|
2126
2219
|
# @wxrb_require USE_PROPGRID
|
2127
2220
|
class EnumProperty < PGProperty
|
@@ -2146,6 +2239,7 @@ module Wx::PG
|
|
2146
2239
|
alias_method :item_count, :get_item_count
|
2147
2240
|
|
2148
2241
|
# This virtual function is called after m_value has been set.
|
2242
|
+
#
|
2149
2243
|
# <div class="wxrb-remark">
|
2150
2244
|
# <b>Remark:</b>
|
2151
2245
|
# <p>
|
@@ -2155,29 +2249,31 @@ module Wx::PG
|
|
2155
2249
|
# - Default implementation does nothing.
|
2156
2250
|
#
|
2157
2251
|
# </p>
|
2158
|
-
# </div
|
2252
|
+
# </div>
|
2159
2253
|
# @return [void]
|
2160
2254
|
def on_set_value; end
|
2161
2255
|
|
2162
2256
|
# Converts property value into a text representation.
|
2257
|
+
#
|
2163
2258
|
# <div class="wxrb-remark">
|
2164
2259
|
# <b>Remark:</b>
|
2165
2260
|
# <p>Default implementation calls {Wx::PG::EnumProperty#generate_composed_value}.
|
2166
2261
|
# </p>
|
2167
|
-
# </div
|
2262
|
+
# </div>
|
2168
2263
|
# @param value [Wx::Variant] Value to be converted.
|
2169
2264
|
# @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.
|
2170
2265
|
# @return [String]
|
2171
2266
|
def value_to_string(value, argFlags=0) end
|
2172
2267
|
|
2173
2268
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
2269
|
+
#
|
2174
2270
|
# Returns true if resulting {Wx::Variant} value was different.
|
2175
2271
|
#
|
2176
2272
|
# <div class="wxrb-remark">
|
2177
2273
|
# <b>Remark:</b>
|
2178
2274
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
2179
2275
|
# </p>
|
2180
|
-
# </div
|
2276
|
+
# </div>
|
2181
2277
|
#
|
2182
2278
|
# 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).
|
2183
2279
|
# @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.
|
@@ -2187,6 +2283,7 @@ module Wx::PG
|
|
2187
2283
|
def string_to_value(variant, text, argFlags=0) end
|
2188
2284
|
|
2189
2285
|
# Implement this function in derived class to check the value.
|
2286
|
+
#
|
2190
2287
|
# Return true if it is ok. Returning false prevents property change events from occurring.
|
2191
2288
|
#
|
2192
2289
|
# <div class="wxrb-remark">
|
@@ -2196,13 +2293,14 @@ module Wx::PG
|
|
2196
2293
|
# - Default implementation always returns true.
|
2197
2294
|
#
|
2198
2295
|
# </p>
|
2199
|
-
# </div
|
2296
|
+
# </div>
|
2200
2297
|
# @param value [Wx::Variant]
|
2201
2298
|
# @param validationInfo [Wx::PG::PGValidationInfo]
|
2202
2299
|
# @return [Boolean]
|
2203
2300
|
def validate_value(value, validationInfo) end
|
2204
2301
|
|
2205
2302
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
2303
|
+
#
|
2206
2304
|
# Returns true if resulting {Wx::Variant} value was different.
|
2207
2305
|
#
|
2208
2306
|
# <div class="wxrb-remark">
|
@@ -2215,7 +2313,7 @@ module Wx::PG
|
|
2215
2313
|
# - 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).
|
2216
2314
|
#
|
2217
2315
|
# </p>
|
2218
|
-
# </div
|
2316
|
+
# </div>
|
2219
2317
|
# @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.
|
2220
2318
|
# @param number [Integer] Integer to be translated into variant.
|
2221
2319
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
@@ -2228,6 +2326,7 @@ module Wx::PG
|
|
2228
2326
|
alias_method :index_for_value, :get_index_for_value
|
2229
2327
|
|
2230
2328
|
# Returns which choice is currently selected.
|
2329
|
+
#
|
2231
2330
|
# Only applies to properties which have choices.
|
2232
2331
|
# Needs to reimplemented in derived class if property value does not map directly to a choice. Integer as index, bool, and string usually do.
|
2233
2332
|
# @return [Integer]
|
@@ -2268,6 +2367,7 @@ module Wx::PG
|
|
2268
2367
|
# Property representing {Wx::Cursor}.
|
2269
2368
|
#
|
2270
2369
|
#
|
2370
|
+
#
|
2271
2371
|
# @wxrb_require USE_PROPGRID
|
2272
2372
|
class CursorProperty < EnumProperty
|
2273
2373
|
|
@@ -2278,6 +2378,7 @@ module Wx::PG
|
|
2278
2378
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0) end
|
2279
2379
|
|
2280
2380
|
# Returns size of the custom painted image in front of property.
|
2381
|
+
#
|
2281
2382
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
2282
2383
|
#
|
2283
2384
|
# <div class="wxrb-remark">
|
@@ -2289,12 +2390,13 @@ module Wx::PG
|
|
2289
2390
|
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
2290
2391
|
#
|
2291
2392
|
# </p>
|
2292
|
-
# </div
|
2393
|
+
# </div>
|
2293
2394
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
2294
2395
|
# @return [Wx::Size]
|
2295
2396
|
def on_measure_image(item) end
|
2296
2397
|
|
2297
2398
|
# Override to paint an image in front of the property value text or drop-down list item (but only if {Wx::PG::PGProperty#on_measure_image} is overridden as well).
|
2399
|
+
#
|
2298
2400
|
# If property's {Wx::PG::CursorProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::CursorProperty#on_measure_image} returned higher height than row height).
|
2299
2401
|
# NOTE: Following applies when {Wx::PG::CursorProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
|
2300
2402
|
#
|
@@ -2308,7 +2410,7 @@ module Wx::PG
|
|
2308
2410
|
# - 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.
|
2309
2411
|
#
|
2310
2412
|
# </p>
|
2311
|
-
# </div
|
2413
|
+
# </div>
|
2312
2414
|
# @see Wx::PG::CursorProperty#value_to_string
|
2313
2415
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
2314
2416
|
# @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).
|
@@ -2327,11 +2429,12 @@ module Wx::PG
|
|
2327
2429
|
end # CursorProperty
|
2328
2430
|
|
2329
2431
|
# {Wx::PG::EnumProperty} with {Wx::String} value and writable combo box editor.
|
2432
|
+
#
|
2330
2433
|
# <div class="wxrb-remark">
|
2331
2434
|
# <b>Remark:</b>
|
2332
2435
|
# <p>Uses int value, similar to {Wx::PG::EnumProperty}, unless text entered by user is not in choices (in which case string value is used).
|
2333
2436
|
# </p>
|
2334
|
-
# </div
|
2437
|
+
# </div>
|
2335
2438
|
#
|
2336
2439
|
# @wxrb_require USE_PROPGRID
|
2337
2440
|
class EditEnumProperty < EnumProperty
|
@@ -2362,6 +2465,7 @@ module Wx::PG
|
|
2362
2465
|
end # EditEnumProperty
|
2363
2466
|
|
2364
2467
|
# Has dropdown list of wxWidgets system colours.
|
2468
|
+
#
|
2365
2469
|
# Value used is of {Wx::PG::ColourPropertyValue} type.
|
2366
2470
|
# <b>Supported special attributes:</b> {Wx::PG::PG_COLOUR_ALLOW_CUSTOM}, {Wx::PG::PG_COLOUR_HAS_ALPHA}
|
2367
2471
|
#
|
@@ -2375,6 +2479,7 @@ module Wx::PG
|
|
2375
2479
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ColourPropertyValue.new())) end
|
2376
2480
|
|
2377
2481
|
# This virtual function is called after m_value has been set.
|
2482
|
+
#
|
2378
2483
|
# <div class="wxrb-remark">
|
2379
2484
|
# <b>Remark:</b>
|
2380
2485
|
# <p>
|
@@ -2384,11 +2489,12 @@ module Wx::PG
|
|
2384
2489
|
# - Default implementation does nothing.
|
2385
2490
|
#
|
2386
2491
|
# </p>
|
2387
|
-
# </div
|
2492
|
+
# </div>
|
2388
2493
|
# @return [void]
|
2389
2494
|
def on_set_value; end
|
2390
2495
|
|
2391
2496
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
2497
|
+
#
|
2392
2498
|
# Returns true if resulting {Wx::Variant} value was different.
|
2393
2499
|
#
|
2394
2500
|
# <div class="wxrb-remark">
|
@@ -2401,7 +2507,7 @@ module Wx::PG
|
|
2401
2507
|
# - 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).
|
2402
2508
|
#
|
2403
2509
|
# </p>
|
2404
|
-
# </div
|
2510
|
+
# </div>
|
2405
2511
|
# @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.
|
2406
2512
|
# @param number [Integer] Integer to be translated into variant.
|
2407
2513
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
@@ -2421,24 +2527,26 @@ module Wx::PG
|
|
2421
2527
|
alias_method :custom_colour_index, :get_custom_colour_index
|
2422
2528
|
|
2423
2529
|
# Converts property value into a text representation.
|
2530
|
+
#
|
2424
2531
|
# <div class="wxrb-remark">
|
2425
2532
|
# <b>Remark:</b>
|
2426
2533
|
# <p>Default implementation calls {Wx::PG::SystemColourProperty#generate_composed_value}.
|
2427
2534
|
# </p>
|
2428
|
-
# </div
|
2535
|
+
# </div>
|
2429
2536
|
# @param value [Wx::Variant] Value to be converted.
|
2430
2537
|
# @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.
|
2431
2538
|
# @return [String]
|
2432
2539
|
def value_to_string(value, argFlags=0) end
|
2433
2540
|
|
2434
2541
|
# Converts text into {Wx::Variant} value appropriate for this property.
|
2542
|
+
#
|
2435
2543
|
# Returns true if resulting {Wx::Variant} value was different.
|
2436
2544
|
#
|
2437
2545
|
# <div class="wxrb-remark">
|
2438
2546
|
# <b>Remark:</b>
|
2439
2547
|
# <p>Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
|
2440
2548
|
# </p>
|
2441
|
-
# </div
|
2549
|
+
# </div>
|
2442
2550
|
#
|
2443
2551
|
# 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).
|
2444
2552
|
# @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.
|
@@ -2448,6 +2556,7 @@ module Wx::PG
|
|
2448
2556
|
def string_to_value(variant, text, argFlags=0) end
|
2449
2557
|
|
2450
2558
|
# Events received by editor widgets are processed here.
|
2559
|
+
#
|
2451
2560
|
# Note that editor class usually processes most events. Some, such as button press events of TextCtrlAndButton class, can be handled here. Also, if custom handling for regular events is desired, then that can also be done (for example, {Wx::PG::SystemColourProperty} custom handles {Wx::EVT_CHOICE} to display colour picker dialog when 'custom' selection is made).
|
2452
2561
|
# If the event causes value to be changed, {Wx::PG::SystemColourProperty#set_value_in_event} should be called to set the new value.
|
2453
2562
|
# The parameter event is the associated {Wx::Event}.
|
@@ -2463,7 +2572,7 @@ module Wx::PG
|
|
2463
2572
|
# - 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.
|
2464
2573
|
#
|
2465
2574
|
# </p>
|
2466
|
-
# </div
|
2575
|
+
# </div>
|
2467
2576
|
# @param propgrid [Wx::PG::PropertyGrid]
|
2468
2577
|
# @param wnd_primary [Wx::Window]
|
2469
2578
|
# @param event [Wx::Event]
|
@@ -2471,19 +2580,21 @@ module Wx::PG
|
|
2471
2580
|
def on_event(propgrid, wnd_primary, event) end
|
2472
2581
|
|
2473
2582
|
# Reimplement this member function to add special handling for attributes of this property.
|
2583
|
+
#
|
2474
2584
|
# Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
|
2475
2585
|
#
|
2476
2586
|
# <div class="wxrb-remark">
|
2477
2587
|
# <b>Remark:</b>
|
2478
2588
|
# <p>To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
2479
2589
|
# </p>
|
2480
|
-
# </div
|
2590
|
+
# </div>
|
2481
2591
|
# @param name [String]
|
2482
2592
|
# @param value [Wx::Variant]
|
2483
2593
|
# @return [Boolean]
|
2484
2594
|
def do_set_attribute(name, value) end
|
2485
2595
|
|
2486
2596
|
# Returns size of the custom painted image in front of property.
|
2597
|
+
#
|
2487
2598
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
2488
2599
|
#
|
2489
2600
|
# <div class="wxrb-remark">
|
@@ -2495,12 +2606,13 @@ module Wx::PG
|
|
2495
2606
|
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
2496
2607
|
#
|
2497
2608
|
# </p>
|
2498
|
-
# </div
|
2609
|
+
# </div>
|
2499
2610
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
2500
2611
|
# @return [Wx::Size]
|
2501
2612
|
def on_measure_image(item) end
|
2502
2613
|
|
2503
2614
|
# Override to paint an image in front of the property value text or drop-down list item (but only if {Wx::PG::PGProperty#on_measure_image} is overridden as well).
|
2615
|
+
#
|
2504
2616
|
# If property's {Wx::PG::SystemColourProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::SystemColourProperty#on_measure_image} returned higher height than row height).
|
2505
2617
|
# NOTE: Following applies when {Wx::PG::SystemColourProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
|
2506
2618
|
#
|
@@ -2514,7 +2626,7 @@ module Wx::PG
|
|
2514
2626
|
# - 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.
|
2515
2627
|
#
|
2516
2628
|
# </p>
|
2517
|
-
# </div
|
2629
|
+
# </div>
|
2518
2630
|
# @see Wx::PG::SystemColourProperty#value_to_string
|
2519
2631
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
2520
2632
|
# @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).
|
@@ -2527,6 +2639,7 @@ module Wx::PG
|
|
2527
2639
|
def query_colour_from_user(variant) end
|
2528
2640
|
|
2529
2641
|
# Default is to use {Wx::SystemSettings.get_colour(index)}.
|
2642
|
+
#
|
2530
2643
|
# Override to use custom colour tables etc.
|
2531
2644
|
# @param index [Integer]
|
2532
2645
|
# @return [Wx::Colour]
|
@@ -2565,6 +2678,7 @@ module Wx::PG
|
|
2565
2678
|
end # SystemColourProperty
|
2566
2679
|
|
2567
2680
|
# Allows to select a colour from the list or with colour dialog.
|
2681
|
+
#
|
2568
2682
|
# Value used is of {Wx::PG::ColourPropertyValue} type.
|
2569
2683
|
# <b>Supported special attributes:</b> {Wx::PG::PG_COLOUR_ALLOW_CUSTOM}, {Wx::PG::PG_COLOUR_HAS_ALPHA}
|
2570
2684
|
#
|
@@ -2578,17 +2692,19 @@ module Wx::PG
|
|
2578
2692
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=Wx::WHITE) end
|
2579
2693
|
|
2580
2694
|
# Converts property value into a text representation.
|
2695
|
+
#
|
2581
2696
|
# <div class="wxrb-remark">
|
2582
2697
|
# <b>Remark:</b>
|
2583
2698
|
# <p>Default implementation calls {Wx::PG::ColourProperty#generate_composed_value}.
|
2584
2699
|
# </p>
|
2585
|
-
# </div
|
2700
|
+
# </div>
|
2586
2701
|
# @param value [Wx::Variant] Value to be converted.
|
2587
2702
|
# @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.
|
2588
2703
|
# @return [String]
|
2589
2704
|
def value_to_string(value, argFlags=0) end
|
2590
2705
|
|
2591
2706
|
# Default is to use {Wx::SystemSettings.get_colour(index)}.
|
2707
|
+
#
|
2592
2708
|
# Override to use custom colour tables etc.
|
2593
2709
|
# @param index [Integer]
|
2594
2710
|
# @return [Wx::Colour]
|
@@ -2613,6 +2729,7 @@ module Wx::PG
|
|
2613
2729
|
end # ColourProperty
|
2614
2730
|
|
2615
2731
|
# Because text, background and other colours tend to differ between platforms, {Wx::PG::SystemColourProperty} must be able to select between system colour and, when necessary, to pick a custom one.
|
2732
|
+
#
|
2616
2733
|
# {Wx::PG::SystemColourProperty} value makes this possible.
|
2617
2734
|
#
|
2618
2735
|
#
|