wxruby3 0.9.4-x64-mingw-ucrt → 0.9.5-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +1 -1
  3. data/README.md +2 -2
  4. data/ext/wxbase32u_gcc_custom.dll +0 -0
  5. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  7. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  19. data/lib/wx/core/combo_ctrl.rb +171 -0
  20. data/lib/wx/doc/comboctrl.rb +128 -3
  21. data/lib/wx/doc/gen/app_traits.rb +2 -54
  22. data/lib/wx/doc/gen/art_provider.rb +0 -2
  23. data/lib/wx/doc/gen/aui/aui_dock_art.rb +77 -77
  24. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -1
  25. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +5 -4
  26. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +20 -20
  27. data/lib/wx/doc/gen/colour.rb +0 -1
  28. data/lib/wx/doc/gen/colour_dialog.rb +1 -1
  29. data/lib/wx/doc/gen/combo_box.rb +3 -2
  30. data/lib/wx/doc/gen/combo_ctrl.rb +91 -227
  31. data/lib/wx/doc/gen/core.rb +2 -2
  32. data/lib/wx/doc/gen/dc.rb +0 -3
  33. data/lib/wx/doc/gen/dialog.rb +0 -1
  34. data/lib/wx/doc/gen/events.rb +2 -24
  35. data/lib/wx/doc/gen/file_dialog.rb +0 -2
  36. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +53 -61
  37. data/lib/wx/doc/gen/file_system.rb +1 -58
  38. data/lib/wx/doc/gen/frame.rb +0 -1
  39. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -12
  40. data/lib/wx/doc/gen/header_ctrl.rb +0 -1
  41. data/lib/wx/doc/gen/image.rb +0 -2
  42. data/lib/wx/doc/gen/list_ctrl.rb +0 -1
  43. data/lib/wx/doc/gen/media_ctrl.rb +0 -6
  44. data/lib/wx/doc/gen/menu.rb +0 -2
  45. data/lib/wx/doc/gen/notebook.rb +0 -1
  46. data/lib/wx/doc/gen/pg/pg_property.rb +0 -13
  47. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -2
  48. data/lib/wx/doc/gen/pg/property_grid.rb +0 -2
  49. data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
  50. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -2
  51. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -2
  52. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -1
  53. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -1
  54. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -1
  55. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +3 -0
  56. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -1
  57. data/lib/wx/doc/gen/scroll_bar.rb +0 -1
  58. data/lib/wx/doc/gen/sizer.rb +0 -1
  59. data/lib/wx/doc/gen/slider.rb +0 -1
  60. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  61. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -1
  62. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -1
  63. data/lib/wx/doc/gen/task_bar_icon.rb +0 -1
  64. data/lib/wx/doc/gen/text_ctrl.rb +0 -5
  65. data/lib/wx/doc/gen/tree_ctrl.rb +0 -2
  66. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -1
  67. data/lib/wx/doc/gen/wizard.rb +0 -1
  68. data/lib/wx/doc/gen/wizard_page.rb +0 -1
  69. data/lib/wx/doc/owner_drawn_combobox.rb +5 -1
  70. data/lib/wx/version.rb +1 -1
  71. data/lib/wxruby_aui.so +0 -0
  72. data/lib/wxruby_core.so +0 -0
  73. data/lib/wxruby_grid.so +0 -0
  74. data/lib/wxruby_html.so +0 -0
  75. data/lib/wxruby_pg.so +0 -0
  76. data/lib/wxruby_prt.so +0 -0
  77. data/lib/wxruby_rbn.so +0 -0
  78. data/lib/wxruby_rtc.so +0 -0
  79. data/lib/wxruby_stc.so +0 -0
  80. data/tests/test_combo_ctrl.rb +196 -0
  81. metadata +4 -2
@@ -10,67 +10,59 @@ module Wx
10
10
  #
11
11
  # {Wx::FileDialogCustomizeHook} is an abstract base class, i.e. in order to use a concrete class inheriting from it and implementing its pure virtual {Wx::FileDialogCustomizeHook#add_custom_controls} function must be defined. Then an object of this class should be passed to {Wx::FileDialog#set_customize_hook}, which will result in its {Wx::FileDialogCustomizeHook#add_custom_controls} being called before the dialog is shown, {Wx::FileDialogCustomizeHook#update_custom_controls} being called whenever something changes in the dialog while it is shown and, finally, {Wx::FileDialogCustomizeHook#transfer_data_from_custom_controls} being called when the user accepts their choice in the dialog.
12
12
  # Putting all this together, here is an example of customizing the file dialog using this class:
13
- # ```
14
- # class EncryptHook : public wxFileDialogCustomizeHook
15
- # {
16
- # public:
17
- # // Override to add custom controls using the provided customizer object.
18
- # void AddCustomControls(wxFileDialogCustomize& customizer) override
19
- # {
20
- # // Suppose we can encrypt files when saving them.
21
- # m_checkbox = customizer.AddCheckBox("Encrypt");
22
- #
23
- # // While m_checkbox is not a wxCheckBox, it looks almost like one
24
- # // and, in particular, we can bind to custom control events as usual.
25
- # m_checkbox->Bind(wxEVT_CHECKBOX, [this](wxCommandEvent& event) {
26
- # // We can also call wxWindow-like functions on them.
27
- # m_button->Enable(event.IsChecked());
28
- # });
29
- #
30
- # // The encryption parameters can be edited in a dedicated dialog.
31
- # m_button = customizer.AddButton("Parameters...");
32
- # m_button->Bind(wxEVT_BUTTON, [](wxCommandEvent&) {
33
- # ... show the encryption parameters dialog here ...
34
- # });
35
- # }
36
- #
37
- # // Override to save the values of the custom controls.
38
- # void TransferDataFromCustomControls() override
39
- # {
40
- # // Save the checkbox value, as we won't be able to use it any more
41
- # // once this function returns.
42
- # m_encrypt = m_checkbox->GetValue();
43
- # }
44
- #
45
- # // Just a simple accessor to get the results.
46
- # bool Encrypt() const { return m_encrypt; }
47
- #
48
- # private:
49
- # wxFileDialogButton* m_button;
50
- # wxFileDialogCheckBox* m_checkbox;
51
- #
52
- # bool m_encrypt = false;
53
- # };
54
- #
55
- # void SomeFunc()
56
- # {
57
- # wxFileDialog dialog(NULL, "Save document", wxString(), "file.my",
58
- # "My files (*.my)|*.my",
59
- # wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
60
- #
61
- # // This object may be destroyed before the dialog, but must remain
62
- # // alive until ShowModal() returns.
63
- # EncryptHook customizeHook;
64
- # dialog.SetCustomizeHook(customHook);
65
- #
66
- # if ( dialog.ShowModal() == wxID_OK )
67
- # {
68
- # if ( customizeHook.Encrypt() )
69
- # ... save with encryption ...
70
- # else
71
- # ... save without encryption ...
72
- # }
73
- # }
13
+ # ```ruby
14
+ # class EncryptHook < Wx::FileDialogCustomizeHook
15
+ #
16
+ # attr_reader :encrypt
17
+ #
18
+ # # Override to add custom controls using the provided customizer object.
19
+ # def add_custom_controls(customizer)
20
+ # # Suppose we can encrypt files when saving them.
21
+ # @checkbox = customizer.add_check_box('Encrypt')
22
+ #
23
+ # # While @checkbox is not a Wx::CheckBox, it looks almost like one
24
+ # # and, in particular, we can bind to custom control events as usual.
25
+ # @checkbox.evt_checkbox(Wx::ID_ANY) do |event|
26
+ # # We can also call Wx::Window-like functions on them.
27
+ # @button.enable(event.checked?)
28
+ # end
29
+ #
30
+ # # The encryption parameters can be edited in a dedicated dialog.
31
+ # @button = customizer.add_button('Parameters...')
32
+ # @button.evt_button(Wx::ID_ANY) do |event|
33
+ # # ... show the encryption parameters dialog here ...
34
+ # end
35
+ # end
36
+ #
37
+ # # Override to save the values of the custom controls.
38
+ # def transfer_data_from_custom_controls
39
+ # # Save the checkbox value, as we won't be able to use it any more
40
+ # # once this function returns.
41
+ # @encrypt = @checkbox.get_value
42
+ # end
43
+ #
44
+ # end
45
+ #
46
+ # # ...
47
+ #
48
+ # def some_method
49
+ # Wx.FileDialog(nil, 'Save document', '', 'file.my',
50
+ # 'My files (*.my)|*.my',
51
+ # Wx::FD_SAVE | Wx::FD_OVERWRITE_PROMPT) do |dialog|
52
+ #
53
+ # # This object may be destroyed before the dialog, but must remain
54
+ # # alive until #show_modal returns.
55
+ # customize_hook = EncryptHook.new
56
+ # dialog.set_customize_hook(custom_hook)
57
+ #
58
+ # if dialog.show_modal == Wx::ID_OK
59
+ # if customize_hook.encrypt
60
+ # # ... save with encryption ...
61
+ # else
62
+ # # ... save without encryption ...
63
+ # end
64
+ # end
65
+ # end
74
66
  # ```
75
67
  #
76
68
  # Category: Common Dialogs
@@ -91,14 +91,7 @@ module Wx
91
91
 
92
92
  # Returns true if the handler is able to open this file.
93
93
  #
94
- # This function doesn't check whether the file exists or not, it only checks if it knows the protocol. Example:
95
- #
96
- # ```
97
- # bool MyHand::CanOpen(const wxString& location)
98
- # {
99
- # return (GetProtocol(location) == "http");
100
- # }
101
- # ```
94
+ # This function doesn't check whether the file exists or not, it only checks if it knows the protocol.
102
95
  #
103
96
  # Must be overridden in derived handlers.
104
97
  # @param location [String]
@@ -132,10 +125,6 @@ module Wx
132
125
  # Returns the MIME type based on <b>extension</b> of location.
133
126
  #
134
127
  # (While {Wx::FSFile#get_mime_type} returns real MIME type - either extension-based or queried from HTTP.)
135
- # Example:
136
- # ```
137
- # GetMimeTypeFromExt("index.htm") == "text/html"
138
- # ```
139
128
  # @param location [String]
140
129
  # @return [String]
141
130
  def self.get_mime_type_from_ext(location) end
@@ -161,52 +150,6 @@ module Wx
161
150
  #
162
151
  # It is particularly suitable for storing bitmaps from resources or included XPM files so that they can be used with {Wx::HTML} or {Wx::WebView}.
163
152
  # Filenames are prefixed with <code>"memory:"</code>, e.g. <code>"memory:myfile.html"</code>.
164
- # Example:
165
- #
166
- # ```
167
- # \#ifndef __WXMSW__
168
- # \#include "logo.xpm"
169
- # \#endif
170
- #
171
- # void MyFrame::OnAbout(wxCommandEvent&)
172
- # {
173
- # wxFileSystem::AddHandler(new wxMemoryFSHandler);
174
- # wxMemoryFSHandler::AddFile("logo.png", wxBITMAP(logo), wxBITMAP_TYPE_PNG);
175
- # wxMemoryFSHandler::AddFile("about.htm",
176
- # "<html><body>About: "
177
- # "<img src=\"memory:logo.png\"></body></html>");
178
- #
179
- # wxDialog dlg(this, -1, wxString(_("About")));
180
- # wxBoxSizer *topsizer;
181
- # topsizer = new wxBoxSizer(wxVERTICAL);
182
- # \#ifdef USE_WEBVIEW
183
- # wxWebView* browser = wxWebView::New(&dlg, wxID_ANY, wxWebViewDefaultURLStr,
184
- # wxDefaultPosition, wxSize(380, 160));
185
- # browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));
186
- # browser->LoadURL("memory:about.htm");
187
- # \#else // Use wxHtml
188
- # wxHtmlWindow *browser;
189
- # browser = new wxHtmlWindow(&dlg, -1, wxDefaultPosition,
190
- # wxSize(380, 160), wxHW_SCROLLBAR_NEVER);
191
- # browser->SetBorders(0);
192
- # browser->LoadPage("memory:about.htm");
193
- # browser->SetSize(browser->GetInternalRepresentation()->GetWidth(),
194
- # browser->GetInternalRepresentation()->GetHeight());
195
- # \#endif
196
- # topsizer->Add(browser, 1, wxALL, 10);
197
- # topsizer->Add(new wxStaticLine(&dlg, -1), 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
198
- # topsizer->Add(new wxButton(&dlg, wxID_OK, "Ok"),
199
- # 0, wxALL | wxALIGN_RIGHT, 15);
200
- # dlg.SetAutoLayout(true);
201
- # dlg.SetSizer(topsizer);
202
- # topsizer->Fit(&dlg);
203
- # dlg.Centre();
204
- # dlg.ShowModal();
205
- #
206
- # wxMemoryFSHandler::RemoveFile("logo.png");
207
- # wxMemoryFSHandler::RemoveFile("about.htm");
208
- # }
209
- # ```
210
153
  #
211
154
  # Category: Virtual File System
212
155
  # @see Wx::MemoryFSHandler.add_file_with_mime_type
@@ -28,7 +28,6 @@ module Wx
28
28
  # </div>
29
29
  #
30
30
  # ## Default event processing
31
- #
32
31
  # {Wx::Frame} processes the following events:
33
32
  #
34
33
  # - {Wx::EVT_SIZE}: if the frame has exactly one child window, not counting the status and toolbar, this child is resized to take the entire frame client area. If two or more windows are present, they should be laid out explicitly either by manually handling {Wx::EVT_SIZE} or using sizers;
@@ -273,18 +273,6 @@ module Wx::GRID
273
273
  # @wxrb_require USE_GRID
274
274
  class CellSpan < Wx::Enum
275
275
 
276
- # This cell is inside a span covered by another cell.
277
- #
278
- CellSpan_Inside = Wx::GRID::Grid::CellSpan.new(-1)
279
-
280
- # This is a normal, non-spanning cell.
281
- #
282
- CellSpan_None = Wx::GRID::Grid::CellSpan.new(0)
283
-
284
- # This cell spans several physical {Wx::GRID::Grid} cells.
285
- #
286
- CellSpan_Main = Wx::GRID::Grid::CellSpan.new(1)
287
-
288
276
  end # CellSpan
289
277
 
290
278
  # Constants defining different support built-in TAB handling behaviours.
@@ -62,7 +62,6 @@ module Wx
62
62
  # This control is implemented using the native header control under MSW systems and a generic implementation elsewhere.
63
63
  #
64
64
  # ## Future Improvements
65
- #
66
65
  # Some features are supported by the native MSW control and so could be easily implemented in this version of {Wx::HeaderCtrl} but need to be implemented in the generic version as well to be really useful. Please let us know if you need or, better, plan to work on implementing, any of them:
67
66
  #
68
67
  # - Displaying bitmaps instead of or together with the text
@@ -253,13 +253,11 @@ module Wx
253
253
  # One colour value of the image may be used as a mask colour which will lead to the automatic creation of a {Wx::Mask} object associated to the bitmap object.
254
254
  #
255
255
  # ## Alpha channel support
256
- #
257
256
  # Starting from wxWidgets 2.5.0 {Wx::Image} supports alpha channel data, that is in addition to a byte for the red, green and blue colour components for each pixel it also stores a byte representing the pixel opacity.
258
257
  # An alpha value of 0 corresponds to a transparent pixel (null opacity) while a value of 255 means that the pixel is 100% opaque. The constants {Wx::IMAGE_ALPHA_TRANSPARENT} and {Wx::IMAGE_ALPHA_OPAQUE} can be used to indicate those values in a more readable form.
259
258
  # While all images have RGB data, not all images have an alpha channel. Before using {Wx::Image#get_alpha} you should check if this image contains an alpha channel with {Wx::Image#has_alpha}. Currently the BMP, PNG, TGA, and TIFF format handlers have full alpha channel support for loading so if you want to use alpha you have to use one of these formats. If you initialize the image alpha channel yourself using {Wx::Image#set_alpha}, you should save it in either PNG, TGA, or TIFF format to avoid losing it as these are the only handlers that currently support saving with alpha.
260
259
  #
261
260
  # ## Available image handlers
262
- #
263
261
  # The following image handlers are available. {Wx::BMPHandler} is always installed by default. In wxRuby all image handlers are loaded by default at startup by {init_all_image_handlers}.
264
262
  #
265
263
  # - {Wx::BMPHandler}: For loading (including alpha support) and saving, always installed.
@@ -329,7 +329,6 @@ module Wx
329
329
  # </div>
330
330
  #
331
331
  # ## Column Ordering
332
- #
333
332
  # By default, the columns of a list control appear on the screen in order of their indices, i.e. column 0 appears first, then column 1 next, and so on. However this can be changed by using the {Wx::ListCtrl#set_columns_order} function to arbitrarily reorder the columns visual order.
334
333
  # The user can also rearrange the columns interactively by dragging them. In this case, the index of the column is not the same as its order and the functions {Wx::ListCtrl#get_column_order} and {Wx::ListCtrl#get_column_index_from_order} should be used to translate between them.
335
334
  #
@@ -11,13 +11,11 @@ module Wx
11
11
  # {Wx::MediaCtrl} uses native backends to render media, for example on Windows there is a ActiveMovie/DirectShow backend, and on Macintosh there is a QuickTime backend.
12
12
  #
13
13
  # ## Rendering media
14
- #
15
14
  # Depending upon the backend, {Wx::MediaCtrl} can render and display pretty much any kind of media that the native system can - such as an image, mpeg video, or mp3 (without license restrictions - since it relies on native system calls that may not technically have mp3 decoding available, for example, it falls outside the realm of licensing restrictions).
16
15
  # For general operation, all you need to do is call {Wx::MediaCtrl#load} to load the file you want to render, catch the EVT_MEDIA_LOADED event, and then call {Wx::MediaCtrl#play} to show the video/audio of the media in that event.
17
16
  # More complex operations are generally more heavily dependent on the capabilities of the backend. For example, QuickTime cannot set the playback rate of certain streaming media - while DirectShow is slightly more flexible in that regard.
18
17
  #
19
18
  # ## Operation
20
- #
21
19
  # When {Wx::MediaCtrl} plays a file, it plays until the stop position is reached (currently the end of the file/stream). Right before it hits the end of the stream, it fires off a EVT_MEDIA_STOP event to its parent window, at which point the event handler can choose to veto the event, preventing the stream from actually stopping.
22
20
  # Example:
23
21
  #
@@ -40,16 +38,13 @@ module Wx
40
38
  # Note that when changing the state of the media through {Wx::MediaCtrl#play} and other methods, the media may not actually be in the {Wx::MediaState::MEDIASTATE_PLAYING}, for example. If you are relying on the media being in certain state, catch the event relevant to the state. See {Wx::MediaEvent} for the kinds of events that you can catch.
41
39
  #
42
40
  # ## Video size
43
- #
44
41
  # By default, {Wx::MediaCtrl} will scale the size of the video to the requested amount passed to either its constructor or {Wx::MediaCtrl#create}. After calling {Wx::MediaCtrl#load} or performing an equivalent operation, you can subsequently obtain the "real" size of the video (if there is any) by calling {Wx::MediaCtrl#get_best_size}. Note that the actual result on the display will be slightly different when {Wx::MediaCtrl#show_player_controls} is activated and the actual video size will be less than specified due to the extra controls provided by the native toolkit. In addition, the backend may modify {Wx::MediaCtrl#get_best_size} to include the size of the extra controls - so if you want the real size of the video just disable {Wx::MediaCtrl#show_player_controls}.
45
42
  # The idea with setting {Wx::MediaCtrl#get_best_size} to the size of the video is that {Wx::MediaCtrl#get_best_size} is a {Wx::Window}-derived function that is called when sizers on a window recalculate. What this means is that if you use sizers by default the video will show in its original size without any extra assistance needed from the user.
46
43
  #
47
44
  # ## Player controls
48
- #
49
45
  # Normally, when you use {Wx::MediaCtrl} it is just a window for the video to play in. However, some toolkits have their own media player interface. For example, QuickTime generally has a bar below the video with a slider. A special feature available to {Wx::MediaCtrl}, you can use the toolkits interface instead of making your own by using the {Wx::MediaCtrl#show_player_controls} function. There are several options for the flags parameter, with the two general flags being {Wx::MediaCtrlPlayerControls::MEDIACTRLPLAYERCONTROLS_NONE} which turns off the native interface, and {Wx::MediaCtrlPlayerControls::MEDIACTRLPLAYERCONTROLS_DEFAULT} which lets {Wx::MediaCtrl} decide what native controls on the interface. Be sure to review the caveats outlined in Video size before doing so.
50
46
  #
51
47
  # ## Choosing a backend
52
- #
53
48
  # Generally, you should almost certainly leave this part up to {Wx::MediaCtrl} - but if you need a certain backend for a particular reason, such as QuickTime for playing .mov files, all you need to do to choose a specific backend is to pass the name of the backend class to {Wx::MediaCtrl#create}.
54
49
  # The following are valid backend identifiers:
55
50
  #
@@ -59,7 +54,6 @@ module Wx
59
54
  # - <b>{Wx::MEDIABACKEND_WMP10}</b>, Use Windows Media Player 10 (Windows only). Works on systems with either Windows Media Player 9 or 10 installed.
60
55
  #
61
56
  # ## Creating a backend
62
- #
63
57
  # Creating a backend for {Wx::MediaCtrl} is a rather simple process. Simply derive from {Wx::MediaBackendCommonBase} and implement the methods you want. The methods in {Wx::MediaBackend} correspond to those in {Wx::MediaCtrl} except for {Wx::MediaCtrl::CreateControl} which does the actual creation of the control, in cases where a custom control is not needed you may simply call {Wx::Control#create}.
64
58
  # You need to make sure to use the {Wx::DECLARE_CLASS} and {Wx::IMPLEMENT_CLASS} macros.
65
59
  # The only real tricky part is that you need to make sure the file in compiled in, which if there are just backends in there will not happen and you may need to use a force link hack (see {Wx::FORCE_LINK_MODULE} usage in the mediactrl sample).
@@ -21,12 +21,10 @@ module Wx
21
21
  # The radio items are similar to the check items except that all the other items in the same radio group are unchecked when a radio item is checked. The radio group is formed by a contiguous range of radio items, i.e. it starts at the first item of this kind and ends with the first item of a different kind (or the end of the menu). Notice that because the radio groups are defined in terms of the item positions inserting or removing the items in the menu containing the radio items risks to not work correctly.
22
22
  #
23
23
  # ## Allocation strategy
24
- #
25
24
  # All menus must be created on the <b>heap</b> because all menus attached to a menubar or to another menu will be deleted by their parent when it is deleted. The only exception to this rule are the popup menus (i.e. menus used with {Wx::Window#popup_menu}) as wxWidgets does not destroy them to allow reusing the same menu more than once. But the exception applies only to the menus themselves and not to any submenus of popup menus which are still destroyed by wxWidgets as usual and so must be heap-allocated.
26
25
  # As the frame menubar is deleted by the frame itself, it means that normally all menus used are deleted automatically.
27
26
  #
28
27
  # ## Event handling
29
- #
30
28
  # Event handlers for the commands generated by the menu items can be connected directly to the menu object itself using {Wx::EvtHandler#bind}. If this menu is a submenu of another one, the events from its items can also be processed in the parent menu and so on, recursively.
31
29
  # If the menu is part of a menu bar, then events can also be handled in {Wx::MenuBar} object.
32
30
  # Finally, menu events can also be handled in the associated window, which is either the {Wx::Frame} associated with the menu bar this menu belongs to or the window for which {Wx::Window#popup_menu} was called for the popup menus.
@@ -91,7 +91,6 @@ module Wx
91
91
  # - {Wx::EvtHandler#evt_notebook_page_changing}(id, meth = nil, &block): The page selection is about to be changed. Processes a {Wx::EVT_NOTEBOOK_PAGE_CHANGING} event. This event can be vetoed.
92
92
  #
93
93
  # ## Page backgrounds
94
- #
95
94
  # On Windows, the default theme paints a background on the notebook's pages. If you wish to suppress this theme, for aesthetic or performance reasons, there are three ways of doing it. You can use {Wx::NB_NOPAGETHEME} to disable themed drawing for a particular notebook, you can call {Wx::SystemOptions.set_option} to disable it for the whole application, or you can disable it for individual pages by using {Wx::Notebook#set_background_colour}.
96
95
  # To disable themed pages globally:
97
96
  # ```ruby
@@ -321,7 +321,6 @@ module Wx::PG
321
321
  # - Creating Custom Properties
322
322
  #
323
323
  # ## Supplied Ready-to-use Property Classes
324
- #
325
324
  # Here is a list and short description of supplied fully-functional property classes. They are located in either {Wx::props.h} or {Wx::advprops.h}.
326
325
  #
327
326
  # - {Wx::PG::ArrayStringProperty}
@@ -365,11 +364,9 @@ module Wx::PG
365
364
  # - {Wx::PG::UIntProperty}
366
365
  #
367
366
  # ## wxPropertyCategory
368
- #
369
367
  # Not an actual property per se, but a header for a group of properties. Regardless inherits from {Wx::PG::PGProperty}, and supports displaying 'labels' for columns other than the first one. Easiest way to set category's label for second column is to call {Wx::PG::PGProperty#set_value} with string argument.
370
368
  #
371
369
  # ## wxStringProperty
372
- #
373
370
  # Simple string property.
374
371
  # Supported special attributes:
375
372
  #
@@ -383,7 +380,6 @@ module Wx::PG
383
380
  # </div>
384
381
  #
385
382
  # ## wxIntProperty
386
- #
387
383
  # It derives from {Wx::PG::NumericProperty} and displays value as a signed long integer. {Wx::PG::IntProperty} seamlessly supports 64-bit integers (i.e. {Wx::LongLong}) on overflow. To safely convert variant to integer, use code like this:
388
384
  #
389
385
  # ```
@@ -423,7 +419,6 @@ module Wx::PG
423
419
  # - {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
424
420
  #
425
421
  # ## wxUIntProperty
426
- #
427
422
  # Like {Wx::PG::IntProperty}, but displays value as unsigned int. To set the prefix used globally, manipulate {Wx::PG::PG_UINT_PREFIX} string attribute. To set the globally used base, manipulate {Wx::PG::PG_UINT_BASE} int attribute. Regardless of current prefix, understands (hex) values starting with both "0x" and "$" (apart from edit mode). Like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty} seamlessly supports 64-bit unsigned integers (i.e. {Wx::ULongLong}). Same {Wx::Variant} safety rules apply.
428
423
  # Supported special attributes:
429
424
  #
@@ -439,7 +434,6 @@ module Wx::PG
439
434
  # </div>
440
435
  #
441
436
  # ## wxFloatProperty
442
- #
443
437
  # Like {Wx::PG::StringProperty}, but converts text to a double-precision floating point. Default float-to-text precision is 6 decimals, but this can be changed by modifying {Wx::PG::PG_FLOAT_PRECISION} attribute.
444
438
  # Note that when displaying the value, sign is omitted if the resulting textual representation is effectively zero (for example, -0.0001 with precision of 3 will become 0.0 instead of -0.0). This behaviour is unlike what C standard library does, but should result in better end-user experience in almost all cases.
445
439
  # Supported special attributes:
@@ -449,7 +443,6 @@ module Wx::PG
449
443
  # - {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
450
444
  #
451
445
  # ## wxBoolProperty
452
- #
453
446
  # Represents a boolean value. {Wx::Choice} is used as editor control, by the default. {Wx::PG::PG_BOOL_USE_CHECKBOX} attribute can be set to true in order to use check box instead.
454
447
  # Supported special attributes:
455
448
  #
@@ -457,7 +450,6 @@ module Wx::PG
457
450
  # - {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: If set to true cycles combo box instead showing the list.
458
451
  #
459
452
  # ## wxLongStringProperty
460
- #
461
453
  # Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog. Note that in long string values, some control characters are escaped: tab is represented by "\t", line break by "\n", carriage return by "\r" and backslash character by "\\". If another character is preceded
462
454
  # by backslash, the backslash is skipped.
463
455
  # Note also that depending on the system (port), some sequences of special
@@ -597,7 +589,6 @@ module Wx::PG
597
589
  # - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
598
590
  #
599
591
  # ## wxColourProperty
600
- #
601
592
  # <b>Useful alternate editor:</b> Choice.
602
593
  # Represents {Wx::Colour}. {Wx::Button} is used to trigger a colour picker dialog. There are various sub-classing opportunities with this class. See below in {Wx::PG::SystemColourProperty} section for details.
603
594
  # Supported special attributes:
@@ -605,14 +596,12 @@ module Wx::PG
605
596
  # - {Wx::PG::PG_COLOUR_HAS_ALPHA}: If set to true allows user to edit the alpha colour component.
606
597
  #
607
598
  # ## wxFontProperty
608
- #
609
599
  # Represents {Wx::Font}. Various sub-properties are used to edit individual subvalues.
610
600
  # Supported special attributes:
611
601
  #
612
602
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog.
613
603
  #
614
604
  # ## wxSystemColourProperty
615
- #
616
605
  # Represents {Wx::Colour} and a system colour index. {Wx::Choice} is used to edit the value. Drop-down list has color images. Note that value type is {Wx::PG::ColourPropertyValue} instead of {Wx::Colour} (which {Wx::PG::ColourProperty} uses).
617
606
  #
618
607
  # In {Wx::PG::SystemColourProperty}, and its derived class {Wx::PG::ColourProperty}, there are various sub-classing features. To set a basic list of colour names, call {Wx::PG::PGProperty#set_choices}.
@@ -635,11 +624,9 @@ module Wx::PG
635
624
  # ```
636
625
  #
637
626
  # ## wxCursorProperty
638
- #
639
627
  # Represents a {Wx::Cursor}. {Wx::Choice} is used to edit the value. Drop-down list has cursor images under some (WXMSW) platforms.
640
628
  #
641
629
  # ## Creating Custom Properties
642
- #
643
630
  # New properties can be created by subclassing {Wx::PG::PGProperty} or one of the provided property classes, and (re)implementing necessary member functions. Below, each virtual member function has ample documentation about its purpose and any odd details which to keep in mind.
644
631
  # Here is a very simple 'template' code:
645
632
  #
@@ -15,7 +15,6 @@ module Wx::PG
15
15
  #
16
16
  #
17
17
  # ## wxPropertyGrid Window Styles
18
- #
19
18
  # SetWindowStyleFlag method can be used to modify some of these at run-time.
20
19
  #
21
20
  # @wxrb_require USE_PROPGRID
@@ -192,7 +191,6 @@ module Wx::PG
192
191
  #
193
192
  #
194
193
  # ## wxPropertyGrid Action Identifiers
195
- #
196
194
  # These are used with {Wx::PG::PropertyGrid#add_action_trigger} and {Wx::PG::PropertyGrid#clear_action_triggers}.
197
195
  #
198
196
  # @wxrb_require USE_PROPGRID
@@ -13,11 +13,9 @@ module Wx::PG
13
13
  # See also wxPropertyGrid Overview.
14
14
  #
15
15
  # ## Window Styles
16
- #
17
16
  # See wxPropertyGrid Window Styles.
18
17
  #
19
18
  # ## Event Handling
20
- #
21
19
  # Please see {Wx::PG::PropertyGridEvent} for the documentation of all event types you can use with {Wx::PG::PropertyGrid}.
22
20
  #
23
21
  # <div class="wxrb-remark">
@@ -655,12 +655,12 @@ module Wx::PG
655
655
  # @param src [String] String generated by SaveEditableState.
656
656
  # @param restoreStates [Integer] Which parts to restore from source string. See list of editable state flags.
657
657
  # @return [Boolean]
658
- def restore_editable_state(src, restoreStates=Wx::PG::PropertyGrid::EditableStateFlags::AllStates) end
658
+ def restore_editable_state(src, restoreStates=Wx::PG::PropertyGridPage::EditableStateFlags::AllStates) end
659
659
 
660
660
  # Used to acquire user-editable state (selected property, expanded properties, scrolled position, splitter positions).
661
661
  # @param includedStates [Integer] Which parts of state to include. See list of editable state flags.
662
662
  # @return [String]
663
- def save_editable_state(includedStates=Wx::PG::PropertyGrid::EditableStateFlags::AllStates) end
663
+ def save_editable_state(includedStates=Wx::PG::PropertyGridPage::EditableStateFlags::AllStates) end
664
664
 
665
665
  # Set proportion of an auto-stretchable column.
666
666
  #
@@ -49,11 +49,9 @@ module Wx::PG
49
49
  # ```
50
50
  #
51
51
  # ## Window Styles
52
- #
53
52
  # See wxPropertyGrid Window Styles.
54
53
  #
55
54
  # ## Event Handling
56
- #
57
55
  # See wxPropertyGrid Event Handling for more information.
58
56
  #
59
57
  # Category: {Wx::PG::PropertyGrid}
@@ -9,7 +9,6 @@ module Wx::PG
9
9
  #
10
10
  #
11
11
  # ## wxPropertyGridIterator Flags
12
- #
13
12
  # NOTES: At lower 16-bits, there are flags to check if item will be included. At higher 16-bits, there are same flags, but to instead check if children will be included.
14
13
  #
15
14
  # @wxrb_require USE_PROPGRID
@@ -76,7 +75,6 @@ module Wx::PG
76
75
  # Please note that most member functions are inherited and as such not documented on this page. This means you will probably also want to read {Wx::PG::PropertyGridInterface} class reference.
77
76
  #
78
77
  # ## Event Handling
79
- #
80
78
  # {Wx::PG::PropertyGridPage} receives events emitted by its {Wx::PG::PropertyGridManager}, but only those events that are specific to that page. If {Wx::PG::PropertyGridPage}:: IsHandlingAllEvents returns false, then unhandled events are sent to the manager's parent, as usual.
81
79
  # See wxPropertyGrid Event Handling for more information.
82
80
  #
@@ -121,7 +121,6 @@ module Wx::PG
121
121
  #
122
122
  #
123
123
  # ## wxPropertyGridHitTestResult
124
- #
125
124
  # A return value from {Wx::PG::PropertyGrid#hit_test}, contains all you need to know about an arbitrary location on the grid.
126
125
  #
127
126
  #
@@ -11,7 +11,6 @@ module Wx::PRT
11
11
  # See {Wx::DC} for descriptions of the member functions.
12
12
  #
13
13
  # ## Starting a document
14
- #
15
14
  # Document should be started with call to {Wx::PRT::PostScriptDC#start_doc} prior to calling any function to execute a drawing operation. However, some functions, like {Wx::PRT::PostScriptDC#set_font}, may be legitimately called even before {Wx::PRT::PostScriptDC#start_doc}.
16
15
  #
17
16
  # Category: Device Contexts
@@ -15,7 +15,6 @@ module Wx::RTC
15
15
  # You can call {Wx::RTC::RichTextHTMLHandler#get_temporary_image_locations} to get the array of temporary image names.
16
16
  #
17
17
  # ## Handler flags
18
- #
19
18
  # The following flags can be used with this handler, via the handler's {Wx::RTC::RichTextHTMLHandler#set_flags} function or the buffer or control's SetHandlerFlags() function:
20
19
  #
21
20
  # - {Wx::RTC::RICHTEXT_HANDLER_SAVE_IMAGES_TO_MEMORY} Images are saved to the memory filesystem: suitable for showing {Wx::HTML} windows.
@@ -304,6 +304,9 @@ module Wx::RTC
304
304
  # @return [void]
305
305
  def update_styles; end
306
306
 
307
+
308
+ protected
309
+
307
310
  end # RichTextStyleComboCtrl
308
311
 
309
312
 
@@ -11,7 +11,6 @@ module Wx::RTC
11
11
  # You can either add the handler to the buffer and load and save through the buffer or control API, or you can create an instance of the handler on the stack and call its functions directly.
12
12
  #
13
13
  # ## Handler flags
14
- #
15
14
  # The following flags can be used with this handler, via the handler's {Wx::RTC::RichTextXMLHandler#set_flags} function or the buffer or control's SetHandlerFlags() function:
16
15
  #
17
16
  # - {Wx::RTC::RICHTEXT_HANDLER_INCLUDE_STYLESHEET} Include the style sheet in loading and saving operations.
@@ -70,7 +70,6 @@ module Wx
70
70
  # - {Wx::EvtHandler#evt_command_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
71
71
  #
72
72
  # ## The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
73
- #
74
73
  # The EVT_SCROLL_THUMBRELEASE event is only emitted when actually dragging the thumb using the mouse and releasing it (This EVT_SCROLL_THUMBRELEASE event is also followed by an EVT_SCROLL_CHANGED event).
75
74
  # The EVT_SCROLL_CHANGED event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the EVT_SCROLL_THUMBRELEASE event does not happen).
76
75
  # In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/moving has finished independently of the way it had started. Please see the Widgets Sample ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
@@ -36,7 +36,6 @@ module Wx
36
36
  # Please notice that sizers, like child windows, are owned by the library and will be deleted by it which implies that they must be allocated on the heap. However if you create a sizer and do not add it to another sizer or window, the library wouldn't be able to delete such an orphan sizer and in this, and only this, case it should be deleted explicitly.
37
37
  #
38
38
  # ## wxSizer flags
39
- #
40
39
  # The "flag" argument accepted by {Wx::SizerItem} constructors and other functions, e.g. {Wx::Sizer#add}, is an OR-combination of the following flags. Two main behaviours are defined using these flags. One is the border around a window: the border parameter determines the border width whereas the flags given here determine which side(s) of the item that the border will be added. The other flags determine how the sizer item behaves when the space allotted to the sizer changes, and is somewhat dependent on the specific kind of sizer used.
41
40
  #
42
41
  # {Wx::Direction::TOP}
@@ -132,7 +132,6 @@ module Wx
132
132
  # - {Wx::EvtHandler#evt_slider}(id, meth = nil, &block): Process {Wx::EVT_SLIDER} which is generated after any change of {Wx::Slider} position in addition to one of the events above. Notice that the handler of this event receives a {Wx::CommandEvent} as argument and not {Wx::ScrollEvent}, as all the other handlers.
133
133
  #
134
134
  # ## The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
135
- #
136
135
  # The EVT_SCROLL_THUMBRELEASE event is only emitted when actually dragging the thumb using the mouse and releasing it (This EVT_SCROLL_THUMBRELEASE event is also followed by an EVT_SCROLL_CHANGED event).
137
136
  # The EVT_SCROLL_CHANGED event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the EVT_SCROLL_THUMBRELEASE event does not happen). In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/ moving has finished independently of the way it had started. Please see the Widgets Sample ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
138
137
  #
@@ -64,7 +64,7 @@ module Wx
64
64
  # @return [Wx::SplashScreen]
65
65
  def initialize(bitmap, splashStyle, milliseconds, parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::Border::BORDER_SIMPLE|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP)) end
66
66
 
67
- # Returns the splash style (see {splash_screen} for details).
67
+ # Returns the splash style (see {Wx::SplashScreen#initialize} for details).
68
68
  # @return [Integer]
69
69
  def get_splash_style; end
70
70
  alias_method :splash_style, :get_splash_style
@@ -14,7 +14,6 @@ module Wx::STC
14
14
  # Please see {Wx::STC::StyledTextEvent} for the documentation of all event types you can use with {Wx::STC::StyledTextCtrl}.
15
15
  #
16
16
  # ## Index of the member groups
17
- #
18
17
  # Links for quick access to the various categories of {Wx::STC::StyledTextCtrl} functions:
19
18
  #
20
19
  # - Constructors and related methods
@@ -6870,7 +6870,6 @@ module Wx::STC
6870
6870
  # Most of the Scintilla notifications are mapped to a similarly named {Wx::STC::StyledTextEvent}. However a few of the notifications would only offer information available in other wxWidgets event types, and in those cases a corresponding {Wx::STC::StyledTextEvent} is not defined. Currently, the {Wx::EVT_KEY_DOWN} event is used instead of the SCN_KEY notification. The regular wxWidgets drag and drop functionality can be used instead of the SCN_URIDROPPED notification. The {Wx::EVT_SET_FOCUS} event is used instead of the SCN_FOCUSIN notification. And the {Wx::EVT_KILL_FOCUS} event is used instead of the SCN_FOCUSOUT notification.
6871
6871
  #
6872
6872
  # ## Event Types
6873
- #
6874
6873
  # The following is a brief description of when the control generates these events and a list of which methods provide relevant information. Additional details can be found in the Scintilla documentation (http://www.scintilla.org/ScintillaDoc.html\#Notifications).
6875
6874
  # {Wx::STC::EVT_STC_AUTOCOMP_CANCELLED}
6876
6875
  #
@@ -11,7 +11,6 @@ module Wx
11
11
  # A taskbar icon is an icon that appears in the 'system tray' and responds to mouse clicks, optionally with a tooltip above it to help provide information.
12
12
  #
13
13
  # ## X Window System Note
14
- #
15
14
  # Under X Window System, the window manager must support either the "System Tray Protocol" (see http://freedesktop.org/wiki/Specifications/systemtray-spec) by freedesktop.org (WMs used by modern desktop environments such as GNOME >= 2, KDE >= 3 and XFCE >= 4 all do) or the older methods used in GNOME 1.2 and KDE 1 and 2.
16
15
  # If it doesn't, the icon will appear as a toplevel window on user's desktop. Because not all window managers have system tray, there's no guarantee that {Wx::TaskBarIcon} will work correctly under X Window System and so the applications should use it only as an optional component of their user interface. The user should be required to explicitly enable the taskbar icon on Unix, it shouldn't be on by default.
17
16
  # ### Events emitted by this class