summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeUtils.c
Commit message (Collapse)AuthorAgeFilesLines
* Renamed many symbols to avoid collisions under ELF.treectrl2007-01-231-117/+118
| | | | Renamed Element to TreeElement_.
* Moved tclInt.h to the main header file.treectrl2007-01-211-5/+82
| | | | dbwin() now sets a global variable called dbwin with a string. The string can be ignored, printed to stdout, written to a log file, etc.
* Changed the way text elements display an ellipsis. At least 1 character plus ↵treectrl2006-12-231-36/+43
| | | | | | the ellipsis is displayed if the text element is squeezed. Previously the ellipsis would not be drawn once there wasn't room for 1 character plus the ellipsis. Fixed a layout bug with multi-line text elements when the unsqueezed element did not require a multi-line layout but the squeezed element did.
* Formatting of braces.treectrl2006-12-221-119/+60
|
* UNTESTED: Set the clipping region when drawing dotted rectangles under OSX.treectrl2006-12-061-5/+27
|
* Created a stack of TkRegions to avoid creating/destroying them repeatedly.treectrl2006-12-061-2/+61
| | | | 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-26/+28
| | | | per-state options. Call the renamed functions from several places where GCs are used. Removed ElementText.gc to save some more memory.
* DynamicOption_FindData returns void* to avoid lots of casts.treectrl2006-12-041-2/+2
|
* Added Tree_GetIntForIndex to handle "end?-offset?" indices.treectrl2006-12-021-9/+60
| | | | Removed some unnecessary casts.
* The item option -button may now be "auto" in which case a button is drawn ↵treectrl2006-11-301-1/+145
| | | | only when the item has a child whose -visible option is true.
* Testing SW_SCROLLCHILDREN.treectrl2006-11-221-1/+53
|
* New routine OptionSpec_Find is used to search an option table.treectrl2006-11-191-52/+182
| | | | Added a new custom option that stores a boolean value in a single bit.
* Always include tclInt.h to fix compilation under 8.5.treectrl2006-11-101-6/+31
| | | | Fixed incorrect duplicating of list objects in PerStateInfo_Undefine.
* Added DStringAppendf to append a formatted string to a dynamic string. Use ↵treectrl2006-11-061-4/+33
| | | | it in AllocHax_Stats.
* Deprecated the treectrl option -defaultstyle.treectrl2006-11-031-3/+97
| | | | Added column option -itemstyle (replaces -defaultstyle).
* Fixed handling of Tcl_Obj with per-state and dynamic custom options.treectrl2006-11-031-32/+103
| | | | | Fix compilation when ALLOC_HAX is undefined. Fix crash caused by double-freeing memory when freeing dynamic options.
* Added underline arg to TextLayout_Draw. [ Patch 1580928 ]treectrl2006-10-311-2/+18
|
* Fix a critical bug with OptionHax_Forget.treectrl2006-10-301-2/+2
|
* Fixed a bug with dynamic-option code incrementing the refcount of a NULL ↵treectrl2006-10-281-2/+3
| | | | Tcl_Object.
* Changed dynamic-option code to use AllocHax_xxx.treectrl2006-10-261-34/+115
|
* 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-181-21/+771
|
* AllocHax_xxx takes a Tk_Uid arg for gathering stats on memory allocations.treectrl2006-10-161-54/+149
|
* 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.
* 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.
* Added various TreeItemList_xxx routines.treectrl2006-09-211-1/+167
|
* Bumped copyright to 2006.treectrl2006-09-051-2/+2
|
* Add Tcl block comments above each function. Comment function arguments.treectrl2005-09-191-80/+725
|
* Converted to tab+space indentation.treectrl2005-09-161-1012/+1012
|
* #include <tclInt.h> on OSX for TCL_ALIGN definition.treectrl2005-09-141-1/+2
|
* Fixed alignment problem with allocated array of structures affecting some ↵treectrl2005-09-091-5/+5
| | | | systems.
* Commented AllocHax stuff. Changed how AllocHax_Free calculates the address ↵treectrl2005-09-071-13/+59
| | | | of the AllocElem using Tcl_DbCkfree() as a guide.
* Removed wipefree() function.treectrl2005-09-071-13/+6
| | | | | Replaced wipefree() calls with WIPEFREE(). AllocHax_Free(): replaced memset() with WIPE().
* Fix bug "[ 1237934 ] ColumnDrag problem". The ximage->red_mask etc were all ↵treectrl2005-07-151-10/+11
| | | | zeroes, causing an infinite loop.
* UnsetClipMask works around Tk_DrawChars not clearing the clip region on Win32.treectrl2005-07-071-1/+17
|
* Fixed unix compile issue. [BUG 1222277]treectrl2005-06-181-8/+23
| | | | Fixed per-state-info crash [BUG 1222419]
* Removed unused variable.treectrl2005-06-151-1/+5
|
* Keep a free list of TextLayout's.treectrl2005-06-131-7/+86
| | | | | Track the total width of a text layout to work around an issue in the "text" element type. AllocHax_Alloc doubles the size of allocated blocks from 16 up to 1024, instead of always using a fixed size of 128.
* Use ALLOC_HAX for allocating/freeing per-state data.treectrl2005-06-041-2/+25
| | | | PerStateInfo_Undefine changed to return indication of whether anything was modified.
* Added boolean PerStateType.treectrl2005-06-021-1/+50
|
* Fix XImage2Photo under Tk 8.5 (tree was undefined).treectrl2005-05-291-2/+2
|
* Fix for DrawXORLine.treectrl2005-05-271-1/+5
|
* Implemented Tree_DrawBitmapWithGC and Tree_DrawBitmap to work around bug ↵treectrl2005-05-241-1/+61
| | | | with drawing bitmaps into a window on Win32.
* Added DrawXORLine under OSX to handle the column proxy, since XOR is only ↵treectrl2005-05-221-3/+27
| | | | supported by QuickDraw, not CoreGraphics.
* Fixes to DotRect_xxx under Aqua since Quartz doesn't do XOR drawing.treectrl2005-05-221-4/+76
| | | | | Fix Tk_FillRegion under Aqua. Declare Tree_ScrollWindow to work around Tk bug with TkScrollWindow on the Mac.
* Attempt fix for Tk_FillRegion using OffsetRgn.treectrl2005-05-211-1/+4
|
* Fixes to Tk_FillRegion() (thx to M Kirkham).treectrl2005-05-211-4/+3
|
* Put back Tk_FillRegion() change.treectrl2005-05-201-2/+23
|
* Replaced TARGET_OS_MAC with MAC_TCL and MAC_OSX_TK macros according to ↵treectrl2005-05-191-30/+9
| | | | | | Apple's Tiger patches. Reverted recent changed to Tk_FillRegion(). Original must have worked?
* Attempt to fix Tk_FillRegion() on the mac using QuickDraw. *** Hasn't even ↵treectrl2005-05-191-2/+22
| | | | been compiled yet. ***