visualruby 3.0.5 → 3.0.6
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 +5 -2
- data/bin/main/VR_ENV_GLOBAL.rb +18 -2
- data/bin/main/glade/VR_ENV_GLOBAL.glade +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2cdb311afb2deed214fefa6091767d06a343ca5
|
4
|
+
data.tar.gz: e45f90d1443c9a4bede6af75cbb1e99407c761d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba0cba31aaea263fe759df39f8c75a408eb8807c0c29034a75c99ecc4f1d34a77ffa3c4263f3b798a39edfea75df840ee06fc9cdb55eaeaeb508304ad60ca46
|
7
|
+
data.tar.gz: 6898472355297110de8b9f0b2fee6d94945e50471c0609dc45489dcf84f761146ce1bdb78c3e0269a9654b3b4ee8f03b1b9221d32c88c07b907544aba5560f88
|
data/.vr_settings.yaml
CHANGED
@@ -7,14 +7,17 @@ notebook_panel_position: 474
|
|
7
7
|
run_command_line: ruby vr
|
8
8
|
open_files:
|
9
9
|
- "/home/eric/vrp/vr3/bin/main/VR_Main.rb"
|
10
|
+
- "/home/eric/vrp/vr3/examples/active_record/active_record.rb"
|
11
|
+
- "/home/eric/vrp/vr3/vr.gemspec"
|
12
|
+
- "/home/eric/vrp/vr3/bin/main/VR_ENV_GLOBAL.rb"
|
10
13
|
open_folders:
|
11
14
|
- "/home/eric/vrp/vr3"
|
12
15
|
- "/home/eric/vrp/vr3/bin"
|
13
16
|
- "/home/eric/vrp/vr3/bin/main"
|
14
17
|
- "/home/eric/vrp/vr3/vrlib"
|
15
18
|
- "/home/eric/vrp/vr3/vrlib/lib"
|
16
|
-
current_file: "/home/eric/vrp/vr3/bin/main/
|
17
|
-
current_line:
|
19
|
+
current_file: "/home/eric/vrp/vr3/bin/main/VR_ENV_GLOBAL.rb"
|
20
|
+
current_line: 82
|
18
21
|
rdoc_command_line: rdoc -x README -x /*.glade -x /*.yaml -x /*.gemspec -x /*.css
|
19
22
|
builder: !ruby/object:Gtk::Builder {}
|
20
23
|
top_level_window: false
|
data/bin/main/VR_ENV_GLOBAL.rb
CHANGED
@@ -46,16 +46,32 @@ class VR_ENV_GLOBAL
|
|
46
46
|
return true
|
47
47
|
end
|
48
48
|
|
49
|
+
def buttonFindGlade__clicked(*a)
|
50
|
+
alert "This will search for <b>glade.exe</b> in your home folder. It is only useful for MS Windows systems.", :parent => self
|
51
|
+
ar = Dir.glob(File.join(Dir.home, "**", "glade.exe"))
|
52
|
+
if ar.empty?
|
53
|
+
alert "glade.exe not found", parent: self
|
54
|
+
else
|
55
|
+
str = ""
|
56
|
+
ar.each { |file| str = str + file + "\n" }
|
57
|
+
if alert("Found files:\n\n" + str + "\n\nEither enter full filename or add to your PATH to make it work.",
|
58
|
+
:parent => self,
|
59
|
+
:button_yes => "Use First")
|
60
|
+
@builder[:glade_path].text = ar[0]
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
49
65
|
def buttonCancel__clicked(*args)
|
50
66
|
@builder["window1"].destroy
|
51
67
|
end
|
52
68
|
|
53
69
|
def buttonTryGlade__clicked(*argv)
|
54
|
-
VR_Tools.popen(@glade_path)
|
70
|
+
VR_Tools.popen(@builder[:glade_path].text)
|
55
71
|
end
|
56
72
|
|
57
73
|
def buttonTryBrowser__clicked(*argv)
|
58
|
-
VR_Tools.popen(@browser)
|
74
|
+
VR_Tools.popen(@builder[:browser].text)
|
59
75
|
end
|
60
76
|
|
61
77
|
def buttonCurrent__clicked(*argv)
|
@@ -98,6 +98,19 @@
|
|
98
98
|
<property name="position">1</property>
|
99
99
|
</packing>
|
100
100
|
</child>
|
101
|
+
<child>
|
102
|
+
<object class="GtkButton" id="buttonFindGlade">
|
103
|
+
<property name="label" translatable="yes">Find</property>
|
104
|
+
<property name="visible">True</property>
|
105
|
+
<property name="can_focus">True</property>
|
106
|
+
<property name="receives_default">True</property>
|
107
|
+
</object>
|
108
|
+
<packing>
|
109
|
+
<property name="expand">False</property>
|
110
|
+
<property name="fill">True</property>
|
111
|
+
<property name="position">2</property>
|
112
|
+
</packing>
|
113
|
+
</child>
|
101
114
|
</object>
|
102
115
|
<packing>
|
103
116
|
<property name="left_attach">1</property>
|