visualruby 3.1.11 → 3.1.12

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: dff4419936129ec895048b530c4d650ecbb36046
4
- data.tar.gz: de2d3ef93f67cf8b69557a61ba57ba4cae98ff5e
3
+ metadata.gz: e967b476050bebb494a5f0a515d7adb9b72e4954
4
+ data.tar.gz: 8ff6c40b576ac24d3412b88b88d5961af5c88462
5
5
  SHA512:
6
- metadata.gz: 11e260a5b247e13210c38d82d337e584d4900d7766cc1a223e3607f5bb4e6fd2f7c3410a794c320bf6b29d872183dc39e74fd6d1bf215a544dd32613f72d5d16
7
- data.tar.gz: a85226146021efaad4d304220d2c0d2e8b381d2310c341e8d024532ef1774a838e3e0e7d715169c63ff389f043fd8366fcc0da23193a3bef5ea6fd6f63b518a3
6
+ metadata.gz: 3d20446fb57553c073f852c6da86cbed39172a9fdf5c52ae72de4181d2848cc5447dd67d83f54995e9731d96c73a3cfa6c7963931610e203fe2b881b014222b2
7
+ data.tar.gz: de1198fdd197a9fb32fbb4ea374b3ce2cc4c80c138bcfc414ed801fe235ca01ed4b8082f467b7961d7580edd9ce91ccfaee4aa34cabd6ef057d5bc79310403ef
data/.vr_settings.yaml CHANGED
@@ -6,27 +6,22 @@ panel_pos: 300
6
6
  notebook_panel_position: 472
7
7
  run_command_line: ruby vr
8
8
  open_files:
9
- - "/home/eric/vrp/vr3/vr"
10
- - "/home/eric/vrp/vr3/src/editor/VR_Document.rb"
11
- - "/home/eric/vrp/vr3/src/version.rb"
12
9
  - "/home/eric/vrp/vr3/lib/treeview/ListView.rb"
13
- - "/home/eric/vrp/vr3/lib/treeview/ViewCommon.rb"
14
- - "/home/eric/vrp/vr3/lib/treeview/TreeView.rb"
15
- - "/home/eric/vrp/vr3/lib/treeview/columns/ProgressCol.rb"
16
- - "/home/eric/vrp/vr3/lib/treeview/columns/CellRendererProgress.rb"
17
- - "/home/eric/vrp/vr3/lib/treeview/columns/TreeViewColumn.rb"
10
+ - "/home/eric/vrp/vr3/vr.gemspec"
11
+ - "/home/eric/vrp/vr3/src/version.rb"
12
+ - "/home/eric/vrp/vr3/src/main/VR_File_Tree.rb"
13
+ - "/home/eric/vrp/vr3/lib/Alert.rb"
14
+ - "/home/eric/vrp/vr3/vr"
15
+ - "/home/eric/vrp/vr3/src/main/VR_Main.rb"
16
+ - "/home/eric/vrp/vr3/lib/GladeGUI.rb"
18
17
  open_folders:
19
18
  - "/home/eric/vrp/vr3"
20
19
  - "/home/eric/vrp/vr3/lib"
21
- - "/home/eric/vrp/vr3/lib/glade"
22
- - "/home/eric/vrp/vr3/lib/treeview"
23
- - "/home/eric/vrp/vr3/lib/treeview/columns"
24
- - "/home/eric/vrp/vr3/lib/treeview/glade"
25
20
  - "/home/eric/vrp/vr3/site"
26
21
  - "/home/eric/vrp/vr3/src"
27
22
  - "/home/eric/vrp/vr3/src/main"
28
- current_file: "/home/eric/vrp/vr3/lib/treeview/columns/ProgressCol.rb"
29
- current_line: 10
23
+ current_file: "/home/eric/vrp/vr3/lib/Alert.rb"
24
+ current_line: 125
30
25
  rdoc_command_line: yardoc lib - site/*.*
31
26
  builder: !ruby/object:Gtk::Builder {}
32
27
  top_level_window: false
data/lib/Alert.rb CHANGED
@@ -26,19 +26,31 @@ module VR
26
26
  @builder[:window1].resize(@flags[:width],100) if @flags[:width].to_i > 100
27
27
  @builder[:headline].show if @flags[:headline]
28
28
 
29
- if text = @flags[:input_text]
29
+ if @flags[:input_text]
30
30
  @flags[:button_yes] ||= "Save"
31
31
  @flags[:button_no] ||= "Cancel"
32
- @builder[:input_text].show
32
+ @builder[:input_text].show
33
+ elsif choices = @flags[:choices]
34
+ @flags[:button_yes] ||= "Select"
35
+ @flags[:button_no] ||= "Cancel"
36
+ choices.each { |c| @builder[:choices_text].append_text(c) }
37
+ @choices_text = choices[0]
38
+ @builder[:choices_text].show
33
39
  end
34
40
 
35
41
  @builder[:button_no].show if @flags[:button_no]
36
42
  @builder[:button_cancel].show if @flags[:button_cancel]
37
- set_glade_hash(@flags)
43
+ set_glade_hash(@flags)
38
44
  end
39
45
 
40
46
  def button_yes__clicked(but)
41
- @answer.answer = @flags[:input_text] ? @builder[:input_text].text : true
47
+ if @flags[:input_text]
48
+ @answer.answer = @builder[:input_text].text
49
+ elsif @flags[:choices]
50
+ @answer.answer = @builder[:choices_text].active_text
51
+ else
52
+ @answer.answer = true
53
+ end
42
54
  @builder[:window1].destroy
43
55
  end
44
56
 
@@ -113,6 +113,16 @@
113
113
  <property name="position">3</property>
114
114
  </packing>
115
115
  </child>
116
+ <child>
117
+ <object class="GtkComboBoxText" id="choices_text">
118
+ <property name="can_focus">False</property>
119
+ </object>
120
+ <packing>
121
+ <property name="expand">False</property>
122
+ <property name="fill">True</property>
123
+ <property name="position">4</property>
124
+ </packing>
125
+ </child>
116
126
  </object>
117
127
  </child>
118
128
  </object>
@@ -21,7 +21,7 @@ module VR
21
21
  # from ActiveRecordBase. The common types that are included by default are:
22
22
  #
23
23
  # * String - Displays and edits as a String.
24
- # * Integer - Displays number, edits like a String.
24
+ # * Integer - Displays numadd_activeber, edits like a String.
25
25
  # * FixNum - ditto
26
26
  # * Integer - ditto
27
27
  # * Float - ditto
@@ -60,11 +60,11 @@ module VR
60
60
  ar.each do |obj|
61
61
  row = add_row()
62
62
  matches.each do |f|
63
- begin
64
- row[f] = obj[f] # unless obj[f].nil?
65
- rescue
66
- row[f] = obj[f].to_s
67
- end
63
+ # begin
64
+ row[f] = obj[f] unless obj[f].nil?
65
+ # rescue
66
+ # row[f] = obj[f].to_s
67
+ # end
68
68
  end
69
69
  end
70
70
  self.visible = true
data/src/main/VR_Main.rb CHANGED
@@ -10,7 +10,7 @@ class VR_Main
10
10
  @proj_path = @proj_path.chomp("/")
11
11
  end
12
12
 
13
- def before_show
13
+ def before_show
14
14
  # there must be a visualruby directory:
15
15
  required_project = File.join(ENV["HOME"],"","visualruby", "examples", "alert_box")
16
16
  menuInstallExamples__activate if not File.directory?(required_project)
data/src/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = "3.1.11"
1
+ VERSION = "3.1.12"
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.1.11
4
+ version: 3.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Cunningham
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir:
10
10
  - "."
11
11
  cert_chain: []
12
- date: 2017-09-06 00:00:00.000000000 Z
12
+ date: 2018-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk3