wxruby3 0.9.0.pre.beta.9-x64-mingw-ucrt → 0.9.0.pre.beta.11-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/ext/wxbase32u_gcc_custom.dll +0 -0
  3. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  4. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  5. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  6. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  7. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  17. data/lib/wx/core/bitmap.rb +7 -0
  18. data/lib/wx/core/choice.rb +3 -0
  19. data/lib/wx/core/combobox.rb +3 -0
  20. data/lib/wx/core/controlwithitems.rb +98 -2
  21. data/lib/wx/core/data_object.rb +74 -6
  22. data/lib/wx/core/icon.rb +7 -1
  23. data/lib/wx/core/imagelist.rb +11 -0
  24. data/lib/wx/core/listbox.rb +3 -0
  25. data/lib/wx/core/point.rb +21 -10
  26. data/lib/wx/core/real_point.rb +21 -10
  27. data/lib/wx/core/rect.rb +2 -2
  28. data/lib/wx/core/size.rb +12 -5
  29. data/lib/wx/doc/data_object.rb +104 -0
  30. data/lib/wx/doc/gdi_common.rb +33 -5
  31. data/lib/wx/doc/gen/control_with_items.rb +3 -131
  32. data/lib/wx/doc/gen/core.rb +2 -2
  33. data/lib/wx/doc/gen/data_object.rb +0 -20
  34. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  35. data/lib/wx/doc/gen/image_list.rb +9 -10
  36. data/lib/wx/doc/gen/progress_dialog.rb +0 -20
  37. data/lib/wx/doc/gen/prt/print_data.rb +5 -0
  38. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  39. data/lib/wx/doc/progress_dialog.rb +37 -0
  40. data/lib/wx/doc/scaled_dc.rb +16 -0
  41. data/lib/wx/global_const.rb +4 -3
  42. data/lib/wx/version.rb +1 -1
  43. data/lib/wxruby_aui.so +0 -0
  44. data/lib/wxruby_core.so +0 -0
  45. data/lib/wxruby_grid.so +0 -0
  46. data/lib/wxruby_html.so +0 -0
  47. data/lib/wxruby_pg.so +0 -0
  48. data/lib/wxruby_prt.so +0 -0
  49. data/lib/wxruby_rbn.so +0 -0
  50. data/lib/wxruby_rtc.so +0 -0
  51. data/lib/wxruby_stc.so +0 -0
  52. data/rakelib/lib/config/mingw.rb +3 -0
  53. data/samples/dialogs/dialogs.rb +70 -50
  54. data/samples/drawing/maths_images.rb +1 -1
  55. data/samples/sampler/ext.rb +3 -3
  56. data/samples/sampler/stc_editor.rb +19 -19
  57. data/samples/sampler/txt_editor.rb +2 -2
  58. data/samples/treectrl/treectrl.rb +32 -30
  59. data/tests/lib/wxapp_runner.rb +64 -0
  60. data/tests/test_basic.rb +0 -5
  61. data/tests/test_clipboard.rb +114 -17
  62. data/tests/test_dialog.rb +2 -13
  63. data/tests/test_event_handling.rb +2 -13
  64. data/tests/test_events.rb +2 -6
  65. data/tests/test_geometry.rb +54 -17
  66. data/tests/test_intl.rb +2 -15
  67. data/tests/test_item_data.rb +69 -15
  68. data/tests/test_variant.rb +1 -15
  69. data/tests/testapp.rb +0 -5
  70. data/tests/testapp_noframe.rb +0 -5
  71. metadata +13 -3
data/tests/test_intl.rb CHANGED
@@ -1,14 +1,5 @@
1
- require 'test/unit'
2
- require 'test/unit/ui/console/testrunner'
3
- require 'wx'
4
-
5
- class TestApp < Wx::App
6
- attr_accessor :test_class
7
- def on_init
8
- Test::Unit::UI::Console::TestRunner.run(self.test_class)
9
- false # exit after tests
10
- end
11
- end
1
+
2
+ require_relative './lib/wxapp_runner'
12
3
 
13
4
  class TestInternationalisation < Test::Unit::TestCase
14
5
  def test_encodings
@@ -101,7 +92,3 @@ class TestInternationalisation < Test::Unit::TestCase
101
92
  locale = Wx::Locale.new(Wx::LANGUAGE_DEFAULT)
102
93
  end
103
94
  end
104
-
105
- app = TestApp.new
106
- app.test_class = TestInternationalisation
107
- app.run
@@ -1,14 +1,5 @@
1
- require 'test/unit'
2
- require 'test/unit/ui/console/testrunner'
3
- require 'wx'
4
-
5
- class TestApp < Wx::App
6
- attr_accessor :test_class
7
- def on_init
8
- Test::Unit::UI::Console::TestRunner.run(self.test_class)
9
- false
10
- end
11
- end
1
+
2
+ require_relative './lib/wxapp_runner'
12
3
 
13
4
  class CtrlContainerFrame < Wx::Frame
14
5
  attr_accessor :control
@@ -31,6 +22,73 @@ class TestItemData < Test::Unit::TestCase
31
22
  assert_retrievable_data(f.control, 0, { 'b' => 'B' })
32
23
  assert_retrievable_data(f.control, 1, 'string item data')
33
24
  assert_retrievable_data(f.control, 2, 42.3)
25
+
26
+ GC.start
27
+
28
+ # single item append; no data
29
+ f.control.append('integer')
30
+ assert_equal(4, f.control.count)
31
+ assert_equal('integer', f.control.get_string(3))
32
+ assert_equal(nil, f.control.get_item_data(3))
33
+
34
+ # single item append; with data
35
+ f.control.append('array', 110)
36
+ assert_equal(5, f.control.count)
37
+ assert_equal('array', f.control.get_string(4))
38
+ assert_equal(110, f.control.get_item_data(4))
39
+
40
+ # array item append; no data
41
+ f.control.append(%w[set tree bag])
42
+ assert_equal(8, f.control.count)
43
+ assert_equal(nil, f.control.get_item_data(5))
44
+ assert_equal(nil, f.control.get_item_data(7))
45
+
46
+ # array item append; with data
47
+ f.control.append(%w[object module class], ['O', 'M', 'C'])
48
+ assert_equal(11, f.control.count)
49
+ assert_equal('O', f.control.get_item_data(8))
50
+ assert_equal('C', f.control.get_item_data(10))
51
+
52
+ GC.start
53
+
54
+ # single item insert; no data
55
+ f.control.insert('integer2', 3)
56
+ assert_equal(12, f.control.count)
57
+ assert_equal('integer2', f.control.get_string(3))
58
+ assert_equal(nil, f.control.get_item_data(3))
59
+
60
+ # single item insert; with data
61
+ f.control.insert('array2', 4, 110)
62
+ assert_equal(13, f.control.count)
63
+ assert_equal('array2', f.control.get_string(4))
64
+ assert_equal(110, f.control.get_item_data(4))
65
+
66
+ # array item insert; no data
67
+ f.control.insert(%w[set2 tree2 bag2], 5)
68
+ assert_equal(16, f.control.count)
69
+ assert_equal(nil, f.control.get_item_data(5))
70
+ assert_equal(nil, f.control.get_item_data(7))
71
+
72
+ # array item insert; with data
73
+ f.control.insert(%w[object2 module2 class2], 8, ['O', 'M', 'C'])
74
+ assert_equal(19, f.control.count)
75
+ assert_equal('O', f.control.get_item_data(8))
76
+ assert_equal('C', f.control.get_item_data(10))
77
+
78
+ GC.start
79
+
80
+ # item delete
81
+ f.control.delete(8)
82
+ assert_equal(18, f.control.count)
83
+ assert_equal('M', f.control.get_item_data(8))
84
+
85
+ GC.start
86
+
87
+ # clear all
88
+ f.control.clear
89
+ assert_equal(0, f.control.count)
90
+
91
+ GC.start
34
92
  end
35
93
 
36
94
  def test_treectrl_itemdata
@@ -114,7 +172,3 @@ class TestItemData < Test::Unit::TestCase
114
172
  f.close(true)
115
173
  end
116
174
  end
117
-
118
- app = TestApp.new
119
- app.test_class = TestItemData
120
- app.run
@@ -1,15 +1,5 @@
1
- require 'test/unit'
2
- require 'test/unit/ui/console/testrunner'
3
- require 'wx'
4
1
 
5
- class TestApp < Wx::App
6
- attr_accessor :test_class
7
- def on_init
8
- Test::Unit::UI::Console::TestRunner.run(self.test_class)
9
- GC.start
10
- false # exit after tests
11
- end
12
- end
2
+ require_relative './lib/wxapp_runner'
13
3
 
14
4
  class TestVariant < Test::Unit::TestCase
15
5
 
@@ -145,7 +135,3 @@ class TestVariant < Test::Unit::TestCase
145
135
  end
146
136
 
147
137
  end
148
-
149
- app = TestApp.new
150
- app.test_class = TestVariant
151
- app.run
data/tests/testapp.rb CHANGED
@@ -33,8 +33,3 @@ class TestApp < Test::Unit::TestCase
33
33
  assert(o.did_call_on_exit, "didn't call on_exit?")
34
34
  end
35
35
  end
36
-
37
- if $0 == __FILE__
38
- require 'test/unit/ui/console/testrunner'
39
- Test::Unit::UI::Console::TestRunner.run(TestApp)
40
- end
@@ -21,8 +21,3 @@ class TestApp < Test::Unit::TestCase
21
21
  end
22
22
 
23
23
  end
24
-
25
- if $0 == __FILE__
26
- require 'test/unit/ui/console/testrunner'
27
- Test::Unit::UI::Console::TestRunner.run(TestApp)
28
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wxruby3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre.beta.9
4
+ version: 0.9.0.pre.beta.11
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Martin Corino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-28 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -160,6 +160,7 @@ files:
160
160
  - lib/wx/doc/aui/auinotebook.rb
161
161
  - lib/wx/doc/colour_dialog.rb
162
162
  - lib/wx/doc/core.rb
163
+ - lib/wx/doc/data_object.rb
163
164
  - lib/wx/doc/dc.rb
164
165
  - lib/wx/doc/enum.rb
165
166
  - lib/wx/doc/evthandler.rb
@@ -237,6 +238,7 @@ files:
237
238
  - lib/wx/doc/gen/cursor.rb
238
239
  - lib/wx/doc/gen/data_format.rb
239
240
  - lib/wx/doc/gen/data_object.rb
241
+ - lib/wx/doc/gen/data_object_simple_base.rb
240
242
  - lib/wx/doc/gen/date_event.rb
241
243
  - lib/wx/doc/gen/date_picker_ctrl.rb
242
244
  - lib/wx/doc/gen/dc.rb
@@ -413,6 +415,7 @@ files:
413
415
  - lib/wx/doc/gen/sash_event.rb
414
416
  - lib/wx/doc/gen/sash_layout_window.rb
415
417
  - lib/wx/doc/gen/sash_window.rb
418
+ - lib/wx/doc/gen/scaled_dc.rb
416
419
  - lib/wx/doc/gen/screen_dc.rb
417
420
  - lib/wx/doc/gen/scrolled_canvas.rb
418
421
  - lib/wx/doc/gen/scrolled_control.rb
@@ -483,6 +486,7 @@ files:
483
486
  - lib/wx/doc/pg/pgeditor.rb
484
487
  - lib/wx/doc/pg/property_grid.rb
485
488
  - lib/wx/doc/pg/property_grid_interface.rb
489
+ - lib/wx/doc/progress_dialog.rb
486
490
  - lib/wx/doc/prt/page_setup_dialog.rb
487
491
  - lib/wx/doc/prt/print_data.rb
488
492
  - lib/wx/doc/prt/print_dialog.rb
@@ -492,6 +496,7 @@ files:
492
496
  - lib/wx/doc/rbn/ribbon_gallery.rb
493
497
  - lib/wx/doc/rbn/ribbon_tool_bar.rb
494
498
  - lib/wx/doc/rtc/richtext_printing.rb
499
+ - lib/wx/doc/scaled_dc.rb
495
500
  - lib/wx/doc/screen_dc.rb
496
501
  - lib/wx/doc/stock_objects.rb
497
502
  - lib/wx/doc/stream.rb
@@ -887,6 +892,7 @@ files:
887
892
  - samples/xrc/samples.xrc
888
893
  - samples/xrc/tn_xrc_sample.png
889
894
  - samples/xrc/xrc_sample.rb
895
+ - tests/lib/wxapp_runner.rb
890
896
  - tests/test_basic.rb
891
897
  - tests/test_clipboard.rb
892
898
  - tests/test_dialog.rb
@@ -901,7 +907,11 @@ files:
901
907
  homepage: https://github.com/mcorino/wxRuby3
902
908
  licenses:
903
909
  - MIT
904
- metadata: {}
910
+ metadata:
911
+ bug_tracker_uri: https://github.com/mcorino/wxruby3/issues
912
+ source_code_uri: https://github.com/mcorino/wxruby3
913
+ documentation_uri: https://mcorino.github.io/wxRuby3
914
+ homepage_uri: https://github.com/mcorino/wxruby3
905
915
  post_install_message:
906
916
  rdoc_options:
907
917
  - "--exclude=\\.dll"