[Commits] r1813 - in sandbox/redlining/ux/FeatureEditing: examples ux/widgets ux/widgets/form ux/widgets/plugins

commits at geoext.org commits at geoext.org
Sun Jan 24 07:39:34 CET 2010


Author: cmoullet
Date: 2010-01-24 07:39:34 +0100 (Sun, 24 Jan 2010)
New Revision: 1813

Modified:
   sandbox/redlining/ux/FeatureEditing/examples/RedLiningPanelExample.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js
Log:
Support download service in order to avoid flash on the client

Modified: sandbox/redlining/ux/FeatureEditing/examples/RedLiningPanelExample.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/examples/RedLiningPanelExample.js	2010-01-24 06:36:56 UTC (rev 1812)
+++ sandbox/redlining/ux/FeatureEditing/examples/RedLiningPanelExample.js	2010-01-24 06:39:34 UTC (rev 1813)
@@ -21,6 +21,7 @@
         region: "east",
         width: 300,
         style: style,
+        //downloadService: 'http://localhost:5000/filemanager/download',
         plugins: [new GeoExt.ux.ImportFeatures(), 
                   new GeoExt.ux.ExportFeatures()]
     });

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js	2010-01-24 06:36:56 UTC (rev 1812)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js	2010-01-24 06:39:34 UTC (rev 1813)
@@ -80,6 +80,14 @@
      */
     useIcons: true,
 
+    /** api: config[downloadService]
+     *  ``String``  URL used in order to use a server download service. The attributes "format" and "content" are sent (POST) to this service.
+     */
+    /** private: property[defaultFormat]
+     *  ``String``  URL used in order to use a server download service. The attributes "format" and "content" are sent (POST) to this service.
+     */
+    downloadService: null,
+
     /** private: method[constructor]
      *  Private constructor override.
      */

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js	2010-01-24 06:36:56 UTC (rev 1812)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js	2010-01-24 06:39:34 UTC (rev 1813)
@@ -97,6 +97,14 @@
      *  a .css (see in resources/css).
      */
     useIcons: true,
+
+    /** api: config[downloadService]
+     *  ``String``  URL used in order to use a server download service. The attributes "format" and "content" are sent (POST) to this service.
+     */
+    /** private: property[defaultFormat]
+     *  ``String``  URL used in order to use a server download service. The attributes "format" and "content" are sent (POST) to this service.
+     */
+    downloadService: null,
     
     /** private: method[initComponent]
      */
@@ -133,7 +141,8 @@
             this.controler = new GeoExt.ux.FeatureEditingControler({
                 map: this.map,
                 autoSave: this.autoSave,
-                useIcons: this.useIcons
+                useIcons: this.useIcons,
+                downloadService: this.downloadService
             });
         }
     },

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js	2010-01-24 06:36:56 UTC (rev 1812)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js	2010-01-24 06:39:34 UTC (rev 1813)
@@ -33,9 +33,10 @@
 
     exportFeatures: function() {
         var map = this.controler.map;
+        var downloadService = this.controler.downloadService;
         var features = this.editFeatureForm.features;
 
         this.controler.triggerAutoSave();
-        GeoExt.ux.data.Export.KMLExport(map, null, features);
+        GeoExt.ux.data.Export.KMLExport(map, null, features, downloadService);
     }
 });

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js	2010-01-24 06:36:56 UTC (rev 1812)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js	2010-01-24 06:39:34 UTC (rev 1813)
@@ -23,6 +23,7 @@
     },
 
     exportFeatures: function() {
-        GeoExt.ux.data.Export.KMLExport(this.controler.map, this.controler.layers, null);
+        var downloadService = this.controler.downloadService;
+        GeoExt.ux.data.Export.KMLExport(this.controler.map, this.controler.layers, null, downloadService);
     }
 });



More information about the Commits mailing list