2004-07-01 05:38:48 -04:00
|
|
|
#
|
|
|
|
# tcllib extension support
|
|
|
|
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'tk'
|
|
|
|
|
|
|
|
# call setup script for general 'tkextlib' libraries
|
|
|
|
require 'tkextlib/setup.rb'
|
|
|
|
|
|
|
|
# call setup script
|
2004-07-06 05:42:12 -04:00
|
|
|
require 'tkextlib/tcllib/setup.rb'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-07-09 15:29:29 -04:00
|
|
|
err = ''
|
|
|
|
|
2004-07-01 05:38:48 -04:00
|
|
|
# package:: autoscroll
|
2004-07-09 15:29:29 -04:00
|
|
|
target = 'tkextlib/tcllib/autoscroll'
|
|
|
|
begin
|
|
|
|
require target
|
|
|
|
rescue => e
|
|
|
|
err << "\n ['" << target << "'] " << e.class.name << ' : ' << e.message
|
|
|
|
end
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# package:: cursor
|
2004-07-09 15:29:29 -04:00
|
|
|
target = 'tkextlib/tcllib/cursor'
|
|
|
|
begin
|
|
|
|
require target
|
|
|
|
rescue => e
|
|
|
|
err << "\n ['" << target << "'] " << e.class.name << ' : ' << e.message
|
|
|
|
end
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-10-06 12:08:45 -04:00
|
|
|
# package:: style
|
2004-07-09 15:29:29 -04:00
|
|
|
target = 'tkextlib/tcllib/style'
|
|
|
|
begin
|
|
|
|
require target
|
|
|
|
rescue => e
|
|
|
|
err << "\n ['" << target << "'] " << e.class.name << ' : ' << e.message
|
|
|
|
end
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# autoload
|
|
|
|
module Tk
|
|
|
|
module Tcllib
|
2004-07-14 21:18:57 -04:00
|
|
|
TkComm::TkExtlibAutoloadModule.unshift(self)
|
|
|
|
|
2004-07-01 05:38:48 -04:00
|
|
|
# package:: ctext
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :CText, 'tkextlib/tcllib/ctext'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# package:: datefield
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Datefield, 'tkextlib/tcllib/datefield'
|
|
|
|
autoload :DateField, 'tkextlib/tcllib/datefield'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# package:: ipentry
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :IP_Entry, 'tkextlib/tcllib/ip_entry'
|
2004-07-14 21:18:57 -04:00
|
|
|
autoload :IPEntry, 'tkextlib/tcllib/ip_entry'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# package:: Plotchart
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Plotchart, 'tkextlib/tcllib/plotchart'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# package:: tkpiechart
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Tkpiechart, 'tkextlib/tcllib/tkpiechart'
|
2004-07-01 05:38:48 -04:00
|
|
|
end
|
|
|
|
end
|
2004-07-09 15:29:29 -04:00
|
|
|
|
2004-07-14 21:18:57 -04:00
|
|
|
if $VERBOSE && !err.empty?
|
2004-07-09 15:29:29 -04:00
|
|
|
warn("Warning: some sub-packages are failed to require : " + err)
|
|
|
|
end
|