summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* (vsnprintf): _vsnprintf on Windowshobbs22007-01-261-1/+5
|
* Renamed many symbols to avoid collisions under ELF.treectrl2007-01-2312-627/+658
| | | | Renamed Element to TreeElement_.
* Tcl_Preserve the associated Tk_Window otherwise we get crashes while freeing ↵treectrl2007-01-221-1/+8
| | | | config options after a <Destroy> event when the TreeCtrl struct is eventually freed. Reason: if the TreeCtrl struct was Tcl_Preserved before the window was destroyed, then tkwin is NULL when TreeDestroy finally gets called.
* 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.
* Moved tclInt.h to the main header file.treectrl2007-01-211-2/+1
|
* DumpDInfo processes arguments itself rather than letting tkTreeCtrl.c do it.treectrl2007-01-211-7/+45
|
* Moved tclInt.h to the main header file.treectrl2007-01-211-6/+4
| | | | Declare new dbwin stuff, remove #include "dbwin.h".
* Moved tclInt.h to the main header file.treectrl2007-01-211-17/+5
| | | | | Pass arguments to DumpDInfo. Use new dbwin stuff.
* Removed #include "dbwin.h" since dbwin is now part of the sources.treectrl2007-01-211-6/+2
|
* Formatting of braces (again).treectrl2006-12-237-92/+42
|
* Fixed double-freeing a TreeCtrl structure if the option database had an ↵treectrl2006-12-231-2/+1
| | | | invalid option-value while creating a widget.
* Changed the way text elements display an ellipsis. At least 1 character plus ↵treectrl2006-12-232-47/+63
| | | | | | 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-2210-1464/+748
|
* 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-083-42/+129
| | | | 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.
* Added -span debug option.treectrl2006-12-083-6/+9
|
* Added DEPRECATED around a variable.treectrl2006-12-081-2/+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-061-36/+11
| | | | 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-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.