SourceSelectionPanel.js 1.1 KB
Ext.define('treps.view.Steps.SourceSelection.SourceSelectionPanel' ,{
	extend: 'Ext.form.Panel',
	
	alias: 'widget.sourceselection_panel',
	
	requires: [
		'treps.view.Steps.SourceSelection.LocalFilePanel',
		'treps.view.Steps.SourceSelection.WebFilePanel',
		'treps.view.Steps.SourceSelection.SAMPDataPanel',
		'treps.view.Steps.SourceSelection.ManualDataPanel'
	],
	
	controllers: ['Steps.SourceSelectionStep'],

	initComponent: function() {
		this.callParent(arguments);
	},
	
	tools: [
		{
			type: 'help',
			pageId: 'select'
		}
	],

	layout: 'accordion',
	
	items: [
		{
			title: 'Select a Local File',
			layout: 'fit',
			items: [
				{
					xtype: 'localfile_panel'
				}
			]
		},
		{
			title: 'Select a Web File',
			layout: 'fit',
			items: [
				{
					xtype: 'webfile_panel'
				}
			]
		},
		{
			title: 'Data from SAMP Protocol',
			layout: 'fit',
			items: [
				{
					xtype: 'sampdata_panel'
				}
			]
		},
		{
			title: 'Data from Manual Edition',
			layout: 'fit',
			items: [
				{
					xtype: 'manualdata_panel'
				}
			]
		}
	]
});