Blame view

js/app/views/PlotComponents/PlotPageForm.js 2 KB
437c4dbc   Benjamin Renard   First implementat...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * 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'),
4f728fd9   Erdogan Furkan   For now 2
17
18
19
			this.addColorsPicker('page-title-color', 'Color', amdaDefaultConfigs.availableColorsNew),
		        this.addStandardCombo('page-title-position', 'Position', amdaDefaultConfigs.availableTitlePositions),
		        this.addStandardCombo('page-title-alignment', 'Alignment', amdaDefaultConfigs.availableTitleAlignments),
437c4dbc   Benjamin Renard   First implementat...
20
21
22
23
24
25
26
27
		        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 [
4f728fd9   Erdogan Furkan   For now 2
30
31
		        //this.addStandardCombo('page-mode', 'Mode', amdaDefaultOptions['plot.page.mode'].store),
    	        this.addStandardCombo('page-orientation', 'Orientation', amdaDefaultConfigs.availablePageOrientations, function(name, value, oldValue) {
e84ed2cf   Benjamin Renard   Add Interval Tick...
32
33
    	        	me.object.set('page-orientation', value);
	        		me.crtTree.refresh();
003ba315   Benjamin Renard   Add Epoch Plot an...
34
    	        }),
4f728fd9   Erdogan Furkan   For now 2
35
    	        this.addStandardCombo('page-dimension', 'Dimension', amdaDefaultConfigs.availablePageDimensions, function(name, value, oldValue) {
e84ed2cf   Benjamin Renard   Add Interval Tick...
36
37
    	        	me.object.set('page-dimension', value);
	        		me.crtTree.refresh();
003ba315   Benjamin Renard   Add Epoch Plot an...
38
    	        }),
a8c54fb9   Benjamin Renard   Add text object p...
39
    	        this.addStandardCheck('page-superpose-mode', 'Epoch Superposed Mode', function(name, value, oldValue) {
e84ed2cf   Benjamin Renard   Add Interval Tick...
40
41
    	        	me.object.set('page-superpose-mode', value);
	        		me.crtTree.refresh();
003ba315   Benjamin Renard   Add Epoch Plot an...
42
    	        }),
437c4dbc   Benjamin Renard   First implementat...
43
44
45
46
47
		        this.addStandardFieldSet('Title', '', titleItems),
		        this.addStandardFieldSet('Margins', 'page-margins-activated', marginItems),
		        this.addStandardFont('page-font')
		];
	}
f34c9c5a   Benjamin Renard   Finalize color pi...
48
});