summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeCtrl.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed SELECTION_VISIBLE define in favor of runtime option.David N. Welton2009-02-251-44/+36
|
* * First version of -fillstripes patch.David N. Welton2009-02-041-0/+6
|
* Added option -showrootchildbuttons.treectrl2008-07-211-7/+16
| | | | Bumped version to 2.2.7.
* Bump copyright to 2008.treectrl2008-01-221-2/+2
|
* Added #ifdef around Tk_InitStubs to handle "const" difference between 8.4 ↵treectrl2007-12-141-1/+5
| | | | and 8.5.
* Added -itemtagexpr and -columntagexpr options.treectrl2007-11-121-1/+7
|
* Call FormatResult in two places.treectrl2007-01-311-14/+17
| | | | Misc format changes.
* Renamed many symbols to avoid collisions under ELF.treectrl2007-01-231-15/+15
| | | | 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-17/+5
| | | | | Pass arguments to DumpDInfo. Use new dbwin stuff.
* Formatting of braces (again).treectrl2006-12-231-5/+3
|
* Fixed double-freeing a TreeCtrl structure if the option database had an ↵treectrl2006-12-231-2/+1
| | | | invalid option-value while creating a widget.
* Formatting of braces.treectrl2006-12-221-111/+56
|
* With -doublebuffer=window, <Expose> events no longer invalidate parts of ↵treectrl2006-12-081-2/+2
| | | | items, only schedule a copy from the offscreen pixmap to the window.
* Added -span debug option.treectrl2006-12-081-2/+4
|
* Created a stack of TkRegions to avoid creating/destroying them repeatedly.treectrl2006-12-061-1/+5
| | | | 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-1/+2
| | | | per-state options. Call the renamed functions from several places where GCs are used. Removed ElementText.gc to save some more memory.
* Add missing check of tree->useTheme.treectrl2006-12-041-2/+4
|
* Theme-related changes to support tile-aware treectrl.treectrl2006-12-041-12/+46
|
* Removed some unnecessary casts.treectrl2006-12-021-15/+20
| | | | Call TreeTheme_ComputeGeometry to let themes handle borders.
* The item option -button may now be "auto" in which case a button is drawn ↵treectrl2006-11-301-4/+3
| | | | only when the item has a child whose -visible option is true.
* New command [bbox].treectrl2006-11-211-13/+40
|
* Added per-tree theme data.treectrl2006-11-191-5/+15
|
* Added 2 optional arguments to [selection get] to perform lindex- and ↵treectrl2006-11-191-1/+61
| | | | lrange-like operations on the sorted list of selected items.
* Use TreeItem_FirstAndLast in the deprecated [range] command.treectrl2006-11-151-17/+2
|
* Changed 2 incorrect 'return' statements to 'goto'.treectrl2006-11-101-3/+3
|
* Moved checks of tree->updateIndex into Tree_UpdateItemIndex.treectrl2006-11-091-3/+2
|
* Remove COLUMN_LOCK-related code.treectrl2006-11-071-22/+3
|
* Remove NEW_SPAN_CODE-related code.treectrl2006-11-071-7/+1
|
* Keep an array of column indexes for each item that has at least one span > ↵treectrl2006-11-061-3/+30
| | | | | | 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. DumpDInfo now takes an index to indicate which kind of information to return.
* Deprecated the treectrl option -defaultstyle.treectrl2006-11-031-4/+17
| | | | Added column option -itemstyle (replaces -defaultstyle).
* Fix crash when destroying a treectrl with non-empty -backgroundimage.treectrl2006-11-031-9/+22
| | | | Fix possible memory leak when an error occurs configuring -backgroundimage and/or -defaultstyles.
* BG_MODE_INDEX and BG_MODE_VISINDEX wrapped in #ifdef DEPRECATED.treectrl2006-11-031-4/+15
| | | | | | Fixed handling of Tcl_Obj with per-state custom options. Memory leak: TreeCtrl.defaultStyles wasn't freed when the treectrl was destroyed. Fix compilation when ALLOC_HAX is undefined.
* Changed handling of deleted items (again) so that the item is removed from ↵treectrl2006-10-301-15/+50
| | | | the heirarchy of known items but the record is not freed until it is not in use.
* Restore old behaviour of deprecated [expand], [collapse] and [toggle] ↵treectrl2006-10-301-26/+29
| | | | allowing zero or more item arguments.
* [identify] now takes pixel x/y arguments, rather than plain integers.treectrl2006-10-301-3/+3
|
* Renamed columnCustomOption_xxx.treectrl2006-10-291-3/+3
|
* Deprecated commands and options are wrapped inside #ifdef DEPRECATED.treectrl2006-10-281-11/+61
|
* Tree_GetImage now uses reference counting on images. Tree_FreeImage ↵treectrl2006-10-181-20/+80
| | | | decrements the reference count and frees the image when needed.
* Added [debug alloc] command to display info about memory allocations.treectrl2006-10-161-3/+15
|
* Remove rowlabels.treectrl2006-10-141-78/+7
|
* [contentbox] returns an empty string if the content area is <= 0 height or ↵treectrl2006-10-141-75/+91
| | | | | | | | width. Updated the deprecated [expand], [collpase] and [toggle] to agree with the preferred [item expand] etc. Renamed IFO_xxx flags. Renamed TreeItemList_ItemN to TreeItemList_Nth.
* Added column option -lock.treectrl2006-10-111-42/+97
| | | | | | Added -drawcolor to [debug configure]. Added [debug expose] command. Added -rowproxy option for resizing rows.
* Use the new PerStateInfo custom option, eliminating some code.treectrl2006-10-051-36/+12
|
* New treectrl options: -rowlabelresize, -rowlabelwidth, -minrowlabelwidth, ↵treectrl2006-10-041-41/+107
| | | | | | | | | | -maxrowlabelwidth, -rowlabelprefix, -rowproxy, -showrowlabels. Added [rowlabel] command. Moved [tag] command to [item tag] since columns and rowlabels have tags too. [identify] command may return "rowlabel ...". Use Tree_ContentXXX macros. Moved TreeStyle_Init out of package init routine into treectrl create routine because it initialized TreeCtrl.styleOptionTable now (before it did nothing).
* Added [tag] command.treectrl2006-09-241-3/+9
|
* Added Tree_StateFromListObj.treectrl2006-09-221-1/+41
|
* [selection add], [selection clear] and [selection modify] rewritten to use ↵treectrl2006-09-211-293/+230
| | | | | | TreeItemList and related funcs instead of STATIC_ALLOC for handling lists of items. TreeCtrl.preserveItemXXX fields, Tree_PreserveItems and Tree_ReleaseItems added for managing deleted items.
* Exclude !enabled items from the selection.treectrl2006-09-161-23/+20
| | | | Removed some unused code.
* Bumped copyright to 2006.treectrl2006-09-051-2/+2
|