Check-in [027300a91d]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:merge with trunk
Timelines: family | ancestors | descendants | both | wtf-8-experiment
Files: files | file ages | folders
SHA1: 027300a91d63244875b94d11fb53a907b7d89015
User & Date: chw 2019-07-13 05:27:41
Context
2019-07-13
20:56
merge with trunk check-in: f7fcb93321 user: chw tags: wtf-8-experiment
05:27
merge with trunk check-in: 027300a91d user: chw tags: wtf-8-experiment
05:26
in TSB cheatsheet add notes about tsb::asciimath check-in: 7c79ecb7a4 user: chw tags: trunk
2019-07-12
16:49
cleanup after merge check-in: 0acaefd7b1 user: chw tags: wtf-8-experiment
Changes

Changes to assets/tksqlite0.5.13/tksqlite.tcl.

5630
5631
5632
5633
5634
5635
5636

5637
5638
5639
5640
5641
5642
5643
	ttk::frame .dbtree.f -style TEntry -border 2
	ttk::scrollbar .dbtree.f.y  -command {.dbtree.f.tree yview}

	ttk::treeview .dbtree.f.tree -pad 1 -show {tree} \
		-yscrollcommand {.dbtree.f.y set}
	bind .dbtree.f.tree <<TreeviewSelect>> {::Cmd::updateProperty}
	bind .dbtree.f.tree <<TreeviewOpen>>   {::Dbtree::openItem %W}

	Cmd::bindTextFocusTtkEntry .dbtree.f.tree .dbtree.f 
	
	# Flatten relief
	style layout Tree2 {
		Tree2.label -sticky nswe
	}
	style configure Tree2 -relief flat -background white







>







5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
	ttk::frame .dbtree.f -style TEntry -border 2
	ttk::scrollbar .dbtree.f.y  -command {.dbtree.f.tree yview}

	ttk::treeview .dbtree.f.tree -pad 1 -show {tree} \
		-yscrollcommand {.dbtree.f.y set}
	bind .dbtree.f.tree <<TreeviewSelect>> {::Cmd::updateProperty}
	bind .dbtree.f.tree <<TreeviewOpen>>   {::Dbtree::openItem %W}
	bind .dbtree.f.tree <<TreeviewToggle>> {::Dbtree::openItem %W}
	Cmd::bindTextFocusTtkEntry .dbtree.f.tree .dbtree.f 
	
	# Flatten relief
	style layout Tree2 {
		Tree2.label -sticky nswe
	}
	style configure Tree2 -relief flat -background white

Changes to jni/sdl2tk/doc/ttk_treeview.n.

469
470
471
472
473
474
475
476

477
478




479
480
481
482
483
484
485
Again, \fBcolumn #0 always refers to the tree column\fR.
.SH "VIRTUAL EVENTS"
.PP
The treeview widget generates the following virtual events.
.IP <<TreeviewSelect>>
Generated whenever the selection changes.
.IP <<TreeviewOpen>>
Generated just before setting the focus item to \fB\-open true\fR.

.IP <<TreeviewClose>>
Generated just after setting the focus item to \fB\-open false\fR.




.PP
The \fBfocus\fR and \fBselection\fR widget commands can be used
to determine the affected item or items.
'\" Not yet:
'\" In Tk 8.5, the affected item is also passed as the \fB\-detail\fR field
'\" of the virtual event.
.SH "STYLING OPTIONS"







|
>

|
>
>
>
>







469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
Again, \fBcolumn #0 always refers to the tree column\fR.
.SH "VIRTUAL EVENTS"
.PP
The treeview widget generates the following virtual events.
.IP <<TreeviewSelect>>
Generated whenever the selection changes.
.IP <<TreeviewOpen>>
Generated just before setting the focus item to \fB\-open true\fR
if the item has children.
.IP <<TreeviewClose>>
Generated just after setting the focus item to \fB\-open false\fR
if the item has children.
.IP <<TreeviewToggle>>
Generated just after setting the focus item if it has no children.
However, the state of \fB\-open\fR is not toggled automatically.
.PP
The \fBfocus\fR and \fBselection\fR widget commands can be used
to determine the affected item or items.
'\" Not yet:
'\" In Tk 8.5, the affected item is also passed as the \fB\-detail\fR field
'\" of the virtual event.
.SH "STYLING OPTIONS"

Changes to jni/sdl2tk/library/ttk/treeview.tcl.

334
335
336
337
338
339
340


341


342
343
344
345
346
347
348
349
}

## Toggle -- toggle opened/closed state of item
#
proc ttk::treeview::Toggle {w item} {
    # don't allow toggling on indicators that
    # are not present in front of leaf items


    if {[$w children $item] == {}} {


        return
    }
    # not a leaf, toggle!
    if {[$w item $item -open]} {
	CloseItem $w $item
    } else {
	OpenItem $w $item
    }







>
>

>
>
|







334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
}

## Toggle -- toggle opened/closed state of item
#
proc ttk::treeview::Toggle {w item} {
    # don't allow toggling on indicators that
    # are not present in front of leaf items
    # but let the caller decide by its handling
    # of the <<TreeviewToggle>> event
    if {[$w children $item] == {}} {
	$w focus $item
	event generate $w <<TreeviewToggle>>
	return
    }
    # not a leaf, toggle!
    if {[$w item $item -open]} {
	CloseItem $w $item
    } else {
	OpenItem $w $item
    }

Changes to undroid/tsb/asciimath/pkgIndex.tcl.

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	    unset script
	}
	close $f
    }
    if {[info exists script]} {
	catch {$::W call Wjs $script}
	catch {$::W call asciimath.init}
	# Needed for MathML in IE?
	append ::tsb::D_wrscr {
	    <object id="mathplayer"
	    classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
	    </object>
	    <?import namespace="m" implementation="#mathplayer"?>
	}
    }
    package provide tsb::asciimath 0.1
}} $dir]







<
<
<
<
<
<
<



4
5
6
7
8
9
10







11
12
13
	    unset script
	}
	close $f
    }
    if {[info exists script]} {
	catch {$::W call Wjs $script}
	catch {$::W call asciimath.init}







    }
    package provide tsb::asciimath 0.1
}} $dir]

Changes to undroid/tsb/examples/cheatsheet.tsb.

1
























2
3
4
5
6
7
8
9
..
91
92
93
94
95
96
97
98
1 {#HTML
























<center><h2>Taygete Scrap Book Cheat Sheet<br><br></h2></center>} 2 {h3 "Important (internal) global variables"} 3 {table {{global variable}} [info global {[A-Z]*}]} 4 {#HTML
<dl>
 <dt><b>ID</b></dt>
 <dd>The current input field during evaluation, an integer number.</dd>
 <dt><b>W</b></dt>
 <dd>The Webview for displaying the page.</dd>
 <dt><b>H</b></dt>
 <dd>The history array of input fields, keys are integer numbers
................................................................................
click on the corresponding output field(s) makes a hidden input
field visible and thus editable, again.</p>} 14 {h3 "Output Fields"} 15 {#HTML
<p>Each input field has two corresponding output fields which are
visible/non-empty depending on context. One output field receives
preformatted text, either the result or the error message of a
command evaluation. The other output field receives HTML, e.g.
for displaying an image or for the <code>#HTML</code> and
<code>#MARKDOWN</code> formats from the input field.</p>} 16 {tsb::save cheatsheet.tsb}
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|







 







|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
...
115
116
117
118
119
120
121
122
17 {#HTML
<p>MathML can be typeset in <code>#HTML</code> input fields
when the optional <code>tsb::asciimath</code> package is
loaded. However, this does not work on Windows and requires
for correct rendering of saved HTML
(see <code>tsb::wrhtml</code>) a MathML capable browser, e.g.
FireFox and Safari.</p>} 18 {package require tsb::asciimath} 1 {#HTML
<center><h2>Taygete Scrap Book Cheat Sheet<br><br></h2></center>} 20 {tsb::save cheatsheet.tsb} 19 {#HTML
<p>ASCIIMath allows to write matrices, e.g.</p>
<pre>
 \` [[a,b],[c,d]] \`
</pre>
<p>becomes to</p>

<p> ` [[a,b],[c,d]] ` </p>

<p> or sums, e.g. </p>
<pre>
 \` sum_(i=0)^N \`
</pre>
<p>becomes to</p>

<p> ` sum_(i=0)^N ` </p>

<p>For more information on ASCIIMath syntax, refer to
the website https://www.asciimath.org</p>} 2 {h3 "Important (internal) global variables"} 3 {table {{global variable}} [info global {[A-Z]*}]} 4 {#HTML
<dl>
 <dt><b>ID</b></dt>
 <dd>The current input field during evaluation, an integer number.</dd>
 <dt><b>W</b></dt>
 <dd>The Webview for displaying the page.</dd>
 <dt><b>H</b></dt>
 <dd>The history array of input fields, keys are integer numbers
................................................................................
click on the corresponding output field(s) makes a hidden input
field visible and thus editable, again.</p>} 14 {h3 "Output Fields"} 15 {#HTML
<p>Each input field has two corresponding output fields which are
visible/non-empty depending on context. One output field receives
preformatted text, either the result or the error message of a
command evaluation. The other output field receives HTML, e.g.
for displaying an image or for the <code>#HTML</code> and
<code>#MARKDOWN</code> formats from the input field.</p>} 16 {h3 "Using ASCIIMath in #HTML markup"}