diff --git a/js/app/controllers/PlotModule.js b/js/app/controllers/PlotModule.js index 480505d..635e346 100644 --- a/js/app/controllers/PlotModule.js +++ b/js/app/controllers/PlotModule.js @@ -119,7 +119,7 @@ Ext.define('amdaDesktop.PlotModule', { me.plotResultWindowsManager.unregister(win); }, afterrender: function(win,opt) { - win.updateTitle(tabResult.multiplot); + win.getPanelResult().updateConfig(tabResult.title, tabResult.multiplot); } }, getPanelResult: function() { @@ -134,7 +134,7 @@ Ext.define('amdaDesktop.PlotModule', { } else { //update result - winResult.getPanelResult().updateMultiplot(tabResult.multiplot); + winResult.getPanelResult().updateConfig(tabResult.title, tabResult.multiplot); winResult.getPanelResult().updatePlotImage(plotTabConfig, newplot); //update window size var size = me.computeResultWindowSize(winResult.getPanelResult()); @@ -279,7 +279,7 @@ Ext.define('amdaDesktop.PlotModule', { me.multiPlotWin = null; me.getUiContent().enableSinglePlot(true); me.plotResultWindowsManager.each(function (key, value, length) { - value.getPanelResult().updateMultiplot(false); + value.getPanelResult().updateConfig(value.getPanelResult().plotName, false); }); } } diff --git a/js/app/views/PlotTabResultUI.js b/js/app/views/PlotTabResultUI.js index 4d97f91..c88fede 100644 --- a/js/app/views/PlotTabResultUI.js +++ b/js/app/views/PlotTabResultUI.js @@ -28,6 +28,7 @@ Ext.define('amdaUI.PlotTabResultUI', { crtTTFileIndex : 0, disableSynchronize: false, multiplot: false, + plotName: '', hiddenForm: null, @@ -38,9 +39,10 @@ Ext.define('amdaUI.PlotTabResultUI', { this.callParent(arguments); }, - updateMultiplot : function(multiplot) { + updateConfig : function(name, multiplot) { this.multiplot = multiplot; - this.findParentByType('window').updateTitle(this.multiplot); + this.plotName = name; + this.findParentByType('window').setTitle(this.plotName + (this.multiplot ? ' - Synchronized to Multiplot' : '')); }, getImageSize : function() { -- libgit2 0.21.2