ruby-****@sourc*****
ruby-****@sourc*****
2011年 6月 19日 (日) 04:22:43 JST
------------------------- REMOTE_ADDR = 78.52.127.103 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -22,7 +22,7 @@ The model is represented as a hierarchical tree of strongly-typed, columned data. In other words, the model can be seen as a tree where every node has different values depending on which column is being queried. The type of data found in a column is determined by using Ruby Class (ie. Object, Integer, Float, String, Hash, Gdk::Pixbuf, etc.). The types are homogeneous per column across all nodes. -In order to make life simpler for programmers who do not need to write their own specialized model, two generic models are provided - the Gtk::TreeStore and the Gtk::ListStore. To use these, the developer simply pushes data into these models as necessary. 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. For the vast majority of trees and lists, these two models are sufficient. +In order to make life simpler for programmers who do not need to write their own specialized model (which is ((<not possible in Ruby|URL:http://www.ruby-forum.com/topic/114021>)) as of ruby-gnome2 version 0.19.3), two generic models are provided - the Gtk::TreeStore and the Gtk::ListStore. To use these, the developer simply pushes data into these models as necessary. 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. For the vast majority of trees and lists, these two models are sufficient. Gtk::ListStore allows you to create a list of elements with multiple columns. Each row is a child of the root node, so only one level of rows is displayed. Basically, Gtk::ListStore is a tree structure that has no hierarchy. It is only provided because faster algorithms exist for interacting with the models that do not have any children items. @@ -353,187 +353,4 @@ * Gtk::CellRendererText#set_ellipsize(ellipsize) * Gtk::CellRendererText#ellipsize_set? * Gtk::CellRendererText#ellipsize_set=(value) - * Gtk::CellRendererText#set_ellipsize_set(value) - * Gtk::CellRendererText#family - * Gtk::CellRendererText#family=(family) - * Gtk::CellRendererText#set_family(family) - * Gtk::CellRendererText#family_set? - * Gtk::CellRendererText#family_set=(value) - * Gtk::CellRendererText#set_family_set(value) - * Gtk::CellRendererText#fixed_height_from_font=(number_of_rows) - * Gtk::CellRendererText#set_fixed_height_from_font(number_of_rows) - * Gtk::CellRendererText#font - * Gtk::CellRendererText#font=(font) - * Gtk::CellRendererText#set_font(font) - * Gtk::CellRendererText#font_desc - * Gtk::CellRendererText#font_desc=(font_desc) - * Gtk::CellRendererText#set_font_desc - * Gtk::CellRendererText#foreground=(color_name) - * Gtk::CellRendererText#set_foreground(color_name) - * Gtk::CellRendererText#foreground_gdk - * Gtk::CellRendererText#foreground_gdk=(color) - * Gtk::CellRendererText#set_foreground_gdk(color) - * Gtk::CellRendererText#foreground_set? - * Gtk::CellRendererText#foreground_set=(value) - * Gtk::CellRendererText#set_foreground_set(value) - * Gtk::CellRendererText#language - * Gtk::CellRendererText#language=(language) - * Gtk::CellRendererText#set_language(language) - * Gtk::CellRendererText#language_set? - * Gtk::CellRendererText#language_set=(value) - * Gtk::CellRendererText#set_language_set(value) - * Gtk::CellRendererText#markup=(text) - * Gtk::CellRendererText#set_markup(text) - * Gtk::CellRendererText#rise - * Gtk::CellRendererText#rise=(offset) - * Gtk::CellRendererText#set_rise(offset) - * Gtk::CellRendererText#rise_set? - * Gtk::CellRendererText#rise_set=(value) - * Gtk::CellRendererText#set_rise_set(value) - * Gtk::CellRendererText#scale - * Gtk::CellRendererText#scale=(scale) - * Gtk::CellRendererText#set_scale(scale) - * Gtk::CellRendererText#scale_set? - * Gtk::CellRendererText#scale_set=(value) - * Gtk::CellRendererText#set_scale_set(value) - * Gtk::CellRendererText#single_paragraph_mode? - * Gtk::CellRendererText#single_paragraph_mode=(mode) - * Gtk::CellRendererText#set_single_paragraph_mode(mode) - * Gtk::CellRendererText#size - * Gtk::CellRendererText#size=(size) - * Gtk::CellRendererText#set_size(size) - * Gtk::CellRendererText#size_points - * Gtk::CellRendererText#size_points=(size) - * Gtk::CellRendererText#set_size_points(size) - * Gtk::CellRendererText#size_set? - * Gtk::CellRendererText#size_set=(value) - * Gtk::CellRendererText#set_size_set(value) - * Gtk::CellRendererText#stretch - * Gtk::CellRendererText#stretch=(stretch) - * Gtk::CellRendererText#set_stretch(stretch) - * Gtk::CellRendererText#stretch_set? - * Gtk::CellRendererText#stretch_set=(value) - * Gtk::CellRendererText#set_stretch_set(value) - * Gtk::CellRendererText#strikethrough? - * Gtk::CellRendererText#strikethrough=(strikethrough) - * Gtk::CellRendererText#set_strikethrough(strikethrough) - * Gtk::CellRendererText#strikethrough_set? - * Gtk::CellRendererText#strikethrough_set=(value) - * Gtk::CellRendererText#set_strikethrough_set(value) - * Gtk::CellRendererText#style - * Gtk::CellRendererText#style=(style) - * Gtk::CellRendererText#set_style(style) - * Gtk::CellRendererText#style_set? - * Gtk::CellRendererText#style_set=(value) - * Gtk::CellRendererText#set_style_set(value) - * Gtk::CellRendererText#text - * Gtk::CellRendererText#text=(text) - * Gtk::CellRendererText#set_text(text) - * Gtk::CellRendererText#underline - * Gtk::CellRendererText#underline=(underline) - * Gtk::CellRendererText#set_underline(underline) - * Gtk::CellRendererText#variant - * Gtk::CellRendererText#variant=(variant) - * Gtk::CellRendererText#set_variant(variant) - * Gtk::CellRendererText#variant_set? - * Gtk::CellRendererText#variant_set=(value) - * Gtk::CellRendererText#set_variant_set(value) - * Gtk::CellRendererText#weight - * Gtk::CellRendererText#weight=(weight) - * Gtk::CellRendererText#set_weight(weight) - * Gtk::CellRendererText#weight_set? - * Gtk::CellRendererText#weight_set=(value) - * Gtk::CellRendererText#set_weight_set(value) - * Gtk::CellRendererText#width_chars - * Gtk::CellRendererText#width_chars=(width_chars) - * Gtk::CellRendererText#set_width_chars(width_chars) - * Gtk::CellRendererText#wrap_mode - * Gtk::CellRendererText#wrap_mode=(wrap_mode) - * Gtk::CellRendererText#set_wrap_mode(wrap_mode) - * Gtk::CellRendererText#wrap_width - * Gtk::CellRendererText#wrap_width=(wrap_width) - * Gtk::CellRendererText#set_wrap_width(wrap_width) - * Gtk::CellRendererText#align_set=(align_set) - * Gtk::CellRendererText#align_set? - * Gtk::CellRendererText#set_align_set(align_set) - * Gtk::CellRendererText#set_underline_set(underline_set) - * Gtk::CellRendererText#underline_set=(underline_set) - * Gtk::CellRendererText#underline_set? - - -:Attributes: - - * alignment - Pango::Alignment (Read/Write) - * attributes - Pango::AttrList (Read/Write) - * background - String (Write) - * background-gdk - Gdk::Color (Read/Write) - * background-set - true or false (Read/Write) - * editable - true or false (Read/Write) - * editable-set - true or false (Read/Write) - * ellipsize - Pango::Layout::EllipsizeMode (Read/Write) - * ellipsize-set - true or false (Read/Write) - * family - String (Read/Write) - * family-set - true or false (Read/Write) - * font - String (Read/Write) - * font-desc - Pango::FontDescription (Read/Write) - * foreground - String (Write) - * foreground-gdk - Gdk::Color (Read/Write) - * foreground-set - true or false (Read/Write) - * language - String (Read/Write) - * language-set - true or false (Read/Write) - * markup - String (Write) - * rise - Integer (Read/Write) - * rise-set - true or false (Read/Write) - * scale - Float (Read/Write) - * scale-set - true or false (Read/Write) - * single-paragraph-mode - true or false (Read/Write) - * size - Integer (Read/Write) - * size-points - Float (Read/Write) - * size-set - true or false (Read/Write) - * stretch - Pango::FontDescription::Stretch (Read/Write) - * stretch-set - true or false (Read/Write) - * strikethrough - true or false (Read/Write) - * strikethrough-set - true or false (Read/Write) - * style - Pango::FontDescription::Style (Read/Write) - * style-set - true or false (Read/Write) - * text - String (Read/Write) - * underline - Pango::AttrUnderline::Underline (Read/Write) - * underline-set - true or false (Read/Write) - * variant - Pango::FontDescription::Variant (Read/Write) - * variant-set - true or false (Read/Write) - * weight - Integer (Read/Write) - * weight-set - true or false (Read/Write) - * width-chars - Integer (Read/Write) - * wrap-mode - Pango::Layout::WrapMode (Read/Write) - * wrap-width - Integer (Read/Write) - * align-set - true or false (Read/Write) - - -:Signals - - * edited: self :- Gtk::CellRendererText: - * editing-canceled: self :- Gtk::CellRenderer - * editing-started: self, editable, path :- Gtk::CellRenderer - ---- editing-canceled: self - - This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape. ((* Since 2.4 *)) - - See also: Gtk::CellRenderer#editing_canceled. - * self: Gtk::CellRenderer - ---- editing-started: self, editable, path - - This signal gets emitted when a cell starts to be edited. The indended use of this signal is to do special setup on editable, e.g. adding a Gtk::EntryCompletion or setting up additional columns in a Gtk::ComboBox. - - Note that GTK+ doesn't guarantee that cell renderers will continue to use the same kind of widget for editing in future releases, therefore you should check the type of editable before doing any specific setup, as in the following example. ((* Since 2.6 *)) - * self: Gtk::CellRenderer - * editable: the Gtk::CellEditable - * path: the path identifying the edited cell - - renderer.signal_connect("editing-started") do |cell, editable, path| - if editable.kind_of? Gtk::Entry - # ... create a Gtk::EntryCompletion - editable.completion = completion - end - end + * Gtk::CellRendererText#set_el