[Commits] r1572 - in sandbox/cmoullet/ux/Redlining: examples ux ux/widgets

commits at geoext.org commits at geoext.org
Thu Dec 10 07:05:49 CET 2009


Author: cmoullet
Date: 2009-12-10 07:05:49 +0100 (Thu, 10 Dec 2009)
New Revision: 1572

Added:
   sandbox/cmoullet/ux/Redlining/ux/widgets/
   sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningPanel.js
   sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningWindow.js
Modified:
   sandbox/cmoullet/ux/Redlining/examples/RedliningExample.html
   sandbox/cmoullet/ux/Redlining/examples/RedliningExample.js
Log:
Continue proto according to mockup, not working

Modified: sandbox/cmoullet/ux/Redlining/examples/RedliningExample.html
===================================================================
--- sandbox/cmoullet/ux/Redlining/examples/RedliningExample.html	2009-12-09 15:09:28 UTC (rev 1571)
+++ sandbox/cmoullet/ux/Redlining/examples/RedliningExample.html	2009-12-10 06:05:49 UTC (rev 1572)
@@ -8,6 +8,8 @@
     <script type="text/javascript" src="../../../trunk/geoext/lib/GeoExt.js"></script>
     <script type="text/javascript" src="../ux/control/RedliningControl.js"></script>
     <script type="text/javascript" src="../ux/control/RedliningPolygonControl.js"></script>
+    <script type="text/javascript" src="../ux/widgets/RedliningPanel.js"></script>
+    <script type="text/javascript" src="../ux/widgets/RedliningWindow.js"></script>
     <script type="text/javascript" src="RedliningExample.js"></script>
 
 </head>

Modified: sandbox/cmoullet/ux/Redlining/examples/RedliningExample.js
===================================================================
--- sandbox/cmoullet/ux/Redlining/examples/RedliningExample.js	2009-12-09 15:09:28 UTC (rev 1571)
+++ sandbox/cmoullet/ux/Redlining/examples/RedliningExample.js	2009-12-10 06:05:49 UTC (rev 1572)
@@ -36,6 +36,15 @@
             map: map
         });
 
+    toolbar.push({
+        text: 'Activate Redlining',
+        enableToggle: false,
+        handler: function() {
+            var redliningWindow = new GeoExt.ux.RedliningWindow();
+            redliningWindow.show();
+        }
+    });
+
     var action = new GeoExt.Action({
         text: "Polygon Editing",
         control: redliningPolygonControl,

Added: sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningPanel.js
===================================================================
--- sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningPanel.js	                        (rev 0)
+++ sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningPanel.js	2009-12-10 06:05:49 UTC (rev 1572)
@@ -0,0 +1,26 @@
+/**
+ * Copyright (c) 2008-2009 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
+ * of the license.
+ */
+
+Ext.namespace('GeoExt.ux');
+
+GeoExt.ux.RedliningPanel = Ext.extend(Ext.form.FormPanel, {
+
+    /** private: method[initComponent]
+     *  Private initComponent override.
+     */
+    initComponent: function() {
+        GeoExt.ux.RedliningPanel.superclass.initComponent.call(this);
+    },
+
+    /** private: method[beforeRender]
+     *  Private beforeRender override.
+     */
+    beforeRender: function() {
+        GeoExt.ux.RedliningPanel.superclass.beforeRender.call(this);
+    }
+});
\ No newline at end of file

Added: sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningWindow.js
===================================================================
--- sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningWindow.js	                        (rev 0)
+++ sandbox/cmoullet/ux/Redlining/ux/widgets/RedliningWindow.js	2009-12-10 06:05:49 UTC (rev 1572)
@@ -0,0 +1,39 @@
+/**
+ * Copyright (c) 2008-2009 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
+ * of the license.
+ */
+
+Ext.namespace('GeoExt.ux');
+
+GeoExt.ux.RedliningWindow = Ext.extend(Ext.Window, {
+    title: OpenLayers.i18n('Redlining Manager'),
+    width: 250,
+    redliningPanel: null,
+
+    initComponent: function() {
+        GeoExt.ux.RedliningWindow.superclass.initComponent.call(this);
+        this.redliningPanel = new Ext.form.FormPanel({
+            border: false,
+            autoHeight: true,
+            region: 'center',
+            bodyStyle: "padding:5px 10px 0 10px;",
+            items: [
+                {
+                    xtype: 'textfield',
+                    id: 'txtAddress',
+                    fieldLabel: 'Enter Address'
+                }
+            ]
+        });
+    },
+
+
+    onRender: function(container, position) {
+        GeoExt.ux.RedliningWindow.superclass.onRender.call(this, container, position);
+        //this.redliningPanel = new GeoExt.ux.RedliningPanel();
+        this.add(this.redliningPanel);
+    }
+});
\ No newline at end of file



More information about the Commits mailing list