Class: MyCellRendererProgress
- Inherits:
-
Gtk::CellRendererProgress
- Object
- Gtk::CellRendererProgress
- MyCellRendererProgress
- Defined in:
- lib/ListHolder/EditableList/CellRenderers/Progress.rb
Overview
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint([email protected])
Instance Attribute Summary collapse
-
#model_col_num ⇒ Object
set_wrap_mode(Pango::WRAP_WORD) #?.
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
- #caller ⇒ Object
- #data ⇒ Object
-
#initialize(column) ⇒ MyCellRendererProgress
constructor
A new instance of MyCellRendererProgress.
- #set_column(column) ⇒ Object
- #set_font(font) ⇒ Object
-
#set_wrap_width(width) ⇒ Object
doing nothing here.
Constructor Details
#initialize(column) ⇒ MyCellRendererProgress
Returns a new instance of MyCellRendererProgress.
6 7 8 9 10 11 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 6 def initialize(column) super() # set_ellipsize(Pango::ELLIPSIZE_NONE) #? # set_ellipsize_set(true) #? # set_wrap_mode(Pango::WRAP_WORD) #? end |
Instance Attribute Details
#model_col_num ⇒ Object
set_wrap_mode(Pango::WRAP_WORD) #?
12 13 14 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 12 def model_col_num @model_col_num end |
#view ⇒ Object
Returns the value of attribute view.
13 14 15 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 13 def view @view end |
Instance Method Details
#caller ⇒ Object
26 27 28 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 26 def caller view end |
#data ⇒ Object
23 24 25 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 23 def data column.header["data"] end |
#set_column(column) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 15 def set_column(column) @column=column @view=column.list @model_col_num=column.colnum # set_mode(Gtk::CellRenderer::MODE_INERT) # set_sensitive(false) end |
#set_font(font) ⇒ Object
29 30 31 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 29 def set_font(font) #doing nothing here end |
#set_wrap_width(width) ⇒ Object
doing nothing here
32 33 34 |
# File 'lib/ListHolder/EditableList/CellRenderers/Progress.rb', line 32 def set_wrap_width(width) #we don't wrap this :) end |