summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeCtrl.c
Commit message (Collapse)AuthorAgeFilesLines
* Created a stack of TkRegions to avoid creating/destroying them repeatedly.treectrl2006-12-061-1/+5
| | | | Fixed a leak on X11 where the clipping region was not being freed after drawing dotted rectangles.
* Renamed the 2 PerStateGC_xxx functions since they had nothing to do with ↵treectrl2006-12-061-1/+2
| | | | per-state options. Call the renamed functions from several places where GCs are used. Removed ElementText.gc to save some more memory.
* Add missing check of tree->useTheme.treectrl2006-12-041-2/+4
|
* Theme-related changes to support tile-aware treectrl.treectrl2006-12-041-12/+46
|
* Removed some unnecessary casts.treectrl2006-12-021-15/+20
| | | | Call TreeTheme_ComputeGeometry to let themes handle borders.
* The item option -button may now be "auto" in which case a button is drawn ↵treectrl2006-11-301-4/+3
| | | | only when the item has a child whose -visible option is true.
* New command [bbox].treectrl2006-11-211-13/+40
|
* Added per-tree theme data.treectrl2006-11-191-5/+15
|
* Added 2 optional arguments to [selection get] to perform lindex- and ↵treectrl2006-11-191-1/+61
| | | | lrange-like operations on the sorted list of selected items.
* Use TreeItem_FirstAndLast in the deprecated [range] command.treectrl2006-11-151-17/+2
|
* Changed 2 incorrect 'return' statements to 'goto'.treectrl2006-11-101-3/+3
|
* Moved checks of tree->updateIndex into Tree_UpdateItemIndex.treectrl2006-11-091-3/+2
|
* Remove COLUMN_LOCK-related code.treectrl2006-11-071-22/+3
|
* Remove NEW_SPAN_CODE-related code.treectrl2006-11-071-7/+1
|
* Keep an array of column indexes for each item that has at least one span > ↵treectrl2006-11-061-3/+30
| | | | | | 1. This is to avoid constantly recalculating the list of spans for displayed items. The list of spans is recalculated whenever [item span] changes a span, or whenever a column is created/deleted/moved or has its -lock or -visible option changed. DumpDInfo now takes an index to indicate which kind of information to return.
* Deprecated the treectrl option -defaultstyle.treectrl2006-11-031-4/+17
| | | | Added column option -itemstyle (replaces -defaultstyle).
* Fix crash when destroying a treectrl with non-empty -backgroundimage.treectrl2006-11-031-9/+22
| | | | Fix possible memory leak when an error occurs configuring -backgroundimage and/or -defaultstyles.
* BG_MODE_INDEX and BG_MODE_VISINDEX wrapped in #ifdef DEPRECATED.treectrl2006-11-031-4/+15
| | | | | | Fixed handling of Tcl_Obj with per-state custom options. Memory leak: TreeCtrl.defaultStyles wasn't freed when the treectrl was destroyed. Fix compilation when ALLOC_HAX is undefined.
* Changed handling of deleted items (again) so that the item is removed from ↵treectrl2006-10-301-15/+50
| | | | the heirarchy of known items but the record is not freed until it is not in use.
* Restore old behaviour of deprecated [expand], [collapse] and [toggle] ↵treectrl2006-10-301-26/+29
| | | | allowing zero or more item arguments.
* [identify] now takes pixel x/y arguments, rather than plain integers.treectrl2006-10-301-3/+3
|
* Renamed columnCustomOption_xxx.treectrl2006-10-291-3/+3
|
* Deprecated commands and options are wrapped inside #ifdef DEPRECATED.treectrl2006-10-281-11/+61
|
* Tree_GetImage now uses reference counting on images. Tree_FreeImage ↵treectrl2006-10-181-20/+80
| | | | decrements the reference count and frees the image when needed.
* Added [debug alloc] command to display info about memory allocations.treectrl2006-10-161-3/+15
|
* Remove rowlabels.treectrl2006-10-141-78/+7
|
* [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 column option -lock.treectrl2006-10-111-42/+97
| | | | | | Added -drawcolor to [debug configure]. Added [debug expose] command. Added -rowproxy option for resizing rows.
* Use the new PerStateInfo custom option, eliminating some code.treectrl2006-10-051-36/+12
|
* 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).
* Added [tag] command.treectrl2006-09-241-3/+9
|
* Added Tree_StateFromListObj.treectrl2006-09-221-1/+41
|
* [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.
* Exclude !enabled items from the selection.treectrl2006-09-161-23/+20
| | | | Removed some unused code.
* Bumped copyright to 2006.treectrl2006-09-051-2/+2
|
* * generic/tkTreeCtrl.c (TreeWidgetCmd): set the tk caret when thehobbs22006-08-041-1/+7
| | | | active item changes.
* * generic/tkTreeCtrl.c (LoupeCmd): correct loupe on OS X x86.hobbs22006-04-061-1/+16
|
* Fix compile issue on Mac [Patch 1311956]treectrl2005-10-151-1/+3
|
* * 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.
* Add Tcl block comments above each function. Comment function arguments.treectrl2005-09-211-46/+778
|
* Removed unused code.treectrl2005-09-151-38/+3
| | | | Changed error message for 2 commands.
* Fixed a typo.treectrl2005-09-071-2/+2
|
* Whitespace nitpick with ...treectrl2005-07-121-6/+6
|
* Change TreeItem_Identify to write to a string instead of returning an ↵treectrl2005-07-071-1/+7
| | | | element name. Did this so the column can be determined by the item using its span info.
* New option -itemwidth, -itemwidthequal and -itemwidthmultiple to replace the ↵treectrl2005-07-051-3/+17
| | | | column options -stepwidth and -widthhack.
* Fixed possible performance problem with "selection clear" (hash tables get ↵treectrl2005-06-291-1/+12
| | | | bigger, but they never get smaller. It can take a while to iterate over all those empty buckets).