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.
- data/.exrc +61 -0
- data/.gitignore +4 -0
- data/History.txt +6 -0
- data/Manifest.txt +46 -0
- data/Pratt.gemspec +351 -0
- data/README.txt +66 -0
- data/Rakefile +85 -0
- data/TODO +54 -0
- data/VERSION +1 -0
- data/bin/pratt.rb +13 -0
- data/config.rb +34 -0
- data/lib/pratt.rb +527 -0
- data/lib/pratt/array.rb +11 -0
- data/lib/pratt/string.rb +18 -0
- data/models/app.rb +40 -0
- data/models/customer.rb +24 -0
- data/models/payment.rb +22 -0
- data/models/pratt.rb +19 -0
- data/models/project.rb +82 -0
- data/models/whence.rb +70 -0
- data/pkgs/tile-0.8.2.tar.gz +0 -0
- data/pkgs/tile-0.8.2/ANNOUNCE.txt +95 -0
- data/pkgs/tile-0.8.2/ChangeLog +4651 -0
- data/pkgs/tile-0.8.2/Makefile +250 -0
- data/pkgs/tile-0.8.2/Makefile.in +250 -0
- data/pkgs/tile-0.8.2/README.txt +86 -0
- data/pkgs/tile-0.8.2/aclocal.m4 +2 -0
- data/pkgs/tile-0.8.2/altTheme.o +0 -0
- data/pkgs/tile-0.8.2/blink.o +0 -0
- data/pkgs/tile-0.8.2/button.o +0 -0
- data/pkgs/tile-0.8.2/cache.o +0 -0
- data/pkgs/tile-0.8.2/clamTheme.o +0 -0
- data/pkgs/tile-0.8.2/classicTheme.o +0 -0
- data/pkgs/tile-0.8.2/config.log +1330 -0
- data/pkgs/tile-0.8.2/config.status +795 -0
- data/pkgs/tile-0.8.2/configure +15248 -0
- data/pkgs/tile-0.8.2/configure.in +89 -0
- data/pkgs/tile-0.8.2/demos/autocomplete.tcl +59 -0
- data/pkgs/tile-0.8.2/demos/demo.tcl +870 -0
- data/pkgs/tile-0.8.2/demos/dirbrowser.tcl +167 -0
- data/pkgs/tile-0.8.2/demos/dlgtest.tcl +97 -0
- data/pkgs/tile-0.8.2/demos/iconlib.tcl +110 -0
- data/pkgs/tile-0.8.2/demos/repeater.tcl +117 -0
- data/pkgs/tile-0.8.2/demos/toolbutton.tcl +101 -0
- data/pkgs/tile-0.8.2/doc/Geometry.3 +230 -0
- data/pkgs/tile-0.8.2/doc/INDEX.MAP +153 -0
- data/pkgs/tile-0.8.2/doc/Makefile +36 -0
- data/pkgs/tile-0.8.2/doc/TILE.XML +45 -0
- data/pkgs/tile-0.8.2/doc/Theme.3 +34 -0
- data/pkgs/tile-0.8.2/doc/button.n +75 -0
- data/pkgs/tile-0.8.2/doc/checkbutton.n +61 -0
- data/pkgs/tile-0.8.2/doc/combobox.n +98 -0
- data/pkgs/tile-0.8.2/doc/converting.txt +97 -0
- data/pkgs/tile-0.8.2/doc/dialog.n +122 -0
- data/pkgs/tile-0.8.2/doc/entry.n +438 -0
- data/pkgs/tile-0.8.2/doc/frame.n +43 -0
- data/pkgs/tile-0.8.2/doc/html/Geometry.html +304 -0
- data/pkgs/tile-0.8.2/doc/html/Theme.html +48 -0
- data/pkgs/tile-0.8.2/doc/html/button.html +120 -0
- data/pkgs/tile-0.8.2/doc/html/category-index.html +18 -0
- data/pkgs/tile-0.8.2/doc/html/checkbutton.html +94 -0
- data/pkgs/tile-0.8.2/doc/html/combobox.html +164 -0
- data/pkgs/tile-0.8.2/doc/html/converting.txt +97 -0
- data/pkgs/tile-0.8.2/doc/html/dialog.html +159 -0
- data/pkgs/tile-0.8.2/doc/html/entry.html +613 -0
- data/pkgs/tile-0.8.2/doc/html/frame.html +76 -0
- data/pkgs/tile-0.8.2/doc/html/image.html +100 -0
- data/pkgs/tile-0.8.2/doc/html/index.html +25 -0
- data/pkgs/tile-0.8.2/doc/html/keyword-index.html +228 -0
- data/pkgs/tile-0.8.2/doc/html/label.html +133 -0
- data/pkgs/tile-0.8.2/doc/html/labelframe.html +91 -0
- data/pkgs/tile-0.8.2/doc/html/manpage.css +212 -0
- data/pkgs/tile-0.8.2/doc/html/menubutton.html +63 -0
- data/pkgs/tile-0.8.2/doc/html/notebook.html +280 -0
- data/pkgs/tile-0.8.2/doc/html/paned.html +149 -0
- data/pkgs/tile-0.8.2/doc/html/progressbar.html +138 -0
- data/pkgs/tile-0.8.2/doc/html/radiobutton.html +89 -0
- data/pkgs/tile-0.8.2/doc/html/scrollbar.html +221 -0
- data/pkgs/tile-0.8.2/doc/html/separator.html +48 -0
- data/pkgs/tile-0.8.2/doc/html/sizegrip.html +62 -0
- data/pkgs/tile-0.8.2/doc/html/style.html +172 -0
- data/pkgs/tile-0.8.2/doc/html/tile-intro.html +164 -0
- data/pkgs/tile-0.8.2/doc/html/treeview.html +634 -0
- data/pkgs/tile-0.8.2/doc/html/widget.html +342 -0
- data/pkgs/tile-0.8.2/doc/image.n +81 -0
- data/pkgs/tile-0.8.2/doc/internals.txt +409 -0
- data/pkgs/tile-0.8.2/doc/label.n +75 -0
- data/pkgs/tile-0.8.2/doc/labelframe.n +64 -0
- data/pkgs/tile-0.8.2/doc/man.macros +239 -0
- data/pkgs/tile-0.8.2/doc/menubutton.n +41 -0
- data/pkgs/tile-0.8.2/doc/notebook.n +188 -0
- data/pkgs/tile-0.8.2/doc/paned.n +95 -0
- data/pkgs/tile-0.8.2/doc/progressbar.n +79 -0
- data/pkgs/tile-0.8.2/doc/radiobutton.n +57 -0
- data/pkgs/tile-0.8.2/doc/scrollbar.n +160 -0
- data/pkgs/tile-0.8.2/doc/separator.n +30 -0
- data/pkgs/tile-0.8.2/doc/sizegrip.n +53 -0
- data/pkgs/tile-0.8.2/doc/style.n +119 -0
- data/pkgs/tile-0.8.2/doc/tile-intro.n +165 -0
- data/pkgs/tile-0.8.2/doc/tmml.options +4 -0
- data/pkgs/tile-0.8.2/doc/treeview.n +415 -0
- data/pkgs/tile-0.8.2/doc/widget.n +227 -0
- data/pkgs/tile-0.8.2/doc/xml/Geometry.tmml +379 -0
- data/pkgs/tile-0.8.2/doc/xml/INDEX.MAP +153 -0
- data/pkgs/tile-0.8.2/doc/xml/Theme.tmml +63 -0
- data/pkgs/tile-0.8.2/doc/xml/button.tmml +134 -0
- data/pkgs/tile-0.8.2/doc/xml/checkbutton.tmml +119 -0
- data/pkgs/tile-0.8.2/doc/xml/combobox.tmml +184 -0
- data/pkgs/tile-0.8.2/doc/xml/dialog.tmml +195 -0
- data/pkgs/tile-0.8.2/doc/xml/entry.tmml +630 -0
- data/pkgs/tile-0.8.2/doc/xml/frame.tmml +98 -0
- data/pkgs/tile-0.8.2/doc/xml/image.tmml +101 -0
- data/pkgs/tile-0.8.2/doc/xml/label.tmml +154 -0
- data/pkgs/tile-0.8.2/doc/xml/labelframe.tmml +116 -0
- data/pkgs/tile-0.8.2/doc/xml/menubutton.tmml +80 -0
- data/pkgs/tile-0.8.2/doc/xml/notebook.tmml +306 -0
- data/pkgs/tile-0.8.2/doc/xml/paned.tmml +154 -0
- data/pkgs/tile-0.8.2/doc/xml/progressbar.tmml +151 -0
- data/pkgs/tile-0.8.2/doc/xml/radiobutton.tmml +109 -0
- data/pkgs/tile-0.8.2/doc/xml/scrollbar.tmml +233 -0
- data/pkgs/tile-0.8.2/doc/xml/separator.tmml +59 -0
- data/pkgs/tile-0.8.2/doc/xml/sizegrip.tmml +82 -0
- data/pkgs/tile-0.8.2/doc/xml/style.tmml +171 -0
- data/pkgs/tile-0.8.2/doc/xml/tile-intro.tmml +192 -0
- data/pkgs/tile-0.8.2/doc/xml/treeview.tmml +604 -0
- data/pkgs/tile-0.8.2/doc/xml/widget.tmml +372 -0
- data/pkgs/tile-0.8.2/entry.o +0 -0
- data/pkgs/tile-0.8.2/frame.o +0 -0
- data/pkgs/tile-0.8.2/generic/Makefile.in +221 -0
- data/pkgs/tile-0.8.2/generic/TODO +493 -0
- data/pkgs/tile-0.8.2/generic/altTheme.c +1172 -0
- data/pkgs/tile-0.8.2/generic/blink.c +168 -0
- data/pkgs/tile-0.8.2/generic/button.c +858 -0
- data/pkgs/tile-0.8.2/generic/cache.c +354 -0
- data/pkgs/tile-0.8.2/generic/clamTheme.c +974 -0
- data/pkgs/tile-0.8.2/generic/classicTheme.c +518 -0
- data/pkgs/tile-0.8.2/generic/configure +10334 -0
- data/pkgs/tile-0.8.2/generic/configure.in +100 -0
- data/pkgs/tile-0.8.2/generic/entry.c +1922 -0
- data/pkgs/tile-0.8.2/generic/frame.c +648 -0
- data/pkgs/tile-0.8.2/generic/gunk.h +44 -0
- data/pkgs/tile-0.8.2/generic/image.c +416 -0
- data/pkgs/tile-0.8.2/generic/label.c +663 -0
- data/pkgs/tile-0.8.2/generic/layout.c +1215 -0
- data/pkgs/tile-0.8.2/generic/manager.c +554 -0
- data/pkgs/tile-0.8.2/generic/manager.h +91 -0
- data/pkgs/tile-0.8.2/generic/notebook.c +1380 -0
- data/pkgs/tile-0.8.2/generic/paned.c +958 -0
- data/pkgs/tile-0.8.2/generic/pkgIndex.tcl.in +7 -0
- data/pkgs/tile-0.8.2/generic/progress.c +549 -0
- data/pkgs/tile-0.8.2/generic/scale.c +526 -0
- data/pkgs/tile-0.8.2/generic/scroll.c +253 -0
- data/pkgs/tile-0.8.2/generic/scrollbar.c +346 -0
- data/pkgs/tile-0.8.2/generic/separator.c +132 -0
- data/pkgs/tile-0.8.2/generic/square.c +306 -0
- data/pkgs/tile-0.8.2/generic/tagset.c +147 -0
- data/pkgs/tile-0.8.2/generic/tile.c +296 -0
- data/pkgs/tile-0.8.2/generic/tkElements.c +1280 -0
- data/pkgs/tile-0.8.2/generic/tkTheme.c +1708 -0
- data/pkgs/tile-0.8.2/generic/tkTheme.h +419 -0
- data/pkgs/tile-0.8.2/generic/tkThemeInt.h +45 -0
- data/pkgs/tile-0.8.2/generic/tkstate.c +268 -0
- data/pkgs/tile-0.8.2/generic/trace.c +145 -0
- data/pkgs/tile-0.8.2/generic/track.c +174 -0
- data/pkgs/tile-0.8.2/generic/treeview.c +3211 -0
- data/pkgs/tile-0.8.2/generic/ttk.decls +154 -0
- data/pkgs/tile-0.8.2/generic/ttkDecls.h +340 -0
- data/pkgs/tile-0.8.2/generic/ttkStubInit.c +61 -0
- data/pkgs/tile-0.8.2/generic/ttkStubLib.c +70 -0
- data/pkgs/tile-0.8.2/generic/widget.c +785 -0
- data/pkgs/tile-0.8.2/generic/widget.h +263 -0
- data/pkgs/tile-0.8.2/image.o +0 -0
- data/pkgs/tile-0.8.2/label.o +0 -0
- data/pkgs/tile-0.8.2/layout.o +0 -0
- data/pkgs/tile-0.8.2/library/altTheme.tcl +101 -0
- data/pkgs/tile-0.8.2/library/aquaTheme.tcl +62 -0
- data/pkgs/tile-0.8.2/library/button.tcl +85 -0
- data/pkgs/tile-0.8.2/library/clamTheme.tcl +139 -0
- data/pkgs/tile-0.8.2/library/classicTheme.tcl +108 -0
- data/pkgs/tile-0.8.2/library/combobox.tcl +439 -0
- data/pkgs/tile-0.8.2/library/cursors.tcl +36 -0
- data/pkgs/tile-0.8.2/library/defaults.tcl +118 -0
- data/pkgs/tile-0.8.2/library/dialog.tcl +274 -0
- data/pkgs/tile-0.8.2/library/entry.tcl +580 -0
- data/pkgs/tile-0.8.2/library/fonts.tcl +153 -0
- data/pkgs/tile-0.8.2/library/icons.tcl +105 -0
- data/pkgs/tile-0.8.2/library/keynav.tcl +192 -0
- data/pkgs/tile-0.8.2/library/menubutton.tcl +171 -0
- data/pkgs/tile-0.8.2/library/notebook.tcl +193 -0
- data/pkgs/tile-0.8.2/library/paned.tcl +87 -0
- data/pkgs/tile-0.8.2/library/progress.tcl +51 -0
- data/pkgs/tile-0.8.2/library/scale.tcl +54 -0
- data/pkgs/tile-0.8.2/library/scrollbar.tcl +125 -0
- data/pkgs/tile-0.8.2/library/sizegrip.tcl +77 -0
- data/pkgs/tile-0.8.2/library/tile.tcl +211 -0
- data/pkgs/tile-0.8.2/library/treeview.tcl +382 -0
- data/pkgs/tile-0.8.2/library/utils.tcl +254 -0
- data/pkgs/tile-0.8.2/library/winTheme.tcl +77 -0
- data/pkgs/tile-0.8.2/library/xpTheme.tcl +63 -0
- data/pkgs/tile-0.8.2/libtile0.8.2.so +0 -0
- data/pkgs/tile-0.8.2/libttkstub.a +0 -0
- data/pkgs/tile-0.8.2/license.terms +24 -0
- data/pkgs/tile-0.8.2/macosx/aquaTheme.c +1076 -0
- data/pkgs/tile-0.8.2/manager.o +0 -0
- data/pkgs/tile-0.8.2/notebook.o +0 -0
- data/pkgs/tile-0.8.2/paned.o +0 -0
- data/pkgs/tile-0.8.2/pkgIndex.tcl +3 -0
- data/pkgs/tile-0.8.2/progress.o +0 -0
- data/pkgs/tile-0.8.2/scale.o +0 -0
- data/pkgs/tile-0.8.2/scroll.o +0 -0
- data/pkgs/tile-0.8.2/scrollbar.o +0 -0
- data/pkgs/tile-0.8.2/separator.o +0 -0
- data/pkgs/tile-0.8.2/tagset.o +0 -0
- data/pkgs/tile-0.8.2/tclconfig/install-sh +119 -0
- data/pkgs/tile-0.8.2/tclconfig/tcl.m4 +4069 -0
- data/pkgs/tile-0.8.2/tclconfig/teax.m4 +109 -0
- data/pkgs/tile-0.8.2/tests/all.tcl +18 -0
- data/pkgs/tile-0.8.2/tests/bwidget.test +103 -0
- data/pkgs/tile-0.8.2/tests/cbtest.tcl +125 -0
- data/pkgs/tile-0.8.2/tests/combobox.test +51 -0
- data/pkgs/tile-0.8.2/tests/compound.tcl +92 -0
- data/pkgs/tile-0.8.2/tests/entry.test +285 -0
- data/pkgs/tile-0.8.2/tests/entrytest.tcl +78 -0
- data/pkgs/tile-0.8.2/tests/image.test +94 -0
- data/pkgs/tile-0.8.2/tests/labelframe.tcl +41 -0
- data/pkgs/tile-0.8.2/tests/labelframe.test +137 -0
- data/pkgs/tile-0.8.2/tests/layout.test +33 -0
- data/pkgs/tile-0.8.2/tests/misc.test +35 -0
- data/pkgs/tile-0.8.2/tests/nbtest.tcl +66 -0
- data/pkgs/tile-0.8.2/tests/notebook.test +500 -0
- data/pkgs/tile-0.8.2/tests/paned.test +298 -0
- data/pkgs/tile-0.8.2/tests/progress.test +92 -0
- data/pkgs/tile-0.8.2/tests/pwtest.tcl +90 -0
- data/pkgs/tile-0.8.2/tests/sbtest.tcl +79 -0
- data/pkgs/tile-0.8.2/tests/scrollbar.test +77 -0
- data/pkgs/tile-0.8.2/tests/sgtest.tcl +52 -0
- data/pkgs/tile-0.8.2/tests/testutils.tcl +20 -0
- data/pkgs/tile-0.8.2/tests/tile.test +674 -0
- data/pkgs/tile-0.8.2/tests/treetags.test +78 -0
- data/pkgs/tile-0.8.2/tests/treeview.test +563 -0
- data/pkgs/tile-0.8.2/tests/tvtest.tcl +332 -0
- data/pkgs/tile-0.8.2/tests/validate.test +278 -0
- data/pkgs/tile-0.8.2/tile.o +0 -0
- data/pkgs/tile-0.8.2/tkElements.o +0 -0
- data/pkgs/tile-0.8.2/tkTheme.o +0 -0
- data/pkgs/tile-0.8.2/tkstate.o +0 -0
- data/pkgs/tile-0.8.2/tools/genStubs.tcl +861 -0
- data/pkgs/tile-0.8.2/trace.o +0 -0
- data/pkgs/tile-0.8.2/track.o +0 -0
- data/pkgs/tile-0.8.2/treeview.o +0 -0
- data/pkgs/tile-0.8.2/ttkStubInit.o +0 -0
- data/pkgs/tile-0.8.2/ttkStubLib.o +0 -0
- data/pkgs/tile-0.8.2/widget.o +0 -0
- data/pkgs/tile-0.8.2/win/Tile.dsp +261 -0
- data/pkgs/tile-0.8.2/win/makefile.vc +527 -0
- data/pkgs/tile-0.8.2/win/monitor.c +164 -0
- data/pkgs/tile-0.8.2/win/nmakehlp.c +483 -0
- data/pkgs/tile-0.8.2/win/rules.vc +512 -0
- data/pkgs/tile-0.8.2/win/tile.rc +40 -0
- data/pkgs/tile-0.8.2/win/winTheme.c +734 -0
- data/pkgs/tile-0.8.2/win/xpTheme.c +1029 -0
- data/spec/app_spec.rb +48 -0
- data/spec/customer_spec.rb +31 -0
- data/spec/fixtures/graph.expectation +18 -0
- data/spec/payment_spec.rb +19 -0
- data/spec/pratt_spec.rb +148 -0
- data/spec/project_spec.rb +163 -0
- data/spec/rcov.opts +0 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/whence_spec.rb +54 -0
- data/tasks/pratt.rb +84 -0
- data/templates/model.eruby +12 -0
- data/templates/spec.eruby +8 -0
- data/views/env.rb +22 -0
- data/views/graph.eruby +20 -0
- data/views/invoice.eruby +148 -0
- data/views/main.rb +92 -0
- data/views/pid.eruby +3 -0
- data/views/pop.rb +94 -0
- data/views/pop2.rb +75 -0
- data/views/raw.eruby +11 -0
- metadata +390 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#
|
|
2
|
+
# tile/doc/Makefile --
|
|
3
|
+
#
|
|
4
|
+
# Generate TMML from nroff source
|
|
5
|
+
# Generate HTML from TMML
|
|
6
|
+
#
|
|
7
|
+
|
|
8
|
+
TMML_DIR ?= /usr/local/lib/tmml
|
|
9
|
+
MAN2TMML = tclsh $(TMML_DIR)/man2tmml/man2tmml.tcl
|
|
10
|
+
TMML = tclsh $(TMML_DIR)/tools/tmml.tcl
|
|
11
|
+
|
|
12
|
+
HTML_DIR = html
|
|
13
|
+
|
|
14
|
+
.SUFFIXES: .3 .n .tmml .html
|
|
15
|
+
|
|
16
|
+
TMML_OPTIONS = --masterDocument=TILE.XML --htmlDirectory=$(HTML_DIR) --quiet=1
|
|
17
|
+
|
|
18
|
+
TXTFILES = converting.txt
|
|
19
|
+
|
|
20
|
+
default : tmml html
|
|
21
|
+
|
|
22
|
+
tmml ::
|
|
23
|
+
-mkdir -p xml
|
|
24
|
+
$(MAN2TMML) -rebuild -directory xml -extension .tmml
|
|
25
|
+
|
|
26
|
+
html ::
|
|
27
|
+
-mkdir -p $(HTML_DIR)
|
|
28
|
+
$(TMML) makemap $(TMML_OPTIONS) ; mv INDEX.MAP xml
|
|
29
|
+
$(TMML) tohtml xml/*.tmml $(TMML_OPTIONS)
|
|
30
|
+
$(TMML) navpages $(TMML_OPTIONS)
|
|
31
|
+
for file in $(TXTFILES) ; do cp $$file $(HTML_DIR) ; done
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
clean ::
|
|
35
|
+
-rm $(HTML_DIR)/*.*
|
|
36
|
+
-rm xml/*.*
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<manual package="tile" version="0.7">
|
|
2
|
+
<title>Tile package reference</title>
|
|
3
|
+
|
|
4
|
+
<division>
|
|
5
|
+
<title>Tcl commands</title>
|
|
6
|
+
<subdoc href="xml/tile-intro.tmml" />
|
|
7
|
+
<subdoc href="xml/widget.tmml"/>
|
|
8
|
+
<subdoc href="xml/style.tmml" />
|
|
9
|
+
<subdoc href="xml/image.tmml"/>
|
|
10
|
+
</division>
|
|
11
|
+
|
|
12
|
+
<division>
|
|
13
|
+
<title>Widgets</title>
|
|
14
|
+
<subdoc href="xml/button.tmml"/>
|
|
15
|
+
<subdoc href="xml/checkbutton.tmml"/>
|
|
16
|
+
<subdoc href="xml/combobox.tmml"/>
|
|
17
|
+
<subdoc href="xml/dialog.tmml"/>
|
|
18
|
+
<subdoc href="xml/entry.tmml"/>
|
|
19
|
+
<subdoc href="xml/frame.tmml"/>
|
|
20
|
+
<subdoc href="xml/label.tmml"/>
|
|
21
|
+
<subdoc href="xml/labelframe.tmml"/>
|
|
22
|
+
<subdoc href="xml/menubutton.tmml"/>
|
|
23
|
+
<subdoc href="xml/notebook.tmml"/>
|
|
24
|
+
<subdoc href="xml/paned.tmml"/>
|
|
25
|
+
<subdoc href="xml/progressbar.tmml"/>
|
|
26
|
+
<subdoc href="xml/radiobutton.tmml"/>
|
|
27
|
+
<subdoc href="xml/scrollbar.tmml"/>
|
|
28
|
+
<subdoc href="xml/separator.tmml"/>
|
|
29
|
+
<subdoc href="xml/sizegrip.tmml"/>
|
|
30
|
+
<subdoc href="xml/treeview.tmml"/>
|
|
31
|
+
</division>
|
|
32
|
+
|
|
33
|
+
<division>
|
|
34
|
+
<title>C API</title>
|
|
35
|
+
<subdoc href="xml/Geometry.tmml"/>
|
|
36
|
+
<subdoc href="xml/Theme.tmml"/>
|
|
37
|
+
</division>
|
|
38
|
+
|
|
39
|
+
<division>
|
|
40
|
+
<title>Miscellaneous</title>
|
|
41
|
+
<extref href="converting.txt" type="text/plain"
|
|
42
|
+
title = "Converting existing applications to use the Tile widgets" />
|
|
43
|
+
</division>
|
|
44
|
+
|
|
45
|
+
</manual>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2003 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
'\" See the file "license.terms" for information on usage and redistribution
|
|
5
|
+
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
6
|
+
'\"
|
|
7
|
+
'\" RCS: @(#) Theme.3,v 1.4 2004/12/11 00:36:36 jenglish Exp
|
|
8
|
+
'\"
|
|
9
|
+
.so man.macros
|
|
10
|
+
.TH Ttk_CreateTheme 3 0.2 tile "Tile Widget Set"
|
|
11
|
+
.BS
|
|
12
|
+
.SH NAME
|
|
13
|
+
Ttk_CreateTheme, Ttk_GetTheme, Ttk_GetDefaultTheme, Ttk_GetCurrentTheme \- create and use Themes.
|
|
14
|
+
.SH SYNOPSIS
|
|
15
|
+
.nf
|
|
16
|
+
Ttk_Theme Ttk_CreateTheme(\fIinterp\fR, \fIname\fR, \fIparentTheme\fR);
|
|
17
|
+
Ttk_Theme Ttk_GetTheme(\fIinterp\fR, \fIname\fR);
|
|
18
|
+
Ttk_Theme Ttk_GetDefaultTheme(\fIinterp\fR);
|
|
19
|
+
Ttk_Theme Ttk_GetCurrentTheme(\fIinterp\fR);
|
|
20
|
+
.fi
|
|
21
|
+
.SH ARGUMENTS
|
|
22
|
+
.AP "Tcl_Interp *" interp in
|
|
23
|
+
The Tcl interpreter in which to register/query available themes.
|
|
24
|
+
.AP "Ttk_Theme" parentTheme in
|
|
25
|
+
Fallback or parent theme from which the new theme will
|
|
26
|
+
inherit elements and layouts.
|
|
27
|
+
.AP "const char *" name in
|
|
28
|
+
The name of the theme.
|
|
29
|
+
.BE
|
|
30
|
+
.SH DESCRIPTION
|
|
31
|
+
|
|
32
|
+
.SH "SEE ALSO"
|
|
33
|
+
Ttk_RegisterLayout, Ttk_BuildLayout
|
|
34
|
+
.\" .SH KEYWORDS
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
.so man.macros
|
|
5
|
+
.TH button n 0.2 tile "Tile Widget Set"
|
|
6
|
+
.BS
|
|
7
|
+
.SH NAME
|
|
8
|
+
ttk::button \- Widget that issues a command when pressed
|
|
9
|
+
.SH SYNOPSIS
|
|
10
|
+
\fBttk::button\fR \fIpathName \fR?\fIoptions\fR?
|
|
11
|
+
.BE
|
|
12
|
+
.SH DESCRIPTION
|
|
13
|
+
A \fBbutton\fR widget displays a textual label and/or image,
|
|
14
|
+
and evaluates a command when pressed.
|
|
15
|
+
.SO
|
|
16
|
+
\-class \-compound \-cursor \-image
|
|
17
|
+
\-state \-style \-takefocus \-text
|
|
18
|
+
\-textvariable \-underline \-width
|
|
19
|
+
.SE
|
|
20
|
+
.SH "OPTIONS"
|
|
21
|
+
.OP \-command command Command
|
|
22
|
+
A script to evaluate when the widget is invoked.
|
|
23
|
+
.OP \-default default Default
|
|
24
|
+
May be set to one of \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR.
|
|
25
|
+
In a dialog box, one button may be designated the "default" button
|
|
26
|
+
(meaning, roughly, "the one that gets invoked when the user presses <Enter>").
|
|
27
|
+
\fBactive\fR indicates that this is currently the default button;
|
|
28
|
+
\fBnormal\fR means that it may become the default button, and
|
|
29
|
+
\fBdisabled\fR means that it is not defaultable.
|
|
30
|
+
The default is \fBnormal\fR.
|
|
31
|
+
.br
|
|
32
|
+
Depending on the theme, the default button may be displayed
|
|
33
|
+
with an extra highlight ring, or with a different border color.
|
|
34
|
+
See also: \fIkeynav(n)\fR.
|
|
35
|
+
.OP \-width width Width
|
|
36
|
+
If greater than zero, specifies how much space, in character widths,
|
|
37
|
+
to allocate for the text label.
|
|
38
|
+
If less than zero, specifies a minimum width.
|
|
39
|
+
If zero or unspecified, the natural width of the text label is used.
|
|
40
|
+
Note that some themes may specify a non-zero \fB-width\fR
|
|
41
|
+
in the style.
|
|
42
|
+
'\" Not documented -- may go away
|
|
43
|
+
'\" .OP \-padding padding Padding
|
|
44
|
+
'\" .OP \-foreground foreground Foreground
|
|
45
|
+
'\" .OP \-font font Font
|
|
46
|
+
'\" .OP \-anchor anchor Anchor
|
|
47
|
+
'\" .OP \-padding padding Padding
|
|
48
|
+
'\" .OP \-relief relief Relief
|
|
49
|
+
|
|
50
|
+
.SH "WIDGET COMMAND"
|
|
51
|
+
.TP
|
|
52
|
+
\fIpathName \fBinvoke\fR
|
|
53
|
+
Invokes the command associated with the button.
|
|
54
|
+
.TP
|
|
55
|
+
\fIpathName \fBcget\fR \fIoption\fR
|
|
56
|
+
.TP
|
|
57
|
+
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
|
58
|
+
.TP
|
|
59
|
+
\fIpathName \fBinstate \fIstatespec\fR ?\fIscript\fR?
|
|
60
|
+
.TP
|
|
61
|
+
\fIpathName \fBstate\fR ?\fIstateSpec\fR?
|
|
62
|
+
See \fIwidget(n)\fR
|
|
63
|
+
|
|
64
|
+
.SH "COMPATIBILITY OPTIONS"
|
|
65
|
+
.OP \-state state State
|
|
66
|
+
May be set to \fBnormal\fR or \fBdisabled\fR
|
|
67
|
+
to control the \fBdisabled\fR state bit.
|
|
68
|
+
This is a ``write-only'' option: setting it changes the
|
|
69
|
+
widget state, but the \fBstate\fR widget command does
|
|
70
|
+
not affect the state option.
|
|
71
|
+
|
|
72
|
+
.SH "SEE ALSO"
|
|
73
|
+
widget(n), keynav(n)
|
|
74
|
+
.SH "KEYWORDS"
|
|
75
|
+
widget, button, default, command
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
.so man.macros
|
|
5
|
+
.TH checkbutton n 0.2 tile "Tile Widget Set"
|
|
6
|
+
.BS
|
|
7
|
+
.SH NAME
|
|
8
|
+
ttk::checkbutton \- On/off widget
|
|
9
|
+
.SH SYNOPSIS
|
|
10
|
+
\fBttk::checkbutton\fR \fIpathName \fR?\fIoptions\fR?
|
|
11
|
+
.BE
|
|
12
|
+
.SH DESCRIPTION
|
|
13
|
+
A \fBcheckbutton\fR widget is used to show or change a setting.
|
|
14
|
+
It has two states, selected and deselected.
|
|
15
|
+
The state of the checkbutton may be linked to a Tcl variable.
|
|
16
|
+
.SO
|
|
17
|
+
\-class \-compound \-cursor \-image
|
|
18
|
+
\-state \-style \-takefocus \-text
|
|
19
|
+
\-textvariable \-underline \-width
|
|
20
|
+
.SE
|
|
21
|
+
.SH "OPTIONS"
|
|
22
|
+
.OP \-command command Command
|
|
23
|
+
A Tcl script to execute whenever the widget is invoked.
|
|
24
|
+
.OP \-offvalue offValue OffValue
|
|
25
|
+
The value to store in the associated \fI-variable\fR
|
|
26
|
+
when the widget is deselected. Defaults to \fB0\fR.
|
|
27
|
+
.OP \-onvalue onValue OnValue
|
|
28
|
+
The value to store in the associated \fI-variable\fR
|
|
29
|
+
when the widget is selected. Defaults to \fB1\fR.
|
|
30
|
+
.OP \-variable variable Variable
|
|
31
|
+
The name of a global variable whose value is linked to the widget.
|
|
32
|
+
Defaults to the widget pathname if not specified.
|
|
33
|
+
.SH "WIDGET COMMAND"
|
|
34
|
+
In addition to the standard
|
|
35
|
+
\fBcget\fR, \fBconfigure\fR, \fBinstate\fR, and \fBstate\fR
|
|
36
|
+
commands, checkbuttons support the following additional
|
|
37
|
+
widget commands:
|
|
38
|
+
.TP
|
|
39
|
+
\fIpathname\fR invoke
|
|
40
|
+
Toggles between the selected and deselected states
|
|
41
|
+
and evaluates the associated \fI-command\fR.
|
|
42
|
+
If the widget is currently selected, sets the \fI-variable\fR
|
|
43
|
+
to the \fI-offvalue\fR and deselects the widget;
|
|
44
|
+
otherwise, sets the \fI-variable\fR to the \fI-onvalue\fR
|
|
45
|
+
Returns the result of the \fI-command\fR.
|
|
46
|
+
.\" Missing: select, deselect, toggle
|
|
47
|
+
.\" Are these useful? They don't invoke the -command
|
|
48
|
+
.\" Missing: flash. This is definitely not useful.
|
|
49
|
+
.SH "WIDGET STATES"
|
|
50
|
+
The widget does not respond to user input if the \fBdisabled\fR state is set.
|
|
51
|
+
The widget sets the \fBselected\fR state whenever
|
|
52
|
+
the linked \fB-variable\fR is set to the widget's \fB-onvalue\fR,
|
|
53
|
+
and clears it otherwise.
|
|
54
|
+
The widget sets the \fBalternate\fR state whenever the
|
|
55
|
+
linked \fB-variable\fR is unset.
|
|
56
|
+
(The \fBalternate\fR state may be used to indicate a ``tri-state''
|
|
57
|
+
or ``indeterminate'' selection.)
|
|
58
|
+
.SH "SEE ALSO"
|
|
59
|
+
widget(n), keynav(n), radiobutton(n)
|
|
60
|
+
.SH "KEYWORDS"
|
|
61
|
+
widget, button, toggle, check, option
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
.so man.macros
|
|
5
|
+
.TH combobox n 0.4 tile "Tile Widget Set"
|
|
6
|
+
.BS
|
|
7
|
+
.SH NAME
|
|
8
|
+
ttk::combobox \- text field with popdown selection list
|
|
9
|
+
.SH SYNOPSIS
|
|
10
|
+
\fBttk::combobox\fR \fIpathName \fR?\fIoptions\fR?
|
|
11
|
+
.SO
|
|
12
|
+
\-class \-cursor \-takefocus \-style
|
|
13
|
+
.SE
|
|
14
|
+
.\" ALSO: Other entry widget options
|
|
15
|
+
.SH "OPTIONS"
|
|
16
|
+
.OP \-exportselection exportSelection ExportSelection
|
|
17
|
+
Boolean value.
|
|
18
|
+
If set, the widget selection is linked to the X selection.
|
|
19
|
+
.OP \-justify justify Justify
|
|
20
|
+
Specifies how the text is aligned within the widget.
|
|
21
|
+
One of \fBleft\fR, \fBcenter\fR, or \fBright\fR.
|
|
22
|
+
.OP \-height height Height
|
|
23
|
+
Specifies the height of the pop-down listbox, in rows.
|
|
24
|
+
.OP \-postcommand postCommand PostCommand
|
|
25
|
+
A Tcl script to evaluate immediately before displaying the listbox.
|
|
26
|
+
The \fB-postcommand\fR script may specify the \fB-values\fR to display.
|
|
27
|
+
.OP \-state state State
|
|
28
|
+
One of \fBnormal\fR, \fBreadonly\fR, or \fBdisabled\fR.
|
|
29
|
+
In the \fBreadonly\fR state,
|
|
30
|
+
the value may not be edited directly, and
|
|
31
|
+
the user can only select one of the \fB-values\fR from the
|
|
32
|
+
dropdown list.
|
|
33
|
+
In the \fBnormal\fR state,
|
|
34
|
+
the text field is directly editable.
|
|
35
|
+
In the \fBdisabled\fR state, no interaction is possible.
|
|
36
|
+
.OP \-textvariable textVariable TextVariable
|
|
37
|
+
Specifies the name of a variable whose value is linked
|
|
38
|
+
to the widget value.
|
|
39
|
+
Whenever the variable changes value the widget value is updated,
|
|
40
|
+
and vice versa.
|
|
41
|
+
.OP \-values values Values
|
|
42
|
+
Specifies the list of values to display in the drop-down listbox.
|
|
43
|
+
.OP \-width width Width
|
|
44
|
+
Specifies an integer value indicating the desired width of the entry window,
|
|
45
|
+
in average-size characters of the widget's font.
|
|
46
|
+
.BE
|
|
47
|
+
.SH DESCRIPTION
|
|
48
|
+
A combobox combines a text field with a pop-down list of values;
|
|
49
|
+
the user may select the value of the text field from among the
|
|
50
|
+
values in the list.
|
|
51
|
+
.SH "WIDGET COMMAND"
|
|
52
|
+
.TP
|
|
53
|
+
\fIpathName \fBcget\fR \fIoption\fR
|
|
54
|
+
Returns the current value of the specified \fIoption\fR.
|
|
55
|
+
See \fIwidget(n)\fR.
|
|
56
|
+
.TP
|
|
57
|
+
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
|
58
|
+
Modify or query widget options.
|
|
59
|
+
See \fIwidget(n)\fR.
|
|
60
|
+
.TP
|
|
61
|
+
\fIpathName \fBcurrent\fR ?\fInewIndex\fR?
|
|
62
|
+
If \fInewIndex\fR is supplied, sets the combobox value
|
|
63
|
+
to the element at position \fInewIndex\fR in the list of \fB-values\fR.
|
|
64
|
+
Otherwise, returns the index of the current value in the list of \fB-values\fR
|
|
65
|
+
or \fB-1\fR if the current value does not appear in the list.
|
|
66
|
+
.TP
|
|
67
|
+
\fIpathName \fBget\fR
|
|
68
|
+
Returns the current value of the combobox.
|
|
69
|
+
.TP
|
|
70
|
+
\fIpathName \fBidentify \fIx y\fR
|
|
71
|
+
Returns the name of the element at position \fIx\fR, \fIy\fR,
|
|
72
|
+
or the empty string if the coordinates are outside the window.
|
|
73
|
+
.TP
|
|
74
|
+
\fIpathName \fBinstate \fIstatespec\fR ?\fIscript\fR?
|
|
75
|
+
Test the widget state.
|
|
76
|
+
See \fIwidget(n)\fR.
|
|
77
|
+
.TP
|
|
78
|
+
\fIpathName \fBset\fR \fIvalue\fR
|
|
79
|
+
Sets the value of the combobox to \fIvalue\fR.
|
|
80
|
+
.TP
|
|
81
|
+
\fIpathName \fBstate\fR ?\fIstateSpec\fR?
|
|
82
|
+
Modify or query the widget state.
|
|
83
|
+
See \fIwidget(n)\fR.
|
|
84
|
+
.PP
|
|
85
|
+
The combobox widget also supports the following \fIentry\fR
|
|
86
|
+
widget commands (see \fIentry(n)\fR for details):
|
|
87
|
+
.DS
|
|
88
|
+
.ta 5.5c 11c
|
|
89
|
+
bbox delete icursor
|
|
90
|
+
index insert selection
|
|
91
|
+
xview
|
|
92
|
+
.DE
|
|
93
|
+
.SH "VIRTUAL EVENTS"
|
|
94
|
+
The combobox widget generates a \fB<<ComboboxSelected>>\fR virtual event
|
|
95
|
+
when the user selects an element from the list of values.
|
|
96
|
+
This event is generated after the listbox is unposted.
|
|
97
|
+
.SH "SEE ALSO"
|
|
98
|
+
widget(n), entry(n)
|
|
@@ -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
|
+
|