wxruby3-shapes 0.9.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/CREDITS.md +18 -0
  4. data/INSTALL.md +39 -0
  5. data/LICENSE +21 -0
  6. data/README.md +118 -0
  7. data/assets/screenshot.png +0 -0
  8. data/bin/wx-shapes +9 -0
  9. data/lib/wx/shapes/arrow_base.rb +86 -0
  10. data/lib/wx/shapes/arrows/circle_arrow.rb +39 -0
  11. data/lib/wx/shapes/arrows/diamond_arrow.rb +33 -0
  12. data/lib/wx/shapes/arrows/open_arrow.rb +56 -0
  13. data/lib/wx/shapes/arrows/solid_arrow.rb +69 -0
  14. data/lib/wx/shapes/art/shape_canvas/page.xpm +73 -0
  15. data/lib/wx/shapes/auto_layout.rb +358 -0
  16. data/lib/wx/shapes/base.rb +33 -0
  17. data/lib/wx/shapes/canvas_history.rb +84 -0
  18. data/lib/wx/shapes/connection_point.rb +238 -0
  19. data/lib/wx/shapes/core.rb +19 -0
  20. data/lib/wx/shapes/diagram.rb +659 -0
  21. data/lib/wx/shapes/events.rb +389 -0
  22. data/lib/wx/shapes/printout.rb +136 -0
  23. data/lib/wx/shapes/serializable.rb +440 -0
  24. data/lib/wx/shapes/serialize/core.rb +40 -0
  25. data/lib/wx/shapes/serialize/id.rb +82 -0
  26. data/lib/wx/shapes/serialize/wx.rb +104 -0
  27. data/lib/wx/shapes/serializer/json.rb +258 -0
  28. data/lib/wx/shapes/serializer/yaml.rb +125 -0
  29. data/lib/wx/shapes/shape.rb +2129 -0
  30. data/lib/wx/shapes/shape_canvas.rb +3285 -0
  31. data/lib/wx/shapes/shape_data_object.rb +43 -0
  32. data/lib/wx/shapes/shape_handle.rb +287 -0
  33. data/lib/wx/shapes/shape_list.rb +161 -0
  34. data/lib/wx/shapes/shapes/bitmap_shape.rb +257 -0
  35. data/lib/wx/shapes/shapes/circle_shape.rb +136 -0
  36. data/lib/wx/shapes/shapes/control_shape.rb +483 -0
  37. data/lib/wx/shapes/shapes/curve_shape.rb +231 -0
  38. data/lib/wx/shapes/shapes/diamond_shape.rb +62 -0
  39. data/lib/wx/shapes/shapes/edit_text_shape.rb +317 -0
  40. data/lib/wx/shapes/shapes/ellipse_shape.rb +106 -0
  41. data/lib/wx/shapes/shapes/flex_grid_shape.rb +78 -0
  42. data/lib/wx/shapes/shapes/grid_shape.rb +404 -0
  43. data/lib/wx/shapes/shapes/line_shape.rb +907 -0
  44. data/lib/wx/shapes/shapes/multi_sel_rect.rb +214 -0
  45. data/lib/wx/shapes/shapes/ortho_shape.rb +357 -0
  46. data/lib/wx/shapes/shapes/polygon_shape.rb +294 -0
  47. data/lib/wx/shapes/shapes/rect_shape.rb +378 -0
  48. data/lib/wx/shapes/shapes/round_ortho_shape.rb +131 -0
  49. data/lib/wx/shapes/shapes/round_rect_shape.rb +142 -0
  50. data/lib/wx/shapes/shapes/square_shape.rb +119 -0
  51. data/lib/wx/shapes/shapes/text_shape.rb +324 -0
  52. data/lib/wx/shapes/thumbnail.rb +234 -0
  53. data/lib/wx/shapes/version.rb +12 -0
  54. data/lib/wx/shapes/wx.rb +29 -0
  55. data/lib/wx/shapes.rb +18 -0
  56. data/lib/wx/wx-shapes/base.rb +87 -0
  57. data/lib/wx/wx-shapes/cmd/sampler.rb +58 -0
  58. data/lib/wx/wx-shapes/cmd/test.rb +27 -0
  59. data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +7 -0
  60. data/rakelib/yard/templates/default/layout/html/setup.rb +5 -0
  61. data/rakelib/yard/yard/relative_markdown_links/version.rb +8 -0
  62. data/rakelib/yard/yard/relative_markdown_links.rb +39 -0
  63. data/rakelib/yard/yard-custom-templates.rb +2 -0
  64. data/rakelib/yard/yard-relative_markdown_links.rb +4 -0
  65. data/samples/demo/art/AlignBottom.xpm +35 -0
  66. data/samples/demo/art/AlignCenter.xpm +35 -0
  67. data/samples/demo/art/AlignLeft.xpm +35 -0
  68. data/samples/demo/art/AlignMiddle.xpm +35 -0
  69. data/samples/demo/art/AlignRight.xpm +35 -0
  70. data/samples/demo/art/AlignTop.xpm +35 -0
  71. data/samples/demo/art/Bitmap.xpm +25 -0
  72. data/samples/demo/art/Circle.xpm +22 -0
  73. data/samples/demo/art/Curve.xpm +21 -0
  74. data/samples/demo/art/Diamond.xpm +22 -0
  75. data/samples/demo/art/EditText.xpm +21 -0
  76. data/samples/demo/art/Ellipse.xpm +22 -0
  77. data/samples/demo/art/FixedRect.xpm +22 -0
  78. data/samples/demo/art/FlexGrid.xpm +22 -0
  79. data/samples/demo/art/GC.xpm +23 -0
  80. data/samples/demo/art/Grid.xpm +22 -0
  81. data/samples/demo/art/Line.xpm +21 -0
  82. data/samples/demo/art/NoSource.xpm +69 -0
  83. data/samples/demo/art/OrthoLine.xpm +21 -0
  84. data/samples/demo/art/Rect.xpm +22 -0
  85. data/samples/demo/art/RoundOrthoLine.xpm +21 -0
  86. data/samples/demo/art/RoundRect.xpm +22 -0
  87. data/samples/demo/art/Shadow.xpm +23 -0
  88. data/samples/demo/art/StandAloneLine.xpm +22 -0
  89. data/samples/demo/art/Text.xpm +21 -0
  90. data/samples/demo/art/Tool.xpm +23 -0
  91. data/samples/demo/art/sample.xpm +251 -0
  92. data/samples/demo/demo.rb +658 -0
  93. data/samples/demo/frame_canvas.rb +422 -0
  94. data/samples/demo/images/motyl.bmp +0 -0
  95. data/samples/demo/images/motyl2.bmp +0 -0
  96. data/samples/sample1/art/sample.xpm +251 -0
  97. data/samples/sample1/sample.rb +263 -0
  98. data/samples/sample2/art/sample.xpm +251 -0
  99. data/samples/sample2/sample.rb +133 -0
  100. data/samples/sample2/sample_canvas.rb +35 -0
  101. data/samples/sample2/sample_shape.rb +108 -0
  102. data/samples/sample3/art/sample.xpm +251 -0
  103. data/samples/sample3/sample.rb +281 -0
  104. data/samples/sample4/art/sample.xpm +251 -0
  105. data/samples/sample4/sample.rb +180 -0
  106. data/tests/art/motyl.bmp +0 -0
  107. data/tests/lib/wxapp_runner.rb +64 -0
  108. data/tests/serializer_tests.rb +521 -0
  109. data/tests/test_grid_shapes.rb +42 -0
  110. data/tests/test_serialize.rb +7 -0
  111. data/tests/test_serialize_yaml.rb +17 -0
  112. metadata +242 -0
metadata ADDED
@@ -0,0 +1,242 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wxruby3-shapes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0.pre.beta.3
5
+ platform: ruby
6
+ authors:
7
+ - Martin Corino
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-06-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.15'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: test-unit
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.5'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: wxruby3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.9.0.pre.beta.14
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.9.0.pre.beta.14
83
+ description: wxRuby3/Shapes is a pure Ruby library providing 2D shapes and diagramming
84
+ framework based on wxRuby3
85
+ email: mcorino@m2c-software.nl
86
+ executables:
87
+ - wx-shapes
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".yardopts"
92
+ - CREDITS.md
93
+ - INSTALL.md
94
+ - LICENSE
95
+ - README.md
96
+ - assets/screenshot.png
97
+ - bin/wx-shapes
98
+ - lib/wx/shapes.rb
99
+ - lib/wx/shapes/arrow_base.rb
100
+ - lib/wx/shapes/arrows/circle_arrow.rb
101
+ - lib/wx/shapes/arrows/diamond_arrow.rb
102
+ - lib/wx/shapes/arrows/open_arrow.rb
103
+ - lib/wx/shapes/arrows/solid_arrow.rb
104
+ - lib/wx/shapes/art/shape_canvas/page.xpm
105
+ - lib/wx/shapes/auto_layout.rb
106
+ - lib/wx/shapes/base.rb
107
+ - lib/wx/shapes/canvas_history.rb
108
+ - lib/wx/shapes/connection_point.rb
109
+ - lib/wx/shapes/core.rb
110
+ - lib/wx/shapes/diagram.rb
111
+ - lib/wx/shapes/events.rb
112
+ - lib/wx/shapes/printout.rb
113
+ - lib/wx/shapes/serializable.rb
114
+ - lib/wx/shapes/serialize/core.rb
115
+ - lib/wx/shapes/serialize/id.rb
116
+ - lib/wx/shapes/serialize/wx.rb
117
+ - lib/wx/shapes/serializer/json.rb
118
+ - lib/wx/shapes/serializer/yaml.rb
119
+ - lib/wx/shapes/shape.rb
120
+ - lib/wx/shapes/shape_canvas.rb
121
+ - lib/wx/shapes/shape_data_object.rb
122
+ - lib/wx/shapes/shape_handle.rb
123
+ - lib/wx/shapes/shape_list.rb
124
+ - lib/wx/shapes/shapes/bitmap_shape.rb
125
+ - lib/wx/shapes/shapes/circle_shape.rb
126
+ - lib/wx/shapes/shapes/control_shape.rb
127
+ - lib/wx/shapes/shapes/curve_shape.rb
128
+ - lib/wx/shapes/shapes/diamond_shape.rb
129
+ - lib/wx/shapes/shapes/edit_text_shape.rb
130
+ - lib/wx/shapes/shapes/ellipse_shape.rb
131
+ - lib/wx/shapes/shapes/flex_grid_shape.rb
132
+ - lib/wx/shapes/shapes/grid_shape.rb
133
+ - lib/wx/shapes/shapes/line_shape.rb
134
+ - lib/wx/shapes/shapes/multi_sel_rect.rb
135
+ - lib/wx/shapes/shapes/ortho_shape.rb
136
+ - lib/wx/shapes/shapes/polygon_shape.rb
137
+ - lib/wx/shapes/shapes/rect_shape.rb
138
+ - lib/wx/shapes/shapes/round_ortho_shape.rb
139
+ - lib/wx/shapes/shapes/round_rect_shape.rb
140
+ - lib/wx/shapes/shapes/square_shape.rb
141
+ - lib/wx/shapes/shapes/text_shape.rb
142
+ - lib/wx/shapes/thumbnail.rb
143
+ - lib/wx/shapes/version.rb
144
+ - lib/wx/shapes/wx.rb
145
+ - lib/wx/wx-shapes/base.rb
146
+ - lib/wx/wx-shapes/cmd/sampler.rb
147
+ - lib/wx/wx-shapes/cmd/test.rb
148
+ - rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css
149
+ - rakelib/yard/templates/default/layout/html/setup.rb
150
+ - rakelib/yard/yard-custom-templates.rb
151
+ - rakelib/yard/yard-relative_markdown_links.rb
152
+ - rakelib/yard/yard/relative_markdown_links.rb
153
+ - rakelib/yard/yard/relative_markdown_links/version.rb
154
+ - samples/demo/art/AlignBottom.xpm
155
+ - samples/demo/art/AlignCenter.xpm
156
+ - samples/demo/art/AlignLeft.xpm
157
+ - samples/demo/art/AlignMiddle.xpm
158
+ - samples/demo/art/AlignRight.xpm
159
+ - samples/demo/art/AlignTop.xpm
160
+ - samples/demo/art/Bitmap.xpm
161
+ - samples/demo/art/Circle.xpm
162
+ - samples/demo/art/Curve.xpm
163
+ - samples/demo/art/Diamond.xpm
164
+ - samples/demo/art/EditText.xpm
165
+ - samples/demo/art/Ellipse.xpm
166
+ - samples/demo/art/FixedRect.xpm
167
+ - samples/demo/art/FlexGrid.xpm
168
+ - samples/demo/art/GC.xpm
169
+ - samples/demo/art/Grid.xpm
170
+ - samples/demo/art/Line.xpm
171
+ - samples/demo/art/NoSource.xpm
172
+ - samples/demo/art/OrthoLine.xpm
173
+ - samples/demo/art/Rect.xpm
174
+ - samples/demo/art/RoundOrthoLine.xpm
175
+ - samples/demo/art/RoundRect.xpm
176
+ - samples/demo/art/Shadow.xpm
177
+ - samples/demo/art/StandAloneLine.xpm
178
+ - samples/demo/art/Text.xpm
179
+ - samples/demo/art/Tool.xpm
180
+ - samples/demo/art/sample.xpm
181
+ - samples/demo/demo.rb
182
+ - samples/demo/frame_canvas.rb
183
+ - samples/demo/images/motyl.bmp
184
+ - samples/demo/images/motyl2.bmp
185
+ - samples/sample1/art/sample.xpm
186
+ - samples/sample1/sample.rb
187
+ - samples/sample2/art/sample.xpm
188
+ - samples/sample2/sample.rb
189
+ - samples/sample2/sample_canvas.rb
190
+ - samples/sample2/sample_shape.rb
191
+ - samples/sample3/art/sample.xpm
192
+ - samples/sample3/sample.rb
193
+ - samples/sample4/art/sample.xpm
194
+ - samples/sample4/sample.rb
195
+ - tests/art/motyl.bmp
196
+ - tests/lib/wxapp_runner.rb
197
+ - tests/serializer_tests.rb
198
+ - tests/test_grid_shapes.rb
199
+ - tests/test_serialize.rb
200
+ - tests/test_serialize_yaml.rb
201
+ homepage: https://github.com/mcorino/wxRuby3-shapes
202
+ licenses:
203
+ - MIT
204
+ metadata:
205
+ bug_tracker_uri: https://github.com/mcorino/wxRuby3-shapes/issues
206
+ source_code_uri: https://github.com/mcorino/wxRuby3-shapes
207
+ documentation_uri: https://mcorino.github.io/wxRuby3-shapes
208
+ homepage_uri: https://github.com/mcorino/wxRuby3-shapes
209
+ post_install_message: |2
210
+
211
+ wxRuby3/Shapes has been successfully installed including the 'wx-shapes' utility.
212
+
213
+ You can run the regression tests to verify the installation by executing:
214
+
215
+ $ ./wx-shapes test
216
+
217
+ The wxRuby3/Shapes samples can be run by executing:
218
+
219
+ $ ./wx-shapes sampler <sample>
220
+
221
+ Where sample is 'sample1', 'sample2', 'sample3', 'sample4' or 'demo'.
222
+
223
+ Have fun using wxRuby3/Shapes.
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ version: '2.5'
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ requirements: []
238
+ rubygems_version: 3.4.10
239
+ signing_key:
240
+ specification_version: 4
241
+ summary: wxRuby3 2D shapes and diagramming framework
242
+ test_files: []