wxruby3 0.9.3-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 (160) 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/book_ctrl_base.rb +16 -0
  20. data/lib/wx/core/combo_ctrl.rb +171 -0
  21. data/lib/wx/core/config.rb +454 -83
  22. data/lib/wx/core/notebook.rb +10 -8
  23. data/lib/wx/core/peristent_object.rb +15 -0
  24. data/lib/wx/core/persistence_manager.rb +39 -0
  25. data/lib/wx/core/persistent_window.rb +16 -0
  26. data/lib/wx/core/top_level_window.rb +16 -0
  27. data/lib/wx/core/treebook.rb +18 -0
  28. data/lib/wx/core.rb +4 -0
  29. data/lib/wx/doc/book_ctrl_base.rb +19 -0
  30. data/lib/wx/doc/comboctrl.rb +128 -3
  31. data/lib/wx/doc/config.rb +101 -41
  32. data/lib/wx/doc/extra/14_config.md +101 -0
  33. data/lib/wx/doc/extra/15_persistence.md +148 -0
  34. data/lib/wx/doc/gen/app_traits.rb +2 -54
  35. data/lib/wx/doc/gen/art_provider.rb +0 -2
  36. data/lib/wx/doc/gen/aui/aui_dock_art.rb +77 -77
  37. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -1
  38. data/lib/wx/doc/gen/aui/aui_manager_event.rb +1 -1
  39. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +5 -4
  40. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +1 -1
  41. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +21 -21
  42. data/lib/wx/doc/gen/book_ctrl_event.rb +1 -1
  43. data/lib/wx/doc/gen/calendar_event.rb +1 -1
  44. data/lib/wx/doc/gen/colour.rb +0 -1
  45. data/lib/wx/doc/gen/colour_dialog.rb +1 -1
  46. data/lib/wx/doc/gen/combo_box.rb +3 -2
  47. data/lib/wx/doc/gen/combo_ctrl.rb +91 -227
  48. data/lib/wx/doc/gen/core.rb +2 -2
  49. data/lib/wx/doc/gen/date_event.rb +1 -1
  50. data/lib/wx/doc/gen/dc.rb +0 -3
  51. data/lib/wx/doc/gen/dialog.rb +0 -1
  52. data/lib/wx/doc/gen/event.rb +4 -4
  53. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  54. data/lib/wx/doc/gen/event_filter.rb +0 -2
  55. data/lib/wx/doc/gen/events.rb +17 -39
  56. data/lib/wx/doc/gen/file_ctrl_event.rb +1 -1
  57. data/lib/wx/doc/gen/file_dialog.rb +0 -2
  58. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +55 -63
  59. data/lib/wx/doc/gen/file_dir_picker_event.rb +1 -1
  60. data/lib/wx/doc/gen/file_system.rb +1 -58
  61. data/lib/wx/doc/gen/find_dialog_event.rb +1 -1
  62. data/lib/wx/doc/gen/frame.rb +0 -1
  63. data/lib/wx/doc/gen/gdi_common.rb +0 -8
  64. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -2
  65. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -2
  66. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -2
  67. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -2
  68. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -2
  69. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -2
  70. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -2
  71. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -2
  72. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -2
  73. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -2
  74. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -2
  75. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -2
  76. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -2
  77. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -2
  78. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -2
  79. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -2
  80. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -2
  81. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -2
  82. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -2
  83. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -2
  84. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -12
  85. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +1 -1
  86. data/lib/wx/doc/gen/grid/grid_event.rb +1 -1
  87. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +1 -1
  88. data/lib/wx/doc/gen/grid/grid_size_event.rb +1 -1
  89. data/lib/wx/doc/gen/gui_event_loop.rb +0 -2
  90. data/lib/wx/doc/gen/header_ctrl.rb +0 -7
  91. data/lib/wx/doc/gen/header_ctrl_event.rb +1 -1
  92. data/lib/wx/doc/gen/html/html_cell_event.rb +1 -1
  93. data/lib/wx/doc/gen/image.rb +0 -2
  94. data/lib/wx/doc/gen/list_ctrl.rb +0 -1
  95. data/lib/wx/doc/gen/list_event.rb +1 -1
  96. data/lib/wx/doc/gen/media_ctrl.rb +0 -6
  97. data/lib/wx/doc/gen/media_event.rb +1 -1
  98. data/lib/wx/doc/gen/menu.rb +0 -2
  99. data/lib/wx/doc/gen/notebook.rb +0 -1
  100. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  101. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  102. data/lib/wx/doc/gen/persistent_window.rb +116 -0
  103. data/lib/wx/doc/gen/pg/pg_property.rb +0 -13
  104. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -2
  105. data/lib/wx/doc/gen/pg/property_grid.rb +0 -2
  106. data/lib/wx/doc/gen/pg/property_grid_event.rb +1 -1
  107. data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
  108. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -2
  109. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -2
  110. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -1
  111. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -1
  112. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +1 -1
  113. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +1 -1
  114. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +1 -1
  115. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +1 -1
  116. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +1 -1
  117. data/lib/wx/doc/gen/rtc/rich_text_event.rb +1 -1
  118. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -1
  119. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +3 -0
  120. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -1
  121. data/lib/wx/doc/gen/scroll_bar.rb +0 -1
  122. data/lib/wx/doc/gen/sizer.rb +0 -1
  123. data/lib/wx/doc/gen/slider.rb +0 -1
  124. data/lib/wx/doc/gen/spin_double_event.rb +1 -1
  125. data/lib/wx/doc/gen/spin_event.rb +1 -1
  126. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  127. data/lib/wx/doc/gen/splitter_event.rb +1 -1
  128. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -1
  129. data/lib/wx/doc/gen/stc/styled_text_event.rb +1 -2
  130. data/lib/wx/doc/gen/task_bar_icon.rb +0 -1
  131. data/lib/wx/doc/gen/task_bar_icon_event.rb +1 -1
  132. data/lib/wx/doc/gen/text_ctrl.rb +0 -5
  133. data/lib/wx/doc/gen/text_entry.rb +0 -4
  134. data/lib/wx/doc/gen/tree_ctrl.rb +0 -2
  135. data/lib/wx/doc/gen/tree_event.rb +1 -1
  136. data/lib/wx/doc/gen/utils.rb +0 -16
  137. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -1
  138. data/lib/wx/doc/gen/wizard.rb +0 -1
  139. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  140. data/lib/wx/doc/gen/wizard_page.rb +0 -1
  141. data/lib/wx/doc/owner_drawn_combobox.rb +5 -1
  142. data/lib/wx/doc/persistence_manager.rb +36 -0
  143. data/lib/wx/doc/persistent_object.rb +27 -0
  144. data/lib/wx/doc/top_level_window.rb +19 -0
  145. data/lib/wx/doc/treebook.rb +6 -1
  146. data/lib/wx/version.rb +1 -1
  147. data/lib/wxruby_aui.so +0 -0
  148. data/lib/wxruby_core.so +0 -0
  149. data/lib/wxruby_grid.so +0 -0
  150. data/lib/wxruby_html.so +0 -0
  151. data/lib/wxruby_pg.so +0 -0
  152. data/lib/wxruby_prt.so +0 -0
  153. data/lib/wxruby_rbn.so +0 -0
  154. data/lib/wxruby_rtc.so +0 -0
  155. data/lib/wxruby_stc.so +0 -0
  156. data/samples/widgets/widgets.rb +5 -9
  157. data/tests/test_combo_ctrl.rb +196 -0
  158. data/tests/test_config.rb +207 -42
  159. data/tests/test_persistence.rb +142 -0
  160. metadata +20 -2
@@ -0,0 +1,148 @@
1
+ <!--
2
+ # @markup markdown
3
+ # @title 15. Persistence support
4
+ -->
5
+
6
+ # 15. Persistence support
7
+
8
+ ## Introduction
9
+
10
+ wxRuby3 fully supports the wxWidgets persistence framework.
11
+
12
+ This framework provides the means to persist window (and other object) states which can than be restored when
13
+ re-creating these objects.
14
+
15
+ The persistence framework depends on the configuration framework (see [here](14_config.md)).
16
+
17
+ The persistence framework includes the following components:
18
+
19
+ * {Wx::PersistenceManager} which all persistent objects register themselves with. This class handles actual saving
20
+ and restoring of persistent data.
21
+ * Persistent object adapters for persistent objects. These adapters provide a bridge between the associated class –
22
+ which has no special persistence support – and {Wx::PersistenceManager}. All Persistent object adapters need to derive
23
+ from {Wx::PersistentObject} (like {Wx::PersistentWindowBase} and it's derivatives).
24
+ * The {Wx.create_persistent_object} and {Wx.persistent_register_and_restore} methods (mainly convenience methods for
25
+ wxWidgets compatibility).
26
+
27
+ ## Persistence manager
28
+
29
+ By default a global singleton manager instance is available through {Wx::PersistenceManager.get} which will be used
30
+ by all available persistent object adapters for saving/restoring state values.
31
+
32
+ An alternate (possibly customized) manager instance can be installed through {Wx::PersistenceManager.set}.
33
+
34
+ ## Persistent object adapters
35
+
36
+ All persistent object adapters must be derived from {Wx::PersistentObject}. This class provides common methods for
37
+ saving and restoring state values connecting to the persistence manager for actual writing and reading.
38
+
39
+ All windows/objects to be persisted need to be registered with the persistence manager. Creating the correct persistent
40
+ object adapter instance for an object to persist is abstracted away in wxWidgets by using template methods allowing
41
+ to simply only provide the object to persist instead of having to explicitly instantiate an adapter instance and provide
42
+ both to the persistence manager (which is however still possible).
43
+
44
+ wxRuby3 replaces this convenience interface (incompatible with Ruby) by a Ruby-fied approach which relies on Rubies
45
+ trusted *duck typing*.<br>
46
+ In wxRuby3 any class supported by a specific persistent object adapter class should implement the method
47
+ `#create_persistent_object` which should return a unique adapter instance for the object instance to be persisted
48
+ like this:
49
+
50
+ ```ruby
51
+ class MyPersistentObject < Wx::PersistentObject
52
+
53
+ # Save the object properties.
54
+ # The implementation of this method should use {Wx::PersistentObject#save_value}.
55
+ # @return [void]
56
+ def save
57
+ # ...
58
+ end
59
+
60
+ # Restore the object properties.
61
+ # The implementation of this method should use {Wx::PersistentObject#restore_value}.
62
+ # @return [Boolean]
63
+ def restore
64
+ # ...
65
+ end
66
+
67
+ # Returns the string uniquely identifying the objects supported by this adapter.
68
+ # This method has default implementations in any of the built-in derived adapter classes.
69
+ # @return [String]
70
+ def get_kind
71
+ 'MyObject'
72
+ end
73
+
74
+ # Returns the string uniquely identifying the object we're associated with among all the other objects of the same type.
75
+ # This method has a default implementation in Wx::PersistentWindowBase returning the window name.
76
+ # @return [String]
77
+ def get_name
78
+ 'object_1'
79
+ end
80
+
81
+ end
82
+
83
+ class MyObject
84
+
85
+ # ...
86
+
87
+ def create_persistent_object
88
+ MyPersistentObject.new(self)
89
+ end
90
+
91
+ # ...
92
+
93
+ end
94
+ ```
95
+
96
+ ## Persistent windows
97
+
98
+ A number of classes provide built-in support for persistence of a number of windows or controls:
99
+
100
+ * {Wx::PersistentTLW} supports top level windows (including {Wx::Frame} and {Wx::Dialog}).
101
+ * {Wx::PersistentBookCtrl} supports the book controls {Wx::Notebook}, {Wx::Listbook}, {Wx::Toolbook} and {Wx::Choicebook}.
102
+ * {Wx::PersistentTreeBookCtrl} supports {Wx::Treebook}
103
+
104
+ All persistent window adapters are derived from {Wx::PersistentWindowBase}. This class makes sure that any window
105
+ registered for persisting gets automatically saved when the window is destroyed. Intermittently explicit saving still
106
+ remains possible of course.
107
+
108
+ User defined persistent window adapters can be derived from this class or any of the built-in derivatives to support
109
+ otherwise unsupported or custom windows/controls like this:
110
+
111
+ ```ruby
112
+ class PersistentButton < Wx::PersistentWindowBase
113
+
114
+ def get_kind
115
+ 'Button'
116
+ end
117
+
118
+ def save
119
+ save_value('w', get.size.width)
120
+ save_value('h', get.size.height)
121
+ save_value('label', get.label)
122
+ save_value('my_custom_value', get.my_custom_value)
123
+ end
124
+
125
+ def restore
126
+ get.size = [Integer(restore_value('w')), Integer(restore_value('h'))]
127
+ get.label = restore_value('label')
128
+ get.my_custom_value = Float(restore_value('my_custom_value'))
129
+ true
130
+ end
131
+
132
+ end
133
+
134
+ class MyButton < Wx::Button
135
+
136
+ def initialize(parent=nil, name)
137
+ super(parent, label: '', name: name)
138
+ @my_custom_value = ''
139
+ end
140
+
141
+ attr_accessor :my_custom_value
142
+
143
+ def create_persistent_object
144
+ PersistentButton.new(self)
145
+ end
146
+
147
+ end
148
+ ```
@@ -107,14 +107,6 @@ module Wx
107
107
  #
108
108
  class ResourceCat < Wx::Enum
109
109
 
110
- # No special category, this is the default.
111
- #
112
- ResourceCat_None = Wx::StandardPaths::ResourceCat.new(0)
113
-
114
- # Message catalog resources category.
115
- #
116
- ResourceCat_Messages = Wx::StandardPaths::ResourceCat.new(1)
117
-
118
110
  end # ResourceCat
119
111
 
120
112
  # Possible values for userDir parameter of {Wx::StandardPaths#get_user_dir}.
@@ -123,34 +115,6 @@ module Wx
123
115
  #
124
116
  class Dir < Wx::Enum
125
117
 
126
- # Directory for caching files.
127
- #
128
- Dir_Cache = Wx::StandardPaths::Dir.new(0)
129
-
130
- # Directory containing user documents.
131
- #
132
- Dir_Documents = Wx::StandardPaths::Dir.new(1)
133
-
134
- # Directory containing files on the users desktop.
135
- #
136
- Dir_Desktop = Wx::StandardPaths::Dir.new(2)
137
-
138
- # Directory for downloaded files.
139
- #
140
- Dir_Downloads = Wx::StandardPaths::Dir.new(3)
141
-
142
- # Directory containing music files.
143
- #
144
- Dir_Music = Wx::StandardPaths::Dir.new(4)
145
-
146
- # Directory containing picture files.
147
- #
148
- Dir_Pictures = Wx::StandardPaths::Dir.new(5)
149
-
150
- # Directory containing video files.
151
- #
152
- Dir_Videos = Wx::StandardPaths::Dir.new(6)
153
-
154
118
  end # Dir
155
119
 
156
120
  # Possible values for {Wx::StandardPaths#set_file_layout} argument.
@@ -159,14 +123,6 @@ module Wx
159
123
  #
160
124
  class FileLayout < Wx::Enum
161
125
 
162
- # Use the classic file layout.
163
- #
164
- FileLayout_Classic = Wx::StandardPaths::FileLayout.new(0)
165
-
166
- # Use a XDG styled file layout.
167
- #
168
- FileLayout_XDG = Wx::StandardPaths::FileLayout.new(1)
169
-
170
126
  end # FileLayout
171
127
 
172
128
  # Possible values for {Wx::StandardPaths#make_config_file_name} naming convention argument.
@@ -175,14 +131,6 @@ module Wx
175
131
  #
176
132
  class ConfigFileConv < Wx::Enum
177
133
 
178
- # Use the class Unix dot-file convention.
179
- #
180
- ConfigFileConv_Dot = Wx::StandardPaths::ConfigFileConv.new(0)
181
-
182
- # Use <code></code>.conf extension for the file names.
183
- #
184
- ConfigFileConv_Ext = Wx::StandardPaths::ConfigFileConv.new(1)
185
-
186
134
  end # ConfigFileConv
187
135
 
188
136
  # MSW-specific function undoing the effect of {Wx::StandardPaths#ignore_app_sub_dir} calls.
@@ -269,7 +217,7 @@ module Wx
269
217
  # @param lang [String]
270
218
  # @param category [Wx::StandardPaths::ResourceCat]
271
219
  # @return [String]
272
- def get_localized_resources_dir(lang, category=Wx::StandardPaths::ResourceCat::ResourceCat_None) end
220
+ def get_localized_resources_dir(lang, category=RESOURCE_CAT_NONE) end
273
221
  alias_method :localized_resources_dir, :get_localized_resources_dir
274
222
 
275
223
  # Return the directory where the loadable modules (plugins) live.
@@ -404,7 +352,7 @@ module Wx
404
352
  # @param basename [String]
405
353
  # @param conv [Wx::StandardPaths::ConfigFileConv]
406
354
  # @return [String]
407
- def make_config_file_name(basename, conv=Wx::StandardPaths::ConfigFileConv::ConfigFileConv_Ext) end
355
+ def make_config_file_name(basename, conv=CONFIG_FILE_CONV_EXT) end
408
356
 
409
357
  # Returns reference to the unique global standard paths object.
410
358
  # @return [Wx::StandardPaths]
@@ -289,7 +289,6 @@ module Wx
289
289
  # There's another way of taking advantage of this class: you can use it in your code and use platform native icons as provided by {Wx::ArtProvider.get_bitmap_bundle} or {Wx::ArtProvider.get_icon}.
290
290
  #
291
291
  # ## Identifying art resources
292
- #
293
292
  # Every bitmap and icon bundle are known to {Wx::ArtProvider} under a unique ID that is used when requesting a resource from it. The ID is represented by the {Wx::ArtID} type and can have one of these predefined values (you can see bitmaps represented by these constants in the Art Provider Sample):
294
293
  #
295
294
  # - {Wx::ART_ERROR}
@@ -417,7 +416,6 @@ module Wx
417
416
  # </div>
418
417
  #
419
418
  # ## Clients
420
- #
421
419
  # The client is the entity that calls {Wx::ArtProvider}'s {Wx::ArtProvider.get_bitmap} or {Wx::ArtProvider.get_icon} function. It is represented by {Wx::ClientID} type and can have one of these values:
422
420
  #
423
421
  # - {Wx::ART_TOOLBAR}
@@ -6,83 +6,6 @@
6
6
 
7
7
  module Wx::AUI
8
8
 
9
- # These are the possible pane dock art settings for {Wx::AUI::AuiDefaultDockArt}.
10
- #
11
- # Category: Window Docking (wxAUI)
12
- #
13
- # @wxrb_require USE_AUI
14
- class AuiPaneDockArtSetting < Wx::Enum
15
-
16
- # Customizes the sash size.
17
- #
18
- AUI_DOCKART_SASH_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(0)
19
-
20
- # Customizes the caption size.
21
- #
22
- AUI_DOCKART_CAPTION_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(1)
23
-
24
- # Customizes the gripper size.
25
- #
26
- AUI_DOCKART_GRIPPER_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(2)
27
-
28
- # Customizes the pane border size.
29
- #
30
- AUI_DOCKART_PANE_BORDER_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(3)
31
-
32
- # Customizes the pane button size.
33
- #
34
- AUI_DOCKART_PANE_BUTTON_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(4)
35
-
36
- # Customizes the background colour, which corresponds to the client area.
37
- #
38
- AUI_DOCKART_BACKGROUND_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(5)
39
-
40
- # Customizes the sash colour.
41
- #
42
- AUI_DOCKART_SASH_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(6)
43
-
44
- # Customizes the active caption colour.
45
- #
46
- AUI_DOCKART_ACTIVE_CAPTION_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(7)
47
-
48
- # Customizes the active caption gradient colour.
49
- #
50
- AUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(8)
51
-
52
- # Customizes the inactive caption colour.
53
- #
54
- AUI_DOCKART_INACTIVE_CAPTION_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(9)
55
-
56
- # Customizes the inactive gradient caption colour.
57
- #
58
- AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(10)
59
-
60
- # Customizes the active caption text colour.
61
- #
62
- AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(11)
63
-
64
- # Customizes the inactive caption text colour.
65
- #
66
- AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(12)
67
-
68
- # Customizes the border colour.
69
- #
70
- AUI_DOCKART_BORDER_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(13)
71
-
72
- # Customizes the gripper colour.
73
- #
74
- AUI_DOCKART_GRIPPER_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(14)
75
-
76
- # Customizes the caption font.
77
- #
78
- AUI_DOCKART_CAPTION_FONT = Wx::AUI::AuiPaneDockArtSetting.new(15)
79
-
80
- # Customizes the gradient type (no gradient, vertical or horizontal)
81
- #
82
- AUI_DOCKART_GRADIENT_TYPE = Wx::AUI::AuiPaneDockArtSetting.new(16)
83
-
84
- end # AuiPaneDockArtSetting
85
-
86
9
  # These are the possible gradient dock art settings for {Wx::AUI::AuiDefaultDockArt}.
87
10
  #
88
11
  #
@@ -198,6 +121,83 @@ module Wx::AUI
198
121
 
199
122
  end # AuiButtonId
200
123
 
124
+ # These are the possible pane dock art settings for {Wx::AUI::AuiDefaultDockArt}.
125
+ #
126
+ # Category: Window Docking (wxAUI)
127
+ #
128
+ # @wxrb_require USE_AUI
129
+ class AuiPaneDockArtSetting < Wx::Enum
130
+
131
+ # Customizes the sash size.
132
+ #
133
+ AUI_DOCKART_SASH_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(0)
134
+
135
+ # Customizes the caption size.
136
+ #
137
+ AUI_DOCKART_CAPTION_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(1)
138
+
139
+ # Customizes the gripper size.
140
+ #
141
+ AUI_DOCKART_GRIPPER_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(2)
142
+
143
+ # Customizes the pane border size.
144
+ #
145
+ AUI_DOCKART_PANE_BORDER_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(3)
146
+
147
+ # Customizes the pane button size.
148
+ #
149
+ AUI_DOCKART_PANE_BUTTON_SIZE = Wx::AUI::AuiPaneDockArtSetting.new(4)
150
+
151
+ # Customizes the background colour, which corresponds to the client area.
152
+ #
153
+ AUI_DOCKART_BACKGROUND_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(5)
154
+
155
+ # Customizes the sash colour.
156
+ #
157
+ AUI_DOCKART_SASH_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(6)
158
+
159
+ # Customizes the active caption colour.
160
+ #
161
+ AUI_DOCKART_ACTIVE_CAPTION_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(7)
162
+
163
+ # Customizes the active caption gradient colour.
164
+ #
165
+ AUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(8)
166
+
167
+ # Customizes the inactive caption colour.
168
+ #
169
+ AUI_DOCKART_INACTIVE_CAPTION_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(9)
170
+
171
+ # Customizes the inactive gradient caption colour.
172
+ #
173
+ AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(10)
174
+
175
+ # Customizes the active caption text colour.
176
+ #
177
+ AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(11)
178
+
179
+ # Customizes the inactive caption text colour.
180
+ #
181
+ AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(12)
182
+
183
+ # Customizes the border colour.
184
+ #
185
+ AUI_DOCKART_BORDER_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(13)
186
+
187
+ # Customizes the gripper colour.
188
+ #
189
+ AUI_DOCKART_GRIPPER_COLOUR = Wx::AUI::AuiPaneDockArtSetting.new(14)
190
+
191
+ # Customizes the caption font.
192
+ #
193
+ AUI_DOCKART_CAPTION_FONT = Wx::AUI::AuiPaneDockArtSetting.new(15)
194
+
195
+ # Customizes the gradient type (no gradient, vertical or horizontal)
196
+ #
197
+ AUI_DOCKART_GRADIENT_TYPE = Wx::AUI::AuiPaneDockArtSetting.new(16)
198
+
199
+ end # AuiPaneDockArtSetting
200
+
201
201
  # {Wx::AUI::AuiDockArt} is part of the {Wx::AUI} class framework.
202
202
  #
203
203
  # See also wxAUI Overview.
@@ -28,7 +28,6 @@ module Wx::AUI
28
28
  # ```
29
29
  #
30
30
  # ## Layers, Rows and Directions, Positions
31
- #
32
31
  # Inside {Wx::AUI}, the docking layout is figured out by checking several pane parameters. Four of these are important for determining where a pane will end up:
33
32
  #
34
33
  # - Direction: Each docked pane has a direction, Top, Bottom, Left, Right, or Center. This is fairly self-explanatory. The pane will be placed in the location specified by this variable.
@@ -35,7 +35,7 @@ module Wx::AUI
35
35
  class AuiManagerEvent < Event
36
36
 
37
37
  # Constructor.
38
- # @param type [Wx::StaticLine::EventType]
38
+ # @param type [Wx::Notebook::EventType]
39
39
  # @return [Wx::AUI::AuiManagerEvent]
40
40
  def initialize(type=Wx::EVT_NULL) end
41
41
 
@@ -26,12 +26,13 @@ module Wx::AUI
26
26
  # @return [Boolean]
27
27
  def create_client(parent, style=(Wx::VSCROLL|Wx::HSCROLL)) end
28
28
 
29
- # Sets the page selection.
29
+ # Sets the selection to the given page, returning the previous selection.
30
30
  #
31
- # Calling this method will generate a page change event.
32
- # @param new_page [Integer]
31
+ # Notice that the call to this function generates the page changing events, use the {Wx::AUI::AuiMDIClientWindow#change_selection} function if you don't want these events to be generated.
32
+ # @see Wx::AUI::AuiMDIClientWindow#get_selection
33
+ # @param page [Integer]
33
34
  # @return [Integer]
34
- def set_selection(new_page) end
35
+ def set_selection(page) end
35
36
  alias_method :selection=, :set_selection
36
37
 
37
38
  # @return [Wx::AUI::AuiMDIChildFrame]
@@ -181,7 +181,7 @@ module Wx::AUI
181
181
  class AuiNotebookEvent < BookCtrlEvent
182
182
 
183
183
  # Constructor.
184
- # @param command_type [Wx::StaticLine::EventType]
184
+ # @param command_type [Wx::Notebook::EventType]
185
185
  # @param win_id [Integer]
186
186
  # @return [Wx::AUI::AuiNotebookEvent]
187
187
  def initialize(command_type=Wx::EVT_NULL, win_id=0) end
@@ -6,6 +6,26 @@
6
6
 
7
7
  module Wx::AUI
8
8
 
9
+ #
10
+ #
11
+ EVT_AUITOOLBAR_TOOL_DROPDOWN = 10406
12
+
13
+ #
14
+ #
15
+ EVT_AUITOOLBAR_OVERFLOW_CLICK = 10407
16
+
17
+ #
18
+ #
19
+ EVT_AUITOOLBAR_RIGHT_CLICK = 10408
20
+
21
+ #
22
+ #
23
+ EVT_AUITOOLBAR_MIDDLE_CLICK = 10409
24
+
25
+ #
26
+ #
27
+ EVT_AUITOOLBAR_BEGIN_DRAG = 10410
28
+
9
29
  # {Wx::AUI::AuiToolBarStyle} is part of the {Wx::AUI} class framework, used to define the appearance of a {Wx::AUI::AuiToolBar}.
10
30
  #
11
31
  # See also wxAUI Overview.
@@ -111,26 +131,6 @@ module Wx::AUI
111
131
 
112
132
  end # AuiToolBarToolTextOrientation
113
133
 
114
- #
115
- #
116
- EVT_AUITOOLBAR_TOOL_DROPDOWN = 10406
117
-
118
- #
119
- #
120
- EVT_AUITOOLBAR_OVERFLOW_CLICK = 10407
121
-
122
- #
123
- #
124
- EVT_AUITOOLBAR_RIGHT_CLICK = 10408
125
-
126
- #
127
- #
128
- EVT_AUITOOLBAR_MIDDLE_CLICK = 10409
129
-
130
- #
131
- #
132
- EVT_AUITOOLBAR_BEGIN_DRAG = 10410
133
-
134
134
  # {Wx::AUI::AuiToolBarEvent} is used for the events generated by {Wx::AUI::AuiToolBar}.
135
135
  #
136
136
  # Category: Window Docking (wxAUI), {Wx::Events}
@@ -139,7 +139,7 @@ module Wx::AUI
139
139
  class AuiToolBarEvent < NotifyEvent
140
140
 
141
141
  # @overload initialize(commandType=Wx::EVT_NULL, winId=0)
142
- # @param commandType [Wx::StaticLine::EventType]
142
+ # @param commandType [Wx::Notebook::EventType]
143
143
  # @param winId [Integer]
144
144
  # @return [Wx::AUI::AuiToolBarEvent]
145
145
  # @overload initialize(c)
@@ -25,7 +25,7 @@ module Wx
25
25
  class BookCtrlEvent < NotifyEvent
26
26
 
27
27
  # Constructor (used internally by wxWidgets only).
28
- # @param eventType [Wx::StaticLine::EventType]
28
+ # @param eventType [Wx::Notebook::EventType]
29
29
  # @param id [Integer]
30
30
  # @param sel [Integer]
31
31
  # @param oldSel [Integer]
@@ -130,7 +130,7 @@ module Wx
130
130
  # @overload initialize(win, dt, type)
131
131
  # @param win [Wx::Window]
132
132
  # @param dt [Time,Date,DateTime]
133
- # @param type [Wx::StaticLine::EventType]
133
+ # @param type [Wx::Notebook::EventType]
134
134
  # @return [Wx::CalendarEvent]
135
135
  def initialize(*args) end
136
136
 
@@ -55,7 +55,6 @@ module Wx
55
55
  # You can retrieve the current system colour settings with {Wx::SystemSettings}.
56
56
  #
57
57
  # ## Channel Accessor Functions
58
- #
59
58
  # Note that this class provides pairs of functions for each of the colour channels, i.e. red, green, blue and alpha values. The one word functions {Wx::Colour#red}, {Wx::Colour#green}, {Wx::Colour#blue} and {Wx::Colour#alpha} return the values of type unsigned char, while {Wx::Colour#get_red}, {Wx::Colour#get_green}, {Wx::Colour#get_blue} and {Wx::Colour#get_alpha} returns the same value as unsigned int. According to the C++ integer promotion rules, the result of any arithmetic expression involving the former will be (signed) int, while that of the latter will be unsigned, which is what would be commonly expected, so the latter family of functions should be typically preferred (but they are only available since wxWidgets 3.1.6).
60
59
  #
61
60
  # Category: Graphics Device Interface (GDI)
@@ -68,7 +68,7 @@ module Wx
68
68
  # @return [Wx::ColourDialog]
69
69
  def initialize(parent, data=nil) end
70
70
 
71
- # Same as {colour_dialog}.
71
+ # Same as {Wx::ColourDialog#initialize}.
72
72
  # @param parent [Wx::Window]
73
73
  # @param data [Wx::ColourData]
74
74
  # @return [Boolean]
@@ -228,9 +228,10 @@ module Wx
228
228
  def get_string(n) end
229
229
  alias_method :string, :get_string
230
230
 
231
- # Gets the text currently selected in the control.
231
+ # Returns the label of the selected item or an empty string if no item is selected.
232
232
  #
233
- # If there is no selection, the returned string is empty.
233
+ #
234
+ # @see Wx::ComboBox#get_selection
234
235
  # @return [String]
235
236
  def get_string_selection; end
236
237
  alias_method :string_selection, :get_string_selection