[
  { /* encryption panel spec */

    blockid=encryption;

    localvar=
    {
      .label.size=200;
      .enc.encryption.label="\u6697\u53f7\u5316:";
      .enc.enable.on=On;
      .enc.enable.off=Off;
      .enc.port.label="\u30dd\u30fc\u30c8:";
      .enc.def.auth.label="\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a8d\u8a3c\u65b9\u6cd5:";
      .enc.auth.mehtod.items=
      [
        basic,
        certs
      ];
      .enc.auth.method.labels=
      [
        "\u57fa\u672c",
        "\u8a3c\u660e\u66f8"
      ];
    };

    content=
    [ /* encryption panel content */

      { /* switchboard to enable/disable security */
        ctrl=switchboard;
        switchalign=left;
        switchborder=false;
        switch=
        [ /* switch contents */

          { /* encryption enabled ?*/
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* encryption enabled contents */

              { /* encryption label */
                ctrl=label;
                text=$.enc.encryption.label;
                aligny=0.5;
              },

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

              { /* pane containing radio btns */
                ctrl=choice;
                style=combobox;
                items=[enabled,disabled];
                labels=["\u6709\u52b9", "\u7121\u52b9\u5316"];
                aligny=0.5;
/*
                ctrl=pane;
                border=[etched];
                layout=[ybox];
                aligny=0.5;
                content=
                [

                  {
                    ctrl=radio;
                    text=$.enc.enable.on;
                    group=enable;
                  },

                  {
                    ctrl=radio;
                    text=$.enc.enable.off;
                    group=enable;
                  }

                ]
*/
              } /* pane containing radio btns */

            ]; /* encryption enabled contents */
          } /* encryption enabled ?*/

        ]; /* switch contents */

        content=
        [ /* switchboard contents */

          { /* secure port number */
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* secure port contents */

              { /* port label */
                ctrl=label;
                text=$.enc.port.label;
                wrap=$.label.size;
                alignh=right;
                aligny=0.5;
              }, /* port label */

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

              { /* port textfield */
                ctrl=number;
                aligny=0.5;
              } /* port textfield */

            ] /* secure port contents */
          }, /* secure port number */

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

          { /* def. auth. method */
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* def. auth. method contents */

              { /* label */
                ctrl=label;
                text=$.enc.def.auth.label;
                wrap=$.label.size;
                alignh=right;
                aligny=0.5;
              }, /* label */

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

              { /* auth. method combobox */
                ctrl=choice;
                style=combobox;
                items=$.enc.auth.mehtod.items;
                labels=$.enc.auth.method.labels;
                aligny=0.5;
              } /* auth. method combobox */

            ] /* def. auth. method contents */
          } /* def. auth. method */

        ]; /* switchboard contents */

      } /* switchboard to enable/disable security */

    ]; /* encryption panel content */

  } /* encryption panel spec */

]


