Blame view

js/app/views/PlotComponents/PlotLayoutAutoForm.js 1005 Bytes
003ba315   Benjamin Renard   Add Epoch Plot an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * Project   : AMDA-NG
 * Name      : PlotLayoutAutoForm.js
 * @class   amdaPlotComp.PlotLayoutAutoForm
 * @extends amdaPlotComp.PlotStandardForm
 * @brief   Form to define specifics Auto layout options
 * @author  Benjamin Renard
 * @version $Id: PlotLayoutAutoForm.js benjamin $
 */

Ext.define('amdaPlotComp.PlotLayoutAutoForm', {
	extend: 'amdaPlotComp.PlotStandardForm',
	
	setObject : function(object) {
		this.object = object.get('page-layout-object');
		this.loadRecord(this.object);
	},
	
	getFormItems: function() {
29f02ab8   Benjamin Renard   Add layout proper...
20
21
22
23
		var legendTimeAxesVisibilityItems = [
		    this.addStandardCheck('layout-timeaxes-legend-lowerone', 'Only for the lower one')
		];

003ba315   Benjamin Renard   Add Epoch Plot an...
24
25
26
		return [
		    this.addStandardFloat('layout-panel-height', 'Panels height', 0, 1),
		    this.addStandardFloat('layout-panel-spacing', 'Panels spacing', 0, 1),
29f02ab8   Benjamin Renard   Add layout proper...
27
28
		    this.addStandardCheck('layout-expand', 'Expand panels'),
		    this.addStandardFieldSet('Legend visibility for time axes', '', legendTimeAxesVisibilityItems)
003ba315   Benjamin Renard   Add Epoch Plot an...
29
30
		];
	}
29f02ab8   Benjamin Renard   Add layout proper...
31
});