visualruby 3.0.2 → 3.0.3
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 +27 -0
- data/bin/editor/VR_Document.rb +156 -156
- data/bin/editor/VR_TabSearch.rb +37 -37
- data/bin/editor/VR_Tabs.rb +82 -82
- data/bin/editor/VR_TextShell.rb +49 -52
- data/bin/editor/VR_TextViewCommon.rb +31 -31
- data/bin/main/GemTree.rb +14 -14
- data/bin/main/NewProjectGUI.rb +24 -24
- data/bin/main/OpenProject.rb +53 -53
- data/bin/main/ProjectChooserView.rb +31 -31
- data/bin/main/ProjectTree.rb +17 -17
- data/bin/main/RubygemsAPI.rb +73 -63
- data/bin/main/VR_ENV.rb +29 -29
- data/bin/main/VR_ENV_GLOBAL.rb +52 -52
- data/bin/main/VR_File_Tree.rb +88 -88
- data/bin/main/VR_Local_Gem_Tree.rb +53 -53
- data/bin/main/VR_Main.rb +240 -238
- data/bin/main/VR_Remote_Gem_Tree.rb +41 -41
- data/bin/main/glade/Splash.glade +19 -0
- data/bin/tools/VR_Tools.rb +72 -72
- data/examples/active_record/.vr_settings.yaml +50 -0
- data/examples/active_record/active_record.rb +2 -2
- data/examples/active_record/bin/ChoosePerson.rb +10 -10
- data/examples/active_record/bin/Person.rb +6 -6
- data/examples/active_record2/.vr_settings.yaml +23 -0
- data/examples/active_record2/bin/CompanyGUI.rb +42 -42
- data/examples/active_record2/bin/Employee.rb +13 -13
- data/examples/active_record2/bin/Employer.rb +5 -5
- data/examples/active_record2/bin/Paycheck.rb +5 -5
- data/examples/active_record2/main.rb +4 -4
- data/examples/alert_box/bin/AlertBoxDemo.rb +40 -50
- data/examples/alert_box/bin/glade/AlertBoxDemo.glade +14 -45
- data/examples/all_widgets/.vr_settings.yaml +18 -0
- data/examples/all_widgets/bin/AllWidgets.rb +19 -16
- data/examples/calculator/.vr_settings.yaml +18 -0
- data/examples/calculator/bin/Calculator.rb +22 -22
- data/examples/child_window/.vr_settings.yaml +21 -0
- data/examples/child_window/bin/ChildWindowDemo.rb +10 -10
- data/examples/child_window/bin/ModalWindow.rb +4 -4
- data/examples/child_window/bin/ModelessWindow.rb +4 -4
- data/examples/child_window/bin/MyChildClass.rb +10 -10
- data/examples/drag_drop/.vr_settings.yaml +16 -0
- data/examples/drag_drop/bin/DragDropDemo.rb +28 -28
- data/examples/filetreeview/.vr_settings.yaml +20 -0
- data/examples/filetreeview/bin/ProjectTree.rb +13 -23
- data/examples/filetreeview/bin/ProjectTreeGUI.rb +18 -17
- data/examples/listview/.vr_settings.yaml +19 -0
- data/examples/listview/bin/SongListView.rb +72 -72
- data/examples/listview/bin/SongListViewGUI.rb +52 -52
- data/examples/listview_objects/.vr_settings.yaml +19 -0
- data/examples/listview_objects/bin/DataObject.rb +23 -23
- data/examples/listview_objects/bin/ListViewObjects.rb +29 -29
- data/examples/listview_objects/bin/ListViewObjectsGUI.rb +12 -12
- data/examples/settings_file/bin/MainApp.rb +25 -25
- data/examples/settings_file/bin/SavableSettings.rb +25 -26
- data/examples/settings_file/settings.yaml +1 -1
- data/examples/simple_ruby_gui/.vr_settings.yaml +20 -0
- data/examples/simple_ruby_gui/bin/DataObjectGUI.rb +12 -12
- data/examples/treeview/.vr_settings.yaml +17 -0
- data/examples/treeview/bin/MyClass.rb +18 -17
- data/examples/treeview/bin/glade/MyClass.glade +61 -6
- data/skeleton/document/NewWindow.rb +8 -8
- data/skeleton/project/.vr_settings.yaml +15 -0
- data/skeleton/project/bin/MyClass.rb +7 -7
- data/vr +38 -41
- data/vrlib/doc/images/add.png +0 -0
- data/vrlib/doc/images/arrow_up.png +0 -0
- data/vrlib/doc/images/brick.png +0 -0
- data/vrlib/doc/images/brick_link.png +0 -0
- data/vrlib/doc/images/bug.png +0 -0
- data/vrlib/doc/images/bullet_black.png +0 -0
- data/vrlib/doc/images/bullet_toggle_minus.png +0 -0
- data/vrlib/doc/images/bullet_toggle_plus.png +0 -0
- data/vrlib/doc/images/date.png +0 -0
- data/vrlib/doc/images/delete.png +0 -0
- data/vrlib/doc/images/find.png +0 -0
- data/vrlib/doc/images/macFFBgHack.png +0 -0
- data/vrlib/doc/images/package.png +0 -0
- data/vrlib/doc/images/page_green.png +0 -0
- data/vrlib/doc/images/page_white_text.png +0 -0
- data/vrlib/doc/images/page_white_width.png +0 -0
- data/vrlib/doc/images/plugin.png +0 -0
- data/vrlib/doc/images/ruby.png +0 -0
- data/vrlib/doc/images/tag_blue.png +0 -0
- data/vrlib/doc/images/tag_green.png +0 -0
- data/vrlib/doc/images/transparent.png +0 -0
- data/vrlib/doc/images/wrench.png +0 -0
- data/vrlib/doc/images/wrench_orange.png +0 -0
- data/vrlib/doc/images/zoom.png +0 -0
- data/vrlib/lib/Alert.rb +98 -55
- data/vrlib/lib/DragDrop.rb +43 -43
- data/vrlib/lib/GladeGUI.rb +207 -207
- data/vrlib/lib/IconHash.rb +10 -10
- data/vrlib/lib/SavableClass.rb +38 -38
- data/vrlib/lib/SimpleComboBoxEntry.rb +3 -3
- data/vrlib/lib/treeview/FileTreeView.rb +71 -70
- data/vrlib/lib/treeview/IterMethods.rb +35 -35
- data/vrlib/lib/treeview/ListView.rb +25 -25
- data/vrlib/lib/treeview/TreeView.rb +15 -15
- data/vrlib/lib/treeview/ViewCommon.rb +134 -131
- data/vrlib/lib/treeview/columns/CalendarCol.rb +48 -48
- data/vrlib/lib/treeview/columns/CellRendererCombo.rb +26 -26
- data/vrlib/lib/treeview/columns/CellRendererDate.rb +25 -25
- data/vrlib/lib/treeview/columns/CellRendererObject.rb +37 -37
- data/vrlib/lib/treeview/columns/CellRendererPhone.rb +25 -25
- data/vrlib/lib/treeview/columns/CellRendererPixbuf.rb +8 -8
- data/vrlib/lib/treeview/columns/CellRendererProgress.rb +8 -8
- data/vrlib/lib/treeview/columns/CellRendererSpin.rb +17 -17
- data/vrlib/lib/treeview/columns/CellRendererText.rb +18 -18
- data/vrlib/lib/treeview/columns/CellRendererToggle.rb +25 -25
- data/vrlib/lib/treeview/columns/ComboCol.rb +12 -12
- data/vrlib/lib/treeview/columns/CurrencyCol.rb +13 -13
- data/vrlib/lib/treeview/columns/DateCol.rb +10 -10
- data/vrlib/lib/treeview/columns/ImageCol.rb +16 -16
- data/vrlib/lib/treeview/columns/SpinCol.rb +5 -5
- data/vrlib/lib/treeview/columns/TextCol.rb +24 -24
- data/vrlib/lib/treeview/columns/TreeViewColumn.rb +71 -76
- data/vrlib/rdoc_replace.yaml +36 -36
- metadata +43 -6
- data/Splash.rb +0 -40
@@ -1,91 +1,86 @@
|
|
1
1
|
module VR
|
2
2
|
|
3
|
-
class TreeViewColumn < Gtk::TreeViewColumn
|
3
|
+
class TreeViewColumn < Gtk::TreeViewColumn # :nodoc:
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
#
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
5
|
+
def initialize(view, model_col, sym, type)
|
6
|
+
super()
|
7
|
+
self.title = sym.to_s.gsub("_", " ").split(' ').map {|w| w.capitalize }.join(' ') # My Title
|
8
|
+
@view = view
|
9
|
+
self.resizable = true
|
10
|
+
cols = (type.is_a? Hash) ? type : {sym => type}
|
11
|
+
cols.each_pair do |symb, type|
|
12
|
+
r = nil
|
13
|
+
a = [model_col, self, @view, symb]
|
14
|
+
if type == Gdk::Pixbuf
|
15
|
+
r = VR::CellRendererPixbuf.new(*a)
|
16
|
+
# ren = Gtk::CellRendererPixbuf.new #(*a)
|
17
|
+
self.pack_start( r, false )
|
18
|
+
self.add_attribute( r, :pixbuf, model_col)
|
19
|
+
elsif type == TrueClass
|
20
|
+
r = VR::CellRendererToggle.new(*a)
|
21
|
+
self.pack_start( r, false )
|
22
|
+
self.add_attribute( r, :active, model_col)
|
23
|
+
elsif type == VR::SpinCol #or type == Gtk::Adjustment
|
24
|
+
r = VR::CellRendererSpin.new(*a)
|
25
|
+
self.pack_start( r, false )
|
26
|
+
self.add_attribute( r, :adjustment, model_col)
|
27
|
+
self.set_cell_data_func(r) do |col, rend, model, iter|
|
28
|
+
fmt = "%.#{rend.digits}f"
|
29
|
+
rend.text = fmt % iter[rend.model_col].value.to_s
|
30
|
+
end
|
31
|
+
elsif type == VR::ComboCol
|
32
|
+
r = VR::CellRendererCombo.new(*a)
|
33
|
+
self.pack_start( r, false )
|
34
|
+
self.set_cell_data_func(r) do |col, rend, model, iter|
|
35
|
+
iter = model.get_iter(iter.path)
|
36
36
|
#puts "VR::ComboCol Renderer: " + ren.class.name + " model_col: " + ren.model_col.to_s
|
37
37
|
#puts "VR::ComboCol Iter: " + iter.class.name
|
38
38
|
#puts "VR::ComboCol Model: " + model.class.name
|
39
39
|
#puts "VR::ComboCol Cell: " + iter[ren.model_col].class.name
|
40
40
|
#puts "VR::ComboCol iter[ren.model_col]: " + iter[ren.model_col].selected.to_s
|
41
|
-
|
42
|
-
|
41
|
+
# display_val = iter[rend.model_col].selected.to_s
|
42
|
+
display_val = iter[@view.id(sym)].selected.to_s
|
43
43
|
#puts display_val
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
44
|
+
rend.text = display_val #= iter[ren.model_col].selected.to_s
|
45
|
+
end
|
46
|
+
elsif type == VR::ProgressCol
|
47
|
+
r = VR::CellRendererProgress.new(*a)
|
48
|
+
self.pack_start( r, false )
|
49
|
+
self.add_attribute( r, :value, model_col)
|
50
|
+
elsif type == DateTime
|
51
|
+
r = VR::CellRendererDate.new(*a)
|
52
|
+
self.pack_start( r, false )
|
53
|
+
self.set_cell_data_func(r) do |col, ren, model, iter|
|
54
54
|
#iter = model.get_iter(iter.path)
|
55
55
|
#puts "DateTime:" + iter[ren.model_col].class.name + ":" + iter[ren.model_col].to_s
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
56
|
+
ren.text = iter[ren.model_col].strftime(ren.date_format).to_s
|
57
|
+
end
|
58
|
+
elsif type == String or type == Float or type == Integer or type == Fixnum
|
59
|
+
r = VR::CellRendererText.new(*a)
|
60
|
+
self.pack_start( r, false )
|
61
|
+
self.add_attribute( r, :text, model_col)
|
62
|
+
else #user defined object
|
63
|
+
r = VR::CellRendererObject.new(*a)
|
64
|
+
self.pack_start( r, false )
|
65
|
+
self.set_cell_data_func(r) do |col, ren, model, iter|
|
66
|
+
ren.render_object(iter)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
model_col = model_col + 1
|
70
|
+
view.vr_renderer[sym] = r
|
71
|
+
view.vr_column[sym] = self
|
72
|
+
end
|
73
|
+
end
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
# def sortable=(is_sortable)
|
86
|
-
# self.sort_column_id = cell_renderers[0].model_col
|
87
|
-
# self.clickable = is_sortable
|
88
|
-
# end
|
75
|
+
def width=(w) #pixels
|
76
|
+
self.sizing = :fixed
|
77
|
+
self.fixed_width = w
|
78
|
+
end
|
79
|
+
|
80
|
+
def sort_on(sym)
|
81
|
+
self.sort_column_id = id(sym)
|
82
|
+
self.clickable = id(sym).to_b
|
83
|
+
end
|
89
84
|
|
90
85
|
end
|
91
86
|
|
data/vrlib/rdoc_replace.yaml
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- - <nav id="home-section" class="section">
|
3
|
-
-
|
4
|
-
src=http://visualruby.net/img/splash_small.png></a><br>"
|
3
|
+
- <nav id="home-section" class= "section" ><a href=/index.html><img src=http://visualruby.net/img/splash_small.png></a><br>
|
5
4
|
- - Video:uploading_gems.avi
|
6
5
|
- <iframe width="640" height="480" src="http://www.youtube.com/embed/6VsXlCjU89c"
|
7
6
|
frameborder="0" allowfullscreen></iframe>
|
@@ -15,63 +14,64 @@
|
|
15
14
|
- <iframe width="640" height="480" src="http://www.youtube.com/embed/y_IPPs-cqpk"
|
16
15
|
frameborder="0" allowfullscreen></iframe>
|
17
16
|
- - GtkTreeIter
|
18
|
-
-
|
17
|
+
- <a href="http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeIter">Gtk::TreeIter</a>
|
19
18
|
- - GtkTreeViewColumn
|
20
19
|
- <a href="http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeViewColumn">Gtk::TreeViewColumn</a>
|
21
20
|
- - GtkCellRendererText
|
22
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>
|
21
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>"
|
23
22
|
- - GtkTreeView
|
24
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeView>Gtk::TreeView</a>
|
23
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeView>Gtk::TreeView</a>"
|
25
24
|
- - GtkCellRendererText
|
26
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>
|
25
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>"
|
27
26
|
- - GtkCellRendererCombo
|
28
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererCombo</a>
|
27
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererCombo</a>"
|
29
28
|
- - GtkCellRendererToggle
|
30
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererToggle</a>
|
29
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererToggle</a>"
|
31
30
|
- - GtkCellRendererSpin
|
32
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererSpin>Gtk::CellRendererSpin</a>
|
31
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererSpin>Gtk::CellRendererSpin</a>"
|
33
32
|
- - GtkCellRendererProgress
|
34
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererProgress>Gtk::CellRendererProgress</a>
|
33
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererProgress>Gtk::CellRendererProgress</a>"
|
35
34
|
- - GtkCellRendererPixbuf
|
36
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererPixbuf>Gtk::CellRendererPixbuf</a>
|
35
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererPixbuf>Gtk::CellRendererPixbuf</a>"
|
37
36
|
- - GtkEntry
|
38
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AEntry>Gtk::Entry</a>
|
37
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AEntry>Gtk::Entry</a>"
|
39
38
|
- - GtkSpinButton
|
40
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASpinButton>Gtk::SpinButton</a>
|
39
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASpinButton>Gtk::SpinButton</a>"
|
41
40
|
- - GdkPixbuf
|
42
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gdk%3A%3APixbuf>Gdk::Pixbuf</a>
|
41
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gdk%3A%3APixbuf>Gdk::Pixbuf</a>"
|
43
42
|
- - ActiveRecordBase
|
44
|
-
- <a href=http://api.rubyonrails.org/classes/ActiveRecord/Base.html>ActiveRecord::Base</a>
|
43
|
+
- "<a href=http://api.rubyonrails.org/classes/ActiveRecord/Base.html>ActiveRecord::Base</a>"
|
45
44
|
- - GtkComboBoxEntry
|
46
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AComboBoxEntry>Gtk::ComboBoxEntry</a>
|
45
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AComboBoxEntry>Gtk::ComboBoxEntry</a>"
|
47
46
|
- - GtkProgressBar
|
48
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AProgressBar>Gtk::ProgressBar</a>
|
47
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AProgressBar>Gtk::ProgressBar</a>"
|
49
48
|
- - GtkSelection
|
50
|
-
- <A href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASelection>Gtk::Selection</a>
|
49
|
+
- "<A href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASelection>Gtk::Selection</a>"
|
51
50
|
- - <div id="home-section" class="section">
|
52
|
-
-
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
-
|
57
|
-
|
58
|
-
-
|
59
|
-
|
60
|
-
-
|
61
|
-
|
62
|
-
-
|
63
|
-
|
64
|
-
-
|
65
|
-
|
66
|
-
-
|
67
|
-
- <title>Visual Ruby Help</title>
|
51
|
+
- <div id="home-section" class= "section" ><a href=/index.html><img src=http://visualruby.net/img/splash_small.png></a><br>
|
52
|
+
- - "<title>index - RDoc Documentation</title>"
|
53
|
+
- "<title>Visual Ruby -- GUI with Ruby and Glade</title>"
|
54
|
+
- - "<title>Download - RDoc Documentation</title>"
|
55
|
+
- "<title>Download Visual Ruby -- Make GUIs with Ruby!</title>"
|
56
|
+
- - "<title>RubyGems Tutorial - RDoc Documentation</title>"
|
57
|
+
- "<title>RubyGems Tutorial - Use Visual Ruby to Push Gems!</title>"
|
58
|
+
- - "<title>Signals Tutorial - RDoc Documentation</title>"
|
59
|
+
- "<title>Ruby Signals Tutorial -- signal_connect with Visual Ruby!</title>"
|
60
|
+
- - "<title>ListView Tutorial - RDoc Documentation</title>"
|
61
|
+
- "<title>Ruby ListView Tutorial</title>"
|
62
|
+
- - "<title>Child Windows Tutorial - RDoc Documentation</title>"
|
63
|
+
- "<title>Ruby Child Windows Tutorial</title>"
|
64
|
+
- - "<title>Help--Contact Info - RDoc Documentation</title>"
|
65
|
+
- "<title>Visual Ruby Help</title>"
|
68
66
|
- - video:activerecord.avi
|
69
67
|
- <iframe width="640" height="480" src="http://www.youtube.com/embed/uySVKltD7fk"
|
70
68
|
frameborder="0" allowfullscreen></iframe>
|
71
69
|
- - GLibInstantiatable#signal_connect
|
72
|
-
- <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?GLib%3A%3AInstantiatable#signal_connect>Glib::Instaniatable#signal_connect</a>
|
70
|
+
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?GLib%3A%3AInstantiatable#signal_connect>Glib::Instaniatable#signal_connect</a>"
|
73
71
|
- - ActiveRecordBase
|
74
|
-
- <a href=http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000341>ActiveRecord::Base</a>
|
72
|
+
- "<a href=http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000341>ActiveRecord::Base</a>"
|
75
73
|
- - video:activerecord2.avi
|
76
74
|
- <iframe width="640" height="480" src="http://www.youtube.com/embed/3f1Lj5Q2Q8g"
|
77
75
|
frameborder="0" allowfullscreen></iframe>
|
76
|
+
- - <a href="./index.html" rel="home">Home</a>
|
77
|
+
- "<a href=/index.html><img src=http://visualruby.net/img/splash_small.png></a>"
|
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.
|
4
|
+
version: 3.0.3
|
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: 2016-06-
|
12
|
+
date: 2016-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: vrlib
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 3.0.
|
20
|
+
version: 3.0.3
|
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.0.
|
27
|
+
version: 3.0.3
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: gtksourceview3
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ executables:
|
|
50
50
|
extensions: []
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
|
-
- "
|
53
|
+
- "./.vr_settings.yaml"
|
54
54
|
- "./bin/editor/VR_Document.rb"
|
55
55
|
- "./bin/editor/VR_TabSearch.rb"
|
56
56
|
- "./bin/editor/VR_Tabs.rb"
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- "./bin/main/glade/NewProjectGUI.glade"
|
72
72
|
- "./bin/main/glade/OpenProject.glade"
|
73
73
|
- "./bin/main/glade/RubygemsAPI.glade"
|
74
|
+
- "./bin/main/glade/Splash.glade"
|
74
75
|
- "./bin/main/glade/VR_ENV.glade"
|
75
76
|
- "./bin/main/glade/VR_ENV_GLOBAL.glade"
|
76
77
|
- "./bin/main/glade/VR_File_Tree.glade"
|
@@ -78,12 +79,14 @@ files:
|
|
78
79
|
- "./bin/main/glade/VR_Main.glade"
|
79
80
|
- "./bin/main/glade/VR_Remote_Gem_Tree.glade"
|
80
81
|
- "./bin/tools/VR_Tools.rb"
|
82
|
+
- "./examples/active_record/.vr_settings.yaml"
|
81
83
|
- "./examples/active_record/active_record.rb"
|
82
84
|
- "./examples/active_record/bin/ChoosePerson.rb"
|
83
85
|
- "./examples/active_record/bin/Person.rb"
|
84
86
|
- "./examples/active_record/bin/glade/ChoosePerson.glade"
|
85
87
|
- "./examples/active_record/bin/glade/Person.glade"
|
86
88
|
- "./examples/active_record/db/development.sqlite3"
|
89
|
+
- "./examples/active_record2/.vr_settings.yaml"
|
87
90
|
- "./examples/active_record2/bin/CompanyGUI.rb"
|
88
91
|
- "./examples/active_record2/bin/Employee.rb"
|
89
92
|
- "./examples/active_record2/bin/Employer.rb"
|
@@ -97,13 +100,16 @@ files:
|
|
97
100
|
- "./examples/alert_box/bin/AlertBoxDemo.rb"
|
98
101
|
- "./examples/alert_box/bin/glade/AlertBoxDemo.glade"
|
99
102
|
- "./examples/alert_box/main.rb"
|
103
|
+
- "./examples/all_widgets/.vr_settings.yaml"
|
100
104
|
- "./examples/all_widgets/bin/AllWidgets.rb"
|
101
105
|
- "./examples/all_widgets/bin/glade/AllWidgets.glade"
|
102
106
|
- "./examples/all_widgets/bin/splash.png"
|
103
107
|
- "./examples/all_widgets/main.rb"
|
108
|
+
- "./examples/calculator/.vr_settings.yaml"
|
104
109
|
- "./examples/calculator/bin/Calculator.rb"
|
105
110
|
- "./examples/calculator/bin/glade/Calculator.glade"
|
106
111
|
- "./examples/calculator/main.rb"
|
112
|
+
- "./examples/child_window/.vr_settings.yaml"
|
107
113
|
- "./examples/child_window/bin/ChildWindowDemo.rb"
|
108
114
|
- "./examples/child_window/bin/ModalWindow.rb"
|
109
115
|
- "./examples/child_window/bin/ModelessWindow.rb"
|
@@ -113,6 +119,7 @@ files:
|
|
113
119
|
- "./examples/child_window/bin/glade/ModelessWindow.glade"
|
114
120
|
- "./examples/child_window/bin/glade/MyChildClass.glade"
|
115
121
|
- "./examples/child_window/main.rb"
|
122
|
+
- "./examples/drag_drop/.vr_settings.yaml"
|
116
123
|
- "./examples/drag_drop/bin/DragDropDemo.rb"
|
117
124
|
- "./examples/drag_drop/bin/glade/DragDropDemo.glade"
|
118
125
|
- "./examples/drag_drop/img/folder.png"
|
@@ -124,15 +131,18 @@ files:
|
|
124
131
|
- "./examples/drag_drop/img/ruby.png"
|
125
132
|
- "./examples/drag_drop/img/unknown.png"
|
126
133
|
- "./examples/drag_drop/main.rb"
|
134
|
+
- "./examples/filetreeview/.vr_settings.yaml"
|
127
135
|
- "./examples/filetreeview/bin/ProjectTree.rb"
|
128
136
|
- "./examples/filetreeview/bin/ProjectTreeGUI.rb"
|
129
137
|
- "./examples/filetreeview/bin/glade/ProjectTreeGUI.glade"
|
130
138
|
- "./examples/filetreeview/main.rb"
|
139
|
+
- "./examples/listview/.vr_settings.yaml"
|
131
140
|
- "./examples/listview/bin/SongListView.rb"
|
132
141
|
- "./examples/listview/bin/SongListViewGUI.rb"
|
133
142
|
- "./examples/listview/bin/audio-x-generic.png"
|
134
143
|
- "./examples/listview/bin/glade/SongListViewGUI.glade"
|
135
144
|
- "./examples/listview/main.rb"
|
145
|
+
- "./examples/listview_objects/.vr_settings.yaml"
|
136
146
|
- "./examples/listview_objects/bin/DataObject.rb"
|
137
147
|
- "./examples/listview_objects/bin/ListViewObjects.rb"
|
138
148
|
- "./examples/listview_objects/bin/ListViewObjectsGUI.rb"
|
@@ -145,9 +155,11 @@ files:
|
|
145
155
|
- "./examples/settings_file/bin/glade/SavableSettings.glade"
|
146
156
|
- "./examples/settings_file/main.rb"
|
147
157
|
- "./examples/settings_file/settings.yaml"
|
158
|
+
- "./examples/simple_ruby_gui/.vr_settings.yaml"
|
148
159
|
- "./examples/simple_ruby_gui/bin/DataObjectGUI.rb"
|
149
160
|
- "./examples/simple_ruby_gui/bin/glade/DataObjectGUI.glade"
|
150
161
|
- "./examples/simple_ruby_gui/main.rb"
|
162
|
+
- "./examples/treeview/.vr_settings.yaml"
|
151
163
|
- "./examples/treeview/bin/MyClass.rb"
|
152
164
|
- "./examples/treeview/bin/glade/MyClass.glade"
|
153
165
|
- "./examples/treeview/main.rb"
|
@@ -163,10 +175,35 @@ files:
|
|
163
175
|
- "./img/unknown.png"
|
164
176
|
- "./skeleton/document/New.glade"
|
165
177
|
- "./skeleton/document/NewWindow.rb"
|
178
|
+
- "./skeleton/project/.vr_settings.yaml"
|
166
179
|
- "./skeleton/project/bin/MyClass.rb"
|
167
180
|
- "./skeleton/project/bin/glade/MyClass.glade"
|
168
181
|
- "./skeleton/project/main.rb"
|
169
182
|
- "./vr"
|
183
|
+
- "./vrlib/doc/images/add.png"
|
184
|
+
- "./vrlib/doc/images/arrow_up.png"
|
185
|
+
- "./vrlib/doc/images/brick.png"
|
186
|
+
- "./vrlib/doc/images/brick_link.png"
|
187
|
+
- "./vrlib/doc/images/bug.png"
|
188
|
+
- "./vrlib/doc/images/bullet_black.png"
|
189
|
+
- "./vrlib/doc/images/bullet_toggle_minus.png"
|
190
|
+
- "./vrlib/doc/images/bullet_toggle_plus.png"
|
191
|
+
- "./vrlib/doc/images/date.png"
|
192
|
+
- "./vrlib/doc/images/delete.png"
|
193
|
+
- "./vrlib/doc/images/find.png"
|
194
|
+
- "./vrlib/doc/images/macFFBgHack.png"
|
195
|
+
- "./vrlib/doc/images/package.png"
|
196
|
+
- "./vrlib/doc/images/page_green.png"
|
197
|
+
- "./vrlib/doc/images/page_white_text.png"
|
198
|
+
- "./vrlib/doc/images/page_white_width.png"
|
199
|
+
- "./vrlib/doc/images/plugin.png"
|
200
|
+
- "./vrlib/doc/images/ruby.png"
|
201
|
+
- "./vrlib/doc/images/tag_blue.png"
|
202
|
+
- "./vrlib/doc/images/tag_green.png"
|
203
|
+
- "./vrlib/doc/images/transparent.png"
|
204
|
+
- "./vrlib/doc/images/wrench.png"
|
205
|
+
- "./vrlib/doc/images/wrench_orange.png"
|
206
|
+
- "./vrlib/doc/images/zoom.png"
|
170
207
|
- "./vrlib/lib/Alert.rb"
|
171
208
|
- "./vrlib/lib/DragDrop.rb"
|
172
209
|
- "./vrlib/lib/GladeGUI.rb"
|
@@ -222,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
259
|
version: '0'
|
223
260
|
requirements: []
|
224
261
|
rubyforge_project: nowarning
|
225
|
-
rubygems_version: 2.
|
262
|
+
rubygems_version: 2.5.1
|
226
263
|
signing_key:
|
227
264
|
specification_version: 4
|
228
265
|
summary: Create IDE designed to make great GUIs with Ruby
|
data/Splash.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
require "gtk3"
|
2
|
-
|
3
|
-
def load_everything
|
4
|
-
require "rubygems"
|
5
|
-
require "gtksourceview3"
|
6
|
-
require "yaml" #needed
|
7
|
-
require "net/http" #needed
|
8
|
-
require "net/https" #needed
|
9
|
-
require "find" #needed
|
10
|
-
require "fileutils" #needed
|
11
|
-
require "rubygems/installer"
|
12
|
-
require "rubygems/uninstaller"
|
13
|
-
require "rubygems/package"
|
14
|
-
require "rubygems/specification"
|
15
|
-
require "date"
|
16
|
-
|
17
|
-
require 'require_all'
|
18
|
-
|
19
|
-
require_rel 'vrlib/lib/'
|
20
|
-
require_rel 'bin/'
|
21
|
-
|
22
|
-
VR_Main.new(ARGV).show_glade()
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
$splash = Gtk::Window.new()
|
27
|
-
image = Gtk::Image.new(:file => "img/splash.png")
|
28
|
-
$splash.add image
|
29
|
-
$splash.decorated = false
|
30
|
-
$splash.position = :center_always
|
31
|
-
$splash.show_all
|
32
|
-
|
33
|
-
|
34
|
-
GLib::Timeout.add(40) {
|
35
|
-
load_everything
|
36
|
-
}
|
37
|
-
|
38
|
-
Gtk.main
|
39
|
-
|
40
|
-
|