visualruby 3.1.3 → 3.1.5

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: 0f7ca46549c8177ed5fc5bf31d16464c641640e0
4
- data.tar.gz: 9e48ab276eaa2d549922b414500c1d5fdf7dd64f
3
+ metadata.gz: 520f000f377c801065aa67776a25765b6ea9eaa5
4
+ data.tar.gz: 4ba7d9eaec26c2c3b27b86004b0252cee000c6da
5
5
  SHA512:
6
- metadata.gz: a2d6df5d612afa371657e6f41622ee7c43dd65b4d11347137b210940c43e47dff3f684b8acfdbae2d37a1e80a7078fd22f4c812ddab7bff2b9f3ef9a2077437a
7
- data.tar.gz: 661a1051aaba373459086a03be45f59b9f61b070180ca4667f803c1b707b922d1e063ceb1ce819e71a1e79281c9c31523510514f4c51918176c0111928321c93
6
+ metadata.gz: da56611293a7a32961d6a7727446217be98ee02d2271470d2179cee9fb8a62e3c0316ac63dccacafbcd2aa714c126b678621f29f34cbf4695afe226de6c81137
7
+ data.tar.gz: 6fef52235b2ba5ef3709213412b98d7944935e82c02f87af3fb79a499f0768f46f4a722640454f81597d525eabfecd6a22d6ae876173ff090f9707c7bec32f1c
data/.vr_settings.yaml CHANGED
@@ -6,14 +6,17 @@ 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/src/main/VR_Main.rb"
10
- - "/home/eric/vrp/vr3/src/version.rb"
9
+ - "/home/eric/vrp/vr3/Untitled"
11
10
  open_folders:
12
11
  - "/home/eric/vrp/vr3"
12
+ - "/home/eric/vrp/vr3/lib"
13
+ - "/home/eric/vrp/vr3/skeleton"
14
+ - "/home/eric/vrp/vr3/skeleton/project"
15
+ - "/home/eric/vrp/vr3/skeleton/project/src"
13
16
  - "/home/eric/vrp/vr3/src"
14
- - "/home/eric/vrp/vr3/src/main"
15
- current_file: "/home/eric/vrp/vr3/src/main/VR_Main.rb"
16
- current_line: 320
17
+ - "/home/eric/vrp/vr3/src/editor"
18
+ current_file: "/home/eric/vrp/vr3/Untitled"
19
+ current_line: 1
17
20
  rdoc_command_line: yardoc lib - site/*.*
18
21
  builder: !ruby/object:Gtk::Builder {}
19
22
  top_level_window: false
data/lib/GladeGUI.rb CHANGED
@@ -394,7 +394,7 @@ module GladeGUI
394
394
  # Called when window is destroyed when you execute: <tt>@builder[:window1].destroy</tt>
395
395
  # It manages the Gtk.main loop for all the windows.
396
396
  def window1__destroy(*args)
397
- Gtk.main_quit if @top_level_window or @builder["window1"].modal?
397
+ Gtk.main_quit if @top_level_window or @builder["window1"].modal?
398
398
  end
399
399
 
400
400
  # Convenience method so you can just make a button named "buttonCancel" and it will work. This
@@ -70,9 +70,10 @@ class VR_Document < GtkSource::View
70
70
  end
71
71
 
72
72
  def jump_to_line(line_num, search_str = nil)
73
- while (Gtk.events_pending?)
74
- Gtk.main_iteration
75
- end
73
+ # clear_events
74
+ # while (Gtk.events_pending?)
75
+ # Gtk.main_iteration
76
+ # end
76
77
  hilight_line(line_num)
77
78
  iter = buffer.get_iter_at(:line => line_num - 1)
78
79
  buffer.place_cursor(iter)
@@ -82,6 +82,7 @@ class VR_Tabs < Gtk::Notebook
82
82
  # @option [Boolean] ask Whether or not to ask to save or save without asking.
83
83
  # @option [Boolean] close Close tab when finished
84
84
  def try_to_save_all(flags)
85
+ start_page = self.page
85
86
  return false unless modified_times_ok()
86
87
  passed = true
87
88
  (0..n_pages-1).each do |i|
@@ -89,8 +90,12 @@ class VR_Tabs < Gtk::Notebook
89
90
  unless try_to_save(flags[:ask])
90
91
  passed = false
91
92
  end
92
- end
93
- (n_pages).times { destroy_tab() } if flags[:close]
93
+ end
94
+ if flags[:close]
95
+ (n_pages).times { destroy_tab() }
96
+ else
97
+ self.page = start_page
98
+ end
94
99
  return passed
95
100
  end
96
101
 
@@ -159,7 +164,7 @@ class VR_Tabs < Gtk::Notebook
159
164
  def destroy_tab(tab = self.page)
160
165
  return unless tab
161
166
  self.page = self.page - 1 # stops some warnings
162
- clear_events
167
+ # clear_events
163
168
  @docs.delete_at(tab)
164
169
  # self.set_tab_label(get_nth_page(tab), nil)
165
170
  self.remove_page(tab) # causes warinings nothing I can do!
@@ -47,24 +47,6 @@ class VR_File_Tree < VR::FileTreeView
47
47
  @main.shell.buffer.text = txt
48
48
  end
49
49
 
50
- # def menuRDoc_clicked
51
- # return unless @main.tabs.try_to_save_all(:ask => false)
52
- # fn = get_selected_path()
53
- # old_dir = Dir.pwd
54
- # FileUtils.cd(fn)
55
- # @main.shell.buffer.text = $VR_ENV.rdoc_command_line + fn + "\n"
56
- # clear_events
57
- # @main.shell.buffer.text += `#{$VR_ENV.rdoc_command_line} 2>&1`
58
- # VR_Tools.replace_html_in_docs()
59
- # if File.exists?("yard_hack/index.html.replace")
60
- # FileUtils.copy("yard_hack/index.html.replace", "#{fn}/doc/index.html")
61
- # FileUtils.copy("yard_hack/index.html.replace", "#{fn}/doc/frames.html")
62
- # FileUtils.copy("yard_hack/common.css", "#{fn}/doc/css/common.css")
63
- # end
64
- # FileUtils.cd(old_dir)
65
- # VR_Tools.popen("#{$VR_ENV_GLOBAL.browser} #{fn}/doc/index.html")
66
- # @main.file_tree.refresh()
67
- # end
68
50
 
69
51
  def popBuildGem_clicked
70
52
  file_name = get_selected_path()
data/src/main/VR_Main.rb CHANGED
@@ -51,8 +51,8 @@ class VR_Main
51
51
  @builder["scrolledRemoteGems"].add(@remote_gem_tree)
52
52
  @remote_gem_tree.show
53
53
 
54
- @splash.destroy
55
- Gtk.main_quit
54
+ # @splash.destroy
55
+ # Gtk.main_quit
56
56
 
57
57
  unless project_valid?(@proj_path)
58
58
  toolOpenFolder__clicked # should never gets here.
@@ -96,7 +96,7 @@ class VR_Main
96
96
  old_path = @proj_path
97
97
  OpenProject.new(self).show_glade(self)
98
98
  if old_path != @proj_path
99
- @tabs.try_to_save_all(:ask => false, :close => true)
99
+ @tabs.try_to_save_all(:ask => false, :close => true)
100
100
  load_project()
101
101
  end
102
102
  end
data/src/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = "3.1.3"
1
+ VERSION = "3.1.5"
data/vr CHANGED
@@ -23,24 +23,24 @@ end
23
23
 
24
24
  $root = File.dirname(__FILE__)
25
25
 
26
- @splash = Gtk::Window.new()
27
- @splash.decorated = false
28
- img = Gtk::Image.new(file: File.join($root, "img", "splash.png"))
29
- img.visible = true
30
- @splash.add(img)
31
- @splash.position = :center_always
32
- @splash.show_all
33
- @splash.position = :center_always
26
+ #@splash = Gtk::Window.new()
27
+ #@splash.decorated = false
28
+ #img = Gtk::Image.new(file: File.join($root, "img", "splash.png"))
29
+ #img.visible = true
30
+ #@splash.add(img)
31
+ #@splash.position = :center_always
32
+ #@splash.show_all
33
+ #@splash.position = :center_always
34
34
 
35
35
 
36
36
 
37
- GLib::Timeout.add(40) {
38
- while (Gtk.events_pending?)
39
- Gtk.main_iteration
40
- end
37
+ #GLib::Timeout.add(40) {
38
+ # while (Gtk.events_pending?)
39
+ # Gtk.main_iteration
40
+ # end
41
41
  load_everything
42
- }
42
+ #}
43
43
 
44
- Gtk.main
44
+ #Gtk.main
45
45
 
46
46
 
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.3
4
+ version: 3.1.5
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-02-12 00:00:00.000000000 Z
12
+ date: 2017-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk3
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.1.0
20
+ version: 3.1.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.1.0
27
+ version: 3.1.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: gtksourceview3
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.1.0
34
+ version: 3.1.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.1.0
41
+ version: 3.1.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: require_all
44
44
  requirement: !ruby/object:Gem::Requirement