ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 30日 (日) 03:49:47 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -3,7 +3,7 @@ == Adding Rows and Handling Selections -All of the examples that we have encountered so far in the "Tree View Widget" tutorial session, load the data into the tree model during the start-up. However, it is also possible to load data interactively. Here we will first expand the((*Grocery List*))application to allow users to add and remove products, and then investigate a more elaborate tree view application of products, we also have already seen in the 'Using Gtk::TreeStore' chapter where we were looking at different ways to load ascii data (arrays) into tree store in the segment entitled '((<"Tedious Job of Loading Multidimensional Tree Store"|tut-gtk2-treev-trees#Tedious Job of Loading Multidimensional Tree Store>))'. In this later expanded (treev-MultiDim-loadASCI-add-n-rm-rows.rb) example we will deal particularly with the issue of child hierarchies that rows in a tree view may have and which too are affected when adding new or removing existing rows. However, before we dive into the((*adding-n-removing-rows.r b*))example, we will learn how to handle single and multiple selections. +All of the examples that we have encountered so far in the "Tree View Widget" tutorial session, load the data into the tree model during the start-up. However, it is also possible to load data interactively. Here we will first expand the((*Grocery List*))application to allow users to add and remove products, and then investigate a more elaborate tree view application of products, we also have already seen in the 'Using Gtk TreeStore' chapter where we were looking at different ways to load ascii data (arrays) into tree store in the segment entitled '((<"Tedious Job of Loading Multidimensional Tree Store"|tut-gtk2-treev-trees#Tedious Job of Loading Multidimensional Tree Store>))'. In this later expanded (treev-MultiDim-loadASCI-add-n-rm-rows.rb) example we will deal particularly with the issue of child hierarchies that rows in a tree view may have and which too are affected when adding new or removing existing rows. However, before we dive into the((*adding-n-removing-rows.rb *))example, we will learn how to handle single and multiple selections. === Single Selections