| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
window element to become hidden.
|
|
|
|
| |
rely on the style layout option -visible.
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
drawing items.
|
| |
|
|
|
|
| |
call, rather than calling it twice.
|
|
|
|
| |
styles to test performance without it.
|
|
|
|
| |
[element names].
|
| |
|
| |
|
|
|
|
| |
Added column option -itemstyle (replaces -defaultstyle).
|
| |
|
|
|
|
| |
Pass element index to Style_ElementChanged so instance styles don't need to be searched for every item-column.
|
| |
|
| |
|
|
|
|
| |
Lowered memory usage by lowering the "round up" argument to AllocHax_CAlloc.
|
| |
|
|
|
|
| |
Tree_InvalidateItemDInfo and Tree_InvalidateColumnWidth now take a TreeColumn arg.
|
|
|
|
|
| |
ElementLink -> MElementLink and IElementLink.
Rowlabels use styles too, so they get updated when styles/elements change.
|
|
|
|
| |
elements.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Replaced wipefree() with WCFREE().
|
|
|
|
| |
tertiary ?: operator for funcs with different return types.
|
| |
|
| |
|
| |
|
|
|
|
| |
Renamed TreeStyle_HideWindows to TreeStyle_OnScreen, and use the new ElementType.onScreen callback.
|
|
|
|
|
|
|
|
| |
is larger than the non-union, non-detach elements. Previously justification would only occur if the available space was greater than that needed by the style.
Style_DoLayoutH: Allow column justification to occur when elements expand horizontally. This applies when -expand and -iexpand do not specify w or e, but -iexpand does specify x, and the -maxwidth is not {}. Basically, if there is some space left over after expansion then justification will occur.
Style_DoLayoutH/V: The internal padding is added to the display area of -union elements, and the internal padding is set to zero. This works in conjunction with the changes in TreeStyle_Draw and TreeStyle_UpdateWindowPositions.
TreeStyle_Draw/TreeStyle_UpdateWindowPositions: Fixed bug where -union elements were not displayed if the elements they surrounded had zero height or width. Also removed ElementArgs.display.pad and ElementArgs.display.squeeze which were unused.
|
|
|
|
|
|
| |
larger than them all. Previously expansion would only occur if the available space was greater than the needed space of the style.
Alphabetized style layout options, and moved option-to-Tcl_Obj code to a new function.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
left.
Style_DoExpandV rewritten to use the same algorithm as Style_DoExpandH.
Style_DoLayoutH: properly calculate Layout.useWidth for -union layout.
Style_DoLayoutV: expand elements vertically using same algorithm as Style_DoLayoutH.
Changed Style_DoLayout to use the new ElementType.heightProc. Also consider the -minheight, -height, and -maxheight style layout options.
Style_NeededSize: consider min/max width/height style layout options. ElementType.layoutProc renamed to ElementType.neededProc.
TreeStyle_NeededHeight: basically the same, but doesn't return Style.minHeight since that didn't take into account text wrapping.
TreeStyle_Draw/TreeStyle_UpdateWindowPositions/TreeStyle_GetElemRects: the -ipadx and -ipady padding is no longer added to the display area of an element (although there is no change wrt -union layout).
StyleLayoutCmd: fixed bug where -iexpand xy were not cleared.
|
|
|
|
|
|
|
| |
stretched/positioned within its parcel of space.
Extended -iexpand option to accept x and y chars, to allow the parcel of space to be expanded. Previously only the -ipad values were stretched by -iexpand.
New style layout options -maxwidth and -maxheight.
|
|
|
|
|
|
| |
at the same time. Previously -expand was ignored if -iexpand was specified.
"style layout $S $E -detach" and "style layout $S $E -indent" return "yes" or "no" instead of "1" or "0" to agree with "style layout $S $E".
|
|
|
|
|
|
| |
was not setting drawArgs->width properly).
Properly save/restore config options in "style layout" command upon error.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Fixed bug calculating needed height of style with -union elements. Not sure how Style_DoLayoutNeededV ever worked correctly.
Combined Style_DoLayout and Style_DoLayout2 since they were 99% the same.
Changed Style_NeededSize to return whether the style has any -squeeze elements. This is used to avoid an unnecessary call when determining the minimum style size.
Optimize TreeStyle_NeededWidth/Height by using cached values. NEEDED_HAX code present simply to test that I am allowed to use those cached values.
Optimize TreeStyle_UseHeight by using cached values. Style.layoutWidth already existed for this purpose but wasn't set properly.
Changed TreeStyle_UndefineState to always invalidate the layout of every element/column/item.
|
|
|
|
|
|
| |
Fixed drawing bug caused by LAYOUT_HAX changes.
Add some calls to Tree_FreeItemDInfo.
Replace some calls to Tree_InvalidateItemDInfo with Tree_FreeItemDInfo.
|
| |
|
| |
|
|
|
|
| |
Fixed bug with new -indent layout option and column justification.
|
|
|
|
|
|
|
|
| |
area using new layout option -indent.
Fixed bug with calculation of -union padding.
Set style->layoutWidth to limit recalculating height of a style (should have always been this way???).
Fixed OLD bug with reporting -ipadx and -ipady layout options.
|