/*
 * File: app/view/Upload.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.Upload', {
	extend: 'Ext.panel.Panel',

	requires: [
		'Ext.form.FieldSet',
		'Ext.button.Button',
		'Ext.toolbar.Spacer',
		'Ext.form.field.TextArea',
		'Ext.resizer.Splitter'
	],

	height: 250,
	bodyPadding: '3 10 0 10 ',
	title: 'Upload/Download',
	titleCollapse: false,

	layout: {
		type: 'hbox',
		align: 'stretch'
	},

	initComponent: function() {
		var me = this;

		Ext.applyIf(me, {
			items: [
				{
					xtype: 'fieldset',
					flex: 1,
					padding: '3 10 0 10',
					title: 'Upload',
					layout: {
						type: 'vbox',
						align: 'stretch'
					},
					items: [
						{
							xtype: 'container',
							layout: {
								type: 'hbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'uploadControlsBtn',
									icon: '../../gfx/upload.png',
									scale: 'medium',
									text: 'Upload controls'
								},
								{
									xtype: 'tbspacer',
									height: 10,
									width: 5
								},
								{
									xtype: 'button',
									itemId: 'uploadRisksBtn',
									icon: '../../gfx/upload.png',
									scale: 'medium',
									text: 'Upload risks'
								},
								{
									xtype: 'tbspacer',
									height: 10,
									width: 5
								},
								{
									xtype: 'button',
									itemId: 'uploadAreasBtn',
									icon: '../../gfx/upload.png',
									scale: 'medium',
									text: 'Upload areas'
								}
							]
						},
						{
							xtype: 'tbspacer',
							height: 10
						},
						{
							xtype: 'fieldset',
							flex: 1,
							border: false,
							padding: 2,
							layout: 'fit',
							title: 'Upload log',
							items: [
								{
									xtype: 'textareafield',
									itemId: 'logText'
								}
							]
						}
					]
				},
				{
					xtype: 'splitter',
					margin: 2
				},
				{
					xtype: 'fieldset',
					padding: '3 10 0 10',
					title: 'Download',
					layout: {
						type: 'vbox',
						align: 'stretch'
					},
					items: [
						{
							xtype: 'container',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'downloadTemplate',
									icon: '../../gfx/save.png',
									scale: 'medium',
									text: 'Download template'
								}
							]
						},
						{
							xtype: 'tbspacer',
							height: 10
						},
						{
							xtype: 'container',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'downloadControls',
									icon: '../../gfx/download.png',
									scale: 'medium',
									text: 'Download controls'
								},
								{
									xtype: 'tbspacer',
									height: 10
								}
							]
						},
						{
							xtype: 'container',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'downloadRisk',
									icon: '../../gfx/download.png',
									scale: 'medium',
									text: 'Download risks'
								},
								{
									xtype: 'tbspacer',
									height: 10
								}
							]
						},
						{
							xtype: 'container',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'downloadRiskTemplate',
									icon: '../../gfx/download.png',
									scale: 'medium',
									text: 'Download risk template'
								}
							]
						},
						{
							xtype: 'tbspacer',
							height: 10
						},
						{
							xtype: 'container',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'downloadArea',
									icon: '../../gfx/download.png',
									scale: 'medium',
									text: 'Download areas'
								},
								{
									xtype: 'tbspacer',
									height: 10
								}
							]
						},
						{
							xtype: 'container',
							layout: {
								type: 'vbox',
								align: 'stretch'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'downloadAreaTemplate',
									icon: '../../gfx/download.png',
									scale: 'medium',
									text: 'Download areas template'
								}
							]
						}
					]
				}
			]
		});

		me.callParent(arguments);
	}

});