Class: MyRendererComboWithNew::ComboButton
- Inherits:
-
Gtk::Button
- Object
- Gtk::Button
- MyRendererComboWithNew::ComboButton
- Includes:
- ManqodCommon, Observable
- Defined in:
- lib/FormHolder/Form/InputHolder/ComboWithNew.rb
Constant Summary
Constants included from ManqodCommon
ManqodCommon::CRITICAL, ManqodCommon::DEBUG, ManqodCommon::ERROR, ManqodCommon::INFO, ManqodCommon::NORMAL, ManqodCommon::WARNING
Constants included from Eprint
Instance Method Summary collapse
-
#initialize ⇒ ComboButton
constructor
A new instance of ComboButton.
- #update(notifier) ⇒ Object
Methods included from ManqodCommon
#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, #qrow, #query, #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
#initialize ⇒ ComboButton
Returns a new instance of ComboButton.
12 13 14 15 16 17 |
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 12 def initialize super() set_label("") set_image(Gtk::Image.new(Gtk::Stock::INDEX,Gtk::IconSize::MENU)) set_relief(Gtk::ReliefStyle::NONE) end |
Instance Method Details
#update(notifier) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/FormHolder/Form/InputHolder/ComboWithNew.rb', line 19 def update(notifier) set_image(Gtk::Image.new( case notifier.parentM.runmode when "info" then Gtk::Stock::INFO when "wysiwygf" then Gtk::Stock::PROPERTIES else (notifier.text=="-1" || notifier.text=="" ? Gtk::Stock::ADD : Gtk::Stock::EDIT ) end ,Gtk::IconSize::MENU)) end |