summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeItem.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Bumped copyright to 2006.treectrl2006-09-051-2/+2
|
* * generic/tkTreeDisplay.c (Tree_Display): Allow Tree_DeselectHiddenhobbs22006-08-161-14/+20
| | | | | | | * 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.
* * generic/tkTreeItem.c (Item_Configure): on checking for -visible,hobbs22006-08-151-2/+3
| | | | verify that the value actually changed, because it can be expensive.
* Did some work on better distributing space when a style spans multiple ↵treectrl2006-07-111-50/+232
| | | | | | | | | | columns. Not used yet. Renamed SortData.count to columnCount for readability. Reformatted some function headers. CompareProc: identity test to save work. find_pivot: bug fix. ItemSortCmd: fix memory leak with -command option.
* Fix a comment typo.treectrl2005-09-281-2/+2
|
* Comment function arguments.treectrl2005-09-161-124/+531
|
* Add Tcl block comments above each function.treectrl2005-09-151-162/+1510
|
* Changed TreeItem_RemoveColumn to delete a range of columns. This is to ↵treectrl2005-09-071-15/+16
| | | | support the updated [column delete] command.
* Eliminate "type-punned pointer" warnings from GCC.treectrl2005-07-231-21/+39
|
* Added offset args to Tree_DrawTiledImage so image element can use it.treectrl2005-07-161-2/+8
| | | | Redo ranges when an item's -height option changes.
* Added [item element perstate] alias to deprecate [item element actual].treectrl2005-07-121-25/+63
| | | | Added [item image] command.
* When an item has span > 1, the starting column's background color is no ↵treectrl2005-07-111-20/+30
| | | | | | longer drawn in all of the spanned columns. Renamed the -noresult option to [item create] to -returnid.
* Added -height option to Item option table and [item create] command.treectrl2005-07-101-10/+28
| | | | [item element configure]: fixed checking for special + and , args; return after first error.
* Eliminated all "item I does not have column C" messages. There was no need ↵treectrl2005-07-071-88/+404
| | | | | | | | | | | | for the user to know if an item had a Column struct allocated for a given column or not. Implemented column spanning. A style may now extend over 2 or more columns within an item. Rewrote TreeItem_Draw. TreeItem_Identify, and TreeItem_Identify2. Added [item span] command. NoStyleMsg added to report an item doesn't have a style in a given column. Fixed new [item element configure] syntax to only check for + or , after every option-value pair. [item style set] returns a list with one string per tree column. Previously only allocated Column structs were reported. [item state forcolumn] now allocates a Column struct when setting the state for a column if one didn't exist. Previously an error was returned. [item bbox] no longer returns an error when getting the bounding box for an item column if the item column didn't have a Column struct allocated. [item text] returns one string per tree column if no column is specified.
* TreeItem_Delete: call TreeDisplay_ItemDeleted.treectrl2005-07-051-38/+285
| | | | | | | | Rename TreeItem_HideWindows to TreeItem_OnScreen. "item create" command accepts new arguments and allows creation of multiple items with a single call. "item element configure" allows configuring multiple elements in multiple columns with a single call. This deprecates the awful "item complex" command. "item style set" returns an error message if a style argument is missing. Previously an error was returned with no message. "item style set" does nothing when trying to replace a style with itself. Previously the old style was freed.
* More Invalidate/FreeItemDInfo fixes.treectrl2005-06-291-1/+58
| | | | Fixed a massive performance hit with "item delete all" when there were many orphan items.
* New command "item range" deprecates old command "range".treectrl2005-06-081-5/+38
|
* LAYOUTHAX code accepted, removed conditional compilation.treectrl2005-06-061-42/+1
|
* Renamed TreeItem_Undefine to TreeItem_UndefineState.treectrl2005-06-041-2/+2
|
* Fixed crash with "item complex" when a column doesn't exist.treectrl2005-06-031-6/+19
|
* Added item description "end", equivalent to "last".treectrl2005-06-021-4/+6
|
* Add some calls to TreeItemColumn_InvalidateSize. FIXME: ↵treectrl2005-06-021-5/+28
| | | | | | | | Column.neededWidth/Height aren't actually used. Add some calls to Tree_FreeItemDInfo. Replace some calls to Tree_InvalidateItemDInfo with Tree_FreeItemDInfo. Invalidate should only be used when the size hasn't changed. Fix "item style map" and "item style set" not recalculating ranges.
* Use Tree_DrawBitmap to draw bitmaps.treectrl2005-05-241-11/+3
|
* Replaced TARGET_OS_MAC with MAC_TCL and MAC_OSX_TK macros according to ↵treectrl2005-05-191-3/+4
| | | | Apple's Tiger patches.
* Cast argument to AllocHax_Free() and AllocHax_CFree().treectrl2005-05-191-6/+8
|
* ALLOC_HAX: play games with memory allocation for speed boost.treectrl2005-05-171-5/+21
|
* Experimental hacks to allow -detach elements to appear under the button/line ↵treectrl2005-05-141-17/+77
| | | | | | area using new layout option -indent. Fixes for tree->columnPrefix when reporting errors.
* New command "item compare", "compare" is deprecated.treectrl2005-05-131-63/+151
| | | | | | | | | New command "item count", "numitems" is deprecated. New command "item id", "index" is deprecated. Replaced "item index" with "item order". Replaced itemPrefix global with tree->itemPrefix option. Use tree->columnPrefix when reporting column id. tree->columnTree is no longer an int.
* Removed a bunch of conditional-compilation stuff and dead code.treectrl2005-05-111-121/+46
|
* Changes for new -buttonimage and -buttonbitmap per-state options.treectrl2005-05-101-79/+327
| | | | | | | | New -minitemheight option. Fixed bug where buttons and lines could be drawn over another column if the -treecolumn was too narrow. Code added to support new "window" element type. New <ItemDelete> event generated before items are deleted. Fixed bug with <Selection> event not reporting all selected items being deleted.
* Bumped copyright to 2005.treectrl2005-05-011-7/+17
| | | | | Don't draw horizontal line unless it connects to a vertical line. Use new Theme API to draw buttons.
* New -showrootlines config option.treectrl2005-03-291-2/+25
| | | | Don't draw horizontal line to self unless it connects to a vertical line or our button.
* * generic/tkTreeItem.c (CompareAscii, CompareDict): handle thehobbs22005-02-151-10/+34
| | | | case where no text value has been set for sorting
* New -backgroundimage option.treectrl2005-01-031-3/+15
| | | | Macintosh drawing fix.
* * generic/tkTreeItem.c (TreeItem_FromObj): s/MOD_/TMOD_ to preventhobbs22004-11-301-27/+28
| | | | existing defined name conflict
* whitespace policehobbs22004-11-291-3651/+3327
|
* Only ReallyVisible() items may be selected.treectrl2004-08-131-9/+80
|
* Added hash table for current selection.treectrl2004-08-111-8/+62
| | | | New "item expand/collapse/toggle" commands.
* New "item state forcolumn" command.treectrl2004-08-091-51/+333
| | | | | Support for ITEM_ID_IS_STRING compile-time option. Generate <Selection> event when selected items are deleted.
* Add copyright.treectrl2004-07-301-402/+415
| | | | | | | | | Add "item cget" and "item configure" commands. Removed "item hasbutton" and "item visible" commands. Removed unused code. Made TreeItem_AllocXXX() private. Reorganized TreeItemCmd(). Added TreeItem_Init() for widget initialization.
* Bounds check -defaultstyle in "item create".treectrl2004-07-281-2/+2
|
* Fix "column move" when item column wasn't allocated yet.treectrl2004-07-261-72/+70
| | | | | | Fix "item index" if index needed recalculating. New -defaultstyle widget option used by "item create". Tree columns are no longer automatically created by various "item" commands.
* Fix for missing lines when siblings not visible.treectrl2003-03-291-14/+28
|
* New -element option to item sort command.treectrl2003-01-051-13/+144
| | | | Allow item sort without columns if -command is used.
* TCL_OK -> TCL_ERROR for item sort with no columns.treectrl2003-01-051-1/+1
|
* item sort returns error if there are no columns.treectrl2003-01-051-3/+43
| | | | | | Don't allow tail column for item sort -column option. Make sure item sort -notreally returns result if only one item to sort. Return error if item sort -command gives inconsistent results.
* Remove 20-column limit.treectrl2003-01-021-83/+100
| | | | Pass sortData on stack instead of global in 'item sort' command.
* Fix for 'marquee identify' not reporting column when item has no columns.treectrl2003-01-011-3/+4
|
* Use extra arg to TreeStyle_ElementConfigure.treectrl2002-12-311-42/+71
|
* Reworked 'item state' command into 'item state get' and 'item state set'.treectrl2002-12-311-1/+155
|