| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
getting sort data failed.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
only when the item has a child whose -visible option is true.
|
|
|
|
| |
drawing items.
|
| |
|
|
|
|
|
|
| |
changing the StyleDrawArgs argument.
Replaced the hasButton and isVisible integer boolean options with a single bit each in the flags field by using a custom option.
|
|
|
|
| |
lrange-like operations on the sorted list of selected items.
|
|
|
|
| |
an item description. This replaces the -visible option added earlier.
|
|
|
|
| |
changing the item commands. Also put the item commands in alphabetical order.
|
| |
|
|
|
|
|
|
| |
of the visible area (was using the bottom edge by mistake).
Make TreeItem_Identify2 stop checking spans that are past the right edge of the area being hit-tested.
|
|
|
|
|
| |
Fixed [item bbox] not working when the widget was not mapped.
Fixed [item bbox] not returning an error if the element name was invalid.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
TreeItem_OnScreen disabled since the display code tracks each column's visibility.
|
| |
|
| |
|
|
|
|
| |
routine. This is used for drawing, updating window positions, and hit-testing. Previously the same complicated code for walking over spans was used in each case.
|
|
|
|
| |
Added column option -itemstyle (replaces -defaultstyle).
|
|
|
|
| |
the heirarchy of known items but the record is not freed until it is not in use.
|
|
|
|
|
|
|
|
|
| |
same effect as "all" followed by qualifiers. Removed "tag" keyword because of this.
New qualifier "depth" allowed in item descriptions.
Qualifier "nearest x y" takes pixel x/y args instead of plain integers.
Renamed ISROOT to IS_ROOT to agree with other macros like the new IS_ALL macro.
COLUMN_FOR_EACH no longer iterates over the tail column if the tail is not allowed. This fixed a crash with [style map] and removed the need to check for the tail column in some commands.
|
| |
|
| |
|
|
|
|
| |
TreeItem_UpdateWindowPositions only considers columns that are onscreen; this is possible because of the changes in tkTreeStyle.c.
|
| |
|
|
|
|
|
|
|
|
|
| |
Added IFO_LIST_ALL flag and renamed other IFO_xxx flags.
Moved ItemForEach delcarations to tkTreeCtrl.h.
Added TreeItem_GetSpans so display code can invalidate columns properly.
Use Tree_AreaBbox for getting the bounds when displaying window elements.
Fixed [item element], [item style], [item configure] and [item enabled] commands using an arbitrary item if multiple items were specified but forbidden.
Rewrote [item element configure], [item image], [item span], [item state forcolumn], [item style map], [item style set] and [item text] to use multi-column column descriptions.
|
|
|
|
| |
Tree_InvalidateItemDInfo and Tree_InvalidateColumnWidth now take a TreeColumn arg.
|
| |
|
|
|
|
|
|
|
|
| |
Added -tags option to items.
Renamed [tag] to [item tag].
Removed unused fields from Item and Column to save a bit of memory.
Cleaned up TreeItemList_FromObj a bit. Allow tag expressions to be the first part of an item description without using the "tag" keyword.
Rename TreeForEach stuff to ItemForEach.
|
|
|
|
| |
mostly the same as TreeItem_Draw).
|
|
|
|
|
|
|
|
|
|
| |
Added [item descendants] command.
Added "descendants" modifier to item descriptions.
Added -tags option to [item create].
TagExpr_xxx routines added for evaluating tag expressions. Code was lifted from theTk Canvas.
Created a struct for holding info about qualifiers in item descriptions and added a new qualifiers"tag" and "!visible".
Allow keyword "tag" to be the first word in an item description.
"all" may now be followed by qualifiers in item descriptions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added TreeForEach_xxx to make iterating over item-list arguments easier.
Fix TreeItem_ListDescendants; it was appending the given item and skipping the last descendant.
Rewrote the following commands to accept multi-item item descriptions:
item element configure
item image
item style map
item style set
item state forcolumn
item state set
item remove
item span
item text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TreeItem_FromObj renamed to TreeItemList_FromObj.
TreeItemList_FromObj: added "list", "range", "ancestors" and "children" keywords for matching multiple items.
Added TreeItem_FirstAndLast, TreeItem_ListDescendants.
[item create]: fixed bug where -nextsibling and -prevsibling options could specify an orphan item.
Tree_DeselectHidden rewritten to use TreeItemList.
TreeItemCmd: Use TreeItemList_FromObj to get lists of items to operate on instead of single items.
[item expand], [item collapse], [item toggle]: Only operate on items which exist when the command is called, not any that might get created by <Expand> or <Collapse> binding scripts. Handle item descriptions that refer to multiple items.
[item compare]: removed 2nd-arg code since argInfo[] was changed to handle an extra argument.
[item configure]: Handle item descriptions that refer to multiple items.
[item delete]: Handle item descriptions that refer to multiple items. Use TreeCtrl.preserveItemList to hold deleted items until any nested calls complete.
[item enabled]: Handle item descriptions that refer to multiple items.
[item id]: Handle item descriptions that refer to multiple items. Return a list of item ids instead of only one.
|
|
|
|
|
|
|
|
| |
added a new qualifier "state xxx". The "state" qualifier filters out items which do not match a given list of states.
Added [item enabled] command to set/get the "enabled" state of an item.
Define TreeItem_GetEnabled.
Fix typo in comment.
|
|
|
|
| |
Added -visible option to [item count].
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
verify that the value actually changed, because it can be expensive.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
support the updated [column delete] command.
|
| |
|
|
|
|
| |
Redo ranges when an item's -height option changes.
|
|
|
|
| |
Added [item image] command.
|