Class: MyRendererComboWithNew
Overview
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint([email protected])
Defined Under Namespace
Classes: ComboButton
Constant Summary
ManqodCommon::CRITICAL, ManqodCommon::DEBUG, ManqodCommon::ERROR, ManqodCommon::INFO, ManqodCommon::NORMAL, ManqodCommon::WARNING
Constants included
from Eprint
Eprint::DOMAIN, Eprint::LEVEL
Instance Attribute Summary collapse
Instance Method Summary
collapse
#default_attribute, #gtk_attribute, #gtk_attribute_of_object, #gtkobjectid, #gtkobjecttype, #set_gtk_attribute
#add_where, #admin, #admin_cache, #admin_qrow, #admin_rows, #backtrace_to_debug, #cache, #changed_ids_of_base, #client, #client_fields, #client_image_of_id, #client_qrow, #client_query, #client_rows, #eeval, #escape_string, #getBinding, #guess_base, #guess_table, #image_of_id, #lzero, #manqod_db, #measure, #myexec, #nick, #nick_id, #number_format, #reconnect_manqod_db, #rows, #run_events, #send_message, #sendmail, #set_manqod_db_uri, #set_nick
Methods included from Eprint
#ecode, #edebug, #eerror, #einfo, #enormal, #eprint, #ewarn, #gtk_set_edebug, #set_edebug, #tell_exception
Constructor Details
Returns a new instance of MyRendererComboWithNew.
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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
|
Instance Attribute Details
Returns the value of attribute button.
46
47
48
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 46
def button
@button
end
|
#combo ⇒ Object
Returns the value of attribute combo.
45
46
47
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 45
def combo
@combo
end
|
Returns the value of attribute form.
48
49
50
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 48
def form
@form
end
|
#pc ⇒ Object
Returns the value of attribute pc.
47
48
49
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 47
def pc
@pc
end
|
Instance Method Details
#get_text_from_value(selected_combo_value) ⇒ Object
67
68
69
|
# 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) ⇒ Object
71
72
73
|
# 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 ⇒ Object
99
100
101
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 99
def inspect
"Combo(#{item["description"]})"
end
|
#item ⇒ Object
55
56
57
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 55
def item
pc.item
end
|
#model ⇒ Object
92
93
94
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 92
def model
combo.model
end
|
#parentM ⇒ Object
79
80
81
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 79
def parentM
pc.parentM
end
|
#qrow ⇒ Object
96
97
98
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 96
def qrow
parentM.qrow
end
|
#query ⇒ Object
83
84
85
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 83
def query
parentM.query
end
|
#select_value(selected_value) ⇒ Object
63
64
65
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 63
def select_value(selected_value)
combo.select_value(selected_value)
end
|
#set_sensitive(sens) ⇒ Object
87
88
89
90
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 87
def set_sensitive(sens)
@combo.set_sensitive(sens)
self
end
|
#target ⇒ Object
75
76
77
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 75
def target
pc.target
end
|
#text ⇒ Object
59
60
61
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 59
def text
combo.text
end
|
#update(to_select = ) ⇒ Object
50
51
52
53
|
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 50
def update(to_select=item['default'])
combo.update(to_select)
button.update(combo)
end
|