From 78740373985ac1d9ebbad3807a9ccc7b4db13def Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 22 Jan 2003 14:50:39 +0000 Subject: *** empty log message *** --- generic/tkZinc.c | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) (limited to 'generic/tkZinc.c') diff --git a/generic/tkZinc.c b/generic/tkZinc.c index 696cb28..bdf14d2 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -1978,8 +1978,8 @@ ZnItemWithTagOrId(WidgetInfo *wi, * * Perform layouts on items. It can position items horizontally, * vertically, along a path or with respect to a reference item. - * It can also align on a grid and resize items to a common - * reference. + * It can also align on a grid, evenly space items and resize + * items to a common reference. * *---------------------------------------------------------------------- */ @@ -1991,16 +1991,14 @@ LayoutItems(WidgetInfo *wi, int index, result; Item item; static CONST char *layout_cmd_strings[] = { - "bbalign", "valign", "halign", "align", - "position", "grid", "size", NULL + "align", "grid", "position", "scale", "space", NULL }; enum layout_cmds { - ZN_L_BBALIGN, ZN_L_VALIGN, ZN_L_HALIGN, ZN_L_ALIGN, - ZN_L_POSITION, ZN_L_GRID, ZN_L_SIZE + ZN_L_ALIGN, ZN_L_GRID, ZN_L_POSITION, ZN_L_SCALE, ZN_L_SPACE }; if (Tcl_GetIndexFromObj(wi->interp, args[0], layout_cmd_strings, - "align command", 0, &index) != ZN_OK) { + "layout command", 0, &index) != ZN_OK) { return ZN_ERROR; } switch((enum layout_cmds) index) { @@ -2010,19 +2008,9 @@ LayoutItems(WidgetInfo *wi, case ZN_L_ALIGN: break; /* - * halign - */ - case ZN_L_HALIGN: - break; - /* - * valign - */ - case ZN_L_VALIGN: - break; - /* - * bbalign + * grid */ - case ZN_L_BBALIGN: + case ZN_L_GRID: break; /* * position @@ -2030,14 +2018,14 @@ LayoutItems(WidgetInfo *wi, case ZN_L_POSITION: break; /* - * grid + * scale */ - case ZN_L_GRID: + case ZN_L_SCALE: break; /* - * size + * space */ - case ZN_L_SIZE: + case ZN_L_SPACE: break; } -- cgit v1.1