/*
 * File: app/view/uploadAreaWindow.js
 *
 * This file was generated by Sencha Architect version 3.0.2.
 * http://www.sencha.com/products/architect/
 *
 * This file requires use of the Ext JS 4.2.x library, under independent license.
 * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
 * details see http://www.sencha.com/license or contact license@sencha.com.
 *
 * This file will be auto-generated each and everytime you save your project.
 *
 * Do NOT hand edit this file.
 */

Ext.define('MyApp.view.uploadAreaWindow', {
	extend: 'Ext.window.Window',
	alias: 'widget.uploadAreaWindow',

	requires: [
		'Ext.form.Panel',
		'Ext.form.FieldSet',
		'Ext.form.field.File',
		'Ext.form.field.Checkbox',
		'Ext.toolbar.Spacer',
		'Ext.button.Button'
	],

	itemId: 'uploadAreaWindow',
	width: 500,
	title: 'Upload Areas',

	initComponent: function() {
		var me = this;

		Ext.applyIf(me, {
			items: [
				{
					xtype: 'form',
					itemId: 'uploadAreaForm',
					bodyPadding: '3 10 0 10',
					items: [
						{
							xtype: 'fieldset',
							margin: 0,
							padding: '3 10 0 10',
							title: 'Settings',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'filefield',
									fieldLabel: 'File',
									labelSeparator: ' ',
									labelWidth: 120,
									name: 'file',
									allowBlank: false
								},
								{
									xtype: 'textfield',
									hidden: true,
									fieldLabel: 'Origin',
									labelSeparator: ' ',
									labelWidth: 120,
									name: 'origin',
									vtype: 'alphanum'
								},
								{
									xtype: 'checkboxfield',
									fieldLabel: 'Test run',
									labelSeparator: ' ',
									labelWidth: 120,
									name: 'testrun',
									checked: true,
									inputValue: 'true',
									uncheckedValue: 'false'
								},
								{
									xtype: 'checkboxfield',
									fieldLabel: 'Overwrite existing',
									labelSeparator: ' ',
									labelWidth: 120,
									name: 'overwrite',
									inputValue: 'true',
									uncheckedValue: 'false'
								}
							]
						},
						{
							xtype: 'tbspacer',
							height: 2
						},
						{
							xtype: 'fieldset',
							padding: '3 10 10 10',
							title: 'Actions',
							layout: {
								type: 'hbox',
								align: 'stretch',
								defaultMargins: {
									top: 0,
									right: 0,
									bottom: 0,
									left: 0
								}
							},
							items: [
								{
									xtype: 'button',
									itemId: 'uploadAreaSaveBtn',
									icon: '../../gfx/upload.png',
									scale: 'medium',
									text: 'Perform upload'
								},
								{
									xtype: 'tbspacer',
									flex: 1,
									width: 10
								},
								{
									xtype: 'button',
									itemId: 'uploadAreaCancelBtn',
									icon: '../../gfx/remove.png',
									scale: 'medium',
									text: 'Cancel'
								}
							]
						}
					]
				}
			]
		});

		me.callParent(arguments);
	}

});