[Commits] r2178 - in sandbox/cmoullet/ux/ScaleSelectorCombo: examples tests/ux/widgets/form ux/widgets/form
commits at geoext.org
commits at geoext.org
Wed May 12 08:14:28 CEST 2010
Author: cmoullet
Date: 2010-05-12 08:14:28 +0200 (Wed, 12 May 2010)
New Revision: 2178
Modified:
sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.js
sandbox/cmoullet/ux/ScaleSelectorCombo/tests/ux/widgets/form/ScaleSelectorCombo.html
sandbox/cmoullet/ux/ScaleSelectorCombo/ux/widgets/form/ScaleSelectorCombo.js
Log:
Change namespace
Modified: sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.js
===================================================================
--- sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.js 2010-05-12 06:13:17 UTC (rev 2177)
+++ sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.js 2010-05-12 06:14:28 UTC (rev 2178)
@@ -21,12 +21,12 @@
map.addControl(new OpenLayers.Control.MousePosition());
- var scaleSelectorCombo = new GeoExt.ux.form.ScaleSelectorCombo({
+ var scaleSelectorCombo = new GeoExt.ux.ScaleSelectorCombo({
map: map,
fakeScaleValue: ['1000','1500','2500','5000','10000','25000','50000','100000','200000','450000','850000','1500000','2500000','5000000','10000000','5000000','100000000','200000000','400000000',]
});
- new GeoExt.ux.form.ScaleSelectorCombo({
+ new GeoExt.ux.ScaleSelectorCombo({
map: map,
renderTo: 'ScaleSelector',
thousandSeparator: ',',
Modified: sandbox/cmoullet/ux/ScaleSelectorCombo/tests/ux/widgets/form/ScaleSelectorCombo.html
===================================================================
--- sandbox/cmoullet/ux/ScaleSelectorCombo/tests/ux/widgets/form/ScaleSelectorCombo.html 2010-05-12 06:13:17 UTC (rev 2177)
+++ sandbox/cmoullet/ux/ScaleSelectorCombo/tests/ux/widgets/form/ScaleSelectorCombo.html 2010-05-12 06:14:28 UTC (rev 2178)
@@ -21,12 +21,12 @@
// test
- c = new GeoExt.ux.form.ScaleSelectorCombo({
+ c = new GeoExt.ux.ScaleSelectorCombo({
renderTo: "ScaleSelector",
map: map
});
- t.ok(c instanceof GeoExt.ux.form.ScaleSelectorCombo,
- "ctor creates a GeoExt.ux.form.ScaleSelectorCombo object");
+ t.ok(c instanceof GeoExt.ux.ScaleSelectorCombo,
+ "ctor creates a GeoExt.ux.ScaleSelectorCombo object");
t.ok(c instanceof Ext.form.ComboBox,
"ctor creates an Ext.form.ComboBox object");
t.ok(c.hasListener("select"),
Modified: sandbox/cmoullet/ux/ScaleSelectorCombo/ux/widgets/form/ScaleSelectorCombo.js
===================================================================
--- sandbox/cmoullet/ux/ScaleSelectorCombo/ux/widgets/form/ScaleSelectorCombo.js 2010-05-12 06:13:17 UTC (rev 2177)
+++ sandbox/cmoullet/ux/ScaleSelectorCombo/ux/widgets/form/ScaleSelectorCombo.js 2010-05-12 06:14:28 UTC (rev 2178)
@@ -16,9 +16,9 @@
* @include GeoExt/data/ScaleStore.js
*/
-Ext.namespace("GeoExt.ux.form");
+Ext.namespace("GeoExt.ux");
-GeoExt.ux.form.ScaleSelectorCombo = Ext.extend(Ext.form.ComboBox, {
+GeoExt.ux.ScaleSelectorCombo = Ext.extend(Ext.form.ComboBox, {
/** api: config[map]
* ``OpenLayers.Map or Object`` A configured map or a configuration object
* for the map constructor, required only if :attr:`zoom` is set to
@@ -76,7 +76,7 @@
/** private: constructor
*/
initComponent: function() {
- GeoExt.ux.form.ScaleSelectorCombo.superclass.initComponent.apply(this, arguments);
+ GeoExt.ux.ScaleSelectorCombo.superclass.initComponent.apply(this, arguments);
this.store = new GeoExt.data.ScaleStore({map: this.map});
@@ -168,10 +168,10 @@
*/
beforeDestroy: function() {
this.map.events.unregister('zoomend', this, this.zoomendUpdate);
- GeoExt.ux.form.ScaleSelectorCombo.superclass.beforeDestroy.apply(this, arguments);
+ GeoExt.ux.ScaleSelectorCombo.superclass.beforeDestroy.apply(this, arguments);
}
});
/** api: xtype = gxux_scaleselectorcombo */
-Ext.reg('gxux_scaleselectorcombo', GeoExt.ux.form.ScaleSelectorCombo);
+Ext.reg('gxux_scaleselectorcombo', GeoExt.ux.ScaleSelectorCombo);
More information about the Commits
mailing list