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

	requires: [
		'Ext.container.Container',
		'Ext.form.field.Text',
		'Ext.button.Button'
	],

	itemId: 'newGroupWindow',
	width: 400,
	icon: '../gfx/group.png',
	title: 'New Group',
	modal: true,

	initComponent: function() {
		var me = this;

		Ext.applyIf(me, {
			items: [
				{
					xtype: 'container',
					padding: '10 10 0 10',
					layout: 'fit',
					items: [
						{
							xtype: 'textfield',
							itemId: 'newGroupName',
							margin: '0 0 7 0',
							enforceMaxLength: true,
							maxLength: 64
						}
					]
				},
				{
					xtype: 'container',
					layout: {
						type: 'hbox',
						align: 'stretch'
					},
					items: [
						{
							xtype: 'button',
							flex: 1,
							margins: '7 10 10 10',
							disabled: true,
							itemId: 'newGroupConfirmButton',
							padding: '5 10 5 10',
							icon: '../gfx/group.png',
							scale: 'medium',
							text: 'Create group'
						},
						{
							xtype: 'button',
							flex: 1,
							margins: '7 10 10 10',
							disabled: true,
							hidden: true,
							itemId: 'editGroupConfirmButton',
							padding: '5 10 5 10',
							icon: '../gfx/rule_edit.png',
							scale: 'medium',
							text: 'Edit group'
						},
						{
							xtype: 'button',
							flex: 1,
							margins: '7 10 10 10',
							itemId: 'newGroupCancelButton',
							padding: '5 10 5 10',
							icon: '../gfx/red_x.png',
							scale: 'medium',
							text: 'Cancel'
						}
					]
				}
			]
		});

		me.callParent(arguments);
	}

});