Quintiq file version 2.0
#parent: #root
Method Edit (
  internal[GUIComponent] parent,
  output String colorHigh_o,
  output String colorMid_o,
  output String colorLow_o
) as Boolean id:Method_LibOpt_DialogHeatMapColors_Edit
{
  #keys: '[140544.1.907293697]'
  Body:
  [*
    //Edit heat map colors
    
    colorsSet := false;
    
    ColorSelectorHigh.Color( Color::Color( [Number]colorHigh_o ) );
    ColorSelectorMid.Color( Color::Color( [Number]colorMid_o ) );
    ColorSelectorLow.Color( Color::Color( [Number]colorLow_o ) );
    
    if ( Dialog.DoModal( parent ) > 0 )
    {
      Dialog.SetColorsToOutput( colorHigh_o, colorMid_o, colorLow_o );
      colorsSet := true;
    }                   
    
    return colorsSet;
  *]
}
