ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 18日 (土) 01:53:04 JST
------------------------- REMOTE_ADDR = 70.49.49.99 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. Finally, drag and drop interfaces are also implemented. +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. {{image_right("treev-trees-ok.png")}}