diff --git a/js/app/views/PlotComponents/PlotPanelForm.js b/js/app/views/PlotComponents/PlotPanelForm.js index 206e30f..979fb3d 100644 --- a/js/app/views/PlotComponents/PlotPanelForm.js +++ b/js/app/views/PlotComponents/PlotPanelForm.js @@ -129,10 +129,10 @@ Ext.define('amdaPlotComp.PlotPanelForm', { me.updateOptions(value); } }), - this.addStandardCheck('panel-scatter-isotropic', 'Isotropic', function(name, value, oldValue) { + this.addStandardCheck('panel-scatter-isotropic', 'Orthonormal scale', function(name, value, oldValue) { me.object.set('panel-scatter-isotropic', value); me.crtTree.refresh(); - }), + }, 'When this is option is selected, a unit on the X-axis appears with the same size as a unit on the Y-axis'), this.addStandardText('panel-epoch-centertimeid', 'Epoch Center Time Id', function(name, value, oldValue) { me.object.set('panel-epoch-centertimeid', value); me.crtTree.refresh(); diff --git a/js/app/views/PlotComponents/PlotStandardForm.js b/js/app/views/PlotComponents/PlotStandardForm.js index 02746dc..42ae3d0 100644 --- a/js/app/views/PlotComponents/PlotStandardForm.js +++ b/js/app/views/PlotComponents/PlotStandardForm.js @@ -167,21 +167,30 @@ Ext.define('amdaPlotComp.PlotStandardForm', { }; }, - addStandardCheck: function(name, label, onChange) { + addStandardCheck: function(name, label, onChange, tooltip) { + return { - xtype: 'checkbox', - name: name, - boxLabel: label, - listeners: { - change: function(combo, newValue, oldValue, eOpts) { - - this.object.set(name, newValue); - if (onChange != null) - onChange(name, newValue, oldValue); - }, - scope: this - } - }; + xtype: 'checkbox', + name: name, + boxLabel: label, + listeners: { + change: function(combo, newValue, oldValue, eOpts) { + this.object.set(name, newValue); + if (onChange != null) + onChange(name, newValue, oldValue); + }, + render: function(c) { + if (tooltip) { + Ext.create('Ext.tip.ToolTip', { + target: c.getEl(), + dismissDelay: 0, + html: tooltip + }); + } + }, + scope: this + } + }; }, addStandardFieldSet: function(title, checkboxName, items, onChangeCheck) { -- libgit2 0.21.2