class MyRendererComboWithNew
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)
Attributes
combo[RW]
form[RW]
pc[RW]
Public Class Methods
new(pc)
click to toggle source
Calls superclass method
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 29 def initialize(pc) @pc=pc item['wantnew']=true super() @combo=MyRendererCombo.new(pc) @button=ComboButton.new pc.add_observer(button) pack_start(combo,true,true,0) button.signal_connect('clicked'){|c| @form=Myform::MyFormHolder.new("dialog",self,@pc.target_runmode,target) @form.set_parentM(parentM) ret=form.run(text.to_i) combo.update(ret) if ret and ret>0 } pack_end(button,false,false,0) end
Public Instance Methods
get_text_from_value(selected_combo_value)
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 67 def get_text_from_value(selected_combo_value) combo.get_text_from_value(selected_combo_value) end
get_value_from_text(selected_combo_text)
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 71 def get_value_from_text(selected_combo_text) combo.get_value_from_text(selected_combo_text) end
inspect()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 99 def inspect "Combo(#{item["description"]})" end
item()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 55 def item pc.item end
model()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 92 def model combo.model end
parentM()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 79 def parentM pc.parentM end
qrow()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 96 def qrow parentM.qrow end
query()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 83 def query parentM.query end
select_value(selected_value)
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 63 def select_value(selected_value) combo.select_value(selected_value) end
set_sensitive(sens)
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 87 def set_sensitive(sens) @combo.set_sensitive(sens) self end
target()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 75 def target pc.target end
text()
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 59 def text combo.text end
update(to_select=item['default'])
click to toggle source
# File lib/FormHolder/Form/InputHolder/ComboWithNew.rb, line 50 def update(to_select=item['default']) combo.update(to_select) button.update(combo) end