wxruby3 0.9.4 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/INSTALL.md +315 -78
- data/README.md +32 -21
- data/ext/wxruby3/include/wxruby-ComboPopup.h +777 -0
- data/lib/wx/core/combo_ctrl.rb +171 -0
- data/lib/wx/core/ext.rb +22 -3
- data/lib/wx/doc/comboctrl.rb +128 -3
- data/lib/wx/doc/owner_drawn_combobox.rb +5 -1
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/base.rb +6 -4
- data/lib/wx/wxruby/cmd/sampler.rb +39 -29
- data/lib/wx/wxruby/cmd/setup.rb +122 -0
- data/lib/wx/wxruby/cmd/test.rb +56 -6
- data/rakefile +14 -0
- data/rakelib/bin.rake +48 -0
- data/rakelib/bin.rb +62 -0
- data/rakelib/build.rb +11 -7
- data/rakelib/config.rake +3 -1
- data/rakelib/configure.rb +28 -8
- data/rakelib/doc.rake +3 -1
- data/rakelib/gem.rake +169 -0
- data/rakelib/gem.rb +82 -0
- data/rakelib/install.rb +2 -0
- data/rakelib/lib/config/linux.rb +24 -2
- data/rakelib/lib/config/macosx.rb +16 -0
- data/rakelib/lib/config/mingw.rb +133 -9
- data/rakelib/lib/config/pkgman/arch.rb +53 -0
- data/rakelib/lib/config/pkgman/base.rb +169 -0
- data/rakelib/lib/config/pkgman/debian.rb +66 -0
- data/rakelib/lib/config/pkgman/macosx.rb +183 -0
- data/rakelib/lib/config/pkgman/rhel.rb +54 -0
- data/rakelib/lib/config/pkgman/suse.rb +54 -0
- data/rakelib/lib/config/unixish.rb +36 -19
- data/rakelib/lib/config.rb +254 -61
- data/rakelib/lib/core/include/funcall.inc +2 -1
- data/rakelib/lib/core/package.rb +47 -49
- data/rakelib/lib/director/comboctrl.rb +104 -3
- data/rakelib/lib/director/defs.rb +1 -3
- data/rakelib/lib/director/gdicommon.rb +5 -0
- data/rakelib/lib/director/menu_item.rb +1 -1
- data/rakelib/lib/director/num_validator.rb +5 -7
- data/rakelib/lib/director/owner_drawn_combobox.rb +1 -0
- data/rakelib/lib/director/persistent_window.rb +2 -2
- data/rakelib/lib/director/pgeditor.rb +1 -1
- data/rakelib/lib/director/pgproperties.rb +3 -3
- data/rakelib/lib/director/pgproperty.rb +5 -1
- data/rakelib/lib/director/richtext_style_listbox.rb +5 -0
- data/rakelib/lib/director/sizer.rb +1 -1
- data/rakelib/lib/director/window.rb +4 -0
- data/rakelib/lib/extractor/module.rb +15 -0
- data/rakelib/lib/generate/doc/combo_ctrl.yaml +135 -0
- data/rakelib/lib/generate/doc/file_dialog_customize_hook.yaml +62 -0
- data/rakelib/lib/generate/doc/file_system.yaml +28 -0
- data/rakelib/lib/generate/doc.rb +29 -14
- data/rakelib/lib/generate/interface.rb +16 -6
- data/rakelib/lib/swig_runner.rb +18 -15
- data/rakelib/lib/typemap/combo_popup.rb +42 -0
- data/rakelib/prepost.rake +9 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +14 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +5 -5
- data/rakelib/yard/yard/relative_markdown_links.rb +7 -1
- data/tests/test_combo_ctrl.rb +196 -0
- metadata +28 -17
- data/ext/mkrf_conf_srcgem.rb +0 -67
- data/rakelib/run.rake +0 -52
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.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Corino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -71,8 +71,7 @@ description: wxRuby3 is a Ruby library providing an extension for the wxWidgets
|
|
71
71
|
email: mcorino@m2c-software.nl
|
72
72
|
executables:
|
73
73
|
- wxruby
|
74
|
-
extensions:
|
75
|
-
- ext/mkrf_conf_srcgem.rb
|
74
|
+
extensions: []
|
76
75
|
extra_rdoc_files: []
|
77
76
|
files:
|
78
77
|
- ".yardopts"
|
@@ -96,9 +95,9 @@ files:
|
|
96
95
|
- assets/logo.xcf
|
97
96
|
- assets/repo-social-preview.png
|
98
97
|
- bin/wxruby
|
99
|
-
- ext/mkrf_conf_srcgem.rb
|
100
98
|
- ext/wxruby3/include/wxRubyApp.h
|
101
99
|
- ext/wxruby3/include/wxruby-ClientData.h
|
100
|
+
- ext/wxruby3/include/wxruby-ComboPopup.h
|
102
101
|
- ext/wxruby3/include/wxruby-Config.h
|
103
102
|
- ext/wxruby3/include/wxruby-Persistence.h
|
104
103
|
- ext/wxruby3/include/wxruby-ScaledDC.h
|
@@ -147,6 +146,7 @@ files:
|
|
147
146
|
- lib/wx/core/clipboard.rb
|
148
147
|
- lib/wx/core/collapsible_pane.rb
|
149
148
|
- lib/wx/core/colour.rb
|
149
|
+
- lib/wx/core/combo_ctrl.rb
|
150
150
|
- lib/wx/core/combobox.rb
|
151
151
|
- lib/wx/core/config.rb
|
152
152
|
- lib/wx/core/const.rb
|
@@ -396,13 +396,19 @@ files:
|
|
396
396
|
- lib/wx/version.rb
|
397
397
|
- lib/wx/wxruby/base.rb
|
398
398
|
- lib/wx/wxruby/cmd/sampler.rb
|
399
|
+
- lib/wx/wxruby/cmd/setup.rb
|
399
400
|
- lib/wx/wxruby/cmd/test.rb
|
401
|
+
- rakefile
|
402
|
+
- rakelib/bin.rake
|
403
|
+
- rakelib/bin.rb
|
400
404
|
- rakelib/build.rake
|
401
405
|
- rakelib/build.rb
|
402
406
|
- rakelib/config.rake
|
403
407
|
- rakelib/configure.rb
|
404
408
|
- rakelib/doc.rake
|
405
409
|
- rakelib/doc.rb
|
410
|
+
- rakelib/gem.rake
|
411
|
+
- rakelib/gem.rb
|
406
412
|
- rakelib/install.rake
|
407
413
|
- rakelib/install.rb
|
408
414
|
- rakelib/lib/config.rb
|
@@ -411,6 +417,12 @@ files:
|
|
411
417
|
- rakelib/lib/config/macosx.rb
|
412
418
|
- rakelib/lib/config/mingw.rb
|
413
419
|
- rakelib/lib/config/netbsd.rb
|
420
|
+
- rakelib/lib/config/pkgman/arch.rb
|
421
|
+
- rakelib/lib/config/pkgman/base.rb
|
422
|
+
- rakelib/lib/config/pkgman/debian.rb
|
423
|
+
- rakelib/lib/config/pkgman/macosx.rb
|
424
|
+
- rakelib/lib/config/pkgman/rhel.rb
|
425
|
+
- rakelib/lib/config/pkgman/suse.rb
|
414
426
|
- rakelib/lib/config/unixish.rb
|
415
427
|
- rakelib/lib/core/include/client_data.inc
|
416
428
|
- rakelib/lib/core/include/enum.inc
|
@@ -683,6 +695,7 @@ files:
|
|
683
695
|
- rakelib/lib/generate/doc/clipboard.yaml
|
684
696
|
- rakelib/lib/generate/doc/collapsible_pane.yaml
|
685
697
|
- rakelib/lib/generate/doc/colour_dialog.yaml
|
698
|
+
- rakelib/lib/generate/doc/combo_ctrl.yaml
|
686
699
|
- rakelib/lib/generate/doc/context_help_button.yaml
|
687
700
|
- rakelib/lib/generate/doc/control.yaml
|
688
701
|
- rakelib/lib/generate/doc/cursor.yaml
|
@@ -695,6 +708,8 @@ files:
|
|
695
708
|
- rakelib/lib/generate/doc/events.yaml
|
696
709
|
- rakelib/lib/generate/doc/evt_handler.yaml
|
697
710
|
- rakelib/lib/generate/doc/file_dialog.yaml
|
711
|
+
- rakelib/lib/generate/doc/file_dialog_customize_hook.yaml
|
712
|
+
- rakelib/lib/generate/doc/file_system.yaml
|
698
713
|
- rakelib/lib/generate/doc/font.yaml
|
699
714
|
- rakelib/lib/generate/doc/frame.yaml
|
700
715
|
- rakelib/lib/generate/doc/fs_file.yaml
|
@@ -764,6 +779,7 @@ files:
|
|
764
779
|
- rakelib/lib/swig_runner.rb
|
765
780
|
- rakelib/lib/typemap/array_int_selections.rb
|
766
781
|
- rakelib/lib/typemap/client_data.rb
|
782
|
+
- rakelib/lib/typemap/combo_popup.rb
|
767
783
|
- rakelib/lib/typemap/common.rb
|
768
784
|
- rakelib/lib/typemap/config.rb
|
769
785
|
- rakelib/lib/typemap/data_format.rb
|
@@ -782,7 +798,6 @@ files:
|
|
782
798
|
- rakelib/lib/util/string.rb
|
783
799
|
- rakelib/prepost.rake
|
784
800
|
- rakelib/prepost.rb
|
785
|
-
- rakelib/run.rake
|
786
801
|
- rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css
|
787
802
|
- rakelib/yard/templates/default/fulldoc/html/full_list.erb
|
788
803
|
- rakelib/yard/templates/default/fulldoc/html/setup.rb
|
@@ -1088,6 +1103,7 @@ files:
|
|
1088
1103
|
- tests/test_book_controls.rb
|
1089
1104
|
- tests/test_box_sizer.rb
|
1090
1105
|
- tests/test_clipboard.rb
|
1106
|
+
- tests/test_combo_ctrl.rb
|
1091
1107
|
- tests/test_config.rb
|
1092
1108
|
- tests/test_dc.rb
|
1093
1109
|
- tests/test_dialog.rb
|
@@ -1128,19 +1144,14 @@ metadata:
|
|
1128
1144
|
source_code_uri: https://github.com/mcorino/wxRuby3
|
1129
1145
|
documentation_uri: https://mcorino.github.io/wxRuby3
|
1130
1146
|
homepage_uri: https://github.com/mcorino/wxRuby3
|
1131
|
-
post_install_message: |2
|
1147
|
+
post_install_message: |2+
|
1132
1148
|
|
1133
|
-
wxRuby3 has been successfully installed
|
1149
|
+
The wxRuby3 Gem has been successfully installed.
|
1150
|
+
Before being able to use wxRuby3 you need to run the post-install setup process
|
1151
|
+
by executing the command 'wxruby setup'.
|
1134
1152
|
|
1135
|
-
|
1153
|
+
Run 'wxruby setup -h' to see information on the available commandline options.
|
1136
1154
|
|
1137
|
-
$ ./wxruby test
|
1138
|
-
|
1139
|
-
The wxRuby3 sample selector can be run by executing:
|
1140
|
-
|
1141
|
-
$ ./wxruby sampler
|
1142
|
-
|
1143
|
-
Have fun using wxRuby3.
|
1144
1155
|
rdoc_options:
|
1145
1156
|
- "--exclude=\\.dll"
|
1146
1157
|
- "--exclude=\\.so"
|
@@ -1160,7 +1171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1160
1171
|
- !ruby/object:Gem::Version
|
1161
1172
|
version: '0'
|
1162
1173
|
requirements: []
|
1163
|
-
rubygems_version: 3.4.
|
1174
|
+
rubygems_version: 3.4.19
|
1164
1175
|
signing_key:
|
1165
1176
|
specification_version: 4
|
1166
1177
|
summary: wxWidgets extension for Ruby
|
data/ext/mkrf_conf_srcgem.rb
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
-
#
|
3
|
-
# This software is released under the MIT license.
|
4
|
-
|
5
|
-
###
|
6
|
-
# wxRuby3 extension configuration file for source gem
|
7
|
-
###
|
8
|
-
|
9
|
-
# generate Rakefile with appropriate default task (all actual task in rakelib)
|
10
|
-
File.open('../Rakefile', 'w') do |f|
|
11
|
-
f.puts <<EOF__
|
12
|
-
###
|
13
|
-
# wxRuby3 rake file
|
14
|
-
# Copyright (c) M.J.N. Corino, The Netherlands
|
15
|
-
###
|
16
|
-
|
17
|
-
task :default => 'wxruby:build' do
|
18
|
-
Rake::Task['wxruby:post:srcgem'].invoke
|
19
|
-
end
|
20
|
-
EOF__
|
21
|
-
end
|
22
|
-
|
23
|
-
require 'rbconfig'
|
24
|
-
if defined? ::RbConfig
|
25
|
-
RB_CONFIG = ::RbConfig
|
26
|
-
else
|
27
|
-
RB_CONFIG = ::Config
|
28
|
-
end unless defined? RB_CONFIG
|
29
|
-
RB_CONFIG::MAKEFILE_CONFIG['TRY_LINK'] = "$(CXX) #{RB_CONFIG::MAKEFILE_CONFIG['OUTFLAG']}conftest#{$EXEEXT} $(INCFLAGS) $(CPPFLAGS) " \
|
30
|
-
"$(CFLAGS) $(src) $(LIBPATH) $(LDFLAGS) $(ARCH_FLAG) $(LOCAL_LIBS) $(LIBS)"
|
31
|
-
require 'mkmf'
|
32
|
-
if defined?(MakeMakefile)
|
33
|
-
MakeMakefile::COMMON_HEADERS.clear
|
34
|
-
elsif defined?(COMMON_HEADERS)
|
35
|
-
COMMON_HEADERS.slice!(/./)
|
36
|
-
end
|
37
|
-
|
38
|
-
usage_txt =<<-__EOT
|
39
|
-
Please make sure you have a valid build environment either by having a system provided wxWidgets
|
40
|
-
development package installed (>= 3.2.0) or provide the paths to a locally built and installed
|
41
|
-
wxWidgets release (>= 3.2.0) by setting the WXWIN environment variable (and optionally WXXML)
|
42
|
-
for the 'gem install' command.
|
43
|
-
Installed versions of SWIG (>= 3.0.12) and (if no WXXML path is provided) doxygen and git are
|
44
|
-
also required.
|
45
|
-
Checkout the documentation at https://github.com/mcorino/wxRuby3 for more information.
|
46
|
-
__EOT
|
47
|
-
|
48
|
-
wxwin = ENV['WXWIN']
|
49
|
-
wxxml = ENV['WXXML']
|
50
|
-
with_wxwin = !!ENV['WITH_WXWIN']
|
51
|
-
|
52
|
-
# run configure with appropriate settings
|
53
|
-
cfgargs = ''
|
54
|
-
if wxwin || with_wxwin
|
55
|
-
cfgargs = ["--wxwin=#{wxwin}"]
|
56
|
-
cfgargs << "--wxxml=#{wxxml}" if wxxml
|
57
|
-
cfgargs << '--with-wxwin' if with_wxwin
|
58
|
-
cfgargs = "[#{cfgargs.join(',')}]"
|
59
|
-
end
|
60
|
-
Dir.chdir('..') do
|
61
|
-
puts "Running 'rake #{ARGV.join(' ')} configure#{cfgargs}'"
|
62
|
-
unless system("rake #{ARGV.join(' ')} configure#{cfgargs}")
|
63
|
-
puts 'Failed to configure wxRuby3'
|
64
|
-
puts usage_txt
|
65
|
-
exit(1)
|
66
|
-
end
|
67
|
-
end
|
data/rakelib/run.rake
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
2
|
-
#
|
3
|
-
# This software is released under the MIT license.
|
4
|
-
|
5
|
-
###
|
6
|
-
# wxRuby3 rake file
|
7
|
-
###
|
8
|
-
|
9
|
-
require_relative './configure'
|
10
|
-
|
11
|
-
namespace :wxruby do
|
12
|
-
|
13
|
-
task :run, [:app] => 'config:bootstrap' do |t, args|
|
14
|
-
Rake::Task[:build].invoke
|
15
|
-
WXRuby3.config.run args[:app]
|
16
|
-
end
|
17
|
-
|
18
|
-
task :debug, [:app] => 'config:bootstrap' do |t, args|
|
19
|
-
Rake::Task[:build].invoke
|
20
|
-
WXRuby3.config.debug args[:app]
|
21
|
-
end
|
22
|
-
|
23
|
-
task :test => 'config:bootstrap' do |t, args|
|
24
|
-
Rake::Task[:build].invoke
|
25
|
-
tests = args.extras - [':nodep']
|
26
|
-
tests << ENV['TEST'] if ENV['TEST']
|
27
|
-
WXRuby3.config.test *tests
|
28
|
-
end
|
29
|
-
|
30
|
-
task :irb => 'config:bootstrap' do |t, args|
|
31
|
-
Rake::Task[:build].invoke
|
32
|
-
WXRuby3.config.irb
|
33
|
-
end
|
34
|
-
|
35
|
-
task :exec => 'config:bootstrap' do |t, args|
|
36
|
-
WXRuby3.config.execute args.extras
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
desc "Run wxRuby tests"
|
42
|
-
task :test => 'wxruby:test'
|
43
|
-
|
44
|
-
task :tests => 'wxruby:test'
|
45
|
-
|
46
|
-
desc 'Run wxRuby (sample) app'
|
47
|
-
task :run, [:app] => 'wxruby:run'
|
48
|
-
|
49
|
-
desc 'Debug wxRuby (sample) app'
|
50
|
-
task :debug, [:app] => 'wxruby:debug'
|
51
|
-
|
52
|
-
task :irb => 'wxruby:irb'
|