layout typeLayerPropertiesView
    {
    constant:
        zWidthLabel        : '$$$/TypeLayerProperties/Width/Label=W:';
        zWidthTooltip      : '$$$/TypeLayerProperties/ToolTips/TypeWidth=Set type layer width';
        zHeightTooltip     : '$$$/TypeLayerProperties/ToolTips/TypeHeight=Set type layer height';
        zHeightLabel       : '$$$/TypeLayerProperties/Height/Label=H:';
        zLinkTooltip       : '$$$/TypeLayerProperties/ToolTips/TypeWidthHeightLinkTooltip=Link type layer width and height';
        zXLabel            : '$$$/TypeLayerProperties/X/Label=X:';
        zXTooltip          : '$$$/TypeLayerProperties/X/ToolTip=Set horizontal location';
        zYLabel            : '$$$/TypeLayerProperties/Y/Label=Y:';
        zYTooltip          : '$$$/TypeLayerProperties/Y/ToolTip=Set vertical location';
        zBoundingBoxSep    : '$$$/TypeLayerProperties/BoundingBox=BoundingBox';

        kContentWidth : gPropertiesPaletteWidth - gScrollerInset - gOptionsMarginWidth * 2;

    interface:
        boundingBox : true;

    view TTypeLayerPropertiesView(identifier     : @typeLayerPropertiesPanel,
                                  placement      : place_column,
                                  font           : staticSmallFont,
                                  margin         : gOptionsMarginWidth,
                                  noGrowVertical : true,
                                  spacing        : gGap,
                                  qDebugDraw     : false)
        {

        overlay(name: zBoundingBoxSep, bind: @boundingBox);

        TOptional(bind: @boundingBox, width: kContentWidth)
            {
            row(horizontal     : align_fill,
                spacing        : gGap)
                {
                TUnitsFixedPoint(identifier : @typeLayerWidth,
                                 name       : zWidthLabel,
                                 horizontal : align_fill,
                                 width      : gFixedEditTextWidth,
                                 tooltip    : zWidthTooltip);

                TPunchButton(width        : gToolOptionsIconWidth,
                             height       : 20,
                             horizontal   : align_left,
                             identifier   : @typeLayerBBoxLink,
                             tooltip      : zLinkTooltip,
                             iconRootName : 'CellLinkIndicator');

                TUnitsFixedPoint(identifier : @typeLayerHeight,
                                 name       : zHeightLabel,
                                 horizontal : align_fill,
                                 width      : gFixedEditTextWidth,
                                 tooltip    : zHeightTooltip);
                }

            row(horizontal     : align_fill,
                spacing        : gGap)
                {
                TUnitsFixedPoint(identifier : @typeLayerLeft,
                                 name       : zXLabel,
                                 horizontal : align_fill,
                                 width      : gFixedEditTextWidth,
                                 tooltip    : zXTooltip);

                TView(width: gToolOptionsIconWidth, height: 2, horizontal: align_left);

                TUnitsFixedPoint(identifier : @typeLayerTop,
                                 name       : zYLabel,
                                 horizontal : align_fill,
                                 width      : gFixedEditTextWidth,
                                 tooltip    : zYTooltip);
                }
            }
        }
    }
