[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-addrnhs

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 4日 (木) 02:17:02 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-SELECT
 ED-rows.rb*))example,  we will learn how to handle single and multiple selections.
 
 === Single Selections
 
@@ -632,7 +632,7 @@
 
 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 remov
 ing a row, we are removing the selected row and all its children, as well as all children of children, if they exist.
+The last, 'imaginary root node issue', we have also seen in the above (adding-n-removing-SELECTED-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-SELECTED-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 pare
 nt row. When removing a row, we are removing the selected row and all its children, as well as all children of children, if they exist.
 
 
 




ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index