summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Separated Style into MStyle and IStyle to save some memory.treectrl2006-10-041-356/+827
| | | | | ElementLink -> MElementLink and IElementLink. Rowlabels use styles too, so they get updated when styles/elements change.
* Moved ItemTags and TagExpr stuff to tkTreeCtrl.h and tkTreeUtils.c.treectrl2006-10-041-1062/+406
| | | | | | | | Added -tags option to items. Renamed [tag] to [item tag]. Removed unused fields from Item and Column to save a bit of memory. Cleaned up TreeItemList_FromObj a bit. Allow tag expressions to be the first part of an item description without using the "tag" keyword. Rename TreeForEach stuff to ItemForEach.
* Added TreeRowLabel field/arg.treectrl2006-10-042-4/+42
|
* Arrange and draw rowlabels.treectrl2006-10-041-241/+664
| | | | | | Use Tree_ContentXXX macros. Fix display bug when scrolling more than a screenful (pixels might be copied over the borders). Draw -rowproxy like -columnproxy.
* New treectrl options: -rowlabelresize, -rowlabelwidth, -minrowlabelwidth, ↵treectrl2006-10-041-41/+107
| | | | | | | | | | -maxrowlabelwidth, -rowlabelprefix, -rowproxy, -showrowlabels. Added [rowlabel] command. Moved [tag] command to [item tag] since columns and rowlabels have tags too. [identify] command may return "rowlabel ...". Use Tree_ContentXXX macros. Moved TreeStyle_Init out of package init routine into treectrl create routine because it initialized TreeCtrl.styleOptionTable now (before it did nothing).
* TreeItemList stuff renamed to TreePtrList so columns and rowlabels can use them.treectrl2006-10-041-25/+219
| | | | | | | Added TreeCtrl.columnLast to point to the rightmost user-made column. New treectrl options: -rowlabelresize, -rowlabelwidth, -minrowlabelwidth, -maxrowlabelwidth, -rowlabelprefix, -rowproxy, -showrowlabels. Various declarations for handling rowlabels. Move TagInfo and TagExpr from tkTreeItem.c.
* The -tag option is now -tags and uses a TagInfo struct.treectrl2006-10-041-326/+923
| | | | | | | | "tail" is no longer a tag; it remains a keyword in column descriptions. Added Column.prev to make the list of columns double-linked. Allow column descriptions to refer to multiple columns. Added [column tag] command. [column id] returns a list of matching columns.
* Set ElementArgs.display.bounds in two places to support clipping of window ↵treectrl2006-09-271-3/+27
| | | | elements.
* Rewrote TreeItem_UpdateWindowPositions to respect column spans (code is ↵treectrl2006-09-271-1/+71
| | | | mostly the same as TreeItem_Draw).
* Added -clip option to window element to support clipping of windows.treectrl2006-09-271-6/+154
|
* Added ElementArgs.display.bounds field to support clipping window elements.treectrl2006-09-271-1/+2
|
* Move drawableX/YOrigin statements where they belong.treectrl2006-09-271-12/+46
| | | | Rewrote Tree_InvalidateRegion to make screen updates more efficient.
* Added [tag] command.treectrl2006-09-241-67/+1159
| | | | | | | | | | Added [item descendants] command. Added "descendants" modifier to item descriptions. Added -tags option to [item create]. TagExpr_xxx routines added for evaluating tag expressions. Code was lifted from theTk Canvas. Created a struct for holding info about qualifiers in item descriptions and added a new qualifiers"tag" and "!visible". Allow keyword "tag" to be the first word in an item description. "all" may now be followed by qualifiers in item descriptions.
* Added [tag] command.treectrl2006-09-241-3/+9
|
* Declare TreeTagCmd.treectrl2006-09-241-1/+2
|
* Use new Tree_StateFromListObj for getting state flags from a list object.treectrl2006-09-221-11/+2
|
* Added Tree_StateFromListObj.treectrl2006-09-222-2/+43
|
* Use new Tree_StateFromListObj for getting state flags from a list object.treectrl2006-09-221-410/+665
| | | | | | | | | | | | | | | Added TreeForEach_xxx to make iterating over item-list arguments easier. Fix TreeItem_ListDescendants; it was appending the given item and skipping the last descendant. Rewrote the following commands to accept multi-item item descriptions: item element configure item image item style map item style set item state forcolumn item state set item remove item span item text
* Added various TreeItemList_xxx routines.treectrl2006-09-211-1/+167
|
* Use TreeItemList instead of various other data types.treectrl2006-09-211-82/+44
|
* Added Item.flags field for handling deleted items.treectrl2006-09-211-476/+605
| | | | | | | | | | | | | | | TreeItem_FromObj renamed to TreeItemList_FromObj. TreeItemList_FromObj: added "list", "range", "ancestors" and "children" keywords for matching multiple items. Added TreeItem_FirstAndLast, TreeItem_ListDescendants. [item create]: fixed bug where -nextsibling and -prevsibling options could specify an orphan item. Tree_DeselectHidden rewritten to use TreeItemList. TreeItemCmd: Use TreeItemList_FromObj to get lists of items to operate on instead of single items. [item expand], [item collapse], [item toggle]: Only operate on items which exist when the command is called, not any that might get created by <Expand> or <Collapse> binding scripts. Handle item descriptions that refer to multiple items. [item compare]: removed 2nd-arg code since argInfo[] was changed to handle an extra argument. [item configure]: Handle item descriptions that refer to multiple items. [item delete]: Handle item descriptions that refer to multiple items. Use TreeCtrl.preserveItemList to hold deleted items until any nested calls complete. [item enabled]: Handle item descriptions that refer to multiple items. [item id]: Handle item descriptions that refer to multiple items. Return a list of item ids instead of only one.
* Added DInfo.requests field to count calls to Tree_EventuallyRedraw.treectrl2006-09-211-130/+125
| | | | | | | Tree_Display: preserve the tree and items so binding scripts don't free them. Tree_Display: if <Scroll> or <ItemVisibility> scripts cause a redraw request, jump to the top of the routine and start redisplaying again. Tree_Display: the block of code handling itemVisHash was moved before any drawing code and rewritten to use TreeItemList. itemVisHash now uses TreeItems instead of item ids as indexes. Tree_Display: moved TreeItem_UpdateWindowPositions from the itemVisHash block down to the drawing block.
* [selection add], [selection clear] and [selection modify] rewritten to use ↵treectrl2006-09-211-293/+230
| | | | | | TreeItemList and related funcs instead of STATIC_ALLOC for handling lists of items. TreeCtrl.preserveItemXXX fields, Tree_PreserveItems and Tree_ReleaseItems added for managing deleted items.
* New data type TreeItemList and related funcs are used instead of ↵treectrl2006-09-211-6/+38
| | | | | | | | | STATIC_ALLOC for handling lists of items. Removed TreeCtrl.displayInProgress flag. Added TreeCtrl.preserveItemXXX fields, Tree_PreserveItems and Tree_ReleaseItems for managing deleted items. Added IFO_NOTORPHAN flag for rejecting orphans. Various TreeNotify_xxx routines changed to accept TreeItemList args.
* Generalized how the "visible" qualifier in item descriptions is handled, and ↵treectrl2006-09-161-133/+265
| | | | | | | | added a new qualifier "state xxx". The "state" qualifier filters out items which do not match a given list of states. Added [item enabled] command to set/get the "enabled" state of an item. Define TreeItem_GetEnabled. Fix typo in comment.
* Exclude !enabled items from the selection.treectrl2006-09-161-23/+20
| | | | Removed some unused code.
* Declare TreeItem_GetEnabled.treectrl2006-09-161-1/+2
|
* Removed unused code.treectrl2006-09-081-52/+20
| | | | Added -visible option to [item count].
* Bumped copyright to 2006.treectrl2006-09-0515-30/+38
|
* * generic/tkTreeDisplay.c (Tree_Display): Allow Tree_DeselectHiddenhobbs22006-08-163-16/+31
| | | | | | | * generic/tkTreeItem.c (Item_Configure): to be deferred to next * generic/tkTreeCtrl.h: redraw by calling Tree_DInfoChanged(tree, DINFO_REDO_SELECTION). Significantly improves performance of multiple item visibility changes.
* * generic/tkTreeItem.c (Item_Configure): on checking for -visible,hobbs22006-08-151-2/+3
| | | | verify that the value actually changed, because it can be expensive.
* * generic/tkTreeCtrl.c (TreeWidgetCmd): set the tk caret when thehobbs22006-08-041-1/+7
| | | | active item changes.
* Fix cut-and-paste error in comment.treectrl2006-07-111-2/+2
|
* Playing around with span widths.treectrl2006-07-111-1/+14
|
* Did some work on better distributing space when a style spans multiple ↵treectrl2006-07-111-50/+232
| | | | | | | | | | columns. Not used yet. Renamed SortData.count to columnCount for readability. Reformatted some function headers. CompareProc: identity test to save work. find_pivot: bug fix. ItemSortCmd: fix memory leak with -command option.
* * generic/tkTreeCtrl.c (LoupeCmd): correct loupe on OS X x86.hobbs22006-04-061-1/+16
|
* Improve appearance of list header under OSX/Aqua. [Patch 1356447]treectrl2005-11-181-2/+22
|
* Fix compile issue on Mac [Patch 1311956]treectrl2005-10-151-1/+3
|
* Format fix with braces.treectrl2005-09-281-6/+4
|
* Fix a comment typo.treectrl2005-09-281-2/+2
|
* * generic/tkTreeCtrl.c (LoupeCmd): don't capture display (ithobbs22005-09-281-3/+1
| | | | causes flashing) on OS X.
* Hide cursor on OS X and capture display while grabbinghobbs22005-09-271-1/+5
|
* * generic/tkTreeCtrl.c (LoupeCmd): add OS X support. Correcthobbs22005-09-271-24/+110
| | | | | Win32 code to use grab size constraints and honor the virtual system metrics (OS X needs similar correction still).
* reorg used vars into right areashobbs22005-09-251-4/+4
|
* * demos/demo.tcl: just check for 'loupe' to run loupe demohobbs22005-09-251-32/+91
| | | | | * generic/tkTreeCtrl.c (LoupeCmd): add Win32 code to enable loupe functionality on Windows.
* Removed declarations of unused functions.treectrl2005-09-211-4/+1
|
* Add Tcl block comments above each function. Comment function arguments.treectrl2005-09-211-46/+778
|
* Add Tcl block comments above each function. Comment function arguments.treectrl2005-09-211-142/+1630
|
* Add Tcl block comments above each function. Comment function arguments.treectrl2005-09-191-80/+725
|
* Add Tcl block comments above each function. Comment function arguments.treectrl2005-09-171-17/+168
|