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

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 28日 (金) 11:06:53 JST


-------------------------
REMOTE_ADDR = 184.145.80.187
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-rr
-------------------------
@@ -214,7 +214,7 @@
 
 {{image_right "TreeStore-n-Refs.png"}}
 
-The following is the extended version of the earlier spaghetti code example demonstrating some of the points we learned so far here. (1) We manually created three levels deep tree view. (2) implemented the 'set_cell_data_func' code block for 'Age' tree view column which maps to model's column three, however, this is not explicitly stated when column is instantiated. Nevertheless, we obtain the age value from model via((*year_born=iter[2],*)) and generate the age of the person if it is a valid value. More interesting feature is how we handle foreground colour with the Gtk::CellRendererText#forefround_set  and Gtk::CellRendererText#forgeground= methods. (3) Use virtual tree view column with title or header 'Path & Depth', which has no corresponding model column. In it we display depth and path values for each row. And lastly: (4) in the button we test, if we can access a row in the tree view by providing a string value "2:0:1" for path by retrieving its tree row reference.
+The following is the extended version of the earlier spaghetti code example demonstrating some of the points we learned so far here. (1) We manually created three levels deep tree view. (2) implemented the 'set_cell_data_func' code block for 'Age' tree view column which maps to model's column three, however, this is not explicitly stated when column is instantiated. Nevertheless, we obtain the year of birth value from model via((*year_born=iter[2],*))and generate the age of the person if it is a valid value. More interesting feature is how we handle foreground colour with the Gtk::CellRendererText#forefround_set  and Gtk::CellRendererText#forgeground= methods. (3) Use virtual tree view column with title or header 'Path & Depth', which has no corresponding model column. In it we display depth and path values for each row. And lastly: (4) in the button we test, if we can access a row in the tree view by providing a string value "2:0:1" for path by retrieving its tree row refer
 ence.
 
 
 ((*manually-build-multilevel-tview-summary.rb*))




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