[Commits] r2179 - in sandbox/cmoullet/ux/ShortcutCombo: examples tests/ux/widgets/form ux/widgets/form
commits at geoext.org
commits at geoext.org
Wed May 12 08:17:02 CEST 2010
Author: cmoullet
Date: 2010-05-12 08:17:02 +0200 (Wed, 12 May 2010)
New Revision: 2179
Modified:
sandbox/cmoullet/ux/ShortcutCombo/examples/ShortcutComboExample.js
sandbox/cmoullet/ux/ShortcutCombo/tests/ux/widgets/form/ShortcutCombo.html
sandbox/cmoullet/ux/ShortcutCombo/ux/widgets/form/ShortcutCombo.js
Log:
Change namespace
Modified: sandbox/cmoullet/ux/ShortcutCombo/examples/ShortcutComboExample.js
===================================================================
--- sandbox/cmoullet/ux/ShortcutCombo/examples/ShortcutComboExample.js 2010-05-12 06:14:28 UTC (rev 2178)
+++ sandbox/cmoullet/ux/ShortcutCombo/examples/ShortcutComboExample.js 2010-05-12 06:17:02 UTC (rev 2179)
@@ -19,17 +19,17 @@
var layer = new OpenLayers.Layer.OSM("OSM");
map.addLayer(layer);
- var shortcutCombo = new GeoExt.ux.form.ShortcutCombo({
+ var shortcutCombo = new GeoExt.ux.ShortcutCombo({
map: map,
- store: GeoExt.ux.form.ShortcutCombo.countryStore,
+ store: GeoExt.ux.ShortcutCombo.countryStore,
bboxField: 'bbox',
bboxSrs: 'EPSG:900913'
});
- new GeoExt.ux.form.ShortcutCombo({
+ new GeoExt.ux.ShortcutCombo({
map: map,
renderTo: 'shortcutcombo',
- store: GeoExt.ux.form.ShortcutCombo.countryStore,
+ store: GeoExt.ux.ShortcutCombo.countryStore,
bboxField: 'bbox',
bboxSrs: 'EPSG:900913'
});
Modified: sandbox/cmoullet/ux/ShortcutCombo/tests/ux/widgets/form/ShortcutCombo.html
===================================================================
--- sandbox/cmoullet/ux/ShortcutCombo/tests/ux/widgets/form/ShortcutCombo.html 2010-05-12 06:14:28 UTC (rev 2178)
+++ sandbox/cmoullet/ux/ShortcutCombo/tests/ux/widgets/form/ShortcutCombo.html 2010-05-12 06:17:02 UTC (rev 2179)
@@ -21,15 +21,15 @@
// test
- c = new GeoExt.ux.form.ShortcutCombo({
+ c = new GeoExt.ux.ShortcutCombo({
map: map,
renderTo: 'ShortcutCombo',
- store: GeoExt.ux.form.ShortcutCombo.countryStore,
+ store: GeoExt.ux.ShortcutCombo.countryStore,
bboxField: 'bbox',
bboxSrs: 'EPSG:900913'
});
- t.ok(c instanceof GeoExt.ux.form.ShortcutCombo,
- "ctor creates a GeoExt.ux.form.ShortcutCombo object");
+ t.ok(c instanceof GeoExt.ux.ShortcutCombo,
+ "ctor creates a GeoExt.ux.ShortcutCombo object");
t.ok(c instanceof Ext.form.ComboBox,
"ctor creates an Ext.form.ComboBox object");
t.ok(c.hasListener("select"),
Modified: sandbox/cmoullet/ux/ShortcutCombo/ux/widgets/form/ShortcutCombo.js
===================================================================
--- sandbox/cmoullet/ux/ShortcutCombo/ux/widgets/form/ShortcutCombo.js 2010-05-12 06:14:28 UTC (rev 2178)
+++ sandbox/cmoullet/ux/ShortcutCombo/ux/widgets/form/ShortcutCombo.js 2010-05-12 06:17:02 UTC (rev 2179)
@@ -12,9 +12,9 @@
* base_link = `Ext.form.ComboBox <http://extjs.com/deploy/dev/docs/?class=Ext.form.ComboBox>`_
*/
-Ext.namespace("GeoExt.ux.form");
+Ext.namespace("GeoExt.ux");
-GeoExt.ux.form.ShortcutCombo = Ext.extend(Ext.form.ComboBox, {
+GeoExt.ux.ShortcutCombo = 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
@@ -88,9 +88,9 @@
/** private: constructor
*/
initComponent: function() {
- GeoExt.ux.form.ShortcutCombo.superclass.initComponent.apply(this, arguments);
+ GeoExt.ux.ShortcutCombo.superclass.initComponent.apply(this, arguments);
if (!this.store) {
- this.store = GeoExt.ux.form.ShortcutCombo.countryStore;
+ this.store = GeoExt.ux.ShortcutCombo.countryStore;
}
this.on("select", function(combo, record, index) {
var position = record.get(this.bboxField);
@@ -104,7 +104,7 @@
});
-GeoExt.ux.form.ShortcutCombo.countryStore = new Ext.data.SimpleStore({
+GeoExt.ux.ShortcutCombo.countryStore = new Ext.data.SimpleStore({
fields: ['value', 'text', 'bbox'],
data : [
['AFG', 'Afghanistan', new OpenLayers.Bounds(6735414.78555975, 3425909.97755412, 8337699.23802785, 4643624.49667922)],
@@ -321,4 +321,4 @@
});
/** api: xtype = gxux_shortcutcombo */
-Ext.reg('gxux_shortcutcombo', GeoExt.ux.form.ShortcutCombo);
+Ext.reg('gxux_shortcutcombo', GeoExt.ux.ShortcutCombo);
More information about the Commits
mailing list