summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeDisplay.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed partially-exposed transparent photo images not being redrawn when ↵treectrl2007-04-211-49/+50
| | | | scrolling under X11. This involved creating a wrapper around Tk_RedrawImage to ensure proper clipping of the source image to the bounds of the destination drawable. A new data type TreeDrawable remembers the height and width of a drawable.
* Fixed flickering of borders with "-doublebuffer window" when resizing or ↵treectrl2007-01-311-23/+43
| | | | | | | exposing areas of the widget. Call FormatResult in two places. Misc format changes.
* Renamed many symbols to avoid collisions under ELF.treectrl2007-01-231-11/+11
| | | | Renamed Element to TreeElement_.
* DumpDInfo processes arguments itself rather than letting tkTreeCtrl.c do it.treectrl2007-01-211-7/+45
|
* Formatting of braces (again).treectrl2006-12-231-7/+4
|
* Fixed improper invalidating while scrolling under WIN32. If the area to ↵treectrl2006-12-221-36/+17
| | | | invalidate was obscurred by child windows, then the items would not be marked as needing to be redrawn.
* Comments.treectrl2006-12-091-3/+3
|
* With -doublebuffer=window, <Expose> events no longer invalidate parts of ↵treectrl2006-12-081-39/+125
| | | | items, only schedule a copy from the offscreen pixmap to the window.
* Added -span debug option.treectrl2006-12-081-44/+87
| | | | Hold on to the pixmap used for displaying items instead of creating/destroying it during every display update.
* 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.
* Created a stack of TkRegions to avoid creating/destroying them repeatedly.treectrl2006-12-061-26/+26
| | | | 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-4/+3
| | | | per-state options. Call the renamed functions from several places where GCs are used. Removed ElementText.gc to save some more memory.
* Add missing checks of tree->useTheme.treectrl2006-12-041-4/+8
|
* Fixed wrong loop variable being used when calculating onscreen columns for ↵treectrl2006-12-041-2/+2
| | | | an item which results in random crash.
* 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-031-76/+81
| | | | | | 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.
* Avoid unnecessary work in Tree_InvalidateItemDInfo.treectrl2006-12-021-62/+74
|
* Merge with VERSION2_2fixes.treectrl2006-11-271-6/+8
|
* Changed a comment.treectrl2006-11-271-3/+4
|
* Fix potential segfaults when a display update is requested in the middle of ↵treectrl2006-11-251-10/+70
| | | | drawing items.
* Fixed a display bug with DebugDrawBorder.treectrl2006-11-191-2/+2
|
* Debug the drawing of borders.treectrl2006-11-151-1/+49
|
* Fixed bug resulting in redrawing the borders needlessly.treectrl2006-11-131-17/+28
|
* Fixed not being able to scroll horizontally when the header is wider than ↵treectrl2006-11-121-47/+87
| | | | | | | the window but no items are displayed. Merged the DINFO_REDO_COLUMN_WIDTH and DINFO_CHECK_COLUMN_WIDTH blocks. Recalculate tree->columnBgCnt here since it wasn't being done when columns were deleted etc. Make sure whitespace is redrawn when changing from complex to non-complex drawing (i.e., drawing -itembackground colors).
* Added Tree_HeaderXXX macros for getting the position of the header.treectrl2006-11-101-4/+4
|
* Moved checks of tree->updateIndex into Tree_UpdateItemIndex.treectrl2006-11-091-74/+111
| | | | | Removed lots of type-casts. Changed the drawing order of -itembackground colors in the whitespace region to match that of item drawing (center, left then right).
* Sped up calculation of scroll increments when there is only a single range.treectrl2006-11-071-37/+59
|
* Remove COLUMN_LOCK-related code.treectrl2006-11-071-193/+48
|
* Remove COLUMN_SPAN-related code.treectrl2006-11-071-13/+1
|
* Remove NEW_SPAN_CODE-related code.treectrl2006-11-071-84/+19
|
* Keep an array of column indexes for each item that has at least one span > ↵treectrl2006-11-061-115/+145
| | | | | | | | 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. Use DStringAppendf in various places. Cleaned up the column-tracking code. DumpDInfo now takes an index to indicate which kind of information to return.
* Fix some cases where left/right locked columns weren't being redisplayed.treectrl2006-11-061-25/+65
|
* Be more efficient when calculating which columns are onscreen.treectrl2006-11-061-5/+21
|
* Fixed improper use of DInfo.empty.treectrl2006-11-051-363/+328
| | | | | Draw -itembackground colors into the whitespace region, but only for -orient=verical, wrap={}, and -itemheight or -minitemheight > 0. Fixed vertical-scrolling bug when no non-locked column are displayed.
* Checkin complex whitespace code before pruning it.treectrl2006-11-041-107/+214
|
* Memory leak: DItem.spans wasn't being preserved when reusing a DItem or ↵treectrl2006-11-031-29/+449
| | | | | | | | | freed when the treectrl was destroyed. Memory leak: DInfo.itemVisHash column lists weren't freed when the treectrl was destroyed. BG_MODE_INDEX and BG_MODE_VISINDEX wrapped in #ifdef DEPRECATED. Fixed vertical-scrolling producing garbage under X11. Added some code (not used yet) for extending the -itembackground colors into the whitespace area.
* Deprecated commands and options are wrapped inside #ifdef DEPRECATED.treectrl2006-10-281-17/+26
|
* Nitpicks.treectrl2006-10-261-5/+5
|
* DumpDInfo sets the interpreter result instead of calling dbwin.treectrl2006-10-181-9/+21
|
* Track which item-columns are onscreen so that window elements are unmapped ↵treectrl2006-10-161-35/+288
| | | | when columns are moved, hidden or obscurred.
* Remove rowlabels.treectrl2006-10-141-366/+4
|
* Fix Tree_InvalidateItemDInfo not considering column spans.treectrl2006-10-141-739/+724
| | | | | | Added Tree_AreaBbox for getting the bounds of onscreen areas. Renamed TREE_HIT_xxx to TREE_AREA_xxx. Much improvement in displaying locked columns.
* Added column option -lock.treectrl2006-10-111-85/+999
| | | | | | | | Added Tree_HitTest to determine the area of the window containing a point. Tree_ItemsInArea returns a TreeItemList. Changed DInfo.columnWidth to track column, offset and width. Tree_InvalidateItemDInfo can now invalidate a single column rather than the entire item. Tree_InvalidateRegion invalidates only the parts of the item overlapped by the region.
* Fix a bug with -orient horizontal and rowlabels.treectrl2006-10-051-2/+11
|
* Arrange and draw rowlabels.treectrl2006-10-041-241/+664
| | | | | | Use Tree_ContentXXX macros. Fix display bug when scrolling more than a screenful (pixels might be copied over the borders). Draw -rowproxy like -columnproxy.
* Move drawableX/YOrigin statements where they belong.treectrl2006-09-271-12/+46
| | | | Rewrote Tree_InvalidateRegion to make screen updates more efficient.
* Added DInfo.requests field to count calls to Tree_EventuallyRedraw.treectrl2006-09-211-130/+125
| | | | | | | Tree_Display: preserve the tree and items so binding scripts don't free them. Tree_Display: if <Scroll> or <ItemVisibility> scripts cause a redraw request, jump to the top of the routine and start redisplaying again. Tree_Display: the block of code handling itemVisHash was moved before any drawing code and rewritten to use TreeItemList. itemVisHash now uses TreeItems instead of item ids as indexes. Tree_Display: moved TreeItem_UpdateWindowPositions from the itemVisHash block down to the drawing block.
* Bumped copyright to 2006.treectrl2006-09-051-2/+10
|
* * generic/tkTreeDisplay.c (Tree_Display): Allow Tree_DeselectHiddenhobbs22006-08-161-1/+9
| | | | | | | * generic/tkTreeItem.c (Item_Configure): to be deferred to next * generic/tkTreeCtrl.h: redraw by calling Tree_DInfoChanged(tree, DINFO_REDO_SELECTION). Significantly improves performance of multiple item visibility changes.
* Format fix with braces.treectrl2005-09-281-6/+4
|