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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4a5c4273bc1b2893f44ab5a4598362834bd5f4c
4
- data.tar.gz: 90fd61bff4093150926ded8d97fbb7437e825f82
3
+ metadata.gz: a2cdb311afb2deed214fefa6091767d06a343ca5
4
+ data.tar.gz: e45f90d1443c9a4bede6af75cbb1e99407c761d0
5
5
  SHA512:
6
- metadata.gz: 1b2a63b83c6e032d067f41b74c041534a4d10bcd63ecff4f1edb97b6e3b189ae3780d7c69b5b9da07f5cfe818434cfe3c0a106552d0d385b01b6963a32f082d4
7
- data.tar.gz: 3aefff5edcc0d70c678683e5c3f1234e032526bca070f76f8f0d14756566ba7cee1fb62ea952eac792acb2756454741feab40d25e98303a8d64b8b4b77f7576b
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/VR_Main.rb"
17
- current_line: 188
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
@@ -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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visualruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Cunningham