/*************************************************************************
*
* 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 PrefsLinting
{
    view subview(identifier: "IDD_PREFS_LINTERS",
                 margin: 5,
                 name: "$$$/PrefsLinters/Title/Linting=Linting",
                 parent_container_id: "list_sheet_container",
                 spacing: 15)
    {
        column(margin: 5,
               spacing: 15)
        {
            row(guide_mask: [ @guide_label ],
                margin: 0,
                spacing: 5)
            {
                checkbox(identifier: "IDC_ENABLE_LINTING",
                                 indent: 1,
                                 name: "$$$/PrefsLinters/CheckBox/EnableLinting/Label=Enable &Linting",
                                 set_default_focus: true,
                                 tab_next_node: "IDC_LINTING_ONLOAD");

            }
            
            row(horizontal: @align_fill)
            {
                separator();
            }
            
            row(spacing: 5)
            {
                column()
                {
                    placeholder(width: 30);
                }
                
                column()
                {
                    row(horizontal: @align_fill)
                    {
                        static_text(horizontal: @align_right,
                                identifier: "IDC_STATIC",
                                name: "$$$/PrefsLinters/Label/TriggerLintingOn=Trigger Linting:");
                    }
                    row()
                    {
                        placeholder(height: 60);
                    }
                    row(horizontal: @align_fill)
                    {
                        static_text(horizontal: @align_right,
                                identifier: "IDC_STATIC",
                                name: "$$$/PrefsLinters/Label/EditConfigurationFile=Edit ruleset:");
                    }
                }

                column()
                {
                    checkbox(identifier: "IDC_LINTING_ONLOAD",
                             name: "$$$/PrefsLinters/Checkbox/Label/OnLoad=On Loa&d",
                             set_default_focus: false,
                             tab_next_node: "IDC_LINTING_ONSAVE");

                    checkbox(identifier: "IDC_LINTING_ONSAVE",
                             name: "$$$/PrefsLinters/Checkbox/Label/OnSave=On &Save",
                             set_default_focus: false,
                             tab_next_node: "IDC_LINTING_ONEDIT");

                    checkbox(identifier: "IDC_LINTING_ONEDIT",
                             name: "$$$/PrefsLinters/Checkbox/Label/OnEdit=On &Edit",
                             set_default_focus: false,
                             tab_next_node: "IDC_LINTERS_LIST");

                    
                    row()
                    {
                        placeholder(height: 10);
                    }
                    
                    row()
                    {
                        column()
                        {
                            list_box(apron_click_deselection: true,
                                     empty_selection: true,
									 indent: 1,
                                     height: 60,
                                     identifier: "IDC_LINTERS_LIST",
                                     keyboard_selectable: true,
                                     set_default_focus: true,
                                     vertical_scroll: true,
                                     width: 150,
                                     tab_next_node: "IDC_BUTTON_LINTER_EDIT");
                            row(horizontal: @align_fill,
                                spacing: 5)
                            {
                                button(action: @do_action,
                                       default: false,
                                       horizontal: @align_right,
                                       identifier: "IDC_BUTTON_LINTER_EDIT",
                                       name: "$$$/PrefsLinters/Button/EditConfigurationFile=Edi&mp;t &amp;&amp; Apply changes",
                                       tab_next_node: "IDC_ENABLE_LINTING");
                            }
                        }
                    }                    
                }

            }
            
            row(horizontal: @align_fill)
            {
                separator();
            }
        }
    }
}
