ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 21日 (金) 08:34:52 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -3,7 +3,7 @@ == Using Gtk::TreeStore -Beside Gtk::ListStore, there is one more type of built-in model used with tree view called Gtk::TreeStore which provides the same functionality as Gtk::ListStore, except the data can be organized into a multilayered tree. Both Gtk::ListStore and Gtk::TreeStore implement the Gtk::TreeModel interface, and inherit all of its methods. They also implement the Gtk::TreeSortable interface so you can sort the list using the view. These models provide the data structure as well as all appropriate tree interfaces. As a result, implementing drag and drop, sorting, and storing data is trivial. +Beside Gtk::ListStore, there is one more type of built-in model used with tree view called Gtk::TreeStore which provides the same functionality as Gtk::ListStore, except the data can be organized into a multilayered tree. Despite my intentions to avoid being repetitive, I will repeat the rest of this paragraph: ""Both Gtk::ListStore and Gtk::TreeStore implement the Gtk::TreeModel interface, and inherit all of its methods. They also implement the Gtk::TreeSortable interface so you can sort the list using the view. These models provide the data structure as well as all appropriate tree interfaces. As a result, implementing drag and drop, sorting, and storing data is trivial."" {{image_right("treev-trees-ok.png")}}