Commit d341347debe3ea7f666f9b6a97d1a1d78d3b8066

Authored by Elena.Budnik
1 parent bec49ccf

Plot Mgr amelioration : redmine #5724

js/app/controllers/PlotModule.js
... ... @@ -32,8 +32,8 @@ Ext.define('amdaDesktop.PlotModule', {
32 32 * @cfg {String} window definitions
33 33 * @required
34 34 */
35   - width: 600,
36   - height: 620,
  35 + width: 650,
  36 + height: 670,
37 37 uiType : 'newPanelPlot',
38 38 helpTitle : 'Help on Plot Module',
39 39 helpFile : 'plotHelp',
... ...
js/app/views/IntervalUI.js
... ... @@ -205,6 +205,7 @@ Ext.define('amdaUI.IntervalUI', {
205 205 layout: {type: 'hbox', align: 'middle'},
206 206 items: [{
207 207 xtype: 'datefield',
  208 + margin : '10 0 0 5', // (top, right, bottom, left).
208 209 name: fieldName,
209 210 emptyText: 'YYYY/MM/DD hh:mm:ss',
210 211 tip: 'Date formated as YYYY/MM/DD hh:mm:ss',
... ... @@ -254,7 +255,7 @@ Ext.define('amdaUI.IntervalUI', {
254 255 hideTrigger: true,
255 256 labelAlign: 'left',
256 257 width: 32,
257   - margin: '0 5 0 0',
  258 + margin : '0 0 0 5',
258 259 listeners: {
259 260 change: function(field, newValue, oldValue) {
260 261 var form = this.findParentByType('form').getForm();
... ...
js/app/views/PlotComponents/PlotTabContent.js
... ... @@ -67,11 +67,12 @@ Ext.define('amdaPlotComp.PlotTabContent', {
67 67 this.plotElementPanel = config.plotElementPanel;
68 68 this.plotTabPanel = config.plotTabPanel;
69 69  
70   - this.timeSelector = new amdaUI.TimeSelectorUI( { id: 'plotTimeSelectorTab' + config.tabId, flex: 2, hidden: true} );
71   - this.treePlot = new amdaPlotComp.PlotTree({flex: 3, plotElementPanel: this.plotElementPanel, plotTabContent: this});
  70 + this.timeSelector = new amdaUI.TimeSelectorUI( { id: 'plotTimeSelectorTab' + config.tabId, border : false, flex: 2, collapsible: true, collapseDirection : 'bottom', hidden: true} );
  71 + this.treePlot = new amdaPlotComp.PlotTree({flex: 4, plotElementPanel: this.plotElementPanel, plotTabContent: this});
72 72  
73 73 var myConf = {
74   - bodyStyle: { background : '#dfe8f6' },
  74 + bodyStyle: { background : '#dfe8f6' },
  75 + border : false,
75 76 defaults: {
76 77 border: false
77 78 },
... ...
js/app/views/PlotComponents/PlotTabPanel.js
... ... @@ -124,11 +124,11 @@ Ext.define('amdaPlotComp.PlotTabPanel', {
124 124  
125 125 var myConf = {
126 126 plain: true,
127   - bodyStyle: { background : '#dfe8f6' },
  127 + bodyStyle: { background : '#dfe8f6' },
  128 + border : false,
128 129 defaults: {
129 130 border: false
130   - },
131   -
  131 + },
132 132 tabBar:{
133 133 items:[
134 134 {
... ...
js/app/views/PlotUI.js
... ... @@ -145,7 +145,8 @@ Ext.define('amdaUI.PlotUI', {
145 145 */
146 146 updateObject : function(){
147 147 var timeSource = this.timeSelector.getActiveTimeSource();
148   - var multiPlotForm = this.multiPlotIntervalPanel.getForm();
  148 + // var multiPlotForm = this.multiPlotIntervalPanel.getForm();
  149 + var multiPlotForm = this.timeSelector.getForm();
149 150 multiPlotForm.updateRecord(this.object);
150 151 this.object.set('timesrc', timeSource);
151 152 if (timeSource === amdaModel.AmdaTimeObject.inputTimeSrc[0])
... ... @@ -183,17 +184,18 @@ Ext.define('amdaUI.PlotUI', {
183 184 },
184 185  
185 186 updateLinkedToMultiPlotMode : function(isLinkedToMultiPlotMode) {
186   - this.multiPlotIntervalPanel.setVisible(isLinkedToMultiPlotMode);
  187 + // this.multiPlotIntervalPanel.setVisible(isLinkedToMultiPlotMode);
  188 + this.timeSelector.setVisible(isLinkedToMultiPlotMode);
187 189 },
188 190  
189 191 init : function(config) {
190   - this.timeSelector = new amdaUI.TimeSelectorUI( { id: 'multiPlotTimeSelector' + config.id, title : 'MultiPlot Time Selection'} );
  192 + this.timeSelector = new amdaUI.TimeSelectorUI( { id: 'multiPlotTimeSelector' + config.id, title : 'MultiPlot Time Selection', border : false, collapsible : true, collapseDirection : 'bottom', visible : false, flex: 2 } );
191 193  
192   - this.plotOutput = new amdaPlotComp.PlotOutputForm({flex: 2});
  194 + this.plotOutput = new amdaPlotComp.PlotOutputForm({flex: 2, collapseDirection : 'bottom', collapsible : true });
193 195  
194   - this.plotElement = new amdaPlotComp.PlotElementPanel({flex: 3});
  196 + this.plotElement = new amdaPlotComp.PlotElementPanel({flex: 4});
195 197  
196   - this.plotTabs = new amdaPlotComp.PlotTabPanel({flex: 3, plotElementPanel : this.plotElement, plotUI : this});
  198 + this.plotTabs = new amdaPlotComp.PlotTabPanel({flex: 4, plotElementPanel : this.plotElement, plotUI : this});
197 199  
198 200 this.optionsPanel = new Ext.form.Panel({
199 201 layout: {
... ... @@ -211,18 +213,19 @@ Ext.define('amdaUI.PlotUI', {
211 213 ]
212 214 });
213 215  
214   - this.multiPlotIntervalPanel = new Ext.form.Panel({
215   - flex: 2,
216   - layout: 'fit',
217   - bodyStyle: { background : '#dfe8f6' },
218   - visible : false,
219   - defaults: {
220   - border: false
221   - },
222   - items : [
223   - this.timeSelector
224   - ]
225   - });
  216 +// this.multiPlotIntervalPanel = new Ext.form.Panel({
  217 +// flex: 2,
  218 +// layout: 'fit',
  219 +// bodyStyle: { background : '#dfe8f6' },
  220 +// visible : false,
  221 +// collapsible : true,
  222 +// defaults: {
  223 +// border: false
  224 +// },
  225 +// items : [
  226 +// this.timeSelector
  227 +// ]
  228 +// });
226 229  
227 230 this.formPanel = new Ext.form.Panel({
228 231 region: 'center',
... ... @@ -250,7 +253,7 @@ Ext.define('amdaUI.PlotUI', {
250 253 flex: 1,
251 254 items: [
252 255 this.plotTabs,
253   - this.multiPlotIntervalPanel
  256 + this.timeSelector // this.multiPlotIntervalPanel
254 257 ]
255 258 },
256 259 {
... ...
js/app/views/TimeSelectorUI.js
... ... @@ -10,7 +10,7 @@
10 10 */
11 11  
12 12 Ext.define('amdaUI.TimeSelectorUI', {
13   - extend: 'Ext.form.FieldSet',
  13 + extend: 'Ext.form.Panel',
14 14  
15 15 requires : [ 'amdaUI.IntervalUI' ],
16 16  
... ... @@ -197,6 +197,7 @@ Ext.define('amdaUI.TimeSelectorUI', {
197 197 {
198 198 title: (!this.title) ? 'Time Selection' : this.title,
199 199 layout: 'fit',
  200 + bodyStyle: { background : '#dfe8f6' },
200 201 items: [ this.timeSrc ]
201 202 };
202 203  
... ...