summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeStyle.c
Commit message (Collapse)AuthorAgeFilesLines
* TreeStyle_Draw: added call to Style_CheckNeededSize.treectrl2005-07-051-6/+7
| | | | Renamed TreeStyle_HideWindows to TreeStyle_OnScreen, and use the new ElementType.onScreen callback.
* Style_DoLayoutH: Allow column justification to occur when a -detach element ↵treectrl2005-06-201-86/+77
| | | | | | | | 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.
* Allow expansion of non-detach non-union elements if a -detach element is ↵treectrl2005-06-151-254/+200
| | | | | | 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.
* Removed gobs of conditional compilation code.treectrl2005-06-141-362/+7
|
* Style_DoExpandH rearranged to allocate space to the right padding before the ↵treectrl2005-06-131-206/+405
| | | | | | | | | | | | | 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.
* New style layout option "-sticky" controls how an element is ↵treectrl2005-06-101-281/+384
| | | | | | | 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.
* Rewrote Style_DoExpandH and Style_DoExpandV to handle -expand and -iexpand ↵treectrl2005-06-081-6/+237
| | | | | | 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".
* Fixed panic attacks in Style_DoLayout caused by LAYOUTHAX changes (caller ↵treectrl2005-06-061-84/+54
| | | | | | was not setting drawArgs->width properly). Properly save/restore config options in "style layout" command upon error.
* LAYOUTHAX code accepted, removed conditional compilation.treectrl2005-06-061-164/+32
|
* Added -minwidth, -minheight, -width, -height style layout options.treectrl2005-06-061-33/+291
|
* Fixed y-position bug in Style_DoLayoutV.treectrl2005-06-041-135/+107
| | | | | | | | | 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 bug with calculation of needed size of a style.treectrl2005-06-021-7/+41
| | | | | | Fixed drawing bug caused by LAYOUT_HAX changes. Add some calls to Tree_FreeItemDInfo. Replace some calls to Tree_InvalidateItemDInfo with Tree_FreeItemDInfo.
* Fix layout bug with new LAYOUT_HAX code.treectrl2005-05-281-1/+11
|
* Cast argument to AllocHax_Free() and AllocHax_CFree().treectrl2005-05-191-11/+11
|
* ALLOC_HAX: play games with memory allocation for speed boost.treectrl2005-05-171-1/+79
| | | | Fixed bug with new -indent layout option and column justification.
* Experimental hacks to allow -detach elements to appear under the button/line ↵treectrl2005-05-141-13/+212
| | | | | | | | 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.
* Return a better error when attempting to retrieve configuration info for an ↵treectrl2005-05-131-4/+23
| | | | element that has never been configured for an item.
* Removed a bunch of conditional-compilation stuff and dead code.treectrl2005-05-111-33/+3
|
* Fixed bug with column -justify center|right and horizontal expansion. ↵treectrl2005-05-101-94/+247
| | | | | | Elements could be shifted out of view. Added code to support new "window" element type.
* Bumped copyright to 2005.treectrl2005-05-011-8/+13
| | | | | Use new TreeElement_TypeFromObj. Changed comparison against elemTypeText because ElementTypes are now malloc'd.
* Removed spurious '\' character.treectrl2005-03-291-2/+2
|
* Add some element-iterating routines for exporting via stubs.treectrl2004-10-121-1/+103
|
* Add TreeItem argument to element create proc so element can call ↵treectrl2004-08-131-6/+22
| | | | Tree_RedrawElement().
* Moved elementTypeList to tkTreeElem.c where it is initialized.treectrl2004-08-091-29/+1
|
* Add copyright.treectrl2004-07-301-22/+40
| | | | Fixed "style elements" error message.
* Update -defaultstyle widget option when a style is deleted.treectrl2004-07-261-0/+22
|
* Moved static Tk_OptionTable vars into structs.treectrl2003-01-281-10/+8
|
* Fixed bug with 'state undefine'.treectrl2003-01-061-7/+11
|
* Some new public functions defined.treectrl2003-01-051-4/+38
| | | | TreeStyle_GetSortData accepts index of element to use.
* Remove 20-element limit.treectrl2003-01-021-34/+120
|
* Big padx and pady patch.treectrl2003-01-021-280/+336
|
* Extra arg added to TreeStyle_ElementConfigure.treectrl2002-12-311-5/+20
|
* Define TreeStyle_ValidateElements.treectrl2002-12-291-2/+31
|
* Return error when illegal chars specified in -expand, -iexpand and -squeeze.treectrl2002-12-281-10/+37
|
* element delete command works when element is in use.treectrl2002-12-231-2/+39
|
* Text layout fixes.treectrl2002-12-211-20/+43
|
* Replaced GNU __FUNCTION__ with ANSI __FILE__ and __LINE__.treectrl2002-12-181-6/+6
|
* Initial revisiontreectrl2002-12-171-0/+3652