ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 2日 (火) 00:53:27 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -641,6 +641,6 @@ Finally, lets also address the two issues, mentioned earlier. The first when introducing the first version of the 'treev-MultiDim-load-asci-table.rb' program example under the title ((<"Tedious Job of Loading Multidimensional Tree Store:"|tut-gtk2-treev-trees#Tedious Job of Loading Multidimensional Tree Store>)), where we were concerned about adding and removing rows from a multi-level tree view and tree store, and the second about the 'imaginary root node' issue which we encountered in the segment called '((<"Imaginary, invisible root node"|tut-gtk2-treev-rr#Imaginary, invisible root node:>))'. -The last, 'imaginary root node issue', we have also seen in the above (adding-n-removing-rows.rb) example program, though we did not really expose it. But it will become much more obvious in the next example, when discovering that there exist no way that would allow us to add or create the top level tree view entries. As promised this last example is the extension of the 'treev-MultiDim-load-asci-table.rb' program in which we loaded the tree model and view, from the asci table residing in the separate file as the Ruby module called 'initialize-products-from-asci-table.rb'. We are going to use the same module file here too. What is new is the feature that allows us to add and remove rows. This time however, we use a different row selection mechanism than in the above (adding-n-removing-rows.rb) example program. In this program, when we insert or delete a row we point to it by clicking on it. When adding a row we are adding a single child to an existing parent row. When removi ng a row, we are removing the selected row and all its children if they exist. +The last, 'imaginary root node issue', we have also seen in the above (adding-n-removing-rows.rb) example program, though we did not really expose it. But it will become much more obvious in the next example, when discovering that there exist no way that would allow us to add or create the top level tree view entries. As promised this last example is the extension of the 'treev-MultiDim-load-asci-table.rb' program in which we loaded the tree model and view, from the asci table residing in the separate file as the Ruby module called 'initialize-products-from-asci-table.rb'. We are going to use the same module file here too. What is new is the feature that allows us to add and remove rows. This time however, we use a different row selection mechanism than in the above (adding-n-removing-rows.rb) example program. In this program, when we insert or delete a row, we point to it by clicking on it. When adding a row we are adding a single child to an existing parent row. When remov ing a row, we are removing the selected row and all its children if they exist. #### path = /(.+)(:\d+)/ =~ path ? $1 : $2 #### BUG? Gtk::TreePath#up! <<< doesn't work