Commit d1bed2e2aa8cafcc67fd5ead5cface761beb9aee
1 parent
14a66983
Exists in
master
and in
81 other branches
Change Isotropic -> Orthonormal scale + Add tooltip (#8782)
Showing
2 changed files
with
25 additions
and
16 deletions
Show diff stats
js/app/views/PlotComponents/PlotPanelForm.js
... | ... | @@ -129,10 +129,10 @@ Ext.define('amdaPlotComp.PlotPanelForm', { |
129 | 129 | me.updateOptions(value); |
130 | 130 | } |
131 | 131 | }), |
132 | - this.addStandardCheck('panel-scatter-isotropic', 'Isotropic', function(name, value, oldValue) { | |
132 | + this.addStandardCheck('panel-scatter-isotropic', 'Orthonormal scale', function(name, value, oldValue) { | |
133 | 133 | me.object.set('panel-scatter-isotropic', value); |
134 | 134 | me.crtTree.refresh(); |
135 | - }), | |
135 | + }, 'When this is option is selected, a unit on the X-axis appears with the same size as a unit on the Y-axis'), | |
136 | 136 | this.addStandardText('panel-epoch-centertimeid', 'Epoch Center Time Id', function(name, value, oldValue) { |
137 | 137 | me.object.set('panel-epoch-centertimeid', value); |
138 | 138 | me.crtTree.refresh(); | ... | ... |
js/app/views/PlotComponents/PlotStandardForm.js
... | ... | @@ -167,21 +167,30 @@ Ext.define('amdaPlotComp.PlotStandardForm', { |
167 | 167 | }; |
168 | 168 | }, |
169 | 169 | |
170 | - addStandardCheck: function(name, label, onChange) { | |
170 | + addStandardCheck: function(name, label, onChange, tooltip) { | |
171 | + | |
171 | 172 | return { |
172 | - xtype: 'checkbox', | |
173 | - name: name, | |
174 | - boxLabel: label, | |
175 | - listeners: { | |
176 | - change: function(combo, newValue, oldValue, eOpts) { | |
177 | - | |
178 | - this.object.set(name, newValue); | |
179 | - if (onChange != null) | |
180 | - onChange(name, newValue, oldValue); | |
181 | - }, | |
182 | - scope: this | |
183 | - } | |
184 | - }; | |
173 | + xtype: 'checkbox', | |
174 | + name: name, | |
175 | + boxLabel: label, | |
176 | + listeners: { | |
177 | + change: function(combo, newValue, oldValue, eOpts) { | |
178 | + this.object.set(name, newValue); | |
179 | + if (onChange != null) | |
180 | + onChange(name, newValue, oldValue); | |
181 | + }, | |
182 | + render: function(c) { | |
183 | + if (tooltip) { | |
184 | + Ext.create('Ext.tip.ToolTip', { | |
185 | + target: c.getEl(), | |
186 | + dismissDelay: 0, | |
187 | + html: tooltip | |
188 | + }); | |
189 | + } | |
190 | + }, | |
191 | + scope: this | |
192 | + } | |
193 | + }; | |
185 | 194 | }, |
186 | 195 | |
187 | 196 | addStandardFieldSet: function(title, checkboxName, items, onChangeCheck) { | ... | ... |