/*
    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 progress_bar_suite
{
    view dialog(name: "Progress Bar Suite")
    {
        row(child_horizontal: align_fill)
        {
            column(child_horizontal: align_fill)
            {
                group(placement: place_column, name: "Change me!", child_horizontal: align_fill)
                {
                    edit_number(name: "Value:", bind: @progress_value, digits: 3, format: "#");
                    slider(bind: @progress_value, format: {first: 0, last: 100, interval: 1});
                }
                row()
                {
                    group(placement: place_row, name: "Vert.", child_horizontal: align_fill)
                    {
                        progress_bar(bind: @progress_value, orientation: @vertical, format: {first: 0, last: 100, interval: 1});
                        /*progress_bar(bind: @progress_value, orientation: @vertical, is_relevance: true, format: {first: 0, last: 100, interval: 1});*/
                        progress_bar(bind: @progress_value, orientation: @vertical, is_indeterminate: true);
                    }
                    group(placement: place_column, name: "Horiz.", vertical: align_fill, child_horizontal: align_fill)
                    {
                        progress_bar(bind: @progress_value, format: {first: 0, last: 100, interval: 1});
                        /*progress_bar(bind: @progress_value, is_relevance: true, format: {first: 0, last: 100, interval: 1});*/
                        progress_bar(bind: @progress_value, is_indeterminate: true);
                    }
                }
            }
            column(child_horizontal: align_fill)
            {
                button(name: "OK", default: true);
                button(name: "Cancel", action: @cancel);
            }
        }
    }
}
