wxruby3 0.9.0.pre.beta.14 → 0.9.0.pre.rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/INSTALL.md +51 -22
  4. data/README.md +81 -6
  5. data/assets/hello_button-macos.png +0 -0
  6. data/assets/hello_button-msw.png +0 -0
  7. data/assets/hello_button.png +0 -0
  8. data/assets/hello_button_clicked-macos.png +0 -0
  9. data/assets/hello_button_clicked-msw.png +0 -0
  10. data/assets/hello_button_clicked.png +0 -0
  11. data/assets/hello_button_clicked_combi.png +0 -0
  12. data/assets/hello_world-macos.png +0 -0
  13. data/assets/hello_world-msw.png +0 -0
  14. data/assets/hello_world.png +0 -0
  15. data/assets/hello_world_combi.png +0 -0
  16. data/assets/repo-social-preview.png +0 -0
  17. data/ext/wxruby3/include/wxruby-runtime.h +1 -0
  18. data/ext/wxruby3/swig/memory_management.i +6 -10
  19. data/ext/wxruby3/swig/wx.i +17 -6
  20. data/lib/wx/core/art_locator.rb +2 -2
  21. data/lib/wx/core/artprovider.rb +2 -2
  22. data/lib/wx/core/bitmap.rb +6 -5
  23. data/lib/wx/core/bitmap_combobox.rb +34 -0
  24. data/lib/wx/core/brush.rb +6 -0
  25. data/lib/wx/core/controlwithitems.rb +52 -14
  26. data/lib/wx/core/cursor.rb +1 -1
  27. data/lib/wx/core/dc.rb +0 -20
  28. data/lib/wx/core/event_blocker.rb +14 -0
  29. data/lib/wx/core/evthandler.rb +48 -2
  30. data/lib/wx/core/find_replace_dialog.rb +24 -0
  31. data/lib/wx/core/font.rb +22 -14
  32. data/lib/wx/core/helpprovider.rb +2 -2
  33. data/lib/wx/core/icon.rb +1 -1
  34. data/lib/wx/core/image.rb +1 -1
  35. data/lib/wx/core/menu.rb +5 -0
  36. data/lib/wx/core/paintdc.rb +8 -0
  37. data/lib/wx/core/pen.rb +6 -0
  38. data/lib/wx/core/text_entry.rb +15 -0
  39. data/lib/wx/core/v_list_box.rb +13 -0
  40. data/lib/wx/core/window.rb +29 -2
  41. data/lib/wx/doc/app.rb +40 -0
  42. data/lib/wx/doc/brush.rb +17 -0
  43. data/lib/wx/doc/busy_info.rb +21 -0
  44. data/lib/wx/doc/client_dc.rb +28 -0
  45. data/lib/wx/doc/controlwithitems.rb +11 -0
  46. data/lib/wx/doc/dc.rb +0 -14
  47. data/lib/wx/doc/event_blocker.rb +27 -0
  48. data/lib/wx/doc/evthandler.rb +4 -0
  49. data/lib/wx/doc/extra/02_lifecycles.md +49 -0
  50. data/lib/wx/doc/extra/10_art.md +1 -1
  51. data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
  52. data/lib/wx/doc/font.rb +27 -0
  53. data/lib/wx/doc/memory_dc.rb +75 -0
  54. data/lib/wx/doc/mirror_dc.rb +16 -0
  55. data/lib/wx/doc/pen.rb +17 -0
  56. data/lib/wx/doc/prt/printer_dc.rb +26 -0
  57. data/lib/wx/doc/radio_box.rb +20 -0
  58. data/lib/wx/doc/screen_dc.rb +10 -6
  59. data/lib/wx/doc/svg_file_dc.rb +20 -0
  60. data/lib/wx/doc/v_list_box.rb +9 -0
  61. data/lib/wx/doc/window.rb +27 -0
  62. data/lib/wx/doc/window_disabler.rb +10 -0
  63. data/lib/wx/html/keyword_defs.rb +6 -7
  64. data/lib/wx/html/require.rb +1 -0
  65. data/lib/wx/html/simple_html_listbox.rb +105 -0
  66. data/lib/wx/keyword_defs.rb +83 -75
  67. data/lib/wx/prt/keyword_defs.rb +5 -1
  68. data/lib/wx/version.rb +1 -1
  69. data/lib/wx/wxruby/cmd/test.rb +1 -1
  70. data/rakelib/install.rb +20 -7
  71. data/rakelib/lib/config/linux.rb +4 -2
  72. data/rakelib/lib/config/macosx.rb +120 -1
  73. data/rakelib/lib/config/mingw.rb +6 -1
  74. data/rakelib/lib/config/unixish.rb +26 -11
  75. data/rakelib/lib/config.rb +15 -6
  76. data/rakelib/lib/core/mapping.rb +5 -5
  77. data/rakelib/lib/core/package.rb +1 -1
  78. data/rakelib/lib/core/spec.rb +9 -5
  79. data/rakelib/lib/core/spec_helper.rb +9 -1
  80. data/rakelib/lib/director/accelerator.rb +1 -1
  81. data/rakelib/lib/director/app.rb +55 -4
  82. data/rakelib/lib/director/art_provider.rb +5 -1
  83. data/rakelib/lib/director/aui_pane_info.rb +1 -1
  84. data/rakelib/lib/director/aui_tab_ctrl.rb +1 -1
  85. data/rakelib/lib/director/aui_toolbar.rb +41 -0
  86. data/rakelib/lib/director/bitmap.rb +2 -1
  87. data/rakelib/lib/director/bitmap_combobox.rb +32 -0
  88. data/rakelib/lib/director/brush.rb +11 -1
  89. data/rakelib/lib/director/busy_info.rb +1 -1
  90. data/rakelib/lib/director/choice.rb +1 -0
  91. data/rakelib/lib/director/clipboard.rb +1 -1
  92. data/rakelib/lib/director/colour.rb +1 -0
  93. data/rakelib/lib/director/colour_picker_ctrl.rb +1 -1
  94. data/rakelib/lib/director/combobox.rb +2 -3
  95. data/rakelib/lib/director/context_help_button.rb +23 -0
  96. data/rakelib/lib/director/ctrl_with_items.rb +3 -0
  97. data/rakelib/lib/director/cursor.rb +1 -0
  98. data/rakelib/lib/director/data_object.rb +5 -7
  99. data/rakelib/lib/director/dc.rb +5 -1
  100. data/rakelib/lib/director/defs.rb +3 -0
  101. data/rakelib/lib/director/derived_dc.rb +278 -27
  102. data/rakelib/lib/director/dialog.rb +12 -3
  103. data/rakelib/lib/director/dir_picker_ctrl.rb +1 -1
  104. data/rakelib/lib/director/event.rb +3 -3
  105. data/rakelib/lib/director/event_blocker.rb +41 -0
  106. data/rakelib/lib/director/event_filter.rb +20 -0
  107. data/rakelib/lib/director/event_handler.rb +29 -2
  108. data/rakelib/lib/director/file_picker_ctrl.rb +1 -1
  109. data/rakelib/lib/director/find_replace_data.rb +1 -0
  110. data/rakelib/lib/director/font.rb +14 -4
  111. data/rakelib/lib/director/font_data.rb +1 -0
  112. data/rakelib/lib/director/font_picker_ctrl.rb +1 -1
  113. data/rakelib/lib/director/gdi_object.rb +1 -0
  114. data/rakelib/lib/director/graphics_context.rb +6 -6
  115. data/rakelib/lib/director/grid_table_message.rb +1 -1
  116. data/rakelib/lib/director/help_provider.rb +8 -10
  117. data/rakelib/lib/director/html_cell.rb +1 -1
  118. data/rakelib/lib/director/html_data_object.rb +5 -7
  119. data/rakelib/lib/director/html_listbox.rb +65 -1
  120. data/rakelib/lib/director/hyperlink_event.rb +22 -0
  121. data/rakelib/lib/director/icon.rb +2 -0
  122. data/rakelib/lib/director/listbox.rb +1 -0
  123. data/rakelib/lib/director/locale.rb +2 -1
  124. data/rakelib/lib/director/menu.rb +0 -3
  125. data/rakelib/lib/director/menu_bar.rb +3 -0
  126. data/rakelib/lib/director/palette.rb +1 -0
  127. data/rakelib/lib/director/pen.rb +12 -2
  128. data/rakelib/lib/director/pgproperties.rb +1 -1
  129. data/rakelib/lib/director/pgproperty.rb +1 -1
  130. data/rakelib/lib/director/pgvalidation_info.rb +1 -1
  131. data/rakelib/lib/director/platform_info.rb +1 -1
  132. data/rakelib/lib/director/popup_window.rb +18 -0
  133. data/rakelib/lib/director/print_data.rb +1 -1
  134. data/rakelib/lib/director/property_grid_interface.rb +1 -1
  135. data/rakelib/lib/director/property_grid_page_state.rb +1 -1
  136. data/rakelib/lib/director/radio_box.rb +15 -4
  137. data/rakelib/lib/director/region.rb +1 -0
  138. data/rakelib/lib/director/ribbon_art_provider.rb +1 -1
  139. data/rakelib/lib/director/richtext_buffer_data_object.rb +5 -7
  140. data/rakelib/lib/director/richtext_header_footer_data.rb +1 -1
  141. data/rakelib/lib/director/searchctrl.rb +25 -0
  142. data/rakelib/lib/director/sizer.rb +2 -2
  143. data/rakelib/lib/director/static_box.rb +1 -1
  144. data/rakelib/lib/director/styled_text_ctrl.rb +2 -0
  145. data/rakelib/lib/director/text_entry.rb +7 -2
  146. data/rakelib/lib/director/textctrl.rb +1 -1
  147. data/rakelib/lib/director/tree_ctrl.rb +6 -3
  148. data/rakelib/lib/director/uiaction_simulator.rb +20 -0
  149. data/rakelib/lib/director/variant.rb +1 -1
  150. data/rakelib/lib/director/vlistbox.rb +25 -0
  151. data/rakelib/lib/director/window.rb +37 -7
  152. data/rakelib/lib/director/with_images.rb +1 -1
  153. data/rakelib/lib/director/xml_node.rb +1 -1
  154. data/rakelib/lib/extractor/function.rb +5 -3
  155. data/rakelib/lib/generate/doc/about_dialog_info.yaml +46 -0
  156. data/rakelib/lib/generate/doc/accelerator.yaml +21 -0
  157. data/rakelib/lib/generate/doc/art_provider.yaml +35 -0
  158. data/rakelib/lib/generate/doc/bitmap.yaml +37 -0
  159. data/rakelib/lib/generate/doc/box_sizer.yaml +15 -0
  160. data/rakelib/lib/generate/doc/busy_info.yaml +74 -0
  161. data/rakelib/lib/generate/doc/client_dc.yaml +19 -0
  162. data/rakelib/lib/generate/doc/clipboard.yaml +43 -0
  163. data/rakelib/lib/generate/doc/collapsible_pane.yaml +21 -0
  164. data/rakelib/lib/generate/doc/colour_dialog.yaml +32 -0
  165. data/rakelib/lib/generate/doc/context_help_button.yaml +16 -0
  166. data/rakelib/lib/generate/doc/control.yaml +46 -0
  167. data/rakelib/lib/generate/doc/cursor.yaml +40 -0
  168. data/rakelib/lib/generate/doc/data_object.yaml +55 -0
  169. data/rakelib/lib/generate/doc/dc.yaml +14 -0
  170. data/rakelib/lib/generate/doc/dialog.yaml +36 -0
  171. data/rakelib/lib/generate/doc/dir_dialog.yaml +25 -0
  172. data/rakelib/lib/generate/doc/event_blocker.yaml +27 -0
  173. data/rakelib/lib/generate/doc/event_filter.yaml +47 -0
  174. data/rakelib/lib/generate/doc/events.yaml +152 -0
  175. data/rakelib/lib/generate/doc/evt_handler.yaml +63 -0
  176. data/rakelib/lib/generate/doc/file_dialog.yaml +68 -0
  177. data/rakelib/lib/generate/doc.rb +77 -14
  178. data/rakelib/lib/generate/interface.rb +22 -10
  179. data/rakelib/lib/specs/interfaces.rb +9 -5
  180. data/rakelib/lib/swig_runner.rb +3 -3
  181. data/rakelib/lib/typemap/common.rb +15 -3
  182. data/rakelib/lib/util/string.rb +1 -0
  183. data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
  184. data/samples/aui/aui.rb +432 -363
  185. data/samples/bigdemo/wxArtProvider.rbw +5 -4
  186. data/samples/controls/controls.rb +2 -2
  187. data/samples/controls/htlbox.rb +411 -0
  188. data/samples/controls/tn_htlbox.png +0 -0
  189. data/samples/drawing/graphics_drawing.rb +1 -2
  190. data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
  191. data/samples/drawing/tn_image_prt.png +0 -0
  192. data/samples/propgrid/propgrid.rb +26 -21
  193. data/samples/ribbon/ribbon.rb +47 -46
  194. data/samples/sampler/editor.rb +33 -25
  195. data/samples/sampler/sample.rb +2 -2
  196. data/samples/sampler/stc_editor.rb +4 -2
  197. data/tests/lib/item_container_tests.rb +82 -0
  198. data/tests/lib/text_entry_tests.rb +80 -0
  199. data/tests/lib/wxapp_runner.rb +15 -3
  200. data/tests/lib/wxframe_runner.rb +144 -0
  201. data/tests/test_app_event_filter.rb +74 -0
  202. data/tests/test_art_provider.rb +52 -0
  203. data/tests/test_clipboard.rb +2 -1
  204. data/tests/test_event_handling.rb +199 -16
  205. data/tests/test_events.rb +4 -11
  206. data/tests/test_ext_controls.rb +28 -0
  207. data/tests/test_font.rb +239 -0
  208. data/tests/test_gdi_object.rb +161 -0
  209. data/tests/test_intl.rb +16 -15
  210. data/tests/test_item_data.rb +33 -1
  211. data/tests/test_std_controls.rb +373 -0
  212. data/tests/test_window.rb +340 -0
  213. metadata +82 -4
  214. data/samples/drawing/tn_svgtest.png +0 -0
@@ -3,7 +3,7 @@
3
3
  # Adapted from wxRuby2.
4
4
 
5
5
  # Window : base class for all widgets and frames
6
- Wx::define_keyword_ctors('Window') do
6
+ Wx::define_keyword_ctors(Wx::Window) do
7
7
  wx_ctor_params :id, :pos, :size, :style
8
8
  wx_ctor_params :name => 'window'
9
9
  end
@@ -13,26 +13,26 @@ end
13
13
  # wxTopLevelWindow ABSTRACT: Any top level window, dialog or frame
14
14
 
15
15
  # Normal frame
16
- Wx::define_keyword_ctors('Frame') do
16
+ Wx::define_keyword_ctors(Wx::Frame) do
17
17
  wx_ctor_params :id, :title, :pos, :size, :style => Wx::DEFAULT_FRAME_STYLE
18
18
  wx_ctor_params :name => 'frame'
19
19
  end
20
20
 
21
21
  # MDI child frame
22
- Wx::define_keyword_ctors('MDIChildFrame') do
22
+ Wx::define_keyword_ctors(Wx::MDIChildFrame) do
23
23
  wx_ctor_params :id, :title, :pos, :size, :style => Wx::DEFAULT_FRAME_STYLE
24
24
  wx_ctor_params :name => 'frame'
25
25
  end
26
26
 
27
27
  # MDI parent frame
28
- Wx::define_keyword_ctors('MDIParentFrame') do
28
+ Wx::define_keyword_ctors(Wx::MDIParentFrame) do
29
29
  wx_ctor_params :id, :title, :pos, :size
30
30
  wx_ctor_params :style => Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL
31
31
  wx_ctor_params :name => 'frame'
32
32
  end
33
33
 
34
34
  # wxMiniFrame A frame with a small title bar
35
- Wx::define_keyword_ctors('MiniFrame') do
35
+ Wx::define_keyword_ctors(Wx::MiniFrame) do
36
36
  wx_ctor_params :id, :title, :pos, :size
37
37
  wx_ctor_params :style => Wx::DEFAULT_FRAME_STYLE
38
38
  wx_ctor_params :name => 'frame'
@@ -42,7 +42,7 @@ end
42
42
  # wxTipWindow Shows text in a small window
43
43
 
44
44
  # wxWizard A wizard dialog
45
- Wx::define_keyword_ctors('Wizard') do
45
+ Wx::define_keyword_ctors(Wx::Wizard) do
46
46
  wx_ctor_params :id
47
47
  wx_ctor_params :title
48
48
  wx_ctor_params :bitmap
@@ -63,37 +63,37 @@ Wx::define_keyword_ctors('GLCanvas') do
63
63
  end
64
64
 
65
65
  # A window whose colour changes according to current user settings
66
- Wx::define_keyword_ctors('Panel') do
66
+ Wx::define_keyword_ctors(Wx::Panel) do
67
67
  wx_ctor_params :id, :pos, :size, :style => Wx::TAB_TRAVERSAL
68
68
  wx_ctor_params :name => 'panel'
69
69
  end
70
70
 
71
71
  # wxScrolledWindow Window with automatically managed scrollbars
72
- Wx::define_keyword_ctors('ScrolledWindow') do
72
+ Wx::define_keyword_ctors(Wx::ScrolledWindow) do
73
73
  wx_ctor_params :id, :pos, :size, :style => Wx::VSCROLL|Wx::HSCROLL
74
74
  wx_ctor_params :name => 'scrolledWindow'
75
75
  end
76
76
 
77
77
  # Window which can be split vertically or horizontally
78
- Wx::define_keyword_ctors('SplitterWindow') do
78
+ Wx::define_keyword_ctors(Wx::SplitterWindow) do
79
79
  wx_ctor_params :id, :pos, :size, :style => Wx::SP_3D
80
80
  wx_ctor_params :name => 'splitterWindow'
81
81
  end
82
82
 
83
83
  # Implements the status bar on a frame
84
- Wx::define_keyword_ctors('StatusBar') do
84
+ Wx::define_keyword_ctors(Wx::StatusBar) do
85
85
  wx_ctor_params :id, :style => Wx::STB_SIZEGRIP
86
86
  wx_ctor_params :name => 'statusBar'
87
87
  end
88
88
 
89
89
  # Toolbar class
90
- Wx::define_keyword_ctors('ToolBar') do
90
+ Wx::define_keyword_ctors(Wx::ToolBar) do
91
91
  wx_ctor_params :id, :pos, :size, :style => Wx::TB_HORIZONTAL|Wx::NO_BORDER
92
92
  wx_ctor_params :name => 'toolBar' # not as documented in Wx 2.6.3
93
93
  end
94
94
 
95
95
  # ToolBarTool class
96
- Wx::define_keyword_ctors('ToolBarTool') do
96
+ Wx::define_keyword_ctors(Wx::ToolBarTool) do
97
97
  # By default we want Wx to generate an id for us, thus it doesn't
98
98
  # respect the wxWidgets default constructor value which is
99
99
  # ID_SEPARATOR
@@ -108,32 +108,32 @@ Wx::define_keyword_ctors('ToolBarTool') do
108
108
  end
109
109
 
110
110
  # Similar to notebook but using choice control
111
- Wx::define_keyword_ctors('Choicebook') do
111
+ Wx::define_keyword_ctors(Wx::Choicebook) do
112
112
  wx_ctor_params :id, :pos, :size, :style, :name => 'choiceBook'
113
113
  end
114
114
 
115
115
  # Notebook class
116
- Wx::define_keyword_ctors('Notebook') do
116
+ Wx::define_keyword_ctors(Wx::Notebook) do
117
117
  wx_ctor_params :id, :pos, :size, :style, :name => 'noteBook'
118
118
  end
119
119
 
120
120
  # Similar to notebook but using list control
121
- Wx::define_keyword_ctors('Listbook') do
121
+ Wx::define_keyword_ctors(Wx::Listbook) do
122
122
  wx_ctor_params :id, :pos, :size, :style, :name => 'listBook'
123
123
  end
124
124
 
125
125
  # Similar to notebook but using toolbar
126
- Wx::define_keyword_ctors('Toolbook') do
126
+ Wx::define_keyword_ctors(Wx::Toolbook) do
127
127
  wx_ctor_params :id, :pos, :size, :style, :name => 'toolBook'
128
128
  end
129
129
 
130
130
  # Similar to notebook but using tree control
131
- Wx::define_keyword_ctors('Treebook') do
131
+ Wx::define_keyword_ctors(Wx::Treebook) do
132
132
  wx_ctor_params :id, :pos, :size, :style, :name => 'treeBook'
133
133
  end
134
134
 
135
135
  # wxSashWindow: Window with four optional sashes that can be dragged
136
- Wx::define_keyword_ctors('SashWindow') do
136
+ Wx::define_keyword_ctors(Wx::SashWindow) do
137
137
  wx_ctor_params :id, :pos, :size
138
138
  wx_ctor_params :style => Wx::CLIP_CHILDREN|Wx::SW_3D
139
139
  wx_ctor_params :name => 'sashWindow'
@@ -141,7 +141,7 @@ end
141
141
 
142
142
  # wxSashLayoutWindow: Window that can be involved in an IDE-like layout
143
143
  # arrangement
144
- Wx::define_keyword_ctors('SashLayoutWindow') do
144
+ Wx::define_keyword_ctors(Wx::SashLayoutWindow) do
145
145
  wx_ctor_params :id, :pos, :size
146
146
  wx_ctor_params :style => Wx::CLIP_CHILDREN|Wx::SW_3D
147
147
  wx_ctor_params :name => 'layoutWindow'
@@ -150,12 +150,12 @@ end
150
150
  # wxVScrolledWindow: As wxScrolledWindow but supports lines of variable height
151
151
 
152
152
  # wxWizardPage: A base class for the page in wizard dialog.
153
- Wx::define_keyword_ctors('WizardPage') do
153
+ Wx::define_keyword_ctors(Wx::WizardPage) do
154
154
  wx_ctor_params :bitmap => Wx::NULL_BITMAP
155
155
  end
156
156
 
157
157
  # wxWizardPageSimple: A page in wizard dialog.
158
- Wx::define_keyword_ctors('WizardPageSimple') do
158
+ Wx::define_keyword_ctors(Wx::WizardPageSimple) do
159
159
  wx_ctor_params :prev => nil
160
160
  wx_ctor_params :next => nil
161
161
  wx_ctor_params :bitmap
@@ -163,19 +163,19 @@ end
163
163
 
164
164
  ### DIALOGS
165
165
  # wxDialog Base class for common dialogs
166
- Wx::define_keyword_ctors('Dialog') do
166
+ Wx::define_keyword_ctors(Wx::Dialog) do
167
167
  wx_ctor_params :id, :title => ''
168
168
  wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
169
169
  wx_ctor_params :name => 'dialogBox'
170
170
  end
171
171
 
172
172
  # wxColourDialog Colour chooser dialog
173
- Wx::define_keyword_ctors('ColourDialog') do
173
+ Wx::define_keyword_ctors(Wx::ColourDialog) do
174
174
  wx_ctor_params :colour_data => nil
175
175
  end
176
176
 
177
177
  # wxDirDialog Directory selector dialog
178
- Wx::define_keyword_ctors('DirDialog') do
178
+ Wx::define_keyword_ctors(Wx::DirDialog) do
179
179
  wx_ctor_params :message => 'Choose a directory'
180
180
  wx_ctor_params :default_path => ''
181
181
  wx_ctor_params :style => Wx::DD_DEFAULT_STYLE
@@ -183,7 +183,7 @@ Wx::define_keyword_ctors('DirDialog') do
183
183
  end
184
184
 
185
185
  # wxFileDialog File selector dialog
186
- Wx::define_keyword_ctors('FileDialog') do
186
+ Wx::define_keyword_ctors(Wx::FileDialog) do
187
187
  wx_ctor_params :message => 'Choose a file'
188
188
  wx_ctor_params :default_dir => ''
189
189
  wx_ctor_params :default_file => ''
@@ -193,14 +193,14 @@ Wx::define_keyword_ctors('FileDialog') do
193
193
  end
194
194
 
195
195
  # wxFindReplaceDialog Text search/replace dialog
196
- Wx::define_keyword_ctors('FindReplaceDialog') do
196
+ Wx::define_keyword_ctors(Wx::FindReplaceDialog) do
197
197
  wx_ctor_params :find_replace_data => Wx::FindReplaceData.new()
198
198
  wx_ctor_params :title => 'findReplaceDialog'
199
199
  wx_ctor_params :style
200
200
  end
201
201
 
202
202
  # Dialog to get one or more selections from a list
203
- Wx::define_keyword_ctors('MultiChoiceDialog') do
203
+ Wx::define_keyword_ctors(Wx::MultiChoiceDialog) do
204
204
  wx_ctor_params :message => ''
205
205
  wx_ctor_params :caption => ''
206
206
  wx_ctor_params :choices => []
@@ -210,7 +210,7 @@ Wx::define_keyword_ctors('MultiChoiceDialog') do
210
210
  end
211
211
 
212
212
  # Dialog to get a single selection from a list and return the string
213
- Wx::define_keyword_ctors('SingleChoiceDialog') do
213
+ Wx::define_keyword_ctors(Wx::SingleChoiceDialog) do
214
214
  wx_ctor_params :message => ''
215
215
  wx_ctor_params :caption => ''
216
216
  wx_ctor_params :choices => []
@@ -221,7 +221,7 @@ Wx::define_keyword_ctors('SingleChoiceDialog') do
221
221
  end
222
222
 
223
223
  # Dialog to get a single line of text from the user
224
- Wx::define_keyword_ctors('TextEntryDialog') do
224
+ Wx::define_keyword_ctors(Wx::TextEntryDialog) do
225
225
  wx_ctor_params :message => ''
226
226
  wx_ctor_params :caption => 'Please enter text'
227
227
  wx_ctor_params :default_value => ''
@@ -230,22 +230,19 @@ Wx::define_keyword_ctors('TextEntryDialog') do
230
230
  end
231
231
 
232
232
  # wxPasswordEntryDialog Dialog to get a password from the user
233
- # Wx::define_keyword_ctors('PasswordEntryDialog') do
234
- # wx_ctor_params :message => ''
235
- # wx_ctor_params :caption => 'Enter password'
236
- # wx_ctor_params :default_value => ''
237
- # wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
238
- # wx_ctor_params :pos
239
- # end
233
+ Wx::define_keyword_ctors(Wx::PasswordEntryDialog) do
234
+ wx_ctor_params :message => ''
235
+ wx_ctor_params :caption => 'Enter password'
236
+ wx_ctor_params :default_value => ''
237
+ wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
238
+ wx_ctor_params :pos
239
+ end
240
240
 
241
241
  # wxFontDialog Font chooser dialog
242
242
  # wxPageSetupDialog Standard page setup dialog
243
- Wx::define_keyword_ctors('PageSetupDialog') do
244
- wx_ctor_params :data
245
- end
246
243
 
247
244
  # Simple message box dialog
248
- Wx::define_keyword_ctors('MessageDialog') do
245
+ Wx::define_keyword_ctors(Wx::MessageDialog) do
249
246
  wx_ctor_params :message => ''
250
247
  wx_ctor_params :caption => 'Message box'
251
248
  wx_ctor_params :style => Wx::OK|Wx::CANCEL
@@ -253,7 +250,7 @@ Wx::define_keyword_ctors('MessageDialog') do
253
250
  end
254
251
 
255
252
  # Property editing dialog
256
- Wx::define_keyword_ctors('PropertySheetDialog') do
253
+ Wx::define_keyword_ctors(Wx::PropertySheetDialog) do
257
254
  wx_ctor_params :id, :title
258
255
  wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
259
256
  wx_ctor_params :name => 'propertySheetDialog'
@@ -262,14 +259,14 @@ end
262
259
  ### CONTROLS
263
260
 
264
261
  # Push button control, displaying text
265
- Wx::define_keyword_ctors('Button') do
262
+ Wx::define_keyword_ctors(Wx::Button) do
266
263
  wx_ctor_params :id, :label => ''
267
264
  wx_ctor_params :pos, :size, :style
268
265
  wx_ctor_params :validator, :name => 'button'
269
266
  end
270
267
 
271
268
  # Push button control, displaying a bitmap
272
- Wx::define_keyword_ctors('BitmapButton') do
269
+ Wx::define_keyword_ctors(Wx::BitmapButton) do
273
270
  wx_ctor_params :id
274
271
  wx_ctor_params :bitmap
275
272
  wx_ctor_params :pos, :size, :style => Wx::BU_AUTODRAW
@@ -277,39 +274,46 @@ Wx::define_keyword_ctors('BitmapButton') do
277
274
  end
278
275
 
279
276
  # A button which stays pressed when clicked by user.
280
- Wx::define_keyword_ctors('ToggleButton') do
277
+ Wx::define_keyword_ctors(Wx::ToggleButton) do
281
278
  wx_ctor_params :id, :label, :pos, :size, :style
282
279
  wx_ctor_params :validator, :name => 'checkBox'
283
280
  end
284
281
 
285
282
  # Control showing an entire calendar month
286
- Wx::define_keyword_ctors('CalendarCtrl') do
283
+ Wx::define_keyword_ctors(Wx::CalendarCtrl) do
287
284
  wx_ctor_params :id, :date => Time.now()
288
285
  wx_ctor_params :pos, :size, :style => Wx::CAL_SHOW_HOLIDAYS
289
286
  wx_ctor_params :name => 'calendar'
290
287
  end
291
288
 
292
289
  # Checkbox control
293
- Wx::define_keyword_ctors('CheckBox') do
290
+ Wx::define_keyword_ctors(Wx::CheckBox) do
294
291
  wx_ctor_params :id, :label => ''
295
292
  wx_ctor_params :pos, :size, :style
296
293
  wx_ctor_params :validator, :name => 'checkBox'
297
294
  end
298
295
 
296
+ # wxListBox A list of strings for single or multiple selection
297
+ Wx::define_keyword_ctors(Wx::ListBox) do
298
+ wx_ctor_params :id, :pos, :size, :choices => []
299
+ wx_ctor_params :style
300
+ wx_ctor_params :validator, :name => 'listBox'
301
+ end
302
+
299
303
  # A listbox with a checkbox to the left of each item
300
- Wx::define_keyword_ctors('CheckListBox') do
304
+ Wx::define_keyword_ctors(Wx::CheckListBox) do
301
305
  wx_ctor_params :id, :pos, :size, :choices, :style
302
306
  wx_ctor_params :validator, :name => 'listBox'
303
307
  end
304
308
 
305
309
  # wxChoice Choice control (a combobox without the editable area)
306
- Wx::define_keyword_ctors('Choice') do
310
+ Wx::define_keyword_ctors(Wx::Choice) do
307
311
  wx_ctor_params :id, :pos, :size, :choices, :style
308
312
  wx_ctor_params :validator, :name => 'choice'
309
313
  end
310
314
 
311
315
  # wxComboBox A choice with an editable area
312
- Wx::define_keyword_ctors('ComboBox') do
316
+ Wx::define_keyword_ctors(Wx::ComboBox) do
313
317
  wx_ctor_params :id, :value => ''
314
318
  wx_ctor_params :pos, :size, :choices => []
315
319
  wx_ctor_params :style
@@ -317,7 +321,7 @@ Wx::define_keyword_ctors('ComboBox') do
317
321
  end
318
322
 
319
323
  # wxBitmapComboBox A choice with an editable area
320
- Wx::define_keyword_ctors('BitmapComboBox') do
324
+ Wx::define_keyword_ctors(Wx::BitmapComboBox) do
321
325
  wx_ctor_params :id, :value => ''
322
326
  wx_ctor_params :pos, :size, :choices => []
323
327
  wx_ctor_params :style
@@ -328,13 +332,13 @@ end
328
332
 
329
333
  # wxGauge A control to represent a varying quantity, such as time
330
334
  # remaining
331
- Wx::define_keyword_ctors('Gauge') do
335
+ Wx::define_keyword_ctors(Wx::Gauge) do
332
336
  wx_ctor_params :id, :range, :pos, :size, :style => Wx::GA_HORIZONTAL
333
337
  wx_ctor_params :validator, :name => 'gauge'
334
338
  end
335
339
 
336
340
  # wxGenericDirCtrl A control for displaying a directory tree
337
- Wx::define_keyword_ctors('GenericDirCtrl') do
341
+ Wx::define_keyword_ctors(Wx::GenericDirCtrl) do
338
342
  # TODO :dir => Wx::DIR_DIALOG_DEFAULT_FOLDER_STR
339
343
  wx_ctor_params :id, :dir => ''
340
344
  wx_ctor_params :pos, :size,
@@ -345,7 +349,7 @@ Wx::define_keyword_ctors('GenericDirCtrl') do
345
349
  end
346
350
 
347
351
  # wxListCtrl A control for displaying lists of strings and/or icons, plus a multicolumn report view
348
- Wx::define_keyword_ctors('ListCtrl') do
352
+ Wx::define_keyword_ctors(Wx::ListCtrl) do
349
353
  wx_ctor_params :id, :pos, :size, :style => Wx::LC_ICON
350
354
  wx_ctor_params :validator, :name => 'listCtrl'
351
355
  end
@@ -353,13 +357,13 @@ end
353
357
  # wxListView A simpler interface (facade for wxListCtrl in report mode
354
358
 
355
359
  # wxTreeCtrl Tree (hierarchy) control
356
- Wx::define_keyword_ctors('TreeCtrl') do
360
+ Wx::define_keyword_ctors(Wx::TreeCtrl) do
357
361
  wx_ctor_params :id, :pos, :size, :style => Wx::TR_DEFAULT_STYLE
358
362
  wx_ctor_params :validator, :name => 'treeCtrl'
359
363
  end
360
364
 
361
365
  # wxSpinCtrl A spin control - i.e. spin button and text control
362
- Wx::define_keyword_ctors('SpinCtrl') do
366
+ Wx::define_keyword_ctors(Wx::SpinCtrl) do
363
367
  wx_ctor_params :id, :value => ''
364
368
  wx_ctor_params :pos, :size, :style => Wx::SP_ARROW_KEYS
365
369
  wx_ctor_params :min => 0
@@ -369,21 +373,21 @@ Wx::define_keyword_ctors('SpinCtrl') do
369
373
  end
370
374
 
371
375
  # One or more lines of non-editable text
372
- Wx::define_keyword_ctors('StaticText') do
376
+ Wx::define_keyword_ctors(Wx::StaticText) do
373
377
  wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticText'
374
378
  end
375
379
 
376
- Wx::define_keyword_ctors('StaticBox') do
380
+ Wx::define_keyword_ctors(Wx::StaticBox) do
377
381
  wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticBox'
378
382
  end
379
383
 
380
- Wx::define_keyword_ctors('StaticLine') do
384
+ Wx::define_keyword_ctors(Wx::StaticLine) do
381
385
  wx_ctor_params :id, :pos, :size, :style => Wx::LI_HORIZONTAL
382
386
  wx_ctor_params :name => 'staticBox'
383
387
  end
384
388
 
385
389
  # wxStaticBitmap A control to display a bitmap
386
- Wx::define_keyword_ctors('StaticBitmap') do
390
+ Wx::define_keyword_ctors(Wx::StaticBitmap) do
387
391
  wx_ctor_params :id
388
392
  # autoconvert Bitmaps to BitmapBundles for downward compatibility
389
393
  wx_ctor_params :label
@@ -392,7 +396,7 @@ end
392
396
 
393
397
 
394
398
  # wxRadioBox A group of radio buttons
395
- Wx::define_keyword_ctors('RadioBox') do
399
+ Wx::define_keyword_ctors(Wx::RadioBox) do
396
400
  wx_ctor_params :id, :label => ''
397
401
  wx_ctor_params :pos, :size, :choices => []
398
402
  wx_ctor_params :major_dimension => 0
@@ -401,14 +405,14 @@ Wx::define_keyword_ctors('RadioBox') do
401
405
  end
402
406
 
403
407
  # wxRadioButton: A round button used with others in a mutually exclusive way
404
- Wx::define_keyword_ctors('RadioButton') do
408
+ Wx::define_keyword_ctors(Wx::RadioButton) do
405
409
  wx_ctor_params :id, :label => ''
406
410
  wx_ctor_params :pos, :size, :style => 0
407
411
  wx_ctor_params :validator, :name => 'radioButton'
408
412
  end
409
413
 
410
414
  # wxSlider A slider that can be dragged by the user
411
- Wx::define_keyword_ctors('Slider') do
415
+ Wx::define_keyword_ctors(Wx::Slider) do
412
416
  wx_ctor_params :id, :value => 0
413
417
  wx_ctor_params :min_value, :max_value
414
418
  wx_ctor_params :pos, :size, :style => Wx::SL_HORIZONTAL
@@ -416,13 +420,13 @@ Wx::define_keyword_ctors('Slider') do
416
420
  end
417
421
 
418
422
  # wxSpinButton - Has two small up and down (or left and right) arrow buttons
419
- Wx::define_keyword_ctors('SpinButton') do
423
+ Wx::define_keyword_ctors(Wx::SpinButton) do
420
424
  wx_ctor_params :id, :pos, :size, :style => Wx::SP_HORIZONTAL
421
425
  wx_ctor_params :name => 'spinButton'
422
426
  end
423
427
 
424
428
  # wxScrollBar - standalone scrollbar with arrows and thumb
425
- Wx::define_keyword_ctors('ScrollBar') do
429
+ Wx::define_keyword_ctors(Wx::ScrollBar) do
426
430
  wx_ctor_params :id, :pos, :size, :style => Wx::SB_HORIZONTAL
427
431
  wx_ctor_params :validator, :name => 'scrollBar'
428
432
  end
@@ -431,57 +435,61 @@ end
431
435
  # wxVListBox A listbox supporting variable height rows
432
436
 
433
437
  # wxTextCtrl Single or multiline text editing control
434
- Wx::define_keyword_ctors('TextCtrl') do
438
+ Wx::define_keyword_ctors(Wx::TextCtrl) do
435
439
  wx_ctor_params :id, :value => ''
436
440
  wx_ctor_params :pos, :size, :style
437
441
  wx_ctor_params :validator, :name => 'textCtrl'
438
442
  end
439
443
 
440
444
  # wxHyperTextCtrl - display a clickable URL
441
- Wx::define_keyword_ctors('HyperlinkCtrl') do
445
+ Wx::define_keyword_ctors(Wx::HyperlinkCtrl) do
442
446
  wx_ctor_params :id, :label => ''
443
447
  wx_ctor_params :url => ''
444
448
  wx_ctor_params :pos, :size, :style => 0
445
449
  wx_ctor_params :name => 'hyperlink'
446
450
  end
447
451
 
448
- Wx::define_keyword_ctors('CollapsiblePane') do
452
+ Wx::define_keyword_ctors(Wx::CollapsiblePane) do
449
453
  wx_ctor_params :id, :label => ''
450
454
  wx_ctor_params :pos, :size, :style => 0
451
455
  wx_ctor_params :validator, :name => 'collapsiblePane'
452
456
  end
453
457
 
454
- Wx::define_keyword_ctors('MediaCtrl') do
458
+ Wx::define_keyword_ctors(Wx::MediaCtrl) do
455
459
  wx_ctor_params :id, :filename => ''
456
460
  wx_ctor_params :pos, :size, :style => 0
457
461
  wx_ctor_params :backend => ''
458
462
  wx_ctor_params :validator, :name => 'mediaCtrl'
459
- end
463
+ end if Wx.has_feature?(:USE_MEDIACTRL)
460
464
 
461
- Wx::define_keyword_ctors('SearchCtrl') do
465
+ Wx::define_keyword_ctors(Wx::SearchCtrl) do
462
466
  wx_ctor_params :id, :value => ''
463
467
  wx_ctor_params :pos, :size, :style => 0
464
468
  wx_ctor_params :validator, :name => 'searchCtrl'
465
469
  end
466
470
 
467
-
468
- Wx::define_keyword_ctors('AnimationCtrl') do
471
+ Wx::define_keyword_ctors(Wx::AnimationCtrl) do
469
472
  wx_ctor_params :id, :anim
470
473
  wx_ctor_params :pos, :size, :style => Wx::AC_DEFAULT_STYLE
471
474
  wx_ctor_params :name => 'animationCtrl'
472
475
  end
473
476
 
474
- Wx::define_keyword_ctors('VScrolledWindow') do
477
+ Wx::define_keyword_ctors(Wx::VScrolledWindow) do
475
478
  wx_ctor_params :id, :pos, :size, :style, :name => 'VScrolledWindowNameStr'
476
479
  end
477
480
 
478
- Wx::define_keyword_ctors('VListBox') do
481
+ Wx::define_keyword_ctors(Wx::VListBox) do
479
482
  wx_ctor_params :id, :pos, :size, :style, :name => 'VListBoxNameStr'
480
483
  end
481
484
 
482
- Wx::define_keyword_ctors('DatePickerCtrl') do
485
+ Wx::define_keyword_ctors(Wx::DatePickerCtrl) do
483
486
  wx_ctor_params :id, :dt, :pos, :size, :style, :validator, :name => 'dateCtrl'
484
487
  end
485
488
 
489
+ Wx::define_keyword_ctors(Wx::ActivityIndicator) do
490
+ wx_ctor_params :id, :pos, :size, :style => Wx::AC_DEFAULT_STYLE
491
+ wx_ctor_params :name => 'activityIndicator'
492
+ end
493
+
486
494
  # FIXME - SymbolPickerDialog is hard to because the parent argument is
487
495
  # in a strange place.
@@ -3,6 +3,10 @@
3
3
  # Copyright (c) M.J.N. Corino, The Netherlands
4
4
 
5
5
  # wxPrintDialog Standard print dialog
6
- Wx::define_keyword_ctors('PrintDialog') do
6
+ Wx::define_keyword_ctors(Wx::PRT::PrintDialog) do
7
+ wx_ctor_params :data
8
+ end
9
+
10
+ Wx::define_keyword_ctors(Wx::PRT::PageSetupDialog) do
7
11
  wx_ctor_params :data
8
12
  end
data/lib/wx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wx
2
- WXRUBY_VERSION = '0.9.0-beta.14'
2
+ WXRUBY_VERSION = '0.9.0-rc.2'
3
3
  end
@@ -16,7 +16,7 @@ module WxRuby
16
16
  description
17
17
  else
18
18
  Dir[File.join(WxRuby::ROOT, 'tests', '*.rb')].each do |test|
19
- system(RUBY, test)
19
+ exit(1) unless system(RUBY, test)
20
20
  end
21
21
  end
22
22
  end
data/rakelib/install.rb CHANGED
@@ -34,12 +34,14 @@ module WXRuby3
34
34
  grp_id = m[1]
35
35
  lib_id = m[2]
36
36
  ver = m[3].sub('.', '')
37
- lib = "wx#{grp_id.sub(/u\Z/, '')}#{ver}u#{lib_id}"
37
+ # as of wxw 3.3 there seems to be an additional digit added to the version part of the dll name
38
+ # so add a wildcard ('*') in that spot to match older and newer versions
39
+ lib = "wx#{grp_id.sub(/u\Z/, '')}#{ver}*u#{lib_id}"
38
40
  @wxwin_shlibs.include File.join(libdir, "#{lib}*.#{WXRuby3.config.dll_mask}")
39
41
  end
40
42
  else
41
43
  # match only wxWidgets libraries
42
- if /\Awx_([a-z\d]+)(_[a-z]+)?-(.*)/.match(lib)
44
+ if /\Awx(_osx)?_([a-z\d]+)(_[a-z]+)?-(.*)/.match(lib)
43
45
  @wxwin_shlibs.include File.join(libdir, "lib#{lib}*.#{WXRuby3.config.dll_mask}")
44
46
  end
45
47
  end
@@ -53,6 +55,7 @@ module WXRuby3
53
55
  def install_wxwin_shlibs
54
56
  if WXRuby3.config.get_config('with-wxwin')
55
57
  # prepare required wxWidgets shared libs
58
+ wxwin_inshlibs = []
56
59
  WXRuby3::Install.wxwin_shlibs.each do |shlib|
57
60
  if File.symlink?(shlib)
58
61
  src_shlib = shlib
@@ -60,18 +63,28 @@ module WXRuby3
60
63
  FileUtils.ln_s(File.join('.', File.basename(src_shlib)), File.join('ext', File.basename(shlib)))
61
64
  else
62
65
  FileUtils.cp(shlib, inshlib = File.join('ext', File.basename(shlib)))
63
- unless WXRuby3.config.patch_rpath(inshlib, '$ORIGIN')
66
+ unless WXRuby3.config.patch_rpath(inshlib, WXRuby3.config.get_rpath_origin)
64
67
  # cleanup and exit
65
68
  FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
66
69
  exit(1)
67
70
  end
71
+ wxwin_inshlibs << File.expand_path(inshlib)
68
72
  end
69
73
  end
70
74
  # prepare wxRuby shared libs
71
- unless Dir["lib/*.#{WXRuby3.config.dll_mask}"].all? { |shlib| WXRuby3.config.patch_rpath(shlib, '$ORIGIN:$ORIGIN/../ext') }
72
- # cleanup and exit
73
- FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
74
- exit(1)
75
+ Dir["lib/*.#{WXRuby3.config.dll_mask}"].each do |shlib|
76
+ unless WXRuby3.config.patch_rpath(shlib, WXRuby3.config.get_rpath_origin, "#{WXRuby3.config.get_rpath_origin}/../ext")
77
+ # cleanup and exit
78
+ FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
79
+ exit(1)
80
+ end
81
+ end
82
+ (wxwin_inshlibs + Dir["lib/*.#{WXRuby3.config.dll_mask}"]).each do |shlib|
83
+ unless WXRuby3.config.update_shlib_loadpaths(shlib, WXRuby3::Install.wxwin_shlibs)
84
+ # cleanup and exit
85
+ FileUtils.rm_f(Dir["ext/*.#{WXRuby3.config.dll_mask}"])
86
+ exit(1)
87
+ end
75
88
  end
76
89
  end
77
90
  end
@@ -38,9 +38,9 @@ module WXRuby3
38
38
  true
39
39
  end
40
40
 
41
- def patch_rpath(shlib, rpath)
41
+ def patch_rpath(shlib, *rpath)
42
42
  if check_rpath_patch
43
- sh("#{@rpath_patch} '#{rpath}' #{shlib}", verbose: false)
43
+ sh("#{@rpath_patch} '#{rpath.join(':')}' #{shlib}", verbose: false)
44
44
  return true
45
45
  end
46
46
  false
@@ -57,6 +57,8 @@ module WXRuby3
57
57
  @extra_cflags.concat %w[-Wno-unused-function -Wno-conversion-null -Wno-maybe-uninitialized]
58
58
  @extra_cflags << ' -Wno-deprecated-declarations' unless @no_deprecated
59
59
 
60
+ @ruby_ldflags << '-s' if @release_build # strip debug symbols for release build
61
+
60
62
  # create a .so binary
61
63
  @extra_ldflags << '-shared'
62
64