[
  {
    blockid=delete;
    title="\u5220\u9664\u8ba8\u8bba\u7ec4";
    buttonsat=south;

    localvar=
    {
      .delete.node.text.size=400;

      .delete.options.items=
      [
        "local",
        "replicated"
      ];
      .delete.options.labels=
      [
        "\u4ec5\u5728\u6b64\u670d\u52a1\u5668\u4e0a\u5220\u9664",
        "\u5728\u6b64\u670d\u52a1\u5668\u548c\u6240\u6709\u7684\u590d\u5236\u670d\u52a1\u5668\u4e0a\u5220\u9664"
      ];
    };

    content=
    [ /* delete dialog contents */

      {
        ctrl=label;
        text=$delete.nodename.text;
        wrap=$.delete.node.text.size;
      },

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* separator */
        ctrl=separator;
      }, /* separator */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* choice to delete locally or on all servers */
        ctrl=choice;
        style=radio;
        items=$.delete.options.items;
        labels=$.delete.options.labels;
        val=$delete.options.mode;
      } /* choice to delete locally or on all servers */

    ] /* delete dialog contents */
  },

  {
    blockid=layout.folders.node.delete.children;
    title="\u5220\u9664\u8ba8\u8bba\u7ec4";
    buttonsat=south;
    resizable=true;

    localvar=
    {
      .delete.node.text.size=400;

      .delete.options.border=[titled, "\u5220\u9664\u9009\u9879"];
      .delete.options.items=
      [
        "local",
        "replicated"
      ];
      .delete.options.labels=
      [
        "\u4ec5\u5728\u6b64\u670d\u52a1\u5668\u4e0a\u5220\u9664",
        "\u5728\u6b64\u670d\u52a1\u5668\u548c\u6240\u6709\u7684\u590d\u5236\u670d\u52a1\u5668\u4e0a\u5220\u9664"
      ];

      .delete.pattern.text = "\u5220\u9664\u4e0e\u67d0\u79cd\u6a21\u5f0f\u76f8\u5339\u914d\u7684\u5f53\u524d\u7ec4\u4e0b\u7684\u7ec4";
      .delete.pattern.label = "\u8f93\u5165\u6a21\u5f0f :";
      .label.size = 80;
      .delete.nodes.text = "\u5220\u9664\u6240\u9009\u7684\u7ec4";

      .select.all.text="\u5168\u9009";
      .select.none.text="\u5168\u90e8\u4e0d\u9009";
    };

    content=
    [

      {
        ctrl=label;
        text=$delete.nodename.text;
        wrap=$.delete.node.text.size;
      },

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* separator */
        ctrl=separator;
      }, /* separator */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* choice to delete locally or on all servers */
        ctrl=choice;
        style=radio;
        items=$.delete.options.items;
        labels=$.delete.options.labels;
        val=$delete.options.mode;
      }, /* choice to delete locally or on all servers */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* separator */
        ctrl=separator;
      }, /* separator */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* delete selected nodes */
        ctrl=togglepane;
        style=radio;
        group=deletenodes;
        text=$.delete.nodes.text;
        id=deletenodes;
        inline=false;
        content=
        [ /* delete selected nodes contents */

          { /* table and buttons */
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* table and buttons contents */

              { /* nodes table */
                ctrl=table;
                id=nodestable;
                stdtable=false;
                showadd=false;
                showedit=false;
                showdelete=false;
                columns=
                [
                  {
                    header="";
                  }
                ];
              }, /* nodes table */

              { /* component space */
                ctrl=hstrut;
                size=$g.comp.space.sep;
              }, /* component space */

              { /* button array */
                ctrl=pane;
                layout=[ybox];
                content=
                [

                  { /* select all */
                    ctrl=button;
                    cmd=.select.all;
                    text=$.select.all.text;
                    id=selectallbtn;
                  }, /* select all */

                  { /* component space */
                    ctrl=vstrut;
                    size=$g.comp.space;
                  }, /* component space */

                  { /* select none */
                    ctrl=button;
                    cmd=.select.none;
                    text=$.select.none.text;
                    id=selectnonebtn;
                  } /* select none */

                ];
              } /* button array */

            ]; /* table and buttons contents */
          }, /* table and buttons */

          { /* component space */
            ctrl=vstrut;
            size=$g.comp.space;
          }, /* component space */

          { /* status label */
            ctrl=label;
            text=$status.text;
            alignh=left;
            id=statustext;
          } /* status label */

        ]; /* delete selected nodes contents */
      }, /* delete selected nodes */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* delete pattern */
        ctrl=togglepane;
        style=radio;
        id=deletepatt;
        inline=false;
        group=deletenodes;
        text=$.delete.pattern.text;
        content=
        [ /* delete pattern contents */

          {
            ctrl=pane;
            layout=[xbox];
            content=
            [

              {
                ctrl=label;
                text=$.delete.pattern.label;
                wrap=$.label.size;
                id=deletepatternlabel;
                alignh=left;
                aligny=0.5;
              },

              { /* component space */
                ctrl=vstrut;
                size=$g.comp.space.sep;
              }, /* component space */

              {
                ctrl=text;
                label=deletepatternlabel;
                aligny=0.5;
                id=deletepattern;
              }

            ]
          }

        ]; /* delete pattern contents */
      } /* delete pattern */

    ];
  }

]

