ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 20日 (木) 02:43:25 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -14,7 +14,7 @@ === Gtk::TreeModel -Based on the titles of this chapter (Tree View) and this paragraph, as well as its introduction discussions about the Gtk::TreeModel one may conclude that the fundamental data structure of both view and the model classes is that of a tree. This is only partially true, since the simplest form of a tree is a single branch or in computer parlance a list. Due to the fact that a list is also a tree, little or no effort has been made to separate the two, at least in the introductory paragraphs into this topic. Nevertheless, please keep in mind that our first program examples are about the one dimensional lists, and that unfortunately, we can not avoid using the word tree, when it comes to tree view or tree model for that matter. This situation is somewhat alleviated by the fact that Gtk+ comes with two built-in data stores or models, namely, Gtk::ListStore and Gtk::TreeStore. As the names imply, Gtk::ListStore is used for simple lists of data items where items have no hierarchical parent-child relationships, and the Gtk::TreeStore which is used for tree-like data structures, where items can spawn children and parent-child relationships can evolve. +Based on the titles of this chapter (Tree View) and this paragraph, as well as its introduction discussions about the Gtk::TreeModel one may conclude that the fundamental data structure of both view and the model classes is that of a tree. This is only partially true, since the simplest form of a tree is a single branch or in computer parlance a list. Due to the fact that a list is also a tree, little or no effort has been made to separate the two, at least in the introductory paragraphs into this topic. Nevertheless, please keep in mind that our first program examples are about the one dimensional lists, and that unfortunately, we can not avoid using the word tree, when it comes to tree view or tree model for that matter. This situation is somewhat alleviated by the fact that GTK+ comes with two built-in data stores or models, namely, Gtk::ListStore and Gtk::TreeStore. As the names imply, Gtk::ListStore is used for simple lists of data items where items have no hierarchical parent-child relationships, and the Gtk::TreeStore which is used for tree-like data structures, where items can spawn children and parent-child relationships can evolve.