[Commits] r1686 - sandbox/redlining/ux/FeatureEditing/ux/widgets
commits at geoext.org
commits at geoext.org
Sat Jan 9 06:11:29 CET 2010
Author: cmoullet
Date: 2010-01-09 06:11:29 +0100 (Sat, 09 Jan 2010)
New Revision: 1686
Modified:
sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
Log:
Add import and export action
Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js 2010-01-09 04:46:14 UTC (rev 1685)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js 2010-01-09 05:11:29 UTC (rev 1686)
@@ -30,6 +30,18 @@
*/
deleteAllAction: null,
+ /** api: config[importFeaturesAction]
+ * ``Ext.Action``
+ * The action created to import features
+ */
+ importFeaturesAction: null,
+
+ /** api: config[exportAllFeaturesAction]
+ * ``Ext.Action``
+ * The action created to export all features
+ */
+ exportAllFeaturesAction: null,
+
/** api: config[actions]
* ``Array(GeoExt.Action or Ext.Action)``
* An array of actions created from various controls or tasks that are to
@@ -273,6 +285,50 @@
}
},
+ /** private: method[initImportFeaturesAction]
+ * Create a Ext.Action object that is set as the importFeaturesAction property
+ * and pushed to te actions array.
+ */
+ initImportFeaturesAction: function() {
+ var action = new Ext.Action({
+ text: OpenLayers.i18n('Import'),
+ handler: this.importFeatures,
+ scope: this
+ });
+ this.importFeaturesAction = action;
+ this.actions.push(action);
+ },
+
+ /** private: method[importFeatures]
+ * Called when the importFeaturesAction is triggered (button pressed).
+ * Import features process from a KML file.
+ */
+ importFeatures: function() {
+ alert('todo');
+ },
+
+ /** private: method[initExportAllFeaturesAction]
+ * Create a Ext.Action object that is set as the exportAllFeaturesAction property
+ * and pushed to te actions array.
+ */
+ initExportAllFeaturesAction: function() {
+ var action = new Ext.Action({
+ text: OpenLayers.i18n('Export'),
+ handler: this.exportAllFeatures,
+ scope: this
+ });
+ this.exportAllFeaturesAction = action;
+ this.actions.push(action);
+ },
+
+ /** private: method[exportAllFeatures]
+ * Called when the exportAllFeaturesAction is triggered (button pressed).
+ * Export all features as KML file.
+ */
+ exportAllFeatures: function() {
+ alert('todo');
+ },
+
/** private: method[getSelectControl]
* :return: ``OpenLayers.Control.Select``
* Convenience method to return the SelectFeature control from
More information about the Commits
mailing list