Commit 9b3f49e3d2eb95071b36635371feb977e6a76b8c

Authored by Elena.Budnik
1 parent 663f6395

info bulls Plot redmine 6296

help/MinMaxThreshold 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +<h3>Min/Max Thresholds</h3>
  2 +Values out of Min/Max thresholds are not shown on the plot but this does not impact the X/Y axis range.
  3 +To have access to axis control you should uncheck <i>Simplified View</i> checkbox.
  4 +<br/>
  5 +
... ...
help/VerticalLayout 0 → 100644
... ... @@ -0,0 +1,18 @@
  1 +<h3>Implemented Layouts</h3>
  2 +
  3 + <i>Vertical</i> ( default ): vertical stack of panels;<br/>
  4 + all time panels are of the same width;<br/>
  5 + one XY panel in the line;<br/>
  6 + generic panel height (for Time and XY panel)<br/>
  7 + and width (for XY panel) can be defined at this level<br/><br/>
  8 +
  9 + <i>Auto</i> : automatic layout - if possible combines<br/>
  10 + several XY panels at the same level;
  11 + only panel height can be defined (XY panel is 'square')<br/><br/>
  12 +
  13 + <i>Manual</i> : everything is to be defined by user
  14 +
  15 + <hr>
  16 +Two generic panel types : 'Time/Epoch' and 'XY (Scatter/Instant)';
  17 +<br/>
  18 +
0 19 \ No newline at end of file
... ...
js/app/AmdaApp.js
... ... @@ -268,6 +268,33 @@ Ext.define(&#39;amdaApp.AmdaApp&#39;, {
268 268 });
269 269 },
270 270  
  271 + // add info icon; onCick AmdaHelp is shown
  272 + addAmdaInfo : function(help, style) {
  273 + if (style) {
  274 + help += '" style="' + style;
  275 + }
  276 + var html = '<img amda_clicktip="' + help + '" src="js/resources/images/16x16/info_mini.png"'
  277 + return {
  278 + xtype: 'label',
  279 + html: html,
  280 + listeners: {
  281 + click: {
  282 + element: 'el',
  283 + fn: function(e,t) {
  284 + var me = t,
  285 + text = me.getAttribute('amda_clicktip');
  286 + if (text) {
  287 + e.preventDefault();
  288 + AmdaAction.getInfo({name : text}, function(res,e) {
  289 + if (res.success) myDesktopApp.infoMsg(res.result);
  290 + });
  291 + }
  292 + }
  293 + }
  294 + }
  295 + };
  296 + },
  297 +
271 298 getModules : function(){
272 299 var allModules = [];
273 300  
... ...
js/app/views/PlotComponents/PlotBaseSerieForm.js
... ... @@ -90,12 +90,13 @@ Ext.define(&#39;amdaPlotComp.PlotBaseSerieForm&#39;, {
90 90 me.object.set('serie-yaxis', value);
91 91 me.crtTree.refresh();
92 92 }),
  93 + myDesktopApp.addAmdaInfo('MinMaxThreshold','vertical-align:bottom'),
93 94 this.addStandardFieldSet('Min/Max thresholds', '', this.getValuesRangeItems()),
94 95 this.addStandardParamDropTarget('serie-colored-param', 'Colored Parameter'),
95 96 this.addStandardFieldSet('Lines', 'serie-lines-activated', this.addStandardLineItems('serie-lines')),
96 97 this.addStandardFieldSet('Symbols', 'serie-symbols-activated', this.addStandardSymbolsItems('serie-symbols')),
97 98 this.addStandardFieldSet('Time ticks', 'serie-timetick-activated', this.getTimeTickItems()),
98   - this.addStandardFieldSet('Interval ticks', 'serie-intervaltick-activated', this.getIntervalTickItems())
  99 + this.addStandardFieldSet('Interval ticks', 'serie-intervaltick-activated', this.getIntervalTickItems())
99 100 ];
100 101 }
101 102 });
... ...
js/app/views/PlotComponents/PlotSpectroForm.js
... ... @@ -18,22 +18,23 @@ Ext.define(&#39;amdaPlotComp.PlotSpectroForm&#39;, {
18 18  
19 19 getValuesRangeItems: function() {
20 20 return [
21   - this.addStandardFloat2('spectro-value-min', 'Min value', -Number.MAX_VALUE, Number.MAX_VALUE, true),
22   - this.addStandardFloat2('spectro-value-max', 'Max value', -Number.MAX_VALUE, Number.MAX_VALUE, true)
  21 + this.addStandardFloat2('spectro-value-min', 'Min value', -Number.MAX_VALUE, Number.MAX_VALUE, true),
  22 + this.addStandardFloat2('spectro-value-max', 'Max value', -Number.MAX_VALUE, Number.MAX_VALUE, true)
23 23 ];
24 24 },
25 25  
26 26 getFormItems: function() {
27 27 var me = this;
28 28 return [
29   - this.addStandardCombo('spectro-yaxis', 'Y axis', amdaPlotObj.PlotObjectConfig.availableYAxes, function(name, value, oldValue) {
30   - me.object.set('spectro-yaxis', value);
31   - me.crtTree.refresh();
32   - }),
33   - this.addStandardFieldSet('Min/Max thresholds', '', this.getValuesRangeItems()),
34   - this.addStandardCheck('spectro-log0-as-min', 'Show 0 values as Min Values in log scale', function(name, value, oldValue) {
35   - me.object.set('spectro-log0-as-min', value);
36   - })
  29 + this.addStandardCombo('spectro-yaxis', 'Y axis', amdaPlotObj.PlotObjectConfig.availableYAxes, function(name, value, oldValue) {
  30 + me.object.set('spectro-yaxis', value);
  31 + me.crtTree.refresh();
  32 + }),
  33 + myDesktopApp.addAmdaInfo('MinMaxThreshold','vertical-align:bottom'),
  34 + this.addStandardFieldSet('Min/Max thresholds', '', this.getValuesRangeItems()),
  35 + this.addStandardCheck('spectro-log0-as-min', 'Show 0 values as Min Values in log scale', function(name, value, oldValue) {
  36 + me.object.set('spectro-log0-as-min', value);
  37 + })
37 38 ];
38 39 }
39 40 });
... ...
js/app/views/PlotUI.js
... ... @@ -271,7 +271,7 @@ Ext.define(&#39;amdaUI.PlotUI&#39;, {
271 271 this.resetProcess();
272 272 }
273 273 },
274   - '->', {
  274 + '->', '-', {
275 275 xtype: 'button',
276 276 text: 'Save Request',
277 277 scope: this,
... ... @@ -321,7 +321,9 @@ Ext.define(&#39;amdaUI.PlotUI&#39;, {
321 321 })
322 322 }
323 323 }
324   - },' ', {
  324 + }, ' ',
  325 + myDesktopApp.addAmdaInfo('plotSaveRequest','vertical-align:top'),
  326 + ' ', {
325 327 xtype: 'checkbox',
326 328 boxLabel: 'All Plot Tabs',
327 329 name : 'all-in-one',
... ...