wxruby3-shapes 0.9.0.pre.beta.3 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +5 -7
  3. data/README.md +38 -6
  4. data/assets/logo.svg +339 -0
  5. data/assets/logo.xpm +60 -0
  6. data/assets/screenshot.png +0 -0
  7. data/assets/social.png +0 -0
  8. data/bin/wx-shapes +1 -1
  9. data/lib/wx/shapes/arrow_base.rb +4 -11
  10. data/lib/wx/shapes/arrows/circle_arrow.rb +22 -11
  11. data/lib/wx/shapes/arrows/circle_prong_arrow.rb +48 -0
  12. data/lib/wx/shapes/arrows/cross_bar_arrow.rb +57 -0
  13. data/lib/wx/shapes/arrows/cross_bar_circle_arrow.rb +56 -0
  14. data/lib/wx/shapes/arrows/cross_bar_prong_arrow.rb +49 -0
  15. data/lib/wx/shapes/arrows/crossed_circle.rb +46 -0
  16. data/lib/wx/shapes/arrows/cup_arrow.rb +65 -0
  17. data/lib/wx/shapes/arrows/diamond_arrow.rb +8 -13
  18. data/lib/wx/shapes/arrows/double_cross_bar_arrow.rb +27 -0
  19. data/lib/wx/shapes/arrows/filled_arrow.rb +60 -0
  20. data/lib/wx/shapes/arrows/line_arrow.rb +67 -0
  21. data/lib/wx/shapes/arrows/open_arrow.rb +22 -23
  22. data/lib/wx/shapes/arrows/prong_arrow.rb +42 -0
  23. data/lib/wx/shapes/arrows/solid_arrow.rb +21 -35
  24. data/lib/wx/shapes/arrows/square_arrow.rb +37 -0
  25. data/lib/wx/shapes/auto_layout.rb +2 -2
  26. data/lib/wx/shapes/base.rb +1 -1
  27. data/lib/wx/shapes/canvas_history.rb +20 -0
  28. data/lib/wx/shapes/connection_point.rb +10 -6
  29. data/lib/wx/shapes/diagram.rb +98 -78
  30. data/lib/wx/shapes/events.rb +8 -8
  31. data/lib/wx/shapes/printout.rb +3 -16
  32. data/lib/wx/shapes/serializable.rb +2 -436
  33. data/lib/wx/shapes/serialize/wx.rb +30 -18
  34. data/lib/wx/shapes/shape.rb +211 -168
  35. data/lib/wx/shapes/shape_canvas.rb +728 -267
  36. data/lib/wx/shapes/shape_data_object.rb +99 -18
  37. data/lib/wx/shapes/shape_handle.rb +18 -11
  38. data/lib/wx/shapes/shape_list.rb +34 -67
  39. data/lib/wx/shapes/shapes/bitmap_shape.rb +23 -24
  40. data/lib/wx/shapes/shapes/box_shape.rb +389 -0
  41. data/lib/wx/shapes/shapes/circle_shape.rb +19 -22
  42. data/lib/wx/shapes/shapes/control_shape.rb +77 -41
  43. data/lib/wx/shapes/shapes/curve_shape.rb +38 -31
  44. data/lib/wx/shapes/shapes/diamond_shape.rb +7 -17
  45. data/lib/wx/shapes/shapes/edit_text_shape.rb +6 -9
  46. data/lib/wx/shapes/shapes/ellipse_shape.rb +12 -15
  47. data/lib/wx/shapes/shapes/flex_grid_shape.rb +58 -33
  48. data/lib/wx/shapes/shapes/grid_shape.rb +259 -161
  49. data/lib/wx/shapes/shapes/line_shape.rb +155 -161
  50. data/lib/wx/shapes/shapes/manager_shape.rb +77 -0
  51. data/lib/wx/shapes/shapes/multi_sel_rect.rb +8 -8
  52. data/lib/wx/shapes/shapes/ortho_shape.rb +31 -36
  53. data/lib/wx/shapes/shapes/polygon_shape.rb +23 -29
  54. data/lib/wx/shapes/shapes/rect_shape.rb +95 -53
  55. data/lib/wx/shapes/shapes/round_ortho_shape.rb +6 -8
  56. data/lib/wx/shapes/shapes/round_rect_shape.rb +20 -24
  57. data/lib/wx/shapes/shapes/square_shape.rb +14 -17
  58. data/lib/wx/shapes/shapes/text_shape.rb +95 -53
  59. data/lib/wx/shapes/version.rb +1 -1
  60. data/lib/wx/shapes/wx.rb +16 -7
  61. data/lib/wx/wx-shapes/cmd/test.rb +1 -1
  62. data/samples/demo/arrows.json +1 -0
  63. data/samples/demo/arrows.yaml +793 -0
  64. data/samples/demo/art/HBox.xpm +22 -0
  65. data/samples/demo/art/VBox.xpm +22 -0
  66. data/samples/demo/art/logo.xpm +60 -0
  67. data/samples/demo/class.json +1 -0
  68. data/samples/demo/class.yaml +5631 -0
  69. data/samples/demo/demo.rb +301 -91
  70. data/samples/demo/dialogs.rb +1405 -0
  71. data/samples/demo/erd.json +1 -0
  72. data/samples/demo/erd.yaml +4072 -0
  73. data/samples/demo/frame_canvas.rb +409 -33
  74. data/samples/sample1/art/logo.xpm +60 -0
  75. data/samples/sample1/sample.rb +11 -11
  76. data/samples/sample2/art/logo.xpm +60 -0
  77. data/samples/sample2/sample.rb +2 -2
  78. data/samples/sample2/sample_shape.rb +15 -15
  79. data/samples/sample3/art/logo.xpm +60 -0
  80. data/samples/sample3/sample.rb +3 -3
  81. data/samples/sample4/art/logo.xpm +60 -0
  82. data/samples/sample4/sample.rb +2 -2
  83. data/tests/lib/wxapp_runner.rb +4 -0
  84. data/tests/serializer_tests.rb +8 -441
  85. data/tests/test_grid_shapes.rb +2 -2
  86. data/tests/test_serialize_xml.rb +17 -0
  87. data/tests/test_serialize_yaml.rb +2 -2
  88. metadata +78 -28
  89. data/lib/wx/shapes/serialize/core.rb +0 -40
  90. data/lib/wx/shapes/serialize/id.rb +0 -82
  91. data/lib/wx/shapes/serializer/json.rb +0 -258
  92. data/lib/wx/shapes/serializer/yaml.rb +0 -125
  93. data/samples/demo/art/sample.xpm +0 -251
  94. data/samples/sample1/art/sample.xpm +0 -251
  95. data/samples/sample2/art/sample.xpm +0 -251
  96. data/samples/sample3/art/sample.xpm +0 -251
  97. data/samples/sample4/art/sample.xpm +0 -251
@@ -1,251 +0,0 @@
1
- /* XPM */
2
- static char * sample_xpm[] = {
3
- "32 32 216 2",
4
- " c None",
5
- ". c #872C2C",
6
- "+ c #A52827",
7
- "@ c #A42828",
8
- "# c #553131",
9
- "$ c #7D2D2D",
10
- "% c #3D3232",
11
- "& c #535331",
12
- "* c #AEAE26",
13
- "= c #85852C",
14
- "- c #ACAC26",
15
- "; c #88882C",
16
- "> c #9B2929",
17
- ", c #A92626",
18
- "' c #F10D0C",
19
- ") c #B32424",
20
- "! c #D91919",
21
- "~ c #A52727",
22
- "{ c #E51414",
23
- "] c #DC1817",
24
- "^ c #9F2828",
25
- "/ c #A5A527",
26
- "( c #F2F20B",
27
- "_ c #FFFF00",
28
- ": c #F1F10C",
29
- "< c #AEAE25",
30
- "[ c #E7E712",
31
- "} c #BEBE22",
32
- "| c #999929",
33
- "1 c #DE1716",
34
- "2 c #A82626",
35
- "3 c #EF0E0D",
36
- "4 c #CA1E1E",
37
- "5 c #C42020",
38
- "6 c #EC1010",
39
- "7 c #9E2828",
40
- "8 c #B12525",
41
- "9 c #E91211",
42
- "0 c #922A2A",
43
- "a c #A8A827",
44
- "b c #EFEF0D",
45
- "c c #C5C520",
46
- "d c #FBFB03",
47
- "e c #A6A627",
48
- "f c #FAFA04",
49
- "g c #CACA1E",
50
- "h c #DDDD18",
51
- "i c #F8F806",
52
- "j c #B8B823",
53
- "k c #E3E315",
54
- "l c #9E2929",
55
- "m c #D01D1D",
56
- "n c #B72423",
57
- "o c #AD2625",
58
- "p c #DD1817",
59
- "q c #B22525",
60
- "r c #D71A1A",
61
- "s c #EBEB10",
62
- "t c #B0B025",
63
- "u c #C0C021",
64
- "v c #E6E613",
65
- "w c #97972A",
66
- "x c #A22828",
67
- "y c #BB2323",
68
- "z c #B82424",
69
- "A c #4A3232",
70
- "B c #842D2D",
71
- "C c #912B2B",
72
- "D c #5B3131",
73
- "E c #70702F",
74
- "F c #C6C620",
75
- "G c #8E8E2B",
76
- "H c #9A9A29",
77
- "I c #484832",
78
- "J c #A4A428",
79
- "K c #9D2828",
80
- "L c #E61211",
81
- "M c #E51212",
82
- "N c #DF1615",
83
- "O c #D21B1A",
84
- "P c #423232",
85
- "Q c #515131",
86
- "R c #E4E412",
87
- "S c #F3F307",
88
- "T c #E2E213",
89
- "U c #BEBE20",
90
- "V c #ECEC0C",
91
- "W c #B1B124",
92
- "X c #999928",
93
- "Y c #CF1D1D",
94
- "Z c #CD1E1D",
95
- "` c #D21C1C",
96
- " . c #A42727",
97
- ".. c #ED0F0F",
98
- "+. c #7E2D2D",
99
- "@. c #92922B",
100
- "#. c #FDFD01",
101
- "$. c #D1D11C",
102
- "%. c #E5E513",
103
- "&. c #643030",
104
- "*. c #E61313",
105
- "=. c #EE0F0E",
106
- "-. c #A92726",
107
- ";. c #C1C121",
108
- ">. c #ADAD25",
109
- ",. c #EEEE0E",
110
- "'. c #5C5C31",
111
- "). c #F00D0C",
112
- "!. c #AA2726",
113
- "~. c #AF2525",
114
- "{. c #EA1110",
115
- "]. c #32365A",
116
- "^. c #333440",
117
- "/. c #E2E215",
118
- "(. c #F0F00D",
119
- "_. c #C4C420",
120
- ":. c #F5F508",
121
- "<. c #BCBC22",
122
- "[. c #FCFC02",
123
- "}. c #8C8C2B",
124
- "|. c #B92323",
125
- "1. c #E51413",
126
- "2. c #633030",
127
- "3. c #313A74",
128
- "4. c #2D43AE",
129
- "5. c #2E40A2",
130
- "6. c #313975",
131
- "7. c #77772E",
132
- "8. c #F7F706",
133
- "9. c #CBCB1E",
134
- "0. c #BABA23",
135
- "a. c #D81919",
136
- "b. c #A62727",
137
- "c. c #D41B1B",
138
- "d. c #C91F1E",
139
- "e. c #8F2B2B",
140
- "f. c #323553",
141
- "g. c #2C45BA",
142
- "h. c #284CE0",
143
- "i. c #2A4AD5",
144
- "j. c #2C46C0",
145
- "k. c #A3A328",
146
- "l. c #DEDE17",
147
- "m. c #772E2E",
148
- "n. c #EC100F",
149
- "o. c #AB2626",
150
- "p. c #B12524",
151
- "q. c #2B47C8",
152
- "r. c #2D43AF",
153
- "s. c #2453FF",
154
- "t. c #2552FA",
155
- "u. c #2D44B6",
156
- "v. c #2C45BE",
157
- "w. c #BEBE21",
158
- "x. c #BFBF22",
159
- "y. c #B2B224",
160
- "z. c #6B2F2F",
161
- "A. c #C6201F",
162
- "B. c #2F409F",
163
- "C. c #2551F8",
164
- "D. c #2C44B9",
165
- "E. c #2452FC",
166
- "F. c #2F3E92",
167
- "G. c #585831",
168
- "H. c #8E8E2A",
169
- "I. c #79792D",
170
- "J. c #5C3030",
171
- "K. c #333333",
172
- "L. c #313971",
173
- "M. c #2551F5",
174
- "N. c #2A49D0",
175
- "O. c #284EE6",
176
- "P. c #294BD9",
177
- "Q. c #294CDD",
178
- "R. c #2650F1",
179
- "S. c #323761",
180
- "T. c #606030",
181
- "U. c #294CDE",
182
- "V. c #2D42AD",
183
- "W. c #2D43B3",
184
- "X. c #2A4AD6",
185
- "Y. c #2C45BD",
186
- "Z. c #303B7C",
187
- "`. c #2650F0",
188
- " + c #2650F3",
189
- ".+ c #2B46C3",
190
- "++ c #284CDE",
191
- "@+ c #2A49D1",
192
- "#+ c #264FED",
193
- "$+ c #31396F",
194
- "%+ c #303D90",
195
- "&+ c #2B47C6",
196
- "*+ c #31386B",
197
- "=+ c #2E41A7",
198
- "-+ c #313A77",
199
- ";+ c #303C86",
200
- ">+ c #2551F7",
201
- ",+ c #2D43B1",
202
- "'+ c #2E41A6",
203
- ")+ c #2552FB",
204
- "!+ c #2552F9",
205
- "~+ c #2552F8",
206
- "{+ c #323765",
207
- "]+ c #2B48CB",
208
- "^+ c #2A49CF",
209
- "/+ c #274EE7",
210
- "(+ c #264FEE",
211
- "_+ c #2D42AE",
212
- ":+ c #2650F2",
213
- "<+ c #294BDA",
214
- "[+ c #2C46C1",
215
- "}+ c #313A78",
216
- "|+ c #2D42AA",
217
- "1+ c #294BDC",
218
- "2+ c #2B48CA",
219
- "3+ c #2453FD",
220
- " ",
221
- " ",
222
- " ",
223
- " ",
224
- " ",
225
- " . + + @ # $ + + + % & * * * = & - * * ; ",
226
- " > , ' ' ) ! ~ { ' ] ^ / ( _ : < [ } _ _ < | ",
227
- " 1 2 3 4 5 ' 6 7 3 8 9 0 a b c d e f _ g h i j k ",
228
- " l ' m n o ' ' ' p q ~ ' r s _ < t b _ _ _ < u v _ w ",
229
- " x y z A z y y y y B C y y D E F F G H F F F F } I c F J ",
230
- " K L L ^ M L L L L , N L O P Q R S T U S S S S V W S S X ",
231
- " Y ' Z ` ' ' ' ' .' ..+. @.#._ < _ _ _ _ $.%._ $. ",
232
- " &.*.=., ' ' ' ! 5 ' -. } _ ;.( _ _ _ >._ ,.'. ",
233
- " C ).!.=.' ' ~.{.Z ].^. /.(._._ _ :.<.[.}. ",
234
- " |.` Z ' ' ~ 1.2. 3.4.5.6. 7.8.>._ _ 9.s 0. ",
235
- " a.b.' c.d.e. f.g.h.i.j. k.F ,._ < l. ",
236
- " m. .n.o.p. q.r.s.t.u.v. w.x.( y.E ",
237
- " z.A.$ B.C.D.s.s.r.E.F. G.H._.I. ",
238
- " J.K. L.M.N.O.s.s.P.Q.R.S. K.T. ",
239
- " K. U.s.V.s.s.s.E.W.s.X. ",
240
- " g.s.M.Y.s.s.s.s.W.E.s.V. ",
241
- " Z.`. +.+++ + + + +@+N. +#+$+ ",
242
- " %+&+&+*+W.&+&+&+&+=+-+&+&+;+ ",
243
- " 6.E.>+,+'+)+s.s.!+=+r.E.~+{+ ",
244
- " ]+^+/+(+,+s.s._+:+Q.<+[+ ",
245
- " }+|+s.s.1+q.2+Q.s.3+=+{+ ",
246
- " 6._+_+_+$+$+_+_+_+*+ ",
247
- " ",
248
- " ",
249
- " ",
250
- " ",
251
- " "};