/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2013 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 PIViewFormImage
{
    view subview(grow: false,
                 height: 100,
                 identifier: "IDD_PROP_INSPECT_FORM_IMAGE",
                 margin: 1,
                 placement: @place_row,
                 resizeChildren: false,
                 shouldConstrain: true,
                 spacing: 5,
                 width: 700)
    {
        column(margin: 2,
               spacing: 3)
        {
            row(spacing: 3)
            {
                column(child_vertical: @align_top,
                       indent: 5,
                       spacing: 0)
                {
                    static_text(characters: 4,
                                identifier: "IDC_STATIC_TYPE",
                                indent: 55,
                                name: "$$$/PropInspectFormImage/Label/Imagefield=ImageField");
                }

            column()
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 5,
                       spacing: 0)
                {
                    static_text(identifier: "IDC_STATIC_NAME",
                                indent: 5,
                                name: "$$$/PropInspectFormButton/Label/Name=Name");
                }

                column(child_vertical: @align_top,
                       spacing: 0)
                {
                    edit_text(characters: 12,
                              horizontal: @align_right,
                              identifier: "IDC_EDIT_NAME",
                              indent: 10,
                              notify_parent: false);
                }

            column()
            {
                row(indent: 1)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

            column()
            {
                row(indent: 124)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 3,
                       spacing: 6)
                {
                    static_text(identifier: "IDC_STATIC_SRC",
                                indent: 10,
                                name: "$$$/PropInspectFormImage/Label/Src=&Src");

                    static_text(identifier: "IDC_STATIC_ALT",
                                indent: 10,
                                name: "$$$/PropInspectFormImage/Label/Alt=Al&t");
                }

                column(child_vertical: @align_top,
                       spacing: 1)
                {
                    edit_text(characters: 12,
                              identifier: "IDC_EDIT_SRC",
                              tab_next_node: "IDC_BUTTON_BROWSE_SRC");

                    edit_text(characters: 12,
                              identifier: "IDC_EDIT_ALT");
                }

                column(child_vertical: @align_top,
                       spacing: 0)
                {
                    ownerdrawn_button(height: 20,
                                      identifier: "IDC_BUTTON_BROWSE_SRC",
                                      indent: 2,
                                      name: "$$$/PropInspectFormImage/IconButton/BrowseFor=Browse for file",
                                      width: 20);
                }

            column()
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 4,
                       spacing: 8)
                {
                    static_text(identifier: "IDC_STATIC_WIDTH",
                                indent: 5,
                                name: "$$$/PropInspectImage/Label/W=W");

                    static_text(identifier: "IDC_STATIC_HEIGHT",
                                indent: 5,
                                name: "$$$/PropInspectImage/Label/H=H");
                }

                column(child_vertical: @align_top,
                       spacing: 1)
                {
                    edit_text(characters: 4,
                              identifier: "IDC_EDIT_WIDTH");

                    edit_text(characters: 4,
                              identifier: "IDC_EDIT_HEIGHT");
                }

                column(child_vertical: @align_top,
                       indent: 3,
                       spacing: 8)
                {
                    static_text(identifier: "IDC_STATIC_PIXELW",
                                name: "$$$/PropInspectFormImage/Label/Width/Px=px");

                    static_text(identifier: "IDC_STATIC_PIXELH",
                                name: "$$$/PropInspectFormImage/Label/Height/Px=px");
                }

            column()
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 4,
                       spacing: 6)
                {
                    static_text(identifier: "IDC_STATIC_ACTION",
                                indent: 5,
                                name: "$$$/PropInspectFormButton/Label/Action=Form Action");

                    static_text(identifier: "IDC_STATIC_METHOD",
                                indent: 5,
                                name: "$$$/PropInspectFormButton/Label/Method=Form Method");
                }

                column(child_vertical: @align_top,
                       spacing: 1)
                {
                    edit_text(characters: 15,
                              identifier: "IDC_EDIT_ACTION");

                    combobox(identifier: "IDC_COMBO_METHOD",
                             include_custom_item: false,
                             items: [ { name: "$$$/PropInspectForm/Method/item1/Get=GET",
                                        value: " " },
                                      { name: "$$$/PropInspectForm/Method/item2/Post=POST",
                                        value: " " } ],
                             vertical_scroll: true);
                }

                column(child_vertical: @align_top,
                       spacing: 0)
                {
                    ownerdrawn_button(height: 20,
                                      identifier: "IDC_BUTTON_BROWSE_ACTION",
                                      name: "$$$/PropInspectFormButton/IconButton/BrowseFor=Browse for file",
                                      width: 20);
                }

            column()
            {
                row(indent: 8)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 4,
                       spacing: 0)
                {
                    static_text(identifier: "IDC_STATIC_TITLE",
                                indent: 5,
                                name: "$$$/PropInspectFormTextfield/Label/Title=&Title");
                }

                column(child_vertical: @align_top,
                       spacing: 0)
                {
                    edit_text(characters: 12,
                              identifier: "IDC_EDIT_TITLE");
                }
            }

            row(margin: 2,
                spacing: 0)
            {
                column(child_vertical: @align_top,
                       horizontal: @align_center,
                       indent: 3,
                       spacing: 5)
                {
                    checkbox(identifier: "IDC_CHECK_DISABLED",
                             indent: 106,
                             name: "$$$/PropInspectFormTextfield/CheckBox/Disabled=&Disabled");

                    checkbox(identifier: "IDC_CHECK_AUTOFOCUS",
                             name: "$$$/PropInspectFormTextfield/CheckBox/Autofocus=&Auto Focus");
                }

                column(child_vertical: @align_top,
                       horizontal: @align_center,
                       indent: 3,
                       spacing: 0)
                {
                    checkbox(identifier: "IDC_CHECK_FORMNOVALIDATE",
                             name: "$$$/PropInspectFormSubmitButton/CheckBox/FormNoValidate=&Form No Validate");
                }

            column(child_vertical: @align_top,
                       indent: 1)
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 4,
                       spacing: 0)
                {
                    static_text(identifier: "IDC_STATIC_FORM_LABEL",
                                indent: 5,
                                name: "$$$/PropInspectFormButton/Label/Form=&Form");
                }

                column(child_vertical: @align_top,
                       indent: 3,
                       spacing: 0)
                {
                    combobox(identifier: "IDC_COMBO_FORM_ID",
                             sort: true,
                             vertical_scroll: true);
                }

            column(child_vertical: @align_top,
                       indent: 1)
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 4,
                       spacing: 0)
                {
                    static_text(identifier: "IDC_STATIC_ENCTYPE",
                                indent: 5,
                                name: "$$$/PropInspectFormSubmitButton/Label/FormEnctype=&Form Enctype");
                }

                column(child_vertical: @align_top,
                       indent: 3,
                       spacing: 0)
                {
                    combobox(identifier: "IDC_COMBO_ENCTYPE",
                             items: [ { name: "$$$/PropInspectForm/Enctype/item1/Applicationxwwwformurlencoded=application/x-www-form-urlencoded",
                                        value: " " },
                                      { name: "$$$/PropInspectForm/Enctype/item2/Multipartformdata=multipart/form-data",
                                        value: " " },
                                      { name: "$$$/PropInspectFormSubmitButton/item/textplain=text/plain",
                                        value: "" } ],
                             popup_maximum_width_chars: 10,
                             vertical_scroll: true);
                }

            column(child_vertical: @align_top,
                       indent: 1)
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 4,
                       spacing: 0)
                {
                    static_text(identifier: "IDC_STATIC_TARGET",
                                indent: 5,
                                name: "$$$/PropInspectFormSubmitButton/Label/FormTarget=&Form Target");
                }

                column(child_vertical: @align_top,
                       indent: 3,
                       spacing: 5)
                {
                    combobox(identifier: "IDC_COMBO_TARGETNAME",
                             items: [ { name: "$$$/PropInspectFormSubmitButton/Label/blank=abc",
                                        value: " " },
                                      { name: "$$$/PropInspectFormSubmitButton/Label/parent=_parent",
                                        value: " " },
                                      { name: "$$$/PropInspectFormSubmitButton/Label/self=_self",
                                        value: " " },
                                      { name: "$$$/PropInspectFormSubmitButton/Label/top=_top",
                                        value: " " } ],
                             popup_maximum_width_chars: 10,
                             vertical_scroll: true);
                }

            column(child_vertical: @align_top,
                       indent: 1)
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column(child_vertical: @align_top,
                       indent: 3,
                       spacing: 0)
                {
                    ownerdrawn_button(identifier: "IDC_BUTTON_EDIT",
                                      indent: 15,
                                      name: "$$$/PropInspectFormImage/IconButton/EditImage=Edit Image",
                                      width: 100);
                }

            column(child_vertical: @align_top,
                       indent: 1)
            {
                row(indent: 6)
                {
                    separator(minLength: 44,
                              orientation: @vertical);
                }
            }

                column()
                {
                    row(indent: 5)
                    {
                        static_text(horizontal: @align_right,
                                    identifier: "IDC_STATIC_TABINDEX",
                                    indent: 4,
                                    name: "$$$/PropInspectFormTextfield/Label/TabIndex=Ta&b Index");
                    }
                }

                column(indent: 1)
                {
                    edit_text(characters: 4,
                              horizontal: @align_center,
                              identifier: "IDC_EDIT_TABINDEX");
                }
            }
        }
    }
}
