/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2015 Adobe Systems Incorporated
*  All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/

layout PrefsCSSPreprocessors
{
    view subview(grow: false,
                 horizontal: @align_center,
                 identifier: "IDD_PREFS_CSS_PREPROCESSORS",
                 name: "$$$/PrefsCssPreprocessors/Title/CssPreprocessors=CSS Preprocessors",
                 margin: 5,
                 parent_container_id: "list_sheet_container",
                 resizeChildren: false,
                 spacing: 5)
    {
        column(margin: 5,
               spacing: 15)
        {
            row(guide_mask: [ @guide_label ],
                margin: 0,
                spacing: 5)
            {
                checkbox(identifier: "IDC_ENABLE_CSS_PREPROCESSING",
                             indent: 1,
                             name: "$$$/PrefsCssPreprocessors/CheckBox/EnableCompilation/Label=Enable &compilation",
                             set_default_focus: true,
                             tab_next_node: "IDC_CSS_PREPROCESSING_ONLOAD");

            }
            
            row(horizontal: @align_fill)
            {
                separator();
            }
            
            row(spacing: 5)
            {
                column()
                {
                    placeholder(width: 30);
                }
                column()
                {
                    row(horizontal: @align_right)
                    {
                        static_text(horizontal: @align_right,
                                identifier: "IDC_STATIC",
                                name: "$$$/PrefsCssPreprocessors/Label/TriggerCompilationOn=Trigger compilation:");
                    }
                    row(horizontal: @align_right)
                    {
                        static_text(horizontal: @align_right,
                                identifier: "IDC_STATIC",
                                indent: 83,
                                name: "$$$/PrefsCssPreprocessors/Label/Less=LESS:");
                    }
                    row(horizontal: @align_right)
                    {
                        static_text(horizontal: @align_right,
                                identifier: "IDC_STATIC",
                                indent: 110,
                                name: "$$$/PrefsCssPreprocessors/Label/Sass=SASS/SCSS:");
                    }
                }

                column()
                {
                    row()
                    {
                        column()
                        {
                            checkbox(identifier: "IDC_CSS_PREPROCESSING_ONLOAD",
                                     indent: 1,
                                     name: "$$$/PrefsCssPreprocessors/Checkbox/Label/OnLoad=On Loa&d",
                                     set_default_focus: false,
                                     tab_next_node: "IDC_CSS_PREPROCESSING_ONSAVE");

                            checkbox(identifier: "IDC_CSS_PREPROCESSING_ONSAVE",
                                     indent: 1,
                                     name: "$$$/PrefsCssPreprocessors/Checkbox/Label/OnSave=On &Save",
                                     set_default_focus: false,
                                     tab_next_node: "IDC_CSS_PREPROCESSING_ONEDIT");

                            checkbox(identifier: "IDC_CSS_PREPROCESSING_ONEDIT",
                                     indent: 1,
                                     name: "$$$/PrefsCssPreprocessors/Checkbox/Label/OnEdit=On &Edit",
                                     set_default_focus: false,
                                     tab_next_node: "IDC_LESS_STRICT_MATH_CHECK");
                        }
                    }

                    row()
                    {
                        placeholder(height: 20);
                    }

                    row()
                    {
                        column()
                        {
                            row()
                            {
                                checkbox(identifier: "IDC_LESS_STRICT_MATH_CHECK",
                                     ident: 1,
                                     name: "$$$/PrefsCssPreprocessors/CheckBox/EnableStrictMath=Enable strict math",
                                     tab_next_node: "IDC_LESS_STRICT_UNITS_CHECK");
                            }

                            checkbox(identifier: "IDC_LESS_STRICT_UNITS_CHECK",
                                     name: "$$$/PrefsCssPreprocessors/CheckBox/EnableStrictUnits=Enable strict units",
                                     tab_next_node: "IDC_LESS_RELATIVE_URLS_CHECK");

                            checkbox(identifier: "IDC_LESS_RELATIVE_URLS_CHECK",
                                     name: "$$$/PrefsCssPreprocessors/CheckBox/RewriteUrls=Rewrite URLs as relative URLs",
                                     tab_next_node: "IDC_SASS_OUTPUT_STYLE");
                        }
                    }

                    row()
                    {
                        placeholder(height: 20);
                    }

                    row()
                    {
                        column()
                        {
                            row()
                            {
                                static_text(identifier: "IDC_STATIC",
                                            name: "$$$/PrefsCssPreprocessors/Label/SassOutputStyle=Output file style:");
                                popup(identifier: "IDC_SASS_OUTPUT_STYLE",
                                      include_custom_item: false,
                                      items: [ { name: "$$$/PrefsCssPreprocessors/Popup/OutputStyleNested=nested",
                                                 value: " " },
                                               { name: "$$$/PrefsCssPreprocessors/Popup/OutputStyleCompressed=compressed",
                                                 value: " " } ],
                                      popup_minimum_width_chars: 5,
                                      set_default_focus: true,
                                      tab_next_node: "IDC_SASS_SOURCECOMMENTS_CHECK",
                                      vertical_scroll: true);
                            }
 
                            checkbox(identifier: "IDC_SASS_SOURCECOMMENTS_CHECK",
                                     name: "$$$/PrefsCssPreprocessors/CheckBox/SassSourceComments=Create source comments",
                                     tab_next_node: "IDC_ENABLE_CSS_PREPROCESSING");                    
                        }
                    }
                }
            }
            
            row(horizontal: @align_fill)
            {
                separator();
            }
        }
    }
}
