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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35f2b1b6a08de7ccf13fa0a671b8b75ba914983bb8c94e766f338c9793e313ff
4
- data.tar.gz: 7c0689b6bba48874d538c901bb8258a9e721c70009898343e286386c0470094c
3
+ metadata.gz: a0ad2e04d5e9c1abdb9af5996fb90f9840998e61791ef6e70dfd38451dc6cc96
4
+ data.tar.gz: 650f43b258547d2bf337f3dad0562f92991fee005b99c64347eeab9ae2f8e125
5
5
  SHA512:
6
- metadata.gz: a89cc5a2f3511265cd17606a1a1fdce8991122944f5fb40aa239e2422666b325bbcea97d40f5a7bae350291c3ab85206a74789c49a3a7e6666e1ebf8763789aa
7
- data.tar.gz: '082c3a7bff1e51fb1ddb42706bb4db47b4b6e5e27bc8a5fd10f2dfbd6d6b1dc5a92c4e2dbd50a17d57aac0345d2ff95117c224817fc4b3f906d232ecd5daee80'
6
+ metadata.gz: 944eec6b06fd0503e651e5a02760a1ff8e50f2c1f61ea3e0e706d61a7c62e8ee045cda7a6f03e5d1a99eaec2284ba5722e3f70a6fdcd068b0c7ebd6d680de7dc
7
+ data.tar.gz: 9f1588496325b7253cd5a110ca3309b92f59b6d7537e0f53a8c8ce002a1b0d5907896a205b44da75b02035a8c1a7ef7b688cea91b02eb53101e849c6215801ed
data/INSTALL.md CHANGED
@@ -16,7 +16,7 @@ The minimal requirements for installing any source based setup (gem, source pack
16
16
  | C++ compiler<br>(incl. dev tools like `make`) | On linux a recent version of the GNU C++ compiler (with c++-14 support) needs to be installed<br>On Windows the RubyInstaller MSYS2-Devkit needs to be installed<br>On MacOS XCode with commandline tools needs to be installed via <code>sudo xcode-select --install</code> |
17
17
  | Git version control toolkit | |
18
18
  | SWIG >= 3.0.12 | On MacOS install Homebrew (https://brew.sh) and than <code>brew install swig</code> |
19
- | Doxygen (>= 1.9.1, <= 1.9.6) | Doxygen > 1.9.6 has changes that cause problems with the wxWidgets doxygen files.<br>On MacOS: <code>brew tap mcorino/wxruby3</code> and than `brew install doxygen@1.9.6` (default brew recipe installs 1.9.7) |
19
+ | Doxygen (>= 1.9.1) | On MacOS install Homebrew (https://brew.sh) and than <code>brew install doxygen@</code> |
20
20
  | wxWidgets (>= 3.2) | See the <b>wxWidgets installation</b> section below. |
21
21
 
22
22
  The wxRuby3 build process requires `git` to clone a copy of the wxWidgets Github repository to extract the interface
data/README.md CHANGED
@@ -124,7 +124,7 @@ To install the source-only gem the following software is required:
124
124
  | C++ compiler<br>(incl. dev tools like `make`) | On linux a recent version of the GNU C++ compiler (with c++-14 support) needs to be installed<br>On Windows the RubyInstaller MSYS2-Devkit needs to be installed<br>On MacOS XCode with commandline tools needs to be installed |
125
125
  | Git version control toolkit | |
126
126
  | SWIG >= 3.0.12 | On MacOS install with Homebrew |
127
- | Doxygen (>= 1.9.1, <= 1.9.6) | Doxygen > 1.9.6 has changes that cause problems with the wxWidgets doxygen files. |
127
+ | Doxygen (>= 1.9.1) | On MacOS install with Homebrew |
128
128
  | wxWidgets >= 3.2 (*OPTIONAL*) | On Linux most distributions provide system installable (development) packages for wxWidgets providing a supported version.<br>Alternatively you can fairly easily install your own preferred version manually. |
129
129
 
130
130
  See the [INSTALL](INSTALL.md) document for more details.
@@ -204,7 +204,7 @@ Several years of development have passed for wxWidgets and Ruby respectively,
204
204
  improving code quality, adding new classes and new language features.
205
205
  In 2022 I finally found the time and the inspiration to pick up this project
206
206
  with the idea of reviving it to build some applications I had in mind.
207
- wxRuby 3 intents to provide Ruby interfaces for all relevant (!) wxWidget
207
+ wxRuby 3 intends to provide Ruby interfaces for all relevant (!) wxWidget
208
208
  classes of the latest version 3.2 and beyond.
209
209
  Building on the experiences of the previous wxRuby (2) developments as well
210
210
  as the wxPython Phoenix project it is expected to provide a better and more
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,171 @@
1
+ # Copyright (c) 2023 M.J.N. Corino, The Netherlands
2
+ #
3
+ # This software is released under the MIT license.
4
+
5
+
6
+ module Wx
7
+
8
+ module ComboPopup
9
+
10
+ def self.included(mod)
11
+ unless mod == Wx::ComboPopupWx
12
+ mod.class_eval { include Wx::ComboPopup::Methods }
13
+ end
14
+ end
15
+
16
+ module Methods
17
+ # Returns pointer to the associated parent {Wx::ComboCtrl}.
18
+ # @return [Wx::ComboCtrl]
19
+ # def get_combo_ctrl; end
20
+
21
+ # The including class must implement this to initialize its internal variables.
22
+ #
23
+ # This method is called immediately after construction finishes. m_combo member variable has been initialized before the call.
24
+ # @return [void]
25
+ def init
26
+ end
27
+
28
+ # The including class may implement this to return true if it wants to delay call to {Wx::ComboPopup#create} until the popup is shown for the first time.
29
+ #
30
+ # It is more efficient, but on the other hand it is often more convenient to have the control created immediately.
31
+ #
32
+ # <div class="wxrb-remark">
33
+ # <b>Remark:</b>
34
+ # <p>Base implementation returns false.
35
+ # </p>
36
+ # </div>
37
+ # @return [Boolean]
38
+ def lazy_create
39
+ false
40
+ end
41
+
42
+ # The including class must implement this to create the popup control.
43
+ #
44
+ # true if the call succeeded, false otherwise.
45
+ # @param parent [Wx::Window]
46
+ # @return [Boolean]
47
+ def create(parent)
48
+ false
49
+ end
50
+
51
+ # You only need to implement this member function if you create your popup class in non-standard way.
52
+ #
53
+ # The default implementation can handle both multiple-inherited popup control (as seen in {Wx::ComboCtrl} samples) and one allocated separately in heap.
54
+ # If you do completely re-implement this function, make sure it calls Destroy() for the popup control and also deletes this object (usually as the last thing).
55
+ # @return [void]
56
+ def destroy_popup
57
+ end
58
+
59
+ # Implement to customize matching of value string to an item container entry.
60
+ #
61
+ # <div class="wxrb-remark">
62
+ # <b>Remark:</b>
63
+ # <p>Default implementation always return true and does not alter trueItem.
64
+ # </p>
65
+ # </div>
66
+ # @param item [String] String entered, usually by user or from SetValue() call.
67
+ # @param trueItem [Boolean] if true the true item string should be returned in case matching but different
68
+ # @return [Boolean, String] Returns true if a match is found or false if not. If trueItem == true and item matches an entry, but the entry's string representation is not exactly the same (case mismatch, for example), then the true item string should be returned as the match result.
69
+ def find_item(item, trueItem=false)
70
+ true
71
+ end
72
+
73
+ # The including class may implement this to return adjusted size for the popup control, according to the variables given.
74
+ #
75
+ # <div class="wxrb-remark">
76
+ # <b>Remark:</b>
77
+ # <p>This function is called each time popup is about to be shown.
78
+ # </p>
79
+ # </div>
80
+ # @param minWidth [Integer] Preferred minimum width.
81
+ # @param prefHeight [Integer] Preferred height. May be -1 to indicate no preference.
82
+ # @param maxHeight [Integer] Max height for window, as limited by screen size.
83
+ # @return [Wx::Size]
84
+ def get_adjusted_size(minWidth, prefHeight, maxHeight)
85
+ Wx::Size.new(minWidth, prefHeight)
86
+ end
87
+
88
+ # The including class must implement this to return pointer to the associated control created in {Wx::ComboPopup#create}.
89
+ # @return [Wx::Window]
90
+ def get_control
91
+ end
92
+
93
+ # The including class must implement this to receive string value changes from {Wx::ComboCtrl}.
94
+ # @param value [String]
95
+ # @return [void]
96
+ def set_string_value(value)
97
+ end
98
+
99
+ # The including class must implement this to return string representation of the value.
100
+ # @return [String]
101
+ def get_string_value
102
+ nil
103
+ end
104
+
105
+ # The including class may implement this to do something when the parent {Wx::ComboCtrl} gets double-clicked.
106
+ # @return [void]
107
+ def on_combo_double_click
108
+ end
109
+
110
+ # The including class may implement this to receive key down events from the parent {Wx::ComboCtrl}.
111
+ #
112
+ # Events not handled should be skipped, as usual.
113
+ # @param event [Wx::KeyEvent]
114
+ # @return [void]
115
+ def on_combo_key_event(event)
116
+ event.skip
117
+ end
118
+
119
+ # The including class may implement this to receive char events from the parent {Wx::ComboCtrl}.
120
+ #
121
+ # Events not handled should be skipped, as usual.
122
+ # @param event [Wx::KeyEvent]
123
+ # @return [void]
124
+ def on_combo_char_event(event)
125
+ event.skip
126
+ end
127
+
128
+ # The including class may implement this to do special processing when popup is hidden.
129
+ # @return [void]
130
+ def on_dismiss
131
+ end
132
+
133
+ # The including class may implement this to do special processing when popup is shown.
134
+ # @return [void]
135
+ def on_popup
136
+ end
137
+
138
+ # The including class may implement this to paint the parent {Wx::ComboCtrl}.
139
+ # This is called to custom paint in the combo control itself (ie. not the popup).
140
+ #
141
+ # Default implementation draws value as string.
142
+ # @param dc [Wx::DC]
143
+ # @param rect [Wx::Rect]
144
+ # @return [void]
145
+ def paint_combo_control(dc, rect)
146
+ combo = get_combo_ctrl
147
+ if combo.get_window_style.allbits?(Wx::CB_READONLY) # ie. no textctrl
148
+ combo.prepare_background(dc, rect,0)
149
+
150
+ dc.draw_text(combo.get_value,
151
+ rect.x + combo.get_margin_left,
152
+ (rect.height-dc.get_char_height)/2 + rect.y)
153
+ end
154
+ end
155
+
156
+ end
157
+
158
+ end
159
+
160
+ class ComboPopupWx
161
+
162
+ include ComboPopup
163
+
164
+ # this method has not been wrapped as a default popup control will always already have been
165
+ # initialized before returned from #get_combo_control
166
+ # just do nothing here (or should we raise an exception?)
167
+ def init; end
168
+
169
+ end
170
+
171
+ end
@@ -7,11 +7,136 @@
7
7
 
8
8
  module Wx
9
9
 
10
- class OwnerDrawnComboBox < ComboCtrl
10
+ # In order to use a custom popup with {Wx::ComboCtrl}, a class must include {Wx::ComboPopup}.
11
+ #
12
+ # For more information on how to use it, see {Wx::ComboCtrl Setting Custom Popup for Wx::ComboCtrl}.
13
+ module ComboPopup
11
14
 
12
- alias :get_item_data :get_client_object
15
+ # Returns pointer to the associated parent {Wx::ComboCtrl}.
16
+ # @return [Wx::ComboCtrl]
17
+ def get_combo_ctrl; end
13
18
 
14
- alias :set_item_data :set_client_object
19
+ # The including class must implement this to initialize its internal variables.
20
+ #
21
+ # This method is called immediately after construction finishes. m_combo member variable has been initialized before the call.
22
+ # @return [void]
23
+ def init; end
24
+
25
+ # The including class may implement this to return true if it wants to delay call to {Wx::ComboPopup#create} until the popup is shown for the first time.
26
+ #
27
+ # It is more efficient, but on the other hand it is often more convenient to have the control created immediately.
28
+ #
29
+ # <div class="wxrb-remark">
30
+ # <b>Remark:</b>
31
+ # <p>Base implementation returns false.
32
+ # </p>
33
+ # </div>
34
+ # @return [Boolean]
35
+ def lazy_create; end
36
+
37
+ # The including class must implement this to create the popup control.
38
+ #
39
+ # true if the call succeeded, false otherwise.
40
+ # @param parent [Wx::Window]
41
+ # @return [Boolean]
42
+ def create(parent) end
43
+
44
+ # You only need to implement this member function if you create your popup class in non-standard way.
45
+ #
46
+ # The default implementation can handle both multiple-inherited popup control (as seen in {Wx::ComboCtrl} samples) and one allocated separately in heap.
47
+ # If you do completely re-implement this function, make sure it calls Destroy() for the popup control and also deletes this object (usually as the last thing).
48
+ # @return [void]
49
+ def destroy_popup; end
50
+
51
+ # Implement to customize matching of value string to an item container entry.
52
+ #
53
+ # <div class="wxrb-remark">
54
+ # <b>Remark:</b>
55
+ # <p>Default implementation always return true and does not alter trueItem.
56
+ # </p>
57
+ # </div>
58
+ # @param item [String] String entered, usually by user or from SetValue() call.
59
+ # @param trueItem [Boolean] if true the true item string should be returned in case matching but different
60
+ # @return [Boolean, String] Returns true if a match is found or false if not. If trueItem == true and item matches an entry, but the entry's string representation is not exactly the same (case mismatch, for example), then the true item string should be returned as the match result.
61
+ def find_item(item, trueItem=false) end
62
+
63
+ # The including class may implement this to return adjusted size for the popup control, according to the variables given.
64
+ #
65
+ # <div class="wxrb-remark">
66
+ # <b>Remark:</b>
67
+ # <p>This function is called each time popup is about to be shown.
68
+ # </p>
69
+ # </div>
70
+ # @param minWidth [Integer] Preferred minimum width.
71
+ # @param prefHeight [Integer] Preferred height. May be -1 to indicate no preference.
72
+ # @param maxHeight [Integer] Max height for window, as limited by screen size.
73
+ # @return [Wx::Size]
74
+ def get_adjusted_size(minWidth, prefHeight, maxHeight) end
75
+
76
+ # The including class must implement this to return pointer to the associated control created in {Wx::ComboPopup#create}.
77
+ # @return [Wx::Window]
78
+ def get_control; end
79
+
80
+ # The including class must implement this to receive string value changes from {Wx::ComboCtrl}.
81
+ # @param value [String]
82
+ # @return [void]
83
+ def set_string_value(value) end
84
+
85
+ # The including class must implement this to return string representation of the value.
86
+ # @return [String]
87
+ def get_string_value; end
88
+
89
+ # The including class may implement this to do something when the parent {Wx::ComboCtrl} gets double-clicked.
90
+ # @return [void]
91
+ def on_combo_double_click; end
92
+
93
+ # The including class may implement this to receive key down events from the parent {Wx::ComboCtrl}.
94
+ #
95
+ # Events not handled should be skipped, as usual.
96
+ # @param event [Wx::KeyEvent]
97
+ # @return [void]
98
+ def on_combo_key_event(event) end
99
+
100
+ # The including class may implement this to receive char events from the parent {Wx::ComboCtrl}.
101
+ #
102
+ # Events not handled should be skipped, as usual.
103
+ # @param event [Wx::KeyEvent]
104
+ # @return [void]
105
+ def on_combo_char_event(event) end
106
+
107
+ # The including class may implement this to do special processing when popup is hidden.
108
+ # @return [void]
109
+ def on_dismiss; end
110
+
111
+ # The including class may implement this to do special processing when popup is shown.
112
+ # @return [void]
113
+ def on_popup; end
114
+
115
+ # The including class may implement this to paint the parent {Wx::ComboCtrl}.
116
+ # This is called to custom paint in the combo control itself (ie. not the popup).
117
+ #
118
+ # Default implementation draws value as string.
119
+ # @param dc [Wx::DC]
120
+ # @param rect [Wx::Rect]
121
+ # @return [void]
122
+ def paint_combo_control(dc, rect) end
123
+
124
+ end
125
+
126
+ # A Ruby interface class for default comboctrl popup classes used by {Wx::OwnerDrawnComboBox} and
127
+ # {Wx::RichTextStyleListBox}.
128
+ #
129
+ # If no custom popup control has been installed with {Wx::ComboCtrl#SetPopupControl} an instance of this
130
+ # class will be returned when {Wx::ComboCtrl#GetPopupControl} is called for either of the widgets mentioned
131
+ # above.
132
+ # <div class="wxrb-remark">
133
+ # <b>Remark:</b>
134
+ # <p>This is an abstract class that cannot be derived from.
135
+ # </p>
136
+ # </div>
137
+ class ComboPopupWx
138
+
139
+ include ComboPopup
15
140
 
16
141
  end
17
142
 
@@ -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.