ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 30日 (日) 03:19:20 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. With the exception of the "Age" virtual column in the "Test Obtaining Iters From TreeReference" example, and the "Count" values in the "Grocery List" example, where in parent rows the "Count" value for each category is set initially to zero, and is calculated during the run-time, the contents of the store does not change after it is initially set. Here we will expand the Grocery List application to allow users to add and remove products. However, before we dive into the((*adding-n-removing-rows.rb*))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 looked at 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 example we will deal particularly with the issue of child hierarchies that rows in a tree view may have. However, before we dive into the((*adding-n-removing-rows.rb*))example, we will learn how to handle single and multiple selections. === Single Selections