summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Consolidated the column-layout code, and applied the -uniform and -weight ↵treectrl2006-10-271-269/+474
| | | | options to locked columns.
* The -weight option affects how extra space is allocated amongst -expand columns.treectrl2006-10-271-5/+30
|
* Added -uniform and -weight options to columns, which operate the same as the ↵treectrl2006-10-272-2/+224
| | | | [grid] geometry manager.
* Don't allocate an item-column if setting its style to NULL.treectrl2006-10-261-4/+6
|
* Changed dynamic-option code to use AllocHax_xxx.treectrl2006-10-264-46/+130
|
* Nitpicks.treectrl2006-10-261-5/+5
|
* Column description of "all" doesn't return the tail column if the command ↵treectrl2006-10-261-53/+57
| | | | | | prohibits the tail. Fixed crash with "range a b" when a or b was the tail column.
* Declare DynamicOption_AllocIfNeeded (used by ElementText).treectrl2006-10-251-3/+5
|
* Moved 4 fields out of ElementText into a dynamic-option record.treectrl2006-10-251-77/+119
|
* Tree_GetImage now uses reference counting on images. Tree_FreeImage ↵treectrl2006-10-182-23/+85
| | | | decrements the reference count and frees the image when needed.
* DumpDInfo sets the interpreter result instead of calling dbwin.treectrl2006-10-181-9/+21
|
* Per-state images call Tree_FreeImage to decrement the reference count on an ↵treectrl2006-10-181-36/+37
| | | | | | | image. Previously the image instance was not freed until the tree was destroyed. Fiddled with AllocHax code. AllocHax_Stats dumps the result to the interpreter directly, instead of returning an malloc'd string.
* Merged with BRANCH_dynamic_options.treectrl2006-10-185-204/+1313
|
* AllocHax_xxx takes a Tk_Uid arg for gathering stats on memory allocations.treectrl2006-10-161-20/+29
| | | | TreeItem_UpdateWindowPositions only considers columns that are onscreen; this is possible because of the changes in tkTreeStyle.c.
* AllocHax_xxx takes a Tk_Uid arg for gathering stats on memory allocations.treectrl2006-10-161-28/+43
| | | | Lowered memory usage by lowering the "round up" argument to AllocHax_CAlloc.
* Fixed "state" qualifier in column descriptions.treectrl2006-10-161-129/+142
|
* AllocHax_xxx takes a Tk_Uid arg for gathering stats on memory allocations.treectrl2006-10-162-63/+157
|
* Added [debug alloc] command to display info about memory allocations.treectrl2006-10-161-3/+15
|
* Track which item-columns are onscreen so that window elements are unmapped ↵treectrl2006-10-161-35/+288
| | | | when columns are moved, hidden or obscurred.
* Remove rowlabels.treectrl2006-10-149-3987/+20
|
* Renamed TreeItemList_ItemN to TreeItemList_Nth.treectrl2006-10-141-340/+458
| | | | | | | | | Added IFO_LIST_ALL flag and renamed other IFO_xxx flags. Moved ItemForEach delcarations to tkTreeCtrl.h. Added TreeItem_GetSpans so display code can invalidate columns properly. Use Tree_AreaBbox for getting the bounds when displaying window elements. Fixed [item element], [item style], [item configure] and [item enabled] commands using an arbitrary item if multiple items were specified but forbidden. Rewrote [item element configure], [item image], [item span], [item state forcolumn], [item style map], [item style set] and [item text] to use multi-column column descriptions.
* Renamed TreeItemList_ItemN to TreeItemList_Nth.treectrl2006-10-142-6/+6
|
* Fix Tree_InvalidateItemDInfo not considering column spans.treectrl2006-10-141-739/+724
| | | | | | Added Tree_AreaBbox for getting the bounds of onscreen areas. Renamed TREE_HIT_xxx to TREE_AREA_xxx. Much improvement in displaying locked columns.
* Renamed IFO_xxx flags.treectrl2006-10-141-2/+2
|
* TreeColumn_FromObj sets CFO_NOT_MANY by default.treectrl2006-10-141-50/+221
| | | | | | | | | Added -indicatorside option to [column dragconfigure]. Added CFO_LIST_ALL flag. Moved ColumnForEach declarations to tkTreeCtrl.h. Disallow changing the -lock option of the tail column. Rewrote [column delete] to use multi-column descriptions. Fix [column move] to allow proper reordering of locked columns.
* [contentbox] returns an empty string if the content area is <= 0 height or ↵treectrl2006-10-141-75/+91
| | | | | | | | width. Updated the deprecated [expand], [collpase] and [toggle] to agree with the preferred [item expand] etc. Renamed IFO_xxx flags. Renamed TreeItemList_ItemN to TreeItemList_Nth.
* Added -indicatorside option to [column dragconfigure].treectrl2006-10-141-12/+65
| | | | | | Renamed IFO_xxx flags. Moved ItemForEach and ColumnForEach from their respective files. Renamed TREE_HIT_xxx to TREE_AREA_xxx.
* Added StyleDrawArgs.bounds for clipping window elements.treectrl2006-10-111-43/+56
| | | | Tree_InvalidateItemDInfo and Tree_InvalidateColumnWidth now take a TreeColumn arg.
* Tree_ItemsInArea returns a TreeItemList.treectrl2006-10-111-9/+11
|
* Added column option -lock.treectrl2006-10-111-52/+193
| | | | Tree_InvalidateItemDInfo and Tree_InvalidateColumnWidth now take a TreeColumn arg.
* Fixed a bug with window elements when another geometry manager takes control ↵treectrl2006-10-111-7/+18
| | | | of a managed window.
* Added column option -lock.treectrl2006-10-111-1/+5
|
* Added column option -lock.treectrl2006-10-111-85/+999
| | | | | | | | Added Tree_HitTest to determine the area of the window containing a point. Tree_ItemsInArea returns a TreeItemList. Changed DInfo.columnWidth to track column, offset and width. Tree_InvalidateItemDInfo can now invalidate a single column rather than the entire item. Tree_InvalidateRegion invalidates only the parts of the item overlapped by the region.
* Added column option -lock.treectrl2006-10-111-13/+85
| | | | | Added -drawcolor to [debug configure]. Added -rowproxy option for resizing rows.
* Added column option -lock.treectrl2006-10-111-42/+97
| | | | | | Added -drawcolor to [debug configure]. Added [debug expose] command. Added -rowproxy option for resizing rows.
* Added column option -lock.treectrl2006-10-111-190/+850
| | | | | | | Fixed bug with "prev" in column descriptions. Added "list" and "range" keywords to column descriptions. Added TreeColumn_Bbox and Tree_HeaderUnderPoint. Tree_InvalidateColumnWidth/Height accept a TreeColumn instead of an index.
* Use the new PerStateInfo custom option, eliminating some code.treectrl2006-10-051-53/+21
| | | | Added a TreeCtrl arg to TagInfo_xxx.
* Use the new PerStateInfo custom option, eliminating some code.treectrl2006-10-051-36/+12
|
* Added AllocHax_Realloc.treectrl2006-10-051-7/+15
| | | | | | Changed TagInfo_xxx to accept a TreeCtrl arg and use AllocHax_xxx for a big speedup. Created a PerStateInfo custom option type. Added 2 fields to TreeCtrl to support larger-than-a-double custom options.
* Fix a bug with -orient horizontal and rowlabels.treectrl2006-10-051-2/+11
|
* Use the new PerStateInfo custom option, eliminating a lot of code.treectrl2006-10-051-263/+80
|
* Changed TagInfo_xxx to accept a TreeCtrl arg.treectrl2006-10-052-11/+11
|
* Added AllocHax_Realloc.treectrl2006-10-051-18/+290
| | | | | Changed TagInfo_xxx to accept a TreeCtrl arg and use AllocHax_xxx for a big speedup. Created a PerStateInfo custom option type.
* New file.treectrl2006-10-041-0/+3107
|
* Wrap various fields in TREECTRL_DEBUG define to save some memory.treectrl2006-10-041-92/+1036
| | | | | | TreeItemList_xxx renamed to TreePtrList_xxx so columns and rowlabels can use these routines. TagExpr_xxx moved from tkTreeItem.c TagInfo_xxx added.
* 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).