summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Tweak the "Span" submenu to consider the column option -lock.treectrl2006-12-071-5/+15
| | | | | Only delay displaying the styles in an item when the selection changes if the mouse button is pressed. Remove usage of the deprecated -defaultstyle option.
* Use the new style layout option -draw instead of the deprecated element ↵treectrl2006-12-071-9/+10
| | | | | | option of the same name. Changed the fill color of the selection rectangle.
* Use the new style layout option -draw instead of the deprecated element ↵treectrl2006-12-073-17/+23
| | | | option of the same name.
* Replace usage of the deprecated [range] command.treectrl2006-12-071-5/+5
|
* New style layout option -draw deprecates the -draw option of every element.treectrl2006-12-071-28/+83
|
* Pass extra info to stateProc to avoid unnecessary redisplays due to the new ↵treectrl2006-12-071-1/+5
| | | | -draw and -visible style layout options.
* Deprecated the -draw option of every element. The new style layout option ↵treectrl2006-12-071-105/+314
| | | | -draw should be used instead.
* Hide window elements if changing the -visible layout option causes the ↵treectrl2006-12-071-4/+15
| | | | window element to become hidden.
* Fixed a crash when invalidating a column of an item if the column wasn't the ↵treectrl2006-12-061-11/+18
| | | | first in a span.
* Revert the change involving hiding elements that had non-zero size. Just ↵treectrl2006-12-062-47/+1007
| | | | rely on the style layout option -visible.
* Add info to the stack trace about which item/column was involved when ↵treectrl2006-12-061-1/+7
| | | | getting sort data failed.
* Return an error message when unable to get a double or long from a text ↵treectrl2006-12-061-8/+13
| | | | element while sorting.
* 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-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
|