qasim: Added module.

git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1692 eaee96b3-f302-0410-b096-c6cfd47f7835
This commit is contained in:
Glenn Y. Rolland 2011-07-19 16:22:56 +00:00
parent 7a054ef4fd
commit 1cfb113465

View file

@ -4,14 +4,16 @@ require 'Qt4'
# QaSiM // Qt Sshfs Mapper # QaSiM // Qt Sshfs Mapper
VERSION="0.1"
def _ str def _ str
Qt::Object.tr(str) Qt::Object.tr(str)
end end
def build_app module Qasim
VERSION="0.1"
def build_app
app = Qt::Application.new(ARGV) app = Qt::Application.new(ARGV)
si = Qt::SystemTrayIcon.new si = Qt::SystemTrayIcon.new
@ -22,7 +24,11 @@ def build_app
si.icon = std_icon si.icon = std_icon
si.show si.show
si.setToolTip("Qasim v%s" % VERSION);
si.showMessage("Qasim",
"funky funky notification", 2, 5000)
si.setToolTip("Qasim %s" % VERSION);
Qt::Timer.new(app) do |timer| Qt::Timer.new(app) do |timer|
timer.connect(SIGNAL('timeout()')) do timer.connect(SIGNAL('timeout()')) do
@ -76,7 +82,10 @@ def build_app
end end
app.exec app.exec
end
end end
build_app include Qasim
Qasim::build_app