[
  { /* reports layout specs */

    blockid=reports;
    custom=com.netscape.management.msgserv.nntp.NNTPReports;

    localvar=
    {
      .comp.space.btns = 30;
      .comp.space.btns.left = 300;
      .comp.space.btns.sep = 12;

      .notif.title=[titled, "\u901a\u77e5"];
      .notif.admin.label="\u7ba1\u7406\u5458\u7684\u7535\u5b50\u90ae\u4ef6:";
      .notif.stats.enabled="\u542f\u7528\u7edf\u8ba1";
      .notif.warnings.text="\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u5c06\u5411\u7d27\u6025\u8b66\u544a\u53d1\u9001\u7ed9\u7ba1\u7406\u5458";
      .notif.newsdaily.text="\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u5c06 news.daily \u62a5\u544a\u53d1\u9001\u7ed9\u7ba1\u7406\u5458";

      .view.btn.daily.text="\u67e5\u770b\u6bcf\u65e5\u62a5\u544a";
      .view.btn.stats.text="\u67e5\u770b\u7edf\u8ba1\u4fe1\u606f";
      .view.btn.daily.cmd=".view.daily";
      .view.btn.stats.cmd=".view.stats";
    },

    content=
    [ /* reports layout contents */

      { /* notifications group */
        ctrl=pane;
        layout=[ybox];
        border=$.notif.title;
        content=
        [ /* notifications content */

          { /* statistics enabled */
            ctrl=togglepane;
            text=$.notif.stats.enabled;
            val=$service.nntp.service.statsenabled.nsvalue;
          }, /* statistics enabled */

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

          { /* warnings enabled */
            ctrl=togglepane;
            text=$.notif.warnings.text;
            val=$service.nntp.service.sendwarnings.nsvalue;
          }, /* warnings enabled */

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

          { /* news.daily reports enabled */
            ctrl=togglepane;
            text=$.notif.newsdaily.text;
            val=$service.nntp.service.sendreports.nsvalue;
          }, /* news.daily reports enabled */

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

          { /* admin email */
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* admin email contents */

              { /* label */
                ctrl=label;
                wrap=$.notif.label.size;
                alignh=left;
                aligny=0.5;
                text=$.notif.admin.label;
                id=newsmaster;
                label=newsmaster;
              },

              {
                ctrl=rigid;
              },

              { /* admin email textfield */
                ctrl=text;
                aligny=0.5;
                label=newsmaster;
                val=$service.nntp.service.newsmaster.nsvalue;
              } /* admin email textfield */

            ] /* admin email contents */
          } /* admin email */

        ] /* notifications content */
      }, /* notifications group */

      {
        ctrl=vstrut;
        size=$.comp.space.btns;
      },

      { /* view reports group */
        ctrl=pane;
        layout=[xbox];
        content=
        [ /* view reports contents */

          { /* glue buttons to the right */
            ctrl=hstrut;
            size=$.comp.space.btns.left;
          }, /* glue buttons to the right */

          { /* view daily reports */
            ctrl=pane;
            layout=[ybox];
            content=
            [ /* view daily reports contents */

              { /* btn. */
                ctrl=button;
                text=$.view.btn.daily.text;
                cmd=$.view.btn.daily.cmd;
              }, /* btn. */

              {
                ctrl=vstrut;
                size=$.comp.space.btns.sep;
              },

              { /* btn. */
                ctrl=button;
                text=$.view.btn.stats.text;
                cmd=$.view.btn.stats.cmd;
              } /* btn. */

            ] /* view daily reports contents */
          } /* view daily reports */

        ] /* view reports contents */
      } /* view reports group */

    ] /* reports layout contents */
  } /* reports layout specs */

]



