class MyListFilter

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)

Public Class Methods

new(list_holder) click to toggle source
Calls superclass method
# File lib/ListHolder/ListPanel/ListFilter.rb, line 6
def initialize(list_holder)
        @list_holder=list_holder
        @columns=Hash.new
        super()
        set_no_show_all(true)
        set_border_width(0)
        set_resize_mode(Gtk::ResizeMode::PARENT)
end

Public Instance Methods

columns() click to toggle source
# File lib/ListHolder/ListPanel/ListFilter.rb, line 27
def columns
        @columns
end
list_holder() click to toggle source
# File lib/ListHolder/ListPanel/ListFilter.rb, line 24
def list_holder
        @list_holder
end
set_visible(visible) click to toggle source
Calls superclass method
# File lib/ListHolder/ListPanel/ListFilter.rb, line 31
def set_visible(visible)
        each{|child|
                if visible
                        child.show_all
                        else
                        child.hide_all
                end
        }
        super
end
update(notifier) click to toggle source
# File lib/ListHolder/ListPanel/ListFilter.rb, line 15
def update(notifier)
        self.each{|frenderer| frenderer.destroy}
        notifier.columns.each {|column| 
                @columns[column.data]=MyFRenderer.new(notifier,column)
                pack_start(Gtk::Alignment.new(0,0,1,1).set_padding(0,0,0,0).add(@columns[column.data]))
        }
        self
end