summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-065-35/+103
| | | | 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-066-52/+51
| | | | per-state options. Call the renamed functions from several places where GCs are used. Removed ElementText.gc to save some more memory.
* Remove ElementText.stringRepInvalid, and set ElementText.textLen to -1 when ↵treectrl2006-12-051-64/+56
| | | | | | | the string representation is invalid. Don't keep a Tcl_Obj for every text element, it is a waste of space. This also avoids keeping 2 copies of each -text string (one for the Tcl_Obj, and one for the internal rep of the string). Fix: don't let a text element's master override the -textvariable or -data for an instance.
* New style layout option -visible.treectrl2006-12-041-25/+165
| | | | | Elements with zero requested size are not included in the layout, including any padding. Union elements are not included in the layout if all the elements they surround are hidden or have zero size.
* Fixed bug where text elements were requesting height when displaying an ↵treectrl2006-12-041-8/+17
| | | | empty string. Stopped allocating a zero-length string.
* DynamicOption_FindData returns void* to avoid lots of casts.treectrl2006-12-041-3/+3
| | | | DynamicOptionInitProc takes void* argument to avoid lots of casts.
* DynamicOption_FindData returns void* to avoid lots of casts.treectrl2006-12-041-81/+134
| | | | Converted -draw, -height, -width and -tiled image options to dynamic.
* DynamicOption_FindData returns void* to avoid lots of casts.treectrl2006-12-041-2/+2
|
* Add missing checks of tree->useTheme.treectrl2006-12-041-4/+8
|
* Add missing check of tree->useTheme.treectrl2006-12-041-2/+4
|
* Fixed wrong loop variable being used when calculating onscreen columns for ↵treectrl2006-12-041-2/+2
| | | | an item which results in random crash.
* Theme-related changes to support tile-aware treectrl.treectrl2006-12-041-8/+17
| | | | Declare TreeDisplay_FreeColumnDInfo.
* TreeDisplay_FreeColumnDInfo is called when a column is deleted to free ↵treectrl2006-12-041-1/+2
| | | | display info for a column.
* Theme-related changes to support tile-aware treectrl.treectrl2006-12-042-16/+651
|
* Fix bug with calculating onscreen columns.treectrl2006-12-041-57/+88
| | | | | TreeDisplay_FreeColumnDInfo is called when a column is deleted to free display info for a column. Theme-related changes to support tile-aware treectrl.
* Changed how the display code tracks column headers to better detect changes ↵treectrl2006-12-033-95/+144
| | | | | | to column size, position or visibility. Don't mark display info OUT_OF_DATE in some cases where only INVALIDATE is needed to redraw the items.
* Rename TreeColumn_Justify to TreeColumn_ItemJustify to handle the new column ↵treectrl2006-12-021-2/+6
| | | | | | option -itemjustify. Declare TreeTheme_ComputeGeometry and Tree_GetIntForIndex.
* Added Tree_GetIntForIndex to handle "end?-offset?" indices.treectrl2006-12-021-9/+60
| | | | Removed some unnecessary casts.
* Added TreeTheme_ComputeGeometry to allow themes to draw the borders.treectrl2006-12-021-1/+18
|
* Don't layout elements whose requested size is zero.treectrl2006-12-021-62/+207
|
* Removed some unnecessary casts.treectrl2006-12-022-4/+4
|
* The index argument to the item description modifiers "child" and "sibling" ↵treectrl2006-12-021-104/+184
| | | | | | | | | | may now be of the form "end?-offset?". Redraw parent when children are added or removed and the parent has "-button auto". Use the new column option -itemjustify to align styles. If a second item-description argument to an [item] subcommand refers to multiple items, then make sure they all meet the AF_xxx criteria. No commands were affected by the old behaviour of checking only the first item. Added AF_NOT_DELETED flag to check for deleted items. Misc code cleanup.
* Removed some unnecessary casts.treectrl2006-12-021-18/+18
|
* Removed some unnecessary casts.treectrl2006-12-021-166/+2
| | | | Removed unused code.
* Avoid unnecessary work in Tree_InvalidateItemDInfo.treectrl2006-12-021-62/+74
|
* Removed some unnecessary casts.treectrl2006-12-021-15/+20
| | | | Call TreeTheme_ComputeGeometry to let themes handle borders.
* New column option -itemjustify.treectrl2006-12-021-10/+22
|
* The item option -button may now be "auto" in which case a button is drawn ↵treectrl2006-11-304-34/+212
| | | | only when the item has a child whose -visible option is true.
* Merge with VERSION2_2fixes.treectrl2006-11-271-6/+8
|
* Changed a comment.treectrl2006-11-271-3/+4
|
* Indentation nitpick.treectrl2006-11-271-2/+2
|
* Fixed a bug where items wouldn't be redrawn when 2 columns swapped ↵treectrl2006-11-271-2/+8
| | | | visibility and position.
* Fix potential segfaults when a display update is requested in the middle of ↵treectrl2006-11-255-19/+120
| | | | drawing items.
* Fixed crash with [style elements] when items were using the style.treectrl2006-11-231-11/+12
|
* Changed Style_NeededSize to calculate the needed and minimum sizes in one ↵treectrl2006-11-231-46/+36
| | | | call, rather than calling it twice.
* Fix window elements not respecting -squeeze layout.treectrl2006-11-231-6/+13
|
* Prevent column headers requesting width from the layout when the treectrl ↵treectrl2006-11-231-1/+4
| | | | option -showheader is false.
* Testing SW_SCROLLCHILDREN.treectrl2006-11-221-1/+53
|
* Added some conditional compilation around the size cache of elements and ↵treectrl2006-11-221-90/+297
| | | | styles to test performance without it.
* Comment added.treectrl2006-11-221-2/+2
|
* Renamed themeData global to appThemeData.treectrl2006-11-211-27/+29
|
* New command [bbox].treectrl2006-11-211-13/+40
|
* Added per-tree theme data.treectrl2006-11-211-3/+13
|
* 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.
* Added per-tree theme data to avoid getting back an invalid handle from ↵treectrl2006-11-191-26/+95
| | | | OpenThemeData after too many calls.
* Fixed display bugs with TreeItem_WalkSpans; some style routines were ↵treectrl2006-11-191-32/+46
| | | | | | changing the StyleDrawArgs argument. Replaced the hasButton and isVisible integer boolean options with a single bit each in the flags field by using a custom option.
* Use OptionSpec_Find in a few places.treectrl2006-11-191-42/+21
|
* Fixed a display bug with DebugDrawBorder.treectrl2006-11-191-2/+2
|
* Added per-tree theme data.treectrl2006-11-191-5/+15
|