visualruby 1.0.14 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/bin/main/VR_Main.rb CHANGED
@@ -84,14 +84,9 @@ class VR_Main
84
84
  return path
85
85
  end
86
86
 
87
-
88
-
89
87
  def toolBack_clicked
90
88
  @tabs.back()
91
- end
92
-
93
-
94
-
89
+ end
95
90
 
96
91
  def toolOpenFolder_clicked
97
92
  save_state
@@ -114,8 +109,7 @@ class VR_Main
114
109
  end
115
110
  end
116
111
 
117
- def window1_key_press(win, key)
118
- puts key.keyval.to_s
112
+ def window1_key_press(win, key)
119
113
  case x = key.keyval
120
114
  when 65474 then toolRun_clicked # F5
121
115
  # when 115 then toolSave_clicked # Ctrl-S
@@ -1,21 +1,11 @@
1
1
  --- !ruby/object:VR_ENV
2
- backup_path: /home/eric
3
- browser: firefox
4
- current_file: /home/eric/vrp/vrx/visualruby_examples/calculator/main.rb
5
- font_name: Monospace 10
6
- glade_path: glade-3
2
+ current_file: /home/eric/vrp/vr2/Untitled
7
3
  height: 600
8
4
  open_files:
9
- - /home/eric/vrp/vrx/visualruby_examples/calculator/main.rb
10
- - /home/eric/vrp/vrx/visualruby_examples/calculator/bin/Calculator.rb
11
- open_folders:
12
- - /home/eric/vrp/vrx/visualruby_examples/calculator
13
- - /home/eric/vrp/vrx/visualruby_examples/calculator/bin
5
+ - /home/eric/vrp/vr2/Untitled
6
+ open_folders: []
14
7
  panel_pos: 360
15
8
  rdoc_command_line: rdoc -x README
16
9
  run_command_line: ruby main.rb
17
- tab_spaces: 2
18
10
  width: 800
19
- builder: !ruby/object:Gtk::Builder {}
20
- glade_box: !ruby/object:VR::SimpleComboBoxEntry {}
21
- browser_box: !ruby/object:VR::SimpleComboBoxEntry {}
11
+ settings_file_version: 1
@@ -51,11 +51,11 @@ class Calculator
51
51
  when "C" then @builder["display"].text = ""
52
52
  when "=" then
53
53
  begin # this doesn't catch all errors
54
- @builder["display.text"] = eval(@builder["display"].text).to_s
54
+ @builder["display"].text = eval(@builder["display"].text).to_s
55
55
  rescue
56
- @builder["display.text"] = "error"
56
+ @builder["display"].text = "error"
57
57
  end
58
- else @builder["display.text"] = @builder["display"].text + button.label
58
+ else @builder["display"].text = @builder["display"].text + button.label
59
59
  end
60
60
  end
61
61
 
@@ -1,46 +1,16 @@
1
1
  --- !ruby/object:VR_ENV
2
- backup_path: /home/eric
3
- browser: firefox
4
- current_file: /home/eric/vrp/vrx/visualruby_examples/child_window/main.rb
5
- font_name: Monospace 10
6
- glade_path: glade-gtk2
7
- height: 637
2
+ current_file: /home/eric/vrp/vr2/visualruby_examples/child_window/bin/MyChildClass.rb
3
+ height: 780
8
4
  open_files:
9
- - /home/eric/vrp/vrx/visualruby_examples/child_window/bin/ChildWindowDemo.rb
10
- - /home/eric/vrp/vrx/visualruby_examples/child_window/bin/MyChildClass.rb
11
- - /home/eric/vrp/vrx/visualruby_examples/child_window/main.rb
5
+ - /home/eric/vrp/vr2/visualruby_examples/child_window/bin/MyChildClass.rb
6
+ - /home/eric/vrp/vr2/visualruby_examples/child_window/bin/ChildWindowDemo.rb
7
+ - /home/eric/vrp/vr2/visualruby_examples/child_window/main.rb
12
8
  open_folders:
13
- - /home/eric/vrp/vrx/visualruby_examples/child_window
14
- - /home/eric/vrp/vrx/visualruby_examples/child_window/bin
15
- - /home/eric/vrp/vrx/visualruby_examples/child_window/bin/glade
9
+ - /home/eric/vrp/vr2/visualruby_examples/child_window
10
+ - /home/eric/vrp/vr2/visualruby_examples/child_window/bin
11
+ - /home/eric/vrp/vr2/visualruby_examples/child_window/bin/glade
16
12
  panel_pos: 360
17
13
  rdoc_command_line: rdoc -x README
18
14
  run_command_line: ruby main.rb
19
- tab_spaces: 2
20
- width: 1031
21
- builder: !ruby/object:Gtk::Builder {}
22
- glade_box: !ruby/object:VR::SimpleComboBoxEntry {}
23
- browser_box: !ruby/object:VR::SimpleComboBoxEntry {}
24
- buttonChooseFolder: ! '...'
25
- vbox1: !ruby/object:Gtk::VBox {}
26
- label7: ! 'Editor Font:'
27
- label3: ! 'Back-up Path:'
28
- window1: !ruby/object:Gtk::Window {}
29
- hbuttonbox1: !ruby/object:Gtk::HButtonBox {}
30
- buttonCancel: Cancel
31
- label8: ! 'RDoc Command Line: '
32
- table1: !ruby/object:Gtk::Table {}
33
- buttonTryBrowser: Try
34
- buttonSave: Save
35
- hboxBrowser: !ruby/object:Gtk::HBox {}
36
- hboxGlade: !ruby/object:Gtk::HBox {}
37
- label1: <big><big><b>Visual Ruby Settings</b></big></big>
38
- label2: ! 'Browser Command Line:'
39
- label4: ! 'Spaces for Each Tab in Editor:'
40
- label5: ! 'Glade Command Line:'
41
- label6: ! 'Command Line when "Run" is pressed:'
42
- hbox1: !ruby/object:Gtk::HBox {}
43
- hbox2: !ruby/object:Gtk::HBox {}
44
- hbox3: !ruby/object:Gtk::HBox {}
45
- hbox4: !ruby/object:Gtk::HBox {}
46
- buttonTryGlade: Try
15
+ width: 1239
16
+ settings_file_version: 1
@@ -22,9 +22,7 @@ class ChildWindowDemo #(change name)
22
22
  include GladeGUI
23
23
 
24
24
  def buttonOpenChild__clicked(*argv)
25
- win = MyChildClass.new
26
- win.set_parent(self)
27
- win.show #self = parent
25
+ MyChildClass.new.show(self) #self = parent
28
26
  end
29
27
 
30
28
  def modalButton__clicked(*argv)
@@ -21,18 +21,16 @@ class MyChildClass
21
21
 
22
22
  include GladeGUI
23
23
 
24
- def initialize(parent = nil)
25
- super()
26
- set_parent(parent) if parent
27
- if parent.nil?
28
- @hello.label = "MODAL WINDOW\nThis window freezes the parent program until it is closed.\nTherefore you can't open any more windows, or close the\n parent window until you close this window."
29
- @window1.title = "Modal Window"
24
+ def before_show()
25
+ if get_parent()
26
+ @builder["label1"].label = "NON-MODAL WINDOW\n This window doesn't interfere with the operation of the rest of the program.\nTherefore you can open more of these windows if you like.\nIf you close the parent, I will close too."
27
+ @builder["window1"].title = "Non-Modal Window"
30
28
  else
31
- @hello.label = "NON-MODAL WINDOW\n This window doesn't interfere with the operation of the rest of the program.\nTherefore you can open more of these windows if you like.\nIf you close the parent, I will close too."
32
- @window1.title = "Non-Modal Window"
29
+ @builder["label1"].label = "MODAL WINDOW\nThis window freezes the parent program until it is closed.\nTherefore you can't open any more windows, or close the\n parent window until you close this window."
30
+ @builder["window1"].title = "Modal Window"
33
31
  end
34
32
  end
35
-
33
+
36
34
  # When cancel clicked in MyChildClass.glade
37
35
  def buttonCancel__clicked(*argv)
38
36
  destroy_window()
@@ -13,7 +13,7 @@
13
13
  <property name="visible">True</property>
14
14
  <property name="can_focus">False</property>
15
15
  <child>
16
- <object class="GtkLabel" id="MyChildClass.hello">
16
+ <object class="GtkLabel" id="label1">
17
17
  <property name="visible">True</property>
18
18
  <property name="can_focus">False</property>
19
19
  <property name="xpad">80</property>
data/vr CHANGED
@@ -1,10 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
3
 
4
- require "rubygems"
5
- require "gtk2"
6
4
  require "gtksourceview2"
7
- require "require_all"
8
5
  require "yaml" #needed
9
6
  require "net/http" #needed
10
7
  require "net/https" #needed
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: 1.0.14
4
+ version: 1.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir:
11
11
  - .
12
12
  cert_chain: []
13
- date: 2013-12-15 00:00:00.000000000 Z
13
+ date: 2014-01-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdoc
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ! '>='
37
37
  - !ruby/object:Gem::Version
38
- version: 1.0.13
38
+ version: 1.0.16
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
- version: 1.0.13
46
+ version: 1.0.16
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: gtksourceview2
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.0.2
54
+ version: 2.1.0
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  requirements:
60
60
  - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
- version: 2.0.2
62
+ version: 2.1.0
63
63
  description: ! "Visualruby is a complete IDE for making graphical user interfaces
64
64
  with ruby. It utilizes glade interface designer to create windows, and uses a library
65
65
  of GUI helpers to make coding GTK+ programs easy. The IDE really helps you organize