Pratt 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. data/.exrc +61 -0
  2. data/.gitignore +4 -0
  3. data/History.txt +6 -0
  4. data/Manifest.txt +46 -0
  5. data/Pratt.gemspec +351 -0
  6. data/README.txt +66 -0
  7. data/Rakefile +85 -0
  8. data/TODO +54 -0
  9. data/VERSION +1 -0
  10. data/bin/pratt.rb +13 -0
  11. data/config.rb +34 -0
  12. data/lib/pratt.rb +527 -0
  13. data/lib/pratt/array.rb +11 -0
  14. data/lib/pratt/string.rb +18 -0
  15. data/models/app.rb +40 -0
  16. data/models/customer.rb +24 -0
  17. data/models/payment.rb +22 -0
  18. data/models/pratt.rb +19 -0
  19. data/models/project.rb +82 -0
  20. data/models/whence.rb +70 -0
  21. data/pkgs/tile-0.8.2.tar.gz +0 -0
  22. data/pkgs/tile-0.8.2/ANNOUNCE.txt +95 -0
  23. data/pkgs/tile-0.8.2/ChangeLog +4651 -0
  24. data/pkgs/tile-0.8.2/Makefile +250 -0
  25. data/pkgs/tile-0.8.2/Makefile.in +250 -0
  26. data/pkgs/tile-0.8.2/README.txt +86 -0
  27. data/pkgs/tile-0.8.2/aclocal.m4 +2 -0
  28. data/pkgs/tile-0.8.2/altTheme.o +0 -0
  29. data/pkgs/tile-0.8.2/blink.o +0 -0
  30. data/pkgs/tile-0.8.2/button.o +0 -0
  31. data/pkgs/tile-0.8.2/cache.o +0 -0
  32. data/pkgs/tile-0.8.2/clamTheme.o +0 -0
  33. data/pkgs/tile-0.8.2/classicTheme.o +0 -0
  34. data/pkgs/tile-0.8.2/config.log +1330 -0
  35. data/pkgs/tile-0.8.2/config.status +795 -0
  36. data/pkgs/tile-0.8.2/configure +15248 -0
  37. data/pkgs/tile-0.8.2/configure.in +89 -0
  38. data/pkgs/tile-0.8.2/demos/autocomplete.tcl +59 -0
  39. data/pkgs/tile-0.8.2/demos/demo.tcl +870 -0
  40. data/pkgs/tile-0.8.2/demos/dirbrowser.tcl +167 -0
  41. data/pkgs/tile-0.8.2/demos/dlgtest.tcl +97 -0
  42. data/pkgs/tile-0.8.2/demos/iconlib.tcl +110 -0
  43. data/pkgs/tile-0.8.2/demos/repeater.tcl +117 -0
  44. data/pkgs/tile-0.8.2/demos/toolbutton.tcl +101 -0
  45. data/pkgs/tile-0.8.2/doc/Geometry.3 +230 -0
  46. data/pkgs/tile-0.8.2/doc/INDEX.MAP +153 -0
  47. data/pkgs/tile-0.8.2/doc/Makefile +36 -0
  48. data/pkgs/tile-0.8.2/doc/TILE.XML +45 -0
  49. data/pkgs/tile-0.8.2/doc/Theme.3 +34 -0
  50. data/pkgs/tile-0.8.2/doc/button.n +75 -0
  51. data/pkgs/tile-0.8.2/doc/checkbutton.n +61 -0
  52. data/pkgs/tile-0.8.2/doc/combobox.n +98 -0
  53. data/pkgs/tile-0.8.2/doc/converting.txt +97 -0
  54. data/pkgs/tile-0.8.2/doc/dialog.n +122 -0
  55. data/pkgs/tile-0.8.2/doc/entry.n +438 -0
  56. data/pkgs/tile-0.8.2/doc/frame.n +43 -0
  57. data/pkgs/tile-0.8.2/doc/html/Geometry.html +304 -0
  58. data/pkgs/tile-0.8.2/doc/html/Theme.html +48 -0
  59. data/pkgs/tile-0.8.2/doc/html/button.html +120 -0
  60. data/pkgs/tile-0.8.2/doc/html/category-index.html +18 -0
  61. data/pkgs/tile-0.8.2/doc/html/checkbutton.html +94 -0
  62. data/pkgs/tile-0.8.2/doc/html/combobox.html +164 -0
  63. data/pkgs/tile-0.8.2/doc/html/converting.txt +97 -0
  64. data/pkgs/tile-0.8.2/doc/html/dialog.html +159 -0
  65. data/pkgs/tile-0.8.2/doc/html/entry.html +613 -0
  66. data/pkgs/tile-0.8.2/doc/html/frame.html +76 -0
  67. data/pkgs/tile-0.8.2/doc/html/image.html +100 -0
  68. data/pkgs/tile-0.8.2/doc/html/index.html +25 -0
  69. data/pkgs/tile-0.8.2/doc/html/keyword-index.html +228 -0
  70. data/pkgs/tile-0.8.2/doc/html/label.html +133 -0
  71. data/pkgs/tile-0.8.2/doc/html/labelframe.html +91 -0
  72. data/pkgs/tile-0.8.2/doc/html/manpage.css +212 -0
  73. data/pkgs/tile-0.8.2/doc/html/menubutton.html +63 -0
  74. data/pkgs/tile-0.8.2/doc/html/notebook.html +280 -0
  75. data/pkgs/tile-0.8.2/doc/html/paned.html +149 -0
  76. data/pkgs/tile-0.8.2/doc/html/progressbar.html +138 -0
  77. data/pkgs/tile-0.8.2/doc/html/radiobutton.html +89 -0
  78. data/pkgs/tile-0.8.2/doc/html/scrollbar.html +221 -0
  79. data/pkgs/tile-0.8.2/doc/html/separator.html +48 -0
  80. data/pkgs/tile-0.8.2/doc/html/sizegrip.html +62 -0
  81. data/pkgs/tile-0.8.2/doc/html/style.html +172 -0
  82. data/pkgs/tile-0.8.2/doc/html/tile-intro.html +164 -0
  83. data/pkgs/tile-0.8.2/doc/html/treeview.html +634 -0
  84. data/pkgs/tile-0.8.2/doc/html/widget.html +342 -0
  85. data/pkgs/tile-0.8.2/doc/image.n +81 -0
  86. data/pkgs/tile-0.8.2/doc/internals.txt +409 -0
  87. data/pkgs/tile-0.8.2/doc/label.n +75 -0
  88. data/pkgs/tile-0.8.2/doc/labelframe.n +64 -0
  89. data/pkgs/tile-0.8.2/doc/man.macros +239 -0
  90. data/pkgs/tile-0.8.2/doc/menubutton.n +41 -0
  91. data/pkgs/tile-0.8.2/doc/notebook.n +188 -0
  92. data/pkgs/tile-0.8.2/doc/paned.n +95 -0
  93. data/pkgs/tile-0.8.2/doc/progressbar.n +79 -0
  94. data/pkgs/tile-0.8.2/doc/radiobutton.n +57 -0
  95. data/pkgs/tile-0.8.2/doc/scrollbar.n +160 -0
  96. data/pkgs/tile-0.8.2/doc/separator.n +30 -0
  97. data/pkgs/tile-0.8.2/doc/sizegrip.n +53 -0
  98. data/pkgs/tile-0.8.2/doc/style.n +119 -0
  99. data/pkgs/tile-0.8.2/doc/tile-intro.n +165 -0
  100. data/pkgs/tile-0.8.2/doc/tmml.options +4 -0
  101. data/pkgs/tile-0.8.2/doc/treeview.n +415 -0
  102. data/pkgs/tile-0.8.2/doc/widget.n +227 -0
  103. data/pkgs/tile-0.8.2/doc/xml/Geometry.tmml +379 -0
  104. data/pkgs/tile-0.8.2/doc/xml/INDEX.MAP +153 -0
  105. data/pkgs/tile-0.8.2/doc/xml/Theme.tmml +63 -0
  106. data/pkgs/tile-0.8.2/doc/xml/button.tmml +134 -0
  107. data/pkgs/tile-0.8.2/doc/xml/checkbutton.tmml +119 -0
  108. data/pkgs/tile-0.8.2/doc/xml/combobox.tmml +184 -0
  109. data/pkgs/tile-0.8.2/doc/xml/dialog.tmml +195 -0
  110. data/pkgs/tile-0.8.2/doc/xml/entry.tmml +630 -0
  111. data/pkgs/tile-0.8.2/doc/xml/frame.tmml +98 -0
  112. data/pkgs/tile-0.8.2/doc/xml/image.tmml +101 -0
  113. data/pkgs/tile-0.8.2/doc/xml/label.tmml +154 -0
  114. data/pkgs/tile-0.8.2/doc/xml/labelframe.tmml +116 -0
  115. data/pkgs/tile-0.8.2/doc/xml/menubutton.tmml +80 -0
  116. data/pkgs/tile-0.8.2/doc/xml/notebook.tmml +306 -0
  117. data/pkgs/tile-0.8.2/doc/xml/paned.tmml +154 -0
  118. data/pkgs/tile-0.8.2/doc/xml/progressbar.tmml +151 -0
  119. data/pkgs/tile-0.8.2/doc/xml/radiobutton.tmml +109 -0
  120. data/pkgs/tile-0.8.2/doc/xml/scrollbar.tmml +233 -0
  121. data/pkgs/tile-0.8.2/doc/xml/separator.tmml +59 -0
  122. data/pkgs/tile-0.8.2/doc/xml/sizegrip.tmml +82 -0
  123. data/pkgs/tile-0.8.2/doc/xml/style.tmml +171 -0
  124. data/pkgs/tile-0.8.2/doc/xml/tile-intro.tmml +192 -0
  125. data/pkgs/tile-0.8.2/doc/xml/treeview.tmml +604 -0
  126. data/pkgs/tile-0.8.2/doc/xml/widget.tmml +372 -0
  127. data/pkgs/tile-0.8.2/entry.o +0 -0
  128. data/pkgs/tile-0.8.2/frame.o +0 -0
  129. data/pkgs/tile-0.8.2/generic/Makefile.in +221 -0
  130. data/pkgs/tile-0.8.2/generic/TODO +493 -0
  131. data/pkgs/tile-0.8.2/generic/altTheme.c +1172 -0
  132. data/pkgs/tile-0.8.2/generic/blink.c +168 -0
  133. data/pkgs/tile-0.8.2/generic/button.c +858 -0
  134. data/pkgs/tile-0.8.2/generic/cache.c +354 -0
  135. data/pkgs/tile-0.8.2/generic/clamTheme.c +974 -0
  136. data/pkgs/tile-0.8.2/generic/classicTheme.c +518 -0
  137. data/pkgs/tile-0.8.2/generic/configure +10334 -0
  138. data/pkgs/tile-0.8.2/generic/configure.in +100 -0
  139. data/pkgs/tile-0.8.2/generic/entry.c +1922 -0
  140. data/pkgs/tile-0.8.2/generic/frame.c +648 -0
  141. data/pkgs/tile-0.8.2/generic/gunk.h +44 -0
  142. data/pkgs/tile-0.8.2/generic/image.c +416 -0
  143. data/pkgs/tile-0.8.2/generic/label.c +663 -0
  144. data/pkgs/tile-0.8.2/generic/layout.c +1215 -0
  145. data/pkgs/tile-0.8.2/generic/manager.c +554 -0
  146. data/pkgs/tile-0.8.2/generic/manager.h +91 -0
  147. data/pkgs/tile-0.8.2/generic/notebook.c +1380 -0
  148. data/pkgs/tile-0.8.2/generic/paned.c +958 -0
  149. data/pkgs/tile-0.8.2/generic/pkgIndex.tcl.in +7 -0
  150. data/pkgs/tile-0.8.2/generic/progress.c +549 -0
  151. data/pkgs/tile-0.8.2/generic/scale.c +526 -0
  152. data/pkgs/tile-0.8.2/generic/scroll.c +253 -0
  153. data/pkgs/tile-0.8.2/generic/scrollbar.c +346 -0
  154. data/pkgs/tile-0.8.2/generic/separator.c +132 -0
  155. data/pkgs/tile-0.8.2/generic/square.c +306 -0
  156. data/pkgs/tile-0.8.2/generic/tagset.c +147 -0
  157. data/pkgs/tile-0.8.2/generic/tile.c +296 -0
  158. data/pkgs/tile-0.8.2/generic/tkElements.c +1280 -0
  159. data/pkgs/tile-0.8.2/generic/tkTheme.c +1708 -0
  160. data/pkgs/tile-0.8.2/generic/tkTheme.h +419 -0
  161. data/pkgs/tile-0.8.2/generic/tkThemeInt.h +45 -0
  162. data/pkgs/tile-0.8.2/generic/tkstate.c +268 -0
  163. data/pkgs/tile-0.8.2/generic/trace.c +145 -0
  164. data/pkgs/tile-0.8.2/generic/track.c +174 -0
  165. data/pkgs/tile-0.8.2/generic/treeview.c +3211 -0
  166. data/pkgs/tile-0.8.2/generic/ttk.decls +154 -0
  167. data/pkgs/tile-0.8.2/generic/ttkDecls.h +340 -0
  168. data/pkgs/tile-0.8.2/generic/ttkStubInit.c +61 -0
  169. data/pkgs/tile-0.8.2/generic/ttkStubLib.c +70 -0
  170. data/pkgs/tile-0.8.2/generic/widget.c +785 -0
  171. data/pkgs/tile-0.8.2/generic/widget.h +263 -0
  172. data/pkgs/tile-0.8.2/image.o +0 -0
  173. data/pkgs/tile-0.8.2/label.o +0 -0
  174. data/pkgs/tile-0.8.2/layout.o +0 -0
  175. data/pkgs/tile-0.8.2/library/altTheme.tcl +101 -0
  176. data/pkgs/tile-0.8.2/library/aquaTheme.tcl +62 -0
  177. data/pkgs/tile-0.8.2/library/button.tcl +85 -0
  178. data/pkgs/tile-0.8.2/library/clamTheme.tcl +139 -0
  179. data/pkgs/tile-0.8.2/library/classicTheme.tcl +108 -0
  180. data/pkgs/tile-0.8.2/library/combobox.tcl +439 -0
  181. data/pkgs/tile-0.8.2/library/cursors.tcl +36 -0
  182. data/pkgs/tile-0.8.2/library/defaults.tcl +118 -0
  183. data/pkgs/tile-0.8.2/library/dialog.tcl +274 -0
  184. data/pkgs/tile-0.8.2/library/entry.tcl +580 -0
  185. data/pkgs/tile-0.8.2/library/fonts.tcl +153 -0
  186. data/pkgs/tile-0.8.2/library/icons.tcl +105 -0
  187. data/pkgs/tile-0.8.2/library/keynav.tcl +192 -0
  188. data/pkgs/tile-0.8.2/library/menubutton.tcl +171 -0
  189. data/pkgs/tile-0.8.2/library/notebook.tcl +193 -0
  190. data/pkgs/tile-0.8.2/library/paned.tcl +87 -0
  191. data/pkgs/tile-0.8.2/library/progress.tcl +51 -0
  192. data/pkgs/tile-0.8.2/library/scale.tcl +54 -0
  193. data/pkgs/tile-0.8.2/library/scrollbar.tcl +125 -0
  194. data/pkgs/tile-0.8.2/library/sizegrip.tcl +77 -0
  195. data/pkgs/tile-0.8.2/library/tile.tcl +211 -0
  196. data/pkgs/tile-0.8.2/library/treeview.tcl +382 -0
  197. data/pkgs/tile-0.8.2/library/utils.tcl +254 -0
  198. data/pkgs/tile-0.8.2/library/winTheme.tcl +77 -0
  199. data/pkgs/tile-0.8.2/library/xpTheme.tcl +63 -0
  200. data/pkgs/tile-0.8.2/libtile0.8.2.so +0 -0
  201. data/pkgs/tile-0.8.2/libttkstub.a +0 -0
  202. data/pkgs/tile-0.8.2/license.terms +24 -0
  203. data/pkgs/tile-0.8.2/macosx/aquaTheme.c +1076 -0
  204. data/pkgs/tile-0.8.2/manager.o +0 -0
  205. data/pkgs/tile-0.8.2/notebook.o +0 -0
  206. data/pkgs/tile-0.8.2/paned.o +0 -0
  207. data/pkgs/tile-0.8.2/pkgIndex.tcl +3 -0
  208. data/pkgs/tile-0.8.2/progress.o +0 -0
  209. data/pkgs/tile-0.8.2/scale.o +0 -0
  210. data/pkgs/tile-0.8.2/scroll.o +0 -0
  211. data/pkgs/tile-0.8.2/scrollbar.o +0 -0
  212. data/pkgs/tile-0.8.2/separator.o +0 -0
  213. data/pkgs/tile-0.8.2/tagset.o +0 -0
  214. data/pkgs/tile-0.8.2/tclconfig/install-sh +119 -0
  215. data/pkgs/tile-0.8.2/tclconfig/tcl.m4 +4069 -0
  216. data/pkgs/tile-0.8.2/tclconfig/teax.m4 +109 -0
  217. data/pkgs/tile-0.8.2/tests/all.tcl +18 -0
  218. data/pkgs/tile-0.8.2/tests/bwidget.test +103 -0
  219. data/pkgs/tile-0.8.2/tests/cbtest.tcl +125 -0
  220. data/pkgs/tile-0.8.2/tests/combobox.test +51 -0
  221. data/pkgs/tile-0.8.2/tests/compound.tcl +92 -0
  222. data/pkgs/tile-0.8.2/tests/entry.test +285 -0
  223. data/pkgs/tile-0.8.2/tests/entrytest.tcl +78 -0
  224. data/pkgs/tile-0.8.2/tests/image.test +94 -0
  225. data/pkgs/tile-0.8.2/tests/labelframe.tcl +41 -0
  226. data/pkgs/tile-0.8.2/tests/labelframe.test +137 -0
  227. data/pkgs/tile-0.8.2/tests/layout.test +33 -0
  228. data/pkgs/tile-0.8.2/tests/misc.test +35 -0
  229. data/pkgs/tile-0.8.2/tests/nbtest.tcl +66 -0
  230. data/pkgs/tile-0.8.2/tests/notebook.test +500 -0
  231. data/pkgs/tile-0.8.2/tests/paned.test +298 -0
  232. data/pkgs/tile-0.8.2/tests/progress.test +92 -0
  233. data/pkgs/tile-0.8.2/tests/pwtest.tcl +90 -0
  234. data/pkgs/tile-0.8.2/tests/sbtest.tcl +79 -0
  235. data/pkgs/tile-0.8.2/tests/scrollbar.test +77 -0
  236. data/pkgs/tile-0.8.2/tests/sgtest.tcl +52 -0
  237. data/pkgs/tile-0.8.2/tests/testutils.tcl +20 -0
  238. data/pkgs/tile-0.8.2/tests/tile.test +674 -0
  239. data/pkgs/tile-0.8.2/tests/treetags.test +78 -0
  240. data/pkgs/tile-0.8.2/tests/treeview.test +563 -0
  241. data/pkgs/tile-0.8.2/tests/tvtest.tcl +332 -0
  242. data/pkgs/tile-0.8.2/tests/validate.test +278 -0
  243. data/pkgs/tile-0.8.2/tile.o +0 -0
  244. data/pkgs/tile-0.8.2/tkElements.o +0 -0
  245. data/pkgs/tile-0.8.2/tkTheme.o +0 -0
  246. data/pkgs/tile-0.8.2/tkstate.o +0 -0
  247. data/pkgs/tile-0.8.2/tools/genStubs.tcl +861 -0
  248. data/pkgs/tile-0.8.2/trace.o +0 -0
  249. data/pkgs/tile-0.8.2/track.o +0 -0
  250. data/pkgs/tile-0.8.2/treeview.o +0 -0
  251. data/pkgs/tile-0.8.2/ttkStubInit.o +0 -0
  252. data/pkgs/tile-0.8.2/ttkStubLib.o +0 -0
  253. data/pkgs/tile-0.8.2/widget.o +0 -0
  254. data/pkgs/tile-0.8.2/win/Tile.dsp +261 -0
  255. data/pkgs/tile-0.8.2/win/makefile.vc +527 -0
  256. data/pkgs/tile-0.8.2/win/monitor.c +164 -0
  257. data/pkgs/tile-0.8.2/win/nmakehlp.c +483 -0
  258. data/pkgs/tile-0.8.2/win/rules.vc +512 -0
  259. data/pkgs/tile-0.8.2/win/tile.rc +40 -0
  260. data/pkgs/tile-0.8.2/win/winTheme.c +734 -0
  261. data/pkgs/tile-0.8.2/win/xpTheme.c +1029 -0
  262. data/spec/app_spec.rb +48 -0
  263. data/spec/customer_spec.rb +31 -0
  264. data/spec/fixtures/graph.expectation +18 -0
  265. data/spec/payment_spec.rb +19 -0
  266. data/spec/pratt_spec.rb +148 -0
  267. data/spec/project_spec.rb +163 -0
  268. data/spec/rcov.opts +0 -0
  269. data/spec/spec.opts +1 -0
  270. data/spec/spec_helper.rb +21 -0
  271. data/spec/whence_spec.rb +54 -0
  272. data/tasks/pratt.rb +84 -0
  273. data/templates/model.eruby +12 -0
  274. data/templates/spec.eruby +8 -0
  275. data/views/env.rb +22 -0
  276. data/views/graph.eruby +20 -0
  277. data/views/invoice.eruby +148 -0
  278. data/views/main.rb +92 -0
  279. data/views/pid.eruby +3 -0
  280. data/views/pop.rb +94 -0
  281. data/views/pop2.rb +75 -0
  282. data/views/raw.eruby +11 -0
  283. metadata +390 -0
@@ -0,0 +1,18 @@
1
+ <html>
2
+ <head>
3
+ <title>Tile package reference: Index</title><link rel="stylesheet" href="manpage.css"><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: category-index.xsl,v $ $Revision: 1.5 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <h1 class="title" align="center">Tile package reference: Index</h1><p class="navaid" align="center">
7
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
8
+ </p><hr class="navsep"><div class="navbar">
9
+ <a href="#cat_cmd">Tcl commands</a> � <a href="#cat_fun">C functions</a> � <a href="#cat_type">C language Types</a> � <a href="#cat_misc">Miscellaneous</a> � <a href="#cat_widget">Tk Widgets</a> � <a href="#cat_stdopt">Standard widget options</a> � </div>
10
+ </div><div class="body">
11
+ <h2><a name="cat_cmd">Tcl commands</a></h2><a href="combobox.html">ttk::combobox</a> � <a href="dialog.html">ttk::dialog</a> � <a href="notebook.html">ttk::notebook</a> � <a href="paned.html">ttk::panedwindow</a> � <a href="progressbar.html">ttk::progressbar</a> � <a href="separator.html">ttk::separator</a> � <a href="sizegrip.html">ttk::sizegrip</a> � <a href="style.html">ttk::style</a> � <a href="treeview.html">ttk::treeview</a> � <a href="image.html">ttk_image</a><h2><a name="cat_fun">C functions</a></h2><a href="Geometry.html">Ttk_AddPadding</a> � <a href="Geometry.html">Ttk_BoxContains</a> � <a href="Theme.html">Ttk_CreateTheme</a> � <a href="Geometry.html">Ttk_ExpandBox</a> � <a href="Geometry.html">Ttk_GetBorderFromObj</a> � <a href="Theme.html">Ttk_GetCurrentTheme</a> � <a href="Theme.html">Ttk_GetDefaultTheme</a> � <a href="Geometry.html">Ttk_GetPaddingFromObj</a> � <a href="Geometry.html">Ttk_GetStickyFromObj</a> � <a href="Theme.html">Ttk_GetTheme</a> � <a href="Geometry.html">Ttk_MakeBox</a> � <a href="Geometry.html">Ttk_MakePadding</a> � <a href="Geometry.html">Ttk_PackBox</a> � <a href="Geometry.html">Ttk_PadBox</a> � <a href="Geometry.html">Ttk_PlaceBox</a> � <a href="Geometry.html">Ttk_RelievePadding</a> � <a href="Geometry.html">Ttk_StickBox</a> � <a href="Geometry.html">Ttk_UniformPadding</a><h2><a name="cat_type">C language Types</a></h2><a href="Geometry.html#type_Ttk_Box">Ttk_Box</a> � <a href="Geometry.html#type_Ttk_Padding">Ttk_Padding</a><h2><a name="cat_misc">Miscellaneous</a></h2><a href="tile-intro.html">tile_intro</a><h2><a name="cat_widget">Tk Widgets</a></h2><a href="button.html">ttk::button</a> � <a href="checkbutton.html">ttk::checkbutton</a> � <a href="entry.html">ttk::entry</a> � <a href="frame.html">ttk::frame</a> � <a href="label.html">ttk::label</a> � <a href="labelframe.html">ttk::labelframe</a> � <a href="menubutton.html">ttk::menubutton</a> � <a href="radiobutton.html">ttk::radiobutton</a> � <a href="scrollbar.html">ttk::scrollbar</a><h2><a name="cat_stdopt">Standard widget options</a></h2><a href="widget.html#stdopt_-class">-class</a> � <a href="widget.html#stdopt_-compound">-compound</a> � <a href="widget.html#stdopt_-cursor">-cursor</a> � <a href="widget.html#stdopt_-image">-image</a> � <a href="widget.html#stdopt_-state">-state</a> � <a href="widget.html#stdopt_-style">-style</a> � <a href="widget.html#stdopt_-takefocus">-takefocus</a> � <a href="widget.html#stdopt_-text">-text</a> � <a href="widget.html#stdopt_-textvariable">-textvariable</a> � <a href="widget.html#stdopt_-underline">-underline</a> � <a href="widget.html#stdopt_-width">-width</a> � <a href="widget.html#stdopt_-xscrollcommand">-xscrollcommand</a> � <a href="widget.html#stdopt_-yscrollcommand">-yscrollcommand</a> � <a href="widget.html">widget</a>
12
+ </div><div class="footer">
13
+ <hr class="navsep"><div class="navbar" align="center">
14
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
15
+ </div>
16
+ </div>
17
+ </body>
18
+ </html>
@@ -0,0 +1,94 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: checkbutton</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8221fd8">NAME</a> � <a href="#SECTid8222050">SYNOPSIS</a> � <a href="#SECTid8222118">DESCRIPTION</a> � <a href="#SECTid82221b8">STANDARD OPTIONS</a> � <a href="#SECTid82223e8">OPTIONS</a> � <a href="#SECTid8222820">WIDGET COMMAND</a> � <a href="#SECTid8222af0">WIDGET STATES</a> � <a href="#SECTid8222c80">SEE ALSO</a> � <a href="#SECTid8222d20">KEYWORDS</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8221fd8">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::checkbutton - </b><br>On/off widget</p>
15
+ <h2><a name="SECTid8222050">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>ttk::checkbutton</b> <i class="m">pathName</i> ?<i class="m">options</i>?
17
+ </pre>
18
+ <h2><a name="SECTid8222118">DESCRIPTION</a></h2><p>A <b>checkbutton</b> widget is used to show or change a setting.
19
+ It has two states, selected and deselected.
20
+ The state of the checkbutton may be linked to a Tcl variable.
21
+ </p>
22
+ <h2><a name="SECTid82221b8">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%">
23
+ <tr>
24
+ <td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-compound">-compound</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-image">-image</a></td>
25
+ </tr><tr>
26
+ <td width="25%"><a href="widget.html#stdopt_-state">-state</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td><td width="25%"><a href="widget.html#stdopt_-text">-text</a></td>
27
+ </tr><tr>
28
+ <td width="25%"><a href="widget.html#stdopt_-textvariable">-textvariable</a></td><td width="25%"><a href="widget.html#stdopt_-underline">-underline</a></td><td width="25%"><a href="widget.html#stdopt_-width">-width</a></td>
29
+ </tr>
30
+ </table></div>
31
+ <h2><a name="SECTid82223e8">OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
32
+ <thead><tr class="heading">
33
+ <th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
34
+ </tr></thead><tr class="syntax">
35
+ <td width="20%" align="left"><a name="option_-command">-command</a></td><td width="40%" align="left">command</td><td width="40%" align="left">Command</td>
36
+ </tr><tr class="desc">
37
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A Tcl script to execute whenever the widget is invoked.
38
+ </td>
39
+ </tr><tr class="syntax">
40
+ <td width="20%" align="left"><a name="option_-offvalue">-offvalue</a></td><td width="40%" align="left">offValue</td><td width="40%" align="left">OffValue</td>
41
+ </tr><tr class="desc">
42
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The value to store in the associated <i>-variable</i>
43
+ when the widget is deselected. Defaults to <b>0</b>.
44
+ </td>
45
+ </tr><tr class="syntax">
46
+ <td width="20%" align="left"><a name="option_-onvalue">-onvalue</a></td><td width="40%" align="left">onValue</td><td width="40%" align="left">OnValue</td>
47
+ </tr><tr class="desc">
48
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The value to store in the associated <i>-variable</i>
49
+ when the widget is selected. Defaults to <b>1</b>.
50
+ </td>
51
+ </tr><tr class="syntax">
52
+ <td width="20%" align="left"><a name="option_-variable">-variable</a></td><td width="40%" align="left">variable</td><td width="40%" align="left">Variable</td>
53
+ </tr><tr class="desc">
54
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The name of a global variable whose value is linked to the widget.
55
+ Defaults to the widget pathname if not specified.
56
+ </td>
57
+ </tr>
58
+ </table></div>
59
+ <h2><a name="SECTid8222820">WIDGET COMMAND</a></h2><p>In addition to the standard
60
+ <b>cget</b>, <b>configure</b>, <b>instate</b>, and <b>state</b>
61
+ commands, checkbuttons support the following additional
62
+ widget commands:
63
+ </p><dl>
64
+
65
+ <dt>
66
+ <i class="m">pathname</i> invoke</dt>
67
+ <dd>Toggles between the selected and deselected states
68
+ and evaluates the associated <i>-command</i>.
69
+ If the widget is currently selected, sets the <i>-variable</i>
70
+ to the <i>-offvalue</i> and deselects the widget;
71
+ otherwise, sets the <i>-variable</i> to the <i>-onvalue</i>
72
+ Returns the result of the <i>-command</i>.
73
+ </dd>
74
+
75
+ </dl>
76
+ <h2><a name="SECTid8222af0">WIDGET STATES</a></h2><p>The widget does not respond to user input if the <b>disabled</b> state is set.
77
+ The widget sets the <b>selected</b> state whenever
78
+ the linked <b>-variable</b> is set to the widget's <b>-onvalue</b>,
79
+ and clears it otherwise.
80
+ The widget sets the <b>alternate</b> state whenever the
81
+ linked <b>-variable</b> is unset.
82
+ (The <b>alternate</b> state may be used to indicate a ``tri-state''
83
+ or ``indeterminate'' selection.)
84
+ </p>
85
+ <h2><a name="SECTid8222c80">SEE ALSO</a></h2><p class="seealso">widget(n), keynav(n), <a href="radiobutton.html">radiobutton(n)</a>
86
+ </p>
87
+ <h2><a name="SECTid8222d20">KEYWORDS</a></h2><p class="keywords">
88
+ <a class="keyword" href="keyword-index.html#KW-widget">widget</a>, <a class="keyword" href="keyword-index.html#KW-button">button</a>, <a class="keyword" href="keyword-index.html#KW-toggle">toggle</a>, <a class="keyword" href="keyword-index.html#KW-check">check</a>, <a class="keyword" href="keyword-index.html#KW-option">option</a>
89
+ </p>
90
+ </div><hr class="navsep"><div class="navbar" align="center">
91
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
92
+ </div>
93
+ </body>
94
+ </html>
@@ -0,0 +1,164 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: combobox</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8221fd8">NAME</a> � <a href="#SECTid8222050">SYNOPSIS</a> � <a href="#SECTid8222118">STANDARD OPTIONS</a> � <a href="#SECTid8222230">OPTIONS</a> � <a href="#SECTid8222ac8">DESCRIPTION</a> � <a href="#SECTid8222b40">WIDGET COMMAND</a> � <a href="#SECTid8223748">VIRTUAL EVENTS</a> � <a href="#SECTid82237e8">SEE ALSO</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8221fd8">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::combobox - </b><br>text field with popdown selection list</p>
15
+ <h2><a name="SECTid8222050">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>ttk::combobox</b> <i class="m">pathName</i> ?<i class="m">options</i>?
17
+ </pre>
18
+ <h2><a name="SECTid8222118">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%"><tr>
19
+ <td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td>
20
+ </tr></table></div>
21
+ <h2><a name="SECTid8222230">OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
22
+ <thead><tr class="heading">
23
+ <th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
24
+ </tr></thead><tr class="syntax">
25
+ <td width="20%" align="left"><a name="option_-exportselection">-exportselection</a></td><td width="40%" align="left">exportSelection</td><td width="40%" align="left">ExportSelection</td>
26
+ </tr><tr class="desc">
27
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Boolean value.
28
+ If set, the widget selection is linked to the X selection.
29
+ </td>
30
+ </tr><tr class="syntax">
31
+ <td width="20%" align="left"><a name="option_-justify">-justify</a></td><td width="40%" align="left">justify</td><td width="40%" align="left">Justify</td>
32
+ </tr><tr class="desc">
33
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies how the text is aligned within the widget.
34
+ One of <b>left</b>, <b>center</b>, or <b>right</b>.
35
+ </td>
36
+ </tr><tr class="syntax">
37
+ <td width="20%" align="left"><a name="option_-height">-height</a></td><td width="40%" align="left">height</td><td width="40%" align="left">Height</td>
38
+ </tr><tr class="desc">
39
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies the height of the pop-down listbox, in rows.
40
+ </td>
41
+ </tr><tr class="syntax">
42
+ <td width="20%" align="left"><a name="option_-postcommand">-postcommand</a></td><td width="40%" align="left">postCommand</td><td width="40%" align="left">PostCommand</td>
43
+ </tr><tr class="desc">
44
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A Tcl script to evaluate immediately before displaying the listbox.
45
+ The <b>-postcommand</b> script may specify the <b>-values</b> to display.
46
+ </td>
47
+ </tr><tr class="syntax">
48
+ <td width="20%" align="left"><a name="option_-state">-state</a></td><td width="40%" align="left">state</td><td width="40%" align="left">State</td>
49
+ </tr><tr class="desc">
50
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">One of <b>normal</b>, <b>readonly</b>, or <b>disabled</b>.
51
+ In the <b>readonly</b> state,
52
+ the value may not be edited directly, and
53
+ the user can only select one of the <b>-values</b> from the
54
+ dropdown list.
55
+ In the <b>normal</b> state,
56
+ the text field is directly editable.
57
+ In the <b>disabled</b> state, no interaction is possible.
58
+ </td>
59
+ </tr><tr class="syntax">
60
+ <td width="20%" align="left"><a name="option_-textvariable">-textvariable</a></td><td width="40%" align="left">textVariable</td><td width="40%" align="left">TextVariable</td>
61
+ </tr><tr class="desc">
62
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies the name of a variable whose value is linked
63
+ to the widget value.
64
+ Whenever the variable changes value the widget value is updated,
65
+ and vice versa.
66
+ </td>
67
+ </tr><tr class="syntax">
68
+ <td width="20%" align="left"><a name="option_-values">-values</a></td><td width="40%" align="left">values</td><td width="40%" align="left">Values</td>
69
+ </tr><tr class="desc">
70
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies the list of values to display in the drop-down listbox.
71
+ </td>
72
+ </tr><tr class="syntax">
73
+ <td width="20%" align="left"><a name="option_-width">-width</a></td><td width="40%" align="left">width</td><td width="40%" align="left">Width</td>
74
+ </tr><tr class="desc">
75
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies an integer value indicating the desired width of the entry window,
76
+ in average-size characters of the widget's font.
77
+ </td>
78
+ </tr>
79
+ </table></div>
80
+ <h2><a name="SECTid8222ac8">DESCRIPTION</a></h2><p>A combobox combines a text field with a pop-down list of values;
81
+ the user may select the value of the text field from among the
82
+ values in the list.
83
+ </p>
84
+ <h2><a name="SECTid8222b40">WIDGET COMMAND</a></h2><dl>
85
+
86
+ <dt>
87
+ <i class="m">pathName</i> <b>cget</b> <i class="m">option</i>
88
+ </dt>
89
+ <dd>Returns the current value of the specified <i>option</i>.
90
+ See <i>widget(n)</i>.
91
+ </dd>
92
+
93
+
94
+ <dt>
95
+ <i class="m">pathName</i> <b>configure</b> ?<i class="m">option</i>? ?<i class="m">value option value ...</i>?</dt>
96
+ <dd>Modify or query widget options.
97
+ See <i>widget(n)</i>.
98
+ </dd>
99
+
100
+
101
+ <dt>
102
+ <i class="m">pathName</i> <b>current</b> ?<i class="m">newIndex</i>?</dt>
103
+ <dd>If <i>newIndex</i> is supplied, sets the combobox value
104
+ to the element at position <i>newIndex</i> in the list of <b>-values</b>.
105
+ Otherwise, returns the index of the current value in the list of <b>-values</b>
106
+ or <b>-1</b> if the current value does not appear in the list.
107
+ </dd>
108
+
109
+
110
+ <dt>
111
+ <i class="m">pathName</i> <b>get</b>
112
+ </dt>
113
+ <dd>Returns the current value of the combobox.
114
+ </dd>
115
+
116
+
117
+ <dt>
118
+ <i class="m">pathName</i> <b>identify</b> <i class="m">x y</i>
119
+ </dt>
120
+ <dd>Returns the name of the element at position <i>x</i>, <i>y</i>,
121
+ or the empty string if the coordinates are outside the window.
122
+ </dd>
123
+
124
+
125
+ <dt>
126
+ <i class="m">pathName</i> <b>instate</b> <i class="m">statespec</i> ?<i class="m">script</i>?</dt>
127
+ <dd>Test the widget state.
128
+ See <i>widget(n)</i>.
129
+ </dd>
130
+
131
+
132
+ <dt>
133
+ <i class="m">pathName</i> <b>set</b> <i class="m">value</i>
134
+ </dt>
135
+ <dd>Sets the value of the combobox to <i>value</i>.
136
+ </dd>
137
+
138
+
139
+ <dt>
140
+ <i class="m">pathName</i> <b>state</b> ?<i class="m">stateSpec</i>?</dt>
141
+ <dd>Modify or query the widget state.
142
+ See <i>widget(n)</i>.
143
+ </dd>
144
+
145
+ </dl><p>The combobox widget also supports the following <i>entry</i>
146
+ widget commands (see <i>entry(n)</i> for details):
147
+ </p><div class="menu"><table class="menu" width="100%">
148
+ <tr>
149
+ <td width="33%">bbox</td><td width="33%">delete</td><td width="33%">icursor</td>
150
+ </tr><tr>
151
+ <td width="33%">index</td><td width="33%">insert</td><td width="33%">selection</td>
152
+ </tr><tr><td width="33%">xview</td></tr>
153
+ </table></div>
154
+ <h2><a name="SECTid8223748">VIRTUAL EVENTS</a></h2><p>The combobox widget generates a <b>&lt;&lt;ComboboxSelected&gt;&gt;</b> virtual event
155
+ when the user selects an element from the list of values.
156
+ This event is generated after the listbox is unposted.
157
+ </p>
158
+ <h2><a name="SECTid82237e8">SEE ALSO</a></h2><p class="seealso">widget(n), <a href="entry.html">entry(n)</a>
159
+ </p>
160
+ </div><hr class="navsep"><div class="navbar" align="center">
161
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
162
+ </div>
163
+ </body>
164
+ </html>
@@ -0,0 +1,97 @@
1
+
2
+ converting.txt,v 1.5 2004/12/28 21:00:35 jenglish Exp
3
+
4
+ [14 Feb 2004]
5
+
6
+ ~ Converting existing applications to use the Tile widgets
7
+
8
+ Note that the Tile widget set is not a 100%-compatible drop-in
9
+ replacement for the standard Tk widgets. The main difference
10
+ is that all the state-dependent options like -activebackground,
11
+ -disabledforeground, and -overrelief are not present, replaced by the
12
+ general-purpose style mechanism. Many appearance-related options
13
+ like -borderwidth and -background are also missing.
14
+
15
+ Applications that rely on the option database for customization
16
+ will be easier to adapt than those that set resources on
17
+ widgets directly. In the 0.3 release all options supported
18
+ in Tk 8.4 are present, so they can be set and queried without
19
+ raising an error, but their values will be ignored.
20
+
21
+ If you're feeling adventurous, you can try:
22
+
23
+ namespace import ttk::*
24
+
25
+ in your application's namespace(s) to locally override all
26
+ the widget construction commands (button, scrollbar, etc).
27
+ Or, you can switch on a widget-by-widget basis by using
28
+ "ttk::button" for "button", "ttk::scrollbar" for "scrollbar", and
29
+ so forth.
30
+
31
+ IMPORTANT NOTE: Previous versions of this document suggested
32
+ using 'namespace import -force ttk::*' at global scope, for the
33
+ really adventurous. This is now considered a Really Bad Idea:
34
+ it will cause many things to break, and will cause more things
35
+ to break in the future. So don't do that anymore.
36
+
37
+
38
+ Other differences:
39
+
40
+ The -state option has also been replaced by "state"
41
+ and "instate" widget commands (see widget.n). Some
42
+ widgets do have a "-state" option for compatibility
43
+ purposes, although only "-state normal" and "-state disabled"
44
+ are supported, and it's a "write-only" option -- if
45
+ you disable a widget with [$w state disabled], that
46
+ won't be reflected by [$w cget -state].
47
+
48
+ The -padx and -pady options have been merged into a
49
+ single "-padding" option, which may be a list of
50
+ up to four values specifying padding on the left, top,
51
+ right, and bottom.
52
+
53
+ Some widget subcommands are not implemented yet,
54
+ and others (like [scrollbar identify]) work differently.
55
+
56
+ The -indicatoron option for checkbuttons and radiobuttons
57
+ is no longer supported. For toolbar-style buttons,
58
+ use "-style Toolbar" instead. (See demos/toolbutton.tcl
59
+ for an explanation.)
60
+
61
+ The tile [menubutton] widget is *not* designed to be used
62
+ inside a menubar by default, only as a standalone widget.
63
+ If you're still using menubuttons in a frame to build menubars,
64
+ switch to Tk [menu]s, or use a custom style.
65
+
66
+ The -container option for frames is gone. This will eventually
67
+ be replaced with a special-purpose container widget,
68
+ which uses the XEmbed protocol. Similarly, the -in option
69
+ on toplevels will be replaced with a special-purpose "embeddable"
70
+ widget.
71
+
72
+ The -colormap and -visual frame options are gone. (If anyone
73
+ really needs these, please let me know. It will make *everything*
74
+ a lot simpler if these can be eliminated altogether.)
75
+
76
+ The -anchor option for checkbuttons, radiobuttons, and buttons
77
+ is ignored. Again, if anyone has a use for anything other than
78
+ "-anchor w" for checkbuttons or "-anchor center" for buttons,
79
+ please let me know.
80
+
81
+ There are probably some important widget options and commands
82
+ still unimplemented. (Known cases: select, deselect, and toggle
83
+ for checkbuttons, a few others).
84
+
85
+ For buttons, labels, etc., the '-width' option always specifies
86
+ the width in characters to allocate for the text string.
87
+ (In Tk, it's either a width in characters, or in screen units,
88
+ depending on the value of '-compound', for the entire button.)
89
+ Additionally: negative widths specify a minimum size on all
90
+ platforms, not just Windows.
91
+
92
+ Two new values for the "-compound" option are available:
93
+ "text" (display text only) and "image" (display image only).
94
+ This is useful for configuring toolbars.
95
+
96
+ The -bitmap option is not supported. Use -image instead.
97
+
@@ -0,0 +1,159 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="manpage.css"><title>Tile package reference: dialog</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
4
+ </head><body>
5
+ <div class="header">
6
+ <div class="navbar" align="center">
7
+ <a href="#SECTid8221fd8">NAME</a> � <a href="#SECTid8222050">SYNOPSIS</a> � <a href="#SECTid82221e0">DESCRIPTION</a> � <a href="#SECTid82222a8">OPTIONS</a> � <a href="#SECTid8222cf8">WIDGET COMMANDS</a> � <a href="#SECTid8222e38">PREDEFINED DIALOG TYPES</a> � <a href="#SECTid8222f78">STOCK BUTTONS</a> � <a href="#SECTid8223108">EXAMPLE</a> � <a href="#SECTid8223180">SEE ALSO</a>
8
+ </div><hr class="navsep">
9
+ </div><div class="body">
10
+
11
+
12
+
13
+ <h2><a name="SECTid8221fd8">NAME</a></h2><p class="namesection">
14
+ <b class="names">ttk::dialog - </b><br>create a dialog box</p>
15
+ <h2><a name="SECTid8222050">SYNOPSIS</a></h2><pre class="syntax">
16
+ <b>package require ttk::dialog</b> ?<i class="m">0.8</i>?
17
+
18
+ <b>ttk::dialog</b> <i class="m">pathname</i> ?<i class="m">options...</i>?
19
+ <b>ttk::dialog::define</b> <i class="m">dialogType</i> ?<i class="m">options...</i>?
20
+ </pre>
21
+ <h2><a name="SECTid82221e0">DESCRIPTION</a></h2><p>A dialog box is a transient top-level window
22
+ containing an icon, a short message, an optional, longer, detail message,
23
+ and a row of command buttons.
24
+ When the user presses any of the buttons,
25
+ a callback function is invoked
26
+ and then the dialog is destroyed.
27
+ </p><p>Additional widgets may be added in the dialog <i>client frame</i>.
28
+ </p>
29
+ <h2><a name="SECTid82222a8">OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
30
+ <thead><tr class="heading">
31
+ <th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
32
+ </tr></thead><tr class="syntax">
33
+ <td width="20%" align="left"><a name="option_-title">-title</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
34
+ </tr><tr class="desc">
35
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies a string to use as the window manager title.
36
+ </td>
37
+ </tr><tr class="syntax">
38
+ <td width="20%" align="left"><a name="option_-message">-message</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
39
+ </tr><tr class="desc">
40
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies the message to display in this dialog.
41
+ </td>
42
+ </tr><tr class="syntax">
43
+ <td width="20%" align="left"><a name="option_-detail">-detail</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
44
+ </tr><tr class="desc">
45
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies a longer auxiliary message.
46
+ </td>
47
+ </tr><tr class="syntax">
48
+ <td width="20%" align="left"><a name="option_-command">-command</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
49
+ </tr><tr class="desc">
50
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies a command prefix to be invoked when the user presses
51
+ one of the command buttons.
52
+ The symbolic name of the button is passed as an additional argument
53
+ to the command.
54
+ The dialog is dismissed after invoking the command.
55
+ </td>
56
+ </tr><tr class="syntax">
57
+ <td width="20%" align="left"><a name="option_-parent">-parent</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
58
+ </tr><tr class="desc">
59
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies a toplevel window for which the dialog is transient.
60
+ If omitted, the default is the nearest ancestor toplevel.
61
+ If set to the empty string, the dialog will not be a transient window.
62
+ </td>
63
+ </tr><tr class="syntax">
64
+ <td width="20%" align="left"><a name="option_-type">-type</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
65
+ </tr><tr class="desc">
66
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies a built-in or user-defined dialog type.
67
+ See <a href="#SECTid8222e38">PREDEFINED DIALOG TYPES</a>, below.
68
+ </td>
69
+ </tr><tr class="syntax">
70
+ <td width="20%" align="left"><a name="option_-icon">-icon</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
71
+ </tr><tr class="desc">
72
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies one of the stock dialog icons,
73
+ <b>info</b>, <b>question</b>, <b>warning</b>, <b>error</b>,
74
+ <b>auth</b>, or <b>busy</b>.
75
+ If set to the empty string (the default), no icon is displayed.
76
+ </td>
77
+ </tr><tr class="syntax">
78
+ <td width="20%" align="left"><a name="option_-buttons">-buttons</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
79
+ </tr><tr class="desc">
80
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A list of symbolic button names.
81
+ </td>
82
+ </tr><tr class="syntax">
83
+ <td width="20%" align="left"><a name="option_-labels">-labels</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
84
+ </tr><tr class="desc">
85
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A dictionary mapping symbolic button names to textual labels.
86
+ May be omitted if all the buttons are predefined.
87
+ </td>
88
+ </tr><tr class="syntax">
89
+ <td width="20%" align="left"><a name="option_-default">-default</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
90
+ </tr><tr class="desc">
91
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The symbolic name of the default button.
92
+ </td>
93
+ </tr><tr class="syntax">
94
+ <td width="20%" align="left"><a name="option_-cancel">-cancel</a></td><td width="40%" align="left">n/a</td><td width="40%" align="left">n/a</td>
95
+ </tr><tr class="desc">
96
+ <td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The symbolic name of the "cancel" button.
97
+ The cancel button is invoked if the user presses the Escape key
98
+ and when the dialog is closed from the window manager.
99
+ If <b>-cancel</b> is not specified,
100
+ the dialog ignores window manager close commands (WM_DELETE_WINDOW).
101
+ </td>
102
+ </tr>
103
+ </table></div>
104
+ <h2><a name="SECTid8222cf8">WIDGET COMMANDS</a></h2><dl>
105
+
106
+ <dt>
107
+ <b>ttk::dialog::clientframe</b> <i class="m">dlg</i>
108
+ </dt>
109
+ <dd>Returns the widget path of the client frame.
110
+ Other widgets may be added to the client frame.
111
+ The client frame appears between the detail message and the command buttons.
112
+ </dd>
113
+
114
+ </dl>
115
+ <h2><a name="SECTid8222e38">PREDEFINED DIALOG TYPES</a></h2><p>The <b>-type</b> option, if present, specifies default values
116
+ for other options. <b>ttk::dialog::define</b> <i>type options...</i>
117
+ specifies a new stock dialog <i>type</i>.
118
+ The following stock dialog types are predefined:
119
+ </p><pre class="example">
120
+ ttk::dialog::define ok \
121
+ -icon info -buttons {ok} -default ok
122
+ ttk::dialog::define okcancel \
123
+ -icon info -buttons {ok cancel} -default ok -cancel cancel
124
+ ttk::dialog::define yesno \
125
+ -icon question -buttons {yes no}
126
+ ttk::dialog::define yesnocancel \
127
+ -icon question -buttons {yes no cancel} -cancel cancel
128
+ ttk::dialog::define retrycancel \
129
+ -icon question -buttons {retry cancel} -cancel cancel
130
+ </pre>
131
+ <h2><a name="SECTid8222f78">STOCK BUTTONS</a></h2><p>The following ``stock'' symbolic button names have predefined labels:
132
+ <b>yes</b>, <b>no</b>, <b>ok</b>, <b>cancel</b>, and <b>retry</b>.
133
+ </p><p>It is not necessary to list these in the <b>-labels</b> dictionary.
134
+ </p>
135
+ <h2><a name="SECTid8223108">EXAMPLE</a></h2><pre class="example">
136
+ proc saveFileComplete {button} {
137
+ switch -- $button {
138
+ yes { # save file ... }
139
+ no { exit }
140
+ cancel { # no-op }
141
+ }
142
+ }
143
+
144
+ ttk::dialog .saveFileDialog \
145
+ -title "Save file?" \
146
+ -icon question \
147
+ -message "Save file before closing?" \
148
+ -detail "If you do not save the file, your work will be lost" \
149
+ -buttons [list yes no cancel] \
150
+ -labels [list yes "Save file" no "Don't save"] \
151
+ -command saveFileComplete \
152
+ ;
153
+ </pre>
154
+ <h2><a name="SECTid8223180">SEE ALSO</a></h2><p class="seealso">tk_messageBox(n), wm(n), toplevel(n)</p>
155
+ </div><hr class="navsep"><div class="navbar" align="center">
156
+ <a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
157
+ </div>
158
+ </body>
159
+ </html>