Pratt 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- 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,59 @@
|
|
1
|
+
<manpage cat="cmd" id="separator" title="separator" version="0.5">
|
2
|
+
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
|
3
|
+
<!-- separator.n,v 1.5 2006/11/27 05:45:02 jenglish Exp
|
4
|
+
|
5
|
+
Copyright (c) 2004 Joe English
|
6
|
+
-->
|
7
|
+
<?TROFF.TH title="separator" section="n" date="0.5" source="tile" manual="Tile Widget Set" ?>
|
8
|
+
<namesection>
|
9
|
+
<name>ttk::separator</name>
|
10
|
+
<desc>Separator bar</desc>
|
11
|
+
</namesection>
|
12
|
+
<synopsis>
|
13
|
+
<syntax>
|
14
|
+
<b>ttk::separator</b> <m>pathName</m> ?<m>options</m>?
|
15
|
+
</syntax>
|
16
|
+
</synopsis>
|
17
|
+
<section>
|
18
|
+
<title>DESCRIPTION</title>
|
19
|
+
<p>A <b>separator</b> widget displays a horizontal or vertical separator bar.
|
20
|
+
</p>
|
21
|
+
</section>
|
22
|
+
<section>
|
23
|
+
<title>STANDARD OPTIONS</title>
|
24
|
+
<sl cat="stdopt" cols="4">
|
25
|
+
<li>-class</li>
|
26
|
+
<li>-cursor</li>
|
27
|
+
<li>-state</li>
|
28
|
+
<li>-style</li>
|
29
|
+
<li>-takefocus</li>
|
30
|
+
</sl>
|
31
|
+
</section>
|
32
|
+
<section>
|
33
|
+
<title>OPTIONS</title>
|
34
|
+
<optionlist>
|
35
|
+
<optiondef>
|
36
|
+
<name>-orient</name>
|
37
|
+
<dbname>orient</dbname>
|
38
|
+
<dbclass>Orient</dbclass>
|
39
|
+
<desc>One of <b>horizontal</b> or <b>vertical</b>.
|
40
|
+
Specifies the orientation of the separator.
|
41
|
+
</desc>
|
42
|
+
</optiondef>
|
43
|
+
</optionlist>
|
44
|
+
</section>
|
45
|
+
<section>
|
46
|
+
<title>WIDGET COMMAND</title>
|
47
|
+
<p>Separator widgets support the standard
|
48
|
+
<b>cget</b>, <b>configure</b>, <b>instate</b>, and <b>state</b>
|
49
|
+
methods. No other widget methods are used.
|
50
|
+
</p>
|
51
|
+
</section>
|
52
|
+
<seealso>
|
53
|
+
<ref>widget(n)</ref>
|
54
|
+
</seealso>
|
55
|
+
<keywords>
|
56
|
+
<keyword>widget</keyword>
|
57
|
+
<keyword>separator</keyword>
|
58
|
+
</keywords>
|
59
|
+
</manpage>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<manpage cat="cmd" id="sizegrip" title="sizegrip" version="0.8">
|
2
|
+
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
|
3
|
+
<!-- sizegrip.n,v 1.5 2007/10/16 00:59:23 jenglish Exp
|
4
|
+
|
5
|
+
Copyright (c) 2006 Joe English
|
6
|
+
-->
|
7
|
+
<?TROFF.TH title="sizegrip" section="n" date="0.8" source="tile" manual="Tile Widget Set" ?>
|
8
|
+
<namesection>
|
9
|
+
<name>ttk::sizegrip</name>
|
10
|
+
<desc>A silly widget</desc>
|
11
|
+
</namesection>
|
12
|
+
<synopsis>
|
13
|
+
<syntax>
|
14
|
+
<b>ttk::sizegrip</b> <m>pathName</m> ?<m>options</m>?
|
15
|
+
</syntax>
|
16
|
+
</synopsis>
|
17
|
+
<section>
|
18
|
+
<title>DESCRIPTION</title>
|
19
|
+
<p>A <b>sizegrip</b> widget (also known as a <i>grow box</i>)
|
20
|
+
allows the user to resize the containing toplevel window
|
21
|
+
by pressing and dragging the grip.
|
22
|
+
</p>
|
23
|
+
</section>
|
24
|
+
<section>
|
25
|
+
<title>STANDARD OPTIONS</title>
|
26
|
+
<sl cat="stdopt" cols="4">
|
27
|
+
<li>-class</li>
|
28
|
+
<li>-cursor</li>
|
29
|
+
<li>-state</li>
|
30
|
+
<li>-style</li>
|
31
|
+
<li>-takefocus</li>
|
32
|
+
</sl>
|
33
|
+
</section>
|
34
|
+
<section>
|
35
|
+
<title>WIDGET COMMAND</title>
|
36
|
+
<p>Sizegrip widgets support the standard
|
37
|
+
<b>cget</b>, <b>configure</b>, <b>instate</b>, and <b>state</b>
|
38
|
+
methods. No other widget methods are used.
|
39
|
+
</p>
|
40
|
+
</section>
|
41
|
+
<section>
|
42
|
+
<title>PLATFORM-SPECIFIC NOTES</title>
|
43
|
+
<p>On Mac OSX, toplevel windows automatically include a built-in
|
44
|
+
size grip by default.
|
45
|
+
Adding an <b>ttk::sizegrip</b> there is harmless, since
|
46
|
+
the built-in grip will just mask the widget.
|
47
|
+
</p>
|
48
|
+
</section>
|
49
|
+
<section>
|
50
|
+
<title>EXAMPLES</title>
|
51
|
+
<example>
|
52
|
+
# Using pack:
|
53
|
+
pack [ttk::frame $top.statusbar] -side bottom -fill x
|
54
|
+
pack [ttk::sizegrip $top.statusbar.grip] -side right -anchor se
|
55
|
+
|
56
|
+
# Using grid:
|
57
|
+
grid [ttk::sizegrip $top.statusbar.grip] \
|
58
|
+
-row $lastRow -column $lastColumn -sticky se
|
59
|
+
# ... optional: add vertical scrollbar in $lastColumn,
|
60
|
+
# ... optional: add horizontal scrollbar in $lastRow
|
61
|
+
</example>
|
62
|
+
</section>
|
63
|
+
<section>
|
64
|
+
<title>BUGS</title>
|
65
|
+
<p>If the containing toplevel's position was specified
|
66
|
+
relative to the right or bottom of the screen
|
67
|
+
(e.g., <b>[wm geometry ...</b> <i>w</i><b>x</b><i>h</i><b>-</b><i>x</i><b>-</b><i>y</i><b>]</b>
|
68
|
+
instead of <b>[wm geometry ...</b> <i>w</i><b>x</b><i>h</i><b>+</b><i>x</i><b>+</b><i>y</i><b>]</b>),
|
69
|
+
the sizegrip widget will not resize the window.
|
70
|
+
</p>
|
71
|
+
<p>ttk::sizegrip widgets only support "southeast" resizing.
|
72
|
+
</p>
|
73
|
+
</section>
|
74
|
+
<seealso>
|
75
|
+
<ref>widget(n)</ref>
|
76
|
+
</seealso>
|
77
|
+
<keywords>
|
78
|
+
<keyword>widget</keyword>
|
79
|
+
<keyword>sizegrip</keyword>
|
80
|
+
<keyword>grow box</keyword>
|
81
|
+
</keywords>
|
82
|
+
</manpage>
|
@@ -0,0 +1,171 @@
|
|
1
|
+
<manpage cat="cmd" id="style" title="style" version="0.5">
|
2
|
+
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
|
3
|
+
<!--
|
4
|
+
Copyright (c) 2004 Joe English
|
5
|
+
style.n,v 1.15 2007/12/12 15:55:15 jenglish Exp
|
6
|
+
-->
|
7
|
+
<?TROFF.TH title="style" section="n" date="0.5" source="tile" manual="Tile Widget Set" ?>
|
8
|
+
<namesection>
|
9
|
+
<name>ttk::style</name>
|
10
|
+
<desc>Manipulate style database</desc>
|
11
|
+
</namesection>
|
12
|
+
<synopsis>
|
13
|
+
<syntax>
|
14
|
+
<b>ttk::style</b> <m>option</m> ?<m>args</m>?
|
15
|
+
</syntax>
|
16
|
+
</synopsis>
|
17
|
+
<section>
|
18
|
+
<title>NOTES</title>
|
19
|
+
<p>See also the Tcl'2004 conference presentation,
|
20
|
+
available at
|
21
|
+
<ref href="http://tktable.sourceforge.net/tile/tile-tcl2004.pdf
|
22
|
+
">http://tktable.sourceforge.net/tile/tile-tcl2004.pdf
|
23
|
+
</ref></p>
|
24
|
+
</section>
|
25
|
+
<section>
|
26
|
+
<title>DEFINITIONS</title>
|
27
|
+
<p>Each widget is assigned a <i>style</i>,
|
28
|
+
which specifies the set of elements making up the widget
|
29
|
+
and how they are arranged, along with dynamic and default
|
30
|
+
settings for element options.
|
31
|
+
By default, the style name is the same as the widget's class;
|
32
|
+
this may be overridden by the <b>-style</b> option.
|
33
|
+
</p>
|
34
|
+
<p>A <i>theme</i> is a collection of elements and styles
|
35
|
+
which controls the overall look and feel of an application.
|
36
|
+
</p>
|
37
|
+
</section>
|
38
|
+
<section>
|
39
|
+
<title>DESCRIPTION</title>
|
40
|
+
<p>The <b>ttk::style</b> command takes the following arguments:
|
41
|
+
</p>
|
42
|
+
<dl>
|
43
|
+
<dle>
|
44
|
+
<dt><b>ttk::style configure</b> <m>style</m> ?<m>-option</m> ?<m>value option value...</m>? ?</dt>
|
45
|
+
<dd>Sets the default value of the specified option(s) in <i>style</i>.
|
46
|
+
</dd>
|
47
|
+
</dle>
|
48
|
+
<dle>
|
49
|
+
<dt><b>ttk::style map</b> <m>style</m> ?<m>-option</m> <b>{</b> <m>statespec value...</m> <b>}</b>?</dt>
|
50
|
+
<dd>Sets dynamic values of the specified option(s) in <i>style</i>.
|
51
|
+
Each <i>statespec / value</i> pair is examined in order;
|
52
|
+
the value corresponding to the first matching <i>statespec</i>
|
53
|
+
is used.
|
54
|
+
</dd>
|
55
|
+
</dle>
|
56
|
+
<dle>
|
57
|
+
<dt><b>ttk::style lookup</b> <m>style</m> <m>-option</m> ?<m>state</m> ?<m>default</m>??</dt>
|
58
|
+
<dd>Returns the value specified for <i>-option</i> in style <i>style</i>
|
59
|
+
in state <i>state</i>, using the standard lookup rules for element options.
|
60
|
+
<i>state</i> is a list of state names; if omitted,
|
61
|
+
it defaults to all bits off (the ``normal'' state).
|
62
|
+
If the <i>default</i> argument is present, it is used as a fallback
|
63
|
+
value in case no specification for <i>-option</i> is found.
|
64
|
+
</dd>
|
65
|
+
</dle>
|
66
|
+
<dle>
|
67
|
+
<dt><b>ttk::style layout</b> <m>style</m> ?<m>layoutSpec</m>?</dt>
|
68
|
+
<dd>Define the widget layout for style <i>style</i>.
|
69
|
+
See <ref refid="layouts">LAYOUTS</ref> below for the format of <i>layoutSpec</i>.
|
70
|
+
If <i>layoutSpec</i> is omitted, return the layout specification
|
71
|
+
for style <i>style</i>.
|
72
|
+
</dd>
|
73
|
+
</dle>
|
74
|
+
<dle>
|
75
|
+
<dt><b>ttk::style element create</b> <m>elementName</m> <m>type</m> ?<m>args...</m>?</dt>
|
76
|
+
<dd>Creates a new element in the current theme of type <i>type</i>.
|
77
|
+
The only built-in element type is <i>image</i> (see <i>image(n)</i>),
|
78
|
+
although themes may define other element types
|
79
|
+
(see <b>Ttk_RegisterElementFactory</b>).
|
80
|
+
</dd>
|
81
|
+
</dle>
|
82
|
+
<dle>
|
83
|
+
<dt><b>ttk::style element names</b></dt>
|
84
|
+
<dd>Returns the list of elements defined in the current theme.
|
85
|
+
</dd>
|
86
|
+
</dle>
|
87
|
+
<dle>
|
88
|
+
<dt><b>ttk::style element options</b> <m>element</m></dt>
|
89
|
+
<dd>Returns the list of <i>element</i>'s options.
|
90
|
+
</dd>
|
91
|
+
</dle>
|
92
|
+
<dle>
|
93
|
+
<dt><b>ttk::style theme create</b> <m>themeName</m> ?<b>-parent</b> <m>basedon</m>? ?<b>-settings</b> <m>script...</m> ?</dt>
|
94
|
+
<dd>Creates a new theme. It is an error if <i>themeName</i> already exists.
|
95
|
+
If <b>-parent</b> is specified, the new theme will inherit
|
96
|
+
styles, elements, and layouts from the parent theme <i>basedon</i>.
|
97
|
+
If <b>-settings</b> is present, <i>script</i> is evaluated in the
|
98
|
+
context of the new theme as per <b>ttk::style theme settings</b>.
|
99
|
+
</dd>
|
100
|
+
</dle>
|
101
|
+
<dle>
|
102
|
+
<dt><b>ttk::style theme settings</b> <m>themeName</m> <m>script</m></dt>
|
103
|
+
<dd>Temporarily sets the current theme to <i>themeName</i>,
|
104
|
+
evaluate <i>script</i>, then restore the previous theme.
|
105
|
+
Typically <i>script</i> simply defines styles and elements,
|
106
|
+
though arbitrary Tcl code may appear.
|
107
|
+
</dd>
|
108
|
+
</dle>
|
109
|
+
<dle>
|
110
|
+
<dt><b>ttk::style theme names</b></dt>
|
111
|
+
<dd>Returns a list of all known themes.
|
112
|
+
</dd>
|
113
|
+
</dle>
|
114
|
+
<dle>
|
115
|
+
<dt><b>ttk::style theme use</b> <m>themeName</m></dt>
|
116
|
+
<dd>Sets the current theme to <i>themeName</i>, and refreshes all widgets.
|
117
|
+
</dd>
|
118
|
+
</dle>
|
119
|
+
</dl>
|
120
|
+
</section>
|
121
|
+
<section id="layouts">
|
122
|
+
<title>LAYOUTS</title>
|
123
|
+
<p>A <i>layout</i> specifies a list of elements, each followed
|
124
|
+
by one or more options specifying how to arrange the element.
|
125
|
+
The layout mechanism uses a simplified version of the <cmd>pack</cmd>
|
126
|
+
geometry manager: given an initial cavity,
|
127
|
+
each element is allocated a parcel.
|
128
|
+
Valid options are:
|
129
|
+
</p>
|
130
|
+
<dl>
|
131
|
+
<dle>
|
132
|
+
<dt><b>-side</b> <m>side</m></dt>
|
133
|
+
<dd>Specifies which side of the cavity to place the element;
|
134
|
+
one of <b>left</b>, <b>right</b>, <b>top</b>, or <b>bottom</b>.
|
135
|
+
If omitted, the element occupies the entire cavity.
|
136
|
+
</dd>
|
137
|
+
</dle>
|
138
|
+
<dle>
|
139
|
+
<dt><b>-sticky</b> <b>[</b><m>nswe</m><b>]</b></dt>
|
140
|
+
<dd>Specifies where the element is placed inside its allocated parcel.
|
141
|
+
</dd>
|
142
|
+
</dle>
|
143
|
+
<dle>
|
144
|
+
<dt><b>-children {</b> <m>sublayout...</m> <b>}</b></dt>
|
145
|
+
<dd>Specifies a list of elements to place inside the element.
|
146
|
+
</dd>
|
147
|
+
</dle>
|
148
|
+
</dl>
|
149
|
+
<p>For example:
|
150
|
+
</p>
|
151
|
+
<example>
|
152
|
+
ttk::style layout Horizontal.TScrollbar {
|
153
|
+
Scrollbar.trough -children {
|
154
|
+
Scrollbar.leftarrow -side left
|
155
|
+
Scrollbar.rightarrow -side right
|
156
|
+
Horizontal.Scrollbar.thumb -side left -sticky ew
|
157
|
+
}
|
158
|
+
}
|
159
|
+
</example>
|
160
|
+
</section>
|
161
|
+
<seealso>
|
162
|
+
<ref>tile-intro</ref>
|
163
|
+
<ref>widget</ref>
|
164
|
+
<ref>pixmap</ref>
|
165
|
+
</seealso>
|
166
|
+
<keywords>
|
167
|
+
<keyword>style</keyword>
|
168
|
+
<keyword>theme</keyword>
|
169
|
+
<keyword>appearance</keyword>
|
170
|
+
</keywords>
|
171
|
+
</manpage>
|
@@ -0,0 +1,192 @@
|
|
1
|
+
<manpage cat="misc" id="tile-intro" title="intro" version="0.2">
|
2
|
+
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
|
3
|
+
<!--
|
4
|
+
Copyright (c) 2004 Joe English
|
5
|
+
-->
|
6
|
+
<?TROFF.TH title="intro" section="n" date="0.2" source="tile" manual="Tile Widget Set" ?>
|
7
|
+
<namesection>
|
8
|
+
<name>tile_intro</name>
|
9
|
+
<desc>Introduction to the Tile theme engine</desc>
|
10
|
+
</namesection>
|
11
|
+
<section>
|
12
|
+
<title>OVERVIEW</title>
|
13
|
+
<p>The tile widget set is based on a revised and enhanced version
|
14
|
+
of the
|
15
|
+
<ref href="http://purl.org/tcl/tip/48">TIP #48
|
16
|
+
</ref>style engine.
|
17
|
+
The main concepts are described below.
|
18
|
+
The basic idea is to separate, to the extent possible,
|
19
|
+
the code implementing a widget's behavior from
|
20
|
+
the code implementing its appearance.
|
21
|
+
Widget class bindings are primarily responsible for
|
22
|
+
maintaining the widget state and invoking callbacks;
|
23
|
+
all aspects of the widgets appearance is
|
24
|
+
</p>
|
25
|
+
</section>
|
26
|
+
<section>
|
27
|
+
<title>THEMES</title>
|
28
|
+
<p>A <i>theme</i> is a collection of elements and styles
|
29
|
+
that determine the look and feel of the widget set.
|
30
|
+
Themes can be used to:
|
31
|
+
</p>
|
32
|
+
<ul>
|
33
|
+
<li>Isolate platform differences (X11 vs. classic Windows vs. XP vs. Aqua ...)
|
34
|
+
</li>
|
35
|
+
<li>Adapt to display limitations (low-color, grayscale, monochrome, tiny screens)
|
36
|
+
</li>
|
37
|
+
<li>Accessibility (high contrast, large type)
|
38
|
+
</li>
|
39
|
+
<li>Application suite branding
|
40
|
+
</li>
|
41
|
+
<li>Blend in with the rest of the desktop (Gnome, KDE, Java)
|
42
|
+
</li>
|
43
|
+
<li>And, of course: eye candy.
|
44
|
+
</li>
|
45
|
+
</ul>
|
46
|
+
</section>
|
47
|
+
<section>
|
48
|
+
<title>ELEMENTS</title>
|
49
|
+
<p>An <i>element</i> displays an individual part of a widget.
|
50
|
+
For example, a vertical scrollbar widget contains <b>uparrow</b>,
|
51
|
+
<b>downarrow</b>, <b>trough</b> and <b>slider</b> elements.
|
52
|
+
</p>
|
53
|
+
<p>Element names use a recursive dotted notation.
|
54
|
+
For example, <b>uparrow</b> identifies a generic arrow element,
|
55
|
+
and <b>Scrollbar.uparrow</b> and <b>Combobox.uparrow</b> identify
|
56
|
+
widget-specific elements.
|
57
|
+
When looking for an element, the style engine looks for
|
58
|
+
the specific name first, and if an element of that name is
|
59
|
+
not found it looks for generic elements by stripping off
|
60
|
+
successive leading components of the element name.
|
61
|
+
</p>
|
62
|
+
<p>Like widgets, elements have <i>options</i> which
|
63
|
+
specify what to display and how to display it.
|
64
|
+
For example, the <b cat="AMBIGUOUS widget canvasitemtype cmd">text</b> element
|
65
|
+
(which displays a text string) has
|
66
|
+
<b>-text</b>, <b>-font</b>, <b>-foreground</b>, <b>-background</b>,
|
67
|
+
<b>-underline</b>, and <b>-width</b> options.
|
68
|
+
The value of an element option is taken from:
|
69
|
+
</p>
|
70
|
+
<ul>
|
71
|
+
<li>An option of the same name and type in the widget containing the element;
|
72
|
+
</li>
|
73
|
+
<li>A dynamic setting specified by <b>style map</b> and the current state;
|
74
|
+
</li>
|
75
|
+
<li>The default setting specified by <b>style configure</b>; or
|
76
|
+
</li>
|
77
|
+
<li>The element's built-in default value for the option.
|
78
|
+
</li>
|
79
|
+
</ul>
|
80
|
+
</section>
|
81
|
+
<section>
|
82
|
+
<title>LAYOUTS</title>
|
83
|
+
<p>A <i>layout</i> specifies which elements make up a widget
|
84
|
+
and how they are arranged.
|
85
|
+
The layout engine uses a simplified version of the <cmd>pack</cmd>
|
86
|
+
algorithm: starting with an initial cavity equal to the size
|
87
|
+
of the widget, elements are allocated a parcel within the cavity along
|
88
|
+
the side specified by the <b>-side</b> option,
|
89
|
+
and placed within the parcel according to the <b>-sticky</b>
|
90
|
+
option.
|
91
|
+
For example, the layout for a horizontal scrollbar
|
92
|
+
</p>
|
93
|
+
<example>
|
94
|
+
ttk::style layout Horizontal.TScrollbar {
|
95
|
+
Scrollbar.trough -children {
|
96
|
+
Scrollbar.leftarrow -side left -sticky w
|
97
|
+
Scrollbar.rightarrow -side right -sticky e
|
98
|
+
Scrollbar.thumb -side left -expand true -sticky ew
|
99
|
+
}
|
100
|
+
}
|
101
|
+
</example>
|
102
|
+
<p>By default, the layout for a widget is the same as its class name.
|
103
|
+
Some widgets may override this (for example, the <b>ttk::scrollbar</b>
|
104
|
+
widget chooses different layouts based on the <b>-orient</b> option).
|
105
|
+
</p>
|
106
|
+
</section>
|
107
|
+
<section>
|
108
|
+
<title>STATES</title>
|
109
|
+
<p>In standard Tk, many widgets have a <b>-state</b> option
|
110
|
+
which (in most cases) is either <b>normal</b> or <b>disabled</b>.
|
111
|
+
Some widgets support additional states, such
|
112
|
+
as the <b cat="AMBIGUOUS widget cmd">entry</b> widget which has a <b>readonly</b> state
|
113
|
+
and the various flavors of buttons which have <b>active</b> state.
|
114
|
+
</p>
|
115
|
+
<p>The Tile widget set generalizes this idea:
|
116
|
+
every widget has a bitmap of independent state flags.
|
117
|
+
Widget state flags include <b>active</b>, <b>disabled</b>,
|
118
|
+
<b>pressed</b>, <cmd>focus</cmd>, etc.,
|
119
|
+
(see <i>widget(n)</i> for the full list of state flags).
|
120
|
+
</p>
|
121
|
+
<p>Instead of a <b>-state</b> option, every widget now has
|
122
|
+
a <b>state</b> widget command which is used to set or query
|
123
|
+
the state.
|
124
|
+
A <i>state specification</i> is a list of symbolic state names
|
125
|
+
indicating which bits are set, each optionally prefixed with an
|
126
|
+
exclamation point indicating that the bit is cleared instead.
|
127
|
+
</p>
|
128
|
+
<p>For example, the class bindings for the <b>ttk::button</b>
|
129
|
+
widget are:
|
130
|
+
</p>
|
131
|
+
<example>
|
132
|
+
bind TButton <Enter> { %W state active }
|
133
|
+
bind TButton <Leave> { %W state !active }
|
134
|
+
bind TButton <ButtonPress-1> { %W state pressed }
|
135
|
+
bind TButton <Button1-Leave> { %W state !pressed }
|
136
|
+
bind TButton <Button1-Enter> { %W state pressed }
|
137
|
+
bind TButton <ButtonRelease-1> \
|
138
|
+
{ %W instate {pressed} { %W state !pressed ; %W invoke } }
|
139
|
+
</example>
|
140
|
+
<p>This specifies that the widget becomes <b>active</b> when
|
141
|
+
the pointer enters the widget, and inactive when it leaves.
|
142
|
+
Similarly it becomes <b>pressed</b> when the mouse button is pressed,
|
143
|
+
and <b>!pressed</b> on the ButtonRelease event.
|
144
|
+
In addition, the button unpresses if
|
145
|
+
pointer is dragged outside the widget while Button-1 is held down,
|
146
|
+
and represses if it's dragged back in.
|
147
|
+
Finally, when the mouse button is released, the widget's
|
148
|
+
<b>-command</b> is invoked, but only if the button is currently
|
149
|
+
in the <b>pressed</b> state.
|
150
|
+
(The actual bindings are a little more complicated than the above,
|
151
|
+
but not by much).
|
152
|
+
</p>
|
153
|
+
<p><i>Note to self: rewrite that paragraph. It's horrible.</i>
|
154
|
+
</p>
|
155
|
+
</section>
|
156
|
+
<section>
|
157
|
+
<title>STYLES</title>
|
158
|
+
<p>Each widget is associated with a <i>style</i>,
|
159
|
+
which specifies values for element options.
|
160
|
+
Style names use a recursive dotted notation like layouts and elements;
|
161
|
+
by default, widgets use the class name to look up a style in the current theme.
|
162
|
+
For example:
|
163
|
+
</p>
|
164
|
+
<example>
|
165
|
+
ttk::style configure TButton \
|
166
|
+
-background #d9d9d9 \
|
167
|
+
-foreground black \
|
168
|
+
-relief raised \
|
169
|
+
;
|
170
|
+
</example>
|
171
|
+
<p>Many elements are displayed differently depending on the widget state.
|
172
|
+
For example, buttons have a different background when they are active,
|
173
|
+
a different foreground when disabled, and a different relief when pressed.
|
174
|
+
The <b>style map</b> command specifies dynamic option settings
|
175
|
+
for a particular style:
|
176
|
+
</p>
|
177
|
+
<example>
|
178
|
+
ttk::style map TButton \
|
179
|
+
-background [list disabled #d9d9d9 active #ececec] \
|
180
|
+
-foreground [list disabled #a3a3a3] \
|
181
|
+
-relief [list {pressed !disabled} sunken] \
|
182
|
+
;
|
183
|
+
</example>
|
184
|
+
</section>
|
185
|
+
<seealso>
|
186
|
+
<ref>widget(n)</ref>
|
187
|
+
<ref>style(n)</ref>
|
188
|
+
<ref></ref>
|
189
|
+
<ref href="http://purl.org/tcl/tip/48">TIP #48
|
190
|
+
</ref>
|
191
|
+
</seealso>
|
192
|
+
</manpage>
|