2007-02-04 01:55:01 +00:00
|
|
|
module Msf
|
2007-05-12 16:10:22 +00:00
|
|
|
module Ui
|
|
|
|
module Gtk2
|
2007-02-04 01:55:01 +00:00
|
|
|
|
2007-05-12 16:10:22 +00:00
|
|
|
module MyControls
|
2007-02-04 21:25:10 +00:00
|
|
|
|
2007-05-12 16:10:22 +00:00
|
|
|
#
|
|
|
|
# Included class methods
|
|
|
|
#
|
|
|
|
|
|
|
|
# Get the global driver handle
|
|
|
|
def driver
|
|
|
|
$gtk2driver
|
|
|
|
end
|
|
|
|
|
|
|
|
# Return the framework instance from the driver handler
|
|
|
|
def framework
|
|
|
|
driver.framework
|
|
|
|
end
|
|
|
|
|
|
|
|
def log(msg)
|
|
|
|
if ($gtk2logger)
|
|
|
|
$gtk2logger.append_text(msg + "\n")
|
|
|
|
else
|
2007-12-31 19:02:36 +00:00
|
|
|
# $stderr.puts Time.now.to_s + " " + msg
|
2007-05-12 16:10:22 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Controls
|
|
|
|
#
|
|
|
|
|
|
|
|
# TODO: Add control here
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
2007-02-04 01:55:01 +00:00
|
|
|
end
|