Commit 59f99ad2700344638ddd337cd5cd3af2b192966d
Exists in
master
and in
111 other branches
Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM
Showing
7 changed files
with
51 additions
and
40 deletions
Show diff stats
help/dataMiningHOWTO
1 | 1 | To construct a condition for data mining <i>drag</i> one of the AMDA parameters |
2 | 2 | from the parameter tree and <i>drop</i> onto the panel. |
3 | 3 | <li>1. Use <b><i>FLOAT numbers<i></b> in math expressions |
4 | -<li>2. <b>Enclose</b> your expression in<b>brackets</b> - <i>(1./2.*imf(0)) > 0</i> | |
4 | +<li>2. <b>Enclose</b> your expression in <b>brackets</b> - <i>(1./2.*imf(0)) > 0</i> | |
5 | 5 | <li>3. Use <b>&</b> as <i>AND</i> and <b>|</b> as <i>OR</i> and <b>enclose</b> every logical block in <b>brackets</b> - <i>(imf(0) > 0) & ((5.*imf(1)) < -5) |
6 | 6 | |
... | ... |
js/app/models/PlotObjects/PlotObjectConfig.js
js/app/models/RemoteSimuParamNode.js
... | ... | @@ -66,6 +66,10 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
66 | 66 | text : 'Close All' |
67 | 67 | }, |
68 | 68 | { |
69 | + fnId : 'miss-collapseAll', | |
70 | + text : 'Close All' | |
71 | + }, | |
72 | + { | |
69 | 73 | fnId : 'dire-collapseAll', |
70 | 74 | text : 'Close All' |
71 | 75 | }, |
... | ... | @@ -102,10 +106,17 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
102 | 106 | |
103 | 107 | getAllContextMenuItems: function() |
104 | 108 | { |
105 | - if (this.get('isAddable')) | |
109 | + if (this.get('isAddable')) { | |
110 | + if (this.getNodeKind() == amdaUI.ExplorerUI.ITEM_KIND_MISS ) | |
106 | 111 | return Ext.Array.push(this.allMenuItems(), |
107 | - { fnId : 'dire-addData', | |
112 | + { fnId : 'miss-addData', | |
108 | 113 | text : 'Add Run'}); |
114 | + | |
115 | + else if (this.getNodeKind() == amdaUI.ExplorerUI.ITEM_KIND_DIRE ) | |
116 | + return Ext.Array.push(this.allMenuItems(), | |
117 | + { fnId : 'dire-addData', | |
118 | + text : 'Add Run'}); | |
119 | + } | |
109 | 120 | else if (this.get('isDeletable')) |
110 | 121 | return Ext.Array.push(this.allMenuItems(), |
111 | 122 | { fnId : 'dire-deleteNode', |
... | ... | @@ -136,6 +147,7 @@ Ext.define('amdaModel.RemoteSimuParamNode', { |
136 | 147 | this.deleteData(); |
137 | 148 | break; |
138 | 149 | case 'dire-addData': |
150 | + case 'miss-addData': | |
139 | 151 | case 'root-addData': |
140 | 152 | this.addData(); |
141 | 153 | break; |
... | ... |
js/app/views/ParameterUI.js
... | ... | @@ -299,19 +299,19 @@ Ext.define('amdaUI.ParameterUI', |
299 | 299 | notifyEnter : function(ddSource, e, data) {}, |
300 | 300 | notifyOver : function(ddSource, e, data) |
301 | 301 | { |
302 | - if (data.records[0].data.nodeType == 'localParam' && data.records[0].get('notyet')) | |
302 | + if (data.records[0].get('nodeType') == 'localParam' && data.records[0].get('notyet')) | |
303 | 303 | { |
304 | 304 | this.valid = false; |
305 | 305 | return this.dropNotAllowed; |
306 | 306 | } |
307 | 307 | |
308 | - if (((data.records[0].data.nodeType == 'localParam') || | |
309 | - (data.records[0].data.nodeType == 'remoteParam') || | |
310 | - (data.records[0].data.nodeType == 'remoteSimuParam') || | |
311 | - (data.records[0].data.nodeType == 'derivedParam') || | |
312 | - (data.records[0].data.nodeType == 'myDataParam') || | |
313 | - (data.records[0].data.nodeType == 'alias')) && | |
314 | - //(data.records[0].data.leaf) && | |
308 | + if (((data.records[0].get('nodeType') == 'localParam') || | |
309 | + (data.records[0].get('nodeType') == 'remoteParam') || | |
310 | + (data.records[0].get('nodeType') == 'remoteSimuParam') || | |
311 | + (data.records[0].get('nodeType') == 'derivedParam') || | |
312 | + (data.records[0].get('nodeType')== 'myDataParam') || | |
313 | + (data.records[0].get('nodeType') == 'alias')) && | |
314 | + (data.records[0].isLeaf() || data.records[0].get('isParameter')) && | |
315 | 315 | !(data.records[0].data.disable)) |
316 | 316 | { |
317 | 317 | this.valid = true; |
... | ... | @@ -326,7 +326,7 @@ Ext.define('amdaUI.ParameterUI', |
326 | 326 | return false; |
327 | 327 | var nameToSent; |
328 | 328 | var components = null; |
329 | - switch (data.records[0].data.nodeType) | |
329 | + switch (data.records[0].get('nodeType')) | |
330 | 330 | { |
331 | 331 | case 'localParam' : |
332 | 332 | case 'remoteParam' : |
... | ... |
js/app/views/PlotTabResultUI.js
... | ... | @@ -440,7 +440,7 @@ Ext.define('amdaUI.PlotTabResultUI', { |
440 | 440 | this.navToolBar.removeAll(true); |
441 | 441 | |
442 | 442 | this.multiPlotCheck = Ext.create('Ext.form.field.Checkbox', { |
443 | - boxLabel : 'Linked to Multi Plot Mode', | |
443 | + boxLabel : 'Linked to Multi Plot', | |
444 | 444 | scope: this, |
445 | 445 | handler: function(check, checked) { |
446 | 446 | if (!this.disableSynchronize) |
... | ... | @@ -450,11 +450,17 @@ Ext.define('amdaUI.PlotTabResultUI', { |
450 | 450 | }); |
451 | 451 | |
452 | 452 | var commonItemsCfg = [ |
453 | + '-', | |
453 | 454 | { |
454 | 455 | xtype: 'tbspacer', |
455 | - width: 50 | |
456 | - }, | |
456 | + width: 20 | |
457 | + }, | |
457 | 458 | this.multiPlotCheck, |
459 | + { | |
460 | + xtype: 'tbspacer', | |
461 | + width: 2 | |
462 | + }, | |
463 | + '-', | |
458 | 464 | '->', |
459 | 465 | { |
460 | 466 | text: 'Get HST Data', |
... | ... |
js/app/views/SearchUI.js
... | ... | @@ -346,24 +346,25 @@ Ext.define('amdaUI.SearchUI', |
346 | 346 | notifyEnter : function(ddSource, e, data){ }, |
347 | 347 | notifyOver : function(ddSource, e, data) |
348 | 348 | { |
349 | - if (data.records[0].data.nodeType == 'localParam' && data.records[0].get('notyet')) { | |
349 | + if (data.records[0].get('nodeType') == 'localParam' && data.records[0].get('notyet')) { | |
350 | 350 | this.valid = false; |
351 | 351 | return this.dropNotAllowed; |
352 | 352 | } |
353 | - if (((data.records[0].data.nodeType == 'localParam') || | |
354 | - (data.records[0].data.nodeType == 'remoteParam') || | |
355 | - (data.records[0].data.nodeType == 'remoteSimuParam') || | |
356 | - (data.records[0].data.nodeType == 'derivedParam') || | |
357 | - (data.records[0].data.nodeType == 'myDataParam') || | |
358 | - (data.records[0].data.nodeType == 'alias'))&& | |
359 | - //(data.records[0].data.leaf) && | |
360 | - !data.records[0].data.disable) | |
361 | - { | |
362 | - this.valid = true; | |
363 | - return this.dropAllowed; | |
364 | - } | |
365 | - this.valid = false; | |
366 | - return this.dropNotAllowed; | |
353 | + if (((data.records[0].get('nodeType') == 'localParam') || | |
354 | + (data.records[0].get('nodeType') == 'remoteParam') || | |
355 | + (data.records[0].get('nodeType') == 'remoteSimuParam') || | |
356 | + (data.records[0].get('nodeType') == 'derivedParam') || | |
357 | + (data.records[0].get('nodeType') == 'myDataParam') || | |
358 | + (data.records[0].get('nodeType') == 'alias')) && | |
359 | + (data.records[0].isLeaf() || data.records[0].get('isParameter')) && | |
360 | + !data.records[0].data.disable) | |
361 | + { | |
362 | + this.valid = true; | |
363 | + return this.dropAllowed; | |
364 | + } | |
365 | + | |
366 | + this.valid = false; | |
367 | + return this.dropNotAllowed; | |
367 | 368 | }, |
368 | 369 | notifyDrop : function(ddSource, e, data) |
369 | 370 | { |
... | ... |
js/app/views/TimeTableUI.js
... | ... | @@ -737,15 +737,7 @@ Ext.define('amdaUI.TimeTableUI', { |
737 | 737 | ttModule.createObject(); |
738 | 738 | this.setObject(ttModule.getLinkedNode().get('object')); |
739 | 739 | } |
740 | - }, | |
741 | - { | |
742 | - xtype: 'button', | |
743 | - text: 'Share', | |
744 | - scope: this, | |
745 | - width: 65, | |
746 | - disabled: true, | |
747 | - handler: function () {} | |
748 | - } | |
740 | + } | |
749 | 741 | ] |
750 | 742 | }, |
751 | 743 | { |
... | ... |