visualruby 1.0.19 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/Splash.rb +40 -0
  3. data/bin/editor/VR_Document.rb +81 -74
  4. data/bin/editor/VR_TabSearch.rb +5 -7
  5. data/bin/editor/VR_Tabs.rb +57 -36
  6. data/bin/editor/VR_TextShell.rb +12 -34
  7. data/bin/editor/VR_TextViewCommon.rb +9 -28
  8. data/bin/main/NewProjectGUI.rb +14 -13
  9. data/bin/main/OpenProject.rb +69 -0
  10. data/bin/main/ProjectChooserView.rb +3 -2
  11. data/bin/main/ProjectTree.rb +25 -0
  12. data/bin/main/RubygemsAPI.rb +15 -11
  13. data/bin/main/VR_ENV.rb +38 -60
  14. data/bin/main/VR_ENV_GLOBAL.rb +45 -44
  15. data/bin/main/VR_File_Tree.rb +29 -21
  16. data/bin/main/VR_Local_Gem_Tree.rb +4 -19
  17. data/bin/main/VR_Main.rb +128 -144
  18. data/bin/main/VR_Remote_Gem_Tree.rb +6 -19
  19. data/bin/main/glade/NewProjectGUI.glade +94 -98
  20. data/bin/main/glade/OpenProject.glade +259 -0
  21. data/bin/main/glade/RubygemsAPI.glade +98 -62
  22. data/bin/main/glade/VR_ENV.glade +46 -55
  23. data/bin/main/glade/VR_ENV_GLOBAL.glade +251 -180
  24. data/bin/main/glade/VR_File_Tree.glade +25 -16
  25. data/bin/main/glade/VR_Local_Gem_Tree.glade +16 -8
  26. data/bin/main/glade/VR_Main.glade +410 -449
  27. data/bin/main/glade/VR_Remote_Gem_Tree.glade +33 -31
  28. data/bin/tools/VR_Tools.rb +60 -46
  29. data/{visualruby_examples → examples}/active_record/active_record.rb +16 -10
  30. data/{visualruby_examples → examples}/active_record/bin/ChoosePerson.rb +7 -0
  31. data/examples/active_record/bin/Person.rb +21 -0
  32. data/examples/active_record/bin/glade/ChoosePerson.glade +89 -0
  33. data/examples/active_record/bin/glade/Person.glade +197 -0
  34. data/{visualruby_examples → examples}/active_record/db/development.sqlite3 +0 -0
  35. data/{visualruby_examples → examples}/active_record2/bin/CompanyGUI.rb +7 -7
  36. data/{visualruby_examples → examples}/active_record2/bin/Employee.rb +0 -0
  37. data/{visualruby_examples → examples}/active_record2/bin/Employer.rb +0 -0
  38. data/{visualruby_examples → examples}/active_record2/bin/Paycheck.rb +0 -0
  39. data/examples/active_record2/bin/glade/CompanyGUI.glade +149 -0
  40. data/examples/active_record2/bin/glade/Employee.glade +126 -0
  41. data/{visualruby_examples → examples}/active_record2/bin/glade/Employer.glade +0 -0
  42. data/{visualruby_examples → examples}/active_record2/bin/glade/Paycheck.glade +0 -0
  43. data/{visualruby_examples → examples}/active_record2/db/development.sqlite3 +0 -0
  44. data/{visualruby_examples → examples}/active_record2/main.rb +15 -9
  45. data/examples/alert_box/bin/AlertBoxDemo.rb +80 -0
  46. data/examples/alert_box/bin/glade/AlertBoxDemo.glade +234 -0
  47. data/examples/alert_box/main.rb +12 -0
  48. data/{visualruby_examples → examples}/all_widgets/bin/AllWidgets.rb +18 -10
  49. data/{visualruby_examples → examples}/all_widgets/bin/glade/AllWidgets.glade +52 -16
  50. data/{visualruby_examples → examples}/all_widgets/bin/splash.png +0 -0
  51. data/examples/all_widgets/main.rb +12 -0
  52. data/{visualruby_examples → examples}/calculator/bin/Calculator.rb +23 -22
  53. data/{visualruby_examples → examples}/calculator/bin/glade/Calculator.glade +81 -51
  54. data/examples/calculator/main.rb +13 -0
  55. data/examples/child_window/bin/ChildWindowDemo.rb +52 -0
  56. data/examples/child_window/bin/ModalWindow.rb +9 -0
  57. data/examples/child_window/bin/ModelessWindow.rb +9 -0
  58. data/examples/child_window/bin/MyChildClass.rb +21 -0
  59. data/examples/child_window/bin/glade/ChildWindowDemo.glade +87 -0
  60. data/examples/child_window/bin/glade/ModalWindow.glade +61 -0
  61. data/examples/child_window/bin/glade/ModelessWindow.glade +61 -0
  62. data/{visualruby_examples → examples}/child_window/bin/glade/MyChildClass.glade +14 -12
  63. data/examples/child_window/main.rb +12 -0
  64. data/{visualruby_examples → examples}/drag_drop/bin/DragDropDemo.rb +9 -10
  65. data/examples/drag_drop/bin/glade/DragDropDemo.glade +161 -0
  66. data/{visualruby_examples → examples}/drag_drop/img/folder.png +0 -0
  67. data/{visualruby_examples → examples}/drag_drop/img/glade.png +0 -0
  68. data/{visualruby_examples → examples}/drag_drop/img/gtk-edit.png +0 -0
  69. data/{visualruby_examples → examples}/drag_drop/img/obj.png +0 -0
  70. data/{visualruby_examples → examples}/drag_drop/img/png.png +0 -0
  71. data/{visualruby_examples → examples}/drag_drop/img/rb.png +0 -0
  72. data/{visualruby_examples → examples}/drag_drop/img/ruby.png +0 -0
  73. data/{visualruby_examples → examples}/drag_drop/img/unknown.png +0 -0
  74. data/examples/drag_drop/main.rb +11 -0
  75. data/examples/filetreeview/bin/ProjectTree.rb +32 -0
  76. data/examples/filetreeview/bin/ProjectTreeGUI.rb +28 -0
  77. data/examples/filetreeview/bin/glade/ProjectTreeGUI.glade +156 -0
  78. data/examples/filetreeview/main.rb +13 -0
  79. data/{visualruby_examples → examples}/listview/bin/SongListView.rb +24 -20
  80. data/{visualruby_examples → examples}/listview/bin/SongListViewGUI.rb +12 -11
  81. data/{visualruby_examples → examples}/listview/bin/audio-x-generic.png +0 -0
  82. data/examples/listview/bin/glade/SongListViewGUI.glade +195 -0
  83. data/examples/listview/main.rb +10 -0
  84. data/examples/listview_objects/bin/DataObject.rb +53 -0
  85. data/{visualruby_examples → examples}/listview_objects/bin/ListViewObjects.rb +7 -4
  86. data/examples/listview_objects/bin/ListViewObjectsGUI.rb +26 -0
  87. data/examples/listview_objects/bin/glade/DataObject.glade +196 -0
  88. data/examples/listview_objects/bin/glade/ListViewObjectsGUI.glade +87 -0
  89. data/examples/listview_objects/main.rb +12 -0
  90. data/examples/settings_file/bin/MainApp.rb +38 -0
  91. data/examples/settings_file/bin/SavableSettings.rb +39 -0
  92. data/examples/settings_file/bin/glade/MainApp.glade +87 -0
  93. data/examples/settings_file/bin/glade/SavableSettings.glade +162 -0
  94. data/examples/settings_file/main.rb +14 -0
  95. data/examples/settings_file/settings.yaml +15 -0
  96. data/examples/simple_ruby_gui/bin/DataObjectGUI.rb +21 -0
  97. data/examples/simple_ruby_gui/bin/glade/DataObjectGUI.glade +195 -0
  98. data/examples/simple_ruby_gui/main.rb +16 -0
  99. data/{visualruby_examples → examples}/treeview/bin/MyClass.rb +1 -5
  100. data/examples/treeview/bin/glade/MyClass.glade +24 -0
  101. data/examples/treeview/main.rb +13 -0
  102. data/skeleton/document/New.glade +3 -4
  103. data/skeleton/document/NewWindow.rb +1 -1
  104. data/skeleton/project/bin/MyClass.rb +2 -2
  105. data/skeleton/project/bin/glade/MyClass.glade +12 -26
  106. data/skeleton/project/main.rb +4 -8
  107. data/vr +41 -37
  108. data/vrlib/lib/Alert.rb +67 -0
  109. data/vrlib/lib/DragDrop.rb +90 -0
  110. data/vrlib/lib/GladeGUI.rb +433 -0
  111. data/vrlib/lib/IconHash.rb +18 -0
  112. data/vrlib/lib/SavableClass.rb +56 -0
  113. data/vrlib/lib/SimpleComboBoxEntry.rb +8 -0
  114. data/vrlib/lib/glade/Alert.glade +119 -0
  115. data/vrlib/lib/treeview/FileTreeView.rb +113 -0
  116. data/vrlib/lib/treeview/IterMethods.rb +82 -0
  117. data/vrlib/lib/treeview/ListView.rb +85 -0
  118. data/vrlib/lib/treeview/TreeView.rb +43 -0
  119. data/vrlib/lib/treeview/ViewCommon.rb +370 -0
  120. data/vrlib/lib/treeview/columns/CalendarCol.rb +89 -0
  121. data/vrlib/lib/treeview/columns/CellRendererCombo.rb +66 -0
  122. data/vrlib/lib/treeview/columns/CellRendererDate.rb +45 -0
  123. data/vrlib/lib/treeview/columns/CellRendererObject.rb +57 -0
  124. data/vrlib/lib/treeview/columns/CellRendererPhone.rb +45 -0
  125. data/vrlib/lib/treeview/columns/CellRendererPixbuf.rb +16 -0
  126. data/vrlib/lib/treeview/columns/CellRendererProgress.rb +17 -0
  127. data/vrlib/lib/treeview/columns/CellRendererSpin.rb +37 -0
  128. data/vrlib/lib/treeview/columns/CellRendererText.rb +38 -0
  129. data/vrlib/lib/treeview/columns/CellRendererToggle.rb +47 -0
  130. data/vrlib/lib/treeview/columns/ComboCol.rb +43 -0
  131. data/vrlib/lib/treeview/columns/CurrencyCol.rb +23 -0
  132. data/vrlib/lib/treeview/columns/DateCol.rb +20 -0
  133. data/vrlib/lib/treeview/columns/ImageCol.rb +27 -0
  134. data/vrlib/lib/treeview/columns/ProgressCol.rb +27 -0
  135. data/vrlib/lib/treeview/columns/SpinCol.rb +11 -0
  136. data/vrlib/lib/treeview/columns/TextCol.rb +65 -0
  137. data/vrlib/lib/treeview/columns/TreeViewColumn.rb +93 -0
  138. data/{bin/main/glade/ProjectChooserGUI.glade → vrlib/lib/treeview/columns/glade/CalendarCol.glade} +71 -63
  139. data/{bin/main/glade/Splash.glade → vrlib/lib/treeview/columns/glade/ImageCol.glade} +5 -6
  140. data/vrlib/lib/treeview/columns/glade/TextCol.glade +82 -0
  141. data/vrlib/rdoc_replace.yaml +77 -0
  142. data/vrlib/vrlib.rb +7 -0
  143. metadata +163 -136
  144. data/bin/editor/glade/VR_Document.glade +0 -160
  145. data/bin/main/ProjectChooserGUI.rb +0 -41
  146. data/bin/main/Splash.rb +0 -22
  147. data/visualruby_examples/active_record/.vr_settings.yaml +0 -47
  148. data/visualruby_examples/active_record/bin/Person.rb +0 -13
  149. data/visualruby_examples/active_record/bin/glade/ChoosePerson.glade +0 -61
  150. data/visualruby_examples/active_record/bin/glade/Person.glade +0 -148
  151. data/visualruby_examples/active_record2/.vr_settings.yaml +0 -16
  152. data/visualruby_examples/active_record2/bin/glade/CompanyGUI.glade +0 -167
  153. data/visualruby_examples/active_record2/bin/glade/Employee.glade +0 -123
  154. data/visualruby_examples/all_widgets/.vr_settings.yaml +0 -13
  155. data/visualruby_examples/all_widgets/main.rb +0 -14
  156. data/visualruby_examples/calculator/.vr_settings.yaml +0 -11
  157. data/visualruby_examples/calculator/main.rb +0 -13
  158. data/visualruby_examples/child_window/.vr_settings.yaml +0 -16
  159. data/visualruby_examples/child_window/bin/ChildWindowDemo.rb +0 -39
  160. data/visualruby_examples/child_window/bin/MyChildClass.rb +0 -40
  161. data/visualruby_examples/child_window/bin/glade/ChildWindowDemo.glade +0 -101
  162. data/visualruby_examples/child_window/main.rb +0 -13
  163. data/visualruby_examples/drag_drop/.vr_settings.yaml +0 -12
  164. data/visualruby_examples/drag_drop/bin/glade/DragDropDemo.glade +0 -143
  165. data/visualruby_examples/drag_drop/main.rb +0 -14
  166. data/visualruby_examples/listview/.vr_settings.yaml +0 -12
  167. data/visualruby_examples/listview/bin/glade/SongListViewGUI.glade +0 -220
  168. data/visualruby_examples/listview/main.rb +0 -19
  169. data/visualruby_examples/listview_objects/.vr_settings.yaml +0 -16
  170. data/visualruby_examples/listview_objects/bin/DataObject.rb +0 -32
  171. data/visualruby_examples/listview_objects/bin/DataObjectGUI.rb +0 -41
  172. data/visualruby_examples/listview_objects/bin/ListViewObjectsGUI.rb +0 -18
  173. data/visualruby_examples/listview_objects/bin/glade/DataObject.glade +0 -198
  174. data/visualruby_examples/listview_objects/bin/glade/ListViewObjectsGUI.glade +0 -102
  175. data/visualruby_examples/listview_objects/main.rb +0 -13
  176. data/visualruby_examples/simple_ruby_gui/.vr_settings.yaml +0 -16
  177. data/visualruby_examples/simple_ruby_gui/bin/DataObjectGUI.rb +0 -20
  178. data/visualruby_examples/simple_ruby_gui/bin/glade/DataObjectGUI.glade +0 -163
  179. data/visualruby_examples/simple_ruby_gui/main.rb +0 -16
  180. data/visualruby_examples/treeview/.vr_settings.yaml +0 -12
  181. data/visualruby_examples/treeview/bin/glade/MyClass.glade +0 -48
  182. data/visualruby_examples/treeview/main.rb +0 -14
@@ -0,0 +1,93 @@
1
+ module VR
2
+
3
+ class TreeViewColumn < Gtk::TreeViewColumn
4
+
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
+ #puts "VR::ComboCol Renderer: " + ren.class.name + " model_col: " + ren.model_col.to_s
37
+ #puts "VR::ComboCol Iter: " + iter.class.name
38
+ #puts "VR::ComboCol Model: " + model.class.name
39
+ #puts "VR::ComboCol Cell: " + iter[ren.model_col].class.name
40
+ #puts "VR::ComboCol iter[ren.model_col]: " + iter[ren.model_col].selected.to_s
41
+ # display_val = iter[rend.model_col].selected.to_s
42
+ display_val = iter[@view.id(sym)].selected.to_s
43
+ #puts display_val
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
+ #iter = model.get_iter(iter.path)
55
+ #puts "DateTime:" + iter[ren.model_col].class.name + ":" + iter[ren.model_col].to_s
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
+
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
84
+
85
+ # def sortable=(is_sortable)
86
+ # self.sort_column_id = cell_renderers[0].model_col
87
+ # self.clickable = is_sortable
88
+ # end
89
+
90
+ end
91
+
92
+ end
93
+
@@ -1,136 +1,144 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated with glade 3.18.3 -->
2
3
  <interface>
3
- <requires lib="gtk+" version="2.16"/>
4
- <!-- interface-naming-policy project-wide -->
4
+ <requires lib="gtk+" version="3.0"/>
5
+ <object class="GtkAdjustment" id="hour">
6
+ <property name="lower">1</property>
7
+ <property name="upper">12</property>
8
+ <property name="step_increment">1</property>
9
+ </object>
10
+ <object class="GtkAdjustment" id="minute">
11
+ <property name="upper">59</property>
12
+ <property name="step_increment">1</property>
13
+ </object>
5
14
  <object class="GtkWindow" id="window1">
6
- <property name="width_request">700</property>
7
- <property name="height_request">700</property>
8
- <property name="visible">True</property>
9
15
  <property name="can_focus">False</property>
10
- <property name="title" translatable="yes">Select Visual Ruby Project Root</property>
11
- <property name="modal">True</property>
12
- <property name="default_width">800</property>
13
- <property name="default_height">800</property>
14
- <signal name="destroy" handler="destroy_window" swapped="no"/>
16
+ <property name="title" translatable="yes">Calendar</property>
17
+ <property name="window_position">center</property>
15
18
  <child>
16
- <object class="GtkVBox" id="vbox1">
19
+ <object class="GtkBox" id="box1">
17
20
  <property name="visible">True</property>
18
21
  <property name="can_focus">False</property>
19
- <property name="spacing">10</property>
22
+ <property name="margin_left">10</property>
23
+ <property name="margin_right">10</property>
24
+ <property name="margin_top">10</property>
25
+ <property name="margin_bottom">10</property>
26
+ <property name="orientation">vertical</property>
27
+ <property name="spacing">8</property>
20
28
  <child>
21
- <object class="GtkLabel" id="label1">
29
+ <object class="GtkCalendar" id="date">
22
30
  <property name="visible">True</property>
23
- <property name="can_focus">False</property>
24
- <property name="label" translatable="yes">&lt;big&gt;Select from the existing projects, or open a new one.&lt;/big&gt;</property>
25
- <property name="use_markup">True</property>
31
+ <property name="can_focus">True</property>
32
+ <property name="year">2016</property>
33
+ <property name="month">4</property>
34
+ <property name="day">5</property>
26
35
  </object>
27
36
  <packing>
28
37
  <property name="expand">False</property>
29
38
  <property name="fill">True</property>
30
- <property name="padding">9</property>
31
39
  <property name="position">0</property>
32
40
  </packing>
33
41
  </child>
34
42
  <child>
35
- <object class="GtkHBox" id="hbox1">
43
+ <object class="GtkBox" id="hboxTime">
36
44
  <property name="visible">True</property>
37
45
  <property name="can_focus">False</property>
38
46
  <child>
39
- <object class="GtkScrolledWindow" id="scrolledwindowProjTree">
47
+ <object class="GtkSpinButton" id="spinbutton1">
40
48
  <property name="visible">True</property>
41
49
  <property name="can_focus">True</property>
42
- <property name="hscrollbar_policy">automatic</property>
43
- <property name="vscrollbar_policy">automatic</property>
44
- <child>
45
- <placeholder/>
46
- </child>
50
+ <property name="adjustment">hour</property>
47
51
  </object>
48
52
  <packing>
49
- <property name="expand">True</property>
53
+ <property name="expand">False</property>
50
54
  <property name="fill">True</property>
51
- <property name="padding">20</property>
52
55
  <property name="position">0</property>
53
56
  </packing>
54
57
  </child>
55
- </object>
56
- <packing>
57
- <property name="expand">True</property>
58
- <property name="fill">True</property>
59
- <property name="position">1</property>
60
- </packing>
61
- </child>
62
- <child>
63
- <object class="GtkHButtonBox" id="hbuttonbox1">
64
- <property name="visible">True</property>
65
- <property name="can_focus">False</property>
66
- <property name="spacing">11</property>
67
- <property name="layout_style">center</property>
68
58
  <child>
69
- <object class="GtkCheckButton" id="checkBackup">
70
- <property name="label" translatable="yes">Show Backup</property>
59
+ <object class="GtkSpinButton" id="spinbutton2">
60
+ <property name="visible">True</property>
61
+ <property name="can_focus">True</property>
62
+ <property name="adjustment">minute</property>
63
+ </object>
64
+ <packing>
65
+ <property name="expand">False</property>
66
+ <property name="fill">True</property>
67
+ <property name="position">1</property>
68
+ </packing>
69
+ </child>
70
+ <child>
71
+ <object class="GtkCheckButton" id="am">
72
+ <property name="label" translatable="yes">am</property>
71
73
  <property name="visible">True</property>
72
74
  <property name="can_focus">True</property>
73
75
  <property name="receives_default">False</property>
74
- <property name="use_action_appearance">False</property>
76
+ <property name="xalign">0</property>
75
77
  <property name="draw_indicator">True</property>
76
- <signal name="toggled" handler="checkBackup_toggled" swapped="no"/>
77
78
  </object>
78
79
  <packing>
79
80
  <property name="expand">False</property>
80
- <property name="fill">False</property>
81
- <property name="padding">5</property>
82
- <property name="position">0</property>
81
+ <property name="fill">True</property>
82
+ <property name="position">2</property>
83
83
  </packing>
84
84
  </child>
85
85
  <child>
86
- <object class="GtkButton" id="buttonSelect">
87
- <property name="label" translatable="yes">Select Folder</property>
86
+ <object class="GtkCheckButton" id="pm">
87
+ <property name="label" translatable="yes">pm</property>
88
88
  <property name="visible">True</property>
89
89
  <property name="can_focus">True</property>
90
- <property name="receives_default">True</property>
91
- <property name="use_action_appearance">False</property>
92
- <signal name="clicked" handler="buttonSelect_clicked" swapped="no"/>
90
+ <property name="receives_default">False</property>
91
+ <property name="xalign">0</property>
92
+ <property name="draw_indicator">True</property>
93
93
  </object>
94
94
  <packing>
95
95
  <property name="expand">False</property>
96
- <property name="fill">False</property>
97
- <property name="position">1</property>
96
+ <property name="fill">True</property>
97
+ <property name="position">3</property>
98
98
  </packing>
99
99
  </child>
100
+ </object>
101
+ <packing>
102
+ <property name="expand">False</property>
103
+ <property name="fill">True</property>
104
+ <property name="position">1</property>
105
+ </packing>
106
+ </child>
107
+ <child>
108
+ <object class="GtkButtonBox" id="buttonbox1">
109
+ <property name="visible">True</property>
110
+ <property name="can_focus">False</property>
111
+ <property name="layout_style">spread</property>
100
112
  <child>
101
113
  <object class="GtkButton" id="buttonCancel">
102
114
  <property name="label" translatable="yes">Cancel</property>
103
115
  <property name="visible">True</property>
104
116
  <property name="can_focus">True</property>
105
117
  <property name="receives_default">True</property>
106
- <property name="use_action_appearance">False</property>
107
- <signal name="clicked" handler="destroy_window" swapped="no"/>
108
118
  </object>
109
119
  <packing>
110
120
  <property name="expand">False</property>
111
- <property name="fill">False</property>
112
- <property name="position">2</property>
121
+ <property name="fill">True</property>
122
+ <property name="position">0</property>
113
123
  </packing>
114
124
  </child>
115
125
  <child>
116
- <object class="GtkButton" id="buttonOpen">
117
- <property name="label" translatable="yes">Open</property>
126
+ <object class="GtkButton" id="buttonSave">
127
+ <property name="label" translatable="yes">Save</property>
118
128
  <property name="visible">True</property>
119
129
  <property name="can_focus">True</property>
120
130
  <property name="receives_default">True</property>
121
- <property name="use_action_appearance">False</property>
122
131
  </object>
123
132
  <packing>
124
133
  <property name="expand">False</property>
125
- <property name="fill">False</property>
126
- <property name="position">3</property>
134
+ <property name="fill">True</property>
135
+ <property name="position">1</property>
127
136
  </packing>
128
137
  </child>
129
138
  </object>
130
139
  <packing>
131
140
  <property name="expand">False</property>
132
141
  <property name="fill">True</property>
133
- <property name="padding">10</property>
134
142
  <property name="position">2</property>
135
143
  </packing>
136
144
  </child>
@@ -1,16 +1,15 @@
1
- <?xml version="1.0"?>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated with glade 3.16.1 -->
2
3
  <interface>
3
- <requires lib="gtk+" version="2.16"/>
4
- <!-- interface-naming-policy project-wide -->
4
+ <requires lib="gtk+" version="3.0"/>
5
5
  <object class="GtkWindow" id="window1">
6
6
  <property name="visible">True</property>
7
- <property name="type">popup</property>
7
+ <property name="can_focus">False</property>
8
8
  <property name="modal">True</property>
9
- <property name="window_position">center-always</property>
10
- <signal name="destroy" handler="destroy_window"/>
11
9
  <child>
12
10
  <object class="GtkImage" id="image1">
13
11
  <property name="visible">True</property>
12
+ <property name="can_focus">False</property>
14
13
  <property name="stock">gtk-missing-image</property>
15
14
  </object>
16
15
  </child>
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated with glade 3.16.1 -->
3
+ <interface>
4
+ <requires lib="gtk+" version="3.0"/>
5
+ <object class="GtkWindow" id="window1">
6
+ <property name="can_focus">False</property>
7
+ <property name="title" translatable="yes">Edit Text</property>
8
+ <property name="window_position">center</property>
9
+ <child>
10
+ <object class="GtkBox" id="box1">
11
+ <property name="visible">True</property>
12
+ <property name="can_focus">False</property>
13
+ <property name="margin_left">10</property>
14
+ <property name="margin_right">10</property>
15
+ <property name="margin_top">5</property>
16
+ <property name="margin_bottom">10</property>
17
+ <property name="orientation">vertical</property>
18
+ <property name="spacing">10</property>
19
+ <child>
20
+ <object class="GtkScrolledWindow" id="scrolledwindow1">
21
+ <property name="visible">True</property>
22
+ <property name="can_focus">True</property>
23
+ <property name="shadow_type">in</property>
24
+ <child>
25
+ <object class="GtkTextView" id="text">
26
+ <property name="visible">True</property>
27
+ <property name="can_focus">True</property>
28
+ <property name="wrap_mode">word</property>
29
+ </object>
30
+ </child>
31
+ </object>
32
+ <packing>
33
+ <property name="expand">True</property>
34
+ <property name="fill">True</property>
35
+ <property name="position">0</property>
36
+ </packing>
37
+ </child>
38
+ <child>
39
+ <object class="GtkButtonBox" id="buttonbox1">
40
+ <property name="visible">True</property>
41
+ <property name="can_focus">False</property>
42
+ <property name="spacing">15</property>
43
+ <property name="layout_style">end</property>
44
+ <child>
45
+ <object class="GtkButton" id="buttonCancel">
46
+ <property name="label" translatable="yes">Cancel</property>
47
+ <property name="visible">True</property>
48
+ <property name="can_focus">True</property>
49
+ <property name="receives_default">True</property>
50
+ </object>
51
+ <packing>
52
+ <property name="expand">False</property>
53
+ <property name="fill">True</property>
54
+ <property name="position">0</property>
55
+ </packing>
56
+ </child>
57
+ <child>
58
+ <object class="GtkButton" id="buttonSave">
59
+ <property name="label" translatable="yes">Save</property>
60
+ <property name="visible">True</property>
61
+ <property name="can_focus">True</property>
62
+ <property name="receives_default">True</property>
63
+ <property name="relief">half</property>
64
+ <property name="yalign">0.49000000953674316</property>
65
+ </object>
66
+ <packing>
67
+ <property name="expand">False</property>
68
+ <property name="fill">True</property>
69
+ <property name="position">1</property>
70
+ </packing>
71
+ </child>
72
+ </object>
73
+ <packing>
74
+ <property name="expand">False</property>
75
+ <property name="fill">True</property>
76
+ <property name="position">1</property>
77
+ </packing>
78
+ </child>
79
+ </object>
80
+ </child>
81
+ </object>
82
+ </interface>
@@ -0,0 +1,77 @@
1
+ ---
2
+ - - <nav id="home-section" class="section">
3
+ - ! "<nav id=\"home-section\" class= \"section\" >\n <a href=/index.html><img
4
+ src=http://visualruby.net/img/splash_small.png></a><br>"
5
+ - - Video:uploading_gems.avi
6
+ - <iframe width="640" height="480" src="http://www.youtube.com/embed/6VsXlCjU89c"
7
+ frameborder="0" allowfullscreen></iframe>
8
+ - - Video:quickstart.avi
9
+ - <iframe width="640" height="480" src="http://www.youtube.com/embed/cFejLEs5Rb0"
10
+ frameborder="0" allowfullscreen></iframe>
11
+ - - Video:coinflip.avi
12
+ - <iframe width="420" height="315" src="http://www.youtube.com/embed/CY-0OYkg7b8"
13
+ frameborder="0" allowfullscreen></iframe>
14
+ - - Video:rdoc.avi
15
+ - <iframe width="640" height="480" src="http://www.youtube.com/embed/y_IPPs-cqpk"
16
+ frameborder="0" allowfullscreen></iframe>
17
+ - - GtkTreeIter
18
+ - ! '<a href="http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeIter">Gtk::TreeIter</a> '
19
+ - - GtkTreeViewColumn
20
+ - <a href="http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeViewColumn">Gtk::TreeViewColumn</a>
21
+ - - GtkCellRendererText
22
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>
23
+ - - GtkTreeView
24
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeView>Gtk::TreeView</a>
25
+ - - GtkCellRendererText
26
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>
27
+ - - GtkCellRendererCombo
28
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererCombo</a>
29
+ - - GtkCellRendererToggle
30
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererToggle</a>
31
+ - - GtkCellRendererSpin
32
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererSpin>Gtk::CellRendererSpin</a>
33
+ - - GtkCellRendererProgress
34
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererProgress>Gtk::CellRendererProgress</a>
35
+ - - GtkCellRendererPixbuf
36
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererPixbuf>Gtk::CellRendererPixbuf</a>
37
+ - - GtkEntry
38
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AEntry>Gtk::Entry</a>
39
+ - - GtkSpinButton
40
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASpinButton>Gtk::SpinButton</a>
41
+ - - GdkPixbuf
42
+ - <a href=http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gdk%3A%3APixbuf>Gdk::Pixbuf</a>
43
+ - - ActiveRecordBase
44
+ - <a href=http://api.rubyonrails.org/classes/ActiveRecord/Base.html>ActiveRecord::Base</a>
45
+ - - GtkComboBoxEntry
46
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AComboBoxEntry>Gtk::ComboBoxEntry</a>
47
+ - - GtkProgressBar
48
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AProgressBar>Gtk::ProgressBar</a>
49
+ - - GtkSelection
50
+ - <A href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASelection>Gtk::Selection</a>
51
+ - - <div id="home-section" class="section">
52
+ - ! "<div id=\"home-section\" class= \"section\" >\n <a href=/index.html><img
53
+ src=http://visualruby.net/img/splash_small.png></a><br>"
54
+ - - <title>index - RDoc Documentation</title>
55
+ - <title>Visual Ruby -- GUI with Ruby and Glade</title>
56
+ - - <title>Download - RDoc Documentation</title>
57
+ - <title>Download Visual Ruby -- Make GUIs with Ruby!</title>
58
+ - - <title>RubyGems Tutorial - RDoc Documentation</title>
59
+ - <title>RubyGems Tutorial - Use Visual Ruby to Push Gems!</title>
60
+ - - <title>Signals Tutorial - RDoc Documentation</title>
61
+ - <title>Ruby Signals Tutorial -- signal_connect with Visual Ruby!</title>
62
+ - - <title>ListView Tutorial - RDoc Documentation</title>
63
+ - <title>Ruby ListView Tutorial</title>
64
+ - - <title>Child Windows Tutorial - RDoc Documentation</title>
65
+ - <title>Ruby Child Windows Tutorial</title>
66
+ - - <title>Help--Contact Info - RDoc Documentation</title>
67
+ - <title>Visual Ruby Help</title>
68
+ - - video:activerecord.avi
69
+ - <iframe width="640" height="480" src="http://www.youtube.com/embed/uySVKltD7fk"
70
+ frameborder="0" allowfullscreen></iframe>
71
+ - - GLibInstantiatable#signal_connect
72
+ - <a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?GLib%3A%3AInstantiatable#signal_connect>Glib::Instaniatable#signal_connect</a>
73
+ - - ActiveRecordBase
74
+ - <a href=http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000341>ActiveRecord::Base</a>
75
+ - - video:activerecord2.avi
76
+ - <iframe width="640" height="480" src="http://www.youtube.com/embed/3f1Lj5Q2Q8g"
77
+ frameborder="0" allowfullscreen></iframe>
data/vrlib/vrlib.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "gtk3"
2
+ require "require_all"
3
+ require "date"
4
+ require "yaml"
5
+
6
+ require_rel 'lib/'
7
+