/*
 * File: app/view/MappingWindow.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.MappingWindow', {
	extend: 'Ext.window.Window',
	alias: 'widget.MappingWindow',

	requires: [
		'Ext.form.Panel',
		'Ext.form.field.ComboBox',
		'Ext.button.Button'
	],

	itemId: 'MappingWindow',
	width: 400,
	layout: 'fit',
	title: 'Map category',
	modal: true,

	initComponent: function() {
		var me = this;

		Ext.applyIf(me, {
			items: [
				{
					xtype: 'form',
					id: 'form',
					bodyPadding: 10,
					header: false,
					title: 'My Form',
					layout: {
						type: 'vbox',
						align: 'stretch'
					},
					items: [
						{
							xtype: 'combobox',
							fieldLabel: 'Target',
							labelSeparator: ' ',
							name: 'mappingTarget',
							selectOnFocus: true,
							editable: false,
							displayField: 'category',
							forceSelection: true,
							queryMode: 'local',
							store: 'DummyLicenseStore',
							valueField: 'localId'
						},
						{
							xtype: 'container',
							layout: {
								type: 'hbox',
								align: 'stretch',
								pack: 'end'
							},
							items: [
								{
									xtype: 'button',
									itemId: 'btnMapExistingSave',
									icon: '../gfx/save.png',
									scale: 'medium',
									text: 'Save'
								},
								{
									xtype: 'button',
									hidden: true,
									itemId: 'btnMapSU01Save',
									icon: '../gfx/save.png',
									scale: 'medium',
									text: 'Save'
								}
							]
						}
					]
				}
			]
		});

		me.callParent(arguments);
	}

});