visualruby 3.1.5 → 3.1.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 +17 -6
- data/src/editor/VR_Document.rb +1 -1
- data/src/editor/VR_Tabs.rb +15 -6
- data/src/main/VR_Main.rb +11 -14
- data/src/version.rb +1 -1
- data/vr +14 -14
- 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: 535a5ef9867032e57d035638447e8805d4ec2c1c
|
4
|
+
data.tar.gz: b6820acaff44941a09a61bc899ec23733b7bfae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf0b8cc13372718a5142dd35237e5f96ad0e5767d6f6b9fc45d7869da11a47876f106ed435f0bfcb13511a7d90ca5ae9fe8eea6f440e033be5e64423ca88466d
|
7
|
+
data.tar.gz: f60ca878f40694f5d6d88647e6788309d5604cf050bb15047624ae76cdb150e6c18ba7d4e5ac86a5a11728d7393f757f5843702f378c8dc9d9c2ccad434d723b
|
data/.vr_settings.yaml
CHANGED
@@ -1,22 +1,33 @@
|
|
1
1
|
--- !ruby/object:VR_ENV
|
2
2
|
vr_yaml_file: "/home/eric/vrp/vr3/.vr_settings.yaml"
|
3
|
-
width:
|
3
|
+
width: 1086
|
4
4
|
height: 691
|
5
5
|
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/
|
9
|
+
- "/home/eric/vrp/vr3/lib/DragDrop.rb"
|
10
|
+
- "/home/eric/vrp/vr3/lib/ActLikeAHash.rb"
|
11
|
+
- "/home/eric/vrp/vr3/lib/SavableClass.rb"
|
12
|
+
- "/home/eric/vrp/vr3/lib/vrlib.rb"
|
13
|
+
- "/home/eric/vrp/vr3/lib/GladeGUI.rb"
|
14
|
+
- "/home/eric/vrp/vr3/src/editor/VR_Document.rb"
|
15
|
+
- "/home/eric/vrp/vr3/src/editor/VR_Tabs.rb"
|
16
|
+
- "/home/eric/vrp/vr3/src/main/VR_Main.rb"
|
17
|
+
- "/home/eric/vrp/vr3/examples/active_record/active_record.rb"
|
18
|
+
- "/home/eric/vrp/vr3/examples/listview/bin/SongListViewGUI.rb"
|
19
|
+
- "/home/eric/vrp/vr3/vr"
|
20
|
+
- "/home/eric/vrp/vr3/src/main/VR_ENV_GLOBAL.rb"
|
21
|
+
- "/home/eric/vrp/vr3/src/main/OpenProject.rb"
|
10
22
|
open_folders:
|
11
23
|
- "/home/eric/vrp/vr3"
|
12
24
|
- "/home/eric/vrp/vr3/lib"
|
13
25
|
- "/home/eric/vrp/vr3/skeleton"
|
14
|
-
- "/home/eric/vrp/vr3/skeleton/project"
|
15
|
-
- "/home/eric/vrp/vr3/skeleton/project/src"
|
16
26
|
- "/home/eric/vrp/vr3/src"
|
17
27
|
- "/home/eric/vrp/vr3/src/editor"
|
18
|
-
|
19
|
-
|
28
|
+
- "/home/eric/vrp/vr3/src/main"
|
29
|
+
current_file: "/home/eric/vrp/vr3/src/main/VR_Main.rb"
|
30
|
+
current_line: 20
|
20
31
|
rdoc_command_line: yardoc lib - site/*.*
|
21
32
|
builder: !ruby/object:Gtk::Builder {}
|
22
33
|
top_level_window: false
|
data/src/editor/VR_Document.rb
CHANGED
data/src/editor/VR_Tabs.rb
CHANGED
@@ -91,8 +91,8 @@ class VR_Tabs < Gtk::Notebook
|
|
91
91
|
passed = false
|
92
92
|
end
|
93
93
|
end
|
94
|
-
if flags[:close]
|
95
|
-
(n_pages).times { destroy_tab() }
|
94
|
+
if flags[:close]
|
95
|
+
(n_pages).times { destroy_tab() }
|
96
96
|
else
|
97
97
|
self.page = start_page
|
98
98
|
end
|
@@ -163,12 +163,21 @@ class VR_Tabs < Gtk::Notebook
|
|
163
163
|
# stops the warnings.
|
164
164
|
def destroy_tab(tab = self.page)
|
165
165
|
return unless tab
|
166
|
-
self.page = self.page - 1 # stops some warnings
|
167
|
-
#
|
166
|
+
self.page = self.page - 1 # stops some warnings
|
167
|
+
# self.page = -1
|
168
|
+
#alert "1"
|
169
|
+
#alert "before"
|
170
|
+
self.get_nth_page(tab).destroy
|
171
|
+
clear_events
|
172
|
+
#alert "during"
|
173
|
+
# self.remove_page(tab) # causes warinings nothing I can do!
|
174
|
+
clear_events
|
175
|
+
#alert "after"
|
168
176
|
@docs.delete_at(tab)
|
169
|
-
|
170
|
-
self.
|
177
|
+
|
178
|
+
# self.set_tab_label(get_nth_page(tab), nil)
|
171
179
|
load_tab() if @docs.empty?
|
180
|
+
|
172
181
|
end
|
173
182
|
|
174
183
|
def get_open_fn()
|
data/src/main/VR_Main.rb
CHANGED
@@ -11,13 +11,13 @@ class VR_Main
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def before_show
|
14
|
-
|
15
14
|
# there must be a visualruby directory:
|
16
15
|
required_project = File.join(ENV["HOME"],"","visualruby", "examples", "alert_box")
|
17
16
|
menuInstallExamples__activate if not File.directory?(required_project)
|
18
17
|
|
19
18
|
# load global settings (requires /home/visuaruby folder exists
|
20
19
|
$VR_ENV_GLOBAL = VR::load_yaml(VR_ENV_GLOBAL, VR_ENV_GLOBAL::GLOBAL_SETTINGS_FILE)
|
20
|
+
|
21
21
|
|
22
22
|
# try to open right project
|
23
23
|
if not project_valid?(@proj_path)
|
@@ -51,8 +51,8 @@ class VR_Main
|
|
51
51
|
@builder["scrolledRemoteGems"].add(@remote_gem_tree)
|
52
52
|
@remote_gem_tree.show
|
53
53
|
|
54
|
-
|
55
|
-
|
54
|
+
@splash.destroy
|
55
|
+
Gtk.main_quit
|
56
56
|
|
57
57
|
unless project_valid?(@proj_path)
|
58
58
|
toolOpenFolder__clicked # should never gets here.
|
@@ -71,7 +71,7 @@ class VR_Main
|
|
71
71
|
return false if ENV["HOME"] == proj_path
|
72
72
|
return false unless File.directory?(proj_path)
|
73
73
|
return false unless File.file?(File.join(proj_path, VR_ENV::SETTINGS_FILE))
|
74
|
-
|
74
|
+
return true
|
75
75
|
end
|
76
76
|
|
77
77
|
|
@@ -81,23 +81,20 @@ class VR_Main
|
|
81
81
|
@builder["labelStatus"].label = Dir.pwd
|
82
82
|
@file_tree.root = @proj_path
|
83
83
|
@file_tree.refresh()
|
84
|
-
@shell.buffer.text = ""
|
85
|
-
|
86
|
-
|
87
|
-
$VR_ENV_GLOBAL.default_project = @proj_path
|
88
|
-
VR::save_yaml($VR_ENV_GLOBAL)
|
89
|
-
end
|
84
|
+
@shell.buffer.text = ""
|
85
|
+
$VR_ENV_GLOBAL.default_project = @proj_path
|
86
|
+
VR::save_yaml($VR_ENV_GLOBAL)
|
90
87
|
load_state()
|
91
88
|
end
|
92
89
|
|
93
90
|
def toolOpenFolder__clicked(*a)
|
94
91
|
save_state
|
95
|
-
return unless @tabs.try_to_save_all(:ask=>true)
|
92
|
+
return unless @tabs.try_to_save_all(:ask=>true)
|
96
93
|
old_path = @proj_path
|
97
|
-
OpenProject.new(self).show_glade(self)
|
94
|
+
OpenProject.new(self).show_glade(self)
|
98
95
|
if old_path != @proj_path
|
99
|
-
@tabs.try_to_save_all(:ask => false, :close => true)
|
100
|
-
load_project()
|
96
|
+
@tabs.try_to_save_all(:ask => false, :close => true)
|
97
|
+
load_project()
|
101
98
|
end
|
102
99
|
end
|
103
100
|
|
data/src/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = "3.1.
|
1
|
+
VERSION = "3.1.6"
|
data/vr
CHANGED
@@ -23,24 +23,24 @@ end
|
|
23
23
|
|
24
24
|
$root = File.dirname(__FILE__)
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
44
|
+
Gtk.main
|
45
45
|
|
46
46
|
|