box method

void box(
  1. String caller
)

Calling boxServe-class for info.

Implementation

void box(String caller) {
  buf.writeln(':dawoHist:box:start: C:$caller 123456789-23456789-23456788');
  print('-->>-->>-- :dawoHist:box:start: C:$caller  -->>-->>-- ');
  //  use: boxServe  OR  create own class here
  //  devl:DEV box  set min-max values
  //  :BOX:SW:  was 190
  //  unused::  final int _sw = 200; //  screen width, changed later =>
  //  row count, was 37,  added to 45
  final int _rc = 43;

  ///
  String boxHeader = ':dawoHist:box:';

  print('-->>-->>  $boxHeader boxServe  start  -->>-->>--  ');
  //  rows, width or: 0 = use default 47, 195
  boxServe.init(_rc, 200, '_');
  boxServe.construct(':dhst:box: ', ':dHst:      ');
  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  //  hklTry: NOT USE:  boxLayOutDep
  int r9 = 9;
  int r28 = 28;
  String _rubric = ':rubric:  _ NO _';
  boxServe.aHeader(1, 4, '* *  info L * * ');
  boxServe.aBox(2, 4, 3, 30, infoL);

  ///  rubric like: DAWO HIST INFO
  boxServe.aHeader(0, 60, ' :layout:_NO_: ');
  boxServe.aHeader(1, 60, ' *  $_rubric  *  by :layout:_  NO  _:');

  boxServe.aHeader(2, 52, '    *        Motto:        *  ');
  boxServe.aBox(3, 50, 3, 45, tl.mapToFineList(mottoM, 4, 45));

  boxServe.aHeader(7, 52, '    *       agendaM:                     *   ');
  boxServe.aBox(8, 50, 3, 52, tl.mapToFineList(agendaM, 8, 44));

  //  boxServe.aBox(2, 7, 6, 16, tl.mapToListB(_model.st));

  //  devl:DEV  also buffer must catch to inner buf.
  List<String> _bufList = [];
  _bufList.addAll(buf.toString().split('\n'));
  boxServe.aHeader(r9 - 2, 7, '   *   Buffer:   *  ');
  boxServe.aBox(r9 - 1, 6, 28, 38, _bufList);

  //  50- 57,  row  1
  boxServe.aHeader(12, 52, '   *   bugList from gitHub heiklap:dawo *   ');
  boxServe.aBox(13, 50, 16, 55, bugL);

  int r21 = 21;

  boxServe.vertLine(r21, 6, 7); //  time
  boxServe.aHeader(r21, 10, '* Time: *');
  boxServe.aBox(r21 + 1, 8, 5, 12, timeL);

  boxServe.aHeader(r21, 27, '* areas *');
  boxServe.aBox(r21 + 1, 25, 5, 15, areaL);
  boxServe.vertLine(r21, 49, 7); //  area

  boxServe.aHeader(2, 108, '  *     git   update   list  messages  *  ');
  boxServe.aBox(3, 108, 15, 90, gitL);

  ///  hklTry for 1.0.0 version
  boxServe.aHeader(r28, 9, ' * dawo:003  * ');
  boxServe.aBox(r28 + 1, 7, 10, 34, tl.mapToFineList(dawo003, 10, 22));

  boxServe.aHeader(r28, 46, ' *    app:Map    *       ');
  boxServe.aBox(r28 + 1, 45, 10, 43, tl.mapToFineList(appMap, 10, 31));

  boxServe.aHeader(r28, 91, ' *   appPhaseM  * ');
  boxServe.aBox(r28 + 1, 91, 10, 32, tl.mapToFineList(appPhaseM, 12, 16));

  boxServe.aHeader(r28, 130, ' *   v 1.0.0 libPhaseM * ');
  boxServe.aBox(r28 + 1, 126, 12, 32, tl.mapToFineList(libPhaseM, 8, 22));

  boxServe.aHeader(r28, 164, ' *   to v 2. actPhaseM  * ');
  boxServe.aBox(r28 + 1, 163, 12, 32, tl.mapToFineList(actPhaseM, 8, 22));

  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  //  unused::  int r9 = 9; //  anchor for row.
  boxServe.show(':box:dHst:', 'print', 0);

  ///  Set boxServe ready for next user: clear data.
  boxServe.done(':box:dHst:');
}