wxruby3 0.9.0-x64-mingw-ucrt → 0.9.1-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/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/const.rb +83 -0
- data/lib/wx/core/events/evt_list.rb +24 -0
- data/lib/wx/doc/const.rb +66 -66
- data/lib/wx/doc/event.rb +0 -6
- data/lib/wx/doc/functions.rb +9 -9
- data/lib/wx/doc/gen/activity_indicator.rb +2 -2
- data/lib/wx/doc/gen/animation_ctrl.rb +2 -2
- data/lib/wx/doc/gen/app_traits.rb +1 -1
- data/lib/wx/doc/gen/art_provider.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +2 -2
- data/lib/wx/doc/gen/banner_window.rb +2 -2
- data/lib/wx/doc/gen/bitmap.rb +2 -2
- data/lib/wx/doc/gen/bitmap_button.rb +2 -2
- data/lib/wx/doc/gen/bitmap_combo_box.rb +4 -4
- data/lib/wx/doc/gen/button.rb +2 -2
- data/lib/wx/doc/gen/calendar_ctrl.rb +2 -2
- data/lib/wx/doc/gen/check_box.rb +2 -2
- data/lib/wx/doc/gen/check_list_box.rb +3 -3
- data/lib/wx/doc/gen/choice.rb +2 -2
- data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/combo_box.rb +4 -4
- data/lib/wx/doc/gen/combo_ctrl.rb +5 -5
- data/lib/wx/doc/gen/command_link_button.rb +2 -2
- data/lib/wx/doc/gen/control.rb +2 -2
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/cursor.rb +1 -1
- data/lib/wx/doc/gen/data_object.rb +1 -1
- data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dc.rb +2 -2
- data/lib/wx/doc/gen/defs.rb +3 -3
- data/lib/wx/doc/gen/dial_up_event.rb +42 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +129 -0
- data/lib/wx/doc/gen/dialog.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/editable_list_box.rb +2 -2
- data/lib/wx/doc/gen/event.rb +7 -1
- data/lib/wx/doc/gen/event_list.rb +30 -2
- data/lib/wx/doc/gen/events.rb +11 -15
- data/lib/wx/doc/gen/file_ctrl.rb +200 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +80 -0
- data/lib/wx/doc/gen/file_dialog.rb +1 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/font.rb +1 -1
- data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/frame.rb +4 -4
- data/lib/wx/doc/gen/gauge.rb +2 -2
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
- data/lib/wx/doc/gen/graphics_context.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +2 -2
- data/lib/wx/doc/gen/header_ctrl.rb +3 -3
- data/lib/wx/doc/gen/help_controller.rb +39 -0
- data/lib/wx/doc/gen/html/html_easy_printing.rb +1 -1
- data/lib/wx/doc/gen/html/html_help_controller.rb +39 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +5 -5
- data/lib/wx/doc/gen/html/html_window.rb +1 -1
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +2 -2
- data/lib/wx/doc/gen/list_box.rb +5 -5
- data/lib/wx/doc/gen/list_ctrl.rb +3 -3
- data/lib/wx/doc/gen/mdi_frame.rb +4 -4
- data/lib/wx/doc/gen/media_ctrl.rb +2 -2
- data/lib/wx/doc/gen/menu_item.rb +76 -76
- data/lib/wx/doc/gen/mini_frame.rb +2 -2
- data/lib/wx/doc/gen/notebook.rb +2 -2
- data/lib/wx/doc/gen/panel.rb +2 -2
- data/lib/wx/doc/gen/pg/property_grid.rb +2 -2
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -2
- data/lib/wx/doc/gen/platform_info.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +1 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +1 -1
- data/lib/wx/doc/gen/radio_box.rb +4 -4
- data/lib/wx/doc/gen/radio_button.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +2 -2
- data/lib/wx/doc/gen/rearrange_list.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +9 -9
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +3 -0
- data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
- data/lib/wx/doc/gen/sash_window.rb +1 -1
- data/lib/wx/doc/gen/scroll_bar.rb +2 -2
- data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
- data/lib/wx/doc/gen/scrolled_control.rb +2 -2
- data/lib/wx/doc/gen/scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/search_ctrl.rb +2 -2
- data/lib/wx/doc/gen/slider.rb +2 -2
- data/lib/wx/doc/gen/spin_button.rb +1 -1
- data/lib/wx/doc/gen/splitter_window.rb +2 -2
- data/lib/wx/doc/gen/static_bitmap.rb +2 -2
- data/lib/wx/doc/gen/static_box.rb +6 -6
- data/lib/wx/doc/gen/static_line.rb +2 -2
- data/lib/wx/doc/gen/static_text.rb +2 -2
- data/lib/wx/doc/gen/status_bar.rb +2 -2
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
- data/lib/wx/doc/gen/text_ctrl.rb +2 -2
- data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/toggle_button.rb +2 -2
- data/lib/wx/doc/gen/tool_bar.rb +2 -2
- data/lib/wx/doc/gen/top_level_window.rb +2 -2
- data/lib/wx/doc/gen/tree_ctrl.rb +2 -2
- data/lib/wx/doc/gen/utils.rb +1 -1
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/window.rb +5 -5
- data/lib/wx/doc/gen/xml_resource.rb +1 -1
- data/lib/wx/doc/window.rb +5 -0
- data/lib/wx/keyword_defs.rb +43 -6
- 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/macosx.rb +1 -1
- data/samples/text/richtext.rb +0 -30
- data/tests/test_app_exit_exception.rb +36 -0
- data/tests/test_app_init_exception.rb +20 -0
- data/tests/test_book_controls.rb +29 -0
- data/tests/test_exceptions.rb +41 -0
- data/tests/test_sizer.rb +43 -0
- data/tests/test_std_controls.rb +36 -0
- metadata +12 -2
data/lib/wx/doc/gen/tool_bar.rb
CHANGED
@@ -245,7 +245,7 @@ module Wx
|
|
245
245
|
# @overload initialize()
|
246
246
|
# Default constructor.
|
247
247
|
# @return [Wx::ToolBar]
|
248
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::
|
248
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::TOOL_BAR_NAME_STR)
|
249
249
|
# Constructs a toolbar.
|
250
250
|
# After a toolbar is created, you use {Wx::ToolBar#add_tool} and perhaps {Wx::ToolBar#add_separator}, and then you must call {Wx::ToolBar#realize} to construct and display the toolbar tools.
|
251
251
|
# @param parent [Wx::Window] Pointer to a parent window.
|
@@ -271,7 +271,7 @@ module Wx
|
|
271
271
|
def add_check_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=(''), longHelp=(''), clientData=nil) end
|
272
272
|
|
273
273
|
# Adds any control to the toolbar, typically e.g. a {Wx::ComboBox}.
|
274
|
-
#
|
274
|
+
# wxMac: labels are only displayed if wxWidgets is built with {Wx::MAC_USE_NATIVE_TOOLBAR} set to 1
|
275
275
|
# @param control [Wx::Control] The control to be added.
|
276
276
|
# @param label [String] Text to be displayed near the control.
|
277
277
|
# @return [Wx::ToolBarToolBase]
|
@@ -88,7 +88,7 @@ module Wx
|
|
88
88
|
# @overload initialize()
|
89
89
|
# Default ctor.
|
90
90
|
# @return [Wx::TopLevelWindow]
|
91
|
-
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
91
|
+
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR)
|
92
92
|
# Constructor creating the top level window.
|
93
93
|
# @param parent [Wx::Window]
|
94
94
|
# @param id [Integer]
|
@@ -109,7 +109,7 @@ module Wx
|
|
109
109
|
# @param style [Integer]
|
110
110
|
# @param name [String]
|
111
111
|
# @return [Boolean]
|
112
|
-
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
112
|
+
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR) end
|
113
113
|
|
114
114
|
# Returns true if the platform supports making the window translucent.
|
115
115
|
#
|
data/lib/wx/doc/gen/tree_ctrl.rb
CHANGED
@@ -343,7 +343,7 @@ module Wx
|
|
343
343
|
# @overload initialize()
|
344
344
|
# Default Constructor.
|
345
345
|
# @return [Wx::TreeCtrl]
|
346
|
-
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
346
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TREE_CTRL_NAME_STR)
|
347
347
|
# Constructor, creating and showing a tree control.
|
348
348
|
#
|
349
349
|
# @see Wx::TreeCtrl#create
|
@@ -410,7 +410,7 @@ module Wx
|
|
410
410
|
# @param validator [Wx::Validator]
|
411
411
|
# @param name [String]
|
412
412
|
# @return [Boolean]
|
413
|
-
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
413
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TREE_CTRL_NAME_STR) end
|
414
414
|
|
415
415
|
# Deletes the specified item.
|
416
416
|
# A EVT_TREE_DELETE_ITEM event will be generated.
|
data/lib/wx/doc/gen/utils.rb
CHANGED
@@ -50,7 +50,7 @@ module Wx
|
|
50
50
|
# For normal keys, returns true if the specified key is currently down.
|
51
51
|
# For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns true if the key is toggled such that its LED indicator is lit. There is currently no way to test whether togglable keys are up or down.
|
52
52
|
# Even though there are virtual key codes defined for mouse buttons, they cannot be used with this function currently.
|
53
|
-
# In wxGTK, this function can be only used with modifier keys ({Wx::K_ALT}, {Wx::K_CONTROL} and {Wx::K_SHIFT}) when not using X11 backend currently.
|
53
|
+
# In wxGTK, this function can be only used with modifier keys ({Wx::KeyCode::K_ALT}, {Wx::KeyCode::K_CONTROL} and {Wx::KeyCode::K_SHIFT}) when not using X11 backend currently.
|
54
54
|
# @param key [Wx::KeyCode]
|
55
55
|
# @return [Boolean]
|
56
56
|
def self.get_key_state(key) end
|
@@ -35,7 +35,7 @@ module Wx
|
|
35
35
|
# @overload initialize()
|
36
36
|
# Default constructor, you must call {Wx::VListBox#create} later.
|
37
37
|
# @return [Wx::VListBox]
|
38
|
-
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
38
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::V_LIST_BOX_NAME_STR)
|
39
39
|
# Normal constructor which calls {Wx::VListBox#create} internally.
|
40
40
|
# @param parent [Wx::Window]
|
41
41
|
# @param id [Integer]
|
@@ -61,7 +61,7 @@ module Wx
|
|
61
61
|
# @param style [Integer]
|
62
62
|
# @param name [String]
|
63
63
|
# @return [Boolean]
|
64
|
-
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
64
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::V_LIST_BOX_NAME_STR) end
|
65
65
|
|
66
66
|
# Deselects all the items in the listbox.
|
67
67
|
# This method is only valid for multi selection listboxes.
|
@@ -65,7 +65,7 @@ module Wx
|
|
65
65
|
# @overload initialize()
|
66
66
|
# Default constructor, you must call {Wx::VScrolledWindow#create} later.
|
67
67
|
# @return [Wx::VScrolledWindow]
|
68
|
-
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
68
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR)
|
69
69
|
# This is the normal constructor, no need to call {Wx::VScrolledWindow#create} after using this constructor.
|
70
70
|
# {Wx::VSCROLL} is always automatically added to the style, there is no need to specify it explicitly.
|
71
71
|
# @param parent [Wx::Window] The parent window, must not be NULL.
|
@@ -86,7 +86,7 @@ module Wx
|
|
86
86
|
# @param style [Integer]
|
87
87
|
# @param name [String]
|
88
88
|
# @return [Boolean]
|
89
|
-
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
89
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR) end
|
90
90
|
|
91
91
|
# Returns the number of rows the target window contains.
|
92
92
|
#
|
data/lib/wx/doc/gen/window.rb
CHANGED
@@ -1667,15 +1667,15 @@ module Wx
|
|
1667
1667
|
# Returns true if the focus was moved to another window or false if nothing changed.
|
1668
1668
|
#
|
1669
1669
|
# You may wish to call this from a text control custom keypress handler to do the default navigation behaviour for the tab key, since the standard default behaviour for a multiline text control with the {Wx::TE_PROCESS_TAB} style is to insert a tab and not navigate to the next control. See also {Wx::NavigationKeyEvent} and HandleAsNavigationKey.
|
1670
|
-
# @param flags [Integer] A combination of {Wx::NavigationKeyEvent::IsForward} and {Wx::NavigationKeyEvent::WinChange}.
|
1670
|
+
# @param flags [Integer] A combination of {Wx::NavigationKeyEvent::NavigationKeyEventFlags::IsForward} and {Wx::NavigationKeyEvent::NavigationKeyEventFlags::WinChange}.
|
1671
1671
|
# @return [Boolean]
|
1672
|
-
def navigate(flags=
|
1672
|
+
def navigate(flags=NavigationKeyEvent::IsForward) end
|
1673
1673
|
|
1674
1674
|
# Performs a keyboard navigation action inside this window.
|
1675
1675
|
# See {Wx::Window#navigate} for more information.
|
1676
1676
|
# @param flags [Integer]
|
1677
1677
|
# @return [Boolean]
|
1678
|
-
def navigate_in(flags=
|
1678
|
+
def navigate_in(flags=NavigationKeyEvent::IsForward) end
|
1679
1679
|
|
1680
1680
|
# Lowers the window to the bottom of the window hierarchy (Z-order).
|
1681
1681
|
# This function only works for {Wx::TopLevelWindow}-derived classes.
|
@@ -2403,7 +2403,7 @@ module Wx
|
|
2403
2403
|
# @overload initialize()
|
2404
2404
|
# Default constructor.
|
2405
2405
|
# @return [Wx::Window]
|
2406
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
2406
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR)
|
2407
2407
|
# Constructs a window, which can be a child of a frame, dialog or any other non-control window.
|
2408
2408
|
# @param parent [Wx::Window] Pointer to a parent window.
|
2409
2409
|
# @param id [Integer] Window identifier. If {Wx::StandardID::ID_ANY}, will automatically create an identifier. See Window IDs for more information about IDs.
|
@@ -2467,7 +2467,7 @@ module Wx
|
|
2467
2467
|
# @param style [Integer]
|
2468
2468
|
# @param name [String]
|
2469
2469
|
# @return [Boolean]
|
2470
|
-
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
2470
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR) end
|
2471
2471
|
|
2472
2472
|
end # Window
|
2473
2473
|
|
@@ -110,7 +110,7 @@ module Wx
|
|
110
110
|
# end
|
111
111
|
# ```
|
112
112
|
#
|
113
|
-
# If {Wx::
|
113
|
+
# If {Wx::Setup::USE_FILESYSTEM} is enabled, this method understands {Wx::FileSystem} URLs.
|
114
114
|
#
|
115
115
|
# If you are sure that the argument is name of single XRC file (rather than an URL or a wildcard), use {Wx::XmlResource#load_file} instead.
|
116
116
|
# @see Wx::XmlResource#load_file
|
data/lib/wx/doc/window.rb
CHANGED
@@ -48,4 +48,9 @@ class Wx::Window
|
|
48
48
|
# @return [Wx::Window]
|
49
49
|
def find_window_by_name(name) end
|
50
50
|
|
51
|
+
# Switches the current sizer with the given sizer and detaches and returns the 'old' sizer.
|
52
|
+
# @param [Wx::Sizer] new_sizer new sizer for window
|
53
|
+
# @return [Wx::Sizer] previous window sizer
|
54
|
+
def switch_sizer(new_sizer) end
|
55
|
+
|
51
56
|
end
|
data/lib/wx/keyword_defs.rb
CHANGED
@@ -349,8 +349,6 @@ Wx::define_keyword_ctors(Wx::ComboCtrl) do
|
|
349
349
|
wx_ctor_params :validator, :name => 'comboCtrl'
|
350
350
|
end
|
351
351
|
|
352
|
-
# wxDatePickerCtrl Small date picker control
|
353
|
-
|
354
352
|
# wxGauge A control to represent a varying quantity, such as time
|
355
353
|
# remaining
|
356
354
|
Wx::define_keyword_ctors(Wx::Gauge) do
|
@@ -514,8 +512,50 @@ Wx::define_keyword_ctors(Wx::VListBox) do
|
|
514
512
|
wx_ctor_params :id, :pos, :size, :style, :name => 'VListBoxNameStr'
|
515
513
|
end
|
516
514
|
|
515
|
+
# wxDatePickerCtrl Small date picker control
|
517
516
|
Wx::define_keyword_ctors(Wx::DatePickerCtrl) do
|
518
|
-
wx_ctor_params :id, :dt, :pos, :size, :style
|
517
|
+
wx_ctor_params :id, :dt, :pos, :size, :style => Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY
|
518
|
+
wx_ctor_params :validator, :name => 'datePickerCtrl'
|
519
|
+
end
|
520
|
+
|
521
|
+
Wx::define_keyword_ctors(Wx::TimePickerCtrl) do
|
522
|
+
wx_ctor_params :id, :dt, :pos, :size, :style => Wx::TP_DEFAULT
|
523
|
+
wx_ctor_params :validator, :name => 'timePickerCtrl'
|
524
|
+
end
|
525
|
+
|
526
|
+
Wx::define_keyword_ctors(Wx::ColourPickerCtrl) do
|
527
|
+
wx_ctor_params :id, :colour => :BLACK
|
528
|
+
wx_ctor_params :pos, :size, :style => Wx::CLRP_DEFAULT_STYLE
|
529
|
+
wx_ctor_params :validator, :name => 'colourPickerCtrl'
|
530
|
+
end
|
531
|
+
|
532
|
+
Wx::define_keyword_ctors(Wx::FontPickerCtrl) do
|
533
|
+
wx_ctor_params :id, :font => Wx::NULL_FONT
|
534
|
+
wx_ctor_params :pos, :size, :style => Wx::FNTP_DEFAULT_STYLE
|
535
|
+
wx_ctor_params :validator, :name => 'fontPickerCtrl'
|
536
|
+
end
|
537
|
+
|
538
|
+
Wx::define_keyword_ctors(Wx::FilePickerCtrl) do
|
539
|
+
wx_ctor_params :id, :path => ''
|
540
|
+
wx_ctor_params :message => Wx::FILE_SELECTOR_PROMPT_STR
|
541
|
+
wx_ctor_params :wildcard => Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR
|
542
|
+
wx_ctor_params :pos, :size, :style => Wx::FLP_DEFAULT_STYLE
|
543
|
+
wx_ctor_params :validator, :name => 'filePickerCtrl'
|
544
|
+
end
|
545
|
+
|
546
|
+
Wx::define_keyword_ctors(Wx::DirPickerCtrl) do
|
547
|
+
wx_ctor_params :id, :path => ''
|
548
|
+
wx_ctor_params :message => Wx::DIR_SELECTOR_PROMPT_STR
|
549
|
+
wx_ctor_params :pos, :size, :style => Wx::DIRP_DEFAULT_STYLE
|
550
|
+
wx_ctor_params :validator, :name => 'dirPickerCtrl'
|
551
|
+
end
|
552
|
+
|
553
|
+
Wx::define_keyword_ctors(Wx::FileCtrl) do
|
554
|
+
wx_ctor_params :id, :defaultDirectory => ''
|
555
|
+
wx_ctor_params :defaultFilename => ''
|
556
|
+
wx_ctor_params :wildcard => Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR
|
557
|
+
wx_ctor_params :style => Wx::FC_DEFAULT_STYLE
|
558
|
+
wx_ctor_params :pos, :size, :name => 'fileCtrl'
|
519
559
|
end
|
520
560
|
|
521
561
|
Wx::define_keyword_ctors(Wx::ActivityIndicator) do
|
@@ -542,6 +582,3 @@ Wx::define_keyword_ctors(Wx::RearrangeCtrl) do
|
|
542
582
|
wx_ctor_params :id, :pos, :size, :order, :items, :style
|
543
583
|
wx_ctor_params :validator, :name => 'rearrangeCtrl'
|
544
584
|
end
|
545
|
-
|
546
|
-
# FIXME - SymbolPickerDialog is hard to because the parent argument is
|
547
|
-
# in a strange place.
|
data/lib/wx/version.rb
CHANGED
data/lib/wxruby_aui.so
CHANGED
Binary file
|
data/lib/wxruby_core.so
CHANGED
Binary file
|
data/lib/wxruby_grid.so
CHANGED
Binary file
|
data/lib/wxruby_html.so
CHANGED
Binary file
|
data/lib/wxruby_pg.so
CHANGED
Binary file
|
data/lib/wxruby_prt.so
CHANGED
Binary file
|
data/lib/wxruby_rbn.so
CHANGED
Binary file
|
data/lib/wxruby_rtc.so
CHANGED
Binary file
|
data/lib/wxruby_stc.so
CHANGED
Binary file
|
@@ -107,7 +107,7 @@ module WXRuby3
|
|
107
107
|
@ld.sub!(/-o\s*\Z/, '')
|
108
108
|
|
109
109
|
@extra_cflags.concat %w[-Wno-unused-function -Wno-conversion-null -Wno-sometimes-uninitialized
|
110
|
-
-Wno-overloaded-virtual -Wno-deprecated-copy]
|
110
|
+
-Wno-overloaded-virtual -Wno-deprecated-copy -Wno-format-security]
|
111
111
|
@extra_cflags << ' -Wno-deprecated-declarations' unless @no_deprecated
|
112
112
|
|
113
113
|
# create a .dylib binary
|
data/samples/text/richtext.rb
CHANGED
@@ -1432,36 +1432,6 @@ class MyFrame < Wx::Frame
|
|
1432
1432
|
|
1433
1433
|
end
|
1434
1434
|
|
1435
|
-
# Forward command events to the current rich text control, if any
|
1436
|
-
def try_before(event)
|
1437
|
-
if event.is_command_event && !event.is_a?(Wx::ChildFocusEvent)
|
1438
|
-
# Problem: we can get infinite recursion because the events
|
1439
|
-
# climb back up to this frame, and repeat.
|
1440
|
-
# Assume that command events don't cause another command event
|
1441
|
-
# to be called, so we can rely on inCommand not being overwritten
|
1442
|
-
|
1443
|
-
if MyFrame.win_id != event.id && MyFrame.event_type != event.event_type
|
1444
|
-
MyFrame.event_type = event.event_type
|
1445
|
-
MyFrame.win_id = event.id
|
1446
|
-
focusWin = Wx.find_focus_descendant(self)
|
1447
|
-
focusWin = @richTextCtrl unless focusWin
|
1448
|
-
|
1449
|
-
if focusWin && focusWin.get_event_handler.process_event(event)
|
1450
|
-
MyFrame.event_type = 0
|
1451
|
-
MyFrame.win_id = 0
|
1452
|
-
return true
|
1453
|
-
end
|
1454
|
-
|
1455
|
-
MyFrame.event_type = 0
|
1456
|
-
MyFrame.win_id = 0
|
1457
|
-
else
|
1458
|
-
return false
|
1459
|
-
end
|
1460
|
-
end
|
1461
|
-
|
1462
|
-
false
|
1463
|
-
end
|
1464
|
-
|
1465
1435
|
# Write text
|
1466
1436
|
def write_initial_text
|
1467
1437
|
r = @richTextCtrl
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
+
#
|
3
|
+
# This software is released under the MIT license.
|
4
|
+
|
5
|
+
require 'test/unit'
|
6
|
+
require 'wx'
|
7
|
+
|
8
|
+
class TestApp < Test::Unit::TestCase
|
9
|
+
|
10
|
+
class TestFrame < Wx::Frame
|
11
|
+
def initialize
|
12
|
+
super(nil, -1, '')
|
13
|
+
evt_paint { on_paint }
|
14
|
+
end
|
15
|
+
|
16
|
+
def on_paint
|
17
|
+
paint {}
|
18
|
+
close
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class TestApp < Wx::App
|
23
|
+
def on_init
|
24
|
+
TestFrame.new.show
|
25
|
+
end
|
26
|
+
|
27
|
+
def on_exit
|
28
|
+
raise RuntimeError, 'on_exit exception'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_self_closing_frame
|
33
|
+
assert_raise_kind_of(RuntimeError) { TestApp.run }
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
+
#
|
3
|
+
# This software is released under the MIT license.
|
4
|
+
|
5
|
+
require 'test/unit'
|
6
|
+
require 'wx'
|
7
|
+
|
8
|
+
class AppInitExitExceptions < Test::Unit::TestCase
|
9
|
+
|
10
|
+
class TestApp < Wx::App
|
11
|
+
def on_init
|
12
|
+
raise RuntimeError, 'on_init exception'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_on_init_exception
|
17
|
+
assert_raise_kind_of(RuntimeError) { TestApp.run }
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
+
#
|
3
|
+
# This software is released under the MIT license.
|
4
|
+
|
5
|
+
require_relative './lib/wxframe_runner'
|
6
|
+
|
7
|
+
class BookCtrlTests < WxRuby::Test::GUITests
|
8
|
+
|
9
|
+
def setup
|
10
|
+
super
|
11
|
+
@book = Wx::Choicebook.new(frame_win, name: 'ChoiceBook')
|
12
|
+
end
|
13
|
+
|
14
|
+
def cleanup
|
15
|
+
@book.destroy
|
16
|
+
super
|
17
|
+
GC.start
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_reader :book
|
21
|
+
|
22
|
+
def test_control_sizer
|
23
|
+
btn = Wx::Button.new(book, Wx::ID_ANY, 'First')
|
24
|
+
# issue #199 : returning the control sizer should not cause it to be owned by Ruby
|
25
|
+
# because that would cause double deletes
|
26
|
+
book.get_control_sizer.add(btn, Wx::SizerFlags.new.expand.border(Wx::ALL))
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
+
#
|
3
|
+
# This software is released under the MIT license.
|
4
|
+
|
5
|
+
require_relative './lib/wxframe_runner'
|
6
|
+
|
7
|
+
class DirectorExceptionTests < WxRuby::Test::GUITests
|
8
|
+
|
9
|
+
class InvalidOutputSizer < Wx::BoxSizer
|
10
|
+
|
11
|
+
def calc_min
|
12
|
+
Wx::Point.new(1,1) # expects Wx::Size
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_invalid_output
|
18
|
+
szr = InvalidOutputSizer.new(Wx::Orientation::VERTICAL)
|
19
|
+
szr.add(Wx::Button.new(frame_win, name: 'button'), Wx::Direction::TOP)
|
20
|
+
frame_win.sizer = szr
|
21
|
+
assert_raise_kind_of(TypeError) { frame_win.layout }
|
22
|
+
frame_win.sizer = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
class ExceptionSizer < Wx::BoxSizer
|
26
|
+
|
27
|
+
def calc_min
|
28
|
+
raise RuntimeError, 'AnyThing'
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_exception_in_overload
|
34
|
+
szr = ExceptionSizer.new(Wx::Orientation::VERTICAL)
|
35
|
+
szr.add(Wx::Button.new(frame_win, name: 'button'), Wx::Direction::TOP)
|
36
|
+
frame_win.sizer = szr
|
37
|
+
assert_raise_kind_of(RuntimeError) { frame_win.layout }
|
38
|
+
frame_win.sizer = nil
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
data/tests/test_sizer.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
+
#
|
3
|
+
# This software is released under the MIT license.
|
4
|
+
|
5
|
+
require_relative './lib/wxframe_runner'
|
6
|
+
|
7
|
+
class SizerTests < WxRuby::Test::GUITests
|
8
|
+
|
9
|
+
def setup
|
10
|
+
super
|
11
|
+
frame_win.set_sizer(Wx::VBoxSizer.new)
|
12
|
+
end
|
13
|
+
|
14
|
+
def cleanup
|
15
|
+
super
|
16
|
+
GC.start
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_detach
|
20
|
+
frame_win.get_sizer.add(Wx::HBoxSizer.new)
|
21
|
+
frame_win.get_sizer.add_spacer(5)
|
22
|
+
# detaches HBoxSizer transferring ownership to Ruby; should not cause segfaults at GC
|
23
|
+
frame_win.get_sizer.detach(0)
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_sizer_item_detach_and_re_attach
|
27
|
+
frame_win.get_sizer.add(Wx::HBoxSizer.new)
|
28
|
+
frame_win.get_sizer.add_spacer(5)
|
29
|
+
# get and detach
|
30
|
+
szr_itm = frame_win.get_sizer.get_item(0)
|
31
|
+
assert_not_nil(szr_itm)
|
32
|
+
assert_true(szr_itm.is_sizer)
|
33
|
+
szr = szr_itm.get_sizer
|
34
|
+
assert_not_nil(szr)
|
35
|
+
szr_itm.detach_sizer
|
36
|
+
assert_nil(szr_itm.get_sizer)
|
37
|
+
# remove sizer item
|
38
|
+
assert_true(frame_win.get_sizer.remove(0))
|
39
|
+
# re-attach detached sizer (should not cause segfaults at close due to incorrect ownership transfers)
|
40
|
+
assert_not_nil(frame_win.get_sizer.prepend(szr))
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
data/tests/test_std_controls.rb
CHANGED
@@ -439,3 +439,39 @@ class GaugeTests < WxRuby::Test::GUITests
|
|
439
439
|
assert_equal(100, gauge.value)
|
440
440
|
end
|
441
441
|
end
|
442
|
+
|
443
|
+
class StaticBoxTests < WxRuby::Test::GUITests
|
444
|
+
|
445
|
+
def setup
|
446
|
+
super
|
447
|
+
@box = nil
|
448
|
+
end
|
449
|
+
|
450
|
+
def cleanup
|
451
|
+
@box.destroy if @box
|
452
|
+
super
|
453
|
+
end
|
454
|
+
|
455
|
+
attr_reader :box
|
456
|
+
|
457
|
+
def test_basic
|
458
|
+
@box = Wx::StaticBox.new(frame_win, label: 'Box')
|
459
|
+
|
460
|
+
txt = Wx::StaticText.new(box, Wx::ID_ANY, "This window is a child of the staticbox")
|
461
|
+
assert_equal(box, txt.parent)
|
462
|
+
end
|
463
|
+
|
464
|
+
unless Wx::PLATFORM == 'WXOSX'
|
465
|
+
|
466
|
+
def test_label_window
|
467
|
+
check = Wx::CheckBox.new(frame_win, Wx::ID_ANY, 'Enable')
|
468
|
+
@box = Wx::StaticBox.new(frame_win, label: check)
|
469
|
+
|
470
|
+
button = Wx::Button.new(box, label: 'Button')
|
471
|
+
box.enable(false)
|
472
|
+
assert_false(button.is_enabled)
|
473
|
+
end
|
474
|
+
|
475
|
+
end
|
476
|
+
|
477
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wxruby3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: x64-mingw-ucrt
|
6
6
|
authors:
|
7
7
|
- Martin Corino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/wx/core/combo_ctrl.rb
|
129
129
|
- lib/wx/core/combobox.rb
|
130
130
|
- lib/wx/core/config.rb
|
131
|
+
- lib/wx/core/const.rb
|
131
132
|
- lib/wx/core/controlwithitems.rb
|
132
133
|
- lib/wx/core/cursor.rb
|
133
134
|
- lib/wx/core/data_object.rb
|
@@ -303,6 +304,8 @@ files:
|
|
303
304
|
- lib/wx/doc/gen/date_picker_ctrl.rb
|
304
305
|
- lib/wx/doc/gen/dc.rb
|
305
306
|
- lib/wx/doc/gen/defs.rb
|
307
|
+
- lib/wx/doc/gen/dial_up_event.rb
|
308
|
+
- lib/wx/doc/gen/dial_up_manager.rb
|
306
309
|
- lib/wx/doc/gen/dialog.rb
|
307
310
|
- lib/wx/doc/gen/dir_dialog.rb
|
308
311
|
- lib/wx/doc/gen/dir_filter_list_ctrl.rb
|
@@ -317,6 +320,8 @@ files:
|
|
317
320
|
- lib/wx/doc/gen/events.rb
|
318
321
|
- lib/wx/doc/gen/evt_handler.rb
|
319
322
|
- lib/wx/doc/gen/ext_help_controller.rb
|
323
|
+
- lib/wx/doc/gen/file_ctrl.rb
|
324
|
+
- lib/wx/doc/gen/file_ctrl_event.rb
|
320
325
|
- lib/wx/doc/gen/file_dialog.rb
|
321
326
|
- lib/wx/doc/gen/file_dialog_custom_control.rb
|
322
327
|
- lib/wx/doc/gen/file_dialog_customize_hook.rb
|
@@ -1054,11 +1059,14 @@ files:
|
|
1054
1059
|
- tests/lib/wxapp_runner.rb
|
1055
1060
|
- tests/lib/wxframe_runner.rb
|
1056
1061
|
- tests/test_app_event_filter.rb
|
1062
|
+
- tests/test_app_exit_exception.rb
|
1063
|
+
- tests/test_app_init_exception.rb
|
1057
1064
|
- tests/test_app_traits.rb
|
1058
1065
|
- tests/test_art.rb
|
1059
1066
|
- tests/test_art_provider.rb
|
1060
1067
|
- tests/test_aui.rb
|
1061
1068
|
- tests/test_basic.rb
|
1069
|
+
- tests/test_book_controls.rb
|
1062
1070
|
- tests/test_box_sizer.rb
|
1063
1071
|
- tests/test_clipboard.rb
|
1064
1072
|
- tests/test_config.rb
|
@@ -1066,6 +1074,7 @@ files:
|
|
1066
1074
|
- tests/test_dialog.rb
|
1067
1075
|
- tests/test_event_handling.rb
|
1068
1076
|
- tests/test_events.rb
|
1077
|
+
- tests/test_exceptions.rb
|
1069
1078
|
- tests/test_ext_controls.rb
|
1070
1079
|
- tests/test_file_dialog.rb
|
1071
1080
|
- tests/test_font.rb
|
@@ -1078,6 +1087,7 @@ files:
|
|
1078
1087
|
- tests/test_log.rb
|
1079
1088
|
- tests/test_proof_check.rb
|
1080
1089
|
- tests/test_richtext.rb
|
1090
|
+
- tests/test_sizer.rb
|
1081
1091
|
- tests/test_std_controls.rb
|
1082
1092
|
- tests/test_timer.rb
|
1083
1093
|
- tests/test_variant.rb
|