Blame view

js/app/views/PlotComponents/PlotPageForm.js 1.93 KB
437c4dbc   Benjamin Renard   First implementat...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * Project   : AMDA-NG
 * Name      : PlotPageForm.js
 * @class   amdaPlotComp.PlotPageForm
 * @extends amdaPlotComp.PlotStandardForm
 * @brief   Form to define page options
 * @author  Benjamin Renard
 * @version $Id: PlotPageForm.js benjamin $
 */

Ext.define('amdaPlotComp.PlotPageForm', {
	extend: 'amdaPlotComp.PlotStandardForm',

	getFormItems: function() {
		var titleItems = [
		        this.addStandardText('page-title-text', 'Text'),
		        this.addStandardColor('page-title-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColors),
		        this.addStandardCombo('page-title-position', 'Position', amdaPlotObj.PlotObjectConfig.availableTitlePositions),
		        this.addStandardCombo('page-title-alignment', 'Alignment', amdaPlotObj.PlotObjectConfig.availableTitleAlignments),
		        this.addStandardFont('page-title-font')
		];
		
		var marginItems = [
		    this.addStandardFloat('page-margin-x', 'Horizontal', 0, 100),
		    this.addStandardFloat('page-margin-y', 'Vertical', 0, 100)
		];
		
003ba315   Benjamin Renard   Add Epoch Plot an...
28
		var me = this;
437c4dbc   Benjamin Renard   First implementat...
29
		return [
17433635   Benjamin Renard   Add series and sp...
30
		        //this.addStandardCombo('page-mode', 'Mode', amdaPlotObj.PlotObjectConfig.availablePageModes),
a8c54fb9   Benjamin Renard   Add text object p...
31
    	        this.addStandardCombo('page-orientation', 'Orientation', amdaPlotObj.PlotObjectConfig.availablePageOrientations, function(name, value, oldValue) {
003ba315   Benjamin Renard   Add Epoch Plot an...
32
33
    	        	me.crtTree.getView().refresh();
    	        }),
a8c54fb9   Benjamin Renard   Add text object p...
34
    	        this.addStandardCombo('page-dimension', 'Dimension', amdaPlotObj.PlotObjectConfig.availablePageDimensions, function(name, value, oldValue) {
003ba315   Benjamin Renard   Add Epoch Plot an...
35
36
    	        	me.crtTree.getView().refresh();
    	        }),
a8c54fb9   Benjamin Renard   Add text object p...
37
    	        this.addStandardCheck('page-superpose-mode', 'Epoch Superposed Mode', function(name, value, oldValue) {
003ba315   Benjamin Renard   Add Epoch Plot an...
38
39
    	        	me.crtTree.getView().refresh();
    	        }),
437c4dbc   Benjamin Renard   First implementat...
40
41
42
43
44
45
		        this.addStandardFieldSet('Title', '', titleItems),
		        this.addStandardFieldSet('Margins', 'page-margins-activated', marginItems),
		        this.addStandardFont('page-font')
		];
	}
});