Class: About
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: Versions
Constant Summary
Constants included from ManqodCommon
ManqodCommon::CRITICAL, ManqodCommon::DEBUG, ManqodCommon::ERROR, ManqodCommon::INFO, ManqodCommon::NORMAL, ManqodCommon::WARNING
Constants included from Eprint
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ About
constructor
A new instance of About.
- #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 ⇒ About
Returns a new instance of About.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/About.rb', line 19 def initialize @title="about" super(false,3) pack_start(v=Versions.new,false,false) Gem.cache.gems.each_pair{|key,gem| v.add(gem.name,gem.version) if gem.name.include?("manqod") } pack_start(Gtk::Label.new("User logged in: #{nick}")) pack_start(Gtk::Label.new("Homepage of manqod: http://manqod.sourceforge.net")) pack_start(Gtk::Label.new("LICENSE: CDDL the author of this program(manqod) is Dobai-Pataky Balint([email protected]) manqod is released under the CDDL licence(http://www.opensource.org/licenses/cddl1.php) don't worry this only means the following: * you can use it, copy it, modify it * if you want your modifications to be distributed send them back to me, i'll merge them in * nobody can sell it")) pack_end(Versions.new. add("GTK+",Gtk::VERSION.join(".")). add("Ruby",RUBY_VERSION). add("GLib",GLib::VERSION.join(".")). add("Ruby/GLib",GLib::BINDING_VERSION.join(".")). add("Ruby/GTK",Gtk::BINDING_VERSION.join(".")),false,false) end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
40 41 42 |
# File 'lib/About.rb', line 40 def title @title end |
Instance Method Details
#update(notifier) ⇒ Object
42 43 44 |
# File 'lib/About.rb', line 42 def update(notifier) @title=notifier.text end |