tk 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +6 -0
- data/BSDL +22 -0
- data/ChangeLog.tkextlib +949 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +56 -0
- data/MANUAL_tcltklib.eng +467 -0
- data/MANUAL_tcltklib.ja +578 -0
- data/README.1st +19 -0
- data/README.ActiveTcl +62 -0
- data/README.fork +34 -0
- data/README.macosx-aqua +67 -0
- data/README.md +33 -0
- data/README.tcltklib +152 -0
- data/Rakefile +16 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ext/tk/config_list.in +41 -0
- data/ext/tk/extconf.rb +2098 -0
- data/ext/tk/old-extconf.rb +441 -0
- data/ext/tk/stubs.c +592 -0
- data/ext/tk/stubs.h +33 -0
- data/ext/tk/tcltklib.c +11066 -0
- data/ext/tk/tkutil/extconf.rb +14 -0
- data/ext/tk/tkutil/tkutil.c +1900 -0
- data/lib/README +30 -0
- data/lib/multi-tk.rb +3743 -0
- data/lib/remote-tk.rb +527 -0
- data/lib/tcltk.rb +369 -0
- data/lib/tk.rb +5758 -0
- data/lib/tk/after.rb +7 -0
- data/lib/tk/autoload.rb +763 -0
- data/lib/tk/bgerror.rb +30 -0
- data/lib/tk/bindtag.rb +139 -0
- data/lib/tk/busy.rb +119 -0
- data/lib/tk/button.rb +32 -0
- data/lib/tk/canvas.rb +847 -0
- data/lib/tk/canvastag.rb +460 -0
- data/lib/tk/checkbutton.rb +33 -0
- data/lib/tk/clipboard.rb +76 -0
- data/lib/tk/clock.rb +72 -0
- data/lib/tk/composite.rb +485 -0
- data/lib/tk/console.rb +53 -0
- data/lib/tk/dialog.rb +327 -0
- data/lib/tk/encodedstr.rb +188 -0
- data/lib/tk/entry.rb +121 -0
- data/lib/tk/event.rb +563 -0
- data/lib/tk/font.rb +2352 -0
- data/lib/tk/fontchooser.rb +181 -0
- data/lib/tk/frame.rb +133 -0
- data/lib/tk/grid.rb +280 -0
- data/lib/tk/image.rb +396 -0
- data/lib/tk/itemconfig.rb +1222 -0
- data/lib/tk/itemfont.rb +328 -0
- data/lib/tk/kinput.rb +72 -0
- data/lib/tk/label.rb +23 -0
- data/lib/tk/labelframe.rb +32 -0
- data/lib/tk/listbox.rb +285 -0
- data/lib/tk/macpkg.rb +81 -0
- data/lib/tk/menu.rb +719 -0
- data/lib/tk/menubar.rb +138 -0
- data/lib/tk/menuspec.rb +457 -0
- data/lib/tk/message.rb +25 -0
- data/lib/tk/mngfocus.rb +34 -0
- data/lib/tk/msgcat.rb +300 -0
- data/lib/tk/namespace.rb +547 -0
- data/lib/tk/optiondb.rb +372 -0
- data/lib/tk/optionobj.rb +213 -0
- data/lib/tk/pack.rb +108 -0
- data/lib/tk/package.rb +144 -0
- data/lib/tk/palette.rb +56 -0
- data/lib/tk/panedwindow.rb +261 -0
- data/lib/tk/place.rb +129 -0
- data/lib/tk/radiobutton.rb +74 -0
- data/lib/tk/root.rb +96 -0
- data/lib/tk/scale.rb +113 -0
- data/lib/tk/scrollable.rb +83 -0
- data/lib/tk/scrollbar.rb +184 -0
- data/lib/tk/scrollbox.rb +40 -0
- data/lib/tk/selection.rb +87 -0
- data/lib/tk/spinbox.rb +145 -0
- data/lib/tk/tagfont.rb +44 -0
- data/lib/tk/text.rb +1605 -0
- data/lib/tk/textimage.rb +89 -0
- data/lib/tk/textmark.rb +205 -0
- data/lib/tk/texttag.rb +322 -0
- data/lib/tk/textwindow.rb +155 -0
- data/lib/tk/timer.rb +666 -0
- data/lib/tk/tk_mac.rb +159 -0
- data/lib/tk/toplevel.rb +265 -0
- data/lib/tk/ttk_selector.rb +99 -0
- data/lib/tk/txtwin_abst.rb +40 -0
- data/lib/tk/validation.rb +398 -0
- data/lib/tk/variable.rb +1797 -0
- data/lib/tk/virtevent.rb +140 -0
- data/lib/tk/winfo.rb +393 -0
- data/lib/tk/winpkg.rb +157 -0
- data/lib/tk/wm.rb +553 -0
- data/lib/tk/xim.rb +123 -0
- data/lib/tkafter.rb +5 -0
- data/lib/tkbgerror.rb +5 -0
- data/lib/tkcanvas.rb +5 -0
- data/lib/tkclass.rb +48 -0
- data/lib/tkconsole.rb +5 -0
- data/lib/tkdialog.rb +5 -0
- data/lib/tkentry.rb +5 -0
- data/lib/tkextlib/ICONS.rb +14 -0
- data/lib/tkextlib/ICONS/icons.rb +130 -0
- data/lib/tkextlib/ICONS/setup.rb +9 -0
- data/lib/tkextlib/SUPPORT_STATUS +193 -0
- data/lib/tkextlib/blt.rb +190 -0
- data/lib/tkextlib/blt/barchart.rb +80 -0
- data/lib/tkextlib/blt/bitmap.rb +113 -0
- data/lib/tkextlib/blt/busy.rb +84 -0
- data/lib/tkextlib/blt/component.rb +2219 -0
- data/lib/tkextlib/blt/container.rb +29 -0
- data/lib/tkextlib/blt/cutbuffer.rb +24 -0
- data/lib/tkextlib/blt/dragdrop.rb +270 -0
- data/lib/tkextlib/blt/eps.rb +33 -0
- data/lib/tkextlib/blt/graph.rb +68 -0
- data/lib/tkextlib/blt/htext.rb +113 -0
- data/lib/tkextlib/blt/setup.rb +9 -0
- data/lib/tkextlib/blt/spline.rb +24 -0
- data/lib/tkextlib/blt/stripchart.rb +75 -0
- data/lib/tkextlib/blt/table.rb +413 -0
- data/lib/tkextlib/blt/tabnotebook.rb +111 -0
- data/lib/tkextlib/blt/tabset.rb +505 -0
- data/lib/tkextlib/blt/ted.rb +69 -0
- data/lib/tkextlib/blt/tile.rb +26 -0
- data/lib/tkextlib/blt/tile/button.rb +17 -0
- data/lib/tkextlib/blt/tile/checkbutton.rb +18 -0
- data/lib/tkextlib/blt/tile/frame.rb +17 -0
- data/lib/tkextlib/blt/tile/label.rb +17 -0
- data/lib/tkextlib/blt/tile/radiobutton.rb +18 -0
- data/lib/tkextlib/blt/tile/scrollbar.rb +17 -0
- data/lib/tkextlib/blt/tile/toplevel.rb +17 -0
- data/lib/tkextlib/blt/tree.rb +1059 -0
- data/lib/tkextlib/blt/treeview.rb +1288 -0
- data/lib/tkextlib/blt/unix_dnd.rb +142 -0
- data/lib/tkextlib/blt/vector.rb +257 -0
- data/lib/tkextlib/blt/watch.rb +176 -0
- data/lib/tkextlib/blt/win_printer.rb +62 -0
- data/lib/tkextlib/blt/winop.rb +108 -0
- data/lib/tkextlib/bwidget.rb +154 -0
- data/lib/tkextlib/bwidget/arrowbutton.rb +22 -0
- data/lib/tkextlib/bwidget/bitmap.rb +22 -0
- data/lib/tkextlib/bwidget/button.rb +32 -0
- data/lib/tkextlib/bwidget/buttonbox.rb +91 -0
- data/lib/tkextlib/bwidget/combobox.rb +63 -0
- data/lib/tkextlib/bwidget/dialog.rb +195 -0
- data/lib/tkextlib/bwidget/dragsite.rb +32 -0
- data/lib/tkextlib/bwidget/dropsite.rb +40 -0
- data/lib/tkextlib/bwidget/dynamichelp.rb +64 -0
- data/lib/tkextlib/bwidget/entry.rb +44 -0
- data/lib/tkextlib/bwidget/label.rb +42 -0
- data/lib/tkextlib/bwidget/labelentry.rb +81 -0
- data/lib/tkextlib/bwidget/labelframe.rb +53 -0
- data/lib/tkextlib/bwidget/listbox.rb +362 -0
- data/lib/tkextlib/bwidget/mainframe.rb +133 -0
- data/lib/tkextlib/bwidget/messagedlg.rb +193 -0
- data/lib/tkextlib/bwidget/notebook.rb +167 -0
- data/lib/tkextlib/bwidget/pagesmanager.rb +74 -0
- data/lib/tkextlib/bwidget/panedwindow.rb +43 -0
- data/lib/tkextlib/bwidget/panelframe.rb +68 -0
- data/lib/tkextlib/bwidget/passwddlg.rb +45 -0
- data/lib/tkextlib/bwidget/progressbar.rb +21 -0
- data/lib/tkextlib/bwidget/progressdlg.rb +59 -0
- data/lib/tkextlib/bwidget/scrollableframe.rb +41 -0
- data/lib/tkextlib/bwidget/scrolledwindow.rb +49 -0
- data/lib/tkextlib/bwidget/scrollview.rb +26 -0
- data/lib/tkextlib/bwidget/selectcolor.rb +74 -0
- data/lib/tkextlib/bwidget/selectfont.rb +92 -0
- data/lib/tkextlib/bwidget/separator.rb +21 -0
- data/lib/tkextlib/bwidget/setup.rb +9 -0
- data/lib/tkextlib/bwidget/spinbox.rb +99 -0
- data/lib/tkextlib/bwidget/statusbar.rb +63 -0
- data/lib/tkextlib/bwidget/titleframe.rb +34 -0
- data/lib/tkextlib/bwidget/tree.rb +501 -0
- data/lib/tkextlib/bwidget/widget.rb +130 -0
- data/lib/tkextlib/itcl.rb +14 -0
- data/lib/tkextlib/itcl/incr_tcl.rb +179 -0
- data/lib/tkextlib/itcl/setup.rb +14 -0
- data/lib/tkextlib/itk.rb +14 -0
- data/lib/tkextlib/itk/incr_tk.rb +447 -0
- data/lib/tkextlib/itk/setup.rb +14 -0
- data/lib/tkextlib/iwidgets.rb +95 -0
- data/lib/tkextlib/iwidgets/buttonbox.rb +122 -0
- data/lib/tkextlib/iwidgets/calendar.rb +126 -0
- data/lib/tkextlib/iwidgets/canvasprintbox.rb +54 -0
- data/lib/tkextlib/iwidgets/canvasprintdialog.rb +39 -0
- data/lib/tkextlib/iwidgets/checkbox.rb +131 -0
- data/lib/tkextlib/iwidgets/combobox.rb +105 -0
- data/lib/tkextlib/iwidgets/dateentry.rb +21 -0
- data/lib/tkextlib/iwidgets/datefield.rb +59 -0
- data/lib/tkextlib/iwidgets/dialog.rb +21 -0
- data/lib/tkextlib/iwidgets/dialogshell.rb +122 -0
- data/lib/tkextlib/iwidgets/disjointlistbox.rb +51 -0
- data/lib/tkextlib/iwidgets/entryfield.rb +186 -0
- data/lib/tkextlib/iwidgets/extbutton.rb +41 -0
- data/lib/tkextlib/iwidgets/extfileselectionbox.rb +47 -0
- data/lib/tkextlib/iwidgets/extfileselectiondialog.rb +34 -0
- data/lib/tkextlib/iwidgets/feedback.rb +36 -0
- data/lib/tkextlib/iwidgets/fileselectionbox.rb +47 -0
- data/lib/tkextlib/iwidgets/fileselectiondialog.rb +34 -0
- data/lib/tkextlib/iwidgets/finddialog.rb +43 -0
- data/lib/tkextlib/iwidgets/hierarchy.rb +366 -0
- data/lib/tkextlib/iwidgets/hyperhelp.rb +51 -0
- data/lib/tkextlib/iwidgets/labeledframe.rb +40 -0
- data/lib/tkextlib/iwidgets/labeledwidget.rb +46 -0
- data/lib/tkextlib/iwidgets/mainwindow.rb +68 -0
- data/lib/tkextlib/iwidgets/menubar.rb +213 -0
- data/lib/tkextlib/iwidgets/messagebox.rb +94 -0
- data/lib/tkextlib/iwidgets/messagedialog.rb +21 -0
- data/lib/tkextlib/iwidgets/notebook.rb +176 -0
- data/lib/tkextlib/iwidgets/optionmenu.rb +93 -0
- data/lib/tkextlib/iwidgets/panedwindow.rb +135 -0
- data/lib/tkextlib/iwidgets/promptdialog.rb +132 -0
- data/lib/tkextlib/iwidgets/pushbutton.rb +36 -0
- data/lib/tkextlib/iwidgets/radiobox.rb +122 -0
- data/lib/tkextlib/iwidgets/scopedobject.rb +25 -0
- data/lib/tkextlib/iwidgets/scrolledcanvas.rb +354 -0
- data/lib/tkextlib/iwidgets/scrolledframe.rb +60 -0
- data/lib/tkextlib/iwidgets/scrolledhtml.rb +59 -0
- data/lib/tkextlib/iwidgets/scrolledlistbox.rb +208 -0
- data/lib/tkextlib/iwidgets/scrolledtext.rb +569 -0
- data/lib/tkextlib/iwidgets/scrolledwidget.rb +21 -0
- data/lib/tkextlib/iwidgets/selectionbox.rb +103 -0
- data/lib/tkextlib/iwidgets/selectiondialog.rb +93 -0
- data/lib/tkextlib/iwidgets/setup.rb +9 -0
- data/lib/tkextlib/iwidgets/shell.rb +39 -0
- data/lib/tkextlib/iwidgets/spindate.rb +49 -0
- data/lib/tkextlib/iwidgets/spinint.rb +31 -0
- data/lib/tkextlib/iwidgets/spinner.rb +170 -0
- data/lib/tkextlib/iwidgets/spintime.rb +49 -0
- data/lib/tkextlib/iwidgets/tabnotebook.rb +182 -0
- data/lib/tkextlib/iwidgets/tabset.rb +146 -0
- data/lib/tkextlib/iwidgets/timeentry.rb +26 -0
- data/lib/tkextlib/iwidgets/timefield.rb +59 -0
- data/lib/tkextlib/iwidgets/toolbar.rb +113 -0
- data/lib/tkextlib/iwidgets/watch.rb +57 -0
- data/lib/tkextlib/pkg_checker.rb +185 -0
- data/lib/tkextlib/setup.rb +9 -0
- data/lib/tkextlib/tcllib.rb +106 -0
- data/lib/tkextlib/tcllib/README +135 -0
- data/lib/tkextlib/tcllib/autoscroll.rb +159 -0
- data/lib/tkextlib/tcllib/calendar.rb +56 -0
- data/lib/tkextlib/tcllib/canvas_sqmap.rb +37 -0
- data/lib/tkextlib/tcllib/canvas_zoom.rb +22 -0
- data/lib/tkextlib/tcllib/chatwidget.rb +152 -0
- data/lib/tkextlib/tcllib/crosshair.rb +118 -0
- data/lib/tkextlib/tcllib/ctext.rb +161 -0
- data/lib/tkextlib/tcllib/cursor.rb +98 -0
- data/lib/tkextlib/tcllib/dateentry.rb +63 -0
- data/lib/tkextlib/tcllib/datefield.rb +58 -0
- data/lib/tkextlib/tcllib/diagrams.rb +225 -0
- data/lib/tkextlib/tcllib/dialog.rb +85 -0
- data/lib/tkextlib/tcllib/getstring.rb +135 -0
- data/lib/tkextlib/tcllib/history.rb +74 -0
- data/lib/tkextlib/tcllib/ico.rb +147 -0
- data/lib/tkextlib/tcllib/ip_entry.rb +76 -0
- data/lib/tkextlib/tcllib/khim.rb +69 -0
- data/lib/tkextlib/tcllib/menuentry.rb +48 -0
- data/lib/tkextlib/tcllib/ntext.rb +147 -0
- data/lib/tkextlib/tcllib/panelframe.rb +79 -0
- data/lib/tkextlib/tcllib/plotchart.rb +1405 -0
- data/lib/tkextlib/tcllib/ruler.rb +66 -0
- data/lib/tkextlib/tcllib/screenruler.rb +69 -0
- data/lib/tkextlib/tcllib/scrolledwindow.rb +58 -0
- data/lib/tkextlib/tcllib/scrollwin.rb +62 -0
- data/lib/tkextlib/tcllib/setup.rb +9 -0
- data/lib/tkextlib/tcllib/statusbar.rb +80 -0
- data/lib/tkextlib/tcllib/style.rb +62 -0
- data/lib/tkextlib/tcllib/superframe.rb +52 -0
- data/lib/tkextlib/tcllib/swaplist.rb +151 -0
- data/lib/tkextlib/tcllib/tablelist.rb +29 -0
- data/lib/tkextlib/tcllib/tablelist_core.rb +1073 -0
- data/lib/tkextlib/tcllib/tablelist_tile.rb +44 -0
- data/lib/tkextlib/tcllib/tkpiechart.rb +315 -0
- data/lib/tkextlib/tcllib/toolbar.rb +176 -0
- data/lib/tkextlib/tcllib/tooltip.rb +105 -0
- data/lib/tkextlib/tcllib/validator.rb +66 -0
- data/lib/tkextlib/tcllib/widget.rb +83 -0
- data/lib/tkextlib/tclx.rb +14 -0
- data/lib/tkextlib/tclx/setup.rb +9 -0
- data/lib/tkextlib/tclx/tclx.rb +75 -0
- data/lib/tkextlib/tile.rb +450 -0
- data/lib/tkextlib/tile/dialog.rb +103 -0
- data/lib/tkextlib/tile/setup.rb +9 -0
- data/lib/tkextlib/tile/sizegrip.rb +33 -0
- data/lib/tkextlib/tile/style.rb +337 -0
- data/lib/tkextlib/tile/tbutton.rb +35 -0
- data/lib/tkextlib/tile/tcheckbutton.rb +39 -0
- data/lib/tkextlib/tile/tcombobox.rb +56 -0
- data/lib/tkextlib/tile/tentry.rb +50 -0
- data/lib/tkextlib/tile/tframe.rb +35 -0
- data/lib/tkextlib/tile/tlabel.rb +35 -0
- data/lib/tkextlib/tile/tlabelframe.rb +39 -0
- data/lib/tkextlib/tile/tmenubutton.rb +39 -0
- data/lib/tkextlib/tile/tnotebook.rb +148 -0
- data/lib/tkextlib/tile/tpaned.rb +246 -0
- data/lib/tkextlib/tile/tprogressbar.rb +58 -0
- data/lib/tkextlib/tile/tradiobutton.rb +39 -0
- data/lib/tkextlib/tile/treeview.rb +1337 -0
- data/lib/tkextlib/tile/tscale.rb +57 -0
- data/lib/tkextlib/tile/tscrollbar.rb +64 -0
- data/lib/tkextlib/tile/tseparator.rb +35 -0
- data/lib/tkextlib/tile/tspinbox.rb +108 -0
- data/lib/tkextlib/tile/tsquare.rb +31 -0
- data/lib/tkextlib/tkDND.rb +19 -0
- data/lib/tkextlib/tkDND/setup.rb +9 -0
- data/lib/tkextlib/tkDND/shape.rb +126 -0
- data/lib/tkextlib/tkDND/tkdnd.rb +183 -0
- data/lib/tkextlib/tkHTML.rb +14 -0
- data/lib/tkextlib/tkHTML/htmlwidget.rb +454 -0
- data/lib/tkextlib/tkHTML/setup.rb +9 -0
- data/lib/tkextlib/tkimg.rb +37 -0
- data/lib/tkextlib/tkimg/README +26 -0
- data/lib/tkextlib/tkimg/bmp.rb +34 -0
- data/lib/tkextlib/tkimg/dted.rb +34 -0
- data/lib/tkextlib/tkimg/gif.rb +34 -0
- data/lib/tkextlib/tkimg/ico.rb +34 -0
- data/lib/tkextlib/tkimg/jpeg.rb +34 -0
- data/lib/tkextlib/tkimg/pcx.rb +34 -0
- data/lib/tkextlib/tkimg/pixmap.rb +45 -0
- data/lib/tkextlib/tkimg/png.rb +34 -0
- data/lib/tkextlib/tkimg/ppm.rb +34 -0
- data/lib/tkextlib/tkimg/ps.rb +34 -0
- data/lib/tkextlib/tkimg/raw.rb +34 -0
- data/lib/tkextlib/tkimg/setup.rb +9 -0
- data/lib/tkextlib/tkimg/sgi.rb +34 -0
- data/lib/tkextlib/tkimg/sun.rb +34 -0
- data/lib/tkextlib/tkimg/tga.rb +34 -0
- data/lib/tkextlib/tkimg/tiff.rb +34 -0
- data/lib/tkextlib/tkimg/window.rb +34 -0
- data/lib/tkextlib/tkimg/xbm.rb +34 -0
- data/lib/tkextlib/tkimg/xpm.rb +34 -0
- data/lib/tkextlib/tktable.rb +15 -0
- data/lib/tkextlib/tktable/setup.rb +9 -0
- data/lib/tkextlib/tktable/tktable.rb +967 -0
- data/lib/tkextlib/tktrans.rb +15 -0
- data/lib/tkextlib/tktrans/setup.rb +9 -0
- data/lib/tkextlib/tktrans/tktrans.rb +65 -0
- data/lib/tkextlib/treectrl.rb +14 -0
- data/lib/tkextlib/treectrl/setup.rb +9 -0
- data/lib/tkextlib/treectrl/tktreectrl.rb +2523 -0
- data/lib/tkextlib/trofs.rb +14 -0
- data/lib/tkextlib/trofs/setup.rb +9 -0
- data/lib/tkextlib/trofs/trofs.rb +52 -0
- data/lib/tkextlib/version.rb +7 -0
- data/lib/tkextlib/vu.rb +49 -0
- data/lib/tkextlib/vu/bargraph.rb +62 -0
- data/lib/tkextlib/vu/charts.rb +54 -0
- data/lib/tkextlib/vu/dial.rb +103 -0
- data/lib/tkextlib/vu/pie.rb +287 -0
- data/lib/tkextlib/vu/setup.rb +9 -0
- data/lib/tkextlib/vu/spinbox.rb +23 -0
- data/lib/tkextlib/winico.rb +15 -0
- data/lib/tkextlib/winico/setup.rb +9 -0
- data/lib/tkextlib/winico/winico.rb +225 -0
- data/lib/tkfont.rb +5 -0
- data/lib/tkmacpkg.rb +5 -0
- data/lib/tkmenubar.rb +5 -0
- data/lib/tkmngfocus.rb +5 -0
- data/lib/tkpalette.rb +5 -0
- data/lib/tkscrollbox.rb +5 -0
- data/lib/tktext.rb +5 -0
- data/lib/tkvirtevent.rb +5 -0
- data/lib/tkwinpkg.rb +5 -0
- data/old-README.tcltklib.ja +159 -0
- data/sample/24hr_clock.rb +287 -0
- data/sample/binding_sample.rb +88 -0
- data/sample/bindtag_sample.rb +128 -0
- data/sample/binstr_usage.rb +46 -0
- data/sample/btn_with_frame.rb +21 -0
- data/sample/cd_timer.rb +82 -0
- data/sample/cmd_res_test.rb +18 -0
- data/sample/cmd_resource +5 -0
- data/sample/demos-en/ChangeLog +64 -0
- data/sample/demos-en/ChangeLog.prev +9 -0
- data/sample/demos-en/README +138 -0
- data/sample/demos-en/README.1st +18 -0
- data/sample/demos-en/README.tkencoding +29 -0
- data/sample/demos-en/anilabel.rb +175 -0
- data/sample/demos-en/aniwave.rb +119 -0
- data/sample/demos-en/arrow.rb +250 -0
- data/sample/demos-en/bind.rb +128 -0
- data/sample/demos-en/bitmap.rb +76 -0
- data/sample/demos-en/browse1 +63 -0
- data/sample/demos-en/browse2 +82 -0
- data/sample/demos-en/button.rb +85 -0
- data/sample/demos-en/check.rb +73 -0
- data/sample/demos-en/check2.rb +110 -0
- data/sample/demos-en/clrpick.rb +88 -0
- data/sample/demos-en/colors.rb +159 -0
- data/sample/demos-en/combo.rb +97 -0
- data/sample/demos-en/cscroll.rb +137 -0
- data/sample/demos-en/ctext.rb +208 -0
- data/sample/demos-en/dialog1.rb +39 -0
- data/sample/demos-en/dialog2.rb +42 -0
- data/sample/demos-en/doc.org/README +7 -0
- data/sample/demos-en/doc.org/README.JP +14 -0
- data/sample/demos-en/doc.org/README.tk80 +46 -0
- data/sample/demos-en/doc.org/license.terms +39 -0
- data/sample/demos-en/doc.org/license.terms.tk80 +39 -0
- data/sample/demos-en/entry1.rb +59 -0
- data/sample/demos-en/entry2.rb +94 -0
- data/sample/demos-en/entry3.rb +221 -0
- data/sample/demos-en/filebox.rb +103 -0
- data/sample/demos-en/floor.rb +1724 -0
- data/sample/demos-en/floor2.rb +1723 -0
- data/sample/demos-en/form.rb +65 -0
- data/sample/demos-en/goldberg.rb +2007 -0
- data/sample/demos-en/hello +14 -0
- data/sample/demos-en/hscale.rb +76 -0
- data/sample/demos-en/icon.rb +106 -0
- data/sample/demos-en/image1.rb +66 -0
- data/sample/demos-en/image2.rb +108 -0
- data/sample/demos-en/image3.rb +126 -0
- data/sample/demos-en/items.rb +382 -0
- data/sample/demos-en/ixset +333 -0
- data/sample/demos-en/ixset2 +367 -0
- data/sample/demos-en/knightstour.rb +272 -0
- data/sample/demos-en/label.rb +73 -0
- data/sample/demos-en/labelframe.rb +96 -0
- data/sample/demos-en/mclist.rb +118 -0
- data/sample/demos-en/menu.rb +197 -0
- data/sample/demos-en/menu84.rb +216 -0
- data/sample/demos-en/menubu.rb +238 -0
- data/sample/demos-en/msgbox.rb +91 -0
- data/sample/demos-en/msgbox2.rb +92 -0
- data/sample/demos-en/paned1.rb +48 -0
- data/sample/demos-en/paned2.rb +95 -0
- data/sample/demos-en/pendulum.rb +241 -0
- data/sample/demos-en/plot.rb +125 -0
- data/sample/demos-en/puzzle.rb +135 -0
- data/sample/demos-en/radio.rb +87 -0
- data/sample/demos-en/radio2.rb +110 -0
- data/sample/demos-en/radio3.rb +118 -0
- data/sample/demos-en/rmt +268 -0
- data/sample/demos-en/rolodex +320 -0
- data/sample/demos-en/ruler.rb +206 -0
- data/sample/demos-en/sayings.rb +107 -0
- data/sample/demos-en/search.rb +188 -0
- data/sample/demos-en/spin.rb +66 -0
- data/sample/demos-en/square +81 -0
- data/sample/demos-en/states.rb +81 -0
- data/sample/demos-en/style.rb +232 -0
- data/sample/demos-en/tcolor +526 -0
- data/sample/demos-en/text.rb +129 -0
- data/sample/demos-en/textpeer.rb +77 -0
- data/sample/demos-en/timer +136 -0
- data/sample/demos-en/tkencoding.rb +43 -0
- data/sample/demos-en/toolbar.rb +131 -0
- data/sample/demos-en/tree.rb +120 -0
- data/sample/demos-en/ttkbut.rb +140 -0
- data/sample/demos-en/ttkmenu.rb +86 -0
- data/sample/demos-en/ttknote.rb +90 -0
- data/sample/demos-en/ttkpane.rb +214 -0
- data/sample/demos-en/ttkprogress.rb +67 -0
- data/sample/demos-en/twind.rb +292 -0
- data/sample/demos-en/twind2.rb +385 -0
- data/sample/demos-en/unicodeout.rb +115 -0
- data/sample/demos-en/vscale.rb +80 -0
- data/sample/demos-en/widget +1087 -0
- data/sample/demos-jp/README +54 -0
- data/sample/demos-jp/README.1st +20 -0
- data/sample/demos-jp/anilabel.rb +178 -0
- data/sample/demos-jp/aniwave.rb +121 -0
- data/sample/demos-jp/arrow.rb +248 -0
- data/sample/demos-jp/bind.rb +126 -0
- data/sample/demos-jp/bitmap.rb +75 -0
- data/sample/demos-jp/browse1 +63 -0
- data/sample/demos-jp/browse2 +82 -0
- data/sample/demos-jp/button.rb +84 -0
- data/sample/demos-jp/check.rb +71 -0
- data/sample/demos-jp/check2.rb +111 -0
- data/sample/demos-jp/clrpick.rb +85 -0
- data/sample/demos-jp/colors.rb +156 -0
- data/sample/demos-jp/combo.rb +99 -0
- data/sample/demos-jp/cscroll.rb +135 -0
- data/sample/demos-jp/ctext.rb +205 -0
- data/sample/demos-jp/dialog1.rb +40 -0
- data/sample/demos-jp/dialog2.rb +44 -0
- data/sample/demos-jp/doc.org/README +7 -0
- data/sample/demos-jp/doc.org/README.JP +14 -0
- data/sample/demos-jp/doc.org/README.tk80 +46 -0
- data/sample/demos-jp/doc.org/license.terms +39 -0
- data/sample/demos-jp/doc.org/license.terms.tk80 +39 -0
- data/sample/demos-jp/entry1.rb +61 -0
- data/sample/demos-jp/entry2.rb +92 -0
- data/sample/demos-jp/entry3.rb +226 -0
- data/sample/demos-jp/filebox.rb +103 -0
- data/sample/demos-jp/floor.rb +1722 -0
- data/sample/demos-jp/floor2.rb +1720 -0
- data/sample/demos-jp/form.rb +67 -0
- data/sample/demos-jp/goldberg.rb +2012 -0
- data/sample/demos-jp/hello +10 -0
- data/sample/demos-jp/hscale.rb +79 -0
- data/sample/demos-jp/icon.rb +104 -0
- data/sample/demos-jp/image1.rb +65 -0
- data/sample/demos-jp/image2.rb +107 -0
- data/sample/demos-jp/image3.rb +128 -0
- data/sample/demos-jp/items.rb +380 -0
- data/sample/demos-jp/ixset +333 -0
- data/sample/demos-jp/ixset2 +369 -0
- data/sample/demos-jp/knightstour.rb +274 -0
- data/sample/demos-jp/label.rb +70 -0
- data/sample/demos-jp/labelframe.rb +103 -0
- data/sample/demos-jp/mclist.rb +122 -0
- data/sample/demos-jp/menu.rb +202 -0
- data/sample/demos-jp/menu84.rb +214 -0
- data/sample/demos-jp/menu8x.rb +234 -0
- data/sample/demos-jp/menubu.rb +239 -0
- data/sample/demos-jp/msgbox.rb +90 -0
- data/sample/demos-jp/msgbox2.rb +91 -0
- data/sample/demos-jp/paned1.rb +53 -0
- data/sample/demos-jp/paned2.rb +101 -0
- data/sample/demos-jp/pendulum.rb +243 -0
- data/sample/demos-jp/plot.rb +127 -0
- data/sample/demos-jp/puzzle.rb +132 -0
- data/sample/demos-jp/radio.rb +85 -0
- data/sample/demos-jp/radio2.rb +113 -0
- data/sample/demos-jp/radio3.rb +120 -0
- data/sample/demos-jp/rmt +268 -0
- data/sample/demos-jp/rolodex +320 -0
- data/sample/demos-jp/rolodex-j +300 -0
- data/sample/demos-jp/ruler.rb +204 -0
- data/sample/demos-jp/sayings.rb +104 -0
- data/sample/demos-jp/search.rb +185 -0
- data/sample/demos-jp/spin.rb +72 -0
- data/sample/demos-jp/square +81 -0
- data/sample/demos-jp/states.rb +75 -0
- data/sample/demos-jp/style.rb +271 -0
- data/sample/demos-jp/tcolor +534 -0
- data/sample/demos-jp/text.rb +121 -0
- data/sample/demos-jp/textpeer.rb +83 -0
- data/sample/demos-jp/timer +136 -0
- data/sample/demos-jp/toolbar.rb +137 -0
- data/sample/demos-jp/tree.rb +121 -0
- data/sample/demos-jp/ttkbut.rb +146 -0
- data/sample/demos-jp/ttkmenu.rb +92 -0
- data/sample/demos-jp/ttknote.rb +98 -0
- data/sample/demos-jp/ttkpane.rb +217 -0
- data/sample/demos-jp/ttkprogress.rb +72 -0
- data/sample/demos-jp/twind.rb +293 -0
- data/sample/demos-jp/twind2.rb +385 -0
- data/sample/demos-jp/unicodeout.rb +120 -0
- data/sample/demos-jp/vscale.rb +81 -0
- data/sample/demos-jp/widget +1122 -0
- data/sample/editable_listbox.rb +149 -0
- data/sample/encstr_usage.rb +31 -0
- data/sample/figmemo_sample.rb +457 -0
- data/sample/images/earth.gif +0 -0
- data/sample/images/earthris.gif +0 -0
- data/sample/images/face.xbm +173 -0
- data/sample/images/flagdown.xbm +27 -0
- data/sample/images/flagup.xbm +27 -0
- data/sample/images/gray25.xbm +6 -0
- data/sample/images/grey.25 +6 -0
- data/sample/images/grey.5 +6 -0
- data/sample/images/letters.xbm +27 -0
- data/sample/images/noletter.xbm +27 -0
- data/sample/images/pattern.xbm +6 -0
- data/sample/images/tcllogo.gif +0 -0
- data/sample/images/teapot.ppm +31 -0
- data/sample/irbtk.rb +31 -0
- data/sample/irbtkw.rbw +156 -0
- data/sample/iso2022-kr.txt +2 -0
- data/sample/menubar1.rb +52 -0
- data/sample/menubar2.rb +57 -0
- data/sample/menubar3.rb +73 -0
- data/sample/msgs_rb/README +3 -0
- data/sample/msgs_rb/cs.msg +84 -0
- data/sample/msgs_rb/de.msg +88 -0
- data/sample/msgs_rb/el.msg +98 -0
- data/sample/msgs_rb/en.msg +83 -0
- data/sample/msgs_rb/en_gb.msg +7 -0
- data/sample/msgs_rb/eo.msg +87 -0
- data/sample/msgs_rb/es.msg +84 -0
- data/sample/msgs_rb/fr.msg +84 -0
- data/sample/msgs_rb/it.msg +84 -0
- data/sample/msgs_rb/ja.msg +13 -0
- data/sample/msgs_rb/nl.msg +123 -0
- data/sample/msgs_rb/pl.msg +87 -0
- data/sample/msgs_rb/ru.msg +87 -0
- data/sample/msgs_rb2/README +5 -0
- data/sample/msgs_rb2/de.msg +88 -0
- data/sample/msgs_rb2/ja.msg +85 -0
- data/sample/msgs_tk/README +4 -0
- data/sample/msgs_tk/cs.msg +84 -0
- data/sample/msgs_tk/de.msg +88 -0
- data/sample/msgs_tk/el.msg +103 -0
- data/sample/msgs_tk/en.msg +83 -0
- data/sample/msgs_tk/en_gb.msg +7 -0
- data/sample/msgs_tk/eo.msg +87 -0
- data/sample/msgs_tk/es.msg +84 -0
- data/sample/msgs_tk/fr.msg +84 -0
- data/sample/msgs_tk/it.msg +84 -0
- data/sample/msgs_tk/ja.msg +13 -0
- data/sample/msgs_tk/license.terms +39 -0
- data/sample/msgs_tk/nl.msg +123 -0
- data/sample/msgs_tk/pl.msg +87 -0
- data/sample/msgs_tk/ru.msg +87 -0
- data/sample/multi-ip_sample.rb +104 -0
- data/sample/multi-ip_sample2.rb +30 -0
- data/sample/optobj_sample.rb +68 -0
- data/sample/propagate.rb +31 -0
- data/sample/remote-ip_sample.rb +34 -0
- data/sample/remote-ip_sample2.rb +57 -0
- data/sample/resource.en +13 -0
- data/sample/resource.ja +13 -0
- data/sample/safe-tk.rb +132 -0
- data/sample/scrollframe.rb +250 -0
- data/sample/tcltklib/batsu.gif +0 -0
- data/sample/tcltklib/lines0.tcl +42 -0
- data/sample/tcltklib/lines1.rb +51 -0
- data/sample/tcltklib/lines2.rb +55 -0
- data/sample/tcltklib/lines3.rb +55 -0
- data/sample/tcltklib/lines4.rb +55 -0
- data/sample/tcltklib/maru.gif +0 -0
- data/sample/tcltklib/safeTk.rb +23 -0
- data/sample/tcltklib/sample0.rb +40 -0
- data/sample/tcltklib/sample1.rb +635 -0
- data/sample/tcltklib/sample2.rb +452 -0
- data/sample/tkalignbox.rb +236 -0
- data/sample/tkballoonhelp.rb +221 -0
- data/sample/tkbiff.rb +156 -0
- data/sample/tkbrowse.rb +80 -0
- data/sample/tkcombobox.rb +498 -0
- data/sample/tkdialog.rb +62 -0
- data/sample/tkextlib/ICONS/Orig_LICENSE.txt +61 -0
- data/sample/tkextlib/ICONS/tkIcons +195 -0
- data/sample/tkextlib/ICONS/tkIcons-sample.kde +658 -0
- data/sample/tkextlib/ICONS/tkIcons.kde +195 -0
- data/sample/tkextlib/ICONS/viewIcons.rb +330 -0
- data/sample/tkextlib/blt/barchart5.rb +102 -0
- data/sample/tkextlib/blt/calendar.rb +118 -0
- data/sample/tkextlib/blt/graph6.rb +2223 -0
- data/sample/tkextlib/blt/graph7.rb +41 -0
- data/sample/tkextlib/blt/graph7a.rb +64 -0
- data/sample/tkextlib/blt/graph7b.rb +42 -0
- data/sample/tkextlib/blt/graph7c.rb +46 -0
- data/sample/tkextlib/blt/images/buckskin.gif +0 -0
- data/sample/tkextlib/blt/images/chalk.gif +0 -0
- data/sample/tkextlib/blt/images/qv100.t.gif +0 -0
- data/sample/tkextlib/blt/images/rain.gif +0 -0
- data/sample/tkextlib/blt/images/sample.gif +0 -0
- data/sample/tkextlib/blt/pareto.rb +91 -0
- data/sample/tkextlib/blt/plot1.rb +10 -0
- data/sample/tkextlib/blt/plot1b.rb +11 -0
- data/sample/tkextlib/blt/readme.txt +2 -0
- data/sample/tkextlib/blt/scripts/stipples.rb +157 -0
- data/sample/tkextlib/blt/winop1.rb +41 -0
- data/sample/tkextlib/blt/winop2.rb +29 -0
- data/sample/tkextlib/bwidget/Orig_LICENSE.txt +53 -0
- data/sample/tkextlib/bwidget/basic.rb +199 -0
- data/sample/tkextlib/bwidget/bwidget.xbm +46 -0
- data/sample/tkextlib/bwidget/demo.rb +244 -0
- data/sample/tkextlib/bwidget/dnd.rb +47 -0
- data/sample/tkextlib/bwidget/manager.rb +151 -0
- data/sample/tkextlib/bwidget/select.rb +83 -0
- data/sample/tkextlib/bwidget/tmpldlg.rb +222 -0
- data/sample/tkextlib/bwidget/tree.rb +290 -0
- data/sample/tkextlib/bwidget/x1.xbm +2258 -0
- data/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt +42 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/box.xbm +14 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/clear.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/close.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/copy.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/cut.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/exit.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/find.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/help.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/line.xbm +14 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/mag.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/new.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/open.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/oval.xbm +14 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/paste.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/points.xbm +14 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/poly.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/print.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/ruler.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/save.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/select.gif +0 -0
- data/sample/tkextlib/iwidgets/catalog_demo/images/text.xbm +14 -0
- data/sample/tkextlib/iwidgets/sample/buttonbox.rb +23 -0
- data/sample/tkextlib/iwidgets/sample/calendar.rb +11 -0
- data/sample/tkextlib/iwidgets/sample/canvasprintbox.rb +9 -0
- data/sample/tkextlib/iwidgets/sample/canvasprintdialog.rb +9 -0
- data/sample/tkextlib/iwidgets/sample/checkbox.rb +13 -0
- data/sample/tkextlib/iwidgets/sample/combobox.rb +33 -0
- data/sample/tkextlib/iwidgets/sample/dateentry.rb +8 -0
- data/sample/tkextlib/iwidgets/sample/datefield.rb +9 -0
- data/sample/tkextlib/iwidgets/sample/dialog.rb +21 -0
- data/sample/tkextlib/iwidgets/sample/dialogshell.rb +15 -0
- data/sample/tkextlib/iwidgets/sample/disjointlistbox.rb +17 -0
- data/sample/tkextlib/iwidgets/sample/entryfield-1.rb +40 -0
- data/sample/tkextlib/iwidgets/sample/entryfield-2.rb +45 -0
- data/sample/tkextlib/iwidgets/sample/entryfield-3.rb +41 -0
- data/sample/tkextlib/iwidgets/sample/extbutton.rb +21 -0
- data/sample/tkextlib/iwidgets/sample/extfileselectionbox.rb +9 -0
- data/sample/tkextlib/iwidgets/sample/extfileselectiondialog.rb +30 -0
- data/sample/tkextlib/iwidgets/sample/feedback.rb +11 -0
- data/sample/tkextlib/iwidgets/sample/fileselectionbox.rb +9 -0
- data/sample/tkextlib/iwidgets/sample/fileselectiondialog.rb +29 -0
- data/sample/tkextlib/iwidgets/sample/finddialog.rb +16 -0
- data/sample/tkextlib/iwidgets/sample/hierarchy.rb +26 -0
- data/sample/tkextlib/iwidgets/sample/hyperhelp.rb +15 -0
- data/sample/tkextlib/iwidgets/sample/labeledframe.rb +15 -0
- data/sample/tkextlib/iwidgets/sample/labeledwidget.rb +14 -0
- data/sample/tkextlib/iwidgets/sample/mainwindow.rb +65 -0
- data/sample/tkextlib/iwidgets/sample/menubar.rb +125 -0
- data/sample/tkextlib/iwidgets/sample/menubar2.rb +45 -0
- data/sample/tkextlib/iwidgets/sample/messagebox1.rb +20 -0
- data/sample/tkextlib/iwidgets/sample/messagebox2.rb +20 -0
- data/sample/tkextlib/iwidgets/sample/messagedialog.rb +45 -0
- data/sample/tkextlib/iwidgets/sample/notebook.rb +31 -0
- data/sample/tkextlib/iwidgets/sample/notebook2.rb +31 -0
- data/sample/tkextlib/iwidgets/sample/optionmenu.rb +15 -0
- data/sample/tkextlib/iwidgets/sample/panedwindow.rb +23 -0
- data/sample/tkextlib/iwidgets/sample/panedwindow2.rb +23 -0
- data/sample/tkextlib/iwidgets/sample/promptdialog.rb +18 -0
- data/sample/tkextlib/iwidgets/sample/pushbutton.rb +10 -0
- data/sample/tkextlib/iwidgets/sample/radiobox.rb +14 -0
- data/sample/tkextlib/iwidgets/sample/scrolledcanvas.rb +14 -0
- data/sample/tkextlib/iwidgets/sample/scrolledframe.rb +19 -0
- data/sample/tkextlib/iwidgets/sample/scrolledhtml.rb +16 -0
- data/sample/tkextlib/iwidgets/sample/scrolledlistbox.rb +23 -0
- data/sample/tkextlib/iwidgets/sample/scrolledtext.rb +12 -0
- data/sample/tkextlib/iwidgets/sample/selectionbox.rb +20 -0
- data/sample/tkextlib/iwidgets/sample/selectiondialog.rb +13 -0
- data/sample/tkextlib/iwidgets/sample/shell.rb +18 -0
- data/sample/tkextlib/iwidgets/sample/spindate.rb +8 -0
- data/sample/tkextlib/iwidgets/sample/spinint.rb +11 -0
- data/sample/tkextlib/iwidgets/sample/spinner.rb +34 -0
- data/sample/tkextlib/iwidgets/sample/spintime.rb +8 -0
- data/sample/tkextlib/iwidgets/sample/tabnotebook.rb +27 -0
- data/sample/tkextlib/iwidgets/sample/tabnotebook2.rb +31 -0
- data/sample/tkextlib/iwidgets/sample/tabset.rb +35 -0
- data/sample/tkextlib/iwidgets/sample/timeentry.rb +8 -0
- data/sample/tkextlib/iwidgets/sample/timefield.rb +9 -0
- data/sample/tkextlib/iwidgets/sample/toolbar.rb +153 -0
- data/sample/tkextlib/iwidgets/sample/watch.rb +19 -0
- data/sample/tkextlib/tcllib/Orig_LICENSE.txt +46 -0
- data/sample/tkextlib/tcllib/datefield.rb +30 -0
- data/sample/tkextlib/tcllib/plotdemos1.rb +159 -0
- data/sample/tkextlib/tcllib/plotdemos2.rb +72 -0
- data/sample/tkextlib/tcllib/plotdemos3.rb +84 -0
- data/sample/tkextlib/tcllib/xyplot.rb +18 -0
- data/sample/tkextlib/tile/Orig_LICENSE.txt +30 -0
- data/sample/tkextlib/tile/demo.rb +984 -0
- data/sample/tkextlib/tile/iconlib.tcl +110 -0
- data/sample/tkextlib/tile/readme.txt +2 -0
- data/sample/tkextlib/tile/repeater.tcl +117 -0
- data/sample/tkextlib/tile/themes/blue/blue.tcl +149 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowdown-h.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowdown-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowdown.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowleft-h.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowleft-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowleft.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowright-h.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowright-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowright.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowup-h.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowup-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/arrowup.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/button-h.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/button-n.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/button-n.xcf +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/button-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/check-hc.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/check-hu.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/check-nc.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/check-nu.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/radio-hc.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/radio-hu.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/radio-nc.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/radio-nu.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/sb-thumb-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/sb-thumb.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/sb-vthumb-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/sb-vthumb.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/slider-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/slider.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/vslider-p.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/blue/vslider.gif +0 -0
- data/sample/tkextlib/tile/themes/blue/pkgIndex.tcl +6 -0
- data/sample/tkextlib/tile/themes/keramik/keramik.tcl +194 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowdown-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowdown-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowleft-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowleft-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowright-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowright-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowup-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/arrowup-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/button-d.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/button-h.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/button-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/button-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/button-s.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/check-c.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/check-u.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/hsb-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/hsb-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/hslider-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/mbut-a.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/mbut-arrow-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/mbut-d.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/mbut-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/radio-c.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/radio-u.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/tab-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/tab-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/tbar-a.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/tbar-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/tbar-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/vsb-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/vsb-p.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/keramik/vslider-n.gif +0 -0
- data/sample/tkextlib/tile/themes/keramik/pkgIndex.tcl +15 -0
- data/sample/tkextlib/tile/themes/kroc.rb +227 -0
- data/sample/tkextlib/tile/themes/kroc/kroc.tcl +163 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/button-h.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/button-n.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/button-p.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/check-hc.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/check-hu.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/check-nc.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/check-nu.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/radio-hc.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/radio-hu.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/radio-nc.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/kroc/radio-nu.gif +0 -0
- data/sample/tkextlib/tile/themes/kroc/pkgIndex.tcl +15 -0
- data/sample/tkextlib/tile/themes/plastik/pkgIndex.tcl +16 -0
- data/sample/tkextlib/tile/themes/plastik/plastik.tcl +125 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowdown-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowdown-p.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowleft-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowleft-p.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowright-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowright-p.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowup-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/arrowup-p.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/button-h.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/button-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/button-p.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/check-hc.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/check-hu.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/check-nc.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/check-nu.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/check-pc.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/hsb-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/hslider-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/radio-hc.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/radio-hu.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/radio-nc.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/radio-nu.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/radio-pc.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/vsb-n.gif +0 -0
- data/sample/tkextlib/tile/themes/plastik/plastik/vslider-n.gif +0 -0
- data/sample/tkextlib/tile/toolbutton.tcl +152 -0
- data/sample/tkextlib/tkHTML/Orig_COPYRIGHT.txt +12 -0
- data/sample/tkextlib/tkHTML/README +12 -0
- data/sample/tkextlib/tkHTML/hv.rb +314 -0
- data/sample/tkextlib/tkHTML/page1/image1 +0 -0
- data/sample/tkextlib/tkHTML/page1/image10 +0 -0
- data/sample/tkextlib/tkHTML/page1/image11 +0 -0
- data/sample/tkextlib/tkHTML/page1/image12 +0 -0
- data/sample/tkextlib/tkHTML/page1/image13 +0 -0
- data/sample/tkextlib/tkHTML/page1/image14 +0 -0
- data/sample/tkextlib/tkHTML/page1/image2 +0 -0
- data/sample/tkextlib/tkHTML/page1/image3 +0 -0
- data/sample/tkextlib/tkHTML/page1/image4 +0 -0
- data/sample/tkextlib/tkHTML/page1/image5 +0 -0
- data/sample/tkextlib/tkHTML/page1/image6 +0 -0
- data/sample/tkextlib/tkHTML/page1/image7 +0 -0
- data/sample/tkextlib/tkHTML/page1/image8 +0 -0
- data/sample/tkextlib/tkHTML/page1/image9 +0 -0
- data/sample/tkextlib/tkHTML/page1/index.html +115 -0
- data/sample/tkextlib/tkHTML/page2/image1 +0 -0
- data/sample/tkextlib/tkHTML/page2/image10 +0 -0
- data/sample/tkextlib/tkHTML/page2/image11 +0 -0
- data/sample/tkextlib/tkHTML/page2/image12 +0 -0
- data/sample/tkextlib/tkHTML/page2/image13 +0 -0
- data/sample/tkextlib/tkHTML/page2/image14 +0 -0
- data/sample/tkextlib/tkHTML/page2/image15 +0 -0
- data/sample/tkextlib/tkHTML/page2/image16 +0 -0
- data/sample/tkextlib/tkHTML/page2/image17 +0 -0
- data/sample/tkextlib/tkHTML/page2/image18 +0 -0
- data/sample/tkextlib/tkHTML/page2/image19 +0 -0
- data/sample/tkextlib/tkHTML/page2/image2 +0 -0
- data/sample/tkextlib/tkHTML/page2/image20 +0 -0
- data/sample/tkextlib/tkHTML/page2/image21 +0 -0
- data/sample/tkextlib/tkHTML/page2/image22 +0 -0
- data/sample/tkextlib/tkHTML/page2/image23 +0 -0
- data/sample/tkextlib/tkHTML/page2/image24 +0 -0
- data/sample/tkextlib/tkHTML/page2/image25 +0 -0
- data/sample/tkextlib/tkHTML/page2/image26 +0 -0
- data/sample/tkextlib/tkHTML/page2/image27 +0 -0
- data/sample/tkextlib/tkHTML/page2/image28 +0 -0
- data/sample/tkextlib/tkHTML/page2/image29 +0 -0
- data/sample/tkextlib/tkHTML/page2/image3 +0 -0
- data/sample/tkextlib/tkHTML/page2/image30 +0 -0
- data/sample/tkextlib/tkHTML/page2/image31 +0 -0
- data/sample/tkextlib/tkHTML/page2/image32 +0 -0
- data/sample/tkextlib/tkHTML/page2/image33 +0 -0
- data/sample/tkextlib/tkHTML/page2/image34 +0 -0
- data/sample/tkextlib/tkHTML/page2/image35 +0 -0
- data/sample/tkextlib/tkHTML/page2/image36 +0 -0
- data/sample/tkextlib/tkHTML/page2/image37 +0 -0
- data/sample/tkextlib/tkHTML/page2/image38 +0 -0
- data/sample/tkextlib/tkHTML/page2/image39 +0 -0
- data/sample/tkextlib/tkHTML/page2/image4 +0 -0
- data/sample/tkextlib/tkHTML/page2/image5 +0 -0
- data/sample/tkextlib/tkHTML/page2/image6 +0 -0
- data/sample/tkextlib/tkHTML/page2/image7 +0 -0
- data/sample/tkextlib/tkHTML/page2/image8 +0 -0
- data/sample/tkextlib/tkHTML/page2/image9 +0 -0
- data/sample/tkextlib/tkHTML/page2/index.html +433 -0
- data/sample/tkextlib/tkHTML/page3/image1 +0 -0
- data/sample/tkextlib/tkHTML/page3/image10 +0 -0
- data/sample/tkextlib/tkHTML/page3/image11 +0 -0
- data/sample/tkextlib/tkHTML/page3/image12 +0 -0
- data/sample/tkextlib/tkHTML/page3/image13 +0 -0
- data/sample/tkextlib/tkHTML/page3/image14 +0 -0
- data/sample/tkextlib/tkHTML/page3/image2 +0 -0
- data/sample/tkextlib/tkHTML/page3/image3 +0 -0
- data/sample/tkextlib/tkHTML/page3/image4 +0 -0
- data/sample/tkextlib/tkHTML/page3/image5 +0 -0
- data/sample/tkextlib/tkHTML/page3/image6 +0 -0
- data/sample/tkextlib/tkHTML/page3/image7 +0 -0
- data/sample/tkextlib/tkHTML/page3/image8 +0 -0
- data/sample/tkextlib/tkHTML/page3/image9 +0 -0
- data/sample/tkextlib/tkHTML/page3/index.html +2787 -0
- data/sample/tkextlib/tkHTML/page4/image1 +0 -0
- data/sample/tkextlib/tkHTML/page4/image2 +0 -0
- data/sample/tkextlib/tkHTML/page4/image3 +0 -0
- data/sample/tkextlib/tkHTML/page4/image4 +0 -0
- data/sample/tkextlib/tkHTML/page4/image5 +0 -0
- data/sample/tkextlib/tkHTML/page4/image6 +0 -0
- data/sample/tkextlib/tkHTML/page4/image7 +0 -0
- data/sample/tkextlib/tkHTML/page4/image8 +0 -0
- data/sample/tkextlib/tkHTML/page4/image9 +0 -0
- data/sample/tkextlib/tkHTML/page4/index.html +768 -0
- data/sample/tkextlib/tkHTML/ss.rb +437 -0
- data/sample/tkextlib/tkimg/demo.rb +1479 -0
- data/sample/tkextlib/tkimg/license_terms_of_Img_extension +41 -0
- data/sample/tkextlib/tkimg/readme.txt +3 -0
- data/sample/tkextlib/tktable/Orig_LICENSE.txt +52 -0
- data/sample/tkextlib/tktable/basic.rb +61 -0
- data/sample/tkextlib/tktable/buttons.rb +77 -0
- data/sample/tkextlib/tktable/command.rb +90 -0
- data/sample/tkextlib/tktable/debug.rb +102 -0
- data/sample/tkextlib/tktable/dynarows.rb +100 -0
- data/sample/tkextlib/tktable/maxsize.rb +68 -0
- data/sample/tkextlib/tktable/spreadsheet.rb +138 -0
- data/sample/tkextlib/tktable/tcllogo.gif +0 -0
- data/sample/tkextlib/tktable/valid.rb +89 -0
- data/sample/tkextlib/treectrl/bitmaps.rb +77 -0
- data/sample/tkextlib/treectrl/demo.rb +1306 -0
- data/sample/tkextlib/treectrl/explorer.rb +431 -0
- data/sample/tkextlib/treectrl/help.rb +405 -0
- data/sample/tkextlib/treectrl/imovie.rb +131 -0
- data/sample/tkextlib/treectrl/layout.rb +160 -0
- data/sample/tkextlib/treectrl/mailwasher.rb +270 -0
- data/sample/tkextlib/treectrl/outlook-folders.rb +125 -0
- data/sample/tkextlib/treectrl/outlook-newgroup.rb +449 -0
- data/sample/tkextlib/treectrl/pics/big-dll.gif +0 -0
- data/sample/tkextlib/treectrl/pics/big-exe.gif +0 -0
- data/sample/tkextlib/treectrl/pics/big-file.gif +0 -0
- data/sample/tkextlib/treectrl/pics/big-folder.gif +0 -0
- data/sample/tkextlib/treectrl/pics/big-txt.gif +0 -0
- data/sample/tkextlib/treectrl/pics/checked.gif +0 -0
- data/sample/tkextlib/treectrl/pics/file.gif +0 -0
- data/sample/tkextlib/treectrl/pics/folder-closed.gif +0 -0
- data/sample/tkextlib/treectrl/pics/folder-open.gif +0 -0
- data/sample/tkextlib/treectrl/pics/help-book-closed.gif +0 -0
- data/sample/tkextlib/treectrl/pics/help-book-open.gif +0 -0
- data/sample/tkextlib/treectrl/pics/help-page.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-01.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-02.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-03.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-04.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-05.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-06.gif +0 -0
- data/sample/tkextlib/treectrl/pics/imovie-07.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-check-off.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-check-on.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-print.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-radio-off.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-radio-on.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-search.gif +0 -0
- data/sample/tkextlib/treectrl/pics/internet-security.gif +0 -0
- data/sample/tkextlib/treectrl/pics/mac-collapse.gif +0 -0
- data/sample/tkextlib/treectrl/pics/mac-expand.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-arrow.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-clip.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-deleted.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-draft.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-folder.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-group.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-inbox.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-local.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-main.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-outbox.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-read-2.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-read.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-sent.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-server.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-unread.gif +0 -0
- data/sample/tkextlib/treectrl/pics/outlook-watch.gif +0 -0
- data/sample/tkextlib/treectrl/pics/sky.gif +0 -0
- data/sample/tkextlib/treectrl/pics/small-dll.gif +0 -0
- data/sample/tkextlib/treectrl/pics/small-exe.gif +0 -0
- data/sample/tkextlib/treectrl/pics/small-file.gif +0 -0
- data/sample/tkextlib/treectrl/pics/small-folder.gif +0 -0
- data/sample/tkextlib/treectrl/pics/small-txt.gif +0 -0
- data/sample/tkextlib/treectrl/pics/unchecked.gif +0 -0
- data/sample/tkextlib/treectrl/random.rb +509 -0
- data/sample/tkextlib/treectrl/readme.txt +2 -0
- data/sample/tkextlib/treectrl/www-options.rb +304 -0
- data/sample/tkextlib/vu/Orig_LICENSE.txt +51 -0
- data/sample/tkextlib/vu/README.txt +50 -0
- data/sample/tkextlib/vu/canvItems.rb +91 -0
- data/sample/tkextlib/vu/canvSticker.rb +83 -0
- data/sample/tkextlib/vu/canvSticker2.rb +102 -0
- data/sample/tkextlib/vu/dial_demo.rb +114 -0
- data/sample/tkextlib/vu/m128_000.xbm +174 -0
- data/sample/tkextlib/vu/oscilloscope.rb +69 -0
- data/sample/tkextlib/vu/pie.rb +57 -0
- data/sample/tkextlib/vu/vu_demo.rb +68 -0
- data/sample/tkfrom.rb +133 -0
- data/sample/tkhello.rb +11 -0
- data/sample/tkline.rb +48 -0
- data/sample/tkmenubutton.rb +136 -0
- data/sample/tkmsgcat-load_rb.rb +103 -0
- data/sample/tkmsgcat-load_rb2.rb +103 -0
- data/sample/tkmsgcat-load_tk.rb +119 -0
- data/sample/tkmulticolumnlist.rb +744 -0
- data/sample/tkmultilistbox.rb +655 -0
- data/sample/tkmultilistframe.rb +941 -0
- data/sample/tkoptdb-safeTk.rb +74 -0
- data/sample/tkoptdb.rb +107 -0
- data/sample/tkrttimer.rb +78 -0
- data/sample/tksleep_sample.rb +30 -0
- data/sample/tktextframe.rb +282 -0
- data/sample/tktextio.rb +1061 -0
- data/sample/tktimer.rb +51 -0
- data/sample/tktimer2.rb +48 -0
- data/sample/tktimer3.rb +60 -0
- data/sample/tktree.rb +104 -0
- data/sample/tktree.tcl +305 -0
- data/sample/ttk_wrapper.rb +155 -0
- data/tk.gemspec +24 -0
- metadata +1144 -0
@@ -0,0 +1,1720 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# frozen_string_literal: false
|
3
|
+
#
|
4
|
+
# floorDisplay widget demo 2 (called by 'widget')
|
5
|
+
#
|
6
|
+
|
7
|
+
# floorDisplay2 --
|
8
|
+
# Recreate the floorplan display in the canvas given by "w". The
|
9
|
+
# floor given by "active" is displayed on top with its office structure
|
10
|
+
# visible.
|
11
|
+
#
|
12
|
+
# Arguments:
|
13
|
+
# w - Name of the canvas window.
|
14
|
+
# active - Number of active floor (1, 2, or 3).
|
15
|
+
|
16
|
+
def floorDisplay2(w,active)
|
17
|
+
return if $activeFloor2 == active
|
18
|
+
|
19
|
+
w.delete('all')
|
20
|
+
$activeFloor2 = active
|
21
|
+
|
22
|
+
# First go through the three floors, displaying the backgrounds for
|
23
|
+
# each floor.
|
24
|
+
|
25
|
+
floor2_bg1(w,$floor2_colors['bg1'],$floor2_colors['outline1'])
|
26
|
+
floor2_bg2(w,$floor2_colors['bg2'],$floor2_colors['outline2'])
|
27
|
+
floor2_bg3(w,$floor2_colors['bg3'],$floor2_colors['outline3'])
|
28
|
+
|
29
|
+
# Raise the background for the active floor so that it's on top.
|
30
|
+
|
31
|
+
w.raise("floor#{active}")
|
32
|
+
|
33
|
+
# Create a dummy item just to mark this point in the display list,
|
34
|
+
# so we can insert highlights here.
|
35
|
+
|
36
|
+
w.create(TkcRectangle,0,100,1,101,'fill'=>'','outline'=>'','tags'=>'marker')
|
37
|
+
|
38
|
+
# Add the walls and labels for the active floor, along with
|
39
|
+
# transparent polygons that define the rooms on the floor.
|
40
|
+
# Make sure that the room polygons are on top.
|
41
|
+
|
42
|
+
$floorLabels2.clear
|
43
|
+
$floorItems2.clear
|
44
|
+
send("floor2_fg#{active}", w, $floor2_colors['offices'])
|
45
|
+
w.raise('room')
|
46
|
+
|
47
|
+
# Offset the floors diagonally from each other.
|
48
|
+
|
49
|
+
w.move('floor1', '2c', '2c')
|
50
|
+
w.move('floor2', '1c', '1c')
|
51
|
+
|
52
|
+
# Create items for the room entry and its label.
|
53
|
+
w.create(TkcWindow, 600, 100, 'anchor'=>'w', 'window'=>$floor2_entry)
|
54
|
+
w.create(TkcText, 600, 100, 'anchor'=>'e', 'text'=>"部屋番号: ")
|
55
|
+
w['scrollregion'] = w.bbox('all')
|
56
|
+
end
|
57
|
+
|
58
|
+
# newRoom2 --
|
59
|
+
# This method is invoked whenever the mouse enters a room
|
60
|
+
# in the floorplan. It changes tags so that the current room is
|
61
|
+
# highlighted.
|
62
|
+
#
|
63
|
+
# Arguments:
|
64
|
+
# w - The name of the canvas window.
|
65
|
+
|
66
|
+
def newRoom2(w)
|
67
|
+
id = w.find_withtag('current')[0]
|
68
|
+
$currentRoom2.value = $floorLabels2[id.id] if id != ""
|
69
|
+
Tk.update(true)
|
70
|
+
end
|
71
|
+
|
72
|
+
# roomChanged2 --
|
73
|
+
# This method is invoked whenever the currentRoom variable changes.
|
74
|
+
# It highlights the current room and unhighlights any previous room.
|
75
|
+
#
|
76
|
+
# Arguments:
|
77
|
+
# w - The canvas window displaying the floorplan.
|
78
|
+
# args - Not used.
|
79
|
+
|
80
|
+
def roomChanged2(w,*args)
|
81
|
+
w.delete('highlight')
|
82
|
+
item = $floorItems2[$currentRoom2.value]
|
83
|
+
return if item == nil
|
84
|
+
new = TkcPolygon.new(w, *(w.coords(item)))
|
85
|
+
new.configure('fill'=>$floor2_colors['active'], 'tags'=>'highlight')
|
86
|
+
w.raise(new, 'marker')
|
87
|
+
end
|
88
|
+
|
89
|
+
# floor2_bg1 --
|
90
|
+
# This method represents part of the floorplan database. When
|
91
|
+
# invoked, it instantiates the background information for the first
|
92
|
+
# floor.
|
93
|
+
#
|
94
|
+
# Arguments:
|
95
|
+
# w - The canvas window.
|
96
|
+
# fill - Fill color to use for the floor's background.
|
97
|
+
# outline - Color to use for the floor's outline.
|
98
|
+
|
99
|
+
def floor2_bg1(w,fill,outline)
|
100
|
+
w.create(TkcPolygon,347,80,349,82,351,84,353,85,363,92,375,99,386,104,
|
101
|
+
386,129,398,129,398,162,484,162,484,129,559,129,559,133,725,
|
102
|
+
133,725,129,802,129,802,389,644,389,644,391,559,391,559,327,
|
103
|
+
508,327,508,311,484,311,484,278,395,278,395,288,400,288,404,
|
104
|
+
288,409,290,413,292,418,297,421,302,422,309,421,318,417,325,
|
105
|
+
411,330,405,332,397,333,344,333,340,334,336,336,335,338,332,
|
106
|
+
342,331,347,332,351,334,354,336,357,341,359,340,360,335,363,
|
107
|
+
331,365,326,366,304,366,304,355,258,355,258,387,60,387,60,391,
|
108
|
+
0,391,0,337,3,337,3,114,8,114,8,25,30,25,30,5,93,5,98,5,104,7,
|
109
|
+
110,10,116,16,119,20,122,28,123,32,123,68,220,68,220,34,221,
|
110
|
+
22,223,17,227,13,231,8,236,4,242,2,246,0,260,0,283,1,300,5,
|
111
|
+
321,14,335,22,348,25,365,29,363,39,358,48,352,56,337,70,
|
112
|
+
344,76,347,80, 'tags'=>['floor1','bg'], 'fill'=>fill)
|
113
|
+
w.create(TkcLine,386,129,398,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
114
|
+
w.create(TkcLine,258,355,258,387, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
115
|
+
w.create(TkcLine,60,387,60,391, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
116
|
+
w.create(TkcLine,0,337,0,391, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
117
|
+
w.create(TkcLine,60,391,0,391, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
118
|
+
w.create(TkcLine,3,114,3,337, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
119
|
+
w.create(TkcLine,258,387,60,387, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
120
|
+
w.create(TkcLine,484,162,398,162, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
121
|
+
w.create(TkcLine,398,162,398,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
122
|
+
w.create(TkcLine,484,278,484,311, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
123
|
+
w.create(TkcLine,484,311,508,311, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
124
|
+
w.create(TkcLine,508,327,508,311, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
125
|
+
w.create(TkcLine,559,327,508,327, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
126
|
+
w.create(TkcLine,644,391,559,391, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
127
|
+
w.create(TkcLine,644,389,644,391, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
128
|
+
w.create(TkcLine,559,129,484,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
129
|
+
w.create(TkcLine,484,162,484,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
130
|
+
w.create(TkcLine,725,133,559,133, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
131
|
+
w.create(TkcLine,559,129,559,133, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
132
|
+
w.create(TkcLine,725,129,802,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
133
|
+
w.create(TkcLine,802,389,802,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
134
|
+
w.create(TkcLine,3,337,0,337, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
135
|
+
w.create(TkcLine,559,391,559,327, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
136
|
+
w.create(TkcLine,802,389,644,389, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
137
|
+
w.create(TkcLine,725,133,725,129, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
138
|
+
w.create(TkcLine,8,25,8,114, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
139
|
+
w.create(TkcLine,8,114,3,114, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
140
|
+
w.create(TkcLine,30,25,8,25, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
141
|
+
w.create(TkcLine,484,278,395,278, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
142
|
+
w.create(TkcLine,30,25,30,5, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
143
|
+
w.create(TkcLine,93,5,30,5, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
144
|
+
w.create(TkcLine,98,5,93,5, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
145
|
+
w.create(TkcLine,104,7,98,5, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
146
|
+
w.create(TkcLine,110,10,104,7, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
147
|
+
w.create(TkcLine,116,16,110,10, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
148
|
+
w.create(TkcLine,119,20,116,16, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
149
|
+
w.create(TkcLine,122,28,119,20, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
150
|
+
w.create(TkcLine,123,32,122,28, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
151
|
+
w.create(TkcLine,123,68,123,32, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
152
|
+
w.create(TkcLine,220,68,123,68, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
153
|
+
w.create(TkcLine,386,129,386,104, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
154
|
+
w.create(TkcLine,386,104,375,99, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
155
|
+
w.create(TkcLine,375,99,363,92, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
156
|
+
w.create(TkcLine,353,85,363,92, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
157
|
+
w.create(TkcLine,220,68,220,34, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
158
|
+
w.create(TkcLine,337,70,352,56, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
159
|
+
w.create(TkcLine,352,56,358,48, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
160
|
+
w.create(TkcLine,358,48,363,39, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
161
|
+
w.create(TkcLine,363,39,365,29, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
162
|
+
w.create(TkcLine,365,29,348,25, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
163
|
+
w.create(TkcLine,348,25,335,22, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
164
|
+
w.create(TkcLine,335,22,321,14, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
165
|
+
w.create(TkcLine,321,14,300,5, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
166
|
+
w.create(TkcLine,300,5,283,1, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
167
|
+
w.create(TkcLine,283,1,260,0, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
168
|
+
w.create(TkcLine,260,0,246,0, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
169
|
+
w.create(TkcLine,246,0,242,2, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
170
|
+
w.create(TkcLine,242,2,236,4, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
171
|
+
w.create(TkcLine,236,4,231,8, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
172
|
+
w.create(TkcLine,231,8,227,13, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
173
|
+
w.create(TkcLine,223,17,227,13, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
174
|
+
w.create(TkcLine,221,22,223,17, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
175
|
+
w.create(TkcLine,220,34,221,22, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
176
|
+
w.create(TkcLine,340,360,335,363, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
177
|
+
w.create(TkcLine,335,363,331,365, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
178
|
+
w.create(TkcLine,331,365,326,366, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
179
|
+
w.create(TkcLine,326,366,304,366, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
180
|
+
w.create(TkcLine,304,355,304,366, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
181
|
+
w.create(TkcLine,395,288,400,288, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
182
|
+
w.create(TkcLine,404,288,400,288, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
183
|
+
w.create(TkcLine,409,290,404,288, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
184
|
+
w.create(TkcLine,413,292,409,290, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
185
|
+
w.create(TkcLine,418,297,413,292, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
186
|
+
w.create(TkcLine,421,302,418,297, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
187
|
+
w.create(TkcLine,422,309,421,302, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
188
|
+
w.create(TkcLine,421,318,422,309, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
189
|
+
w.create(TkcLine,421,318,417,325, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
190
|
+
w.create(TkcLine,417,325,411,330, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
191
|
+
w.create(TkcLine,411,330,405,332, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
192
|
+
w.create(TkcLine,405,332,397,333, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
193
|
+
w.create(TkcLine,397,333,344,333, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
194
|
+
w.create(TkcLine,344,333,340,334, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
195
|
+
w.create(TkcLine,340,334,336,336, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
196
|
+
w.create(TkcLine,336,336,335,338, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
197
|
+
w.create(TkcLine,335,338,332,342, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
198
|
+
w.create(TkcLine,331,347,332,342, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
199
|
+
w.create(TkcLine,332,351,331,347, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
200
|
+
w.create(TkcLine,334,354,332,351, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
201
|
+
w.create(TkcLine,336,357,334,354, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
202
|
+
w.create(TkcLine,341,359,336,357, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
203
|
+
w.create(TkcLine,341,359,340,360, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
204
|
+
w.create(TkcLine,395,288,395,278, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
205
|
+
w.create(TkcLine,304,355,258,355, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
206
|
+
w.create(TkcLine,347,80,344,76, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
207
|
+
w.create(TkcLine,344,76,337,70, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
208
|
+
w.create(TkcLine,349,82,347,80, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
209
|
+
w.create(TkcLine,351,84,349,82, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
210
|
+
w.create(TkcLine,353,85,351,84, 'fill'=>outline, 'tags'=>['floor1','bg'])
|
211
|
+
end
|
212
|
+
|
213
|
+
# floor2_bg2 --
|
214
|
+
# This method represents part of the floorplan database. When
|
215
|
+
# invoked, it instantiates the background information for the first
|
216
|
+
# floor.
|
217
|
+
#
|
218
|
+
# Arguments:
|
219
|
+
# w - The canvas window.
|
220
|
+
# fill - Fill color to use for the floor's background.
|
221
|
+
# outline - Color to use for the floor's outline.
|
222
|
+
|
223
|
+
def floor2_bg2(w,fill,outline)
|
224
|
+
w.create(TkcPolygon,559,129,484,129,484,162,398,162,398,129,315,129,
|
225
|
+
315,133,176,133,176,129,96,129,96,133,3,133,3,339,0,339,0,391,
|
226
|
+
60,391,60,387,258,387,258,329,350,329,350,311,395,311,395,280,
|
227
|
+
484,280,484,311,508,311,508,327,558,327,558,391,644,391,644,
|
228
|
+
367,802,367,802,129,725,129,725,133,559,133,559,129,
|
229
|
+
'tags'=>['floor2','bg'], 'fill'=>fill)
|
230
|
+
w.create(TkcLine,350,311,350,329, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
231
|
+
w.create(TkcLine,398,129,398,162, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
232
|
+
w.create(TkcLine,802,367,802,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
233
|
+
w.create(TkcLine,802,129,725,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
234
|
+
w.create(TkcLine,725,133,725,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
235
|
+
w.create(TkcLine,559,129,559,133, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
236
|
+
w.create(TkcLine,559,133,725,133, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
237
|
+
w.create(TkcLine,484,162,484,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
238
|
+
w.create(TkcLine,559,129,484,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
239
|
+
w.create(TkcLine,802,367,644,367, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
240
|
+
w.create(TkcLine,644,367,644,391, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
241
|
+
w.create(TkcLine,644,391,558,391, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
242
|
+
w.create(TkcLine,558,327,558,391, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
243
|
+
w.create(TkcLine,558,327,508,327, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
244
|
+
w.create(TkcLine,508,327,508,311, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
245
|
+
w.create(TkcLine,484,311,508,311, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
246
|
+
w.create(TkcLine,484,280,484,311, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
247
|
+
w.create(TkcLine,398,162,484,162, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
248
|
+
w.create(TkcLine,484,280,395,280, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
249
|
+
w.create(TkcLine,395,280,395,311, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
250
|
+
w.create(TkcLine,258,387,60,387, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
251
|
+
w.create(TkcLine,3,133,3,339, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
252
|
+
w.create(TkcLine,3,339,0,339, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
253
|
+
w.create(TkcLine,60,391,0,391, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
254
|
+
w.create(TkcLine,0,339,0,391, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
255
|
+
w.create(TkcLine,60,387,60,391, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
256
|
+
w.create(TkcLine,258,329,258,387, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
257
|
+
w.create(TkcLine,350,329,258,329, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
258
|
+
w.create(TkcLine,395,311,350,311, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
259
|
+
w.create(TkcLine,398,129,315,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
260
|
+
w.create(TkcLine,176,133,315,133, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
261
|
+
w.create(TkcLine,176,129,96,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
262
|
+
w.create(TkcLine,3,133,96,133, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
263
|
+
w.create(TkcLine,315,133,315,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
264
|
+
w.create(TkcLine,176,133,176,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
265
|
+
w.create(TkcLine,96,133,96,129, 'fill'=>outline, 'tags'=>['floor2','bg'])
|
266
|
+
end
|
267
|
+
|
268
|
+
# floor2_bg3 --
|
269
|
+
# This method represents part of the floorplan database. When
|
270
|
+
# invoked, it instantiates the background information for the first
|
271
|
+
# floor.
|
272
|
+
#
|
273
|
+
# Arguments:
|
274
|
+
# w - The canvas window.
|
275
|
+
# fill - Fill color to use for the floor's background.
|
276
|
+
# outline - Color to use for the floor's outline.
|
277
|
+
|
278
|
+
def floor2_bg3(w,fill,outline)
|
279
|
+
w.create(TkcPolygon,159,300,107,300,107,248,159,248,159,129,96,129,96,
|
280
|
+
133,21,133,21,331,0,331,0,391,60,391,60,370,159,370,159,300,
|
281
|
+
'tags'=>['floor3','bg'], 'fill'=>fill)
|
282
|
+
w.create(TkcPolygon,258,370,258,329,350,329,350,311,399,311,399,129,
|
283
|
+
315,129,315,133,176,133,176,129,159,129,159,370,258,370,
|
284
|
+
'tags'=>['floor3','bg'], 'fill'=>fill)
|
285
|
+
w.create(TkcLine,96,133,96,129, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
286
|
+
w.create(TkcLine,176,129,96,129, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
287
|
+
w.create(TkcLine,176,129,176,133, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
288
|
+
w.create(TkcLine,315,133,176,133, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
289
|
+
w.create(TkcLine,315,133,315,129, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
290
|
+
w.create(TkcLine,399,129,315,129, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
291
|
+
w.create(TkcLine,399,311,399,129, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
292
|
+
w.create(TkcLine,399,311,350,311, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
293
|
+
w.create(TkcLine,350,329,350,311, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
294
|
+
w.create(TkcLine,350,329,258,329, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
295
|
+
w.create(TkcLine,258,370,258,329, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
296
|
+
w.create(TkcLine,60,370,258,370, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
297
|
+
w.create(TkcLine,60,370,60,391, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
298
|
+
w.create(TkcLine,60,391,0,391, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
299
|
+
w.create(TkcLine,0,391,0,331, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
300
|
+
w.create(TkcLine,21,331,0,331, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
301
|
+
w.create(TkcLine,21,331,21,133, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
302
|
+
w.create(TkcLine,96,133,21,133, 'fill'=>outline, 'tags'=>['floor3','bg'])
|
303
|
+
w.create(TkcLine,107,300,159,300,159,248,107,248,107,300,
|
304
|
+
'fill'=>outline, 'tags'=>['floor3','bg'])
|
305
|
+
end
|
306
|
+
|
307
|
+
# floor2_fg1 --
|
308
|
+
# This method represents part of the floorplan database. When
|
309
|
+
# invoked, it instantiates the foreground information for the first
|
310
|
+
# floor (office outlines and numbers).
|
311
|
+
#
|
312
|
+
# Arguments:
|
313
|
+
# w - The canvas window.
|
314
|
+
# color - Color to use for drawing foreground information.
|
315
|
+
|
316
|
+
def floor2_fg1(w,color)
|
317
|
+
i = TkcPolygon.new(w,375,246,375,172,341,172,341,246,
|
318
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
319
|
+
$floorLabels2[i.id] = '101'
|
320
|
+
$floorItems2['101'] = i
|
321
|
+
w.create(TkcText,358,209, 'text'=>'101', 'fill'=>color,
|
322
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
323
|
+
i = TkcPolygon.new(w,307,240,339,240,339,206,307,206,
|
324
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
325
|
+
$floorLabels2[i.id] = 'Pub Lift1'
|
326
|
+
$floorItems2['Pub Lift1'] = i
|
327
|
+
w.create(TkcText,323,223, 'text'=>'Pub Lift1', 'fill'=>color,
|
328
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
329
|
+
i = TkcPolygon.new(w,339,205,307,205,307,171,339,171,
|
330
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
331
|
+
$floorLabels2[i.id] = 'Priv Lift1'
|
332
|
+
$floorItems2['Priv Lift1'] = i
|
333
|
+
w.create(TkcText,323,188, 'text'=>'Priv Lift1', 'fill'=>color,
|
334
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
335
|
+
i = TkcPolygon.new(w,42,389,42,337,1,337,1,389,
|
336
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
337
|
+
$floorLabels2[i.id] = '110'
|
338
|
+
$floorItems2['110'] = i
|
339
|
+
w.create(TkcText,21.5,363, 'text'=>'110', 'fill'=>color,
|
340
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
341
|
+
i = TkcPolygon.new(w,59,389,59,385,90,385,90,337,44,337,44,389,
|
342
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
343
|
+
$floorLabels2[i.id] = '109'
|
344
|
+
$floorItems2['109'] = i
|
345
|
+
w.create(TkcText,67,363, 'text'=>'109', 'fill'=>color,
|
346
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
347
|
+
i = TkcPolygon.new(w,51,300,51,253,6,253,6,300,
|
348
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
349
|
+
$floorLabels2[i.id] = '111'
|
350
|
+
$floorItems2['111'] = i
|
351
|
+
w.create(TkcText,28.5,276.5, 'text'=>'111', 'fill'=>color,
|
352
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
353
|
+
i = TkcPolygon.new(w,98,248,98,309,79,309,79,248,
|
354
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
355
|
+
$floorLabels2[i.id] = '117B'
|
356
|
+
$floorItems2['117B'] = i
|
357
|
+
w.create(TkcText,88.5,278.5, 'text'=>'117B', 'fill'=>color,
|
358
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
359
|
+
i = TkcPolygon.new(w,51,251,51,204,6,204,6,251,
|
360
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
361
|
+
$floorLabels2[i.id] = '112'
|
362
|
+
$floorItems2['112'] = i
|
363
|
+
w.create(TkcText,28.5,227.5, 'text'=>'112', 'fill'=>color,
|
364
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
365
|
+
i = TkcPolygon.new(w,6,156,51,156,51,203,6,203,
|
366
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
367
|
+
$floorLabels2[i.id] = '113'
|
368
|
+
$floorItems2['113'] = i
|
369
|
+
w.create(TkcText,28.5,179.5, 'text'=>'113', 'fill'=>color,
|
370
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
371
|
+
i = TkcPolygon.new(w,85,169,79,169,79,192,85,192,
|
372
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
373
|
+
$floorLabels2[i.id] = '117A'
|
374
|
+
$floorItems2['117A'] = i
|
375
|
+
w.create(TkcText,82,180.5, 'text'=>'117A', 'fill'=>color,
|
376
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
377
|
+
i = TkcPolygon.new(w,77,302,77,168,53,168,53,302,
|
378
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
379
|
+
$floorLabels2[i.id] = '117'
|
380
|
+
$floorItems2['117'] = i
|
381
|
+
w.create(TkcText,65,235, 'text'=>'117', 'fill'=>color,
|
382
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
383
|
+
i = TkcPolygon.new(w,51,155,51,115,6,115,6,155,
|
384
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
385
|
+
$floorLabels2[i.id] = '114'
|
386
|
+
$floorItems2['114'] = i
|
387
|
+
w.create(TkcText,28.5,135, 'text'=>'114', 'fill'=>color,
|
388
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
389
|
+
i = TkcPolygon.new(w,95,115,53,115,53,168,95,168,
|
390
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
391
|
+
$floorLabels2[i.id] = '115'
|
392
|
+
$floorItems2['115'] = i
|
393
|
+
w.create(TkcText,74,141.5, 'text'=>'115', 'fill'=>color,
|
394
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
395
|
+
i = TkcPolygon.new(w,87,113,87,27,10,27,10,113,
|
396
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
397
|
+
$floorLabels2[i.id] = '116'
|
398
|
+
$floorItems2['116'] = i
|
399
|
+
w.create(TkcText,48.5,70, 'text'=>'116', 'fill'=>color,
|
400
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
401
|
+
i = TkcPolygon.new(w,89,91,128,91,128,113,89,131,
|
402
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
403
|
+
$floorLabels2[i.id] = '118'
|
404
|
+
$floorItems2['118'] = i
|
405
|
+
w.create(TkcText,108.5,102, 'text'=>'118', 'fill'=>color,
|
406
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
407
|
+
i = TkcPolygon.new(w,178,128,178,132,216,132,216,91,
|
408
|
+
163,91,163,112,149,112,149,128,
|
409
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
410
|
+
$floorLabels2[i.id] = '120'
|
411
|
+
$floorItems2['120'] = i
|
412
|
+
w.create(TkcText,189.5,111.5, 'text'=>'120', 'fill'=>color,
|
413
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
414
|
+
i = TkcPolygon.new(w,79,193,87,193,87,169,136,169,136,192,
|
415
|
+
156,192,156,169,175,169,175,246,79,246,
|
416
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
417
|
+
$floorLabels2[i.id] = '122'
|
418
|
+
$floorItems2['122'] = i
|
419
|
+
w.create(TkcText,131,207.5, 'text'=>'122', 'fill'=>color,
|
420
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
421
|
+
i = TkcPolygon.new(w,138,169,154,169,154,191,138,191,
|
422
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
423
|
+
$floorLabels2[i.id] = '121'
|
424
|
+
$floorItems2['121'] = i
|
425
|
+
w.create(TkcText,146,180, 'text'=>'121', 'fill'=>color,
|
426
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
427
|
+
i = TkcPolygon.new(w,99,300,126,300,126,309,99,309,
|
428
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
429
|
+
$floorLabels2[i.id] = '106A'
|
430
|
+
$floorItems2['106A'] = i
|
431
|
+
w.create(TkcText,112.5,304.5, 'text'=>'106A', 'fill'=>color,
|
432
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
433
|
+
i = TkcPolygon.new(w,128,299,128,309,150,309,150,248,99,248,99,299,
|
434
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
435
|
+
$floorLabels2[i.id] = '105'
|
436
|
+
$floorItems2['105'] = i
|
437
|
+
w.create(TkcText,124.5,278.5, 'text'=>'105', 'fill'=>color,
|
438
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
439
|
+
i = TkcPolygon.new(w,174,309,174,300,152,300,152,309,
|
440
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
441
|
+
$floorLabels2[i.id] = '106B'
|
442
|
+
$floorItems2['106B'] = i
|
443
|
+
w.create(TkcText,163,304.5, 'text'=>'106B', 'fill'=>color,
|
444
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
445
|
+
i = TkcPolygon.new(w,176,299,176,309,216,309,216,248,152,248,152,299,
|
446
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
447
|
+
$floorLabels2[i.id] = '104'
|
448
|
+
$floorItems2['104'] = i
|
449
|
+
w.create(TkcText,184,278.5, 'text'=>'104', 'fill'=>color,
|
450
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
451
|
+
i = TkcPolygon.new(w,138,385,138,337,91,337,91,385,
|
452
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
453
|
+
$floorLabels2[i.id] = '108'
|
454
|
+
$floorItems2['108'] = i
|
455
|
+
w.create(TkcText,114.5,361, 'text'=>'108', 'fill'=>color,
|
456
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
457
|
+
i = TkcPolygon.new(w,256,337,140,337,140,385,256,385,
|
458
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
459
|
+
$floorLabels2[i.id] = '107'
|
460
|
+
$floorItems2['107'] = i
|
461
|
+
w.create(TkcText,198,361, 'text'=>'107', 'fill'=>color,
|
462
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
463
|
+
i = TkcPolygon.new(w,300,353,300,329,260,329,260,353,
|
464
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
465
|
+
$floorLabels2[i.id] = 'Smoking'
|
466
|
+
$floorItems2['Smoking'] = i
|
467
|
+
w.create(TkcText,280,341, 'text'=>'Smoking', 'fill'=>color,
|
468
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
469
|
+
i = TkcPolygon.new(w,314,135,314,170,306,170,306,246,177,246,177,135,
|
470
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
471
|
+
$floorLabels2[i.id] = '123'
|
472
|
+
$floorItems2['123'] = i
|
473
|
+
w.create(TkcText,245.5,190.5, 'text'=>'123', 'fill'=>color,
|
474
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
475
|
+
i = TkcPolygon.new(w,217,248,301,248,301,326,257,326,257,310,217,310,
|
476
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
477
|
+
$floorLabels2[i.id] = '103'
|
478
|
+
$floorItems2['103'] = i
|
479
|
+
w.create(TkcText,259,287, 'text'=>'103', 'fill'=>color,
|
480
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
481
|
+
i = TkcPolygon.new(w,396,188,377,188,377,169,316,169,316,131,396,131,
|
482
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
483
|
+
$floorLabels2[i.id] = '124'
|
484
|
+
$floorItems2['124'] = i
|
485
|
+
w.create(TkcText,356,150, 'text'=>'124', 'fill'=>color,
|
486
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
487
|
+
i = TkcPolygon.new(w,397,226,407,226,407,189,377,189,377,246,397,246,
|
488
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
489
|
+
$floorLabels2[i.id] = '125'
|
490
|
+
$floorItems2['125'] = i
|
491
|
+
w.create(TkcText,392,217.5, 'text'=>'125', 'fill'=>color,
|
492
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
493
|
+
i = TkcPolygon.new(w,399,187,409,187,409,207,474,207,474,164,399,164,
|
494
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
495
|
+
$floorLabels2[i.id] = '126'
|
496
|
+
$floorItems2['126'] = i
|
497
|
+
w.create(TkcText,436.5,185.5, 'text'=>'126', 'fill'=>color,
|
498
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
499
|
+
i = TkcPolygon.new(w,409,209,409,229,399,229,399,253,
|
500
|
+
486,253,486,239,474,239,474,209,
|
501
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
502
|
+
$floorLabels2[i.id] = '127'
|
503
|
+
$floorItems2['127'] = i
|
504
|
+
w.create(TkcText,436.5,'231', 'text'=>'127', 'fill'=>color,
|
505
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
506
|
+
i = TkcPolygon.new(w,501,164,501,174,495,174,495,188,
|
507
|
+
490,188,490,204,476,204,476,164,
|
508
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
509
|
+
$floorLabels2[i.id] = 'MShower'
|
510
|
+
$floorItems2['MShower'] = i
|
511
|
+
w.create(TkcText,488.5,'184', 'text'=>'MShower', 'fill'=>color,
|
512
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
513
|
+
i = TkcPolygon.new(w,497,176,513,176,513,204,492,204,492,190,497,190,
|
514
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
515
|
+
$floorLabels2[i.id] = 'Closet'
|
516
|
+
$floorItems2['Closet'] = i
|
517
|
+
w.create(TkcText,502.5,190, 'text'=>'Closet', 'fill'=>color,
|
518
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
519
|
+
i = TkcPolygon.new(w,476,237,476,206,513,206,513,254,488,254,488,237,
|
520
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
521
|
+
$floorLabels2[i.id] = 'WShower'
|
522
|
+
$floorItems2['WShower'] = i
|
523
|
+
w.create(TkcText,494.5,230, 'text'=>'WShower', 'fill'=>color,
|
524
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
525
|
+
i = TkcPolygon.new(w,486,131,558,131,558,135,724,135,724,166,
|
526
|
+
697,166,697,275,553,275,531,254,515,254,
|
527
|
+
515,174,503,174,503,161,486,161,
|
528
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
529
|
+
$floorLabels2[i.id] = '130'
|
530
|
+
$floorItems2['130'] = i
|
531
|
+
w.create(TkcText,638.5,205, 'text'=>'130', 'fill'=>color,
|
532
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
533
|
+
i = TkcPolygon.new(w,308,242,339,242,339,248,342,248,
|
534
|
+
342,246,397,246,397,276,393,276,
|
535
|
+
393,309,300,309,300,248,308,248,
|
536
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
537
|
+
$floorLabels2[i.id] = '102'
|
538
|
+
$floorItems2['102'] = i
|
539
|
+
w.create(TkcText,367.5,278.5, 'text'=>'102', 'fill'=>color,
|
540
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
541
|
+
i = TkcPolygon.new(w,397,255,486,255,486,276,397,276,
|
542
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
543
|
+
$floorLabels2[i.id] = '128'
|
544
|
+
$floorItems2['128'] = i
|
545
|
+
w.create(TkcText,441.5,265.5, 'text'=>'128', 'fill'=>color,
|
546
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
547
|
+
i = TkcPolygon.new(w,510,309,486,309,486,255,530,255,
|
548
|
+
552,277,561,277,561,325,510,325,
|
549
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
550
|
+
$floorLabels2[i.id] = '129'
|
551
|
+
$floorItems2['129'] = i
|
552
|
+
w.create(TkcText,535.5,293, 'text'=>'129', 'fill'=>color,
|
553
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
554
|
+
i = TkcPolygon.new(w,696,281,740,281,740,387,642,387,
|
555
|
+
642,389,561,389,561,277,696,277,
|
556
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
557
|
+
$floorLabels2[i.id] = '133'
|
558
|
+
$floorItems2['133'] = i
|
559
|
+
w.create(TkcText,628.5,335, 'text'=>'133', 'fill'=>color,
|
560
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
561
|
+
i = TkcPolygon.new(w,742,387,742,281,800,281,800,387,
|
562
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
563
|
+
$floorLabels2[i.id] = '132'
|
564
|
+
$floorItems2['132'] = i
|
565
|
+
w.create(TkcText,771,334, 'text'=>'132', 'fill'=>color,
|
566
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
567
|
+
i = TkcPolygon.new(w,800,168,800,280,699,280,699,168,
|
568
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
569
|
+
$floorLabels2[i.id] = '134'
|
570
|
+
$floorItems2['134'] = i
|
571
|
+
w.create(TkcText,749.5,224, 'text'=>'134', 'fill'=>color,
|
572
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
573
|
+
i = TkcPolygon.new(w,726,131,726,166,800,166,800,131,
|
574
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
575
|
+
$floorLabels2[i.id] = '135'
|
576
|
+
$floorItems2['135'] = i
|
577
|
+
w.create(TkcText,763,148.5, 'text'=>'135', 'fill'=>color,
|
578
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
579
|
+
i = TkcPolygon.new(w,340,360,335,363,331,365,326,366,304,366,
|
580
|
+
304,312,396,312,396,288,400,288,404,288,
|
581
|
+
409,290,413,292,418,297,421,302,422,309,
|
582
|
+
421,318,417,325,411,330,405,332,397,333,
|
583
|
+
344,333,340,334,336,336,335,338,332,342,
|
584
|
+
331,347,332,351,334,354,336,357,341,359,
|
585
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
586
|
+
$floorLabels2[i.id] = 'Ramona Stair'
|
587
|
+
$floorItems2['Ramona Stair'] = i
|
588
|
+
w.create(TkcText,368,323, 'text'=>'Ramona Stair', 'fill'=>color,
|
589
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
590
|
+
i = TkcPolygon.new(w,30,23,30,5,93,5,98,5,104,7,110,10,116,16,119,20,
|
591
|
+
122,28,123,32,123,68,220,68,220,87,90,87,90,23,
|
592
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
593
|
+
$floorLabels2[i.id] = 'University Stair'
|
594
|
+
$floorItems2['University Stair'] = i
|
595
|
+
w.create(TkcText,155,77.5, 'text'=>'University Stair', 'fill'=>color,
|
596
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
597
|
+
i = TkcPolygon.new(w,282,37,295,40,312,49,323,56,337,70,352,56,
|
598
|
+
358,48,363,39,365,29,348,25,335,22,321,14,
|
599
|
+
300,5,283,1,260,0,246,0,242,2,236,4,231,8,
|
600
|
+
227,13,223,17,221,22,220,34,260,34,
|
601
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
602
|
+
$floorLabels2[i.id] = 'Plaza Stair'
|
603
|
+
$floorItems2['Plaza Stair'] = i
|
604
|
+
w.create(TkcText,317.5,28.5, 'text'=>'Plaza Stair', 'fill'=>color,
|
605
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
606
|
+
i = TkcPolygon.new(w,220,34,260,34,282,37,295,40,312,49,
|
607
|
+
323,56,337,70,350,83,365,94,377,100,
|
608
|
+
386,104,386,128,220,128,
|
609
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
610
|
+
$floorLabels2[i.id] = 'Plaza Deck'
|
611
|
+
$floorItems2['Plaza Deck'] = i
|
612
|
+
w.create(TkcText,303,81, 'text'=>'Plaza Deck', 'fill'=>color,
|
613
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
614
|
+
i = TkcPolygon.new(w,257,336,77,336,6,336,6,301,77,301,77,310,257,310,
|
615
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
616
|
+
$floorLabels2[i.id] = '106'
|
617
|
+
$floorItems2['106'] = i
|
618
|
+
w.create(TkcText,131.5,318.5, 'text'=>'106', 'fill'=>color,
|
619
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
620
|
+
i = TkcPolygon.new(w,146,110,162,110,162,91,130,91,130,115,95,115,
|
621
|
+
95,128,114,128,114,151,157,151,157,153,112,153,
|
622
|
+
112,130,97,130,97,168,175,168,175,131,146,131,
|
623
|
+
'fill'=>'', 'tags'=>['floor1','room'])
|
624
|
+
$floorLabels2[i.id] = '119'
|
625
|
+
$floorItems2['119'] = i
|
626
|
+
w.create(TkcText,143.5,133, 'text'=>'119', 'fill'=>color,
|
627
|
+
'anchor'=>'c', 'tags'=>['floor1','label'])
|
628
|
+
w.create(TkcLine,155,191,155,189, 'fill'=>color, 'tags'=>['floor1','wall'])
|
629
|
+
w.create(TkcLine,155,177,155,169, 'fill'=>color, 'tags'=>['floor1','wall'])
|
630
|
+
w.create(TkcLine,96,129,96,169, 'fill'=>color, 'tags'=>['floor1','wall'])
|
631
|
+
w.create(TkcLine,78,169,176,169, 'fill'=>color, 'tags'=>['floor1','wall'])
|
632
|
+
w.create(TkcLine,176,247,176,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
633
|
+
w.create(TkcLine,340,206,307,206, 'fill'=>color, 'tags'=>['floor1','wall'])
|
634
|
+
w.create(TkcLine,340,187,340,170, 'fill'=>color, 'tags'=>['floor1','wall'])
|
635
|
+
w.create(TkcLine,340,210,340,201, 'fill'=>color, 'tags'=>['floor1','wall'])
|
636
|
+
w.create(TkcLine,340,247,340,224, 'fill'=>color, 'tags'=>['floor1','wall'])
|
637
|
+
w.create(TkcLine,340,241,307,241, 'fill'=>color, 'tags'=>['floor1','wall'])
|
638
|
+
w.create(TkcLine,376,246,376,170, 'fill'=>color, 'tags'=>['floor1','wall'])
|
639
|
+
w.create(TkcLine,307,247,307,170, 'fill'=>color, 'tags'=>['floor1','wall'])
|
640
|
+
w.create(TkcLine,376,170,307,170, 'fill'=>color, 'tags'=>['floor1','wall'])
|
641
|
+
w.create(TkcLine,315,129,315,170, 'fill'=>color, 'tags'=>['floor1','wall'])
|
642
|
+
w.create(TkcLine,147,129,176,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
643
|
+
w.create(TkcLine,202,133,176,133, 'fill'=>color, 'tags'=>['floor1','wall'])
|
644
|
+
w.create(TkcLine,398,129,315,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
645
|
+
w.create(TkcLine,258,352,258,387, 'fill'=>color, 'tags'=>['floor1','wall'])
|
646
|
+
w.create(TkcLine,60,387,60,391, 'fill'=>color, 'tags'=>['floor1','wall'])
|
647
|
+
w.create(TkcLine,0,337,0,391, 'fill'=>color, 'tags'=>['floor1','wall'])
|
648
|
+
w.create(TkcLine,60,391,0,391, 'fill'=>color, 'tags'=>['floor1','wall'])
|
649
|
+
w.create(TkcLine,3,114,3,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
650
|
+
w.create(TkcLine,258,387,60,387, 'fill'=>color, 'tags'=>['floor1','wall'])
|
651
|
+
w.create(TkcLine,52,237,52,273, 'fill'=>color, 'tags'=>['floor1','wall'])
|
652
|
+
w.create(TkcLine,52,189,52,225, 'fill'=>color, 'tags'=>['floor1','wall'])
|
653
|
+
w.create(TkcLine,52,140,52,177, 'fill'=>color, 'tags'=>['floor1','wall'])
|
654
|
+
w.create(TkcLine,395,306,395,311, 'fill'=>color, 'tags'=>['floor1','wall'])
|
655
|
+
w.create(TkcLine,531,254,398,254, 'fill'=>color, 'tags'=>['floor1','wall'])
|
656
|
+
w.create(TkcLine,475,178,475,238, 'fill'=>color, 'tags'=>['floor1','wall'])
|
657
|
+
w.create(TkcLine,502,162,398,162, 'fill'=>color, 'tags'=>['floor1','wall'])
|
658
|
+
w.create(TkcLine,398,129,398,188, 'fill'=>color, 'tags'=>['floor1','wall'])
|
659
|
+
w.create(TkcLine,383,188,376,188, 'fill'=>color, 'tags'=>['floor1','wall'])
|
660
|
+
w.create(TkcLine,408,188,408,194, 'fill'=>color, 'tags'=>['floor1','wall'])
|
661
|
+
w.create(TkcLine,398,227,398,254, 'fill'=>color, 'tags'=>['floor1','wall'])
|
662
|
+
w.create(TkcLine,408,227,398,227, 'fill'=>color, 'tags'=>['floor1','wall'])
|
663
|
+
w.create(TkcLine,408,222,408,227, 'fill'=>color, 'tags'=>['floor1','wall'])
|
664
|
+
w.create(TkcLine,408,206,408,210, 'fill'=>color, 'tags'=>['floor1','wall'])
|
665
|
+
w.create(TkcLine,408,208,475,208, 'fill'=>color, 'tags'=>['floor1','wall'])
|
666
|
+
w.create(TkcLine,484,278,484,311, 'fill'=>color, 'tags'=>['floor1','wall'])
|
667
|
+
w.create(TkcLine,484,311,508,311, 'fill'=>color, 'tags'=>['floor1','wall'])
|
668
|
+
w.create(TkcLine,508,327,508,311, 'fill'=>color, 'tags'=>['floor1','wall'])
|
669
|
+
w.create(TkcLine,559,327,508,327, 'fill'=>color, 'tags'=>['floor1','wall'])
|
670
|
+
w.create(TkcLine,644,391,559,391, 'fill'=>color, 'tags'=>['floor1','wall'])
|
671
|
+
w.create(TkcLine,644,389,644,391, 'fill'=>color, 'tags'=>['floor1','wall'])
|
672
|
+
w.create(TkcLine,514,205,475,205, 'fill'=>color, 'tags'=>['floor1','wall'])
|
673
|
+
w.create(TkcLine,496,189,496,187, 'fill'=>color, 'tags'=>['floor1','wall'])
|
674
|
+
w.create(TkcLine,559,129,484,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
675
|
+
w.create(TkcLine,484,162,484,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
676
|
+
w.create(TkcLine,725,133,559,133, 'fill'=>color, 'tags'=>['floor1','wall'])
|
677
|
+
w.create(TkcLine,559,129,559,133, 'fill'=>color, 'tags'=>['floor1','wall'])
|
678
|
+
w.create(TkcLine,725,149,725,167, 'fill'=>color, 'tags'=>['floor1','wall'])
|
679
|
+
w.create(TkcLine,725,129,802,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
680
|
+
w.create(TkcLine,802,389,802,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
681
|
+
w.create(TkcLine,739,167,802,167, 'fill'=>color, 'tags'=>['floor1','wall'])
|
682
|
+
w.create(TkcLine,396,188,408,188, 'fill'=>color, 'tags'=>['floor1','wall'])
|
683
|
+
w.create(TkcLine,0,337,9,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
684
|
+
w.create(TkcLine,58,337,21,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
685
|
+
w.create(TkcLine,43,391,43,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
686
|
+
w.create(TkcLine,105,337,75,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
687
|
+
w.create(TkcLine,91,387,91,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
688
|
+
w.create(TkcLine,154,337,117,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
689
|
+
w.create(TkcLine,139,387,139,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
690
|
+
w.create(TkcLine,227,337,166,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
691
|
+
w.create(TkcLine,258,337,251,337, 'fill'=>color, 'tags'=>['floor1','wall'])
|
692
|
+
w.create(TkcLine,258,328,302,328, 'fill'=>color, 'tags'=>['floor1','wall'])
|
693
|
+
w.create(TkcLine,302,355,302,311, 'fill'=>color, 'tags'=>['floor1','wall'])
|
694
|
+
w.create(TkcLine,395,311,302,311, 'fill'=>color, 'tags'=>['floor1','wall'])
|
695
|
+
w.create(TkcLine,484,278,395,278, 'fill'=>color, 'tags'=>['floor1','wall'])
|
696
|
+
w.create(TkcLine,395,294,395,278, 'fill'=>color, 'tags'=>['floor1','wall'])
|
697
|
+
w.create(TkcLine,473,278,473,275, 'fill'=>color, 'tags'=>['floor1','wall'])
|
698
|
+
w.create(TkcLine,473,256,473,254, 'fill'=>color, 'tags'=>['floor1','wall'])
|
699
|
+
w.create(TkcLine,533,257,531,254, 'fill'=>color, 'tags'=>['floor1','wall'])
|
700
|
+
w.create(TkcLine,553,276,551,274, 'fill'=>color, 'tags'=>['floor1','wall'])
|
701
|
+
w.create(TkcLine,698,276,553,276, 'fill'=>color, 'tags'=>['floor1','wall'])
|
702
|
+
w.create(TkcLine,559,391,559,327, 'fill'=>color, 'tags'=>['floor1','wall'])
|
703
|
+
w.create(TkcLine,802,389,644,389, 'fill'=>color, 'tags'=>['floor1','wall'])
|
704
|
+
w.create(TkcLine,741,314,741,389, 'fill'=>color, 'tags'=>['floor1','wall'])
|
705
|
+
w.create(TkcLine,698,280,698,167, 'fill'=>color, 'tags'=>['floor1','wall'])
|
706
|
+
w.create(TkcLine,707,280,698,280, 'fill'=>color, 'tags'=>['floor1','wall'])
|
707
|
+
w.create(TkcLine,802,280,731,280, 'fill'=>color, 'tags'=>['floor1','wall'])
|
708
|
+
w.create(TkcLine,741,280,741,302, 'fill'=>color, 'tags'=>['floor1','wall'])
|
709
|
+
w.create(TkcLine,698,167,727,167, 'fill'=>color, 'tags'=>['floor1','wall'])
|
710
|
+
w.create(TkcLine,725,137,725,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
711
|
+
w.create(TkcLine,514,254,514,175, 'fill'=>color, 'tags'=>['floor1','wall'])
|
712
|
+
w.create(TkcLine,496,175,514,175, 'fill'=>color, 'tags'=>['floor1','wall'])
|
713
|
+
w.create(TkcLine,502,175,502,162, 'fill'=>color, 'tags'=>['floor1','wall'])
|
714
|
+
w.create(TkcLine,475,166,475,162, 'fill'=>color, 'tags'=>['floor1','wall'])
|
715
|
+
w.create(TkcLine,496,176,496,175, 'fill'=>color, 'tags'=>['floor1','wall'])
|
716
|
+
w.create(TkcLine,491,189,496,189, 'fill'=>color, 'tags'=>['floor1','wall'])
|
717
|
+
w.create(TkcLine,491,205,491,189, 'fill'=>color, 'tags'=>['floor1','wall'])
|
718
|
+
w.create(TkcLine,487,238,475,238, 'fill'=>color, 'tags'=>['floor1','wall'])
|
719
|
+
w.create(TkcLine,487,240,487,238, 'fill'=>color, 'tags'=>['floor1','wall'])
|
720
|
+
w.create(TkcLine,487,252,487,254, 'fill'=>color, 'tags'=>['floor1','wall'])
|
721
|
+
w.create(TkcLine,315,133,304,133, 'fill'=>color, 'tags'=>['floor1','wall'])
|
722
|
+
w.create(TkcLine,256,133,280,133, 'fill'=>color, 'tags'=>['floor1','wall'])
|
723
|
+
w.create(TkcLine,78,247,270,247, 'fill'=>color, 'tags'=>['floor1','wall'])
|
724
|
+
w.create(TkcLine,307,247,294,247, 'fill'=>color, 'tags'=>['floor1','wall'])
|
725
|
+
w.create(TkcLine,214,133,232,133, 'fill'=>color, 'tags'=>['floor1','wall'])
|
726
|
+
w.create(TkcLine,217,247,217,266, 'fill'=>color, 'tags'=>['floor1','wall'])
|
727
|
+
w.create(TkcLine,217,309,217,291, 'fill'=>color, 'tags'=>['floor1','wall'])
|
728
|
+
w.create(TkcLine,217,309,172,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
729
|
+
w.create(TkcLine,154,309,148,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
730
|
+
w.create(TkcLine,175,300,175,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
731
|
+
w.create(TkcLine,151,300,175,300, 'fill'=>color, 'tags'=>['floor1','wall'])
|
732
|
+
w.create(TkcLine,151,247,151,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
733
|
+
w.create(TkcLine,78,237,78,265, 'fill'=>color, 'tags'=>['floor1','wall'])
|
734
|
+
w.create(TkcLine,78,286,78,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
735
|
+
w.create(TkcLine,106,309,78,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
736
|
+
w.create(TkcLine,130,309,125,309, 'fill'=>color, 'tags'=>['floor1','wall'])
|
737
|
+
w.create(TkcLine,99,309,99,247, 'fill'=>color, 'tags'=>['floor1','wall'])
|
738
|
+
w.create(TkcLine,127,299,99,299, 'fill'=>color, 'tags'=>['floor1','wall'])
|
739
|
+
w.create(TkcLine,127,309,127,299, 'fill'=>color, 'tags'=>['floor1','wall'])
|
740
|
+
w.create(TkcLine,155,191,137,191, 'fill'=>color, 'tags'=>['floor1','wall'])
|
741
|
+
w.create(TkcLine,137,169,137,191, 'fill'=>color, 'tags'=>['floor1','wall'])
|
742
|
+
w.create(TkcLine,78,171,78,169, 'fill'=>color, 'tags'=>['floor1','wall'])
|
743
|
+
w.create(TkcLine,78,190,78,218, 'fill'=>color, 'tags'=>['floor1','wall'])
|
744
|
+
w.create(TkcLine,86,192,86,169, 'fill'=>color, 'tags'=>['floor1','wall'])
|
745
|
+
w.create(TkcLine,86,192,78,192, 'fill'=>color, 'tags'=>['floor1','wall'])
|
746
|
+
w.create(TkcLine,52,301,3,301, 'fill'=>color, 'tags'=>['floor1','wall'])
|
747
|
+
w.create(TkcLine,52,286,52,301, 'fill'=>color, 'tags'=>['floor1','wall'])
|
748
|
+
w.create(TkcLine,52,252,3,252, 'fill'=>color, 'tags'=>['floor1','wall'])
|
749
|
+
w.create(TkcLine,52,203,3,203, 'fill'=>color, 'tags'=>['floor1','wall'])
|
750
|
+
w.create(TkcLine,3,156,52,156, 'fill'=>color, 'tags'=>['floor1','wall'])
|
751
|
+
w.create(TkcLine,8,25,8,114, 'fill'=>color, 'tags'=>['floor1','wall'])
|
752
|
+
w.create(TkcLine,63,114,3,114, 'fill'=>color, 'tags'=>['floor1','wall'])
|
753
|
+
w.create(TkcLine,75,114,97,114, 'fill'=>color, 'tags'=>['floor1','wall'])
|
754
|
+
w.create(TkcLine,108,114,129,114, 'fill'=>color, 'tags'=>['floor1','wall'])
|
755
|
+
w.create(TkcLine,129,114,129,89, 'fill'=>color, 'tags'=>['floor1','wall'])
|
756
|
+
w.create(TkcLine,52,114,52,128, 'fill'=>color, 'tags'=>['floor1','wall'])
|
757
|
+
w.create(TkcLine,132,89,88,89, 'fill'=>color, 'tags'=>['floor1','wall'])
|
758
|
+
w.create(TkcLine,88,25,88,89, 'fill'=>color, 'tags'=>['floor1','wall'])
|
759
|
+
w.create(TkcLine,88,114,88,89, 'fill'=>color, 'tags'=>['floor1','wall'])
|
760
|
+
w.create(TkcLine,218,89,144,89, 'fill'=>color, 'tags'=>['floor1','wall'])
|
761
|
+
w.create(TkcLine,147,111,147,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
762
|
+
w.create(TkcLine,162,111,147,111, 'fill'=>color, 'tags'=>['floor1','wall'])
|
763
|
+
w.create(TkcLine,162,109,162,111, 'fill'=>color, 'tags'=>['floor1','wall'])
|
764
|
+
w.create(TkcLine,162,96,162,89, 'fill'=>color, 'tags'=>['floor1','wall'])
|
765
|
+
w.create(TkcLine,218,89,218,94, 'fill'=>color, 'tags'=>['floor1','wall'])
|
766
|
+
w.create(TkcLine,218,89,218,119, 'fill'=>color, 'tags'=>['floor1','wall'])
|
767
|
+
w.create(TkcLine,8,25,88,25, 'fill'=>color, 'tags'=>['floor1','wall'])
|
768
|
+
w.create(TkcLine,258,337,258,328, 'fill'=>color, 'tags'=>['floor1','wall'])
|
769
|
+
w.create(TkcLine,113,129,96,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
770
|
+
w.create(TkcLine,302,355,258,355, 'fill'=>color, 'tags'=>['floor1','wall'])
|
771
|
+
w.create(TkcLine,386,104,386,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
772
|
+
w.create(TkcLine,377,100,386,104, 'fill'=>color, 'tags'=>['floor1','wall'])
|
773
|
+
w.create(TkcLine,365,94,377,100, 'fill'=>color, 'tags'=>['floor1','wall'])
|
774
|
+
w.create(TkcLine,350,83,365,94, 'fill'=>color, 'tags'=>['floor1','wall'])
|
775
|
+
w.create(TkcLine,337,70,350,83, 'fill'=>color, 'tags'=>['floor1','wall'])
|
776
|
+
w.create(TkcLine,337,70,323,56, 'fill'=>color, 'tags'=>['floor1','wall'])
|
777
|
+
w.create(TkcLine,312,49,323,56, 'fill'=>color, 'tags'=>['floor1','wall'])
|
778
|
+
w.create(TkcLine,295,40,312,49, 'fill'=>color, 'tags'=>['floor1','wall'])
|
779
|
+
w.create(TkcLine,282,37,295,40, 'fill'=>color, 'tags'=>['floor1','wall'])
|
780
|
+
w.create(TkcLine,260,34,282,37, 'fill'=>color, 'tags'=>['floor1','wall'])
|
781
|
+
w.create(TkcLine,253,34,260,34, 'fill'=>color, 'tags'=>['floor1','wall'])
|
782
|
+
w.create(TkcLine,386,128,386,104, 'fill'=>color, 'tags'=>['floor1','wall'])
|
783
|
+
w.create(TkcLine,113,152,156,152, 'fill'=>color, 'tags'=>['floor1','wall'])
|
784
|
+
w.create(TkcLine,113,152,156,152, 'fill'=>color, 'tags'=>['floor1','wall'])
|
785
|
+
w.create(TkcLine,113,152,113,129, 'fill'=>color, 'tags'=>['floor1','wall'])
|
786
|
+
end
|
787
|
+
|
788
|
+
# floor2_fg2 --
|
789
|
+
# This method represents part of the floorplan database. When
|
790
|
+
# invoked, it instantiates the foreground information for the second
|
791
|
+
# floor (office outlines and numbers).
|
792
|
+
#
|
793
|
+
# Arguments:
|
794
|
+
# w - The canvas window.
|
795
|
+
# color - Color to use for drawing foreground information.
|
796
|
+
|
797
|
+
def floor2_fg2(w,color)
|
798
|
+
i = TkcPolygon.new(w,748,188,755,188,755,205,758,205,758,222,
|
799
|
+
800,222,800,168,748,168,
|
800
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
801
|
+
$floorLabels2[i.id] = '238'
|
802
|
+
$floorItems2['238'] = i
|
803
|
+
w.create(TkcText,774,195, 'text'=>'238', 'fill'=>color,
|
804
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
805
|
+
i = TkcPolygon.new(w,726,188,746,188,746,166,800,166,800,131,726,131,
|
806
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
807
|
+
$floorLabels2[i.id] = '237'
|
808
|
+
$floorItems2['237'] = i
|
809
|
+
w.create(TkcText,763,148.5, 'text'=>'237', 'fill'=>color,
|
810
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
811
|
+
i = TkcPolygon.new(w,497,187,497,204,559,204,559,324,641,324,
|
812
|
+
643,324,643,291,641,291,641,205,696,205,
|
813
|
+
696,291,694,291,694,314,715,314,715,291,
|
814
|
+
715,205,755,205,755,190,724,190,724,187,
|
815
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
816
|
+
$floorLabels2[i.id] = '246'
|
817
|
+
$floorItems2['246'] = i
|
818
|
+
w.create(TkcText,600,264, 'text'=>'246', 'fill'=>color,
|
819
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
820
|
+
i = TkcPolygon.new(w,694,279,643,279,643,314,694,314,
|
821
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
822
|
+
$floorLabels2[i.id] = '247'
|
823
|
+
$floorItems2['247'] = i
|
824
|
+
w.create(TkcText,668.5,296.5, 'text'=>'247', 'fill'=>color,
|
825
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
826
|
+
i = TkcPolygon.new(w,232,250,308,250,308,242,339,242,339,246,
|
827
|
+
397,246,397,255,476,255,476,250,482,250,559,250,
|
828
|
+
559,274,482,274,482,278,396,278,396,274,232,274,
|
829
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
830
|
+
$floorLabels2[i.id] = '202'
|
831
|
+
$floorItems2['202'] = i
|
832
|
+
w.create(TkcText,285.5,260, 'text'=>'202', 'fill'=>color,
|
833
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
834
|
+
i = TkcPolygon.new(w,53,228,53,338,176,338,233,338,233,196,
|
835
|
+
306,196,306,180,175,180,175,169,156,169,
|
836
|
+
156,196,176,196,176,228,
|
837
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
838
|
+
$floorLabels2[i.id] = '206'
|
839
|
+
$floorItems2['206'] = i
|
840
|
+
w.create(TkcText,143,267, 'text'=>'206', 'fill'=>color,
|
841
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
842
|
+
i = TkcPolygon.new(w,51,277,6,277,6,338,51,338,
|
843
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
844
|
+
$floorLabels2[i.id] = '212'
|
845
|
+
$floorItems2['212'] = i
|
846
|
+
w.create(TkcText,28.5,307.5, 'text'=>'212', 'fill'=>color,
|
847
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
848
|
+
i = TkcPolygon.new(w,557,276,486,276,486,309,510,309,510,325,557,325,
|
849
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
850
|
+
$floorLabels2[i.id] = '245'
|
851
|
+
$floorItems2['245'] = i
|
852
|
+
w.create(TkcText,521.5,300.5, 'text'=>'245', 'fill'=>color,
|
853
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
854
|
+
i = TkcPolygon.new(w,560,389,599,389,599,326,560,326,
|
855
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
856
|
+
$floorLabels2[i.id] = '244'
|
857
|
+
$floorItems2['244'] = i
|
858
|
+
w.create(TkcText,579.5,357.5, 'text'=>'244', 'fill'=>color,
|
859
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
860
|
+
i = TkcPolygon.new(w,601,389,601,326,643,326,643,389,
|
861
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
862
|
+
$floorLabels2[i.id] = '243'
|
863
|
+
$floorItems2['243'] = i
|
864
|
+
w.create(TkcText,622,357.5, 'text'=>'243', 'fill'=>color,
|
865
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
866
|
+
i = TkcPolygon.new(w,688,316,645,316,645,365,688,365,
|
867
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
868
|
+
$floorLabels2[i.id] = '242'
|
869
|
+
$floorItems2['242'] = i
|
870
|
+
w.create(TkcText,666.5,340.5, 'text'=>'242', 'fill'=>color,
|
871
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
872
|
+
i = TkcPolygon.new(w,802,367,759,367,759,226,802,226,
|
873
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
874
|
+
$floorLabels2[i.id] = 'Barbecue Deck'
|
875
|
+
$floorItems2['Barbecue Deck'] = i
|
876
|
+
w.create(TkcText,780.5,296.5, 'text'=>'Barbecue Deck', 'fill'=>color,
|
877
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
878
|
+
i = TkcPolygon.new(w,755,262,755,314,717,314,717,262,
|
879
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
880
|
+
$floorLabels2[i.id] = '240'
|
881
|
+
$floorItems2['240'] = i
|
882
|
+
w.create(TkcText,736,288, 'text'=>'240', 'fill'=>color,
|
883
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
884
|
+
i = TkcPolygon.new(w,755,316,689,316,689,365,755,365,
|
885
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
886
|
+
$floorLabels2[i.id] = '241'
|
887
|
+
$floorItems2['241'] = i
|
888
|
+
w.create(TkcText,722,340.5, 'text'=>'241', 'fill'=>color,
|
889
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
890
|
+
i = TkcPolygon.new(w,755,206,717,206,717,261,755,261,
|
891
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
892
|
+
$floorLabels2[i.id] = '239'
|
893
|
+
$floorItems2['239'] = i
|
894
|
+
w.create(TkcText,736,233.5, 'text'=>'239', 'fill'=>color,
|
895
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
896
|
+
i = TkcPolygon.new(w,695,277,643,277,643,206,695,206,
|
897
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
898
|
+
$floorLabels2[i.id] = '248'
|
899
|
+
$floorItems2['248'] = i
|
900
|
+
w.create(TkcText,669,241.5, 'text'=>'248', 'fill'=>color,
|
901
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
902
|
+
i = TkcPolygon.new(w,676,135,676,185,724,185,724,135,
|
903
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
904
|
+
$floorLabels2[i.id] = '236'
|
905
|
+
$floorItems2['236'] = i
|
906
|
+
w.create(TkcText,700,160, 'text'=>'236', 'fill'=>color,
|
907
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
908
|
+
i = TkcPolygon.new(w,675,135,635,135,635,145,628,145,628,185,675,185,
|
909
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
910
|
+
$floorLabels2[i.id] = '235'
|
911
|
+
$floorItems2['235'] = i
|
912
|
+
w.create(TkcText,651.5,160, 'text'=>'235', 'fill'=>color,
|
913
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
914
|
+
i = TkcPolygon.new(w,626,143,633,143,633,135,572,135,
|
915
|
+
572,143,579,143,579,185,626,185,
|
916
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
917
|
+
$floorLabels2[i.id] = '234'
|
918
|
+
$floorItems2['234'] = i
|
919
|
+
w.create(TkcText,606,160, 'text'=>'234', 'fill'=>color,
|
920
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
921
|
+
i = TkcPolygon.new(w,557,135,571,135,571,145,578,145,
|
922
|
+
578,185,527,185,527,131,557,131,
|
923
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
924
|
+
$floorLabels2[i.id] = '233'
|
925
|
+
$floorItems2['233'] = i
|
926
|
+
w.create(TkcText,552.5,158, 'text'=>'233', 'fill'=>color,
|
927
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
928
|
+
i = TkcPolygon.new(w,476,249,557,249,557,205,476,205,
|
929
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
930
|
+
$floorLabels2[i.id] = '230'
|
931
|
+
$floorItems2['230'] = i
|
932
|
+
w.create(TkcText,516.5,227, 'text'=>'230', 'fill'=>color,
|
933
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
934
|
+
i = TkcPolygon.new(w,476,164,486,164,486,131,525,131,525,185,476,185,
|
935
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
936
|
+
$floorLabels2[i.id] = '232'
|
937
|
+
$floorItems2['232'] = i
|
938
|
+
w.create(TkcText,500.5,158, 'text'=>'232', 'fill'=>color,
|
939
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
940
|
+
i = TkcPolygon.new(w,476,186,495,186,495,204,476,204,
|
941
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
942
|
+
$floorLabels2[i.id] = '229'
|
943
|
+
$floorItems2['229'] = i
|
944
|
+
w.create(TkcText,485.5,195, 'text'=>'229', 'fill'=>color,
|
945
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
946
|
+
i = TkcPolygon.new(w,474,207,409,207,409,187,399,187,399,164,474,164,
|
947
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
948
|
+
$floorLabels2[i.id] = '227'
|
949
|
+
$floorItems2['227'] = i
|
950
|
+
w.create(TkcText,436.5,185.5, 'text'=>'227', 'fill'=>color,
|
951
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
952
|
+
i = TkcPolygon.new(w,399,228,399,253,474,253,474,209,409,209,409,228,
|
953
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
954
|
+
$floorLabels2[i.id] = '228'
|
955
|
+
$floorItems2['228'] = i
|
956
|
+
w.create(TkcText,436.5,231, 'text'=>'228', 'fill'=>color,
|
957
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
958
|
+
i = TkcPolygon.new(w,397,246,397,226,407,226,407,189,377,189,377,246,
|
959
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
960
|
+
$floorLabels2[i.id] = '226'
|
961
|
+
$floorItems2['226'] = i
|
962
|
+
w.create(TkcText,392,217.5, 'text'=>'226', 'fill'=>color,
|
963
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
964
|
+
i = TkcPolygon.new(w,377,169,316,169,316,131,397,131,397,188,377,188,
|
965
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
966
|
+
$floorLabels2[i.id] = '225'
|
967
|
+
$floorItems2['225'] = i
|
968
|
+
w.create(TkcText,356.5,150, 'text'=>'225', 'fill'=>color,
|
969
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
970
|
+
i = TkcPolygon.new(w,234,198,306,198,306,249,234,249,
|
971
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
972
|
+
$floorLabels2[i.id] = '224'
|
973
|
+
$floorItems2['224'] = i
|
974
|
+
w.create(TkcText,270,223.5, 'text'=>'224', 'fill'=>color,
|
975
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
976
|
+
i = TkcPolygon.new(w,270,179,306,179,306,170,314,170,314,135,270,135,
|
977
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
978
|
+
$floorLabels2[i.id] = '223'
|
979
|
+
$floorItems2['223'] = i
|
980
|
+
w.create(TkcText,292,157, 'text'=>'223', 'fill'=>color,
|
981
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
982
|
+
i = TkcPolygon.new(w,268,179,221,179,221,135,268,135,
|
983
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
984
|
+
$floorLabels2[i.id] = '222'
|
985
|
+
$floorItems2['222'] = i
|
986
|
+
w.create(TkcText,244.5,157, 'text'=>'222', 'fill'=>color,
|
987
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
988
|
+
i = TkcPolygon.new(w,177,179,219,179,219,135,177,135,
|
989
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
990
|
+
$floorLabels2[i.id] = '221'
|
991
|
+
$floorItems2['221'] = i
|
992
|
+
w.create(TkcText,198,157, 'text'=>'221', 'fill'=>color,
|
993
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
994
|
+
i = TkcPolygon.new(w,299,327,349,327,349,284,341,284,341,276,299,276,
|
995
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
996
|
+
$floorLabels2[i.id] = '204'
|
997
|
+
$floorItems2['204'] = i
|
998
|
+
w.create(TkcText,324,301.5, 'text'=>'204', 'fill'=>color,
|
999
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1000
|
+
i = TkcPolygon.new(w,234,276,297,276,297,327,257,327,257,338,234,338,
|
1001
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1002
|
+
$floorLabels2[i.id] = '205'
|
1003
|
+
$floorItems2['205'] = i
|
1004
|
+
w.create(TkcText,265.5,307, 'text'=>'205', 'fill'=>color,
|
1005
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1006
|
+
i = TkcPolygon.new(w,256,385,256,340,212,340,212,385,
|
1007
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1008
|
+
$floorLabels2[i.id] = '207'
|
1009
|
+
$floorItems2['207'] = i
|
1010
|
+
w.create(TkcText,234,362.5, 'text'=>'207', 'fill'=>color,
|
1011
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1012
|
+
i = TkcPolygon.new(w,210,340,164,340,164,385,210,385,
|
1013
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1014
|
+
$floorLabels2[i.id] = '208'
|
1015
|
+
$floorItems2['208'] = i
|
1016
|
+
w.create(TkcText,187,362.5, 'text'=>'208', 'fill'=>color,
|
1017
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1018
|
+
i = TkcPolygon.new(w,115,340,162,340,162,385,115,385,
|
1019
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1020
|
+
$floorLabels2[i.id] = '209'
|
1021
|
+
$floorItems2['209'] = i
|
1022
|
+
w.create(TkcText,138.5,362.5, 'text'=>'209', 'fill'=>color,
|
1023
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1024
|
+
i = TkcPolygon.new(w,89,228,89,156,53,156,53,228,
|
1025
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1026
|
+
$floorLabels2[i.id] = '217'
|
1027
|
+
$floorItems2['217'] = i
|
1028
|
+
w.create(TkcText,71,192, 'text'=>'217', 'fill'=>color,
|
1029
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1030
|
+
i = TkcPolygon.new(w,89,169,97,169,97,190,89,190,
|
1031
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1032
|
+
$floorLabels2[i.id] = '217A'
|
1033
|
+
$floorItems2['217A'] = i
|
1034
|
+
w.create(TkcText,93,179.5, 'text'=>'217A', 'fill'=>color,
|
1035
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1036
|
+
i = TkcPolygon.new(w,89,156,89,168,95,168,95,135,53,135,53,156,
|
1037
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1038
|
+
$floorLabels2[i.id] = '216'
|
1039
|
+
$floorItems2['216'] = i
|
1040
|
+
w.create(TkcText,71,145.5, 'text'=>'216', 'fill'=>color,
|
1041
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1042
|
+
i = TkcPolygon.new(w,51,179,51,135,6,135,6,179,
|
1043
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1044
|
+
$floorLabels2[i.id] = '215'
|
1045
|
+
$floorItems2['215'] = i
|
1046
|
+
w.create(TkcText,28.5,157, 'text'=>'215', 'fill'=>color,
|
1047
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1048
|
+
i = TkcPolygon.new(w,51,227,6,227,6,180,51,180,
|
1049
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1050
|
+
$floorLabels2[i.id] = '214'
|
1051
|
+
$floorItems2['214'] = i
|
1052
|
+
w.create(TkcText,28.5,203.5, 'text'=>'214', 'fill'=>color,
|
1053
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1054
|
+
i = TkcPolygon.new(w,51,275,6,275,6,229,51,229,
|
1055
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1056
|
+
$floorLabels2[i.id] = '213'
|
1057
|
+
$floorItems2['213'] = i
|
1058
|
+
w.create(TkcText,28.5,252, 'text'=>'213', 'fill'=>color,
|
1059
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1060
|
+
i = TkcPolygon.new(w,114,340,67,340,67,385,114,385,
|
1061
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1062
|
+
$floorLabels2[i.id] = '210'
|
1063
|
+
$floorItems2['210'] = i
|
1064
|
+
w.create(TkcText,90.5,362.5, 'text'=>'210', 'fill'=>color,
|
1065
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1066
|
+
i = TkcPolygon.new(w,59,389,59,385,65,385,65,340,1,340,1,389,
|
1067
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1068
|
+
$floorLabels2[i.id] = '211'
|
1069
|
+
$floorItems2['211'] = i
|
1070
|
+
w.create(TkcText,33,364.5, 'text'=>'211', 'fill'=>color,
|
1071
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1072
|
+
i = TkcPolygon.new(w,393,309,350,309,350,282,342,282,342,276,393,276,
|
1073
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1074
|
+
$floorLabels2[i.id] = '203'
|
1075
|
+
$floorItems2['203'] = i
|
1076
|
+
w.create(TkcText,367.5,292.5, 'text'=>'203', 'fill'=>color,
|
1077
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1078
|
+
i = TkcPolygon.new(w,99,191,91,191,91,226,174,226,174,198,
|
1079
|
+
154,198,154,192,109,192,109,169,99,169,
|
1080
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1081
|
+
$floorLabels2[i.id] = '220'
|
1082
|
+
$floorItems2['220'] = i
|
1083
|
+
w.create(TkcText,132.5,208.5, 'text'=>'220', 'fill'=>color,
|
1084
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1085
|
+
i = TkcPolygon.new(w,339,205,307,205,307,171,339,171,
|
1086
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1087
|
+
$floorLabels2[i.id] = 'Priv Lift2'
|
1088
|
+
$floorItems2['Priv Lift2'] = i
|
1089
|
+
w.create(TkcText,323,188, 'text'=>'Priv Lift2', 'fill'=>color,
|
1090
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1091
|
+
i = TkcPolygon.new(w,307,240,339,240,339,206,307,206,
|
1092
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1093
|
+
$floorLabels2[i.id] = 'Pub Lift 2'
|
1094
|
+
$floorItems2['Pub Lift 2'] = i
|
1095
|
+
w.create(TkcText,323,223, 'text'=>'Pub Lift 2', 'fill'=>color,
|
1096
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1097
|
+
i = TkcPolygon.new(w,175,168,97,168,97,131,175,131,
|
1098
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1099
|
+
$floorLabels2[i.id] = '218'
|
1100
|
+
$floorItems2['218'] = i
|
1101
|
+
w.create(TkcText,136,149.5, 'text'=>'218', 'fill'=>color,
|
1102
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1103
|
+
i = TkcPolygon.new(w,154,191,111,191,111,169,154,169,
|
1104
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1105
|
+
$floorLabels2[i.id] = '219'
|
1106
|
+
$floorItems2['219'] = i
|
1107
|
+
w.create(TkcText,132.5,180, 'text'=>'219', 'fill'=>color,
|
1108
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1109
|
+
i = TkcPolygon.new(w,375,246,375,172,341,172,341,246,
|
1110
|
+
'fill'=>'', 'tags'=>['floor2','room'])
|
1111
|
+
$floorLabels2[i.id] = '201'
|
1112
|
+
$floorItems2['201'] = i
|
1113
|
+
w.create(TkcText,358,209, 'text'=>'201', 'fill'=>color,
|
1114
|
+
'anchor'=>'c', 'tags'=>['floor2','label'])
|
1115
|
+
w.create(TkcLine,641,186,678,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1116
|
+
w.create(TkcLine,757,350,757,367, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1117
|
+
w.create(TkcLine,634,133,634,144, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1118
|
+
w.create(TkcLine,634,144,627,144, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1119
|
+
w.create(TkcLine,572,133,572,144, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1120
|
+
w.create(TkcLine,572,144,579,144, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1121
|
+
w.create(TkcLine,398,129,398,162, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1122
|
+
w.create(TkcLine,174,197,175,197, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1123
|
+
w.create(TkcLine,175,197,175,227, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1124
|
+
w.create(TkcLine,757,206,757,221, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1125
|
+
w.create(TkcLine,396,188,408,188, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1126
|
+
w.create(TkcLine,727,189,725,189, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1127
|
+
w.create(TkcLine,747,167,802,167, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1128
|
+
w.create(TkcLine,747,167,747,189, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1129
|
+
w.create(TkcLine,755,189,739,189, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1130
|
+
w.create(TkcLine,769,224,757,224, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1131
|
+
w.create(TkcLine,802,224,802,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1132
|
+
w.create(TkcLine,802,129,725,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1133
|
+
w.create(TkcLine,725,189,725,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1134
|
+
w.create(TkcLine,725,186,690,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1135
|
+
w.create(TkcLine,676,133,676,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1136
|
+
w.create(TkcLine,627,144,627,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1137
|
+
w.create(TkcLine,629,186,593,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1138
|
+
w.create(TkcLine,579,144,579,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1139
|
+
w.create(TkcLine,559,129,559,133, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1140
|
+
w.create(TkcLine,725,133,559,133, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1141
|
+
w.create(TkcLine,484,162,484,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1142
|
+
w.create(TkcLine,559,129,484,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1143
|
+
w.create(TkcLine,526,129,526,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1144
|
+
w.create(TkcLine,540,186,581,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1145
|
+
w.create(TkcLine,528,186,523,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1146
|
+
w.create(TkcLine,511,186,475,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1147
|
+
w.create(TkcLine,496,190,496,186, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1148
|
+
w.create(TkcLine,496,205,496,202, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1149
|
+
w.create(TkcLine,475,205,527,205, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1150
|
+
w.create(TkcLine,558,205,539,205, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1151
|
+
w.create(TkcLine,558,205,558,249, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1152
|
+
w.create(TkcLine,558,249,475,249, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1153
|
+
w.create(TkcLine,662,206,642,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1154
|
+
w.create(TkcLine,695,206,675,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1155
|
+
w.create(TkcLine,695,278,642,278, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1156
|
+
w.create(TkcLine,642,291,642,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1157
|
+
w.create(TkcLine,695,291,695,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1158
|
+
w.create(TkcLine,716,208,716,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1159
|
+
w.create(TkcLine,757,206,716,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1160
|
+
w.create(TkcLine,757,221,757,224, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1161
|
+
w.create(TkcLine,793,224,802,224, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1162
|
+
w.create(TkcLine,757,262,716,262, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1163
|
+
w.create(TkcLine,716,220,716,264, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1164
|
+
w.create(TkcLine,716,315,716,276, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1165
|
+
w.create(TkcLine,757,315,703,315, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1166
|
+
w.create(TkcLine,757,325,757,224, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1167
|
+
w.create(TkcLine,757,367,644,367, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1168
|
+
w.create(TkcLine,689,367,689,315, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1169
|
+
w.create(TkcLine,647,315,644,315, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1170
|
+
w.create(TkcLine,659,315,691,315, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1171
|
+
w.create(TkcLine,600,325,600,391, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1172
|
+
w.create(TkcLine,627,325,644,325, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1173
|
+
w.create(TkcLine,644,391,644,315, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1174
|
+
w.create(TkcLine,615,325,575,325, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1175
|
+
w.create(TkcLine,644,391,558,391, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1176
|
+
w.create(TkcLine,563,325,558,325, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1177
|
+
w.create(TkcLine,558,391,558,314, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1178
|
+
w.create(TkcLine,558,327,508,327, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1179
|
+
w.create(TkcLine,558,275,484,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1180
|
+
w.create(TkcLine,558,302,558,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1181
|
+
w.create(TkcLine,508,327,508,311, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1182
|
+
w.create(TkcLine,484,311,508,311, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1183
|
+
w.create(TkcLine,484,275,484,311, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1184
|
+
w.create(TkcLine,475,208,408,208, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1185
|
+
w.create(TkcLine,408,206,408,210, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1186
|
+
w.create(TkcLine,408,222,408,227, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1187
|
+
w.create(TkcLine,408,227,398,227, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1188
|
+
w.create(TkcLine,398,227,398,254, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1189
|
+
w.create(TkcLine,408,188,408,194, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1190
|
+
w.create(TkcLine,383,188,376,188, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1191
|
+
w.create(TkcLine,398,188,398,162, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1192
|
+
w.create(TkcLine,398,162,484,162, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1193
|
+
w.create(TkcLine,475,162,475,254, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1194
|
+
w.create(TkcLine,398,254,475,254, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1195
|
+
w.create(TkcLine,484,280,395,280, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1196
|
+
w.create(TkcLine,395,311,395,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1197
|
+
w.create(TkcLine,307,197,293,197, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1198
|
+
w.create(TkcLine,278,197,233,197, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1199
|
+
w.create(TkcLine,233,197,233,249, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1200
|
+
w.create(TkcLine,307,179,284,179, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1201
|
+
w.create(TkcLine,233,249,278,249, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1202
|
+
w.create(TkcLine,269,179,269,133, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1203
|
+
w.create(TkcLine,220,179,220,133, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1204
|
+
w.create(TkcLine,155,191,110,191, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1205
|
+
w.create(TkcLine,90,190,98,190, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1206
|
+
w.create(TkcLine,98,169,98,190, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1207
|
+
w.create(TkcLine,52,133,52,165, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1208
|
+
w.create(TkcLine,52,214,52,177, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1209
|
+
w.create(TkcLine,52,226,52,262, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1210
|
+
w.create(TkcLine,52,274,52,276, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1211
|
+
w.create(TkcLine,234,275,234,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1212
|
+
w.create(TkcLine,226,339,258,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1213
|
+
w.create(TkcLine,211,387,211,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1214
|
+
w.create(TkcLine,214,339,177,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1215
|
+
w.create(TkcLine,258,387,60,387, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1216
|
+
w.create(TkcLine,3,133,3,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1217
|
+
w.create(TkcLine,165,339,129,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1218
|
+
w.create(TkcLine,117,339,80,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1219
|
+
w.create(TkcLine,68,339,59,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1220
|
+
w.create(TkcLine,0,339,46,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1221
|
+
w.create(TkcLine,60,391,0,391, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1222
|
+
w.create(TkcLine,0,339,0,391, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1223
|
+
w.create(TkcLine,60,387,60,391, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1224
|
+
w.create(TkcLine,258,329,258,387, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1225
|
+
w.create(TkcLine,350,329,258,329, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1226
|
+
w.create(TkcLine,395,311,350,311, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1227
|
+
w.create(TkcLine,398,129,315,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1228
|
+
w.create(TkcLine,176,133,315,133, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1229
|
+
w.create(TkcLine,176,129,96,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1230
|
+
w.create(TkcLine,3,133,96,133, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1231
|
+
w.create(TkcLine,66,387,66,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1232
|
+
w.create(TkcLine,115,387,115,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1233
|
+
w.create(TkcLine,163,387,163,339, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1234
|
+
w.create(TkcLine,234,275,276,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1235
|
+
w.create(TkcLine,288,275,309,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1236
|
+
w.create(TkcLine,298,275,298,329, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1237
|
+
w.create(TkcLine,341,283,350,283, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1238
|
+
w.create(TkcLine,321,275,341,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1239
|
+
w.create(TkcLine,375,275,395,275, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1240
|
+
w.create(TkcLine,315,129,315,170, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1241
|
+
w.create(TkcLine,376,170,307,170, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1242
|
+
w.create(TkcLine,307,250,307,170, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1243
|
+
w.create(TkcLine,376,245,376,170, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1244
|
+
w.create(TkcLine,340,241,307,241, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1245
|
+
w.create(TkcLine,340,245,340,224, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1246
|
+
w.create(TkcLine,340,210,340,201, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1247
|
+
w.create(TkcLine,340,187,340,170, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1248
|
+
w.create(TkcLine,340,206,307,206, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1249
|
+
w.create(TkcLine,293,250,307,250, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1250
|
+
w.create(TkcLine,271,179,238,179, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1251
|
+
w.create(TkcLine,226,179,195,179, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1252
|
+
w.create(TkcLine,176,129,176,179, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1253
|
+
w.create(TkcLine,182,179,176,179, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1254
|
+
w.create(TkcLine,174,169,176,169, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1255
|
+
w.create(TkcLine,162,169,90,169, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1256
|
+
w.create(TkcLine,96,169,96,129, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1257
|
+
w.create(TkcLine,175,227,90,227, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1258
|
+
w.create(TkcLine,90,190,90,227, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1259
|
+
w.create(TkcLine,52,179,3,179, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1260
|
+
w.create(TkcLine,52,228,3,228, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1261
|
+
w.create(TkcLine,52,276,3,276, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1262
|
+
w.create(TkcLine,155,177,155,169, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1263
|
+
w.create(TkcLine,110,191,110,169, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1264
|
+
w.create(TkcLine,155,189,155,197, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1265
|
+
w.create(TkcLine,350,283,350,329, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1266
|
+
w.create(TkcLine,162,197,155,197, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1267
|
+
w.create(TkcLine,341,275,341,283, 'fill'=>color, 'tags'=>['floor2','wall'])
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
# floor2_fg3 --
|
1271
|
+
# This method represents part of the floorplan database. When
|
1272
|
+
# invoked, it instantiates the foreground information for the third
|
1273
|
+
# floor (office outlines and numbers).
|
1274
|
+
#
|
1275
|
+
# Arguments:
|
1276
|
+
# w - The canvas window.
|
1277
|
+
# color - Color to use for drawing foreground information.
|
1278
|
+
|
1279
|
+
def floor2_fg3(w,color)
|
1280
|
+
i = TkcPolygon.new(w,89,228,89,180,70,180,70,228,
|
1281
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1282
|
+
$floorLabels2[i.id] = '316'
|
1283
|
+
$floorItems2['316'] = i
|
1284
|
+
w.create(TkcText,79.5,204, 'text'=>'316', 'fill'=>color,
|
1285
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1286
|
+
i = TkcPolygon.new(w,115,368,162,368,162,323,115,323,
|
1287
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1288
|
+
$floorLabels2[i.id] = '309'
|
1289
|
+
$floorItems2['309'] = i
|
1290
|
+
w.create(TkcText,138.5,345.5, 'text'=>'309', 'fill'=>color,
|
1291
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1292
|
+
i = TkcPolygon.new(w,164,323,164,368,211,368,211,323,
|
1293
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1294
|
+
$floorLabels2[i.id] = '308'
|
1295
|
+
$floorItems2['308'] = i
|
1296
|
+
w.create(TkcText,187.5,345.5, 'text'=>'308', 'fill'=>color,
|
1297
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1298
|
+
i = TkcPolygon.new(w,256,368,212,368,212,323,256,323,
|
1299
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1300
|
+
$floorLabels2[i.id] = '307'
|
1301
|
+
$floorItems2['307'] = i
|
1302
|
+
w.create(TkcText,234,345.5, 'text'=>'307', 'fill'=>color,
|
1303
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1304
|
+
i = TkcPolygon.new(w,244,276,297,276,297,327,260,327,260,321,244,321,
|
1305
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1306
|
+
$floorLabels2[i.id] = '305'
|
1307
|
+
$floorItems2['305'] = i
|
1308
|
+
w.create(TkcText,270.5,301.5, 'text'=>'305', 'fill'=>color,
|
1309
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1310
|
+
i = TkcPolygon.new(w,251,219,251,203,244,203,244,219,
|
1311
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1312
|
+
$floorLabels2[i.id] = '324B'
|
1313
|
+
$floorItems2['324B'] = i
|
1314
|
+
w.create(TkcText,247.5,211, 'text'=>'324B', 'fill'=>color,
|
1315
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1316
|
+
i = TkcPolygon.new(w,251,249,244,249,244,232,251,232,
|
1317
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1318
|
+
$floorLabels2[i.id] = '324A'
|
1319
|
+
$floorItems2['324A'] = i
|
1320
|
+
w.create(TkcText,247.5,240.5, 'text'=>'324A', 'fill'=>color,
|
1321
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1322
|
+
i = TkcPolygon.new(w,223,135,223,179,177,179,177,135,
|
1323
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1324
|
+
$floorLabels2[i.id] = '320'
|
1325
|
+
$floorItems2['320'] = i
|
1326
|
+
w.create(TkcText,200,157, 'text'=>'320', 'fill'=>color,
|
1327
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1328
|
+
i = TkcPolygon.new(w,114,368,114,323,67,323,67,368,
|
1329
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1330
|
+
$floorLabels2[i.id] = '310'
|
1331
|
+
$floorItems2['310'] = i
|
1332
|
+
w.create(TkcText,90.5,345.5, 'text'=>'310', 'fill'=>color,
|
1333
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1334
|
+
i = TkcPolygon.new(w,23,277,23,321,68,321,68,277,
|
1335
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1336
|
+
$floorLabels2[i.id] = '312'
|
1337
|
+
$floorItems2['312'] = i
|
1338
|
+
w.create(TkcText,45.5,299, 'text'=>'312', 'fill'=>color,
|
1339
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1340
|
+
i = TkcPolygon.new(w,23,229,68,229,68,275,23,275,
|
1341
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1342
|
+
$floorLabels2[i.id] = '313'
|
1343
|
+
$floorItems2['313'] = i
|
1344
|
+
w.create(TkcText,45.5,252, 'text'=>'313', 'fill'=>color,
|
1345
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1346
|
+
i = TkcPolygon.new(w,68,227,23,227,23,180,68,180,
|
1347
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1348
|
+
$floorLabels2[i.id] = '314'
|
1349
|
+
$floorItems2['314'] = i
|
1350
|
+
w.create(TkcText,40.5,203.5, 'text'=>'314', 'fill'=>color,
|
1351
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1352
|
+
i = TkcPolygon.new(w,95,179,95,135,23,135,23,179,
|
1353
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1354
|
+
$floorLabels2[i.id] = '315'
|
1355
|
+
$floorItems2['315'] = i
|
1356
|
+
w.create(TkcText,59,157, 'text'=>'315', 'fill'=>color,
|
1357
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1358
|
+
i = TkcPolygon.new(w,99,226,99,204,91,204,91,226,
|
1359
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1360
|
+
$floorLabels2[i.id] = '316B'
|
1361
|
+
$floorItems2['316B'] = i
|
1362
|
+
w.create(TkcText,95,215, 'text'=>'316B', 'fill'=>color,
|
1363
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1364
|
+
i = TkcPolygon.new(w,91,202,99,202,99,180,91,180,
|
1365
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1366
|
+
$floorLabels2[i.id] = '316A'
|
1367
|
+
$floorItems2['316A'] = i
|
1368
|
+
w.create(TkcText,95,191, 'text'=>'316A', 'fill'=>color,
|
1369
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1370
|
+
i = TkcPolygon.new(w,97,169,109,169,109,192,154,192,154,198,
|
1371
|
+
174,198,174,226,101,226,101,179,97,179,
|
1372
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1373
|
+
$floorLabels2[i.id] = '319'
|
1374
|
+
$floorItems2['319'] = i
|
1375
|
+
w.create(TkcText,141.5,209, 'text'=>'319', 'fill'=>color,
|
1376
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1377
|
+
i = TkcPolygon.new(w,65,368,58,368,58,389,1,389,1,333,23,333,23,323,65,323,
|
1378
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1379
|
+
$floorLabels2[i.id] = '311'
|
1380
|
+
$floorItems2['311'] = i
|
1381
|
+
w.create(TkcText,29.5,361, 'text'=>'311', 'fill'=>color,
|
1382
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1383
|
+
i = TkcPolygon.new(w,154,191,111,191,111,169,154,169,
|
1384
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1385
|
+
$floorLabels2[i.id] = '318'
|
1386
|
+
$floorItems2['318'] = i
|
1387
|
+
w.create(TkcText,132.5,180, 'text'=>'318', 'fill'=>color,
|
1388
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1389
|
+
i = TkcPolygon.new(w,175,168,97,168,97,131,175,131,
|
1390
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1391
|
+
$floorLabels2[i.id] = '317'
|
1392
|
+
$floorItems2['317'] = i
|
1393
|
+
w.create(TkcText,136,149.5, 'text'=>'317', 'fill'=>color,
|
1394
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1395
|
+
i = TkcPolygon.new(w,274,194,274,221,306,221,306,194,
|
1396
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1397
|
+
$floorLabels2[i.id] = '323'
|
1398
|
+
$floorItems2['323'] = i
|
1399
|
+
w.create(TkcText,290,207.5, 'text'=>'323', 'fill'=>color,
|
1400
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1401
|
+
i = TkcPolygon.new(w,306,222,274,222,274,249,306,249,
|
1402
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1403
|
+
$floorLabels2[i.id] = '325'
|
1404
|
+
$floorItems2['325'] = i
|
1405
|
+
w.create(TkcText,290,235.5, 'text'=>'325', 'fill'=>color,
|
1406
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1407
|
+
i = TkcPolygon.new(w,263,179,224,179,224,135,263,135,
|
1408
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1409
|
+
$floorLabels2[i.id] = '321'
|
1410
|
+
$floorItems2['321'] = i
|
1411
|
+
w.create(TkcText,243.5,157, 'text'=>'321', 'fill'=>color,
|
1412
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1413
|
+
i = TkcPolygon.new(w,314,169,306,169,306,192,273,192,
|
1414
|
+
264,181,264,135,314,135,
|
1415
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1416
|
+
$floorLabels2[i.id] = '322'
|
1417
|
+
$floorItems2['322'] = i
|
1418
|
+
w.create(TkcText,293.5,163.5, 'text'=>'322', 'fill'=>color,
|
1419
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1420
|
+
i = TkcPolygon.new(w,307,240,339,240,339,206,307,206,
|
1421
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1422
|
+
$floorLabels2[i.id] = 'Pub Lift3'
|
1423
|
+
$floorItems2['Pub Lift3'] = i
|
1424
|
+
w.create(TkcText,323,223, 'text'=>'Pub Lift3', 'fill'=>color,
|
1425
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1426
|
+
i = TkcPolygon.new(w,339,205,307,205,307,171,339,171,
|
1427
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1428
|
+
$floorLabels2[i.id] = 'Priv Lift3'
|
1429
|
+
$floorItems2['Priv Lift3'] = i
|
1430
|
+
w.create(TkcText,323,188, 'text'=>'Priv Lift3', 'fill'=>color,
|
1431
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1432
|
+
i = TkcPolygon.new(w,350,284,376,284,376,276,397,276,397,309,350,309,
|
1433
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1434
|
+
$floorLabels2[i.id] = '303'
|
1435
|
+
$floorItems2['303'] = i
|
1436
|
+
w.create(TkcText,373.5,292.5, 'text'=>'303', 'fill'=>color,
|
1437
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1438
|
+
i = TkcPolygon.new(w,272,203,272,249,252,249,252,230,
|
1439
|
+
244,230,244,221,252,221,252,203,
|
1440
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1441
|
+
$floorLabels2[i.id] = '324'
|
1442
|
+
$floorItems2['324'] = i
|
1443
|
+
w.create(TkcText,262,226, 'text'=>'324', 'fill'=>color,
|
1444
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1445
|
+
i = TkcPolygon.new(w,299,276,299,327,349,327,349,284,341,284,341,276,
|
1446
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1447
|
+
$floorLabels2[i.id] = '304'
|
1448
|
+
$floorItems2['304'] = i
|
1449
|
+
w.create(TkcText,324,301.5, 'text'=>'304', 'fill'=>color,
|
1450
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1451
|
+
i = TkcPolygon.new(w,375,246,375,172,341,172,341,246,
|
1452
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1453
|
+
$floorLabels2[i.id] = '301'
|
1454
|
+
$floorItems2['301'] = i
|
1455
|
+
w.create(TkcText,358,209, 'text'=>'301', 'fill'=>color,
|
1456
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1457
|
+
i = TkcPolygon.new(w,397,246,377,246,377,185,397,185,
|
1458
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1459
|
+
$floorLabels2[i.id] = '327'
|
1460
|
+
$floorItems2['327'] = i
|
1461
|
+
w.create(TkcText,387,215.5, 'text'=>'327', 'fill'=>color,
|
1462
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1463
|
+
i = TkcPolygon.new(w,316,131,316,169,377,169,377,185,397,185,397,131,
|
1464
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1465
|
+
$floorLabels2[i.id] = '326'
|
1466
|
+
$floorItems2['326'] = i
|
1467
|
+
w.create(TkcText,365.5,150, 'text'=>'326', 'fill'=>color,
|
1468
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1469
|
+
i = TkcPolygon.new(w,308,251,242,251,242,274,342,274,342,282,375, 282,
|
1470
|
+
375,274,397,274,397,248,339,248,339,242,308,242,
|
1471
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1472
|
+
$floorLabels2[i.id] = '302'
|
1473
|
+
$floorItems2['302'] = i
|
1474
|
+
w.create(TkcText,319.5,261, 'text'=>'302', 'fill'=>color,
|
1475
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1476
|
+
i = TkcPolygon.new(w,70,321,242,321,242,200,259,200,259,203,272,203,
|
1477
|
+
272,193,263,180,242,180,175,180,175,169,156,169,
|
1478
|
+
156,196,177,196,177,228,107,228,70,228,70,275,107,275,
|
1479
|
+
107,248,160,248,160,301,107,301,107,275,70,275,
|
1480
|
+
'fill'=>'', 'tags'=>['floor3','room'])
|
1481
|
+
$floorLabels2[i.id] = '306'
|
1482
|
+
$floorItems2['306'] = i
|
1483
|
+
w.create(TkcText,200.5,284.5, 'text'=>'306', 'fill'=>color,
|
1484
|
+
'anchor'=>'c', 'tags'=>['floor3','label'])
|
1485
|
+
w.create(TkcLine,341,275,341,283, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1486
|
+
w.create(TkcLine,162,197,155,197, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1487
|
+
w.create(TkcLine,396,247,399,247, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1488
|
+
w.create(TkcLine,399,129,399,311, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1489
|
+
w.create(TkcLine,258,202,243,202, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1490
|
+
w.create(TkcLine,350,283,350,329, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1491
|
+
w.create(TkcLine,251,231,243,231, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1492
|
+
w.create(TkcLine,243,220,251,220, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1493
|
+
w.create(TkcLine,243,250,243,202, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1494
|
+
w.create(TkcLine,155,197,155,190, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1495
|
+
w.create(TkcLine,110,192,110,169, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1496
|
+
w.create(TkcLine,155,192,110,192, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1497
|
+
w.create(TkcLine,155,177,155,169, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1498
|
+
w.create(TkcLine,176,197,176,227, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1499
|
+
w.create(TkcLine,69,280,69,274, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1500
|
+
w.create(TkcLine,21,276,69,276, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1501
|
+
w.create(TkcLine,69,262,69,226, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1502
|
+
w.create(TkcLine,21,228,69,228, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1503
|
+
w.create(TkcLine,21,179,75,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1504
|
+
w.create(TkcLine,69,179,69,214, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1505
|
+
w.create(TkcLine,90,220,90,227, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1506
|
+
w.create(TkcLine,90,204,90,202, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1507
|
+
w.create(TkcLine,90,203,100,203, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1508
|
+
w.create(TkcLine,90,187,90,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1509
|
+
w.create(TkcLine,90,227,176,227, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1510
|
+
w.create(TkcLine,100,179,100,227, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1511
|
+
w.create(TkcLine,100,179,87,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1512
|
+
w.create(TkcLine,96,179,96,129, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1513
|
+
w.create(TkcLine,162,169,96,169, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1514
|
+
w.create(TkcLine,173,169,176,169, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1515
|
+
w.create(TkcLine,182,179,176,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1516
|
+
w.create(TkcLine,176,129,176,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1517
|
+
w.create(TkcLine,195,179,226,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1518
|
+
w.create(TkcLine,224,133,224,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1519
|
+
w.create(TkcLine,264,179,264,133, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1520
|
+
w.create(TkcLine,238,179,264,179, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1521
|
+
w.create(TkcLine,273,207,273,193, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1522
|
+
w.create(TkcLine,273,235,273,250, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1523
|
+
w.create(TkcLine,273,224,273,219, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1524
|
+
w.create(TkcLine,273,193,307,193, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1525
|
+
w.create(TkcLine,273,222,307,222, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1526
|
+
w.create(TkcLine,273,250,307,250, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1527
|
+
w.create(TkcLine,384,247,376,247, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1528
|
+
w.create(TkcLine,340,206,307,206, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1529
|
+
w.create(TkcLine,340,187,340,170, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1530
|
+
w.create(TkcLine,340,210,340,201, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1531
|
+
w.create(TkcLine,340,247,340,224, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1532
|
+
w.create(TkcLine,340,241,307,241, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1533
|
+
w.create(TkcLine,376,247,376,170, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1534
|
+
w.create(TkcLine,307,250,307,170, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1535
|
+
w.create(TkcLine,376,170,307,170, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1536
|
+
w.create(TkcLine,315,129,315,170, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1537
|
+
w.create(TkcLine,376,283,366,283, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1538
|
+
w.create(TkcLine,376,283,376,275, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1539
|
+
w.create(TkcLine,399,275,376,275, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1540
|
+
w.create(TkcLine,341,275,320,275, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1541
|
+
w.create(TkcLine,341,283,350,283, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1542
|
+
w.create(TkcLine,298,275,298,329, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1543
|
+
w.create(TkcLine,308,275,298,275, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1544
|
+
w.create(TkcLine,243,322,243,275, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1545
|
+
w.create(TkcLine,243,275,284,275, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1546
|
+
w.create(TkcLine,258,322,226,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1547
|
+
w.create(TkcLine,212,370,212,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1548
|
+
w.create(TkcLine,214,322,177,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1549
|
+
w.create(TkcLine,163,370,163,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1550
|
+
w.create(TkcLine,165,322,129,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1551
|
+
w.create(TkcLine,84,322,117,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1552
|
+
w.create(TkcLine,71,322,64,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1553
|
+
w.create(TkcLine,115,322,115,370, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1554
|
+
w.create(TkcLine,66,322,66,370, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1555
|
+
w.create(TkcLine,52,322,21,322, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1556
|
+
w.create(TkcLine,21,331,0,331, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1557
|
+
w.create(TkcLine,21,331,21,133, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1558
|
+
w.create(TkcLine,96,133,21,133, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1559
|
+
w.create(TkcLine,176,129,96,129, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1560
|
+
w.create(TkcLine,315,133,176,133, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1561
|
+
w.create(TkcLine,315,129,399,129, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1562
|
+
w.create(TkcLine,399,311,350,311, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1563
|
+
w.create(TkcLine,350,329,258,329, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1564
|
+
w.create(TkcLine,258,322,258,370, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1565
|
+
w.create(TkcLine,60,370,258,370, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1566
|
+
w.create(TkcLine,60,370,60,391, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1567
|
+
w.create(TkcLine,0,391,0,331, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1568
|
+
w.create(TkcLine,60,391,0,391, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1569
|
+
w.create(TkcLine,307,250,307,242, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1570
|
+
w.create(TkcLine,273,250,307,250, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1571
|
+
w.create(TkcLine,258,250,243,250, 'fill'=>color, 'tags'=>['floor3','wall'])
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# Below is the "main program" that creates the floorplan demonstration.
|
1575
|
+
|
1576
|
+
# toplevel widget が存在すれば削除する
|
1577
|
+
if defined?($floor2_demo) && $floor2_demo
|
1578
|
+
$floor2_demo.destroy
|
1579
|
+
$floor2_demo = nil
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
# demo 用の toplevel widget を生成
|
1583
|
+
$floor2_demo = TkToplevel.new {|w|
|
1584
|
+
title("Floorplan Canvas Demonstration 2")
|
1585
|
+
iconname("Floorplan2")
|
1586
|
+
positionWindow(w)
|
1587
|
+
geometry('+20+20')
|
1588
|
+
minsize(100,100)
|
1589
|
+
}
|
1590
|
+
|
1591
|
+
base_frame = TkFrame.new($floor2_demo).pack(:fill=>:both, :expand=>true)
|
1592
|
+
|
1593
|
+
# label 生成
|
1594
|
+
TkLabel.new(base_frame, 'font'=>$font, 'wraplength'=>'8i', 'justify'=>'left',
|
1595
|
+
'text'=>"このウィンドウにはディジタルエクイップメント社のウェスタンリサーチラボラトリ (DECWRL) の間取りが書かれたキャンバス widget が入っています。これは 3階建てで、常にそのうちの1階分が選択、つまりその間取りが表示されるようになっています。ある階を選択するには、その上でマウスの左ボタンをクリックしてください。マウスが選択されている階の上を動くと、その下にある部屋の色が変わり、部屋番号が「部屋番号:」エントリに表示されます。また、エントリに部屋番号を書くとその部屋の色が変わります。"){
|
1596
|
+
pack('side'=>'top')
|
1597
|
+
}
|
1598
|
+
|
1599
|
+
# frame 生成
|
1600
|
+
$floor2_buttons = TkFrame.new(base_frame) {|frame|
|
1601
|
+
TkButton.new(frame) {
|
1602
|
+
#text '了解'
|
1603
|
+
text '閉じる'
|
1604
|
+
command proc{
|
1605
|
+
tmppath = $floor2_demo
|
1606
|
+
$floor2_demo = nil
|
1607
|
+
tmppath.destroy
|
1608
|
+
}
|
1609
|
+
}.pack('side'=>'left', 'expand'=>'yes')
|
1610
|
+
|
1611
|
+
TkButton.new(frame) {
|
1612
|
+
text 'コード参照'
|
1613
|
+
command proc{showCode 'floor2'}
|
1614
|
+
}.pack('side'=>'left', 'expand'=>'yes')
|
1615
|
+
}
|
1616
|
+
$floor2_buttons.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m')
|
1617
|
+
|
1618
|
+
# 変数設定
|
1619
|
+
$floorLabels2 = {}
|
1620
|
+
$floorItems2 = {}
|
1621
|
+
|
1622
|
+
# canvas 設定
|
1623
|
+
if $tk_version =~ /^4\.[01]/
|
1624
|
+
$floor2_canvas_frame = TkFrame.new(base_frame,'bd'=>2,'relief'=>'sunken',
|
1625
|
+
'highlightthickness'=>2)
|
1626
|
+
$floor2_canvas = TkCanvas.new($floor2_canvas_frame,
|
1627
|
+
'width'=>900, 'height'=>500, 'borderwidth'=>0,
|
1628
|
+
'highlightthickness'=>0) {|c|
|
1629
|
+
TkScrollbar.new(base_frame, 'orient'=>'horiz',
|
1630
|
+
'command'=>proc{|*args| c.xview(*args)}){|hs|
|
1631
|
+
c.xscrollcommand(proc{|first,last| hs.set first,last})
|
1632
|
+
pack('side'=>'bottom', 'fill'=>'x')
|
1633
|
+
}
|
1634
|
+
TkScrollbar.new(base_frame, 'command'=>proc{|*args| c.yview(*args)}){|vs|
|
1635
|
+
c.yscrollcommand(proc{|first,last| vs.set first,last})
|
1636
|
+
pack('side'=>'right', 'fill'=>'y')
|
1637
|
+
}
|
1638
|
+
}
|
1639
|
+
$floor2_canvas_frame.pack('side'=>'top','fill'=>'both', 'expand'=>'yes')
|
1640
|
+
$floor2_canvas.pack('expand'=>'yes', 'fill'=>'both')
|
1641
|
+
|
1642
|
+
else
|
1643
|
+
TkFrame.new(base_frame) {|f|
|
1644
|
+
pack('side'=>'top', 'fill'=>'both', 'expand'=>'yes')
|
1645
|
+
|
1646
|
+
h = TkScrollbar.new(f, 'highlightthickness'=>0, 'orient'=>'horizontal')
|
1647
|
+
v = TkScrollbar.new(f, 'highlightthickness'=>0, 'orient'=>'vertical')
|
1648
|
+
|
1649
|
+
TkFrame.new(f, 'bd'=>2, 'relief'=>'sunken') {|f1|
|
1650
|
+
$floor2_canvas = TkCanvas.new(f1, 'width'=>900, 'height'=>500,
|
1651
|
+
'borderwidth'=>0,
|
1652
|
+
'highlightthickness'=>0) {
|
1653
|
+
xscrollcommand(proc{|first,last| h.set first,last})
|
1654
|
+
yscrollcommand(proc{|first,last| v.set first,last})
|
1655
|
+
pack('expand'=>'yes', 'fill'=>'both')
|
1656
|
+
}
|
1657
|
+
grid('padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>0,
|
1658
|
+
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
|
1659
|
+
}
|
1660
|
+
|
1661
|
+
v.grid('padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>1,
|
1662
|
+
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
|
1663
|
+
h.grid('padx'=>1, 'pady'=>1, 'row'=>1, 'column'=>0,
|
1664
|
+
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
|
1665
|
+
|
1666
|
+
TkGrid.rowconfigure(f, 0, 'weight'=>1, 'minsize'=>0)
|
1667
|
+
TkGrid.columnconfigure(f, 0, 'weight'=>1, 'minsize'=>0)
|
1668
|
+
|
1669
|
+
pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1)
|
1670
|
+
|
1671
|
+
v.command(proc{|*args| $floor2_canvas.yview(*args)})
|
1672
|
+
h.command(proc{|*args| $floor2_canvas.xview(*args)})
|
1673
|
+
}
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# Create an entry for displaying and typing in current room.
|
1677
|
+
|
1678
|
+
$currentRoom2 = TkVariable.new
|
1679
|
+
$floor2_entry = TkEntry.new($floor2_canvas, 'width'=>10, 'relief'=>'sunken',
|
1680
|
+
'bd'=>2, 'textvariable'=>$currentRoom2)
|
1681
|
+
|
1682
|
+
# Choose colors, then fill in the floorplan.
|
1683
|
+
|
1684
|
+
$floor2_colors = {}
|
1685
|
+
if TkWinfo.depth($floor2_canvas) > 1
|
1686
|
+
$floor2_colors['bg1'] = '#a9c1da'
|
1687
|
+
$floor2_colors['outline1'] = '#77889a'
|
1688
|
+
$floor2_colors['bg2'] = '#9ab0c6'
|
1689
|
+
$floor2_colors['outline2'] = '#687786'
|
1690
|
+
$floor2_colors['bg3'] = '#8ba0b3'
|
1691
|
+
$floor2_colors['outline3'] = '#596673'
|
1692
|
+
$floor2_colors['offices'] = 'Black'
|
1693
|
+
$floor2_colors['active'] = '#c4d1df'
|
1694
|
+
else
|
1695
|
+
$floor2_colors['bg1'] = 'white'
|
1696
|
+
$floor2_colors['outline1'] = 'black'
|
1697
|
+
$floor2_colors['bg2'] = 'white'
|
1698
|
+
$floor2_colors['outline2'] = 'black'
|
1699
|
+
$floor2_colors['bg3'] = 'white'
|
1700
|
+
$floor2_colors['outline3'] = 'black'
|
1701
|
+
$floor2_colors['offices'] = 'Black'
|
1702
|
+
$floor2_colors['active'] = 'black'
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
$activeFloor2 = ''
|
1706
|
+
floorDisplay2 $floor2_canvas,3
|
1707
|
+
|
1708
|
+
# Set up event bindings for canvas:
|
1709
|
+
|
1710
|
+
$floor2_canvas.itembind('floor1', '1', proc{floorDisplay2 $floor2_canvas,1})
|
1711
|
+
$floor2_canvas.itembind('floor2', '1', proc{floorDisplay2 $floor2_canvas,2})
|
1712
|
+
$floor2_canvas.itembind('floor3', '1', proc{floorDisplay2 $floor2_canvas,3})
|
1713
|
+
$floor2_canvas.itembind('room', 'Enter', proc{newRoom2 $floor2_canvas})
|
1714
|
+
$floor2_canvas.itembind('room', 'Leave', proc{$currentRoom2.value = ''})
|
1715
|
+
$floor2_canvas.bind('2', proc{|x,y| $floor2_canvas.scan_mark x,y}, '%x %y')
|
1716
|
+
$floor2_canvas.bind('B2-Motion',
|
1717
|
+
proc{|x,y| $floor2_canvas.scan_dragto x,y}, '%x %y')
|
1718
|
+
$floor2_canvas.bind('Destroy', proc{$currentRoom2.unset})
|
1719
|
+
$currentRoom2.value = ''
|
1720
|
+
$currentRoom2.trace('w',proc{roomChanged2 $floor2_canvas})
|