rem: vColorSelector.setCurrentColor(this.getCurrentColor() ? this.getCurrentColor() : [ 127, 255, 255 ]); 
context: function QxColorPresetPopup(vTemplateColors, vHistoryColors, vColorSelector){  QxPopup.call(this);    var vField, vFieldSet;  var vBase = QxColorPresetPopup.baseColors;  var vLength = vBase.length;      var vInnerWidth = (this._fieldWidth * vLength) + (this._fieldSpace * (vLength-1));  var vFullWidth = vInnerWidth + (2 * (this._padding + 1));  var vPreviewWidth = Math.round((vInnerWidth / 2) - 2);    this.setWidth(230);  this.setHeight(260);  this.setBackgroundColor("ThreedFace");  this.setBorder(QxBorder.presets.outset);    this._baseColors = [];  this._templateColors = [];  this._historyColors = [];    var vTop = this._padding;      var o = this._auto = new QxAtom(QxColorPresetPopup.textAuto, "icons/16/iconthemes.png");    o.setBorder(QxBorder.presets.outset);  o.setPadding(2, 4);  o.setTop(vTop);  o.setLeft(this._padding);  o.setWidth(null);  o.setRight(this._padding);  o.setParent(this);      o.addEventListener("mousedown", this._onautoclick, this);    vTop += 30;          vFieldSet = new QxFieldSet(QxColorPresetPopup.textBaseColors);    vFieldSet.setTop(vTop);  vFieldSet.setLeft(this._padding);  vFieldSet.setRight(this._padding);  vFieldSet.setMinHeight(45);    for (var i=0; i<vLength; i++)  {    vField = new QxWidget;        vField.setBackgroundColor(vBase[i]);    vField.setWidth(this._fieldWidth);    vField.setHeight(this._fieldHeight);    vField.setLeft(i* (this._fieldWidth + this._fieldSpace));    vField.setTop(0);    vField.setBorder(QxBorder.presets.inset);    vField.addEventListener("mousedown", this._oncolorclick, this);    vField.addEventListener("mouseover", this._oncolorover, this);    vField.addEventListener("mouseout", this._oncolorout, this);    vField.setParent(vFieldSet);    this._baseColors.push(vField);  };    this.add(vFieldSet);      vTop += this._fieldHeight + this._fieldSpace + 35;    vFieldSet = new QxFieldSet(QxColorPresetPopup.textTemplateColors);    vFieldSet.setTop(vTop);  vFieldSet.setLeft(this._padding);  vFieldSet.setRight(this._padding);  vFieldSet.setMinHeight(45);    for (var i=0; i<vLength; i++)  {    vField = new QxWidget;        if (vTemplateColors[i]) {      vField.setBackgroundColor(vTemplateColors[i]);    };        vField.setWidth(this._fieldWidth);    vField.setHeight(this._fieldHeight);    vField.setLeft(i* (this._fieldWidth + this._fieldSpace));    vField.setTop(0);    vField.setBorder(QxBorder.presets.inset);        vField.addEventListener("mousedown", this._oncolorclick, this);    vField.addEventListener("mouseover", this._oncolorover, this);    vField.addEventListener("mouseout", this._oncolorout, this);    vField.setParent(vFieldSet);             this._templateColors.push(vField);   };    this.add(vFieldSet);          vTop += this._fieldHeight + this._fieldSpace + 35;    vFieldSet = new QxFieldSet(QxColorPresetPopup.textHistoryColors);    vFieldSet.setTop(vTop);  vFieldSet.setLeft(this._padding);  vFieldSet.setRight(this._padding);  vFieldSet.setMinHeight(45);      for (var i=0; i<vLength; i++)  {    vField = new QxWidget;        if (vHistoryColors[i]) {      vField.setBackgroundColor(vHistoryColors[i]);    };        vField.setWidth(this._fieldWidth);    vField.setHeight(this._fieldHeight);    vField.setLeft(i* (this._fieldWidth + this._fieldSpace));    vField.setTop(0);    vField.setBorder(QxBorder.presets.inset);        vField.addEventListener("mousedown", this._oncolorclick, this);    vField.addEventListener("mouseover", this._oncolorover, this);    vField.addEventListener("mouseout", this._oncolorout, this);    vField.setParent(vFieldSet);             this._historyColors.push(vField);   };    this.add(vFieldSet);        vTop += this._fieldHeight + this._fieldSpace + 45;        var o = this._previewOld = new QxAtom(QxColorPresetPopup.textSavedColor);    o.setHeight(25);  o.setWidth(105);  o.setTop(vTop);  o.setLeft(this._padding);  o.setBorder(QxBorder.presets.inset);  o.setPadding(2, 4);  o.setHorizontalBlockAlign("center");  o.setParent(this);        var o = this._previewNew = new QxAtom(QxColorPresetPopup.textNewColor);    o.setHeight(25);  o.setWidth(105);  o.setTop(vTop);  o.setRight(this._padding);  o.setBorder(QxBorder.presets.inset);  o.setPadding(2, 4);  o.setHorizontalBlockAlign("center");  o.setParent(this);            vTop += 30;        var o = this._vStartComplex = new QxAtom(QxColorPresetPopup.textAllColors, "icons/16/kcoloredit.png");  o.setBorder(QxBorder.presets.outset);  o.setPadding(2, 4);      o.setTop(vTop);  o.setLeft(this._padding);  o.setWidth(null);  o.setRight(this._padding);  o.setParent(this);       o.addEventListener("mousedown", function(e)  {    vColorSelector.setSavedColor(this.getCurrentColor());    vColorSelector.setCurrentColor(this.getCurrentColor() ? this.getCurrentColor() : [ 127, 255, 255 ]);    vColorSelector.setTop(100);    vColorSelector.setLeft(100);          vColorSelector.setVisible(true);  }, this);};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/5e603c3e83d03371b3b9e3ee3e63881093c49786/QxColorPresetPopup.js/clean/qooxdoo/source/script/widgets/QxColorPresetPopup.js