tk_as_gem 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +22 -0
- data/Rakefile +11 -0
- data/VERSION +1 -0
- data/ext/ChangeLog.tkextlib +935 -0
- data/ext/MANUAL_tcltklib.eng +469 -0
- data/ext/MANUAL_tcltklib.eucj +579 -0
- data/ext/README.1st +19 -0
- data/ext/README.ActiveTcl +49 -0
- data/ext/README.fork +34 -0
- data/ext/README.macosx-aqua +67 -0
- data/ext/README.tcltklib +85 -0
- data/ext/depend +2 -0
- data/ext/extconf.rb +451 -0
- data/ext/lib/README +30 -0
- data/ext/lib/multi-tk.rb +3491 -0
- data/ext/lib/remote-tk.rb +530 -0
- data/ext/lib/tcltk.rb +367 -0
- data/ext/lib/tk.rb +5584 -0
- data/ext/lib/tk/after.rb +6 -0
- data/ext/lib/tk/autoload.rb +414 -0
- data/ext/lib/tk/bgerror.rb +29 -0
- data/ext/lib/tk/bindtag.rb +138 -0
- data/ext/lib/tk/button.rb +30 -0
- data/ext/lib/tk/canvas.rb +789 -0
- data/ext/lib/tk/canvastag.rb +434 -0
- data/ext/lib/tk/checkbutton.rb +30 -0
- data/ext/lib/tk/clipboard.rb +75 -0
- data/ext/lib/tk/clock.rb +71 -0
- data/ext/lib/tk/composite.rb +458 -0
- data/ext/lib/tk/console.rb +52 -0
- data/ext/lib/tk/dialog.rb +326 -0
- data/ext/lib/tk/encodedstr.rb +187 -0
- data/ext/lib/tk/entry.rb +119 -0
- data/ext/lib/tk/event.rb +542 -0
- data/ext/lib/tk/font.rb +2344 -0
- data/ext/lib/tk/frame.rb +131 -0
- data/ext/lib/tk/grid.rb +279 -0
- data/ext/lib/tk/image.rb +275 -0
- data/ext/lib/tk/itemconfig.rb +1215 -0
- data/ext/lib/tk/itemfont.rb +327 -0
- data/ext/lib/tk/kinput.rb +71 -0
- data/ext/lib/tk/label.rb +21 -0
- data/ext/lib/tk/labelframe.rb +29 -0
- data/ext/lib/tk/listbox.rb +282 -0
- data/ext/lib/tk/macpkg.rb +78 -0
- data/ext/lib/tk/menu.rb +681 -0
- data/ext/lib/tk/menubar.rb +131 -0
- data/ext/lib/tk/menuspec.rb +275 -0
- data/ext/lib/tk/message.rb +22 -0
- data/ext/lib/tk/mngfocus.rb +33 -0
- data/ext/lib/tk/msgcat.rb +296 -0
- data/ext/lib/tk/namespace.rb +551 -0
- data/ext/lib/tk/optiondb.rb +377 -0
- data/ext/lib/tk/optionobj.rb +212 -0
- data/ext/lib/tk/pack.rb +107 -0
- data/ext/lib/tk/package.rb +143 -0
- data/ext/lib/tk/palette.rb +55 -0
- data/ext/lib/tk/panedwindow.rb +258 -0
- data/ext/lib/tk/place.rb +128 -0
- data/ext/lib/tk/radiobutton.rb +71 -0
- data/ext/lib/tk/root.rb +95 -0
- data/ext/lib/tk/scale.rb +111 -0
- data/ext/lib/tk/scrollable.rb +82 -0
- data/ext/lib/tk/scrollbar.rb +177 -0
- data/ext/lib/tk/scrollbox.rb +39 -0
- data/ext/lib/tk/selection.rb +86 -0
- data/ext/lib/tk/spinbox.rb +119 -0
- data/ext/lib/tk/tagfont.rb +43 -0
- data/ext/lib/tk/text.rb +1596 -0
- data/ext/lib/tk/textimage.rb +88 -0
- data/ext/lib/tk/textmark.rb +204 -0
- data/ext/lib/tk/texttag.rb +318 -0
- data/ext/lib/tk/textwindow.rb +154 -0
- data/ext/lib/tk/timer.rb +669 -0
- data/ext/lib/tk/toplevel.rb +262 -0
- data/ext/lib/tk/ttk_selector.rb +76 -0
- data/ext/lib/tk/txtwin_abst.rb +39 -0
- data/ext/lib/tk/validation.rb +397 -0
- data/ext/lib/tk/variable.rb +1765 -0
- data/ext/lib/tk/virtevent.rb +139 -0
- data/ext/lib/tk/winfo.rb +392 -0
- data/ext/lib/tk/winpkg.rb +153 -0
- data/ext/lib/tk/wm.rb +552 -0
- data/ext/lib/tk/xim.rb +122 -0
- data/ext/lib/tkafter.rb +4 -0
- data/ext/lib/tkbgerror.rb +4 -0
- data/ext/lib/tkcanvas.rb +4 -0
- data/ext/lib/tkclass.rb +47 -0
- data/ext/lib/tkconsole.rb +4 -0
- data/ext/lib/tkdialog.rb +4 -0
- data/ext/lib/tkentry.rb +4 -0
- data/ext/lib/tkextlib/ICONS.rb +13 -0
- data/ext/lib/tkextlib/ICONS/icons.rb +129 -0
- data/ext/lib/tkextlib/ICONS/setup.rb +8 -0
- data/ext/lib/tkextlib/SUPPORT_STATUS +196 -0
- data/ext/lib/tkextlib/blt.rb +187 -0
- data/ext/lib/tkextlib/blt/barchart.rb +79 -0
- data/ext/lib/tkextlib/blt/bitmap.rb +112 -0
- data/ext/lib/tkextlib/blt/busy.rb +82 -0
- data/ext/lib/tkextlib/blt/component.rb +2145 -0
- data/ext/lib/tkextlib/blt/container.rb +28 -0
- data/ext/lib/tkextlib/blt/cutbuffer.rb +23 -0
- data/ext/lib/tkextlib/blt/dragdrop.rb +268 -0
- data/ext/lib/tkextlib/blt/eps.rb +32 -0
- data/ext/lib/tkextlib/blt/graph.rb +67 -0
- data/ext/lib/tkextlib/blt/htext.rb +111 -0
- data/ext/lib/tkextlib/blt/setup.rb +8 -0
- data/ext/lib/tkextlib/blt/spline.rb +23 -0
- data/ext/lib/tkextlib/blt/stripchart.rb +74 -0
- data/ext/lib/tkextlib/blt/table.rb +399 -0
- data/ext/lib/tkextlib/blt/tabnotebook.rb +110 -0
- data/ext/lib/tkextlib/blt/tabset.rb +500 -0
- data/ext/lib/tkextlib/blt/ted.rb +65 -0
- data/ext/lib/tkextlib/blt/tile.rb +21 -0
- data/ext/lib/tkextlib/blt/tile/button.rb +16 -0
- data/ext/lib/tkextlib/blt/tile/checkbutton.rb +17 -0
- data/ext/lib/tkextlib/blt/tile/frame.rb +16 -0
- data/ext/lib/tkextlib/blt/tile/label.rb +16 -0
- data/ext/lib/tkextlib/blt/tile/radiobutton.rb +17 -0
- data/ext/lib/tkextlib/blt/tile/scrollbar.rb +16 -0
- data/ext/lib/tkextlib/blt/tile/toplevel.rb +16 -0
- data/ext/lib/tkextlib/blt/tree.rb +1058 -0
- data/ext/lib/tkextlib/blt/treeview.rb +1272 -0
- data/ext/lib/tkextlib/blt/unix_dnd.rb +135 -0
- data/ext/lib/tkextlib/blt/vector.rb +256 -0
- data/ext/lib/tkextlib/blt/watch.rb +175 -0
- data/ext/lib/tkextlib/blt/win_printer.rb +61 -0
- data/ext/lib/tkextlib/blt/winop.rb +107 -0
- data/ext/lib/tkextlib/bwidget.rb +151 -0
- data/ext/lib/tkextlib/bwidget/arrowbutton.rb +21 -0
- data/ext/lib/tkextlib/bwidget/bitmap.rb +21 -0
- data/ext/lib/tkextlib/bwidget/button.rb +31 -0
- data/ext/lib/tkextlib/bwidget/buttonbox.rb +90 -0
- data/ext/lib/tkextlib/bwidget/combobox.rb +51 -0
- data/ext/lib/tkextlib/bwidget/dialog.rb +182 -0
- data/ext/lib/tkextlib/bwidget/dragsite.rb +31 -0
- data/ext/lib/tkextlib/bwidget/dropsite.rb +39 -0
- data/ext/lib/tkextlib/bwidget/dynamichelp.rb +63 -0
- data/ext/lib/tkextlib/bwidget/entry.rb +43 -0
- data/ext/lib/tkextlib/bwidget/label.rb +41 -0
- data/ext/lib/tkextlib/bwidget/labelentry.rb +80 -0
- data/ext/lib/tkextlib/bwidget/labelframe.rb +52 -0
- data/ext/lib/tkextlib/bwidget/listbox.rb +358 -0
- data/ext/lib/tkextlib/bwidget/mainframe.rb +128 -0
- data/ext/lib/tkextlib/bwidget/messagedlg.rb +192 -0
- data/ext/lib/tkextlib/bwidget/notebook.rb +166 -0
- data/ext/lib/tkextlib/bwidget/pagesmanager.rb +73 -0
- data/ext/lib/tkextlib/bwidget/panedwindow.rb +37 -0
- data/ext/lib/tkextlib/bwidget/panelframe.rb +57 -0
- data/ext/lib/tkextlib/bwidget/passwddlg.rb +44 -0
- data/ext/lib/tkextlib/bwidget/progressbar.rb +20 -0
- data/ext/lib/tkextlib/bwidget/progressdlg.rb +58 -0
- data/ext/lib/tkextlib/bwidget/scrollableframe.rb +40 -0
- data/ext/lib/tkextlib/bwidget/scrolledwindow.rb +38 -0
- data/ext/lib/tkextlib/bwidget/scrollview.rb +25 -0
- data/ext/lib/tkextlib/bwidget/selectcolor.rb +73 -0
- data/ext/lib/tkextlib/bwidget/selectfont.rb +86 -0
- data/ext/lib/tkextlib/bwidget/separator.rb +20 -0
- data/ext/lib/tkextlib/bwidget/setup.rb +8 -0
- data/ext/lib/tkextlib/bwidget/spinbox.rb +98 -0
- data/ext/lib/tkextlib/bwidget/statusbar.rb +52 -0
- data/ext/lib/tkextlib/bwidget/titleframe.rb +33 -0
- data/ext/lib/tkextlib/bwidget/tree.rb +453 -0
- data/ext/lib/tkextlib/bwidget/widget.rb +129 -0
- data/ext/lib/tkextlib/itcl.rb +13 -0
- data/ext/lib/tkextlib/itcl/incr_tcl.rb +178 -0
- data/ext/lib/tkextlib/itcl/setup.rb +13 -0
- data/ext/lib/tkextlib/itk.rb +13 -0
- data/ext/lib/tkextlib/itk/incr_tk.rb +446 -0
- data/ext/lib/tkextlib/itk/setup.rb +13 -0
- data/ext/lib/tkextlib/iwidgets.rb +94 -0
- data/ext/lib/tkextlib/iwidgets/buttonbox.rb +120 -0
- data/ext/lib/tkextlib/iwidgets/calendar.rb +125 -0
- data/ext/lib/tkextlib/iwidgets/canvasprintbox.rb +53 -0
- data/ext/lib/tkextlib/iwidgets/canvasprintdialog.rb +38 -0
- data/ext/lib/tkextlib/iwidgets/checkbox.rb +129 -0
- data/ext/lib/tkextlib/iwidgets/combobox.rb +104 -0
- data/ext/lib/tkextlib/iwidgets/dateentry.rb +20 -0
- data/ext/lib/tkextlib/iwidgets/datefield.rb +58 -0
- data/ext/lib/tkextlib/iwidgets/dialog.rb +20 -0
- data/ext/lib/tkextlib/iwidgets/dialogshell.rb +120 -0
- data/ext/lib/tkextlib/iwidgets/disjointlistbox.rb +50 -0
- data/ext/lib/tkextlib/iwidgets/entryfield.rb +185 -0
- data/ext/lib/tkextlib/iwidgets/extbutton.rb +40 -0
- data/ext/lib/tkextlib/iwidgets/extfileselectionbox.rb +46 -0
- data/ext/lib/tkextlib/iwidgets/extfileselectiondialog.rb +33 -0
- data/ext/lib/tkextlib/iwidgets/feedback.rb +35 -0
- data/ext/lib/tkextlib/iwidgets/fileselectionbox.rb +46 -0
- data/ext/lib/tkextlib/iwidgets/fileselectiondialog.rb +33 -0
- data/ext/lib/tkextlib/iwidgets/finddialog.rb +42 -0
- data/ext/lib/tkextlib/iwidgets/hierarchy.rb +365 -0
- data/ext/lib/tkextlib/iwidgets/hyperhelp.rb +50 -0
- data/ext/lib/tkextlib/iwidgets/labeledframe.rb +39 -0
- data/ext/lib/tkextlib/iwidgets/labeledwidget.rb +45 -0
- data/ext/lib/tkextlib/iwidgets/mainwindow.rb +67 -0
- data/ext/lib/tkextlib/iwidgets/menubar.rb +211 -0
- data/ext/lib/tkextlib/iwidgets/messagebox.rb +92 -0
- data/ext/lib/tkextlib/iwidgets/messagedialog.rb +20 -0
- data/ext/lib/tkextlib/iwidgets/notebook.rb +174 -0
- data/ext/lib/tkextlib/iwidgets/optionmenu.rb +92 -0
- data/ext/lib/tkextlib/iwidgets/panedwindow.rb +133 -0
- data/ext/lib/tkextlib/iwidgets/promptdialog.rb +131 -0
- data/ext/lib/tkextlib/iwidgets/pushbutton.rb +35 -0
- data/ext/lib/tkextlib/iwidgets/radiobox.rb +120 -0
- data/ext/lib/tkextlib/iwidgets/scopedobject.rb +24 -0
- data/ext/lib/tkextlib/iwidgets/scrolledcanvas.rb +353 -0
- data/ext/lib/tkextlib/iwidgets/scrolledframe.rb +59 -0
- data/ext/lib/tkextlib/iwidgets/scrolledhtml.rb +58 -0
- data/ext/lib/tkextlib/iwidgets/scrolledlistbox.rb +207 -0
- data/ext/lib/tkextlib/iwidgets/scrolledtext.rb +564 -0
- data/ext/lib/tkextlib/iwidgets/scrolledwidget.rb +20 -0
- data/ext/lib/tkextlib/iwidgets/selectionbox.rb +102 -0
- data/ext/lib/tkextlib/iwidgets/selectiondialog.rb +92 -0
- data/ext/lib/tkextlib/iwidgets/setup.rb +8 -0
- data/ext/lib/tkextlib/iwidgets/shell.rb +38 -0
- data/ext/lib/tkextlib/iwidgets/spindate.rb +48 -0
- data/ext/lib/tkextlib/iwidgets/spinint.rb +30 -0
- data/ext/lib/tkextlib/iwidgets/spinner.rb +169 -0
- data/ext/lib/tkextlib/iwidgets/spintime.rb +48 -0
- data/ext/lib/tkextlib/iwidgets/tabnotebook.rb +180 -0
- data/ext/lib/tkextlib/iwidgets/tabset.rb +144 -0
- data/ext/lib/tkextlib/iwidgets/timeentry.rb +25 -0
- data/ext/lib/tkextlib/iwidgets/timefield.rb +58 -0
- data/ext/lib/tkextlib/iwidgets/toolbar.rb +112 -0
- data/ext/lib/tkextlib/iwidgets/watch.rb +56 -0
- data/ext/lib/tkextlib/pkg_checker.rb +184 -0
- data/ext/lib/tkextlib/setup.rb +8 -0
- data/ext/lib/tkextlib/tcllib.rb +90 -0
- data/ext/lib/tkextlib/tcllib/README +135 -0
- data/ext/lib/tkextlib/tcllib/autoscroll.rb +158 -0
- data/ext/lib/tkextlib/tcllib/ctext.rb +160 -0
- data/ext/lib/tkextlib/tcllib/cursor.rb +97 -0
- data/ext/lib/tkextlib/tcllib/datefield.rb +57 -0
- data/ext/lib/tkextlib/tcllib/dialog.rb +84 -0
- data/ext/lib/tkextlib/tcllib/getstring.rb +134 -0
- data/ext/lib/tkextlib/tcllib/history.rb +73 -0
- data/ext/lib/tkextlib/tcllib/ico.rb +116 -0
- data/ext/lib/tkextlib/tcllib/ip_entry.rb +66 -0
- data/ext/lib/tkextlib/tcllib/panelframe.rb +72 -0
- data/ext/lib/tkextlib/tcllib/plotchart.rb +886 -0
- data/ext/lib/tkextlib/tcllib/ruler.rb +65 -0
- data/ext/lib/tkextlib/tcllib/screenruler.rb +68 -0
- data/ext/lib/tkextlib/tcllib/scrollwin.rb +61 -0
- data/ext/lib/tkextlib/tcllib/setup.rb +8 -0
- data/ext/lib/tkextlib/tcllib/style.rb +61 -0
- data/ext/lib/tkextlib/tcllib/superframe.rb +51 -0
- data/ext/lib/tkextlib/tcllib/swaplist.rb +150 -0
- data/ext/lib/tkextlib/tcllib/tablelist.rb +27 -0
- data/ext/lib/tkextlib/tcllib/tablelist_core.rb +782 -0
- data/ext/lib/tkextlib/tcllib/tablelist_tile.rb +25 -0
- data/ext/lib/tkextlib/tcllib/tkpiechart.rb +314 -0
- data/ext/lib/tkextlib/tcllib/tooltip.rb +95 -0
- data/ext/lib/tkextlib/tcllib/widget.rb +48 -0
- data/ext/lib/tkextlib/tclx.rb +13 -0
- data/ext/lib/tkextlib/tclx/setup.rb +8 -0
- data/ext/lib/tkextlib/tclx/tclx.rb +74 -0
- data/ext/lib/tkextlib/tile.rb +419 -0
- data/ext/lib/tkextlib/tile/dialog.rb +96 -0
- data/ext/lib/tkextlib/tile/setup.rb +8 -0
- data/ext/lib/tkextlib/tile/sizegrip.rb +29 -0
- data/ext/lib/tkextlib/tile/style.rb +316 -0
- data/ext/lib/tkextlib/tile/tbutton.rb +33 -0
- data/ext/lib/tkextlib/tile/tcheckbutton.rb +36 -0
- data/ext/lib/tkextlib/tile/tcombobox.rb +54 -0
- data/ext/lib/tkextlib/tile/tentry.rb +48 -0
- data/ext/lib/tkextlib/tile/tframe.rb +33 -0
- data/ext/lib/tkextlib/tile/tlabel.rb +33 -0
- data/ext/lib/tkextlib/tile/tlabelframe.rb +36 -0
- data/ext/lib/tkextlib/tile/tmenubutton.rb +36 -0
- data/ext/lib/tkextlib/tile/tnotebook.rb +139 -0
- data/ext/lib/tkextlib/tile/tpaned.rb +231 -0
- data/ext/lib/tkextlib/tile/tprogressbar.rb +56 -0
- data/ext/lib/tkextlib/tile/tradiobutton.rb +36 -0
- data/ext/lib/tkextlib/tile/treeview.rb +1239 -0
- data/ext/lib/tkextlib/tile/tscale.rb +53 -0
- data/ext/lib/tkextlib/tile/tscrollbar.rb +54 -0
- data/ext/lib/tkextlib/tile/tseparator.rb +33 -0
- data/ext/lib/tkextlib/tile/tsquare.rb +30 -0
- data/ext/lib/tkextlib/tkDND.rb +18 -0
- data/ext/lib/tkextlib/tkDND/setup.rb +8 -0
- data/ext/lib/tkextlib/tkDND/shape.rb +125 -0
- data/ext/lib/tkextlib/tkDND/tkdnd.rb +182 -0
- data/ext/lib/tkextlib/tkHTML.rb +13 -0
- data/ext/lib/tkextlib/tkHTML/htmlwidget.rb +453 -0
- data/ext/lib/tkextlib/tkHTML/setup.rb +8 -0
- data/ext/lib/tkextlib/tkimg.rb +36 -0
- data/ext/lib/tkextlib/tkimg/README +26 -0
- data/ext/lib/tkextlib/tkimg/bmp.rb +33 -0
- data/ext/lib/tkextlib/tkimg/gif.rb +33 -0
- data/ext/lib/tkextlib/tkimg/ico.rb +33 -0
- data/ext/lib/tkextlib/tkimg/jpeg.rb +33 -0
- data/ext/lib/tkextlib/tkimg/pcx.rb +33 -0
- data/ext/lib/tkextlib/tkimg/pixmap.rb +44 -0
- data/ext/lib/tkextlib/tkimg/png.rb +33 -0
- data/ext/lib/tkextlib/tkimg/ppm.rb +33 -0
- data/ext/lib/tkextlib/tkimg/ps.rb +33 -0
- data/ext/lib/tkextlib/tkimg/setup.rb +8 -0
- data/ext/lib/tkextlib/tkimg/sgi.rb +33 -0
- data/ext/lib/tkextlib/tkimg/sun.rb +33 -0
- data/ext/lib/tkextlib/tkimg/tga.rb +33 -0
- data/ext/lib/tkextlib/tkimg/tiff.rb +33 -0
- data/ext/lib/tkextlib/tkimg/window.rb +33 -0
- data/ext/lib/tkextlib/tkimg/xbm.rb +33 -0
- data/ext/lib/tkextlib/tkimg/xpm.rb +33 -0
- data/ext/lib/tkextlib/tktable.rb +14 -0
- data/ext/lib/tkextlib/tktable/setup.rb +8 -0
- data/ext/lib/tkextlib/tktable/tktable.rb +957 -0
- data/ext/lib/tkextlib/tktrans.rb +14 -0
- data/ext/lib/tkextlib/tktrans/setup.rb +8 -0
- data/ext/lib/tkextlib/tktrans/tktrans.rb +64 -0
- data/ext/lib/tkextlib/treectrl.rb +13 -0
- data/ext/lib/tkextlib/treectrl/setup.rb +8 -0
- data/ext/lib/tkextlib/treectrl/tktreectrl.rb +2461 -0
- data/ext/lib/tkextlib/trofs.rb +13 -0
- data/ext/lib/tkextlib/trofs/setup.rb +8 -0
- data/ext/lib/tkextlib/trofs/trofs.rb +51 -0
- data/ext/lib/tkextlib/version.rb +6 -0
- data/ext/lib/tkextlib/vu.rb +48 -0
- data/ext/lib/tkextlib/vu/bargraph.rb +61 -0
- data/ext/lib/tkextlib/vu/charts.rb +53 -0
- data/ext/lib/tkextlib/vu/dial.rb +102 -0
- data/ext/lib/tkextlib/vu/pie.rb +282 -0
- data/ext/lib/tkextlib/vu/setup.rb +8 -0
- data/ext/lib/tkextlib/vu/spinbox.rb +22 -0
- data/ext/lib/tkextlib/winico.rb +14 -0
- data/ext/lib/tkextlib/winico/setup.rb +8 -0
- data/ext/lib/tkextlib/winico/winico.rb +224 -0
- data/ext/lib/tkfont.rb +4 -0
- data/ext/lib/tkmacpkg.rb +4 -0
- data/ext/lib/tkmenubar.rb +4 -0
- data/ext/lib/tkmngfocus.rb +4 -0
- data/ext/lib/tkpalette.rb +4 -0
- data/ext/lib/tkscrollbox.rb +4 -0
- data/ext/lib/tktext.rb +4 -0
- data/ext/lib/tkvirtevent.rb +4 -0
- data/ext/lib/tkwinpkg.rb +4 -0
- data/ext/old-README.tcltklib.eucj +159 -0
- data/ext/stubs.c +531 -0
- data/ext/stubs.h +33 -0
- data/ext/tcltklib.c +10155 -0
- data/ext/tkutil/.cvsignore +3 -0
- data/ext/tkutil/depend +1 -0
- data/ext/tkutil/extconf.rb +14 -0
- data/ext/tkutil/tkutil.c +1789 -0
- metadata +418 -0
data/ext/lib/tk/xim.rb
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
#
|
2
|
+
# tk/xim.rb : control imput_method
|
3
|
+
#
|
4
|
+
require 'tk'
|
5
|
+
|
6
|
+
module TkXIM
|
7
|
+
include Tk
|
8
|
+
extend Tk
|
9
|
+
|
10
|
+
TkCommandNames = ['imconfigure'.freeze].freeze
|
11
|
+
|
12
|
+
def TkXIM.useinputmethods(value = None, win = nil)
|
13
|
+
if value == None
|
14
|
+
if win
|
15
|
+
bool(tk_call_without_enc('tk', 'useinputmethods',
|
16
|
+
'-displayof', win))
|
17
|
+
else
|
18
|
+
bool(tk_call_without_enc('tk', 'useinputmethods'))
|
19
|
+
end
|
20
|
+
else
|
21
|
+
if win
|
22
|
+
bool(tk_call_without_enc('tk', 'useinputmethods',
|
23
|
+
'-displayof', win, value))
|
24
|
+
else
|
25
|
+
bool(tk_call_without_enc('tk', 'useinputmethods', value))
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def TkXIM.useinputmethods_displayof(win, value = None)
|
31
|
+
TkXIM.useinputmethods(value, win)
|
32
|
+
end
|
33
|
+
|
34
|
+
def TkXIM.caret(win, keys=nil)
|
35
|
+
if keys
|
36
|
+
tk_call_without_enc('tk', 'caret', win, *hash_kv(keys))
|
37
|
+
self
|
38
|
+
else
|
39
|
+
lst = tk_split_list(tk_call_without_enc('tk', 'caret', win))
|
40
|
+
info = {}
|
41
|
+
while key = lst.shift
|
42
|
+
info[key[1..-1]] = lst.shift
|
43
|
+
end
|
44
|
+
info
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def TkXIM.configure(win, slot, value=None)
|
49
|
+
begin
|
50
|
+
if /^8\.*/ === Tk::TK_VERSION && JAPANIZED_TK
|
51
|
+
if slot.kind_of? Hash
|
52
|
+
tk_call('imconfigure', win, *hash_kv(slot))
|
53
|
+
else
|
54
|
+
tk_call('imconfigure', win, "-#{slot}", value)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
rescue
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def TkXIM.configinfo(win, slot=nil)
|
62
|
+
if TkComm::GET_CONFIGINFOwoRES_AS_ARRAY
|
63
|
+
begin
|
64
|
+
if /^8\.*/ === Tk::TK_VERSION && JAPANIZED_TK
|
65
|
+
if slot
|
66
|
+
conf = tk_split_list(tk_call('imconfigure', win, "-#{slot}"))
|
67
|
+
conf[0] = conf[0][1..-1]
|
68
|
+
conf
|
69
|
+
else
|
70
|
+
tk_split_list(tk_call('imconfigure', win)).collect{|conf|
|
71
|
+
conf[0] = conf[0][1..-1]
|
72
|
+
conf
|
73
|
+
}
|
74
|
+
end
|
75
|
+
else
|
76
|
+
[]
|
77
|
+
end
|
78
|
+
rescue
|
79
|
+
[]
|
80
|
+
end
|
81
|
+
else # ! TkComm::GET_CONFIGINFOwoRES_AS_ARRAY
|
82
|
+
TkXIM.current_configinfo(win, slot)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def TkXIM.current_configinfo(win, slot=nil)
|
87
|
+
begin
|
88
|
+
if /^8\.*/ === Tk::TK_VERSION && JAPANIZED_TK
|
89
|
+
if slot
|
90
|
+
conf = tk_split_list(tk_call('imconfigure', win, "-#{slot}"))
|
91
|
+
{ conf[0][1..-1] => conf[1] }
|
92
|
+
else
|
93
|
+
ret = {}
|
94
|
+
tk_split_list(tk_call('imconfigure', win)).each{|conf|
|
95
|
+
ret[conf[0][1..-1]] = conf[1]
|
96
|
+
}
|
97
|
+
ret
|
98
|
+
end
|
99
|
+
else
|
100
|
+
{}
|
101
|
+
end
|
102
|
+
rescue
|
103
|
+
{}
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def useinputmethods(value=None)
|
108
|
+
TkXIM.useinputmethods(value, self)
|
109
|
+
end
|
110
|
+
|
111
|
+
def caret(keys=nil)
|
112
|
+
TkXIM.caret(self, keys=nil)
|
113
|
+
end
|
114
|
+
|
115
|
+
def imconfigure(slot, value=None)
|
116
|
+
TkXIM.configure(self, slot, value)
|
117
|
+
end
|
118
|
+
|
119
|
+
def imconfiginfo(slot=nil)
|
120
|
+
TkXIM.configinfo(self, slot)
|
121
|
+
end
|
122
|
+
end
|
data/ext/lib/tkafter.rb
ADDED
data/ext/lib/tkcanvas.rb
ADDED
data/ext/lib/tkclass.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
#
|
2
|
+
# tkclass.rb - Tk classes
|
3
|
+
# Date: 2000/11/27 09:23:36
|
4
|
+
# by Yukihiro Matsumoto <matz@caelum.co.jp>
|
5
|
+
#
|
6
|
+
# $Id: tkclass.rb 11708 2007-02-12 23:01:19Z shyouhei $
|
7
|
+
|
8
|
+
require "tk"
|
9
|
+
|
10
|
+
TopLevel = TkToplevel
|
11
|
+
Frame = TkFrame
|
12
|
+
Label = TkLabel
|
13
|
+
Button = TkButton
|
14
|
+
Radiobutton = TkRadioButton
|
15
|
+
Checkbutton = TkCheckButton
|
16
|
+
Message = TkMessage
|
17
|
+
Entry = TkEntry
|
18
|
+
Spinbox = TkSpinbox
|
19
|
+
Text = TkText
|
20
|
+
Scale = TkScale
|
21
|
+
Scrollbar = TkScrollbar
|
22
|
+
Listbox = TkListbox
|
23
|
+
Menu = TkMenu
|
24
|
+
Menubutton = TkMenubutton
|
25
|
+
Canvas = TkCanvas
|
26
|
+
Arc = TkcArc
|
27
|
+
Bitmap = TkcBitmap
|
28
|
+
Line = TkcLine
|
29
|
+
Oval = TkcOval
|
30
|
+
Polygon = TkcPolygon
|
31
|
+
Rectangle = TkcRectangle
|
32
|
+
TextItem = TkcText
|
33
|
+
WindowItem = TkcWindow
|
34
|
+
BitmapImage = TkBitmapImage
|
35
|
+
PhotoImage = TkPhotoImage
|
36
|
+
Selection = TkSelection
|
37
|
+
Winfo = TkWinfo
|
38
|
+
Pack = TkPack
|
39
|
+
Grid = TkGrid
|
40
|
+
Place = TkPlace
|
41
|
+
Variable = TkVariable
|
42
|
+
Font = TkFont
|
43
|
+
VirtualEvent = TkVirtualEvent
|
44
|
+
|
45
|
+
def Mainloop
|
46
|
+
Tk.mainloop
|
47
|
+
end
|
data/ext/lib/tkdialog.rb
ADDED
data/ext/lib/tkentry.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#
|
2
|
+
# ICONS support
|
3
|
+
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
4
|
+
#
|
5
|
+
|
6
|
+
# call setup script for general 'tkextlib' libraries
|
7
|
+
require 'tkextlib/setup.rb'
|
8
|
+
|
9
|
+
# call setup script
|
10
|
+
require 'tkextlib/ICONS/setup.rb'
|
11
|
+
|
12
|
+
# load library
|
13
|
+
require 'tkextlib/ICONS/icons'
|
@@ -0,0 +1,129 @@
|
|
1
|
+
#
|
2
|
+
# tkextlib/ICONS/icons.rb
|
3
|
+
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
4
|
+
#
|
5
|
+
|
6
|
+
require 'tk'
|
7
|
+
|
8
|
+
# call setup script for general 'tkextlib' libraries
|
9
|
+
require 'tkextlib/setup.rb'
|
10
|
+
|
11
|
+
# call setup script
|
12
|
+
require 'tkextlib/ICONS/setup.rb'
|
13
|
+
|
14
|
+
# TkPackage.require('icons', '1.0')
|
15
|
+
TkPackage.require('icons')
|
16
|
+
|
17
|
+
module Tk
|
18
|
+
class ICONS < TkImage
|
19
|
+
extend Tk
|
20
|
+
|
21
|
+
PACKAGE_NAME = 'icons'.freeze
|
22
|
+
def self.package_name
|
23
|
+
PACKAGE_NAME
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.package_version
|
27
|
+
begin
|
28
|
+
TkPackage.require('icons')
|
29
|
+
rescue
|
30
|
+
''
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.create(*args) # icon, icon, ..., ?option=>value, ...?
|
35
|
+
if args[-1].kind_of?(Hash)
|
36
|
+
keys = args.pop
|
37
|
+
icons = simplelist(tk_call('::icons::icons', 'create',
|
38
|
+
*(hash_kv(keys) << (args.flatten))))
|
39
|
+
else
|
40
|
+
icons = simplelist(tk_call('::icons::icons', 'create',
|
41
|
+
args.flatten))
|
42
|
+
end
|
43
|
+
|
44
|
+
icons.collect{|icon| self.new(icon, :without_creating=>true)}
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.delete(*icons) # icon, icon, ...
|
48
|
+
icons = icons.flatten
|
49
|
+
return if icons.empty?
|
50
|
+
icons.map!{|icon|
|
51
|
+
if icon.kind_of?(Tk::ICONS)
|
52
|
+
Tk_IMGTBL.delete(icon.path)
|
53
|
+
icon.name
|
54
|
+
elsif icon.to_s =~ /^::icon::(.*)/
|
55
|
+
name = $1
|
56
|
+
Tk_IMGTBL.delete(icon)
|
57
|
+
name
|
58
|
+
else
|
59
|
+
Tk_IMGTBL.delete("::icon::#{icon}")
|
60
|
+
icon
|
61
|
+
end
|
62
|
+
}
|
63
|
+
tk_call('::icons::icons', 'delete', icons)
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.query(*args) # icon, icon, ..., ?option=>value, ...?
|
67
|
+
if args[-1].kind_of?(Hash)
|
68
|
+
keys = args.pop
|
69
|
+
simplelist(tk_call('::icons::icons', 'query',
|
70
|
+
*(hash_kv(keys) << (args.flatten))))
|
71
|
+
else
|
72
|
+
simplelist(tk_call('::icons::icons', 'query', args.flatten))
|
73
|
+
end . map{|inf| list(inf) }
|
74
|
+
end
|
75
|
+
|
76
|
+
##########################################
|
77
|
+
|
78
|
+
class << self
|
79
|
+
alias _new new
|
80
|
+
|
81
|
+
def new(name, keys=nil)
|
82
|
+
if obj = Tk_IMGTBL["::icon::#{name}"]
|
83
|
+
if keys
|
84
|
+
keys = _symbolkey2str(keys)
|
85
|
+
unless keys.delete('without_creating')
|
86
|
+
tk_call('::icons::icons', 'create', *(hash_kv(keys) << obj.name))
|
87
|
+
end
|
88
|
+
end
|
89
|
+
else
|
90
|
+
obj = _new(name, keys)
|
91
|
+
end
|
92
|
+
obj
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
##########################################
|
97
|
+
|
98
|
+
def initialize(name, keys=nil)
|
99
|
+
if name.kind_of?(String) && name =~ /^::icon::(.+)$/
|
100
|
+
@name = $1
|
101
|
+
@path = name
|
102
|
+
else
|
103
|
+
@name = name.to_s
|
104
|
+
@path = "::icon::#{@name}"
|
105
|
+
end
|
106
|
+
keys = _symbolkey2str(keys)
|
107
|
+
unless keys.delete('without_creating')
|
108
|
+
tk_call('::icons::icons', 'create', *(hash_kv(keys) << @name))
|
109
|
+
end
|
110
|
+
Tk_IMGTBL[@path] = self
|
111
|
+
end
|
112
|
+
|
113
|
+
def name
|
114
|
+
@name
|
115
|
+
end
|
116
|
+
|
117
|
+
def delete
|
118
|
+
Tk_IMGTBL.delete(@path)
|
119
|
+
tk_call('::icons::icons', 'delete', @name)
|
120
|
+
self
|
121
|
+
end
|
122
|
+
|
123
|
+
def query(keys={})
|
124
|
+
list(simplelist(tk_call('::icons::icons', 'query',
|
125
|
+
*(hash_kv(keys) << @name))
|
126
|
+
)[0])
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
#
|
2
|
+
# setup.rb -- setup script before calling TkPackage.require()
|
3
|
+
#
|
4
|
+
# If you need some setup operations (for example, add a library path
|
5
|
+
# to the library search path) before using Tcl/Tk library packages
|
6
|
+
# wrapped by Ruby scripts in this directory, please write the setup
|
7
|
+
# operations in this file.
|
8
|
+
#
|
@@ -0,0 +1,196 @@
|
|
1
|
+
|
2
|
+
[ current support status of Tcl/Tk extensions ]
|
3
|
+
|
4
|
+
*** RELEASE_DATE of the libraries => see 'tkextlib/version.rb' ***
|
5
|
+
|
6
|
+
The following list shows *CURRENT* status when this file was modifyed
|
7
|
+
at last. If you want to add other Tcl/Tk extensions to the planed list
|
8
|
+
(or change its status position), please request them at the ruby-talk,
|
9
|
+
ruby-list, or ruby-dev ML. Although we cannot promise to support your
|
10
|
+
requests, we'll try to do.
|
11
|
+
|
12
|
+
If you want to check that wrapper libraries are ready to use on your
|
13
|
+
environment, please execute 'pkg_checker.rb' with no arguments. The
|
14
|
+
script may give you some hints about that.
|
15
|
+
|
16
|
+
|
17
|
+
***** IMPORTANT NOTE **********************************************
|
18
|
+
|
19
|
+
'support' means that Ruby/Tk's wrapper libraries are released.
|
20
|
+
'not support' does *NOT* mean that the extension doesn't work
|
21
|
+
on Ruby/Tk.
|
22
|
+
|
23
|
+
The version number of each extension means the latest version
|
24
|
+
which is checked its feature. That is, it does NOT means only
|
25
|
+
version of working. Library files maybe include some features
|
26
|
+
which is included in the former version but removed from the
|
27
|
+
latest, and maybe able to support the later version then the
|
28
|
+
shown version.
|
29
|
+
|
30
|
+
Even if the status of the extension is 'not support', you can
|
31
|
+
control the functions/widgets of the extension without wrapper
|
32
|
+
libraries by Tk.tk_call(), Tk.ip_eval(), and so on.
|
33
|
+
|
34
|
+
If you cannot use installed Tcl/Tk extension, please check the
|
35
|
+
followings.
|
36
|
+
|
37
|
+
(1) On your Tcl/Tk, does the extention work?
|
38
|
+
|
39
|
+
(2) Do DLL libraries of the extension exist on DLL load-path?
|
40
|
+
(See also "<ruby archive>/ext/tcltklib/README.ActiveTcl")
|
41
|
+
|
42
|
+
(3) Is the Tcl library directory of the extension included in
|
43
|
+
library search-path of the Tcl interpreter linked Ruby/Tk?
|
44
|
+
|
45
|
+
The check results may request you to do some setup operations
|
46
|
+
before using the extension. If so, then please write the step
|
47
|
+
of setup oprations into the "setup.rb" file in the directory
|
48
|
+
of the wrapper libraries for the extention (It is the wrapper
|
49
|
+
libraries have the standard structure of the libraries in this
|
50
|
+
directory). The "setup" file is required before requiring the
|
51
|
+
Tcl library package (TkPackage.require(<libname>)).
|
52
|
+
|
53
|
+
*******************************************************************
|
54
|
+
|
55
|
+
|
56
|
+
===< support with some examples (may be beta quality) >=======================
|
57
|
+
|
58
|
+
Tcllib 1.8
|
59
|
+
Tklib 0.4.1 http://sourceforge.net/projects/tcllib ==> tcllib
|
60
|
+
|
61
|
+
IWidgets 4.0.2 http://sourceforge.net/projects/incrtcl ==> iwidgets
|
62
|
+
|
63
|
+
BWidgets 1.7 http://sourceforge.net/projects/tcllib ==> bwidget
|
64
|
+
|
65
|
+
TkTable 2.9 http://sourceforge.net/projects/tktable ==> tktable
|
66
|
+
* see also <http://www.korus.hu/~fery/ruby/tktable.rb>
|
67
|
+
written by Ferenc Engard (ferenc@engard.hu)
|
68
|
+
|
69
|
+
vu 2.3.0 http://sourceforge.net/projects/tktable ==> vu
|
70
|
+
|
71
|
+
TkHTML 2.0 http://www.hwaci.com/sw/tkhtml/ ==> tkHTML
|
72
|
+
|
73
|
+
ICONS 1.0 http://www.satisoft.com/tcltk/icons/ ==> ICONS
|
74
|
+
|
75
|
+
TkImg 1.3 http://sourceforge.net/projects/tkimg ==> tkimg
|
76
|
+
|
77
|
+
|
78
|
+
BLT 2.4z http://sourceforge.net/projects/blt
|
79
|
+
* see also tcltk-ext library on RAA
|
80
|
+
(http://raa.ruby-lang.org/)
|
81
|
+
==> blt
|
82
|
+
|
83
|
+
TkTreeCtrl CVS/Hd(2005-12-02)
|
84
|
+
http://sourceforge.net/projects/tktreectrl ==> treectrl
|
85
|
+
|
86
|
+
Tile 0.8.0/8.5.1
|
87
|
+
http://sourceforge.net/projects/tktable ==> tile
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
===< support (may be alpha or beta quality) >=================================
|
92
|
+
|
93
|
+
IncrTcl CVS/Hd(2005-02-14)
|
94
|
+
http://sourceforge.net/projects/incrtcl ==> itcl, itk
|
95
|
+
|
96
|
+
TclX CVS/Hd(2005-02-07)
|
97
|
+
http://sourceforge.net/projects/tclx
|
98
|
+
==> tclx (partial support; infox command and
|
99
|
+
XPG/3 message catalogs only)
|
100
|
+
|
101
|
+
Trofs 0.4.3 http://math.nist.gov/~DPorter/tcltk/trofs/
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
===< possibly available (not tested; alpha quality) >=========================
|
106
|
+
|
107
|
+
winico 0.6
|
108
|
+
http://sourceforge.net/projects/tktable
|
109
|
+
==> winico (win32 only)
|
110
|
+
|
111
|
+
TkTrans latest(2004-10-11)
|
112
|
+
http://www2.cmp.uea.ac.uk/~fuzz/tktrans/default.html
|
113
|
+
==> tktrans (win32 only)
|
114
|
+
|
115
|
+
TkDND 1.0a2 http://sourceforge.net/projects/tkdnd ==> tkDND
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
===< plan to support (alpha quality libraries may be included) >==============
|
120
|
+
|
121
|
+
GraphViz *** http://www.graphviz.org/
|
122
|
+
|
123
|
+
Tkgeomap *** http://tkgeomap.sourceforge.net/index.html
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
===< not determined to supprt or not >========================================
|
128
|
+
|
129
|
+
Tix *** http://tixlibrary.sourceforge.net/
|
130
|
+
* see also tcltk-ext library on RAA
|
131
|
+
(http://raa.ruby-lang.org/)
|
132
|
+
|
133
|
+
TkZinc *** http://www.tkzinc.org/
|
134
|
+
|
135
|
+
Wbc *** http://home.t-online.de/home/csaba.nemethi/
|
136
|
+
|
137
|
+
Mentry *** http://home.t-online.de/home/csaba.nemethi/
|
138
|
+
|
139
|
+
Tablelist *** http://home.t-online.de/home/csaba.nemethi/
|
140
|
+
|
141
|
+
ANIGIF *** http://cardtable.sourceforge.net/tcltk/
|
142
|
+
|
143
|
+
IMG_ROTATE *** http://cardtable.sourceforge.net/tcltk/
|
144
|
+
|
145
|
+
TclVfs *** http://sourceforge.net/projects/tclvfs/
|
146
|
+
|
147
|
+
vfwtcl *** http://sourceforge.net/projects/avicaptcl
|
148
|
+
* Win32 only
|
149
|
+
|
150
|
+
multicast *** http://sourceforge.net/projects/avicaptcl
|
151
|
+
* Win32 only
|
152
|
+
|
153
|
+
XBit *** http://www.geocities.com/~chengye/
|
154
|
+
* current implementation is for Windows only
|
155
|
+
|
156
|
+
QuickTimeTcl *** http://hem.fyristorg.com/matben/qt/
|
157
|
+
* works under Mac OS (8,9,X) or Windows
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
===< may not support (already exist, out of Ruby/Tk scope, and so on) >=======
|
162
|
+
|
163
|
+
TkCon *** http://sourceforge.net/projects/tkcon
|
164
|
+
|
165
|
+
Expect *** http://sourceforge.net/projects/expect
|
166
|
+
|
167
|
+
TclXML *** http://sourceforge.net/projects/tclxml
|
168
|
+
|
169
|
+
TclXSLT *** http://sourceforge.net/projects/tclxml
|
170
|
+
|
171
|
+
TclDOM *** http://sourceforge.net/projects/tclxml
|
172
|
+
|
173
|
+
TclSOAP *** http://sourceforge.net/projects/tclsoap
|
174
|
+
|
175
|
+
Snack *** http://www.speech.kth.se/~kare/snack2.2.tar.gz
|
176
|
+
* use Snack for Ruby
|
177
|
+
(see http://rbsnack.sourceforge.net/)
|
178
|
+
|
179
|
+
Tcom *** http://www.vex.net/~cthuang/tcom/
|
180
|
+
|
181
|
+
tDOM *** http://www.tdom.org
|
182
|
+
|
183
|
+
Mk4tcl *** http://www.equi4.com/metakit/tcl.html
|
184
|
+
|
185
|
+
Memchan *** http://sourceforge.net/projects/memchan
|
186
|
+
|
187
|
+
XOTcl *** http://www.xotcl.org/
|
188
|
+
|
189
|
+
|
190
|
+
===< tool (may not supprt) >==================================================
|
191
|
+
|
192
|
+
tbcload/tclcompiler
|
193
|
+
*** http://www.tcl.tk/software/tclpro/
|
194
|
+
|
195
|
+
|
196
|
+
(End of List)
|