Commit 84a1734b91d367373c3722430c57957137a861b4
1 parent
1b2281a1
Exists in
master
and in
75 other branches
us 7833 plot TT cat ok
Showing
4 changed files
with
35 additions
and
6 deletions
Show diff stats
js/app/models/CatalogNode.js
... | ... | @@ -36,6 +36,10 @@ Ext.define('amdaModel.CatalogNode', { |
36 | 36 | text : 'Download '+ this.self.objectName, |
37 | 37 | hidden : true |
38 | 38 | },{ |
39 | + fnId : 'leaf-plot', | |
40 | + text : 'Plot '+ this.self.objectName, | |
41 | + hidden : true | |
42 | + },{ | |
39 | 43 | fnId : 'leaf-visu', |
40 | 44 | text : 'Visualize '+ this.self.objectName, |
41 | 45 | hidden : true |
... | ... | @@ -43,6 +47,10 @@ Ext.define('amdaModel.CatalogNode', { |
43 | 47 | fnId : 'leaf-generateTT', |
44 | 48 | text : 'Generate Time Table ', |
45 | 49 | hidden : true |
50 | + },{ | |
51 | + fnId : 'leaf-generateTT', | |
52 | + text : 'Generate Time Table ', | |
53 | + hidden : true | |
46 | 54 | } |
47 | 55 | ]; |
48 | 56 | |
... | ... | @@ -57,6 +65,9 @@ Ext.define('amdaModel.CatalogNode', { |
57 | 65 | },{ |
58 | 66 | fnId : 'mult-downloadMulti', |
59 | 67 | text : 'Download selected '+this.self.objectName+'s' |
68 | + },{ | |
69 | + fnId : 'mult-plotMulti', | |
70 | + text : 'Plot selected '+this.self.objectName+'s' | |
60 | 71 | }]; |
61 | 72 | |
62 | 73 | return menuItems; | ... | ... |
js/app/models/InteractiveNode.js
... | ... | @@ -457,11 +457,14 @@ Ext.define('amdaModel.InteractiveNode', { |
457 | 457 | this.createDownload(this); |
458 | 458 | break; |
459 | 459 | case 'generateCatalog': |
460 | - this.generateCatalog(this); | |
461 | - break; | |
462 | - case 'generateTT': | |
463 | - this.generateTT(this); | |
464 | - break; | |
460 | + this.generateCatalog(this); | |
461 | + break; | |
462 | + case 'generateTT': | |
463 | + this.generateTT(this); | |
464 | + break; | |
465 | + case 'plotTT': | |
466 | + this.ttPlot(this); | |
467 | + break; | |
465 | 468 | default: |
466 | 469 | break; |
467 | 470 | } // switch end |
... | ... | @@ -813,6 +816,13 @@ Ext.define('amdaModel.InteractiveNode', { |
813 | 816 | { |
814 | 817 | timeTabNode.editInModule(); |
815 | 818 | }); |
816 | - } | |
819 | + }, | |
820 | + ttPlot : function(node) { | |
821 | + // download Module | |
822 | + if (node.get('disable')) return; | |
823 | + myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id, true, function (module) { | |
824 | + module.addTT(node.get('text'), node.get('id')); | |
825 | + }); | |
826 | + }, | |
817 | 827 | |
818 | 828 | }); | ... | ... |
js/app/models/sharedCatalogNode.js
... | ... | @@ -33,6 +33,10 @@ Ext.define('amdaModel.sharedCatalogNode', { |
33 | 33 | text : 'Edit Catalog', |
34 | 34 | hidden : true |
35 | 35 | },{ |
36 | + fnId : 'leaf-plotTT', | |
37 | + text : 'Plot Catalog', | |
38 | + hidden : true | |
39 | + },{ | |
36 | 40 | fnId : 'leaf-generateTT', |
37 | 41 | text : 'Generate Time Table ', |
38 | 42 | hidden : true | ... | ... |
js/app/models/sharedTimeTableNode.js
... | ... | @@ -32,6 +32,10 @@ Ext.define('amdaModel.sharedTimeTableNode', { |
32 | 32 | text : 'Edit Time Table', |
33 | 33 | hidden : true |
34 | 34 | },{ |
35 | + fnId : 'leaf-plotTT', | |
36 | + text : 'Plot Time Table', | |
37 | + hidden : true | |
38 | + },{ | |
35 | 39 | fnId : 'leaf-generateCatalog', |
36 | 40 | text : 'Generate Catalog', |
37 | 41 | hidden : true | ... | ... |