/*
    Copyright 2005-2007 Adobe Systems Incorporated
    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
    or a copy at http://stlab.adobe.com/licenses.html)
*/

layout find_and_replace_options
{
    view dialog(name: "Find & Replace Options", placement: place_column, spacing: 20)
    {
        row(spacing: 20)
        {
            column(guide_mask: [])
            {
                checkbox(name: "Search Nested Folders", bind: @search_nested_folders);
                checkbox(name: "Skip (...) Folders", bind: @skip_paren_folders, indent: 20);
                checkbox(name: "Search Invisible Folders", bind: @search_invisible_folders, indent: 20);
            }
    
            column(guide_mask: [])
            {
                static_text(name: "File Type:");
                radio_button(name: "Text Files Only", bind: @search_file_type, value: @file_type_text);
                radio_button(name: "All File Types", bind: @search_file_type, value: @file_type_all);
            }
        }
        checkbox(name: "Exclude Matches");
        column()
        {
            checkbox(name: "Use File Filter:", bind: @use_file_filter);
            row(indent: 20)
            {
                popup(bind: @file_filter, items:
                        [
                        { name: "New Filter...", value: @file_filter_new },
                        { name: "-", value: empty },
                        { name: "(current criteria)", value: @file_filter_current_criteria },
                        { name: "-", value: empty },
                        { name: "C++ files", value: @file_filter_cpp_files },
                        { name: "Doxygen files", value: @file_filter_dox_files }
                        ]);
            }
        }
        row(horizontal: align_right)
        {
            button(name: "Cancel", cancel: true, action: @cancel);
            button(name: "OK", default: true);
        }
    }
}
