visualruby 3.4.6 → 3.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vr_settings.yaml +9 -19
- data/examples/active_record/.vr_settings.yaml +1 -1
- data/examples/alert_box/.vr_settings.yaml +4 -2
- data/examples/alert_box/bin/glade/AlertBoxDemo.glade +91 -94
- data/examples/alert_box/main.rb +2 -3
- data/examples/all_widgets/.vr_settings.yaml +1 -1
- data/examples/all_widgets/bin/AllWidgets.rb +1 -2
- data/examples/all_widgets/bin/glade/AllWidgets.glade +33 -33
- data/examples/all_widgets/main.rb +1 -4
- data/examples/calculator/.vr_settings.yaml +3 -2
- data/examples/calculator/bin/glade/Calculator.glade +79 -110
- data/examples/calculator/main.rb +1 -5
- data/examples/child_window/.vr_settings.yaml +5 -5
- data/examples/child_window/bin/glade/ChildWindowDemo.glade +16 -16
- data/examples/child_window/bin/glade/ModalWindow.glade +14 -14
- data/examples/child_window/main.rb +1 -5
- data/examples/drag_drop/.vr_settings.yaml +6 -4
- data/examples/drag_drop/main.rb +1 -4
- data/examples/filetreeview/.vr_settings.yaml +3 -2
- data/examples/filetreeview/main.rb +1 -3
- data/examples/golf_handicap/.vr_settings.yaml +2 -2
- data/examples/listview/.vr_settings.yaml +2 -2
- data/examples/listview/main.rb +1 -3
- data/examples/listview_objects/.vr_settings.yaml +6 -5
- data/examples/listview_objects/main.rb +1 -5
- data/examples/phantom/.vr_settings.yaml +2 -2
- data/examples/phantom/main.rb +0 -2
- data/examples/phantom/src/glade/MyClass.glade +19 -19
- data/examples/settings_file/.vr_settings.yaml +2 -2
- data/examples/settings_file/main.rb +2 -3
- data/examples/settings_file/settings.yaml +3 -5
- data/examples/simple_ruby_gui/.vr_settings.yaml +2 -2
- data/examples/simple_ruby_gui/main.rb +2 -3
- data/lib/SavableHash.rb +25 -0
- data/src/version.rb +1 -1
- data/vr +0 -2
- metadata +4 -3
@@ -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
|
-
|
15
|
-
|
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.
|
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="
|
7
|
-
<property name="
|
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="
|
12
|
-
<property name="
|
13
|
-
<property name="
|
14
|
-
<property name="
|
15
|
-
<property name="
|
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="
|
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="
|
35
|
-
<property name="
|
36
|
-
<property name="
|
37
|
-
<property name="
|
38
|
-
<property name="
|
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="
|
44
|
-
<property name="
|
44
|
+
<property name="can-focus">True</property>
|
45
|
+
<property name="receives-default">True</property>
|
45
46
|
</object>
|
46
47
|
<packing>
|
47
|
-
<property name="
|
48
|
-
<property name="
|
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="
|
58
|
-
<property name="
|
56
|
+
<property name="can-focus">True</property>
|
57
|
+
<property name="receives-default">True</property>
|
59
58
|
</object>
|
60
59
|
<packing>
|
61
|
-
<property name="
|
62
|
-
<property name="
|
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="
|
72
|
-
<property name="
|
68
|
+
<property name="can-focus">True</property>
|
69
|
+
<property name="receives-default">True</property>
|
73
70
|
</object>
|
74
71
|
<packing>
|
75
|
-
<property name="
|
76
|
-
<property name="
|
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="
|
86
|
-
<property name="
|
80
|
+
<property name="can-focus">True</property>
|
81
|
+
<property name="receives-default">True</property>
|
87
82
|
</object>
|
88
83
|
<packing>
|
89
|
-
<property name="
|
90
|
-
<property name="
|
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="
|
100
|
-
<property name="
|
92
|
+
<property name="can-focus">True</property>
|
93
|
+
<property name="receives-default">True</property>
|
101
94
|
</object>
|
102
95
|
<packing>
|
103
|
-
<property name="
|
104
|
-
<property name="
|
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="
|
114
|
-
<property name="
|
104
|
+
<property name="can-focus">True</property>
|
105
|
+
<property name="receives-default">True</property>
|
115
106
|
</object>
|
116
107
|
<packing>
|
117
|
-
<property name="
|
118
|
-
<property name="
|
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="
|
128
|
-
<property name="
|
116
|
+
<property name="can-focus">True</property>
|
117
|
+
<property name="receives-default">True</property>
|
129
118
|
</object>
|
130
119
|
<packing>
|
131
|
-
<property name="
|
132
|
-
<property name="
|
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="
|
142
|
-
<property name="
|
128
|
+
<property name="can-focus">True</property>
|
129
|
+
<property name="receives-default">True</property>
|
143
130
|
</object>
|
144
131
|
<packing>
|
145
|
-
<property name="
|
146
|
-
<property name="
|
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="
|
156
|
-
<property name="
|
140
|
+
<property name="can-focus">True</property>
|
141
|
+
<property name="receives-default">True</property>
|
157
142
|
</object>
|
158
143
|
<packing>
|
159
|
-
<property name="
|
160
|
-
<property name="
|
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="
|
170
|
-
<property name="
|
152
|
+
<property name="can-focus">True</property>
|
153
|
+
<property name="receives-default">True</property>
|
171
154
|
</object>
|
172
155
|
<packing>
|
173
|
-
<property name="
|
174
|
-
<property name="
|
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="
|
184
|
-
<property name="
|
164
|
+
<property name="can-focus">True</property>
|
165
|
+
<property name="receives-default">True</property>
|
185
166
|
</object>
|
186
167
|
<packing>
|
187
|
-
<property name="
|
188
|
-
<property name="
|
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="
|
198
|
-
<property name="
|
176
|
+
<property name="can-focus">True</property>
|
177
|
+
<property name="receives-default">True</property>
|
199
178
|
</object>
|
200
179
|
<packing>
|
201
|
-
<property name="
|
202
|
-
<property name="
|
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="
|
212
|
-
<property name="
|
188
|
+
<property name="can-focus">True</property>
|
189
|
+
<property name="receives-default">True</property>
|
213
190
|
</object>
|
214
191
|
<packing>
|
215
|
-
<property name="
|
216
|
-
<property name="
|
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="
|
226
|
-
<property name="
|
200
|
+
<property name="can-focus">True</property>
|
201
|
+
<property name="receives-default">True</property>
|
227
202
|
</object>
|
228
203
|
<packing>
|
229
|
-
<property name="
|
230
|
-
<property name="
|
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="
|
240
|
-
<property name="
|
212
|
+
<property name="can-focus">True</property>
|
213
|
+
<property name="receives-default">True</property>
|
241
214
|
</object>
|
242
215
|
<packing>
|
243
|
-
<property name="
|
244
|
-
<property name="
|
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="
|
254
|
-
<property name="
|
224
|
+
<property name="can-focus">True</property>
|
225
|
+
<property name="receives-default">True</property>
|
255
226
|
</object>
|
256
227
|
<packing>
|
257
|
-
<property name="
|
258
|
-
<property name="
|
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>
|
data/examples/calculator/main.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
--- !ruby/object:VR_ENV
|
2
|
-
|
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/
|
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.
|
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="
|
7
|
-
<property name="
|
8
|
-
<property name="
|
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="
|
13
|
-
<property name="
|
14
|
-
<property name="
|
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="
|
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="
|
36
|
-
<property name="
|
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="
|
42
|
-
<property name="
|
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="
|
55
|
-
<property name="
|
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="
|
68
|
-
<property name="
|
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>
|