visualruby 3.3.0 → 3.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/.vr_settings.yaml +13 -9
  3. data/examples/active_record/.vr_settings.yaml +1 -1
  4. data/examples/alert_box/.vr_settings.yaml +4 -2
  5. data/examples/alert_box/bin/glade/AlertBoxDemo.glade +91 -94
  6. data/examples/alert_box/main.rb +2 -3
  7. data/examples/all_widgets/.vr_settings.yaml +1 -1
  8. data/examples/all_widgets/bin/AllWidgets.rb +1 -2
  9. data/examples/all_widgets/bin/glade/AllWidgets.glade +33 -33
  10. data/examples/all_widgets/main.rb +1 -4
  11. data/examples/calculator/.vr_settings.yaml +3 -2
  12. data/examples/calculator/bin/glade/Calculator.glade +79 -110
  13. data/examples/calculator/main.rb +1 -5
  14. data/examples/child_window/.vr_settings.yaml +5 -5
  15. data/examples/child_window/bin/glade/ChildWindowDemo.glade +16 -16
  16. data/examples/child_window/bin/glade/ModalWindow.glade +14 -14
  17. data/examples/child_window/main.rb +1 -5
  18. data/examples/drag_drop/.vr_settings.yaml +6 -4
  19. data/examples/drag_drop/main.rb +1 -4
  20. data/examples/filetreeview/.vr_settings.yaml +3 -2
  21. data/examples/filetreeview/main.rb +1 -3
  22. data/examples/golf_handicap/.vr_settings.yaml +2 -2
  23. data/examples/listview/.vr_settings.yaml +2 -2
  24. data/examples/listview/main.rb +1 -3
  25. data/examples/listview_objects/.vr_settings.yaml +6 -5
  26. data/examples/listview_objects/main.rb +1 -5
  27. data/examples/phantom/.vr_settings.yaml +2 -2
  28. data/examples/phantom/main.rb +0 -2
  29. data/examples/phantom/src/glade/MyClass.glade +19 -19
  30. data/examples/settings_file/.vr_settings.yaml +2 -2
  31. data/examples/settings_file/main.rb +2 -3
  32. data/examples/settings_file/settings.yaml +3 -5
  33. data/examples/simple_ruby_gui/.vr_settings.yaml +6 -7
  34. data/examples/simple_ruby_gui/main.rb +4 -6
  35. data/lib/ActLikeAHash.rb +4 -4
  36. data/lib/SavableHash.rb +25 -0
  37. data/lib/treeview/IterMethods.rb +3 -3
  38. data/lib/treeview/ViewCommon.rb +2 -2
  39. data/lib/treeview/columns/TreeViewColumn.rb +1 -1
  40. data/lib/vrlib.rb +1 -0
  41. data/skeleton/document/New.glade +2 -2
  42. data/src/main/VR_File_Tree.rb +12 -10
  43. data/src/main/VR_Main.rb +5 -2
  44. data/src/version.rb +1 -1
  45. data/vr +24 -20
  46. metadata +14 -13
@@ -1,8 +1,5 @@
1
- #!/usr/bin/ruby
2
1
 
3
-
4
- # ignore -- this is for development, same as require 'vrlib'
5
- require File.exists?("./../../lib/vrlib.rb") ? "./../../lib/vrlib.rb" : "vrlib"
2
+ require "vrlib"
6
3
 
7
4
  # from require_all gem:
8
5
  require_rel 'bin/'
@@ -11,8 +11,9 @@ open_files:
11
11
  open_folders:
12
12
  - "/home/eric/vrp/vr3/examples/calculator"
13
13
  - "/home/eric/vrp/vr3/examples/calculator/bin"
14
- current_file: "/home/eric/vrp/vr3/examples/calculator/bin/Calculator.rb"
15
- current_line: 65
14
+ - "/home/eric/vrp/vr3/examples/calculator/bin/glade"
15
+ current_file: "/home/eric/vrp/vr3/examples/calculator/main.rb"
16
+ current_line: 2
16
17
  rdoc_command_line: rdoc -x README
17
18
  settings_file_version: 1
18
19
  filename: ".vr_settings.yaml"
@@ -1,24 +1,24 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Generated with glade 3.16.1 -->
2
+ <!-- Generated with glade 3.38.2 -->
3
3
  <interface>
4
4
  <requires lib="gtk+" version="3.0"/>
5
5
  <object class="GtkWindow" id="window1">
6
- <property name="can_focus">False</property>
7
- <property name="window_position">center</property>
6
+ <property name="can-focus">False</property>
7
+ <property name="window-position">center</property>
8
8
  <child>
9
9
  <object class="GtkBox" id="box1">
10
10
  <property name="visible">True</property>
11
- <property name="can_focus">False</property>
12
- <property name="margin_left">8</property>
13
- <property name="margin_right">8</property>
14
- <property name="margin_top">8</property>
15
- <property name="margin_bottom">12</property>
11
+ <property name="can-focus">False</property>
12
+ <property name="margin-left">8</property>
13
+ <property name="margin-right">8</property>
14
+ <property name="margin-top">8</property>
15
+ <property name="margin-bottom">12</property>
16
16
  <property name="orientation">vertical</property>
17
17
  <property name="spacing">8</property>
18
18
  <child>
19
19
  <object class="GtkEntry" id="display">
20
20
  <property name="visible">True</property>
21
- <property name="can_focus">False</property>
21
+ <property name="can-focus">False</property>
22
22
  <property name="editable">False</property>
23
23
  <property name="xalign">1</property>
24
24
  </object>
@@ -29,235 +29,204 @@
29
29
  </packing>
30
30
  </child>
31
31
  <child>
32
+ <!-- n-columns=4 n-rows=4 -->
32
33
  <object class="GtkGrid" id="grid1">
33
34
  <property name="visible">True</property>
34
- <property name="can_focus">False</property>
35
- <property name="row_spacing">3</property>
36
- <property name="column_spacing">3</property>
37
- <property name="row_homogeneous">True</property>
38
- <property name="column_homogeneous">True</property>
35
+ <property name="can-focus">False</property>
36
+ <property name="row-spacing">3</property>
37
+ <property name="column-spacing">3</property>
38
+ <property name="row-homogeneous">True</property>
39
+ <property name="column-homogeneous">True</property>
39
40
  <child>
40
41
  <object class="GtkButton" id="button[0]">
41
42
  <property name="label" translatable="yes">button</property>
42
43
  <property name="visible">True</property>
43
- <property name="can_focus">True</property>
44
- <property name="receives_default">True</property>
44
+ <property name="can-focus">True</property>
45
+ <property name="receives-default">True</property>
45
46
  </object>
46
47
  <packing>
47
- <property name="left_attach">0</property>
48
- <property name="top_attach">0</property>
49
- <property name="width">1</property>
50
- <property name="height">1</property>
48
+ <property name="left-attach">0</property>
49
+ <property name="top-attach">0</property>
51
50
  </packing>
52
51
  </child>
53
52
  <child>
54
53
  <object class="GtkButton" id="button[1]">
55
54
  <property name="label" translatable="yes">button</property>
56
55
  <property name="visible">True</property>
57
- <property name="can_focus">True</property>
58
- <property name="receives_default">True</property>
56
+ <property name="can-focus">True</property>
57
+ <property name="receives-default">True</property>
59
58
  </object>
60
59
  <packing>
61
- <property name="left_attach">1</property>
62
- <property name="top_attach">0</property>
63
- <property name="width">1</property>
64
- <property name="height">1</property>
60
+ <property name="left-attach">1</property>
61
+ <property name="top-attach">0</property>
65
62
  </packing>
66
63
  </child>
67
64
  <child>
68
65
  <object class="GtkButton" id="button[2]">
69
66
  <property name="label" translatable="yes">button</property>
70
67
  <property name="visible">True</property>
71
- <property name="can_focus">True</property>
72
- <property name="receives_default">True</property>
68
+ <property name="can-focus">True</property>
69
+ <property name="receives-default">True</property>
73
70
  </object>
74
71
  <packing>
75
- <property name="left_attach">2</property>
76
- <property name="top_attach">0</property>
77
- <property name="width">1</property>
78
- <property name="height">1</property>
72
+ <property name="left-attach">2</property>
73
+ <property name="top-attach">0</property>
79
74
  </packing>
80
75
  </child>
81
76
  <child>
82
77
  <object class="GtkButton" id="button[3]">
83
78
  <property name="label" translatable="yes">button</property>
84
79
  <property name="visible">True</property>
85
- <property name="can_focus">True</property>
86
- <property name="receives_default">True</property>
80
+ <property name="can-focus">True</property>
81
+ <property name="receives-default">True</property>
87
82
  </object>
88
83
  <packing>
89
- <property name="left_attach">3</property>
90
- <property name="top_attach">0</property>
91
- <property name="width">1</property>
92
- <property name="height">1</property>
84
+ <property name="left-attach">3</property>
85
+ <property name="top-attach">0</property>
93
86
  </packing>
94
87
  </child>
95
88
  <child>
96
89
  <object class="GtkButton" id="button[4]">
97
90
  <property name="label" translatable="yes">button</property>
98
91
  <property name="visible">True</property>
99
- <property name="can_focus">True</property>
100
- <property name="receives_default">True</property>
92
+ <property name="can-focus">True</property>
93
+ <property name="receives-default">True</property>
101
94
  </object>
102
95
  <packing>
103
- <property name="left_attach">0</property>
104
- <property name="top_attach">1</property>
105
- <property name="width">1</property>
106
- <property name="height">1</property>
96
+ <property name="left-attach">0</property>
97
+ <property name="top-attach">1</property>
107
98
  </packing>
108
99
  </child>
109
100
  <child>
110
101
  <object class="GtkButton" id="button[5]">
111
102
  <property name="label" translatable="yes">button</property>
112
103
  <property name="visible">True</property>
113
- <property name="can_focus">True</property>
114
- <property name="receives_default">True</property>
104
+ <property name="can-focus">True</property>
105
+ <property name="receives-default">True</property>
115
106
  </object>
116
107
  <packing>
117
- <property name="left_attach">1</property>
118
- <property name="top_attach">1</property>
119
- <property name="width">1</property>
120
- <property name="height">1</property>
108
+ <property name="left-attach">1</property>
109
+ <property name="top-attach">1</property>
121
110
  </packing>
122
111
  </child>
123
112
  <child>
124
113
  <object class="GtkButton" id="button[6]">
125
114
  <property name="label" translatable="yes">button</property>
126
115
  <property name="visible">True</property>
127
- <property name="can_focus">True</property>
128
- <property name="receives_default">True</property>
116
+ <property name="can-focus">True</property>
117
+ <property name="receives-default">True</property>
129
118
  </object>
130
119
  <packing>
131
- <property name="left_attach">2</property>
132
- <property name="top_attach">1</property>
133
- <property name="width">1</property>
134
- <property name="height">1</property>
120
+ <property name="left-attach">2</property>
121
+ <property name="top-attach">1</property>
135
122
  </packing>
136
123
  </child>
137
124
  <child>
138
125
  <object class="GtkButton" id="button[7]">
139
126
  <property name="label" translatable="yes">button</property>
140
127
  <property name="visible">True</property>
141
- <property name="can_focus">True</property>
142
- <property name="receives_default">True</property>
128
+ <property name="can-focus">True</property>
129
+ <property name="receives-default">True</property>
143
130
  </object>
144
131
  <packing>
145
- <property name="left_attach">3</property>
146
- <property name="top_attach">1</property>
147
- <property name="width">1</property>
148
- <property name="height">1</property>
132
+ <property name="left-attach">3</property>
133
+ <property name="top-attach">1</property>
149
134
  </packing>
150
135
  </child>
151
136
  <child>
152
137
  <object class="GtkButton" id="button[8]">
153
138
  <property name="label" translatable="yes">button</property>
154
139
  <property name="visible">True</property>
155
- <property name="can_focus">True</property>
156
- <property name="receives_default">True</property>
140
+ <property name="can-focus">True</property>
141
+ <property name="receives-default">True</property>
157
142
  </object>
158
143
  <packing>
159
- <property name="left_attach">0</property>
160
- <property name="top_attach">2</property>
161
- <property name="width">1</property>
162
- <property name="height">1</property>
144
+ <property name="left-attach">0</property>
145
+ <property name="top-attach">2</property>
163
146
  </packing>
164
147
  </child>
165
148
  <child>
166
149
  <object class="GtkButton" id="button[9]">
167
150
  <property name="label" translatable="yes">button</property>
168
151
  <property name="visible">True</property>
169
- <property name="can_focus">True</property>
170
- <property name="receives_default">True</property>
152
+ <property name="can-focus">True</property>
153
+ <property name="receives-default">True</property>
171
154
  </object>
172
155
  <packing>
173
- <property name="left_attach">1</property>
174
- <property name="top_attach">2</property>
175
- <property name="width">1</property>
176
- <property name="height">1</property>
156
+ <property name="left-attach">1</property>
157
+ <property name="top-attach">2</property>
177
158
  </packing>
178
159
  </child>
179
160
  <child>
180
161
  <object class="GtkButton" id="button[10]">
181
162
  <property name="label" translatable="yes">button</property>
182
163
  <property name="visible">True</property>
183
- <property name="can_focus">True</property>
184
- <property name="receives_default">True</property>
164
+ <property name="can-focus">True</property>
165
+ <property name="receives-default">True</property>
185
166
  </object>
186
167
  <packing>
187
- <property name="left_attach">2</property>
188
- <property name="top_attach">2</property>
189
- <property name="width">1</property>
190
- <property name="height">1</property>
168
+ <property name="left-attach">2</property>
169
+ <property name="top-attach">2</property>
191
170
  </packing>
192
171
  </child>
193
172
  <child>
194
173
  <object class="GtkButton" id="button[11]">
195
174
  <property name="label" translatable="yes">button</property>
196
175
  <property name="visible">True</property>
197
- <property name="can_focus">True</property>
198
- <property name="receives_default">True</property>
176
+ <property name="can-focus">True</property>
177
+ <property name="receives-default">True</property>
199
178
  </object>
200
179
  <packing>
201
- <property name="left_attach">3</property>
202
- <property name="top_attach">2</property>
203
- <property name="width">1</property>
204
- <property name="height">1</property>
180
+ <property name="left-attach">3</property>
181
+ <property name="top-attach">2</property>
205
182
  </packing>
206
183
  </child>
207
184
  <child>
208
185
  <object class="GtkButton" id="button[12]">
209
186
  <property name="label" translatable="yes">button</property>
210
187
  <property name="visible">True</property>
211
- <property name="can_focus">True</property>
212
- <property name="receives_default">True</property>
188
+ <property name="can-focus">True</property>
189
+ <property name="receives-default">True</property>
213
190
  </object>
214
191
  <packing>
215
- <property name="left_attach">0</property>
216
- <property name="top_attach">3</property>
217
- <property name="width">1</property>
218
- <property name="height">1</property>
192
+ <property name="left-attach">0</property>
193
+ <property name="top-attach">3</property>
219
194
  </packing>
220
195
  </child>
221
196
  <child>
222
197
  <object class="GtkButton" id="button[13]">
223
198
  <property name="label" translatable="yes">button</property>
224
199
  <property name="visible">True</property>
225
- <property name="can_focus">True</property>
226
- <property name="receives_default">True</property>
200
+ <property name="can-focus">True</property>
201
+ <property name="receives-default">True</property>
227
202
  </object>
228
203
  <packing>
229
- <property name="left_attach">1</property>
230
- <property name="top_attach">3</property>
231
- <property name="width">1</property>
232
- <property name="height">1</property>
204
+ <property name="left-attach">1</property>
205
+ <property name="top-attach">3</property>
233
206
  </packing>
234
207
  </child>
235
208
  <child>
236
209
  <object class="GtkButton" id="button[14]">
237
210
  <property name="label" translatable="yes">button</property>
238
211
  <property name="visible">True</property>
239
- <property name="can_focus">True</property>
240
- <property name="receives_default">True</property>
212
+ <property name="can-focus">True</property>
213
+ <property name="receives-default">True</property>
241
214
  </object>
242
215
  <packing>
243
- <property name="left_attach">2</property>
244
- <property name="top_attach">3</property>
245
- <property name="width">1</property>
246
- <property name="height">1</property>
216
+ <property name="left-attach">2</property>
217
+ <property name="top-attach">3</property>
247
218
  </packing>
248
219
  </child>
249
220
  <child>
250
221
  <object class="GtkButton" id="button[15]">
251
222
  <property name="label" translatable="yes">button</property>
252
223
  <property name="visible">True</property>
253
- <property name="can_focus">True</property>
254
- <property name="receives_default">True</property>
224
+ <property name="can-focus">True</property>
225
+ <property name="receives-default">True</property>
255
226
  </object>
256
227
  <packing>
257
- <property name="left_attach">3</property>
258
- <property name="top_attach">3</property>
259
- <property name="width">1</property>
260
- <property name="height">1</property>
228
+ <property name="left-attach">3</property>
229
+ <property name="top-attach">3</property>
261
230
  </packing>
262
231
  </child>
263
232
  </object>
@@ -1,9 +1,5 @@
1
- #!/usr/bin/ruby
2
1
 
3
- # Updated for Gtk3!
4
-
5
- # ignore -- this is for development, same as require 'vrlib'
6
- require File.exists?("./../../lib/vrlib.rb") ? "./../../lib/vrlib.rb" : "vrlib"
2
+ require "vrlib"
7
3
 
8
4
  # from require_all gem:
9
5
  require_rel 'bin/'
@@ -1,7 +1,9 @@
1
1
  --- !ruby/object:VR_ENV
2
- width: 1084
2
+ vr_yaml_file: "/home/eric/vrp/vr3/examples/child_window/.vr_settings.yaml"
3
+ width: 1097
3
4
  height: 691
4
5
  panel_pos: 437
6
+ notebook_panel_position: 400
5
7
  run_command_line: ruby main.rb
6
8
  open_files:
7
9
  - "/home/eric/vrp/vr3/examples/child_window/main.rb"
@@ -13,9 +15,7 @@ open_folders:
13
15
  - "/home/eric/vrp/vr3/examples/child_window"
14
16
  - "/home/eric/vrp/vr3/examples/child_window/bin"
15
17
  - "/home/eric/vrp/vr3/examples/child_window/bin/glade"
16
- current_file: "/home/eric/vrp/vr3/examples/child_window/bin/ChildWindowDemo.rb"
18
+ current_file: "/home/eric/vrp/vr3/examples/child_window/main.rb"
19
+ current_line: 2
17
20
  rdoc_command_line: rdoc -x README
18
- vr_yaml_file: ".vr_settings.yaml"
19
- notebook_panel_position: 400
20
- current_line: 1
21
21
  settings_file_version: 1
@@ -1,22 +1,22 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Generated with glade 3.18.3 -->
2
+ <!-- Generated with glade 3.38.2 -->
3
3
  <interface>
4
4
  <requires lib="gtk+" version="3.0"/>
5
5
  <object class="GtkWindow" id="window1">
6
- <property name="can_focus">False</property>
7
- <property name="window_position">center</property>
8
- <property name="default_width">400</property>
6
+ <property name="can-focus">False</property>
7
+ <property name="window-position">center</property>
8
+ <property name="default-width">400</property>
9
9
  <child>
10
10
  <object class="GtkBox" id="box1">
11
11
  <property name="visible">True</property>
12
- <property name="can_focus">False</property>
13
- <property name="margin_left">20</property>
14
- <property name="margin_right">20</property>
12
+ <property name="can-focus">False</property>
13
+ <property name="margin-left">20</property>
14
+ <property name="margin-right">20</property>
15
15
  <property name="orientation">vertical</property>
16
16
  <child>
17
17
  <object class="GtkLabel" id="label1">
18
18
  <property name="visible">True</property>
19
- <property name="can_focus">False</property>
19
+ <property name="can-focus">False</property>
20
20
  <property name="xpad">10</property>
21
21
  <property name="ypad">10</property>
22
22
  <property name="label" translatable="yes">Open as many modeless windows as you want. You can switch between windows because they're not modal. When you open a Modal window it will block everything until its closed.</property>
@@ -32,14 +32,14 @@
32
32
  <child>
33
33
  <object class="GtkButtonBox" id="buttonbox1">
34
34
  <property name="visible">True</property>
35
- <property name="can_focus">False</property>
36
- <property name="layout_style">spread</property>
35
+ <property name="can-focus">False</property>
36
+ <property name="layout-style">spread</property>
37
37
  <child>
38
38
  <object class="GtkButton" id="buttonOpenModeless">
39
39
  <property name="label" translatable="yes">Open Modeless Window</property>
40
40
  <property name="visible">True</property>
41
- <property name="can_focus">True</property>
42
- <property name="receives_default">True</property>
41
+ <property name="can-focus">True</property>
42
+ <property name="receives-default">True</property>
43
43
  </object>
44
44
  <packing>
45
45
  <property name="expand">False</property>
@@ -51,8 +51,8 @@
51
51
  <object class="GtkButton" id="buttonOpenModal">
52
52
  <property name="label" translatable="yes">Open Modal Window</property>
53
53
  <property name="visible">True</property>
54
- <property name="can_focus">True</property>
55
- <property name="receives_default">True</property>
54
+ <property name="can-focus">True</property>
55
+ <property name="receives-default">True</property>
56
56
  </object>
57
57
  <packing>
58
58
  <property name="expand">False</property>
@@ -64,8 +64,8 @@
64
64
  <object class="GtkButton" id="buttonCancel">
65
65
  <property name="label" translatable="yes">Cancel</property>
66
66
  <property name="visible">True</property>
67
- <property name="can_focus">True</property>
68
- <property name="receives_default">True</property>
67
+ <property name="can-focus">True</property>
68
+ <property name="receives-default">True</property>
69
69
  </object>
70
70
  <packing>
71
71
  <property name="expand">False</property>