summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-045-38/+1192
| | | | | 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-043-17/+665
|
* 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.
* Use named fonts DemoFontBold and DemoFontUnderline.treectrl2006-12-047-16/+23
|
* Changes to support tile-aware treectrl.treectrl2006-12-041-50/+71
| | | | Create named fonts DemoFontBold and DemoFontUnderline.
* Added knownBug constraint to one test that should fail but doesn't.treectrl2006-12-031-2/+4
|
* Fix tests that broke because of zero-sized elements no longer being layout'd.treectrl2006-12-032-6/+6
|
* Added column option -itemjustify.treectrl2006-12-034-16/+2016
|
* 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.
* Use the new column option -itemjustify.treectrl2006-12-022-4/+5
|
* Added "Item Justify" popup to the right-click menu for column headers.treectrl2006-12-021-1/+14
|
* 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
|
* Use the item option "-button auto".treectrl2006-11-301-7/+3
|
* The item option -button may now be "auto" in which case a button is drawn ↵treectrl2006-11-307-74/+278
| | | | only when the item has a child whose -visible option is true.
* Whitespace police.treectrl2006-11-3013-3275/+3275
|
* 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.
* Added some display-related tests. Try to cause a segfault by deleting ↵treectrl2006-11-251-0/+142
| | | | items/columns/treectrl during display udpates.
* Fix potential segfaults when a display update is requested in the middle of ↵treectrl2006-11-255-19/+120
| | | | drawing items.
* Only remember the item-columns on the edge of the selection. There is still ↵treectrl2006-11-251-2/+15
| | | | a "bug" where all the item-columns in a range are redrawn when only the two ends need to be redrawn.
* Don't update the styles-in-item list until the mouse is released over an ↵treectrl2006-11-251-3/+10
| | | | item. It can give a false impression that a main list update is slower than it really is.
* Added [DemoList] command to get the name of the main list rather than ↵treectrl2006-11-2317-93/+100
| | | | hard-coding .f2.f1.t everywhere.
* Added some tests of [style elements].treectrl2006-11-231-2/+33
|
* Fixed tests of tail column's -tag option.treectrl2006-11-231-4/+4
|
* Updated for 2.2.treectrl2006-11-231-1/+1
|
* Fixed crash with [style elements] when items were using the style.treectrl2006-11-231-11/+12
|
* Added test command to add some text to each item-column.treectrl2006-11-231-1/+7
|