Check-in [f08d8e2da6]

Login
Bounty program for improvements to Tcl and certain Tcl packages.

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

Overview
Comment:Update 552 to match latest cellselection implementation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f08d8e2da6c921af8f9402634e42d37a38637b827f9f147cde907c351613585f
User & Date: pspjuth 2020-03-16 23:37:19
Context
2020-03-18
15:56
Started TIP 570: gesture support for finger scrolling and "pinch to zoom" check-in: 46186ab755 user: oehhar tags: trunk
2020-03-16
23:37
Update 552 to match latest cellselection implementation check-in: f08d8e2da6 user: pspjuth tags: trunk
2020-03-13
19:22
TIP 569 is Accepted with vote 8-0-0. check-in: e25ccc2330 user: dgp tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tip/552.md.

52
53
54
55
56
57
58

59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Cell selection is independent of item selection.

Cells are identified with a two element list with item id and column id.

A new subcommand **cellselection** is added, mirroring the present **selection**.
In addition the **cellselection** commands get
a version with two arguments for selecting/modifying a rectangular range.


Since for **selection** the itemList can also be a single item (by nature of
how lists work for simple values), this is also allowed for a cellList since
a two cell list can be clearly distinguished from the two element list that
is one cell.

Only cells in displayed columns are allowed to be selected. Any change to
**-columns** or **-displaycolumns** clears the cell selection to avoid
ambiguous state.

A new option **-selecttype** *type* is added to direct default bindings to
use either item selection or cell selection. It takes values `item` or `cell`.

The **identify** subcommand is updated with the **cell** option.

Default bindings are updated to use these features.






>






<
|
<







52
53
54
55
56
57
58
59
60
61
62
63
64
65

66

67
68
69
70
71
72
73
Cell selection is independent of item selection.

Cells are identified with a two element list with item id and column id.

A new subcommand **cellselection** is added, mirroring the present **selection**.
In addition the **cellselection** commands get
a version with two arguments for selecting/modifying a rectangular range.
Only cells in displayed columns are allowed for rectangular selection.

Since for **selection** the itemList can also be a single item (by nature of
how lists work for simple values), this is also allowed for a cellList since
a two cell list can be clearly distinguished from the two element list that
is one cell.


Any change to **-columns** clears the cell selection to avoid ambiguous state.


A new option **-selecttype** *type* is added to direct default bindings to
use either item selection or cell selection. It takes values `item` or `cell`.

The **identify** subcommand is updated with the **cell** option.

Default bindings are updated to use these features.