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

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 22日 (水) 02:57:42 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees
-------------------------
@@ -7,7 +7,7 @@
 
 {{image_right("treev-trees-ok.png")}}
 
-When exploring the design features and elements of a list and tree store, where it should be noted that "list store" is merely a cut down or a limited version of "tree store", we encounter many new design features, that need explanation. In addition to commonly known items like columns and rows, there are also things Gtk::TreeIter, Gtk::TreePath and Gtk::TreeRowReference, which we have introduced on previous pages. Couple this with Gtk::TreeView and the amount of new material grows even more. One additional item we still need to add to our list of things to learn is the ((*set_cell_data_func*)) helper function. But before we do, and before we explain how to build multilayered tree store more systematically in the segment below entitled((*Building a Multilayered Tree Store,*)) lets look at a revised "Grocery List" example program from previous page here called "treestore.rb", to quickly point out how building a list store differs from building a tree store. This program split
 s the products into two categories: "Cleaning Supplies" and "Food", which both have children of their own. The "Count" or quantity of each category is set initially to zero, and is calculated, counting all children, which have the "Buy" column set to TRUE, during the run-time hence displaying 4 and 7 respectively.  Note, there are two logical columns under the header ((*Buy.*)) The left logical column represents the parent column with a small expander triangle at the edge, slightly shifted to the right is the row of children.
+When exploring the design features and elements of a list and tree store, where it should be noted that "list store" is merely a cut down or a limited version of "tree store", we encounter many new design features, that need explanation. In addition to commonly known items like columns and rows, there are also things Gtk::TreeIter, Gtk::TreePath and Gtk::TreeRowReference, which we have introduced on previous pages. Couple this with Gtk::TreeView and the amount of new material grows even more. One additional item we still need to add to our list of things to learn is the ((*set_cell_data_func*)) helper function. Though there is a chapter devoted to it, we will look ahead here and explain it sufficiently, so you will be able to understand the program, displaying depth and path of the tree view. But before we "prematurely" look at the "set_cell_data_func()", and before we explain how to build multilayered tree store more systematically in the segment below entitled((*Building a
  Multilayered Tree Store,*)) lets look at a revised "Grocery List" example program from previous page here called "treestore.rb", to quickly point out how building a list store differs from building a tree store. This program splits the products into two categories: "Cleaning Supplies" and "Food", which both have children of their own. The "Count" or quantity of each category is set initially to zero, and is calculated, counting all children, which have the "Buy" column set to TRUE, during the run-time hence displaying 4 and 7 respectively.  Note, there are two logical columns under the header ((*Buy.*)) The left logical column represents the parent column with a small expander triangle at the edge, slightly shifted to the right is the row of children.
 
 
 {{br}}




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る