<commit_before>/*

    Copyright (C) 2013 <NAME>

    This file is part of bleepsix v2.

    bleepsix is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    bleepsix is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with bleepsix.  If not, see <http://www.gnu.org/licenses/>.

    Parts based on bleepsix v1. BSD license
    by <NAME> and <NAME>.

*/

var __icon_width = 24;

function guiBoardToolbox( name, bgColor  ) 
{
  bgColor = ((typeof bgColor !== 'undefined') ? bgColor : "rgba(255,255,255,0.4)" );
  this.constructor ( name )   

  //this.bgColor = "rgba( 0, 0, 255, 0.2 )";
  this.bgColor = bgColor;

  this.iconWidth = __icon_width;
  this.width = this.iconWdith + 5;

  this.height = 4* this.iconWidth;
  this.iconHeight = this.iconWidth;

  this.tabHeight = this.iconWidth;
  this.tabWidth = this.width - this.iconWidth;

  var cur_y = 0;
  var sz = this.iconWidth;


  // iconNav is just a simple guiIcon
  //
  this.iconNav = new guiIcon( name + ":nav" );
  this.iconNav.init( 0, cur_y, sz, sz);
  this.iconNav.drawShape = _draw_nav_icon;
  this.iconNav.bgColor = bgColor;
  this.iconNav.fgColor = "rgb(255,255,255)";
  this.addChild( this.iconNav );

  cur_y += this.iconNav.height;


  // grouped trace functions (trace, via, etc(?))
  //
  var w = new guiDropIcon( this.name + ":droptrace", this.iconWidth , this.iconWidth );
  w.bgColor = bgColor;
  w.fgColor = "rgb(255,255,255)";
  w.divColor = "rgba(255,255,255,0.2)";
  w.addIcon( this.name + ":trace", _draw_trace_icon );
  w.addIcon( this.name + ":via" , _draw_via_icon );
  w.move(0, cur_y);

  this.dropTrace = w;
  this.addChild( w );

  cur_y += w.height;


  // zone
  //
  var z = new guiDropIcon( this.name + ":dropzone", this.iconWidth, this.iconWidth );
  z.bgColor = bgColor;
  z.fgColor = "rgb(255,255,255)";
  z.divColor = "rgba(255,255,255,0.2)";
  z.addIcon( this.name + ":zone", _draw_zone_icon );
  z.move(0, cur_y);

  this.dropZone = z;
  this.addChild( z );

  cur_y += z.height;



  // grouped art functions (edge, box, arcs, circles, etc.)
  //
  var u = new guiDropIcon( this.name + ":dropedge", this.iconWidth , this.iconWidth );
  u.bgColor = bgColor;
  u.fgColor = "rgb(255,255,255)";
  u.divColor = "rgba(255,255,255,0.2)";
  //u.addIcon( this.name + ":edge", _draw_edge_icon );
  u.addIcon( this.name + ":edge", 
      (function(s) { return function() { s._draw_edge_icon(); }; })(this)  );
  //u.addIcon( this.name + ":text", _draw_text_icon );
  u.addIcon( this.name + ":box", _draw_box_icon );
  u.addIcon( this.name + ":circle", _draw_circle_icon );
  u.addIcon( this.name + ":arc", _draw_arc_icon );
  u.addIcon( this.name + ":roundedbox", _draw_roundedbox_icon );
  u.addIcon( this.name + ":inroundedbox", _draw_inroundedbox_icon );
  u.move(0, cur_y);

  this.dropEdge = u;
  this.addChild( u );

  cur_y += u.height;


  // text
  //
  /*
  var t.= new guiDropIcon( this.name + ":droptext", this.iconWidth, this.iconWidth );
  t.bgColor = bgColor;<commit_msg>commented out circle and arc in dropdown for later implementation.<commit_after>/*

    Copyright (C) 2013 <NAME>

    This file is part of bleepsix v2.

    bleepsix is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    bleepsix is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with bleepsix.  If not, see <http://www.gnu.org/licenses/>.

    Parts based on bleepsix v1. BSD license
    by <NAME> and <NAME>.

*/

var __icon_width = 24;

function guiBoardToolbox( name, bgColor  ) 
{
  bgColor = ((typeof bgColor !== 'undefined') ? bgColor : "rgba(255,255,255,0.4)" );
  this.constructor ( name )   

  //this.bgColor = "rgba( 0, 0, 255, 0.2 )";
  this.bgColor = bgColor;

  this.iconWidth = __icon_width;
  this.width = this.iconWdith + 5;

  this.height = 4* this.iconWidth;
  this.iconHeight = this.iconWidth;

  this.tabHeight = this.iconWidth;
  this.tabWidth = this.width - this.iconWidth;

  var cur_y = 0;
  var sz = this.iconWidth;


  // iconNav is just a simple guiIcon
  //
  this.iconNav = new guiIcon( name + ":nav" );
  this.iconNav.init( 0, cur_y, sz, sz);
  this.iconNav.drawShape = _draw_nav_icon;
  this.iconNav.bgColor = bgColor;
  this.iconNav.fgColor = "rgb(255,255,255)";
  this.addChild( this.iconNav );

  cur_y += this.iconNav.height;


  // grouped trace functions (trace, via, etc(?))
  //
  var w = new guiDropIcon( this.name + ":droptrace", this.iconWidth , this.iconWidth );
  w.bgColor = bgColor;
  w.fgColor = "rgb(255,255,255)";
  w.divColor = "rgba(255,255,255,0.2)";
  w.addIcon( this.name + ":trace", _draw_trace_icon );
  w.addIcon( this.name + ":via" , _draw_via_icon );
  w.move(0, cur_y);

  this.dropTrace = w;
  this.addChild( w );

  cur_y += w.height;


  // zone
  //
  var z = new guiDropIcon( this.name + ":dropzone", this.iconWidth, this.iconWidth );
  z.bgColor = bgColor;
  z.fgColor = "rgb(255,255,255)";
  z.divColor = "rgba(255,255,255,0.2)";
  z.addIcon( this.name + ":zone", _draw_zone_icon );
  z.move(0, cur_y);

  this.dropZone = z;
  this.addChild( z );

  cur_y += z.height;



  // grouped art functions (edge, box, arcs, circles, etc.)
  //
  var u = new guiDropIcon( this.name + ":dropedge", this.iconWidth , this.iconWidth );
  u.bgColor = bgColor;
  u.fgColor = "rgb(255,255,255)";
  u.divColor = "rgba(255,255,255,0.2)";
  //u.addIcon( this.name + ":edge", _draw_edge_icon );
  u.addIcon( this.name + ":edge", 
      (function(s) { return function() { s._draw_edge_icon(); }; })(this)  );
  //u.addIcon( this.name + ":text", _draw_text_icon );
  u.addIcon( this.name + ":box", _draw_box_icon );
  //u.addIcon( this.name + ":circle", _draw_circle_icon );
  //u.addIcon( this.name + ":arc", _draw_arc_icon );
  u.addIcon( this.name + ":roundedbox", _draw_roundedbox_icon );
  u.addIcon( this.name + ":inroundedbox", _draw_inroundedbox_icon );
  u.move(0, cur_y);

  this.dropEdge = u;
  this.addChild( u );

  cur_y += u.height;


  // text
  //
  /*
  var t.= new guiDropIcon( this.name + ":droptext", this.iconWidth, this.iconWidth );
  t.bgColor = bgColor;
{'fraction_non_alphanumeric': 0.14674779081558742, 'fraction_numerical': 0.029842097638707807, 'mean_word_length': 3.2538508934072703, 'pattern_counts': {'":': 32, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4860154', 'n_tokens_mistral': 2708, 'n_tokens_neox': 2499, 'n_words': 666}